BOM Item Changes
LOOP AT it_temp.
CLEAR : it_stko, it_stpo.
REFRESH it_stpo.
CALL FUNCTION 'CSAP_MAT_BOM_OPEN'
EXPORTING
MATERIAL = it_temp-matnr
PLANT = it_temp-werks
BOM_USAGE = it_temp-stlan
ALTERNATIVE =
VALID_FROM = it_temp-datuv
CHANGE_NO =
REVISION_LEVEL =
FL_NO_CHANGE_DOC = ' '
IMPORTING
O_STKO = it_stko
FL_WARNING = FL_WARNING
TABLES
T_STPO = it_stpo
EXCEPTIONS
ERROR = 1.
SORT it_data by stlnr idrnk.
LOOP AT it_stpo.
clear it_data.
READ TABLE it_data with key stlnr = it_stpo-bom_no
idrnk = it_stpo-component BINARY SEARCH.
if sy-subrc eq 0.
if not it_stpo-supplyarea is initial and it_stpo-issue_loc is not initial.
it_stpo-issue_loc = it_data-lgort.
it_stpo-supplyarea = it_data-prvbe.
move space to it_stpo-issue_loc.
move space to it_stpo-supplyarea.
endif.
CALL FUNCTION 'CSAP_BOM_ITEM_MAINTAIN'
EXPORTING
I_STPO = it_stpo
FL_DEP_ALE_CONFORM = ' '
IMPORTING
O_STPO = mo_stpo "inserted
FL_WARNING = FL_WARNING
EXCEPTIONS
ERROR = 1
OTHERS = 2
IF SY-SUBRC <> 0.
call function 'FORMAT_MESSAGE'
exporting
id = sy-msgid
lang = sy-langu
no = sy-msgno
v1 = sy-msgv1
v2 = sy-msgv2
v3 = sy-msgv3
v4 = sy-msgv4
importing
msg = g_msg
exceptions
others = 0.
if sy-msgty = 'E'.
write : / g_msg.
endif.
ENDIF.
endif.
ENDLOOP.
call function 'CSAP_MAT_BOM_CLOSE'
importing
fl_warning = fl_warning
exceptions
error = 1.
Iam not able to modify the Supplying area and Storage loc since i have to pass the blank values in both these fields.While iam changing the values after bapi execution it is working fine, but for initial values i have to pass in those two fields. Pls help me.
Similar Messages
-
Changing BOM-items in Process Order not allowed
that Hello,
Mi client is asking me if it is posible, once created a Process Order, upon modifying the order (COR2), that the user can not change any of the cuantities and batches of the material list (BOM) updated in the Process Order.
Is there any way one can protect the material list from being modified once created, or once liberated the order?
Is it posible, moreover to just protect the BOM ítems updated in the Process order but let the option open to add exta BOM ítems manually.
Is there a userexit or a Badi one can use to acomplish this?
Thanks for any reply.
AartHi Aart,
Yes, you can use BADI to protect the BOM items from not to change the BOM items in Process order.
In one of our project we have taken the help from the ABAPer, has has done the same thing.
Then we have acheived the same requirement.
You check with the ABAPer, he will help you for the requirement.
Thanks -
Change material BOM / item / Class Recursion
I'm looking for a way to change the "recursiveness allowed" flags in the "Class Recursion" tab of a BOM item in transaction CS02. The flag corresponds with the fiels REKRS in table CLRK. No BAPI or FM found after half a day of searching. The CSAP_* function modules don't seem to cover this data.
Hi,
This indicator is automatically set based on the conditions mentioned here [Class Recursiveness|http://help.sap.com/saphelp_470/helpdata/en/ea/e9b54a4c7211d189520000e829fbbd/content.htm]. You can have look at fm CSAI_BOM_MAINTAIN which has that indicator FL_RECURSIVE. As the documentation says
The system recognizes recursiveness for a class item if the following objects are allocated to the class in the class item:
The BOM header material
A material with a BOM which contains the BOM header material as an item
A class to which one of the materials described above is allocated
You can try logics like removing the header material from the item, so that recursiveness is avoided, May be by using CSAP_BOM_ITEM_MAINTAIN. Explode the existing BOM using CS_BOM_EXPLOSION and compare the header & item materials. -
Does anyone know the criteria (item_id,creation_date,etc) by which Oracle interprets the Items from a given item range in BOM Mass change.
Purely alpha-numeric.
-Gerry -
Variant Configuration - Manual changes to BOM Items
Hi All:
We are implementing Sales ORder (SET) process. Need to have the ability to change BOM Items.
According to SAP documentation referred in the link below, we have set the flag to allow the manual changes to BOM Items in the configuration profile. We have made sure that in the Material BOM configuration the fixed quantity flag is not set.
But it is not working. Not sure if we are missing some other settings.
http://help.sap.com/erp2005_ehp_04/helpdata/EN/92/58bfb9417011d189ec0000e81ddfac/content.htm
Any help would be greatly appreciated.
Thanks, Rajathis would happen if you have edited the server.xml manually. if you do edit this file for valid reasons and want to keep the changes
please run
asadmin reconfig user admin password secret12 host host.domain.com port 4848 --keepmanualchanges=true server1
then deploy your applications, you should be ok -
CEWB: BOM item Mass change new value Missing
Hi Guru's
When i plan to do BOM item lead time offset mass change in the (CEWB) Engineering Workbench,
i have selected the ITem and Column LT offset, and in entra when i select the mass change, system showing a error.
" no item selected", (new value and replace indicator is missing
.Can u help whether we need to apply any notes ?
Regards
GS
Edited by: GNANASEKARAN Suresh on Aug 1, 2011 4:40 AM
Edited by: GNANASEKARAN Suresh on Aug 1, 2011 4:51 AMUpload screenshots of the step which you're taking in CEWB & the error you notice to some portal & paste the link here for a clear understanding.
Also which version of SAP you're working on & what is the support pack level ? (If you're not sure about it, then check with your system admin for the same). -
Mass change of BOM item and BOM item catergory
Hello Everyone,
I have a need to complete a mass change of a BOM item with another, usually I use transaction CS20,this works o.k. but this time I'm also changing the material with a new item catergory, for example a stock item with a phantom item.
Does anyone have an idea how to complete this task.
Kind Regards
FrankieHello,
Thankyou very much for your reply.
I did try adding the new material using CS20 but all the BOM qty's are different and as you know you have to complete this field, so it would mean changing one at a time, I attacked this issue from a different angle and created an LSMW so I can Mass delete the parts but then use this program to change the BOM item to the new part.
Thanks again for your reply
Kind Regards
Frankie -
Exist bapi to change bom item info?
hi
one case for me to need to change BOM ITEM( the table STPO's field about STPOZ).
exist bapi or function can change BOM item info?
if not exist bapi or function to work it .
i can use abap sql--> update it ??
thank you very much!
Best Regard!Chk this FM.
CSAP_BOM_ITEM_MAINTAIN -
Problem in Partial delivery BOM - items not copied in subsequent delivery
Hi,
We are using BOM in Sales order and we have activated delivery group for the BOM header item category.
When we create first delivery we change the BOM header item quantity in delivey ( all the components quantity change accordingly) and save the delivery.
Now when we try to create second delivery with reference to the same delivery for the left out qunatity in sales order, system is not copying the components of BOM items ( it is only copying BOM header) from sales order to delivery.
Please let us know how can we create subsequent delivery with reference to the same sales order and delivery should get all the BOM items from SO to delivery.
Please let me know if you need further information.
Thanks
Venkata Rama Reddy,KHi,
We already set the delivery group to A, and still having the same result. We change the BOM header quantity only and automatically the component quantity is updated.
This happens only if there are two header BOM in the Sales Order. See example below:
Bom Header 1 = 100
Bom Component 1a - 80 (partial delivered)
Bom Component 1b - 20 (partial delivered)
Bom Header 2 = 200
Bom Component 2a - 150
Bom Component 2b - 50
When creating outbound delivery, initially all the materials are copied to the outbound document. If we want to delivery only Bom Header 2, then we will delete the Bom Header 1 line item.
Upon deletion, the status of the component becomes fully delivered in the SO, but the Bom header is still partial delivered.
Please confirm how to correct this.
**If there is only one BOM Item in the order, then partial delivery is ok..
Thank you, -
Avoid automatic creation of purchase requisition for bom item N
Dear.
When I create a production order , for the components with bom item N the system create a purchase requisition. I need to avoid this automatic creation , do you know a solution to obtain this ?
Thanks.For the many people that have asked this question.
N item category in the BOM is always going to propose direct procurement. Through configuration I have not found a way to make it go away from the planned order. You can make it go away from the production order.
The IMG path:
Plant Maintenance and Customer Service
-> Maintenance and Service Processing
--> Maintenance and Service Orders
---> Functions and Settings for Order Types
----> Define Change Docs, Collective Purc. Req. Indicator, Operation No. Interval
Under the Res/PurRq -> Specify Never
In order make this setting effective, you must define the following
system message to error or warning, as it is stated on note 569984
Version Appl.A. No. Cat
00000000 C2 280 W
Please note that this setting is effective for reservations and
requisitions.
The best solution is to use BOM item category L with the bulk indicator set. You will not get any direct procurement proposals or planned orders and you can use long term planning to see the time phased MRP results. -
New BOM Items ordered not retained on click ofUpdate in BOB (OOB) shop
Hello Experts,
We are using BOM material in our Business Process. Per Business requirement, the BOM sub-items are not required to be displayed on the Order Page of ISA webshop in OOB scenario.
Hence we have set the parameter "ui.fields.order.bomExplosion"to 'hidden' in XCM Setting.screenshot attached.
After making this change, we are experiencing the issue where we are not able to add any new BOM items to existing Orders, especially in the scenario where all blank line items are filled in with new BOM Products. When we click on Update, the new items are not retained and disappear.
Help is very much appriciated.
Regards,
Satish BHello Raj,
Thanks for your response.
We find out the problem this was the SAP product Bug in the class SalesDocumentParser method parseItems the iteration count is worng. Its not taking care about the Bom items. Instead of interating the loop through index SAP is iterating through values. So we implemented the solution for the same.
Regards,
Satish B -
Material BOM mass change error
Hi gurus,
When doing mass change of BOM via tcode CS20, i'm getting below error result.
The following messages were displayed:
Material BOM 00016478 : Delete Item(s)
19760 STM-220-(20UP)78DZ*C06U029(XC06U029)Sn 200
0130 L 01/01/2002 12/31/9999 1.00 PC > 1.00 PC
No batch input data for screen SAPLSDDT 0010
Folder created/extended
I wonder what does "No batch input data for screen SAPLSDDT 0010" mean? what should i do to correct this?
I also noticed that all items on the picklist were grayed out though i can still click on the checkbox button to select the items that I want to be deleted.
Has anyone encountered this problem? I usually use CS20 during BOM mass change and haven't encountered this kind of problem.
Hope to hear advise from you all on how to deal with this.
Thanks and regards,
ChadDear,
Error message no is 00344 ?
Please refer the OSS note Note 493096 - CS20: No batch input data for screen SAPLCSDI and Note 180686 - For CS20
Regards,
R.Brahmankar -
Hi Gurus,
I want to change a BOM and update/create the BOM Item text/Long text. I just want to change the BOM and create an item text (If the text is more than 80 chars, then I should be able to create a long text).
I tried using FMs SAVE_TEXT and CREATE_TEXT without much luck. Could someone throw some light on how to achieve this.
RThanks Sudheer. Yes, I'm passing the correct parameters. Please see below.
CONCATENATE sy-mandt ls_stpo-stlty ls_stpo-stlnr
ls_stpo-stlkn ls_stpo-stpoz
INTO lf_tdname.
CALL FUNCTION 'CREATE_TEXT'
EXPORTING
fid = 'MPO'
flanguage = sy-langu
fname = lf_tdname
fobject = 'BOM'
TABLES
flines = lt_lines
EXCEPTIONS
no_init = 1
no_save = 2
OTHERS = 3.
The thing is that it should save the text in Line1 and line 2 of the item text if the length is less than 80. I assume that the TEXT Fms will do it for me. Please correct me if I'm wrong.
I have also tried a direct database update by changing the stpo-ltxsp field. No luck again. Did someone has updated/created the text using this method ? -
Track Deleted BOM item in Process Order
Hi Guys,
I am facing one issue which is described as below.
when user is converting the Planned order into Process order at that time he has deleted 1 BOM item.
Now i he is saying that i have not deleted that item and after that he released and done the GI conf GR.
Now i want to track the change history but i am not able to find the changes done by him.
I have check so many blogs but i come to know that if he is deleting BOM item during creation we will not able to find.
Pls helpHi D R,
To the best of my knowledge at the time of creation if some component has been deleted, you can not track. Because up to that time table entry has not happened. After saving you can see the component.
If you have some existing process order which is without item deletion, you can compare and check. As well Check the BOM in CS03 and check the BOM inside process order. You can easily find out the component.
Hope this clarifies and at per your requirement.
Success.
Regards,
Krishnendu. -
hello,,,
I want to ask can i delete my bom items through DI API.
Will the changes of addings and deleting of items through DI API(coding n sdk)be reflected in our SBO.Dim objBOM As SAPbobsCOM.ProductTrees
Dim intCnt As Integer
Dim strCode As String
Dim objItem As SAPbobsCOM.Items
Dim objRS As SAPbobsCOM.Recordset
Dim boolFlag As Boolean
objItem = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oItems)
objRS = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
objRS.DoQuery("Select Code from OITM ")
If (objRS.RecordCount > 0) Then
For intI = 0 To objRS.RecordCount - 1
strCode = objRS.Fields.Item(0).Value
boolFlag = objItem.GetByKey(strCode)
If boolFlag = True Then
lngStatus = objBOM.Remove()
End If
objRS.MoveNext()
Next
End If
Note - This code will delete all BOM's.Change the as per u r requirement.
Maybe you are looking for
-
Is it god for the computer if you open and close it every 5 mins or less
becuase im scared of burning my computers hardware and etc in their helpp plzz
-
Tabstrip control can not switch (Do not respond when focus on field of subscreen)
Hi Colleagues, I have met with a very strange question, which worries me a lot these days. Would you please help me with it? The problem is like this: 1. In normal case, I can switch to another tab when I click it. Please see picture i
-
Need Oracle 9i client for RedHat Enterprise Linux AS 4.0 machine
I need to install Oracle 9i client on my RHEL AS 4.0 machine (running Intel xeon 64 bits processor). Could some one please point me to correct installable for this. I tried to use both the Oracle9i Release 2 (9.2.0.4) installables at http://www.oracl
-
Flex RIA FullScreen Application
Hi, i am creating an application in Flex.. when user open the this application i want open the flex in Fullscreen... Anybody can help me... already i tried but i have security error #2152 ...please help me Advance Thanks Kamal
-
Help