02-04-2014 2:37 AM
Hi,
I have a requirement where I have to code dynamic actions in my RFC. My functional person gave me logic where I have to call routines from diff. std programs.I can call the routines but I am not able to pass the parameters in the call as there are no using/ changing parameters defined in called program. During manual action at PA30 fields are auto populated but I am not able to pass them during call to routines.
It will be great if somebody can help me with the solution for this.Thanks in advance.
02-05-2014 9:52 AM
Hi P J,
Sorry...i didn't understand your complete scenario but u may use this...
PERFORM <routine_name> IN PROGRAM <prog> USING <var1> CHANGING <var2>
02-04-2014 6:40 AM
Hi PJ,
I think you are trying to use the logic of standard subroutine,
You can try creating an implicit enhancement in the start of the subroutine and filled the fields .To pass the values u can use SAP Memory or ABAP memory depending on your requirements.
Regards,
~Raj
02-04-2014 7:08 AM
02-04-2014 2:33 PM
Thanks for your response. However, let me explain the scenario little bit more:
I have to call a standard routine which needs values for fields like ( PERNR, ENDDA, BEGDA for processing logic). These values are autopopulated while a manual action from PA30. However, I am callind this routine using Perform <routine_name>(<module pool name>).
I have values to be passed to the routine in my RFC and I can pass them with Perform through using/changing parameters. However, the called FORM donot have any parameter defined. So, it will give me a dump.
I want to pass the values to the called routine but I am not sure how to do it. Please suggest.
02-04-2014 2:49 PM
02-05-2014 9:52 AM
Hi P J,
Sorry...i didn't understand your complete scenario but u may use this...
PERFORM <routine_name> IN PROGRAM <prog> USING <var1> CHANGING <var2>