05-06-2009 11:34 AM
Hi experts,
i want to call a program (second) from the first program. The problem is that the first program is called during the update task. so i think we cant use the submit statement.
Thnak you in advance.
Arul
Edited by: arul m on May 6, 2009 12:36 PM
05-06-2009 11:36 AM
05-06-2009 11:38 AM
Hi Ravi,
Thanks for the response. but submit statement will not work during update task.
05-06-2009 11:47 AM
Hi,
Try to create a RFC FM or Update FM. In that new FM submit the 2nd program.
Call this FM in your program with option starting new task.
Try if this works.
Regards,
Ankur Parab
05-06-2009 12:23 PM
05-06-2009 11:14 PM
Arul,
If you 2nd report has transaction code attached to it, you can use CALL TRANSACTION statement.
You might have to use parameter ID for the input filed or can use CALL TRANSACTION AND SKIP FIRST SCREEN.
Regards,
ARS
05-07-2009 8:06 AM
Hi,
During Update task, the following statements will not be allowed
CALL TRANSACTION
CALL SCREEN
CALL DIALOG
SUBMIT
is there any other way to do that?
Thanks
Arul
05-07-2009 12:09 PM
Hi Arul,
Try your luck by creating subroutine pool and create one subroutine with the code which you have in the second program. Now you call external subroutine into your first program.
Regards,
Kumar.
05-07-2009 12:43 PM
Hello,
Try this FM
TH_IN_UPDATE_TASK
check this
http://help.sap.com/saphelp_nw04/helpdata/EN/fa/f23c15330411d5992100508b6b8b11/content.htm