Application Development and Automation 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: 
Read only

CALL PROGRAM

Former Member
0 Likes
789

how can i call a program(a) from program(b) on user event.

regards

nilesh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
754

its simple. use submit program command...

sumbit program(a) via selection-screen

( pass the selection screen fields)

and return.

If u want to return values from (a) then u have to do import/export...

export in (a) & import in (b)

7 REPLIES 7
Read only

Former Member
0 Likes
754

using command: call transaction '<transaction name>'.

Read only

former_member69765
Contributor
0 Likes
754

the command to call another program is -- submit report ..

there are many variations and extension to this.. so do a F1 on submit

you will find lots of options...

Read only

Former Member
0 Likes
754

use the keyword SUBMIT

SUBMIT <PROG NAME> USING <SELECTION PARAMETERS> <VIA SELECTION SCREEN AND RETURN >.

Read only

dani_mn
Active Contributor
0 Likes
754

HI,

If it is a module pool program (DIALOG SCREENS) then you can use

CALL TRANSACTION 'TRAN'.

for report type progorm use 'SUMBIT'

Regards,

Read only

Former Member
0 Likes
755

its simple. use submit program command...

sumbit program(a) via selection-screen

( pass the selection screen fields)

and return.

If u want to return values from (a) then u have to do import/export...

export in (a) & import in (b)

Read only

michael-john_turner
Active Participant
0 Likes
754

You can use either CALL TRANSACTION (to call a transaction code) or SUBMIT (to call a program name).

MJ

Read only

Former Member
0 Likes
754

1. SUBMIT rep.

2. SUBMIT (name).

Extras:

1. ... LINE-SIZE col

2. ... LINE-COUNT line

3. ... TO SAP-SPOOL List output to the SAP spool database

4. ... USING SELECTION-SCREEN scr

5. ... VIA SELECTION-SCREEN

6. ... AND RETURN

7. ... EXPORTING LIST TO MEMORY

8. ... USER user VIA JOB job NUMBER n

9. ...Various additions for passing parameters to rep

10. ... USING SELECTION-SETS OF PROGRAM prog

11. ... USING SELECTION-SET vari

12. ... WITH p op f SIGN s

13. ... WITH p BETWEEN f1 AND f2 SIGN s

14. ... WITH p NOT BETWEEN f1 AND f2 SIGN s

15. ... WITH p IN sel

16. ... WITH SELECTION-TABLE seltab

17. ... WITH FREE SELECTIONS texpr