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.
Select the SAP_PA row:
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:
Add a new “ISR DDL No Element Preselect” object to your form and bind to “LAND1”:
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”. :
Select “Specify Item Values” and the following Dynamic Properties box appears:
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:
Your form should now look something like the following:
Now is a good time to test. You can either logon to the portal and select your process or launch directly using:
Result (showing dropdown):