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

Former Member
0 Likes
556

Can anybody please send me a step by step procedure for LSMW using IDOCS and LSMW using BAPI.

Can anybody please send me a step by step procedure for LSMW using IDOCS and LSMW using BAPI.

4 REPLIES 4
Read only

Former Member
0 Likes
517

Please have a look at below link. May be helpful to you.

http://www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc

http://myweb.dal.ca/hchinni/sap/lsmw_home.htm

Best Regards,

Vibha

*Please mark all the helpful answers

Read only

Former Member
0 Likes
517

hi,

refer the links

Lsmw with IDOC:

Go through this Url It is given step by step process.

Please take a look at:

1. and

2. The last reply in this thread details a step-by-step procedure to configure an inbound IDOC.

steps for LSMW: detail documnets: http://www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc

http://sapabap.iespana.es/sapabap/manuales/pdf/lsmw.pdf

http://www.sap-img.com/sap-data-migration.htm

https://websmp207.sap-ag.de/lsmw

http://www.sapbrain.com/TOOLS/LSMW/SAP_LSMW_steps_introduction.html

http://esnips.com/doc/8e732760-5548-44cc-a0bb-5982c9424f17/lsmw_sp.ppt

http://esnips.com/doc/f55fef40-fb82-4e89-9000-88316699c323/Data-Transfer-Using-LSMW.zip

http://esnips.com/doc/1cd73c19-4263-42a4-9d6f-ac5487b0ebcb/LSMW-with-Idocs.ppt

http://esnips.com/doc/ef04c89f-f3a2-473c-beee-6db5bb3dbb0e/LSMW-with-BAPI.ppt

http://esnips.com/doc/7582d072-6663-4388-803b-4b2b94d7f85e/LSMW.pdf

REFER.

steps for LSMW: detail documnets: http://www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc

http://sapabap.iespana.es/sapabap/manuales/pdf/lsmw.pdf

http://www.sap-img.com/sap-data-migration.htm

https://websmp207.sap-ag.de/lsmw

http://esnips.com/doc/8e732760-5548-44cc-a0bb-5982c9424f17/lsmw_sp.ppt

http://esnips.com/doc/f55fef40-fb82-4e89-9000-88316699c323/Data-Transfer-Using-LSMW.zip

http://esnips.com/doc/1cd73c19-4263-42a4-9d6f-ac5487b0ebcb/LSMW-with-Idocs.ppt

http://esnips.com/doc/ef04c89f-f3a2-473c-beee-6db5bb3dbb0e/LSMW-with-BAPI.ppt

http://esnips.com/doc/7582d072-6663-4388-803b-4b2b94d7f85e/LSMW.pdf

http://www.sap-img.com/sap-data-migration.htm

http://www.sapgenie.com/saptech/lsmw.htm

http://sapabap.iespana.es/sapabap/manuales/pdf/lsmw.pdf

http://www.sap.info/public/INT/int/glossary/int/glossaryletter/Word-17643ed1d6d658821_glossary/L#Wor...

Read only

Former Member
0 Likes
517

Hi Priyanka,

Go through the following Step by Step Procedure for LSMW Via Idoc.

check this link for step by step procedure on how to do LSMW using Idocs with screen shots

http://esnips.com/doc/1cd73c19-4263-42a4-9d6f-ac5487b0ebcb/LSMW-with-Idocs.ppt

http://sapabap.iespana.es/sapabap/manuales/pdf/lsmw.pdf

Inbound Processing of LSMW Via IDOC's

-


Step1) Create the Partner Profiles & Port for Inbound Process and Ctivate the Inbound Process for LSMW.

a) Goto Tcode SALE

1) Create Logical System for Receiver Save & Come Back

2) assign Logical to Client for LSMW inbound Process

b) Goto Tcode SM59

1) Create RFC Destinations for ALE

c) Goto Tcode WE21

1) Create a file port which can read the data from the specified path.

Here select "FILE" Node --> Click on Create Button(F5)

Give the following Information

Port : FILE

Desc : File Port for Inbound Processing of LSMW Via IDOC's

Goto Outbound File Tab.

Select Logical Directory Radio Button.

Give LOCAL_TEMPORARY_FILES as Logical Path.

If it is Physical Pthat : C:\TEMP\Filename.

Goto Tcode LSMW

===============

Give Project : ZPROJECT

SubProject : ZPROJECT

Object : ZPROJECT

Click on Create Button

then goto Settings Mwnu

Click on IDoc Inbound Process.

Here you need to Pass File Port : File

Partner Type : LS

Partner No. : Port Name (Just Created from WE21 Tcode)

Save And Click on ACTIVATE IDOC INBOUND PROCESS

Save and Come Back.

1) Click on Execute(F8) 1 Maintain Object Attributes

Select IDoc(Intermediate Document)

Message Type : MATMAS

Basic Type : MATMAS05

Save & Come Back

Then Your Getting the following Steps need to Do

2 Maintain Source Structures

3 Maintain Source Fields

4 Maintain Structure Relations

5 Maintain Field Mapping and Conversion Rules

6 Maintain Fixed Values, Translations, User-Defi

