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

How to call a abap program ?

Former Member
0 Likes
1,611

Can anyone tell me how to call one abap program in another abap program ??

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,528
8 REPLIES 8
Read only

Former Member
0 Likes
1,528

Hi,

Look at the SUBMIT statement. It has a lot of options to call an ABAP program of type 1 (report).

Regards,

Arjan

Read only

athavanraja
Active Contributor
0 Likes
1,528

<b>submit</b>

check out ABAP key word documentation for <b>SUBMIT</b>

there are different ways, tell us your exact requirement.

Regards

Raja

Read only

Former Member
0 Likes
1,528

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.

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
1,528

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

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
1,528

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

Read only

Former Member
0 Likes
1,528

Hi,

Use submit if u have select options in the other program.

Regards,

Sharath.

Read only

Former Member
0 Likes
1,529
Read only

0 Likes
1,528

I wonder why some you bother to answer the question that have been given the correct answer the first time?