2005 Jul 16 3:25 PM
hi,
I have a query in LSMW that is i want to know how to insert multiple line items for sales order.who can it be approached that is whether it can be done through recording or by bapi or any other technique.If already worked on it send me the details of what fields to be filled and what technique is to be used.
thank you...
Regards
premkumar
2005 Jul 16 3:31 PM
Hi,
Follow these steps for processing multiple records in lsmw.
I presume that you have one header line and multiple line items in the file and has a unique identifier. Let us say you have two nodes in lsmw called VBAK(Header) and VBAP(Item).
Normally lsmw process one line of the file at a time. When lsmw reads the header line, process the VBAK node and use the 'transfer_record' command (this must be already there). When the second record is processed and if the unique identifier is same as the header then write a command called 'skip_record' in the '__BEGIN_OF_RECORD__' session of VBAK. If you do like this we will have one header and multiple line items.
Vinod
Message was edited by: Vinod C
2005 Jul 18 4:06 PM