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

problem while exporting internal table to memory id using EXPORT

Former Member
0 Likes
1,201

Hi friends,

Iam facing a following problem.

I have 4 line items in my va01 tcode.

now when i give material number and quantity and hit enter the processing for that line item starts.

iam moving that current line item to a internal table lt_vbap in userexit_check_vbap.

now for the 2nd line item also i have to move to internal table lt_vbap.

but my problem is that in internal table lt_vbap iam not getting all the line items.

every time the current line item is being processed the the previous line items are being refreshed.

from lt_vbap internal table.

how can i export internal table.

code

move vbap to lt_vbap.

append lt_vbap.

export lt_vbap to memory id 'ZXYZ'.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
627

Hi,

1.Till the time both the EXPORT statements are in different programs, they can refer to the same MEMORY ID.

However,if they are in the same program, then the last EXPORT statement will overwrite the contents of the Memory ID

2.Refer this:

Regards,

Shiva Kumar

4 REPLIES 4
Read only

Former Member
0 Likes
627

Hi Priyanka,

The internal table lt_vbap will always be empty unless you import it from the Memory ID (in your case ZXYX).

Use the code this way:

IMPORT lt_vbap FROM MEMORY ID 'ZXYX'.

move vbap to lt_vbap.

append lt_vbap.

export lt_vbap to memory id 'ZXYZ'.

Regards,

Prakash Pandey

Read only

0 Likes
627

>

> Hi Priyanka,

>

> The internal table lt_vbap will always be empty unless you import it from the Memory ID (in your case ZXYX).

>

> Use the code this way:

>

> IMPORT lt_vbap FROM MEMORY ID 'ZXYX'.

>

> move vbap to lt_vbap.

>

> append lt_vbap.

>

> export lt_vbap to memory id 'ZXYZ'.

>

> Regards,

> Prakash Pandey

The memory id shud be same in both cases

Read only

Former Member
0 Likes
627

Hi Priyanka,

Please go through the KEY word documenation of IMPORT EXPORT or SET GET PARAMETERS

use the standard table INDX(HK)

hope this will solve your problem

Regards

Ramchander Rao.K

Read only

Former Member
0 Likes
628

Hi,

1.Till the time both the EXPORT statements are in different programs, they can refer to the same MEMORY ID.

However,if they are in the same program, then the last EXPORT statement will overwrite the contents of the Memory ID

2.Refer this:

Regards,

Shiva Kumar