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

Calling another program from the current program

Former Member
0 Likes
660

Hi all,

In our requirement we are calling another program from our current program .

In the current program( from which we are calling ) we are giving file name in the selection screen

and when we run the current program we are successfully going to other program but our main requirement is to higlight the file name which we had given earlier .

Note : The called program doesnt have any selection screen.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
624

HI

use EXPORT and IMPORT key words for passing data from one program to another program.

as the called program is available in the same session you can use above key words which means you are accessing ABAP MEMORY.

You can also use SET and GET key words which means SAP memory

take F1 help there are examples tooo and detailes explanation abou the same

Regards

Ramchander Rao.K

Edited by: Ramchander Krishnamraju on Dec 24, 2008 7:05 AM

5 REPLIES 5
Read only

Former Member
0 Likes
625

HI

use EXPORT and IMPORT key words for passing data from one program to another program.

as the called program is available in the same session you can use above key words which means you are accessing ABAP MEMORY.

You can also use SET and GET key words which means SAP memory

take F1 help there are examples tooo and detailes explanation abou the same

Regards

Ramchander Rao.K

Edited by: Ramchander Krishnamraju on Dec 24, 2008 7:05 AM

Read only

Former Member
0 Likes
624

Hi ,

what do you mean by higlight the file name which we had given earlier .

you can do one thing create a Tcode using se93 for your called program and by using call transaction statment you can call your program

Read only

Former Member
0 Likes
624

Hi,

ur calling another program by using SUBMIT ,

So u can use SUBMIT and RETURN

I think it is useful.....

Read only

Former Member
0 Likes
624

hi,

SUBMIT report1 USING SELECTION-SCREEN '1100'

WITH SELECTION-TABLE rspar_tab

WITH selcrit2 BETWEEN 'H' AND 'K'

WITH selcrit2 IN range_tab

AND RETURN.

try to use the concept in the code..

Pass the select-option variable like this..

hope this will help you..

regards,

vijay.R

Read only

Former Member
0 Likes
624

Thanks for your help