PO upload - LSMW
Hi ,
Can anyone provide me, the template of the file (in excel or word) which will be used to upload the POs from legacy to SAP. There will be header and item detials for all items. How to handle it? pls give me in detailed info.
Rgds
Kumar
Hi,
http://www.sap123.com/showthread.php?t=55
http://www.sap123.com/showthread.php?t=98
Please Check in Second Link bottom of the PAge for Uploading format.
Regards,
Ashok
Similar Messages
-
Hai guys,
I want to upload material using lsmw for material master.i am following all the steps in the lsmw. i am using the batch input method for uploading.If the sales unit is different from the unit of measure..i will be getting the conversions data like numerator and denominator fields.
i am getting the same fields if the issue unit is also different.so i couldnt able to map it correctly with the conversion fields..this repeating fields are not captured in the recording for the target fields.
so i couldnt able to map it.please help me to solve this problem..
with regards,
sathish..Hi,
Please close this duplicate thread..
Thanks,
Naren -
Upload LSMW for Grant Master and Business Partner
Hi,
Does anyone have LSMW' for uploading business partners and Grants
A basic one can be shared. I will build up on that in terms of adding fields etc...
Regards
AnishHi,
As both the Grant master and the business partner have tables in several screens, using LSMW is not recommended.
For the grant master record I'd use BAPI_0035_CREATE - Works better and faster.
LSMW cannot support complicated scenarios, such as adding an alternating number of sponsored classes per grant (for example - one grant has 3 classes and another has 4 classes). The BAPI can solve such problems.
Best regards,
Shahaf Yaari -
Hi experts
When I run the LSMW for materials upload I am getting this error
"Idoc included in idoc packet containing an error : transfer it separately"
But when I run the LSMW for each material separately it works fine.
Please help me to sort this out.
Thanks
Regardswhat I usually do is run lsmw steps up to 'Display Converted Data', then use sxda to schedule and run a background job, If in ECC 6.0 system, see logs in MM90
-
Dear Experts,
how to upload partner functions by using LSMW. I developed LSMW and if i go to partner function tab there is only one partner function field is available I need to upload 4 partner functions. Can any one help me out in this regard.
regards,
sivaHello Sivasai Myneni,
Demo Example 1
LSMW to Update Customer Master Records with Transaction Recording
Call Legacy System Migration Workbench by entering transaction code LSMW. Every conversion task is grouped together as
Project / Subproject / Object structure. Create a Project called LSMW_DEMO and a Subproject as CUSTOMERS and Object as
CUST_obj as shown in Figure 1.
Figure 1 Conversion Task with Project, Subproject and Object
The main screen of LSMW provides wizard-like step-by-step tasks, as shown in Figure 2. To complete your data conversion, you
need to execute these steps in sequence. Once a step is executed, the cursor is automatically positioned to the next step.
Note that these steps may look different depending upon your Personal menu settings. You could make step numbers visible by
Numbers on icon or hidden by Numbers off icon. You can execute a step by double-clicking on the row. Toggle icon
Doubleclick=Display or Doubleclick=Edit, makes the step in display mode or change mode.
Figure 2 LSMW Wizard initial screen
Step 1: Maintain Object attributes
In this example, you will be updating the customer master records with the help of recording a transaction (XD02). Choose radio
button Batch Input Recording and click on the recording overview icon to record the R/3 transaction. Enter the Recording name as
XD02_REC, the description as Customer Master Updates Recording, and the transaction code as XD02.
Figure 3 Object type Transaction Recording
The system calls the transaction code XD02 and prompts you to complete the Change
Customer transaction, as shown in Figure 4. Enter the key customer information (I entered customer number 1000, sales
organization 1000, distribution channel 01, and division 00) and choose Sales view within Sales area data. Make changes to
these three fields (I entered, sales office 1010, sales group 110, and customer group 01) and save the transaction.
Figure 4 Transaction recording for Transaction Code XD02
Once the transaction is completed, R/3 records the flow of screens and fields and saves the information, as shown in Figure 5.
Figure 5 Transaction recording overview
Note that the fields are populated with default values. The values you entered when you recorded the transaction are set by
default.
Note that if you have more fields in the recording than needed, you can remove them by clicking Remove Screen field icon.
Observe that the transaction-recording process stores field names in a technical format. By pressing the F1 key on individual
screen fields and then pressing the F9 key, the system displays technical names. You then can replace the technical names with
descriptive names. Double-click on the field RF02D-KUNNR and enter the name as KUNNR and the description as Customer
Account Number and remove the default value. (See Figure 6.)
Figure 6 Field attributes
Similarly, double-click on all other fields with default values and make appropriate changes. Once you have made changes, the
recording overview screen looks like what you see in Figure 7.
Figure 7 Transaction Recording Overview with screen field attributes
Save your changes. When you go back to the initial screen, you will see that the initial screen steps have changed. Since you want
to import data via the BDC method, the Direct Input and IDoc-related steps are hidden, as they are not relevant.
Step 2. Maintain Source Structures
Give a name and a description to the source structure (Figure 8).
Figure 8 Source Structure
Step 3. Maintain Source Fields
In this step, you need to list what fields are present in the source structure. The easiest way is to click on Table Maintenance icon
to enter Fieldname, Type and Length for each field as shown in Figure 9.
Figure 9 Source fields of source Structure
Note that your input file will have four fields as key fields and you need to update three fields in the system.
Step 4: Maintain Structure Relations
Execute a step to Maintain Structure Relations. (See Figure 10.) Since, there is only one Source and Target Structure, the
relationship is defaulted automatically.
Figure 10 Structure Relation
Step 5: Maintain field mapping and conversion rules
Field RF02D-D0310 represents that you chose Sales view for the customer Master screen accordingly its value should be set to
X. Keep your cursor on field RF02D-D0310 and click on Constant rule icon to choose the constant value of X.
If your source file already has the field value, you choose rule Source Field.
Keep cursor on field KUNNR and click on Assign Source field icon to choose source field CUSTOMER from structure XD02S as
shown in Figure 11.
Figure 11 Assign source fields
Similarly, assign Source Field rules to the remaining fields.
Once all the fields are mapped, you should have an overview screen as shown in Figure 12.
Figure 12 Field mapping and Conversion rules overview
Step 6: Maintain fixed values, translations, user-defined routines
You can also maintain re-usable translations and user-defined routines, which can be used across conversion tasks. In this case,
that step is not required.
Step 7: Specify files
In this step, we define how the layout of the input file is. The input file is a [Tab] delimited with the first row as field names. It is
present on my PC (local drive) as C:\XD02.txt. (See Figure 13.)
Figure 13 File attributes
Create an Excel file (Figure 14) with your data and save it as a Tab-delimited text file on your local drive (C:\) and name it XD02.
txt.
Figure 14 Source data in Excel file (saved as Tab delimited file)
Step 8: Assign files
Execute step Assign Files (Figure 15) and the system automatically defaults the filename to the source structure.
Figure 15 Assign file to Source Structure
Step 9: Read data
In this step, LSMW reads the data (Figure 16) from the source file (from your PCs local drive). You have the option to read only
selected rows and convert data values to Internal format.
Figure 16 Read Data
Step 10: Display read data
This step (Figure 17) is optional. If required, you can review the field contents for the rows of data read.
Figure 17 Display Read Data
Step 11: Convert data
This is the step that actually converts the source data (in source format) to a target format. Based on the conversion rules defined,
source fields are mapped to target fields.
Step 12: Display Converted data
Again this is an optional step to view how the source data is converted to internal SAP format (Figure 18).
Figure 18 Display Converted Data
Step 13: Create batch input session
Once the source data is converted in an internal format, you can create a batch session to process updates (Figure 19).
Figure 19 Create Batch Input Session
Step 14: Run Batch Input Session
You can execute the BDC session by Run Batch input session. Executing a batch input session is a standard SM35 transaction for
managing BDC sessions. Once you have successfully executed the batch input session, the customer master records are updated in
the system. You can confirm this by viewing the customer master records (XD03).
Note! Browsing thru these 14 steps, you may get a feeling that this is a very lengthy and time-consuming activity. However, for
the purposes of demonstration, I have made it detailed. Although it looks lengthy, actually it takes hardly few hours from start-to-
finish! After playing around with few simple LSMW scripts, you will find it so easy to change and create more complex ones.
Demo Example 2
LSMW to Update Customer Master Records with Standard Object
As an alternative to using Transaction Recording, you could also use a standard SAP object to update Customer Master Records.
Business Object 0050 is already pre-defined in the system with standard Batch Input Interface Program RFBIDE00.
Create an Object CUST_OBJ within Project as LSMW_DEMO and Subproject as CUSTOMERS as shown in Figure 20.
Figure 20 LSMW Object with Standard SAP Object
Note! For the Demo example 2, I will list only those steps that are different from the first demo example.
Step 1: Maintain Object attributes
You will be updating the customer master records with the help of Standard Batch Input; therefore, choose radio-button Standard
Batch/Direct Input as shown in Figure 21. Enter Object 0050 for Customer Master records and default method 0000 and click
on Save.
Figure 21 Standard Batch/Direct Input Object Attributes
Step 4: Maintain Structure Relations
Sales view of Customer Master is stored in table KNVV. Accordingly, you need to update structure BKNVV. However, in addition,
the Standard Object 0050 also requires updates to BGR00, BKN00 and BKNA1 structures. (If you do not maintain Structure
relations for mandatory entries, you might get a message such as Target structure BKNA1 needs a relation to a source structure.)
Even though you dont want to update any fields in these structures, you need to create a relationship with source structures. In
all, you need to create relationship for four target structures.
Create relationship between source structures XD02S with these target structures with icon Create Relationship .
Keep Cursor on these four target structures and click on icon Create Relation and structure relations are maintained as shown in
Figure 22.
Figure 22 Structure Relation
Step 5: Maintain field mapping and conversion rules
Keep your cursor on TCODE field and click on Insert Rule icon
Figure 23 LSMW Conversion Rules
Choose radio button Constant (Figure 23) to enter value XD02 transaction code.
Keep your cursor on field KUNNR and click on Assign source field icon
Choose source field Customer from source structure XD02S. (See Figure 24.)
Figure 24 Assign Source fields
Similarly, choose source fields for Sales Organization, Distribution Channel, and Division. (See Figure 25.)
Figure 25 Field Mapping and Conversion Rules
Scroll down to structure BKNVV fields and assign source fields to three fields Sales Office, Sales Group, and Customer Group
(Figure 26).
Figure 26 Field Mapping and Conversion Rules
Save and go back to main screen.
Step 12: Display Converted data
When you convert data, LSMW automatically converts into the appropriate structure layouts, as required by Standard program
(RFBIDE00). (See Figure 27).
Figure 27 Converted data into multiple structures
Note that if you had only one record in source file, the converted file has four records.
Earlier, creating this input file, so that the standard interface program can read it, was a big nightmare, the primary reason being
that it could have multiple record layouts. Even for a simple conversion with one input record, you would have to create this
complex file with many record layouts. The advantage of LSMW is that it prepares these multi-layout files automatically.
Step 13: Create batch input session
Once source data is converted in internal format, you can create a BDC session to process the updates (Figures 28 and 29).
Figure 28 Create BDC Session
Figure 29 BDC Session CUST_OBJ created
Regards
AK -
Material upload LSMW..etc??
Hii experts
Can somebody explain me about the material stocks upload ..etc like cut over strategies with technical module help.
Like earlier LSMW , now its got changed .. what is that like BAPI , BADI..? what it mean , how it will work . what adavantages are there if we compare with LSMW.
Some body explain me about that ???
ThanksStep-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
Letu2019s 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 u201CBUS2012u201D and select u201CObj.type(Technical Object Nameu201D
4. Press ENTER
5. Following screen appears:
6. On the left side of the screen, Expand the u201CPurchaseOrderu201D.
7. Select u201CPurchaseOrderu201D 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. u201CIDoc Inbound Processingu201D screen appears. Enter the required details as shown below:
6. Click on u201CActivate IDoc Inbound Processingu201D.
7. Click on u201CYesu201D when prompted for u201CActivate IDoc Inbound?u201D
8. Hit on u201CBacku201D to return to the main screen.
9. Click on Continue (F8). Following Screen appears:
10. Select the Step 1 u201CMaintain Object Attributesu201D and select u201CExecuteu201D.
11. Select the radio button u201CBusiness Object Methodu201D 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 u201CMaintain Source Structuresu201D and click u201CExecuteu201D.
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 u201CCreateu201D again to create the child structure. Following popup appears:
Select u201CLower Levelu201D 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 u201CMaintain Source Fieldsu201D and hit execute.
16. Enter the fields as shown below:
17. Click SAVE and return to main screen.
18. Select step 4 u201CMaintain Structure Relationsu201D 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 u201CMaintain Field Mapping and Conversion Rulesu201D and click on execute. Maintain the Field Mapping as seen below:
20. Select step 7 u201CMaintain Source Filesu201D 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 u201CAssign Filesu201D 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 u201CRead Datau201D and click on Execute.
Click on Execute.
Return to the main screen.
23. Select the step u201CDisplay read datau201D and click on execute.
Click on the structure name to get the field level values.
24. Return to main screen and now select u201CConvert Datau201D.
25. Return to the main screen and select u201CDisplay Converted datau201D.
26. Return to main screen and select u201CStart IDoc generationu201D.
27. Now select the step u201CStart IDoc Processingu201D on the main screen.
28. Return to main screen and click on u201CCreate IDoc overviewu201D. Here the data record and status records of the IDoc could be viewed: -
Material Master upload - LSMW direct input method - Internal Number problem
Dear friends,
I am uploading material masters with LSMW - Direct Input Method.
The materials have internal numbers.
I have four plants and I want to extend the same material in all plants.
But LSMW is creating a new material for each row.
Is there any way out or any indication I put in file to repeat the internal numbers created for all other plants?
I can create another LSMW for material extension. But I want to know whether the problem can be solved in the current LSMW?
Regards,
Avinashhttp://www.sap123.com/a/98/
Check the internal number range once.... before extending mateial... -
Hi all
Can anyone provide me with a good step by step process for uploading a cost centre list using LSMW.
Thank you in advance
PeterHi Phani,
u can go for lsmw (if u want to use DI method first know which structure u have to take ) .
if u want to use Recording method( before starting do recording with functional guys , so that there is any issue while doing recording functional guys would be solved, and technical persons also dont have any problem while doing lsmw).
if u have coding in ur program (better go for BDC or BAPI)
after starting the job any issues let discuss in SDN.
Reward points to helpful answer. It Motivates us to Help Others.
Thanks
Naveen khan -
Customer Master Uploading LSMW TECH
Can any one help to sort-out the Following probelm.
While uploading the partner function Number to corresponding partner function iam not able to get the legacy data in the partner number screen fields. It gives an error 'make a entry in the required fields'.
but after we manually type numbers the legacy data numbers are populated. with out manul entry how could solve this problem.
Error was in the partner number field.
I have following partner functions and Number as follows
SP -
JS -
PY - iNTERNAL
SH-
how could I populate the values to corresponding partner
function number expect PY from flat file.
ThanksThanks for reply.
The probelm is not in the file. Actually other partner function are loaded. when we are trying for Ship-to- It was not working . Because for example to sold- to -
In Paterner Function Screens like
SP - Internal
JS - Internal
Bp-Internal
PY-internal.
Same for SHIp to PY
SP -
JS -
Bp-
PY-internal.
This Internal missing in the screen for PY so It is asking to fill Manadtory Fields .
When it load to data It moves to previous screen fill data and it load to partner function screen why because it was table control ,I think u know how the a table control values are load in the screen. -
Cost center upload LSMW, missing company code field
I am planning on doing an LMSW with a custom recording to load cost centers.
The input file has a field for company code.
I do not see company code anywhere in the screens of KS01.
Now what?
Thanks,
JeffHi Jeff,
The company code is linked to the contolling area in table TKA02.
So in your porgram query this table to get the corresponding controlling area for the company code.
Kind regards,
Robert -
How to specify a rental object on a contract during a BAPI upload (LSMW)
Using the BAPI BUS1505 (Flexible Real Estate Contract) and method CREATE, you have the option of specifying the rental objects on the contract.
The target structure is E1BP_RE_OBJECT_REL_DAT and the fields are
CONTRACT_OBJECT_TYPE Business Object Type of Contract Object
CONTRACT_OBJECT_ID ID Part of Contract Object
VALID_FROM Date: Relationship Valid From
VALID_TO Date: Relationship Valid To
OBJECT_GROUP_TEXT Name of Object Groups
OBJECT_GROUP_NUMBER Group Number
INFORMATIONAL_ASSIGNMENT Informational Assignment
What "ID part of contract object" must I specify if I want to specify a rental object?
The issue is that rental objects contain 3 parts and not 1:
- Company Code
- Business Entity
- Rental Object Number
I have tried to specify the number in the format "IMPPLL0000102300030003"
where "PPLL" is the company code, "1023" is the business entity and "30003" is the rental object number, but this or any other code is not working. The error is "Rental object was not entered (REBDRO027)
Cheers
Joeit looks like the "db.select" method automatically puts select onto the start of the query.
So just
ResultSet rs = db.select("* FROM customer");
ResultSet rs = db.select("* FROM customer WHERE color = 'yellow' ");would probably work
The executeQuery method accepts any valid SQL that would run on the database.
If you want to use parameters I would recommend you use a JDBC PreparedStatement
http://java.sun.com/docs/books/tutorial/jdbc/basics/index.htmlCheers,
evnafets -
Create a LSMW for abumn asset transfer upload
hi all
we have a requirement form the user to upload all the existing assets to new asset shells through ABUMN, we need to create the
lsmw recording for the same, iam doing the lsmw recording and each time i do the recording the system says cant save the recording
has anyone worked on ABUMN asset transfer upload LSMW. please suggest your views on the same.
kind regards
aman
sap ficoHi ,
Please see below docuemnt which will help you in creating LSMW
LSMW for Functional Consultants in simple step-by-step way
Please search before you post -
Data conversion- GL , GL Open Line Item Upload
Hi,
For Objects GL Upload , GL Line item Upload : LSMW- BAPI,IDOC Methods possible .Is any standard Bapi , Idoc available.
And also share the advantage and disadvantage in using Ecatt for dataconversions.
Please share link which gives details for doing standard master data conversions.in LSMW we have Idoc method and batch input method
IDOC
Message Type GLMAST Master data G/L accounts
Basic Type GLMAST01 Master data G/L accounts:
Enhancement
Batch Input
Object 0010 GL A/C Master Record
Method 0002 Flat structure
Program Name RFBISA00
Program Type B Batch Input -
Dear all,
I have done direct input method for GL upload LSMW.
I am able to see converted data as well in right fields. but when trying to run batch input , it is giving me following error .
File FIN_GL_ABB_FIN_GL_1_GLCOA.lsmw.conv is being checked
Session 1 : Special character for 'empty field' is /
Trans. 1 : Transaction FS00 is not supported
... Last header record ...
... BSK00-STYPE 5
... BSK00-TCODE FS00
... BSK00-SAKNR 139204
... BSK00-BUKRS 0010
... BSK00-REF_SAKNR /
... BSK00-REF_BUKRS /
....Editing was terminated
Can any body help me , wht is the exact error ?
Thanks in advance.Componet Data type Lenght
type
STYPE_BI CHAR 1 0 Batch Input
TCODE CHAR 20 0 Transaction Code
SAKNR CHAR 10 0 G/L Account BUKRS CHAR 4 0 Company Code
SAKNR CHAR 10 0 G/L Account
BUKRS CHAR 4 0 Company Code
pls maintain these above mentioned ( 1,20,10,4,10,4)l enghts for each discriptions in the legacy file.. -
LSMW Issue (Depreciation Posting)
Hi,
My client uses LSMW to post depreciation in the system for Plant and Machinery. They use Shift Factor.
However, while uploading LSMW file, the upload goes successful and shows the interval being uploaded correctly in the system. However, the shift factor does not get uploaded correctly. :
1> On uploading for the first time, the system shows only one digit after decimel. For eg. if the shift factor is 1.28, the system after the LSMW upload shows only 1.2 ,
2> On uploading for the second time, the system shows that the interval has already been added in the system and it shows the shift factor as two digit after decimel as 1.20, instead of 1.28.
What could be the possibility of this happening?
Is ther any way wherein we can delete the uploaded LSMW file and do a fresh upload?
Kindly assist on the same.......Have a look to the decimal conversion you have in the LSMW-. When you work with EXCEL use round-up 2 decimals.
Use the same decimal format in you user defaults as in the upload file.
In LSWW i use text and no value fields. That solve a lot to
Maybe you are looking for
-
Install windows 8.1 on gpt on a bios system
Is it possible to install windows 8.1 on a gpt formatted partition on a BIOS or non-EFI system? Where can I locate descriptions for that?
-
Optimization on Load Time (Large Images and Sounds)
Hi, I have an all flash website that works by having each portion of it to load and unload in the center of a frame based off the navigation chosen. Load times on everything but one part of my site are ok. The dimensions of the part inside the frame
-
Batch upload Work schedule rule records
Hi Team, Can any update which standard program in SAP to mass upload work schedule rule table V-T508A apart from LSMW tool. Surya
-
Issue Installing Slipstreamed Acrobat (Pro & Standard)
Good Afternoon - A few days ago, I slipstreamed both (Pro & Standard) of our Acrobat X installation files for deployment with SCCM. After deployment failed, I looked up things in the event log, researched solutions, and slipstreamed again. Still...
-
Process screen but not display
Hi all, I want to process a screen logic in a module pool program screen but do not display it. i.e. 10 --> 50 --> 100 (screen 50 should not be displayed, but just pass the values or process logic) Please advise. Thanks Best regards, FS