Skip to Content

This is part 1: development of forms using Adobe Interactive Forms – Specifically for HCM Process and Forms.  Over the past couple of years, I had the opportunity to work with probably one of the leading experts in this area (Chris Solomon) and he shared so much information with me.  Since he’s no longer on my project (he’s probably skate boarding somewhere), I thought I’d better start documenting some of the tips and tricks of what he taught me.  I’m hoping these will also help others too.  Again, this is a very basic example, but if you are new to this development, remember “Baby Steps”.

Call Up Transaction: HRASR_DT and select Form Scenario from the drop down:

/wp-content/uploads/2013/01/pic__179238.jpg

Enter ZFS6 (some form scenario name of your choosing) for the Form Scenario name and hit enter:

/wp-content/uploads/2013/01/pic__179238.jpg

You will be prompted to create the object.  Select “Yes” and supply the ISR Scenario and Form name:

/wp-content/uploads/2013/01/pic__179238.jpg

Select the Green Check button and you will be prompted to create the form and interface:

/wp-content/uploads/2013/01/pic__179238.jpg

Select “Yes” and supply the package name and transport number you wish to assign to.

Now click on Fields to see which fields have automatically been added from the PA Framework:

/wp-content/uploads/2013/01/pic__179238.jpg

These are the basic PA fields which get added to all PA Process and Form scenarios. 

We will add one more field so it is available to our form process.  Add the following Field:

Field Name:  ENAME

Name:  Employee Name

Data Binding:  EMNAM

/wp-content/uploads/2013/01/pic__179238.jpg

We now need to add this field to our Back-End Service SAP_PA.  Double Click on Back-End Services -> SAP_PA -> Fields:

/wp-content/uploads/2013/01/pic_179295.jpg

Add the following Field information and hit enter:

 

Field Name:  ENAME

Name:  Employee Name

InfoType:  0001

ScreenStruct:  HCMT_BSP_PA_US_R0001

Field Name:  ENAME

/wp-content/uploads/2013/01/pic__179238.jpg

We want to default in the employee’s name into the ENAME field.  To do this, double click the column “Default” on the ENAME row.  The following popup
displays:

/wp-content/uploads/2013/01/pic__179238.jpg

Select the SAP_PA row and select “CUR” – Value for effective (“CURrent”) date:

/wp-content/uploads/2013/01/pic_179295.jpg

Selecting the “CUR” option tells the SAP System to read the selected employee’s current infotype 0001 record and display the value stored in ENAME.

Now let’s create an Adobe form which we can use to display the ENAME value we have defined.

Double Click “Form” and you will see our form name and status:

/wp-content/uploads/2013/01/pic_179295.jpg

Select the “Change” icon (Pencil) next to our form name. This will launch the Adobe LifeCycle Designer.  The first thing we need to do is select the “Context” tab and map our field ENAME from the Interface to the Form:

/wp-content/uploads/2013/01/pic_179295.jpg

Drag ENAME and drop onto our form name Z_ISR_FORM_ZFS6.  Result:

/wp-content/uploads/2013/01/pic__179238.jpg

Now switch back to the layout tab so you are in the designer mode.  The first thing you should do: from the Utilities menu, choose Insert Web Dynpro Script:

/wp-content/uploads/2013/01/pic__179238.jpg

This will include a file into your project (ContainerFoundation_JS) which includes lots of JavaScript used by the Processes and Forms framework.

From the Object Library Palette, drag an “ISR Text Display” onto your form.  The “ISR Text Display” object can be found in the ISR Native Controls section:

/wp-content/uploads/2013/01/pic__179238.jpg

We now have this object on our form:

/wp-content/uploads/2013/01/pic__179238.jpg

Double Click the text to change it to something appropriate:

/wp-content/uploads/2013/01/pic__179238.jpg

Now from the Data View tab, we need to find the ENAME data element and drag it (BIND) onto the “ISR Text Display” object we just created.

Locate ENAME in the Data View Tab:

