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!!

Former Member
0 Likes
484

Hi,

I am submitting one report and need to return some value from the program called to the calling program ...how to achieve the same?

Regards

Gunjan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
461

Hi,

use import and export statements.

regards,

ananth

4 REPLIES 4
Read only

Former Member
0 Likes
462

Hi,

use import and export statements.

regards,

ananth

Read only

Former Member
0 Likes
461

by using keywords

IMPORT

EXPORT.

check for sytax by pressing F1.

Regards

Prabhu

Read only

Former Member
0 Likes
461

hi,

u can use export ....to memory-id 'xxx' and import ......from memory-id 'xxx'

statements in your programs to return some value from the called program

export the variable u want to return in the called program to the abap memory using EXPORT VAR1 TO MEMORY-ID 'ABC'.

import the same variable in the calling program using import statement

IMPORT VAR1 FROM MEMORY-ID 'ABC'.

Read only

Former Member
0 Likes
461

Hi gunjan,

1. Program ZAM_TEMP01

is calling ZAM_TEMP02

2. Then this is the coding.

<b>ZAM_TEMP01</b>

report abc.

PARAMETERS : A TYPE C.

data : VAR(10) TYPE C.

START-OF-SELECTION.

SUBMIT ZAM_TEMP02 AND RETURN.

IMPORT VAR FROM MEMORY ID 'VAR'.

BREAK-POINT.

<b>ZAM_TEMP02</b>

report abc .

data : VAR(10) TYPE C.

VAR = 'HELLO'.

EXPORT VAR TO MEMORY ID 'VAR'.

regards,

amit m.