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 one program & from another program

Former Member
0 Kudos
94

Hi All,

I want to call one report program from another program which i will be creating. So please guide me regarding how is it possible to get the output of one program in the internal table in my own program, which i can use further . Inshort, how one can call one report program from another & store it's output in the inernal table or memory, so that it can be used further in the calling program.

Thanks & Regards,

Chetan.

2 REPLIES 2

Former Member
0 Kudos
52

Hi,

By using the SUBMIT command we can do it.

please reward points if it is useful.

regards,

satish.

Former Member
0 Kudos
52

HI

Chetan

When you start an executable program, the standard selection screen normally appears, containing the selection criteria and parameters of both the logical database connected to the program and of the program itself (see Direct Execution - Reports). When you start an executable program using SUBMIT, there are various additions that you can use to fill the input fields on the selection screen:

SUBMIT... [VIA SELECTION-SCREEN]

[USING SELECTION-SET <var>]

[WITH <sel> <criterion>]

[WITH FREE SELECTIONS <freesel>]

[WITH SELECTION-TABLE <rspar>].

When you call an ABAP program, you can modify its lists, send them to a spool file instead of the screen, or store them in ABAP memory.

Modifying the List Structure

You can modify the list structure of a called program by using the following additions in the SUBMIT statement:

SUBMIT... [LINE-SIZE <width>] [LINE-COUNT <length>].

If the called program contains no such options in the REPORT statement, the system formats the lists of the called program according to the options in the SUBMIT statement. If, on the other hand, the REPORT statement in the called program does specify a list structure, the additions in the SUBMIT statement are ignored. For further information about these additions, refer to Defining Your Own List Structure.

if the information i provided helped u plzz reward

for any further quiries my mail id mutyalasunilkumar@gmail.com

plzz dont forget to reward.