‎2006 Nov 20 10:52 AM
how can i call a program(a) from program(b) on user event.
regards
nilesh
‎2006 Nov 20 10:56 AM
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)
‎2006 Nov 20 10:54 AM
‎2006 Nov 20 10:55 AM
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...
‎2006 Nov 20 10:55 AM
use the keyword SUBMIT
SUBMIT <PROG NAME> USING <SELECTION PARAMETERS> <VIA SELECTION SCREEN AND RETURN >.
‎2006 Nov 20 10:55 AM
HI,
If it is a module pool program (DIALOG SCREENS) then you can use
CALL TRANSACTION 'TRAN'.
for report type progorm use 'SUMBIT'
Regards,
‎2006 Nov 20 10:56 AM
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)
‎2006 Nov 20 10:56 AM
You can use either CALL TRANSACTION (to call a transaction code) or SUBMIT (to call a program name).
MJ
‎2006 Nov 20 10:58 AM
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