Data conversion of material BOM by LSMW
Hi,
Right now I try to work on LSMW setting for data conversion of material BOM. However, I forgot how to set
the linkage of BOM header & item at LSMW since my last
experience was 1 year ago. I have set up 2 source structures, BOM_HD (header) & BOM_IT (item) from 2 files. Both source
structures contain one same source field, BOM_ID. From this identical BOM_ID field, the linkage of BOM header and items is set up between 2 files. Can
anyone know how to make the setting at LSMW ?
Thanks.
Regards,
Nancy
hello nancy,
their is no need of getting seperate reacording for both header and item. it will be enough if with only one in th lsmw in the first step u select the direct input method
and at source structure level create two strucutres such that one can be for header and the other would be for item
then in the same way while specifying file give first the header file and then the item file.
at the same step check whether the convert data is getting the logical path and file name or not if u dont then double click at that possition and create it. then ur recording will be done perfectly.
if u want the entire steps with screen shot i can send u
Similar Messages
-
Can anyone Explain about Data conversion for Material master In SAP MM
Can anyone Explain about Data conversion for Material master, Vendor In SAP MM
ThanksHi,
Refer following link;
[Data Migration Methodology|http://christian.bergeron.voila.net/DC_Guide/Data_Migration_Methodology_for_SAP_V01a.doc] -
Requirement in conversion of material master data
i have a requirement in conversion of material master data, what do i need to do in this, do i need to use the LSMW or BDC for this scenario can any one help me in this issue.
Hi Rocky,
You can go for either of these two methods.Conversion in the sense you are going to create one upload program for MM01 and will upload the data using the program
But I suggest go for BDC.Because in LSMW you can not capture all the views for material master.
I am writing steps(BDC recording) for this.Just follow if helpful:
1.Go to SHDB t-code.
2.Press NEW RECORDING
3.enter recording name,Transaction code(MM01) and then press Start recording.
This will take you to the transaction MM01,please enter the test data given by your functional consultant.Also select the views that required by client.
4.After recording save it.
5.After saving press program button from the menu.
6.This will take you SE38 with the recording code.
7.Then you do as per normal BDC program,declare internal table and map with the uploaded fields.
Shout me for further clarification.
Reward if helpful.
Thank you. -
Data Conversion: LSMW and CATT
Hi Experts
I am plaiing to use LSMW and CATT in data conversion for PP objects.
Can somebody provide me training material on how to record and use these tools.
Any help will be appreciated.
Thanks
Gauravhi,
catt:
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/erpfi/catt%2b-%2bcomputer%2baided%2btest%2btool
http://help.sap.com/saphelp_nw04/helpdata/en/74/17f6eaecf511d2bdd4080009b4534c/frameset.htm.
lsmw:
http://help.sap.com/saphelp_nw04/helpdata/en/87/f3ae63e68111d1b3ff006094b944c8/frameset.htm
reward if useful,
thanks and regards -
End valid to data of material BOM
In the moment that you create a new material BOM using transaction CS01,
have you any chance to introduce a date in the field " Valid to" ?
Regards, Josu.Dear Josu,
1.While creating the BOM,you can give a valid From date(A Future Date).
2.The systems defaulty sets the valid to date as 31.12.9999.
3.This can not be changed,or can be modified unless you use ECN.
Regards
Mangal -
Data conversion from legacy : through BOM or recipe for a process industry?
Hi all
I am working on data migration document for BOM , ROUTING, PROD VER. My question is whether during migration from legacy we should first migrate the Recipe and add the comp no for creating BOM in mass creation , Or that we should bring the BOMs directly from the legacy? Which method is better from strategic point ?Hello,
for migration into CRM I would suggest the 'XIF-Interfaces'; these are interfaces provided in CRM for connection to external systems. I'm not sure if this will cover all objects mentioned above, but at least some of them should exist.
Some information about existing interfaces can be found in the integration repository under http://ifr.sap.com/index.html; from the start screen first select 'Enter the repository' and then have a look under 'generic components' and 'SAP CRM'.
Regards, Katja Ohliger -
Data Conversion for BOMs and/or Routings
I am looking for any examples for design spec for Data Conversion of Bill of Materials and/or Routings.
Not sure if this would be in form of MD050 but any example would be appreciatedHi;
Please check below links:
Oracle Bill of Materials User's Guide
http://download.oracle.com/docs/cd/A85683_01/acrobat/115bomug.pdf
http://horizon.more4apps.com/doco/BMWRelease/output/index.htm
Also see:
Getting Started With R12 - Discrete Manufacturing Support Enhanced Release Content Document [ID 415922.1]
Regard
Helios -
XI for new data conversion?
Hello experts,
You recommendations please on data conversion with XI versus using the LSMW tool?
We are working on a new implementation, planning to use XI for the interfaces anyway. Now the idea is to use XI for all dataconversion from the legacy systems.
Good idea, not suitable, better to use LSMW?
Your thoughts please!
Many thanks,
AlbertHi again.
The response to this question cannot be a general answer, because it depends on several aspects. I'll try to order by importance.
1 - What kind of files do you have for material and BOM creation? XML files?
XI is a powerfull tool for transfer that kind of files. With an ABAP proxy, you can easily decompose a XML file into a strucuture in ABAP, so it's easy to import files. To send, is also easy. You fill a structure and XI will convert it to a XML file and sent to the respective receiver, using it's communication channel. So, if it's XML, I would say YES, use XI. If not, XI only can copy those flat files and that way it's not easy to get it's data in a proxy. You can copy those file to a directory and import files with a program, but, if so, why using XI for your purpose? Or you can do some mappings to convert flat file into XML file ... the mapping can be easy or very difficult.
2 - Experience in XI or LSMW? And Urgence?
This question is important. If you have experience in one of those tools, you should use it. As far as I can catch from your post, XI is a new tool for you, right? To master XI is a process that will take you some time ... not too much ... but consider this part too in your decision. However, since you will start using XI for interfaces, this could be a good start!
3 - Many other reasons can be found in the link that Murthy provided, but this two should be the most important (in my opinion).
Hope this helps.
Regards,
Valter Oliveira. -
Material BOMs with document items using RCSBI010
Has anyone uploaded material BOMs with document items using RCSBI010? I set the item category to D, but receive an error in LSMW when I attempt to convert the data. The error specifies that the document items are not valid material numbers. They are not material numbers. They are document info records.
Found the problem. The document number was being mapped to BOM Component IDNRK instead of document number DOKNR.
-
Hi friends,
I want to upload the bom through lsmw. I have created two sourct structures.
1. Header level
2 low level is item level.
How to assign the excel sheets for these two structures.
Please explain the steps for uploading the bom
Please help me on this
VenkatDear Venket
Please refer the below thread for your requirement :
1.How to upload the Excel sheet into SAP
2.How to transfer data from excel sheet to SAP data base ?
3.Material master upload thro' LSMW using Multiple tabs of excel sheet:
4.uploading data in exel sheet
5.Load excel sheet
Hope this will be useful
Regards
JH -
Planning and Scoping- Data conversion and testing
hello Gurus
Good people i'm looking for your help in these areas.....
1) Planning and scoping for data conversion....we will be in the process of acquiring information from the client soon. So, what sort of information or questions do i need to get from the client and also the plan needed?
2) Test planning...... things i need to get from the client to prepare for this plan???
thanks
rashamHi,
the question which ou have asked is really very broad. so let me give some idea regarding the planning of data conversion. first of all you should identify which all objects you want to be transfered to SAP, obviously In MM material master, inforecord source list e.tc. then you need to decide which SAP tool you will be using to upload these data like LSMW, CATT e.t.c.
once it is decided what and how you are going to transfer then comes the Functional spec for data conversion in which you will give the details of data mapping in SAP. these FS will be translated to Tech Spec by technical consultant.
Test Planning,
first of all you will decide what type of testing you want to cary out like String test, Unit test, and integration test but these are decided by the testing team not Func consultant but anyway once it is decide how many level of testing is carried out then as a func consultant you will have to create test scenario for integration testing,
Regards
Vikrama -
Upload sales text for material master using LSMW direct input method
Hello Experts,
I was trying to upload sales text for a material master using LSMW direct input method.
I followed the following steps for the same
Tab dlimited Text file format
MATNR LONGTEXT LINE
MATERIAL1 LONGTEXT FOR MATERIAL MATERIAL1 1
Step1 -> Maintain object attributes
Object -> 0001
Method-> 0001
Program name -> /SAPDMC/SAP_LSMW_IMPORT_TEXTS
Program type -> D
Step2 -> Maintain Source Structure
Source structure -> LONG_TEXT Source structure for long text
Step 3-> Maintain souce file
Source Fields
ZLONG_TEXT Source structure for long text
MATNR C(018) MATNR
LTEXT C(132) LTEXT
Step 4-> Maintain structure relationship
Structure Relations
/SAPDMC/LTXTH Long Texts: Header <<<< ZLONG_TEXT Source structure for long text
Select Target Structure /SAPDMC/LTXTH .
/SAPDMC/LTXTL Long Texts: Row <<<< ZLONG_TEXT Source structure for long text
Select Target Structure /SAPDMC/LTXTL .
Step 5-> Maintain Field mapping and conversion rules
Here i have assigned constan rules to couple of them like
/SAPDMC/LTXTH Long Texts: Header
Fields
OBJECT Texts: Application Object
Rule : Constant
Code: /SAPDMC/LTXTH-OBJECT = 'MVKE'.
NAME Name
Source: ZLONG_TEXT-MATNR (MATNR)
Rule : Transfer (MOVE)
Code: /SAPDMC/LTXTH-NAME = ZLONG_TEXT-MATNR.
ID Text ID
Rule : Constant
Code: /SAPDMC/LTXTH-ID = '0001'.
SPRAS Language Key
Rule : Constant
Code: /SAPDMC/LTXTH-SPRAS = 'E'.
/SAPDMC/LTXTL Long Texts: Row
Fields
TEXTFORMAT Tag column
Rule : Constant
Code: /SAPDMC/LTXTL-TEXTFORMAT = '/'.
TEXTLINE Text Line
Source: ZLONG_TEXT-LTEXT (LTEXT)
Rule : Transfer (MOVE)
Code: /SAPDMC/LTXTL-TEXTLINE = ZLONG_TEXT-LTEXT.
Step6 -> Specify file
Legacy Data On the PC (Frontend)
Data D:\Sales_Longtext.txt
Step7 -> Assign File
ZLONG_TEXT Source structure for long text
Data D:\Sales_Longtext.txt
Step8 -> Read data
Output result
Source Structure Read Written Not Written
ZLONG_TEXT 1 1 0
Transactions Read: 1
Records Read: 1
Transactions Written: 1
Records Written: 1
Step 8 -> Display read data
Field Name Field Text Field Value
MATNR MATNR MATERIA1
LTEXT LTEXT SALES TEXT FOR Material MATERIAL1
Step 9 -> Convert data
File Read: ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.read
File Written: ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.conv
Transactions Read: 1
Records Read: 1
Transactions Written: 1
Records Written: 2
Step 10 -> Display converted data
1 /SAPDMC/LTXTH 1MVKE MATERIAL1 0001E
2 /SAPDMC/LTXTL 2/ SALES TEXT FOR Material MATERIAL1
Step 11 -> Start direct input program
Output result for the same
Legacy System Migration Workbench
Project: ZNRD_PRJ1 ORH
Subproject: ZNRD_SUBPRJ2 Upload long text
Object: ZNRD_LTEXT Long text tru direct input
File : ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.conv
Long Texts in Total: 1
Successfully Transferred Long Texts: 1
Non-Transferred Long Texts: 0
Now when i check the material master sales view -> sales text it is empty.
Please help me with the same.
Regards,
Ranjith NHello Experts, I was trying to upload sales text for a material master using LSMW direct input method.
I followed the following steps for the same
Tab dlimited Text file format
MATNR LONGTEXT LINE
MATERIAL1 LONGTEXT FOR MATERIAL MATERIAL1 1 *************************************************************************************************************
Step1 -> Maintain object attributes
Object -> 0001
Method-> 0001
Program name -> /SAPDMC/SAP_LSMW_IMPORT_TEXTS
Program type -> D
Step2 -> Maintain Source Structure
Source structure -> LONG_TEXT Source structure for long text
Step 3-> Maintain souce file Source Fields
ZLONG_TEXT Source structure for long text
MATNR C(018) MATNR
LTEXT C(132) LTEXT
Step 4-> Maintain structure relationship
Structure Relations
/SAPDMC/LTXTH Long Texts: Header <<<< ZLONG_TEXT Source structure for long text
Select Target Structure
/SAPDMC/LTXTH . /SAPDMC/LTXTL Long Texts: Row <<<< ZLONG_TEXT Source structure for long text
Select Target Structure /SAPDMC/LTXTL .
Step 5-> Maintain Field mapping and conversion rules
Here i have assigned constan rules to couple of them like
/SAPDMC/LTXTH Long Texts: Header
Fields
OBJECT Texts: Application Object
Rule : Constant
Code: /SAPDMC/LTXTH-OBJECT = 'MVKE'.
NAME Name
Source: ZLONG_TEXT-MATNR (MATNR)
Rule : Transfer (MOVE)
Code: /SAPDMC/LTXTH-NAME = ZLONG_TEXT-MATNR.
ID Text ID
Rule : Constant
Code: /SAPDMC/LTXTH-ID = '0001'.
SPRAS Language Key
Rule : Constant
Code: /SAPDMC/LTXTH-SPRAS = 'E'.
/SAPDMC/LTXTL Long Texts: Row
Fields
TEXTFORMAT Tag column
Rule : Constant
Code: /SAPDMC/LTXTL-TEXTFORMAT = '/'.
TEXTLINE Text Line
Source: ZLONG_TEXT-LTEXT (LTEXT)
Rule : Transfer (MOVE)
Code: /SAPDMC/LTXTL-TEXTLINE = ZLONG_TEXT-LTEXT.
Step6 -> Specify file Legacy
Data On the PC (Frontend)
Data D:\Sales_Longtext.txt
Step7 -> Assign File ZLONG_TEXT
Source structure for long text
Data D:\Sales_Longtext.txt
Step8 -> Read data
Output result
Source Structure Read Written Not Written
ZLONG_TEXT 1 1 0
Transactions Read 1
Records Read: 1
Transactions Written: 1
Records Written: 1
Step 8 -> Display read data
Field Name Field Text Field Value
MATNR MATNR MATERIA1
LTEXT LTEXT SALES TEXT FOR Material MATERIAL1
Step 9 -> Convert data
File Read: ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.read
File Written: ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.conv
Transactions Read: 1
Records Read: 1
Transactions Written: 1
Records Written: 2
tep 10 -> Display converted data
1 /SAPDMC/LTXTH 1 MVKE MATERIAL1 0001 E
2 /SAPDMC/LTXTL 2/ SALES TEXT FOR Material MATERIAL1
Step 11 -> Start direct input program
Output result for the same
Legacy System Migration Workbench Project:
ZNRD_PRJ1 ORH
Subproject: ZNRD_SUBPRJ2 Upload long text
Object: ZNRD_LTEXT Long text tru direct input
File : ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.conv
Long Texts in Total: 1
Successfully Transferred Long Texts: 1
Non-Transferred Long Texts: 0
Now when i check the material master sales view -> sales text it is empty. Please help me with the same.
Regards,
Ranjith N -
Data conversion strategy for new SOB
Dear Viewers
on 11.5.10
We are creating a new SOB with a change in currency from Feb-11 as this is the requirement
For the same, we need to do data conversion.
I have a confusion for Purchase Orders and Sales Orders
Purchase Orders:
Open purchase orders will be converted, means the unfulfilled PO`s i.e the ones not received and are fully open.
The PO`s which have been recieved but not delivered, Requested the users to clear the intransit receipts.
The PO's which are partially received, what to be done for them?
If a PO is fully received and Delivered will not me converted to the new SOB as its not an open PO
but If invoice comes after Feb-11, than how the matching will be done?
What if a return has to be made moving forward in FEB-11 under new SOB
Sales Orders:
Open sales orders will be converted, that is the ones that have been entered and not yet booked.
Users have been requested to clear off the Sales order lines which are already pick confirmed but not yet shipped, hence they will be shipped and interfaced to AR
For the Sales orders that have been booked, those lines that are not yet processed further will also be converted.
Now what if a receipt comes after feb 11, how to handle this as the sales order wiould not have been converted?
Please give your advise on the data migration strategy for PO`s and SO's.
Please do add any point that may have been missed by me
Appreciate your help
Thanks
EmmHi David,
for master data conversion you can use LSMW and the RE-FX BAPIs. (please refer to SAP note [782947|https://service.sap.com/sap/support/notes/782947] ).
Regards, Franz -
How to change the header of Material BOM in a program for alternative BOM ?
Requirement: An Inbound IDOC creates /change/delete Alternative Material BOM. The Alternative Material BOM can have alternative values from 1 to 99.
ISSUE: I am good with CREATE and DELETE BOM. The issue is with CHANGE of header Material BOM. The fields which we need to change in the header is the base quantity, BOM status, Lot Size from and Lot Size to. Please note that I am able to change the item details of the BOM with FM CSAI_BOM_MAINTAIN. I find no FM /BAPI which would change the header of a material BOM.
Please NOTE that I am using BAPI_MATERIAL_BOM_GROUP_CREATE to create alternative Material BOM. This has a parameter in TABLES called "VARIANTS" which has a field CS_FUNCTION which can have value from NEW/CHG/DEL .Also ,there is another parameter in TABLES called "ITEMASSIGNMENTS" which has a field CS_FUNCTION which can have value from NEW/CHG/DEL which implies this FM will allow us to change the BOM. But this does not work when I use it for CHANGE scenario with CHG value. I debugged this BAPI and observed it requires a STNLR(Bill of Material) value . This field is not there in any of the structure. I am not sure if I am passing the right parameters to it.
Let me know if the parameters are passed correctly for CHANGE scenario.
Also let me know if there is any other way(FM/BAPI) to update the Header of the Material BOM ?
Here is the code I am using:
*& Report ZTEST_S_E
REPORT ZTEST_S_E.
* This code will create a material BoM for the material
* MAINMATERIAL with the components COMPON1 and COMPON2.
* Data Declaration
DATA:
it_bomgroup LIKE bapi1080_bgr_c OCCURS 0 WITH HEADER LINE,
it_variants LIKE bapi1080_bom_c OCCURS 0 WITH HEADER LINE,
it_items LIKE bapi1080_itm_c OCCURS 0 WITH HEADER LINE,
it_matrel LIKE bapi1080_mbm_c OCCURS 0 WITH HEADER LINE,
it_itemas LIKE bapi1080_rel_itm_bom_c OCCURS 0 WITH HEADER LINE,
it_return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
* Fill the data
* Material BoM Group Header Data
CLEAR it_bomgroup.
it_bomgroup-bom_group_identification = 'BAPI_SMP_COL1'.
it_bomgroup-object_type = 'BOM'.
it_bomgroup-object_id = 'SIMPLE1'.
it_bomgroup-bom_usage = '1'. " YOU COULD CHANGE THE BOM USAGE TO YOUR
*NEEDS
it_bomgroup-ltxt_lang = sy-langu.
it_bomgroup-technical_type = ' '.
it_bomgroup-bom_text = 'Simple BoM - FM'.
APPEND it_bomgroup.
* Header Details of the different variants
CLEAR it_variants.
it_variants-CHANGE_NO = '500000000349'.
it_variants-bom_group_identification = 'BAPI_SMP_COL1'.
it_variants-object_type = 'BOM'.
it_variants-object_id = 'SIMPLE1'.
it_variants-alternative_bom = '01'.
it_variants-bom_status = '01'.
it_variants-base_qty = '2.000'.
it_variants-valid_from_date = sy-datum.
it_variants-function = 'CHG'.
APPEND it_variants.
* Details of the items of the variants
CLEAR it_items.
it_items-bom_group_identification = 'BAPI_SMP_COL1'.
it_items-object_type = 'ITM'.
it_items-object_id = 'SIMPLE1'.
it_items-item_no = '0010'.
it_items-item_cat = 'L'.
it_items-component = '030790490'.
it_items-comp_qty = '2'.
it_items-valid_from_date = sy-datum.
APPEND it_items.
CLEAR it_items.
it_items-bom_group_identification = 'BAPI_SMP_COL1'.
it_items-object_type = 'ITM'.
it_items-object_id = 'SIMPLE1'.
it_itemas-change_no = '500000000138'.
it_items-item_no = '0020'.
it_items-item_cat = 'L'.
it_items-component = '030790490'.
it_items-comp_qty = '3'.
it_items-valid_from_date = sy-datum.
APPEND it_items.
* Details of the materials of the different variants
CLEAR it_matrel.
it_matrel-bom_group_identification = 'BAPI_SMP_COL1'.
it_matrel-material = '030790490'.
it_matrel-bom_usage = '1'.
it_matrel-alternative_bom = '01'.
APPEND it_matrel.
* Linking items to the corresponding variants
CLEAR it_itemas.
it_itemas-bom_group_identification = 'BAPI_SMP_COL1'.
it_itemas-sub_object_type = 'ITM'.
it_itemas-sub_object_id = 'SIMPLE1'.
it_itemas-super_object_type = 'BOM'.
it_itemas-super_object_id = 'SIMPLE1'.
it_itemas-valid_from_date = sy-datum.
it_itemas-function = 'CHG'.
APPEND it_itemas.
* Create variants
CALL FUNCTION 'BAPI_MATERIAL_BOM_GROUP_CREATE'
EXPORTING
all_error = 'X'
TABLES
bomgroup = it_bomgroup
variants = it_variants
items = it_items
materialrelations = it_matrel
itemassignments = it_itemas
return = it_return.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
LOOP AT it_return.
WRITE:/ it_return-type, it_return-id, it_return-number,
it_return-message.
ENDLOOP.
Let me know if the parameters are passed correctly for CHANGE scenario.
Also let me know if there is any other way(FM/BAPI) to update the Header of the Material BOM ?Try doing something like this:
class MyJTextArea extends JTextArea {
public boolean keyDown(Event evt,int key) {
if(key == 13 || key == 10) { // or whatever ascii codes enter may have
// move carret to next line
} else {
super.keyDown(evt, key);
}which means you have got to catch the enter-key before the actutal JTextArea does this.
p.s. look at my post, maybe you can help me, too.
http://forum.java.sun.com/thread.jsp?forum=5&thread=465803&tstart=0&trange=100 -
Hi All,
I need to create a material BOM ,as in Transaction CS01, without any components.
Which function modules should i be using..
I have tried using CSAI_BOM_MAINTAIN and CSAP_MAT_BOM_CREATE but not with too much success
Thanks
AviroopHi,
thanks for all your inputs. My requirement has somewhat changed over the last 24 hrs. What it stands as of now is that for a material and a plant there exists a bom (with items and sub-items).
I have to retrieve this data and create a new BOM for a different plant.
The first step would be to retrieve all the BOM data from STKO STPO and STPU. Is there any FM that would retrieve all these data
What FM would i then use to create a new BOM
Thanks
Aviroop
Maybe you are looking for
-
Error while entering transaction for a new customer in release 12.1.1
Hi, I created a new customer in receivables (am using the version 12.1.1) First i got an error while creating the customer saying, "Provide a positive integer for minimum customer balance amount or percent when balance amount overdue type is amount o
-
Hi All, In the 'Connections-Navigator' I have made some database connections, when I deploy my application JDev creates a file data-sources.xml ant put it under META-INF directory of ear file. But I am not able to see this file anywhere in my source
-
Well I posted the same question several months ago and eventually gave up and havnt used my iTouch since. While instaling iTunes everything goes fine until it goes to instal Bojour then it fails. I cannot get around this problem and have tried everyt
-
Little doubt about xml and jspx, someone would give me a explaiation please
Hi!! What's the diference between a .jspx and .xml file? do they have the same porpose? can I replace a .jspx for .xml file ? Thanks!!!
-
Why has iCloud stopped working in Mavericks, why has iCloud stopped working in Mavericks
I have a .me mail account since loading mavericks the site won't load, just sends an erroe message why?