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

submit keyword

Former Member
0 Likes
865

Hello,

I am calling n number of programs from one program.

Declr X & Y parameters in calling program.

But in debug when pointer comes to called (n program) program I can not see the value of X & Y parameter.

how data delr should be to see value in other executable program called by submit.

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
847

hi,

try below code for submit.

EXPORT form_name TO MEMORY ID 'vname'.

SUBMIT z_prgname AND RETURN.

FREE MEMORY ID 'fname'.

in the report z_prgname you can write

IMPORT form_name FROM MEMORY ID 'vname'

thanks.

7 REPLIES 7
Read only

Former Member
0 Likes
847

Hi Rita,

Use Export / Import statements.

Regards,

Darshan Mulmule

Read only

0 Likes
847

will appreciate if u tell me code

Read only

Former Member
0 Likes
848

hi,

try below code for submit.

EXPORT form_name TO MEMORY ID 'vname'.

SUBMIT z_prgname AND RETURN.

FREE MEMORY ID 'fname'.

in the report z_prgname you can write

IMPORT form_name FROM MEMORY ID 'vname'

thanks.

Read only

0 Likes
847

Hi ,

I m using

EXPORT form_name TO MEMORY ID 'vname'.

SUBMIT z_prgname AND RETURN.

FREE MEMORY ID 'fname'.

in the report z_prgname you can write

IMPORT form_name FROM MEMORY ID 'vname'

But in z_prgname it is giving error that form_name is not defined.

it is defined as a parameter in 1st program.

Thanks

Read only

0 Likes
847

hi,

You need to declare the form_name variable in the calling program..

Read only

Former Member
0 Likes
847

hi,

try this code....

Program accessed

REPORT report1.

DATA text TYPE c LENGTH 10.

SELECTION-SCREEN BEGIN OF SCREEN 1100.

SELECT-OPTIONS: selcrit1 FOR text,

selcrit2 FOR text.

SELECTION-SCREEN END OF SCREEN 1100.

...

Calling program

REPORT report2.

DATA: text TYPE c LENGTH 10,

rspar_tab TYPE TABLE OF rsparams,

rspar_line LIKE LINE OF rspar_tab,

range_tab LIKE RANGE OF text,

range_line LIKE LINE OF range_tab.

...

rspar_line-selname = 'SELCRIT1'.

rspar_line-kind = 'S'.

rspar_line-sign = 'I'.

rspar_line-option = 'EQ'.

rspar_line-low = 'ABAP'.

APPEND rspar_line TO rspar_tab.

range_line-sign = 'E'.

range_line-option = 'EQ'.

range_line-low = 'H'.

APPEND range_line TO range_tab.

range_line-sign = 'E'.

range_line-option = 'EQ'.

range_line-low = 'K'.

APPEND range_line TO range_tab.

SUBMIT report1 USING SELECTION-SCREEN '1100'

WITH SELECTION-TABLE rspar_tab

WITH selcrit2 BETWEEN 'H' AND 'K'

WITH selcrit2 IN range_tab

AND RETURN.

Read only

Former Member
0 Likes
847

For sample code using IMPORT and EXPORT please refer below threads:

Regards,