Steps to work with LSMW

Hi all,
Please guid me how to work on LSMW using BAPIs.If any of u have an example please explain me step by step process and also where we can do the validation part.If any of you have any material forward to my mail .
[email protected]
Regards
Pavan

Hi,
  is step by step process .
Step-by-Step Guide for using BAPI in LSMW
Note! The screen prints in this article are from ECC 5.0. They may differ slightly in other versions.
Introduction:
This document details the usage of BAPI in LSMW. We have used the example of migration of the purchase order data into SAP.
Pre-requisites:
It is assumed that the reader of this article has the minimum knowledge required on the Business Object, BAPI, Message Types and IDoc Types.
Step-by-Step Procedure:
Details of the BAPI used in this scenario:
Business Object: BUS2012
Method: CreateFromData
Details of Message Type and Basic IDoc Type:
Message Type: PORDCR
Basic IDoc Type: PORDCR02
Let’s have a look at the BAPI first, before proceeding to the LSMW:
1. Go to Transaction BAPI
2. Click on Search Button
3. Enter the value “BUS2012” and select “Obj.type(Technical Object Name”
4. Press ENTER
5. Following screen appears:
6. On the left side of the screen, Expand the “PurchaseOrder”.
7. Select “PurchaseOrder” and double-click on the same for details.
Building LSMW using BAPI:
1. Go to Transaction LSMW.
2. Enter the Project, Subproject and Object information and click on CREATE.
3. Enter the descriptions for Project, Subproject and Object as prompted.
4. Now select Settings à IDoc Inbound Processing
5. “IDoc Inbound Processing” screen appears. Enter the required details as shown below:
6. Click on “Activate IDoc Inbound Processing”.
7. Click on “Yes” when prompted for “Activate IDoc Inbound?”
8. Hit on “Back” to return to the main screen.
9. Click on Continue (F8). Following Screen appears:
10. Select the Step 1 “Maintain Object Attributes” and select “Execute”.
11. Select the radio button “Business Object Method” and enter the following details:
Business Object: BUS2012
Method: CreateFromData
Hit ENTER
12. Save and click on BACK button. Following information message is displayed.
13. Now select step 2 “Maintain Source Structures” and click “Execute”.
14. In this step, we need to maintain the source structure. In our example, lets consider the example of a file with 2 structures Head and Item data as shown below:
Click on Create and name the source structure as HEADERDATA. Now select HEADERDATA and click on “Create” again to create the child structure. Following popup appears:
Select “Lower Level” and click on Continue. Enter the Item data structure name.
Click Save and hit BACK button to go to the main screen.
15. Select step 3 “Maintain Source Fields” and hit execute.
16. Enter the fields as shown below:
17. Click SAVE and return to main screen.
18. Select step 4 “Maintain Structure Relations” and click Execute.
Select E1PORDCR and click on CREATE RelationShip. Following screen appears:
Select HEADERDATA and hit ENTER
Similarly do the same for the structure E1BPEKKOA, E1BPEKPOC and E1BPPEKET.
Click Save and return to main screen.
19. Select the step “Maintain Field Mapping and Conversion Rules” and click on execute. Maintain the Field Mapping as seen below:
20. Select step 7 “Maintain Source Files” and provide the link for the test file created. (Create a test file with the same structure as defined earlier).
Save and return to main screen.
21. Select the step “Assign Files” and click on Execute.
Assign the file provided to the source structure. Here the same file is provided for both the structures.
Save and return to the main screen.
22. Select the step “Read Data” and click on Execute.
Click on Execute.
Return to the main screen.
23. Select the step “Display read data” and click on execute.
Click on the structure name to get the field level values.
24. Return to main screen and now select “Convert Data”.
25. Return to the main screen and select “Display Converted data”.
26. Return to main screen and select “Start IDoc generation”.
27. Now select the step “Start IDoc Processing” on the main screen.
28. Return to main screen and click on “Create IDoc overview”. Here the data record and status records of the IDoc could be viewed:
Please Go through these Links ,
BAPI with LSMW
http://esnips.com/doc/ef04c89f-f3a2-473c-beee-6db5bb3dbb0e/LSMW-with-BAPI
For document on using BAPI with LSMW, I suggest you to visit:
http://www.****************/Tutorials/LSMW/BAPIinLSMW/BL1.htm
http://myweb.dal.ca/hchinni/sap/lsmw_home.htm
http://sapabap.iespana.es/sapabap/manuales/pdf/lsmw.pdf
Regards

Similar Messages

  • How to handle the table control While working with LSMW?

    How to handle the table control While working with LSMW?

    its possible in lsmw,
    Hi,
    LSMW will have a Indicator for headr and itam, i do not remember the correct field, but it will have an indicator, check the fields, there will be a single charecter lenght field, that should be the indicator, and using that we can write the logic.
    check that single charecter field, it that is X that means the header record is processed, and do the items.
    and, this is another way, try this out also
    YOu can do this in "Define Source Structures" step,
    the HEADER is defined first,
    then the DETAIL below the HEADER.
    add the fields to the structures.
    Both should have some common key field
    Please take care that the name of the common field is the same.
    Once you do this it is linked. The you have a header and item corresponding to that header. then run the LSMW as you would.
    Thanks

  • Mail step not working with expression

    Hi Experts,
    I am using the business object bus2080 for Tcode iw21, to trigger workflow on notification status change. I have mail step in my workflow,mail is being sent successfully when it has only text, but when i am using the expressions, say notification number in that mail, no mail is being send, getting error "Error handling for work item 000000660111".
    Please let me know your valuable comments on this issue.
    Thanks
    Ishtiyaq

    Hi Rob,
    The worflow container I am using is of the type BUS2080. Binding in the start event is as below
    Event -> Workflow
    &_EVT_OBJECT&     &ZBUS2080&
    and in the Mail Step
    Workflow-> Mail Step
    &ZBUS2080&     &ZBUS2080&
    Also in the mail subject and body  I am adding the expression using button 'Insert Expressions'.
    thanks,
    Ishtiyaq

  • Email step not working with container expression

    Hi All,
    I have a method in my workflow which retrieves text from a database table and stores it in a wokflow container.
    I have set the container as a multiline element. this container is then used as an expression in an email step, the email is then sent and should show the text retrived from the database.
    the problem i am facing is that, only 80 characters are shown and the rest is cut off. the database field accepts upto 256 characters. In workflow log when i check the container, the container shows all 256 characters.
    does anyone have any idea why when i am trying to email it only shows 80.
    many thanks
    Forhad

    Hi,
    please note that the maximal length of an attribute displayed is limited to 80 . so if your attribute is longer
    it will be cut .
    Solution :
    Create a table conatiner element of length CHAR50 & Populate the entire content of the mail template in it and when we try to insert the multiline conatiner element in a mail then it will prompt us 3 options, do you want to print only the first line , or do you want to print the entire content of the table continuously or you want to put the content line by line,
    select the option put the content continuously.
    This should do the job.
    Regards,
    Raj

  • How does two step verification work with an iPad?

    Two step verification seems to require an iPhone for the code - can it be set up for an iPad?

    Apple ID Two-Step verification FAQ
    http://support.apple.com/kb/HT5570

  • I need a definitive answer for using Premiere Pro CS4 to work with .m2ts and .mts files

    I have a Canon Vixia HF20 and a Sony HDR-XR350V.  The Canon gives me .MTS files and the Sony produces .M2TS files.  What do I need to do to be able to work with these files in Premiere Pro?  I've searched and gotten that I'll need to purchase a codec.  But are both file types going to be good with one codec?
    Also, what are the steps to getting started?  Purchase the codec, load the codec...Will there be any other steps to working with the files in Premiere?
    I'm sorry for the basic questions, I'm a photographer!  I've never worked with video before, and this is HARD!
    Thank you for your help,
    Michelle

    Hi, Michelle.
    I'm nowhere near the authority on this stuff that many of the others are here, but I have Premiere Pro CS4 and I work directly with AVCHD .mts files from my Panasonic camera. I simply browse to the directory where the .mts files are located and drag them into the project. I didn't need to purchase any additional codec, this is natively supported in Premiere CS4.
    I can't speak to m2ts files as I don't have any gear that generates them.
    One thing you do need to know, however, and this is important. Whether you're running a Mac or a PC, if you're going to work with high def footage such as AVCHD, you're going to need a fairly high performance computer with sufficient RAM, good performing hard drives and a fast CPU.
    I tried this on a PC that was fine for my recording studio (audio), fine for professional software development, but choked and stuttered working with HD material. That's not a problem with the Adobe software, it's just the nature of the beast. HD is extremely demanding stuff, so you need top flight gear to work with it. I bought a higher performance PC and now it runs just fine.
    Hope this helps,
    Chris

  • How can I work with WindowsAccessBridge.dll from VB6?

    Hi,
    I have one java application(e.g JAlbum). Whenever I start that application it promt to enter username and password.
    Now what I want to do is?
    I want to get that both text boxs values and set some values of that text boxes with my VB 6.0 code.
    I have found that with help of WindowsAccessBridge.dll we can do something which I want. But they didn't provide any example source code in VB 6.0.
    Can anybody help me that how can I get content of Java Application. How can I use WindowsAccessBridge.dll in my VB project. I can do it for windows application by using IAccesible. But I don't know that how can i do it for Java with WindowsAccessBridge.dll.
    Please provide me some proper steps to work with WindowsAccessBridge.dll in VB 6.0.
    Please help me as soon as possible. If possible please provide me some source code in vb 6 or links.
    Thanks in advance.

    Hi Peter,
    Thanks for your reply.
    I have developed it using VB 6.0. Please check the below code.
    '' General Declaration
    Option Explicit
    Private Declare Function isJavaWindow Lib "WindowsAccessBridge" (Hwnd As Long) As Boolean
    Private Declare Function FreeLibrary Lib "kernel32" (ByVal hLibModule As Long) As Long
    Private Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA" (ByVal lpLibFileName As String) As Long
    Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hwnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
    Private Declare Function FindWindow _
                    Lib "user32.dll" _
                    Alias "FindWindowA" (ByVal lpClassName As String, _
                                         ByVal lpWindowName As String) As Long
    Private Sub Form_Load()
    Dim Var_g_HwndRec As Long
    Dim lb As Long
    Var_g_HwndRec = FindWindow(vbNullString, "CI for a proportion")
    lb = LoadLibrary("WindowsAccessBridge")
    MsgBox isJavaWindow(Var_g_HwndRec)
    End SubAt the time when I ran this program I got an runtime error "49', bad DLL calling convention.
    Can you please tell me that what could be the problem?

  • BAPI with LSMW

    hi all,
    Any one has step by step procedure  BAPI with LSMW.
    BAPI with BDC.
    sri

    Hi Sri,
    Please Go through this Link ,
    BAPI And LSMW
    Regards,
    Ramganesan K.

  • How to work with information broad casting

    hi i am subbu , can any one one give me steps to work  with information broad casting and if possible some soft copies

    Hi subbu,
    welcome to SDN.
    Information broadcasting allows you to make objects with Business Intelligence content available to a wide spectrum of users, according to your own requirements.
    Go through the help,u will get much details about this.
    [HELP|http://help.sap.com/saphelp_nw04/helpdata/en/a5/359840dfa5a160e10000000a1550b0/content.htm]
    Regards,
    srikanth

  • Keep getting error message saying ipod detected but could not be identified properly - I have tried all the steps on the support page twice and it still will not work!  I am running windows 8 (which it has worked with ok before) - struggling :(

    keep getting error message saying ipod detected but could not be identified properly - I have tried all the steps on the support page twice and it still will not work!  I am running windows 8 (which it has worked with ok before) - struggling
    I recently bought some new albums and can't play them on my ipod

    I just encountered the same problem on my 2 month old MBPro.  I found a work around by changing USB ports.  As for the actual cause or the reason why that worked, I dont know.  The USB port I was using works fine with my phone or other USB devices.

  • Iphoto will not open I am asked to check with developer that iphoto works with this version of OS x I have followed all the steps recomended and reinstalle ILife but to no avail

    Iphoto will not open I am asked to check with developer that iphoto works with this version of OS x. I have Mountain Lion OS X I have followed all the steps recomended  by T Devlin in a previous discussionand reinstalle ILife but to no avail

    To reinstall iPhoto you'll have to delete the current application and all files with "iPhoto" in the file name with either a .PKG or .BOM extension that reside in the:
    HD/Library/Receipts folder (10.5 and earlier)
    or from the /var/db/receipts/  folder (10.6) .
    or from the /private/var/db/receipts folder (10.7 or later)
    Then install iPhoto from the source it came from originally.

  • I have an iPhone 5.  Which 3rd party apps work with Apple Health to record daily steps???

    I have an iPhone 5.  Which 3rd party apps work with Apple Health that sync with the daily steps data repository???

    Iran uses GSM, so the iPhone 5 will work.  It is already unlocked.  Just put local Iranian SIM in phone. 

  • I cannot get my zagg folio to work with splashtop 2...need step by step directions!  Please help!

    Does the zagg folio work with the splash top 2 on my ipad?  I try to type and the screen is frozen.  However I can type from my windows pc and it shows up just fine on the ipad?  What am I doing wrong or what step by step directions have I missed?  Please help as I am a college student and need help!  Thank YOU.

    Does the zagg folio work with the splash top 2 on my ipad?  I try to type and the screen is frozen.  However I can type from my windows pc and it shows up just fine on the ipad?  What am I doing wrong or what step by step directions have I missed?  Please help as I am a college student and need help!  Thank YOU.

  • Does the 27 inch iMac 3.2GHz work with a step approximated sine wave?

    Regarding the 27 inch iMac 3.2GHz Intel Core i3 Apple Computer... does it work with a step approximated sine wave?

    In configuring a UPS uninterruptible power supply with an iMac, APC asked, "Does the 27 inch iMac 3.2GHz Intel Core i3 Apple Computer work with a step approximated sine wave?"
    References checked
    http://store.apple.com/us/product/T6566LL/A
    http://www.apc.com/products/resource/include/techspecindex.cfm?basesku=SUA1500RM2U
    http://store.apple.com/us/product/H0880LL/A
    http://www.apc.com/products/resource/include/techspecindex.cfm?basesku=BX1500G

  • Customer master (XD02) with LSMW

    Hi All,
    I am trying to update customer master (XD02) with LSMW. But i the First step i.e. Maintain Object Atrributes... when I clic batch input recording & try to give a recording name in th second line... it throws an error saying "Enter a vali Value"... It does not accept a recording name & does not allo me to click Recording : Overview button .
    Has this error to do anything with the settings??... The sandbo in which I am working has the component version "SAP R/ Enterprise"(found out by System --> Status) ... Please Help

    hI,
    You will have to create recording first & then select from drop down box of "Batch Input".
    To create recording pls follow this:
    Go TO T code : LSMW
    Create Project, Subproject & objects.
    In Maintain Attributes - press F8
    In menu bar
    Goto---> recording overview
    Now you can create your recorindg which wil be avaliable for selection.
    rgds,

Maybe you are looking for

  • Free Goods offer

    Dear Gurus: We have a situation here, we have a promotion that when a customer will buy product A - 10 pcs will get product B free- 2pcs. The strategy group in the material master is set such as way that Sales Orders are __NOT__promised at the time o

  • Error in Commitment Check message

    We are on SRM 4.0 and have funds availability turned on in the backend system (ECC 5.0).  A user created a shopping cart using multiple sources.  However, after the cart was approved, it would not transfer to the backend.  We are getting the error me

  • Check on Duplicate IBAN

    Gentlemen, Can standard SAP prompt or throw error message when a user maintain IBAN for an employee in IT9 which is already assigned to some other employee meaning duplication of IBAN is not allowed, every employee should have unique IBAN, can standa

  • Wrapper cannot find servlet class error

    Hi all! I'm receiving a mysterious error when I try to run my web ap. "Wrapper cannot find servlet class com.ruffalocody.report.ReportServlet or a class it depends on" I'm running it on JBoss 3.2.7, and I have another web ap, made almost identical to

  • Problem exporting to PDF

    Adobe CS5 - InDesign V7.0 Mac OSX 10.6.8 Using InDesign, when I export this file to PDF (High Quality Print), the Outer Glow of some text and PSDs are being rendered as blobby outline strokes.  However, when I export the same file as JPEG, the render