7 Specify Files

8 Assign Files

9 Read Data

10 Display Read Data

11 Convert Data

12 Display Converted Data

13 Start IDoc Generation

14 Start IDoc Processing

15 Create IDoc Overview

16 Start IDoc Follow-Up

2) Select the 2nd Radio Button & Execute.

Click on Create Button.

Source Structure : ZE1MARAM

Description : XXXXXXXXXX

Click on Continu Button

Select Just Created "Source Structure : ZE1MARAM"

Again Click on Create Button this is your Second Source Structure.

Source Structure : ZE1MAKTM

Description : XXXXXXXXXX

It Asks the Same Level or Lowerlavel of Source Structure : ZE1MARAM

select Lower Level Radio Button.

Click on Continue Button

Save & Come Back.

3) Select the 3rd Radio Button and click on Execute Button

Select the first Source Structure

Click on Copy Button

Select the Third Radio Button

Click on Copy Button

Give the Tab Name is E1MARAM

Click on Continue Button.

Save this

Go bottom

Select the 2nd Source Structure " ZE1MAKTM"

Click on Copy Button

Select the Third Radio Button

Click on Copy Button

Give the Tab Name is E1MAKTM

Click on Continue Button.

Save & Come Back.

4) Select the 4TH Radio Button and click on Execute Button

Select E1MARAM -->Click on Relationship Button

Here A Small window comes then Select ZE1MARAM

Click on Continue Button.

Select E1MAKTM -->Click on Relationship Button

Here A Small window comes then Select ZE1MAKTM

Click on Continue Button.

The Above two Structure are appears in Blue Color

Save & Come Back.

5) Select the 5TH Radio Button and click on Execute Button

First Structure : EDI_DC40 this is Control Record of your IDoc.

after this you will find a Structure "E1MARAM" this is in Orange Color Remember

Select MSGFN Field and Click on Source Field

a New window will comes here select the ZE1MARAM-->MSGFN field and double Click on it.

Select MATNR Field and Click on Source Field

a New window will comes here select the ZE1MARAM-->MATNR field and double Click on it.

Select MTART Field and Click on Source Field

a New window will comes here select the ZE1MARAM-->MTART field and double Click on it.

Select MBRSH Field and Click on Source Field

a New window will comes here select the ZE1MARAM-->MBRSH field and double Click on it.

Select MATKL Field and Click on Source Field

a New window will comes here select the ZE1MARAM-->MATKL field and double Click on it.

Select MEINS Field and Click on Source Field

a New window will comes here select the ZE1MARAM-->MEINS field and double Click on it.

Select GEWEI Field and Click on Source Field

a New window will comes here select the ZE1MARAM-->GEWEI field and double Click on it.

Save This.

Go Bottom.

you will find a Structure "E1MAKTM" this is in Orange Color Remember

Select MSGFN Field and Click on Source Field

a New window will comes here select the ZE1MAKTM-->MSGFN field and double Click on it.

Select SPRAS Field and Click on Source Field

a New window will comes here select the ZE1MAKTM-->SPARS field and double Click on it.

Select MAKTX Field and Click on Source Field

a New window will comes here select the ZE1MAKTM-->MAKTX field and double Click on it.

Save and Comeback.

Create Your Flat Files Like he following Format. and save it in C:\TEMP folder Only

1st File : MARA.TXT

001 MAT001 COUP C 15 KG 01

2nd File : MAKT.TXT

001 EN New Material For Inbound Processing of LSMW Via IDOC's

6) Select the 6TH Radio Button and click on Execute Button

We don't do any process here Just Come Back.

7) Select the 7TH Radio Button and click on Execute Button

Click on Legacy data : Click on F5 Button.

Add Two Files 1) C:\TEMP\MARA.TXT

2) C:\TEMP\MAKT.TXT

Select Tablator Radio Button as Delimiter

Save & Come Back.

😎 Select the 8TH Radio Button and click on Execute Button

Select ZE1MARAM Structure and Click on Assignment Button

Save this

Select ZE1maktm Structure and Click on Assignment Button

Save and Come Back.

9) Select the 9TH Radio Button and click on Execute Button

Click F8 Button.

Check the Read Dada

10) Select the 10TH Radio Button and click on Execute Button

Click F8 Button.

Check the Display Read Data.

11) Select the 11TH Radio Button and click on Execute Button

Click F8 Button.

Check the Convert Data.

12) Select the 12TH Radio Button and click on Execute Button

Click F8 Button.

Check the Display Convert Data.

13) Select the 13TH Radio Button and click on Execute Button

Click F8 Button.

14) Select the 14TH Radio Button and click on Execute Button

This is WE05 Tcode Screen Start IDoc Process.

15) Select the 15TH Radio Button and click on Execute Button

This is WE05 Tcode Screen Creating IDoc Here

16) Select the 16TH Radio Button and click on Execute Button

Select Posting Radio Button(that is 5th Button)

then Click on F8 or Execute Button.

After this your will check your Material exist in receving Side or Not.

also go through the following Link

http://www.sapbrain.com/TOOLS/LSMW/SAP_LSMW_steps_introduction.html

Regards

Sreeni