Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling another program with in a program

Former Member
0 Kudos

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

8 REPLIES 8

former_member181962
Active Contributor
0 Kudos

Hi Arul,

Try submit statement and see if it works.

Regards,

Ravi

0 Kudos

Hi Ravi,

Thanks for the response. but submit statement will not work during update task.

former_member555112
Active Contributor
0 Kudos

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

0 Kudos

HI,

I tried that way also, its not working.

0 Kudos

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

0 Kudos

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

0 Kudos

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.

Former Member
0 Kudos