07-19-2005 12:53 PM
Can anyone tell me how to call one abap program in another abap program ??
07-19-2005 1:23 PM
Hi,
Check the below link for documentation.
http://help.sap.com/saphelp_47x200/helpdata/en/9f/db9d7535c111d1829f0000e829fbfe/content.htm
Regards,
Vara
07-19-2005 12:57 PM
Hi,
Look at the SUBMIT statement. It has a lot of options to call an ABAP program of type 1 (report).
Regards,
Arjan
07-19-2005 12:57 PM
<b>submit</b>
check out ABAP key word documentation for <b>SUBMIT</b>
there are different ways, tell us your exact requirement.
Regards
Raja
07-19-2005 12:57 PM
hi,
try
SUBMIT zzzprog.
but if you only want to call a FORM in an other program
try,
PERFORM name_of_the_form in PROGRAM name_of_the_main_program.
07-19-2005 12:59 PM
Hi,
You can use <b>submit</b> statement to achieve the same.
Sample Code
REPORT ZREP2 NO STANDARD PAGE HEADING.
tables: qals.
RANGES seltab for qals-prueflos.
WRITE: 'Select a Selection!',
/ '----
'.
SKIP.
FORMAT HOTSPOT COLOR 5 INVERSE ON.
WRITE: 'Selection 1',
/ 'Selection 2'.
AT LINE-SELECTION.
CASE SY-LILLI.
WHEN 4.
SUBMIT zrep1 VIA SELECTION-SCREEN
WITH PARAMET EQ 'Selection 1'
WITH SELECTO IN SELTAB
WITH SELECTO NE 3
AND RETURN.
WHEN 5.
SUBMIT zrep1 VIA SELECTION-SCREEN
WITH PARAMET EQ 'Selection 1'
AND RETURN.
ENDCASE.
Message was edited by: Jayanthi Jayaraman
07-19-2005 12:59 PM
Hi,
You can use <b>submit</b> statement to achieve the same.
SUBMIT rep.
Calls report rep.
The system leaves the active program and starts the new report rep. In basic form 2, you can specify the name of the report in the field name. You must specify the name in uppercase, otherwise a runtime error occurs.
Note
You can only start programs with type '1' using SUBMIT. If the program has a different type, the system triggers a runtime error.
Message was edited by: Jayanthi Jayaraman
07-19-2005 1:05 PM
Hi,
Use submit if u have select options in the other program.
Regards,
Sharath.
07-19-2005 1:23 PM
Hi,
Check the below link for documentation.
http://help.sap.com/saphelp_47x200/helpdata/en/9f/db9d7535c111d1829f0000e829fbfe/content.htm
Regards,
Vara
07-19-2005 2:20 PM
I wonder why some you bother to answer the question that have been given the correct answer the first time?