‎2008 Jan 30 9:37 AM
Hi,
Could u pls let me know why is structure 'RP50D' used in Dynamic Actions? Pls give suitable programs where it has been used.
Thanks in advance,
Saipriya
‎2008 Jan 30 9:45 AM
Hi,
rp50d gets fille dduring the dynamic action.
You can put a break point and chk whether this structure is getting filled , if it does it's a dynamic action.
Also all the dynamic actions are store in table T588Z ,
you can chk up for the infotype u r looking for.
Check these links for more info.
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAPA/PAPA.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAPD/PAPD.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PYINT/PYINT_BASICS.pdf
http://www.atomhr.com/training/Technical_Topics_in_HR.htm
http://www.planetsap.com/hr_abap_main_page.htm
you can see some Standard Program examples in this one..
http://www.sapdevelopment.co.uk/programs/programshr.htm
These are the FAQ's that might helps you
http://www.sap-img.com/human/hr-faq.htm
http://www.sapgenie.com/faq/hr.htm
Reward Points if found helpfull..
Cheers,
Chandra Sekhar.
‎2008 Jan 30 9:41 AM
Hi,
See the programs:
RPCDYNG0
RPUDYN442G0
Regards,
Renjith Michael.
‎2008 Jan 30 9:45 AM
‎2008 Jan 30 9:45 AM
Hi,
rp50d gets fille dduring the dynamic action.
You can put a break point and chk whether this structure is getting filled , if it does it's a dynamic action.
Also all the dynamic actions are store in table T588Z ,
you can chk up for the infotype u r looking for.
Check these links for more info.
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAPA/PAPA.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAPD/PAPD.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PYINT/PYINT_BASICS.pdf
http://www.atomhr.com/training/Technical_Topics_in_HR.htm
http://www.planetsap.com/hr_abap_main_page.htm
you can see some Standard Program examples in this one..
http://www.sapdevelopment.co.uk/programs/programshr.htm
These are the FAQ's that might helps you
http://www.sap-img.com/human/hr-faq.htm
http://www.sapgenie.com/faq/hr.htm
Reward Points if found helpfull..
Cheers,
Chandra Sekhar.
‎2008 Jan 30 10:01 AM
I understand that RP50D is used to get the return values from a subroutine that is called during Dynamic action. I also observed that the return values can also be directly populated in the Pnnnn structure and used as such in the Dynamic action. if that be the case why use RP50D?
‎2008 Jan 30 10:14 AM
Hello Saipriya,
Please gothrough this piece of code.
CREATE INFOTYPE 0041 **** (BRAZIL)
T001P-MOLGA='37'
P0000-MASSN='01'
GET_DATE(HBRDYNMS)
INS,0041/D
P0041-DAT01=RP50D-DATE
P0041-DAR01='PA'
P0041-BEGDA=P0000-BEGDA
You can see in the above code RP50D-DATE.
1) This getting filled from the Form GET_DATE(HBRDYNMS).
2) Now we want use this as the date in the infotype 0041.
The conclusion from this is , if we want to do some manipulations and use the manipulated data in the next infotypes. So this structure is filled and this is used in DYNAMIC ACTIONS to fill next coming infotypes.
Hope this will clear your doubt.
Regards,
Kiran I
‎2008 Jan 30 10:34 AM
Thanks for the info
In the place of the following piece of code
T001P-MOLGA='37'
P0000-MASSN='01'
GET_DATE(HBRDYNMS)
INS,0041/D
P0041-DAT01=RP50D-DATE
P0041-DAR01='PA'
P0041-BEGDA=P0000-BEGDA
if this is used
T001P-MOLGA='37'
P0000-MASSN='01'
INS,0041/D
GET_DATE(HBRDYNMS)
P0041-DAR01='PA'
P0041-BEGDA=P0000-BEGDA
and assuming that GET_DATE populates directly in the structure P0041-DAT01.
Both the cases seem to give the same result. So i would like to know if there would be aproblem if i do not use RP50D and directly populate the IT structure
‎2008 Jan 30 1:21 PM
Hi Saipriya,
You can not populate structure p0041 inside the routine GET_DATE since Dynamic action is triggered for IT0000 (I'm assuming it is triggered for Actions Infotype). Inside GET_DATE you can only modify the structure p0000 ans RP50D.
Now if you need to update the IT0041 with date from P0000, you store the date in RP50D structure in GET DATE routine, then use command INS,0041......./D, then populate p0041 with RP50D structure. This is the reason why return structure RP50D is used.
If the default fields provided by SAP are not sufficient then you can implement the include CI_PRP50D to include your own fields in the structure.
Hope this helps,
Shrinivas
‎2008 Jan 30 10:27 AM