/wp-content/uploads/2013/01/pic__179238.jpg

Drag the lowest element “FIELD” from ENAME and drop it onto your “ISR Text Display” object.  To verify that binding is correct, you can select your display object and look at the binding properties:

/wp-content/uploads/2013/01/pic__179238.jpg

This completes our very basic form. Save and activate. You should be prompted to activate both the form and the interface:

/wp-content/uploads/2013/01/pic__179238.jpg

Exit the form and you will be returned back to the configuration of your form Scenario.  You will now notice that your Form Status displays active:

/wp-content/uploads/2013/01/pic__179238.jpg

So far we have created a Form Scenario and a Form. Now we need to create a process. Open Design Time for Processes and Forms – Transaction: HRASR_DT.  Select Process and enter ZPR6.  Press enter and you will be prompted to create it. It will then ask for you form scenario ZFS6:

/wp-content/uploads/2013/01/pic__179238.jpg

In the object hierarchy, double click the workflow node.  Enter NO_WORKFLOW since we are not using WF at this time – that will come later.  Press enter and save your changes:

/wp-content/uploads/2013/01/pic__179238.jpg

Now is a good time to test.  You can either logon to the portal and select your process or launch directly using:

http://yourserver.com/sap/bc/webdynpro/sap/asr_process_execute?sap-client=<yourclient #>&sap-language=EN

Result:

/wp-content/uploads/2013/01/pic__179238.jpg

Search for an employee:

/wp-content/uploads/2013/01/pic__179238.jpg

Choose Select Process and you will see your process in the list:

/wp-content/uploads/2013/01/pic__179238.jpg

Select your process and choose “Edit”.  The form will load and ENAME will be displayed:

/wp-content/uploads/2013/01/pic__179238.jpg

To report this post you need to login first.

12 Comments

You must be Logged on to comment or reply to a post.

    1. Philip Johnston Post author

      Well…  I’m not sure what you are experiencing, but as you know:  HCM P&F is a big beast and there are lots of moving parts.  I would suggest you first start by tracing your activity to see where exactly you are getting hung up.  Good luck..

      (0) 
    2. Santosh Kumar

      Hi Gaurang,

      Few reasons for form hanging issue which i had faced. Anything other than these, Masters (Philip and Chris ) 🙂 can suggest solution.

       

      1. Not including Web
        dynpro script in the form
      2. ADS version
      3. Adobe reader version issue on local machines
      4. ZCI layout of the
        form

      Thanks,

      Santosh

      (0) 
  1. Christopher Solomon

    Thanks for the kind words, Philip. But I also had the pleasure to work with you and the team. Some very interesting use cases for HCM P&F, fun challenges and “opportunities”….and yes, you are likely right….if not “working”, I am skateboarding. haha

    Nice blog! Keep them coming!!!!…..you should share your DEEP WDA knowledge! You are a WDA wizard! 😉

    (0) 
  2. Gaurang Gujar

    Hi Philip,

    Thanks a lot for your Blog.

    I am newbie to HCM Forms and Process and considering your Blogs and F1 Help as the Bible into this field.

    Regards,

    Gaurang

    (0) 
  3. Karim Karim

    Hi,

    What about adding a specific field with abap code to populate it : example : I need to calculate an amount and display it in the form

    Regards

    Karim

    (0) 
      1. Saahhil Kohli

        Hi Phillip,

        We are facing issues when we are trying to run SAP standard HR Renewal forms on NWBC. We get ADS error and not sure how to resolve that. BASIS have checked all the configurations and everything looks good. Please suggest. Screenshot of the error is below.

        ADS issue.JPG

        (0) 
          1. Saahhil Kohli

            Hi Christopher ,

            We did checked the note and we have in turn checked our ADS service and all the checks and they are running fine.As per dump, we are getting this value CL_WDR_IFBA_SERVICES=>CREATE_PDF from this class & method .

            Please suggest.

            (0) 

Leave a Reply