This website is not affiliated with, sponsored by, or approved by SAP AG.

Issue with import/export parameter in FM

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

Issue with import/export parameter in FM

Postby vanchasri » Fri Apr 24, 2015 11:34 am

Hi Experts.

i have used import statement in a BTE as below.


EXPORT it_bseg FROM MEMORY ID 'ZBD1'.

i have used export statement in a implicit enhancement of FM 'POST_DOCUMENT.

EXPORT it_bseg FROM MEMORY ID 'ZBD1'.

if i check in the debug mode , the internal table 'it_bseg' is empty.


please suggest.

Thanks
NK.
vanchasri
 
Posts: 4
Joined: Thu Apr 23, 2015 1:30 pm

Re: Issue with import/export parameter in FM

Postby vanchasri » Fri Apr 24, 2015 11:44 am

sorry, Its my bad, its an Typo in thread discussion.

i used as below in my program

i have used export statement in a BTE as below.


EXPORT it_bseg to MEMORY ID 'ZBD1'.

i have used import statement in a implicit enhancement of FM 'POST_DOCUMENT.

IMPORT it_bseg FROM MEMORY ID 'ZBD1'.

please help me.
thanks
NK
vanchasri
 
Posts: 4
Joined: Thu Apr 23, 2015 1:30 pm

Re: Issue with import/export parameter in FM

Postby vanchasri » Fri Apr 24, 2015 12:33 pm

for test purpose i used the below code in same BTE only.

EXPORT it_bseg1 TO MEMORY ID 'ZZKONTL'

IMPORT it_bseg1 to it_bseg2 from MEMORY ID 'ZZKONTL'.

if i see in debugging the data is transfered from it_bseg1 to it_bseg2 success fully..

if place the second line (IMPORT it_bseg1 to it_bseg2 from MEMORY ID 'ZZKONTL') in the FM.

both the table it_bseg1 and it_bseg2 are blank.

what could be the reason.

thanks
NK
vanchasri
 
Posts: 4
Joined: Thu Apr 23, 2015 1:30 pm

Re: Issue with import/export parameter in FM

Postby Gothmog » Mon Apr 27, 2015 6:58 am

Are the BTE and the POST_DOCUMENT FM call executed in the same Logical Unif of Work?
If not, you should use EXPORT/IMPORT ... TO/FROM SHARED MEMORY ...
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67
Gothmog
 
Posts: 1941
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home


Return to ABAP

Who is online

Users browsing this forum: No registered users and 6 guests





loading...


This website is not affiliated with, sponsored by, or approved by SAP AG.