cancel
Showing results for 
Search instead for 
Did you mean: 

LSMW- Recording : Multiple Line Items

kasithunuguntla
Participant
0 Kudos

I am trying to create an LSMW recording that simulates transaction O3I7.

The thing is that we have different line items. This is similar to a sales order where we have header details and items details.

I created a recording. Then I created two structures. One header Structure and one Item structure. I define the specific header fields under the header structure and the item fields under the item structure.

However LSMW gives me an error. Because in LSMW each recording is considered as one target structure. I can't have more source structures than Target structures. Since I have One recording LSMW gives me an error.

I tried to create two recordings but this does not work since LSMW will read each one as a different transaction.

Does anyone know how to create LSMW recording with multiple line items so he/she can help?

Thx

Accepted Solutions (0)

Answers (2)

Answers (2)

kasithunuguntla
Participant
0 Kudos

no possible

Former Member
0 Kudos

Since formula ids are auto generated and each time i recon gives seperate set of internal numbers in that case use either bapi or idoc type the later is the most preferable.

former_member214131
Active Contributor
0 Kudos

Hi,

Not sure about the transaction that you have mentioned. However, in LSMW recording, you can load the items along with the header in 2 steps using 2 data files.

Step1: Create the header along with the first line item. Here you use a file which contains the header data along with the first line item data.

Step2. Add subsequent line items to the header. In this case you need to enter the transaction in change mode. The data file may contain items data only. Please be sure to have an identifier at header level to add the items in that specific document.

Hope this helps.

Best Regards, Murugesh

kasithunuguntla
Participant
0 Kudos

Hi,

Thank you for your response. However, I can not go on with this solution. What I am doing is creating Formula IDs. The Formula IDs are auto generated. So I can't use Change mode since I won't know what ID to use in my file.

Is there any other way that does not require change mode or two recordings?