By using lsmw with bapi
hi experts,
by using bapi_po_create, i have to upload the data by using lsmw.please help me.what are the step to upload the data?
thank you
with regards,
rohit
Refer these links:
1. BAPI And LSMW and
2. Getting BAPIs into LSMW?
Regards,
Ravi
Similar Messages
-
I want to upload material master (MM01) using LSMW with BAPI method
I want to upload material master (MM01) using LSMW with BAPI method and also later on I may need to change the updated data.
Which business object and Method I should use so that i can do both.
Thanks
kumar nHi,
The business object is BUS1001.
Thanks,
Murali -
Sales order Using LSMW and BAPI BUS2032
Hi Guys,
I am trying to use LSMW for creating sales order through BAPI.
Business Object BUS2032
Method CREATEFROMDAT2
Message Type SALESORDER_CREATEFROMDAT2
Basic Type SALESORDER_CREATEFROMDAT202
I can do it using a BDC program.
I want to know how the sales order flat file will look like (one header and multiple line item)if i am using LSMW with BAPI and how it is mapped for multiple line items.
Thanks in Adv.
AkhilSee if you can get something out of this.
One simple step by step example
Complete the step one (you are using the correct BAPI )
insetp 2(Maintain Source Structures) create source structures like with the header and details hierarchy
5 ZCFOF0021_HDR Header
ZCFOF0021_PARTNER Partner
ZCFOF0021_ITM Item Detail
In Step 3(Maintain Source Fields) create the fields for all source structures like below example
5 ZCFOF0021_HDR Header OLDNR C(008) Legacy JDE Sales Order Number
VKORG C(004) Sales Organization
VTWEG C(002) Distribution Channel
SPART C(002) Division
AUART C(004) Sales Document Type
VDATU C(008) Requested delivery date
BSTKD C(020) Customer purchase order number
BSARK C(004) Customer purchase order type
BSTDK C(008) Customer purchase order date
INCO1 C(003) Incoterms (part 1)
INCO2 C(028) Incoterms (part 2)
ZTERM C(004) Terms of payment key
LIFSK C(002) Delivery block (document header)
FAKSK C(002) Billing block in SD document
WAERK C(005) SD document currency
KURSK C(009) Exchange Rate for Pricing and Statistics
AUTLF C(001) Complete delivery defined for each sales order
VSBED C(002) Shipping conditions
ZOTC_PATNAME C(035) Patient Name
ZOTC_PATREFNO C(035) Patient Reference Number
ZOTC_IMPDATE C(008) Implant Date
BNAME C(030) Branching name
TAXK1 C(001) Alternative tax classification
5 ZCFOF0021_PARTNER Partner
OLDNR C(008) Legacy JDE Sales Order Number
PARVW C(002) Partner function
KUNNR C(010) Sold To
NAME1 C(035) Name 1
STRAS C(035) House number and street
STR_SUPPL1 C(040) Street 2
LAND1 C(003) Country Key
PSTLZ C(010) Postal Code
ORT01 C(035) City
REGIO C(003) Region (State, Province, County)
AUART C(004) Sales Document Type
5 ZCFOF0021_ITM Item Detail
OLDNR C(008) Legacy JDE Sales Order Number
MATNR C(018) Material Number
WERKS C(004) Plant
LGORT C(004) Storage Location
VRKME C(003) Sales unit
KSCHL2 C(004) Condition type
KBETR2C C(011) Condition rate with decimal places and minus sign
KWAER2 C(005) Currency key
WMENGC C(013) Order qty in sales units - 00009001 corresponds to 9.001
CHARG C(010) Batch Number
In Step 4 (Maintain Structure Relations) assign source structures to target strucutres like below
E1SALESORDER_CREATEFROMDAT2 Header Segment <<<< ZCFOF0021_HDR Header
E1BPSDHD1 Communication Fields: Sales and Distribution Document Header <<<< ZCFOF0021_HDR Header
E1BPSDHD1X Checkbox Fields for Sales and Distribution Document Header
E1BP_SENDER Logical System of Sender
E1BPSDLS SD Checkbox for the Logic Switch
5 E1BPSDITM Communication Fields: Sales and Distribution Document Item <<<< ZCFOF0021_ITM Item Detail
E1BPSDITM1 Communication Fields: Sales and Distribution Document Item
E1BPSDITMX Communication Fields: Sales and Distribution Document Item
E1BPPARNR Communications Fields: SD Document Partner: WWW <<<< ZCFOF0021_PARTNER Partner
E1BPSCHDL Communication Fields for Maintaining SD Doc. Schedule Lines <<<< ZCFOF0021_ITM Item Detail
E1BPSCHDLX Checkbox List for Maintaining SD Document Schedule Line
E1BPCOND Communication Fields for Maintaining Conditions in the Order <<<< ZCFOF0021_ITM Item Detail
E1BPCONDX Communication Fields for Maintaining Conditions in the Order
E1BPCUCFG CU: Configuration Data
E1BPCUINS Instances of Several Configurations
E1BPCUPRT Part_of Entries of Several Configurations
E1BPCUVAL Characteristic Values of Several Configurations
E1BPCUBLB BLOB Internal Configuration Data (SCE)
E1BPCUVK Variant Condition Keys in Configurations
E1BPCUREF CU: Reference Order Item / Instance in Configuration
E1BPCCARD Communication Table: Means of Payment Order/Billing Document
E1BPSDTEXT Communication Fields: SD Texts
E1BPSDKEY Key in Sales and Distribution Document
E1BPPAREX Ref. Structure for BAPI Parameter EXTENSIONIN/EXTENSIONOUT <<<< ZCFOF0021_ITM Item Detail
5 E1BPADR1 BAPI Reference Structure for Addresses (Org./Company) <<<< ZCFOF0021_PARTNER Partner
E1BPADR11 BAPI Reference Structure for Addresses (Org./Company) <<<< ZCFOF0021_PARTNER Partner
In Step 5(Maintain Field Mapping and Conversion Rules) assign source fields to target fields
Map each filed to the target fields. -
LSMW with BAPI for BAPI_CONTRACT_CREATE
Hi,
I am using LSMW with BAPI for creating purchasing contract.
I got status of the Idoc as " 64 " means Idoc is ready to transferred to application but when i go to next step ...
I am getting dump when I executing the step "Start Idoc Processing"
The errors shows like this: - "Object cannot be assigned to null"
Any help on this:-yes ..
I can see the data into the idoc.
But when processing this idoc into application...then going into dump.
Any ideas...Please let me know. -
EDI_SEGMENTS_ADD_BLOCK is empty - LSMW with BAPI
Hi everybody!
I'm trying configure a LSMW with BAPI, but when I try to do the step "Start IDoc Generation" I receive the message "EDI_SEGMENTS_ADD_BLOCK is empty".
I already configured the Ports, Partner Type and Partner Number, but I am still receiving the message.
My Example Scenario is:
- A test LSMW to change flight table using the BAPI "BAPI_FLIGHT_SAVEREPLICA".
- The Port is FILE type and the file is local (PC).
-The Partner Type is LS.
- The Partner Number is using FLIGHT_SAVEREPLICA message type in Inbound parameters.
Anybody knows the possible cause of this?
TksAfter search I tried many things to solve it, in the end I just rebuild the LSMW step by step again and the problem does not appeared again...
-
How to do the lsmw with bapi?
hi
while upload the vendor master data using (xk01) from nonsap to sap
how to do the lsmw with bapi? pls could u give the steps with scren shot to me.
regards
eswar.Hi
BAPI - BAPIs (Business Application Programming Interfaces) are the standard SAP interfaces. They play an important role in the technical integration and in the exchange of business data between SAP components, and between SAP and non-SAP components. BAPIs enable you to integrate these components and are therefore an important part of developing integration scenarios where multiple components are connected to each other, either on a local network or on the Internet.
BAPIs allow integration at the business level, not the technical level. This provides for greater stability of the linkage and independence from the underlying communication technology.
LSMW- No ABAP effort are required for the SAP data migration. However, effort are required to map the data into the structure according to the pre-determined format as specified by the pre-written ABAP upload program of the LSMW.
The Legacy System Migration Workbench (LSMW) is a tool recommended by SAP that you can use to transfer data once only or periodically from legacy systems into an R/3 System.
More and more medium-sized firms are implementing SAP solutions, and many of them have their legacy data in desktop programs. In this case, the data is exported in a format that can be read by PC spreadsheet systems. As a result, the data transfer is mere child's play: Simply enter the field names in the first line of the table, and the LSM Workbench's import routine automatically generates the input file for your conversion program.
The LSM Workbench lets you check the data for migration against the current settings of your customizing. The check is performed after the data migration, but before the update in your database.
So although it was designed for uploading of legacy data it is not restricted to this use.
We use it for mass changes, i.e. uploading new/replacement data and it is great, but there are limits on its functionality, depending on the complexity of the transaction you are trying to replicate.
The SAP transaction code is 'LSMW' for SAP version 4.6x.
Check your procedure using this 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
<b>Reward points for useful Answers</b>
Regards
Anji -
How do I use LSMW with a bespoke dataload program?
Hello data migration gurus, I need your help.
I need to migrate data from a legacy system into a suite of bespoke functionality we've written within SAP CRM. We are planning to write a program to perform the load. However we would like such a program to be reusable, so it makes sense to keep the data load separate from the data formatting, which may vary between customers.
The obvious answer is to use LSMW for the data formatting, calling our load program as the last step. However in LSMW you can only choose from a list of standard dataload programs. Does anyone know how to use LSMW with a bespoke program? It looks like transaction SXDA might be involved, but it isn't too clear. If anyone has done this kind of thing elsewhere, advice would be much appreciated!
Obviously as an alternative we could just write a separate program to format the data - it would just be a lot better if we could use LSMW.No longer required.
-
LSMW with bapi BAPI_REQUISITION_CREATE
Hi
I'm creating an LSMW for create purchase requisition with Bapi (BAPI_REQUISITION_CREATE)
I'm trying to upload 2 items for a PR but the LSMW is creating 2 PR with each item.
How can I tell to the LSMW that I have to item for the same PR?
Remember this bapi doesn't has header.Hi,
you need to define hierarchy in your in put file to merge required lines into one BAPI call. You can find some examples how to create order with multiple items (for example [this one|http://www.scribd.com/doc/6646673/Lsmw-With-Bapi]). So you can easily adapt it to your BAPI.
Cheers -
While LSMW with BAPI method doing is any prerequisite required.
Hi,
When i entered the business object in lsmw with bapi method.
i am getting the error messge is enter the valid value. when i press f4 its showing the object.but when enter the method its giving the error messge is enter the value. when i checked through BAPI tcode its avaliable.
Object name is BUSISM007.
method is CREATEFROMDATA.
if anybody knows it would be helpful.
regards
Divacheck it BUSISM007---->not found
Maintain the default values for IDoc inbound processing..
in initial screen of lsmw(project, subproject)..
setting--->idoc inbound processing -
I am trying to do LSMW with BAPI for transaction mm01. can anybody tell me how to do that, with steps.
Thanks
Ganesh vidyarthiHi Ganesh
Please check the following Links
https://forums.sdn.sap.com/click.jspa?searchID=274344&messageID=2796820
https://forums.sdn.sap.com/click.jspa?searchID=274344&messageID=2532904
https://forums.sdn.sap.com/click.jspa?searchID=274344&messageID=2124208
https://forums.sdn.sap.com/click.jspa?searchID=274344&messageID=282539
https://forums.sdn.sap.com/click.jspa?searchID=274344&messageID=2549249 -
Send me the step step process of LSMW with BAPI
hI
Plz send me realetd document that expalins step step process of LSMW with BAPI
Thankshttp://sapabap.iespana.es/sapabap/manuales/pdf/lsmw.pdf
-
LSMW with BAPI for Person's Qualification Profile - BAPI_QUALIPROF_CHANGE
All,
I tried to use BAPI 'BAPI_QUALIPROF_CHANGE' to upload the qualification profile for an employee. The corresponding object type for the function module is BUS7017 (& the method is CHANGE). But in standard SAP, in the initial LSMW attributes screen, it supports only those objects with an ALE interface. But, BUS7017 does not have an ALE interface.
It is possible to create an ALE interface for a BAPI in the transaction 'BDBG'. After creating an interface, I get the business object in the F4 help for the Business object (LSMW attributes screen). But, I get an error in the step 'Maintain structure relations'. It is saying 'target structure could not be found'.
Can you please tell me what I am missing here. Also let me know how to generate a function module for the inbound/outbound processing of an ALE with BAPI?
Thanks in advance.
Regards,
Parvath.Hi,
Did u get any solution to this . I am trying to upload cost centers and facing the same problem. If you have found any solution , please pass it.
Sutapa -
Hi,
Please tell me step by step lsmw recording method with bapi.
it's argent.Hi,
Check this
https://www.sdn.sap.com/irj/sdn/directforumsearch?threadid=&q=lsmw+tutorial&objid=f50&daterange=last90days&numresults=15
aRs -
How to transfer data using Lsmw with Recording...
hi,
Please let me know .How to use Lsmw to transfer data using recording.
Thanks,
Lawrence.Hi Lawrence,
please go thru this link for LSMW data transfer techniques in PM, MM and SD modules.
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90d90895-68dd-2a10-f096-bf8cf2e2f65b
If u want to know in detail go thru this link
http://help.sap.com/saphelp_nw04s/helpdata/en/87/f3ae74e68111d1b3ff006094b944c8/frameset.htm
Hope this will be useful to u..
Thanks
Vijayasree -
Using LSMW with IDocs to transfer merchandise categories?
Hi, Gurus,
i tried to upload merchandise categories by LSMW with IDocs.
Message Type: CLSMAS
Basis Type: CLSMAS03
The IDocs can be created and processed without problem. However, I cannot see the new Hierarchy Level in Tcode CLWO.
Anyone has done it? Any tipps would be highly appreciated!
Regards
Kefeihi, Hakim,
unbelievable! I solved the problem.
U cannot imagine, where is the trick. UPPERCASE!!
The class number in the soure structure is written in lower case. They can be writen in SAP and be shown by F4. But they cannot be displayed. SAP says always they do not exsit.
Now, I understand, SAP is so sensible to character.
Thank you for your support!
nice weekend!
Maybe you are looking for
-
Link a Form Field to new Text Field
PDF - form field Looking for a code to link a form field(text_1, on page #5) to another, new form field(text_2, on pages 2-4). Maybe a "Page Properties" action (i.e., Page Open: field text_2 = field text_1) ~~ Why.... busy but here's why In the PDF,
-
When using Time Machine, if I delete items from my computer, will they still be backed up to access later on my external hard drive? In other words, when time machine backs up again, will it delete the files from the back up that I have deleted from
-
System is looking in the wrong place for modules.[SOLVED]
I did a pretty big system update last night that ended up breaking a pretty big portion of everything. No usb, network interfaces, trackpad, etc. Checking logs the biggest issue is clearly this: modprobe: FATAL: Could not load /lib/modules/2.6.26-ARC
-
can anyone suggest a FM for finding the type of attribute of a program: if it is a module pool, executable , etc. thanks!
-
How to increase the salary based on the percentage value
Hi All, Could you please let me know which API need to be used to implement the hike in salary based on the percentage value. And what all the parameters to be used. Appreciate your help... Thanks...