Application Development and Automation 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: 
Read only

LSMW with multiple source files using direct input method

Former Member
0 Likes
3,187

Dear experts,

I would like to use multiple sources files during a single direct input session.

Reading them is quite simple but converting them and using them in a direct input session is more of a challenge for me.

Here is how I set up my LSMW

Step 1

Step 2 :

Step 3 :

Step 4 :

Step 5 :

Step 6 :

Step 7 :

Step 8 :

Thank you,

Shérif Baldé

4 REPLIES 4
Read only

Sandra_Rossi
Active Contributor
0 Likes
2,878

If these are different unrelated files, you can't do what you ask. You may have several structures only to combine them. Expl: headers and lines. You cannot do a "union" of files.

You should simply create 2 distinct LSMW subobjects.

Read only

Former Member
0 Likes
2,878

Thank you for the quick answer.

These are indeed unrelated files.

In my scenario I have in fact 7 files to process but I guess I will have to create 7 distincts LSMW subobjects which I would have liked to avoid.

Read only

Sandra_Rossi
Active Contributor
0 Likes
2,878

sherif95250 Please paste my hyperlinked name so that I am informed of your message.

In your example, you had 2 files with each a different structure (MATNR length 15 or 20).

If you had some files with the same structure, you could run the LSMW via /SAPDMC/SAP_LSMW_INTERFACE for each file repeatedly with the same LSMW subobject (i.e. without changing the LSMW subobject).

Read only

Former Member
2,878
sandra.rossi, I will indeed use the program /SAPDMC/SAP_LSMW_INTERFACE in a scheduled job to automate the whole process. Thanks.