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: 

Data in FM A to FM B

former_member1240896
Participant
0 Kudos

Hi all,

i have the following requirement:

1) There are two function modules - A , B

2) Need to write a select query and fetch the data into internal table in FM A,

3) The fetched data in FM A should be available in FM B.

<b>The problem is i should not change and use FM parameters - import, export, tables, as the interface is already built.</b>

Can you please suggest me a solution for the above requirement.

Regards,

Chandan.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

U can use EXPORT IMPORT statemsnts

export wa_vbak to memory id 'zvbak'.

inport wa_vbak from memory id 'zvbak'.

Message was edited by:

Sumi Vasu

2 REPLIES 2

Former Member
0 Kudos

U can use EXPORT IMPORT statemsnts

export wa_vbak to memory id 'zvbak'.

inport wa_vbak from memory id 'zvbak'.

Message was edited by:

Sumi Vasu

Former Member
0 Kudos

Hi,

Use EXPORT command in FM A and

IMPORT in FM B.

Eg

EXPORT itab TO MEMORY.

IMPORT itab FROM MEMORY.

reward if useful

Arjun