09-05-2008 5:29 PM
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
09-05-2008 6:16 PM
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....
09-05-2008 9:04 PM
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