|Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us|
HCM Process and Forms - Drop Down List box with Round Trip
Now we have created our custom service. The next step would be creating the fields for drop down (Personnel Area and Personnel Sub area) and then assign these fields to our custom service, so that we will get the values from the Adobe Form when they select the Personnel Area a round trip triggers. Based on the value selected in the Personnel Area we can populate the Personnel Sub area drop down.
The Field I0001_WERKS and I0001_BTRTL has been created in the class ZCL_DROP_DOWN and bring those fields and assign to the form. So in our BADI class ZCL_DROP_DOWN we need to create the operation that needs to perform and also create the fields that needs to come in the custom service. In the class I have implemented the following methods to perform this activity.
The method IF_HRASR00GEN_SERVICE~GET_FIELD_INFO, IF_HRASR00GEN_SERVICE~GET_OPERATIONS and IF_HRASR00GEN_SERVICE~GET_HELP_VALUES .. Write the following code.
To get the Value help, we need to write the logic in this method IF_HRASR00GEN_SERVICE~GET_HELP_VALUES. (Logic written in this method)
Now come to our Form Scenario (Tcode: HRASR_DT) and select the backend-Service ZDROP_DOWN and click the “Service Fields” button. Select the operation “V_HELP” from the drop down and give the Field group name as “V_HELP” and select the fields I0001_WERKS and I0001_BTRTL.
Now go to the FORM – and you can still see its inactive. Click on change button and it will go to the SFP transaction and display the adobe form. (Don’t directly go to SFP and activate/change the FORM. Its recommend that always go via HRASR_DT if you want to change to FORM, as the ISR will get changed if you add or remove any fields in the form scenario).
Please send us your feedback/suggestions at webmaster@SAPTechnical.COM
©2006-2007 SAPTechnical.COM. All rights reserved.
product names are trademarks of their respective companies. SAPTechnical.COM
is in no way affiliated with SAP AG.
Graphic Design by Round the Bend Wizards