LSMW FOR BOM CREATING.
Hi Guys,
I have a requirement where i create lsmw for bom upload using batch input. I m trying to create only one source structure and source fields assigned to this source structure but when finally im executing it its creating the first line item correctly but for all the second line items onwards its saying that Alternative already exists... My functional guy says that its creating just the first component in the bom and for the second component its trying to create another bom...and while its checking for the header which is already created its giving us error..
I dont know how to handle this.....guys its a little urgent....plz help me out.
here is a snap shot of the errors..
10:25:44 Session BOM-CREATE is being processed by user KALVALV in mode N on server psdux07 0 0 S 00 300
10:25:44 Creating BOM for material 10000240 CS01 1 SAPLCSDI 0140 7 S 29 030
10:25:45 Transaction was processed successfully CS01 1 0 S 00 355
10:25:45 Alternative 1 already exists CS01 2 SAPLCSDI 0100 1 E 29 003
10:25:45 Transaction error CS01 2 0 S 00 357
10:25:45 Creating BOM for material 10000346 CS01 3 SAPLCSDI 0140 7 S 29 030
10:25:45 Transaction was processed successfully CS01 3 0 S 00 355
10:25:45 Alternative 1 already exists CS01 4 SAPLCSDI 0100 1 E 29 003
10:25:45 Transaction error CS01 4 0 S 00 357
10:25:45 Creating BOM for material 10000347 CS01 5 SAPLCSDI 0140 7 S 29 030
10:25:46 Transaction was processed successfully CS01 5 0 S 00 355
10:25:46 Alternative 1 already exists CS01 6 SAPLCSDI 0100 1 E 29 003
10:25:46 Transaction error CS01 6 0 S 00 357
10:25:46 Creating BOM for material 10000785 CS01 7 SAPLCSDI 0140 7 S 29 030
10:25:46 Transaction was processed successfully CS01 7 0 S 00 355
10:25:46 Alternative 1 already exists CS01 8 SAPLCSDI 0100 1 E 29 003
10:25:46 Transaction error CS01 8 0 S 00 357
10:25:46 Creating BOM for material 10001252 CS01 9 SAPLCSDI 0140 7 S 29 030
10:25:46 Transaction was processed successfully CS01 9 0 S 00 355
Hi,
You need to define the two structure header and detail. Both files should have the key fields:
For example: Both file have Plant, Material Number, BOM Usage & Valid From.
Then BGR00 and BICSK should be mapped to BOM_HEADER and BICSP to BOM_DETAIL structure.
Then just do the mapping and should work.
Hope this helps.
Regards,
Bharati Singh
Similar Messages
-
Hi. I am new to this lsmw stuff. i have to upload my boms and routings.i am thinking of doing lsmw for that.can u please guide me . how to do that, which is the best way to do that. can i use recording for uploading the bill of materials and routing.
can some one send me a template for uploading boms and routings.Dear,
Please refer this link,
[LSMW|lsmw for bom component]
Regards,
R.Brahmankar -
[Help ] - LSMW for BOM
Hello all,
I am trying to create a LSMW to migrate BOMs.
I am using object 0030 and method 0001.
http://picasaweb.google.pt/adelmosilva/SAPScreenShots/photo#5225399426725436898
Then, I have created 2 structures, one for the BOM header and one for the Item.
Do I have to create 4 structures, one for each table?
My text file has the following data:
http://picasaweb.google.pt/adelmosilva/SAPScreenShots/photo#5225400798442244802
Is this correct?
Thanks in advance,
Adelmo SilvaHello Silva,
It depends on what fields you want to update in BOM. for my LSMW I do not use Object, methods. I just record whatever fields I need to populate.
You can also choose to just record the fields that you need to populate under Batch input recording option.
Yes, some times it takes more than 2 structures to load all the fields I need.
Hope this helps.
Thanks,
Ram -
LSMW for BOM Object Dependencies
Dear Sir,
I can use LSMW to upload BOM component without object dependencies.
If the BOM component have object dependencies, how to upload OD using LSMW.
Who can help me !Hi all
I have so much OD to be upload, how can I do that through LSMW ?
No expert can help me ?
Regards, -
I am trying to upload routing using LSMW.
which is the best way to use batch input or direct input. I dont have a choice fof using badis or BDC
can we upload routing without writing any code in LSMW.
so i created three files
header
operation
component allocation.
what should be the link between these three files.I did lsmw for BOM. there i ve used material number as link. bou i didnt find material number in routing lsmw. so what should be the reference.
can we take group counter number as reference.
can some one provide me the source file structures for this LSMW for routing.
thanks.Hi,
You can use the standard LSMW for routing. As you mentioned first you upload the header and take the group no. as reference and upload the operation. and the components will be automatically assigned to the routing with the first operation.
Thanks and Regards,
Satish -
Hi,
I am doing LSMW to upload BOM info for the first time. It would be of great help if someone can provide me with an example with screenshots. Thanx in advance for your help.
my mail id is: [Email removed by moderator]
Sachin
Message was edited by:
Mario HergerHi Guys,
I do have the same requirement where i create lsmw for bom upload using batch input. I m trying to create only one source structure and source fields assigned to this source structure but when finally im executing it its creating the first line item correctly but for all the second line items onwards its saying that Alternative 1 already exists... My functional guy says that its creating just the first component in the bom and for the second component its trying to create another bom...and while its checking for the header which is already created its giving us error..
I dont know how to handle this.....guys its a little urgent....plz help me out. -
Hi Abapers,
I have got an assignment to create a LSMW to accomplish the loading of Bill of material but I have never done LSMW
before. So Can anybody please tell me that out of four processes in LSMW which one I should use and the flow of that.
Thanks in Advance
DeepaHi Deepa,
I have used bdc for bom creation as I got stuck while using lsmw. I am attaching code snippet for your reference.
Hope this helps
loop at itab1.
move itab1 to wa_itab1.
perform map_rec.
call transaction 'CS01' using t_bdcdata mode p_mode update 'A'
messages into messtab .
* clear: wa_itab1,wa_itab2, t_bdcdata.
* refresh t_bdcdata.
loop at messtab where msgtyp = 'E' or msgtyp = 'S' .
select single * from t100 where sprsl = messtab-msgspra
and arbgb = messtab-msgid
and msgnr = messtab-msgnr.
if sy-subrc = 0.
mstring = t100-text.
if mstring cs '&1'.
replace '&1' with messtab-msgv1 into mstring.
replace '&2' with messtab-msgv2 into mstring.
replace '&3' with messtab-msgv3 into mstring.
replace '&4' with messtab-msgv4 into mstring.
else.
replace '&' with messtab-msgv1 into mstring.
replace '&' with messtab-msgv2 into mstring.
replace '&' with messtab-msgv3 into mstring.
replace '&' with messtab-msgv4 into mstring.
endif.
condense mstring.
it_messtab-message = mstring(300).
it_messtab-plant = itab1-matnr.
if messtab-msgtyp = 'E'.
it_messtab-status = 'Error'.
else.
it_messtab-status = 'Success'.
endif.
append it_messtab.
clear it_messtab.
endif.
endloop. "messtab
clear: wa_itab1,wa_itab2, t_bdcdata.
refresh t_bdcdata.
endloop.
if not it_messtab[] is initial.
perform buildcatalog.
perform display.
endif.
endif.
*& Form Map_Rec
* text
form map_rec.
perform bdc_dynpro using 'SAPLCSDI' '0100'.
perform bdc_field using 'BDC_CURSOR' 'RC29N-STLAN'.
perform bdc_field using 'BDC_OKCODE' '/00'.
perform bdc_field using 'RC29N-MATNR' wa_itab1-matnr."'505111'.
perform bdc_field using 'RC29N-WERKS' wa_itab1-werks."'2245'.
perform bdc_field using 'RC29N-STLAN' wa_itab1-stlan."'1'.
perform bdc_field using 'RC29N-STLAL' wa_itab1-stlal."'01'.
perform bdc_dynpro using 'SAPLCSDI' '0110'.
perform bdc_field using 'BDC_CURSOR' 'RC29K-BMENG'.
perform bdc_field using 'BDC_OKCODE' '/00'.
perform bdc_field using 'RC29K-BMENG' wa_itab1-bmeng."'1000'.
perform bdc_field using 'RC29K-STLST' '1'.
perform bdc_dynpro using 'SAPLCSDI' '0111'.
perform bdc_field using 'BDC_CURSOR' 'RC29K-LABOR'.
perform bdc_field using 'BDC_OKCODE' '/00'.
loop at itab2 where matnr = wa_itab1-matnr
and werks = wa_itab1-werks.
append itab2 to itab3.
clear : itab2, itab3.
endloop.
count = '1'. "Used as a flag
clear no_lines.
describe table itab3 lines no_lines.
loop at itab3.
perform bdc_dynpro using 'SAPLCSDI' '0140'.
perform bdc_field using 'BDC_CURSOR' 'RC29P-POSTP(01)'.
if itab3-posnr = '01'.
perform bdc_dynpro using 'SAPLCSDI' '0140'.
perform bdc_field using 'BDC_CURSOR' 'RC29P-POSTP(01)'.
perform bdc_field using 'BDC_OKCODE' '/00'.
perform bdc_field using 'RC29P-IDNRK(01)' itab3-idnrk." '49500'.
perform bdc_field using 'RC29P-MENGE(01)' itab3-menge."'20'.
perform bdc_field using 'RC29P-MEINS(01)' itab3-meins. "'kg'.
perform bdc_field using 'RC29P-POSTP(01)' itab3-postp. "'l'.
perform bdc_dynpro using 'SAPLCSDI' '0130'.
perform bdc_field using 'BDC_OKCODE' '/00'.
perform bdc_field using 'BDC_CURSOR' 'RC29P-POSNR'.
perform bdc_field using 'RC29P-POSNR' '0010'.
perform bdc_field using 'RC29P-IDNRK' itab3-idnrk." '49500'.
perform bdc_field using 'RC29P-MENGE' itab3-menge."'20'.
perform bdc_field using 'RC29P-MEINS' itab3-meins. "'KG'.
perform bdc_dynpro using 'SAPLCSDI' '0131'.
perform bdc_field using 'BDC_OKCODE' '/00'.
perform bdc_field using 'BDC_CURSOR' 'RC29P-POTX1'.
perform bdc_field using 'RC29P-SANKA' 'X'.
else.
***" Ok Code for saving, Corr. to Last line
if count = no_lines.
perform bdc_dynpro using 'SAPLCSDI' '0140'.
perform bdc_field using 'BDC_CURSOR'
'RC29P-POSNR(02)'.
perform bdc_field using 'BDC_OKCODE'
'=FCBU'.
else. "Ok Code for new line entry
perform bdc_dynpro using 'SAPLCSDI' '0140'.
perform bdc_field using 'BDC_CURSOR'
'RC29P-POSNR(02)'.
perform bdc_field using 'BDC_OKCODE'
'=FCNP'.
endif.
perform bdc_dynpro using 'SAPLCSDI' '0140'.
perform bdc_field using 'BDC_CURSOR'
'RC29P-POSNR(02)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RC29P-IDNRK(02)'
itab3-idnrk. "'49502'.
perform bdc_field using 'RC29P-MENGE(02)'
itab3-menge. "'10'.
perform bdc_field using 'RC29P-MEINS(02)'
itab3-meins. "'kg'.
perform bdc_field using 'RC29P-POSTP(02)'
itab3-postp. "'L'.
perform bdc_dynpro using 'SAPLCSDI' '0130'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'BDC_CURSOR'
'RC29P-POSNR'.
w_posnr = itab3-posnr * 10.
condense w_posnr no-gaps.
if w_posnr <= '90'.
concatenate '00' w_posnr into w_posnr.
else.
concatenate '0' w_posnr into w_posnr.
endif.
perform bdc_field using 'RC29P-POSNR'
w_posnr. "'0020'.
perform bdc_field using 'RC29P-IDNRK'
itab3-idnrk. "'49502'.
perform bdc_field using 'RC29P-MENGE'
itab3-menge. "'10'.
perform bdc_field using 'RC29P-MEINS'
itab3-meins. "'KG'.
perform bdc_dynpro using 'SAPLCSDI' '0131'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'BDC_CURSOR'
'RC29P-POTX1'.
perform bdc_field using 'RC29P-SANKA'
'X'.
count = count + 1. "Increment count for every line item
endif.
at end of matnr.
perform bdc_dynpro using 'SAPLCSDI' '0140'.
perform bdc_field using 'BDC_CURSOR'
'RC29P-POSNR(01)'.
perform bdc_field using 'BDC_OKCODE'
'=FCBU'.
endat.
endloop.
clear itab3[].
endform. "Map_Rec
** Form BDC_DYNPRO
form bdc_dynpro using program dynpro.
clear w_bdcdata.
w_bdcdata-program = program.
w_bdcdata-dynpro = dynpro.
w_bdcdata-dynbegin = 'X'.
append w_bdcdata to t_bdcdata.
endform. "bdc_dynpro
** Form BDC_FIELD
form bdc_field using fnam fval.
if fval <> space.
clear w_bdcdata.
w_bdcdata-fnam = fnam.
w_bdcdata-fval = fval.
append w_bdcdata to t_bdcdata.
else.
clear w_bdcdata.
w_bdcdata-fnam = fnam.
w_bdcdata-fval = fval.
append w_bdcdata to t_bdcdata.
endif.
endform. "bdc_field -
Hi
I have managed to create a LSMW model, that wil create (CA01) a routing.
My problem is that components (from the BOM) is not assigned to operations.
When I display converted data, just before I create a batch input session, I can can see selected components is assigned to an operation.
When I use transaction CA03 afterwards, behind the TAB " CompAlloc" there is no materials that has been assigned to operations.
Has anyone any experience on this issue?Dear,
As said by Bala,get the help from ABAP programmer and go for a BDC for
creation of routing.
I have not worked or used LSMW for routing,so could not give a reply for your
question.
Regards
Mangal -
LSMW for datatransfer of BOM; problem with effectivitydate on itemlevel
Dear Guru's,
We try to create BOM's with the LSMW tool standard batch/ direct input, object 0030, method 0001.
It works fine, except for the effectivitydate on itemlevel. I just can't find the necessary fields (DATUB and DATUV) to populate for this!
Any ideas how to solve this?
Thanks!!
Best regards, AJHi,
You can find effectivity date fields in header structure BICSK - Batch Input Structure for BOM Header Data
BICSK-DATUB Valid to date (BTCI)
BICSK-DATUV Valid-From Date (BTCI)
For Items, date values flows from header. -
LSMW for Workcenter, BOM & Routings
Hello people,
I am new to LSMW. We are on ECC 6.0 & all master data is in Plant X, now we want all master data in plant Y. Same plant but we are creating virtual plant. So all master data will be as it is.
I need to copy existing Workcenter, Routing, BOMs from Plant X to Y.
for example If i do manually, CR01 - copy with reference..it works
1> should i go with Batch input recording and record copy with reference for LSMW?
2> or Standard SAP program for LSMW?
Can you please tell me the detail process... It would be great help!
ThanksHello,
Please look into the below link for more details on LSMW:
http://help.sap.com/saphelp_erp60_sp/helpdata/en/87/f3ae63e68111d1b3ff006094b944c8/frameset.htm
Also for BOM transfer there is already thread:
BOM Uploading through LSMW
Hope the information is useful
Regards -
LSMW Direct Input for BOM (CS01)
Dear all,
I am trying to do LSMW for Creating BOM using Direct Input
below is the step by step that i have done :
1. Maintain Object Attributes
Object 0030 Material BOM
Method 0001 Create
Program Name RCSBI010
Program Type B Batch Input
2.Maintain Source Structures
Source Structures
BOM_HEADER BOM_Header
BOM_ITEM BOM_item
3.Maintain Source Fields
Here i maintain the Header and item fields correctly
for the header :
IDENT (identifier who linked with item),MATNR, WERKS, STLAN, STLAL, BMENG, BMEIN, STLST
for the item :
IDENT, POSNR, POSTP, IDNRK, MENGE, MEINS, SANKA
4.Maintain Structure Relations
BGR00-Bom header
BICSK-BOM item
BICSP-Bom item
5.Maintain Field Mapping and Conversion Rules
I use the autofield mapping
6.Specify Files
Legacy Data PC Frontend = i create 2 file (header and item) (both characteristic are data for one source structure, tabulator)
Imported Data = TEST-PP_PP-BOM_PP-BOM-DI.lsmw.read
Converted Data = TEST-PP_PP-BOM_PP-BOM-DI.lsmw.conv
Logical Path BOM_HEADER
Logical File BOM_HEADER
7.Assign Files = I assign 2 files Bom Header and Bom Item
8.Read Data, Display Read Data, Convert Data, Display Convert Data = is all okay
9.Create Batch Input Session = this is where the problem is, i found message "E29 811 transaction not supported"
What is the problem for this error? and how to solve this problem?
Regards,
MarufatDear,
1. Maintain Object Attributes
Object 0030 Material BOM
Method 0001 Create
Program Name RCSBI010
Program Type B Batch Input
2.Maintain Source Structures
Source Structures
BOM_HEADER BOM_Header
BOM_ITEM BOM_item
3.Maintain Source Fields
Here you maintain the Header and item fields correctly
in the source filed you have to add one field called identifier in the header and the item.
4.Maintain Structure Relations
BGR00-Bom header
BICSK-BOM item
BICSP-Bom item
5.Maintain Field Mapping and Conversion Rules
Do the filed mapping here correctly
6.Specify Files
a.Before thie you need to create 2 files.
1 file for the header material and the other one for the component material
b.In the header file you will have only one entry for one bom and it will have a idetifier number unique for each bom header
c.inthe item you will fill the rquireed number of component and also the unique identifer number.
d.this identifier is the key which joins the header and the item
7.Read Data
now once the file are all mapped
read the data,dispaly the data and try to upload for one single material.
Hope it will help you.
Regards,
R.Brahmankar -
Problem in creating a bapi for bom
hai all,
i am trying to create a bapi for bom using csap_mat_bom_create, but it am getting sy-subrc value as 1.
and displaying error message as the function module name itself.
is there any solution dor it.Hello,
Try to use that bapi :
BAPI_MATERIAL_BOM_GROUP_CREATE
Thierry -
How to create LSMW for a transaction having scroll bar
Hi all,
I am trying to create an LSMW for MP)! transaction for Uploading AMPL (Approved Manufacturer Parts list data) data.
For this LSMW is not working fine when i need to upload more number of records. Suggest me some way to solve it out,Also provide me some code samples and process if it can be handled with BDC.
Thanks,
Pavan.you can solve it with bdc:
e.g. a table control contains only 10 entries , you've to program the dynpro-change ( in german "Bildwechsel")
with sth like this:
ERG = BUZEI MOD 10 .
IF ERG = 1.
Dynpro darf nur alle 10 Zeilen prozessiert werden -
PERFORM BDC_DYNPRO USING 'SAPMF10B' '0150'. "ins
ENDIF.
add 1 to buzei.
A. -
Is it possible to create LSMW for PQ10, PQ13?
Hi Fridz,
I have created the OM actions, now I'm trying to create LSMW for the actions PQ10 (creation of org unit), PQ13 (Creation of Position) but while recording LSMW relationships are not creating under - Maintain Field Mapping and Conversion Rules in LSMW. Please advice on this whether these transactions are possible to create LSMW with fore & backgroung.
$NarayanaHi Narayana,
Use BDC's for better maintainance of relationship. which worked fine for me.
thanks,
vasu. -
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
Maybe you are looking for
-
I am having problems that I never used to have sending photos in a Yahoo email. I can't load as many photos and it takes a very long time to load. I always check my attacment by going to the sent file and when I download a photo it is way bigger than
-
After restore I have a mobile me account and a .mac account???pro
I just had a miserable problem and had to do a complete restore... one of the weird things I now see is that I have a .mac account ... though I cannot send mail to that address. can I / should I just delete this account in settings? thanks, tom
-
Oracle SQL Developer issue when using VPN (Cisco)
All, We've got a somewhat obscure issue with SQL Developer connectivity to our databases from a remote employee's laptop. The database is hosted inside our firewall and when the employee tries to connect to the database he receives the following erro
-
I came to the assumption, in another support topic, I couldn't add my own DVD's to my iTunes account or Touch. Therefore I realized I could only get movies from iTunes. This is probably the first time I searched for movies in my iTunes account, and I
-
Three Nikon Cameras have created duplicate names of files -How do I rename?
I have loaded hundreds of photos with duplicate names from 3 cameras that use the same naming sequence. How can I at least rename one of the duplicate file names so that I don't have duplicates??????? I appreciate your help. -Paul