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: 

LSMW and TRANSFER_TRANSACTION

Former Member
0 Kudos

Hello, I have the following scenario in LSMW:

Header File:

Record1

Detail File:

Record1 Detail1

Record1 Detail2

Record1 Detail3

I want to create an IDoc for each detail record; so what I did was to move up the TRANSFER_TRANSACTION into the ENDOF_RECORD_ of the last IDoc segment. But what is happening is that the EDI_DC40 structure is not getting repeated, so I end up with repeated segments in the same IDoc.

Any ideas?

Thanks

2 REPLIES 2

Former Member
0 Kudos

in one of requirement i used this logic.

check whether this logic will work for ur business by doing some modifications as per ur requirement.

*********

LSMW itself using one statement transfer_record.

if BKNVI-ALAND = 'US '

and BKNVI-TATYP = 'UTX2'.

BKNVI-TAXKD = '1'.

transfer_record.

endif.

if BKNVI-ALAND = 'US '

and BKNVI-TATYP = 'UTX3'.

BKNVI-TAXKD = '1'.

transfer_record.

endif.

if BKNVI-ALAND = 'US '

and BKNVI-TATYP = 'UTXJ'.

BKNVI-TAXKD = '1'.

endif.

Here default transfer_record from lsmw will call....

Former Member
0 Kudos

The problem is to transfer the transaction and not the record; but I did solve the problem: an internal table in the conversion program was getting wiped out, so all I had to do was to keep creating that record for EDI_DC40.

Thanks