Skip to Content

This document is part 4 of what builds on my other example:  “Part 3: basic HCM Process and Forms scenario (Address Type 0006, Subtype 4 is included – both static elements and editable elements)” which can be accessed at: http://scn.sap.com/docs/DOC-35586

Let’s now add a default value selection dropdown list for country code selection.

Double click the “Input Help” column of input field LAND1.

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

Select the SAP_PA row:

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

Now we need to edit our form and use a dropdown list control instead of the text control we used in an earlier example.  You can both recreate the object and delete the old object.

  

Delete the input field “Country” from your form:

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

Add a new “ISR DDL No Element Preselect” object to your form and bind to “LAND1”:

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

Result:

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

As you can see, we now have the dropdown arrow on our object.  There is one more thing to do.  On the new objects binding property tab you will notice that there is an option “Specify Item Values”.  :

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

Select “Specify Item Values” and the following Dynamic Properties box appears:

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

You need to replace “REPLACE_THIS” with your expression from data binding.  Note that you have to escape each point with a “\”.  More information on this can be found at SAP documentation: http://help.sap.com/saphelp_erp60_sp/helpdata/en/42/fb2fe500553ee4e10000000a1553f7/frameset.htm

So you need to replace:

$record.sap-vhlist.REPLACE_THIS.item[*]

With:

             $record.sap-vhlist.LAND1\.DATA\.FIELD.item[*]

Result:

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

Your form should now look something like the following:

/wp-content/uploads/2013/01/pic__179794.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 (showing dropdown):

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

To report this post you need to login first.

Be the first to leave a comment

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

Leave a Reply