Production order - Components
Hello
I have the following components in the production order :
0000 A005.A06182 CC 0,6X669X2074 S280GD+Z275MC POL RR109F 71 M2
0001 B002.S00004 Colour Coated Sheet 68,531- M2
0002 S001.A00027 CC COIL SCRAP (BUOM = KG) 10,458- KG
Do I understand correctly that components are the raw materials required to produce final material?
What do some components have negative quantity consumed (lines 0001 and 0002)?
Thank you so much but I dont understood anything .... but I am totally confused
The production order is for material A :
Order Q147006
Material F001.A00001 (A)
I think its a final product.
The companents are materials B, C and D
B 100
C -200
D -300
Can you please explain what kind of products are produced. What are bi materials?
Similar Messages
-
Problem with final issue of production order components
Hi Gurus,
Currently we have a problem with the production order components.
The problem is that, we needed some components (components which are categorized as dangerous goods) deleted from the production orders.
So we tried to manually tick the final issue indicator and save the production order. However, the reservations reappeared after the MRP Run.
Hence, we then tried to delete the component line items, but then again the reservations reappeared.
Also, since the components are externally procured materials, new purchase requisitions are generated by MRP for these materials.
Kindly request your help on the same.
Thanks and Regards,
SanjuHi Kiran,
Please find the screenshots of MD04 for the header and component in the attachment:
MD04 for Header:
MD04 for Component:
For the header material no entry is available for 07.01.2015 as the status is delivered for the production order of the header material.
Kindly help me with the same.
Thanks,
Sanju -
Class for Purchase order item components and Production order components
I'm looking for a some classes. I'm very new to objects, so I could be searching for them incorrectly.
The first class I'm looking for is a purchase order class that contains the item components. I've looked at CL_PO_ITEM_HANDLE_MM and CL_PO_HEADER_HANDLE_MM. I couldn't find components as a part of either of the classes.
The second one I'm looking for is not as critical. It is for the components for a production order. I have a function module: BAPI_PRODORD_GET_DETAIL that gets the components for the order. However, to take advantage of objects - I read somewhere - that if possible I should avoid calling a function module.
Any help that you could give would be greatly appreciated.
Thank you!
MichelleHello Michelle
I do not think there are already classes available on ERP 6.0 for reading production order (yet I might be wrong...). However, regarding purchase order you are already on the right track.
*& Report ZUS_SDN_OO_READ_PO
*& Thread: Class for Purchase order item components and Production order components
*& <a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1206523"></a>
"& NOTE: Coding adapted from BAPI_PO_GETDETAIL1
REPORT zus_sdn_oo_read_po.
TYPE-POOLS: abap, mmpur.
PARAMETER:
p_ebeln TYPE ebeln DEFAULT '3000000045'.
DATA: gs_document TYPE mepo_document,
go_po TYPE REF TO cl_po_header_handle_mm,
gs_header TYPE mepoheader,
gd_tcode TYPE sy-tcode,
gd_result TYPE mmpur_bool.
data: gt_items type PURCHASE_ORDER_ITEMS,
gs_itm type PURCHASE_ORDER_ITEM,
gs_item type mepoitem.
START-OF-SELECTION.
* prepare creation of PO instance
gs_document-doc_type = 'F'.
gs_document-process = mmpur_po_process.
gs_document-trtyp = 'A'. " anz. => display
gs_document-doc_key(10) = p_ebeln.
* object creation and initialization
** l_ebeln = purchaseorder.
CREATE OBJECT go_po.
CALL METHOD go_po->po_initialize( im_document = gs_document ).
CALL METHOD go_po->set_po_number( im_po_number = p_ebeln ).
CALL METHOD go_po->set_state( cl_po_header_handle_mm=>c_available ).
* read purchase order from database
gd_tcode = 'ME23N'.
CALL METHOD go_po->po_read
EXPORTING
im_tcode = gd_tcode
im_trtyp = gs_document-trtyp
im_aktyp = gs_document-trtyp
im_po_number = p_ebeln
im_document = gs_document
IMPORTING
ex_result = gd_result.
* there was a problem in reading the PO
IF ( gd_result EQ mmpur_no ).
** l_messages = l_handler->get_list_for_bapi( ).
** PERFORM return TABLES l_messages return
** poitem poschedule poaccount.
** CALL METHOD l_po->po_close( ).
ELSE.
gs_header = go_po->if_purchase_order_mm~get_data( ).
WRITE: / gs_header-ebeln,
gs_header-bukrs,
gs_header-bsart,
gs_header-lifnr.
ENDIF.
gt_items = go_po->if_purchase_order_mm~get_items( ).
LOOP AT gt_items INTO gs_itm.
gs_item = gs_itm-item->get_data( ).
write: / gs_item-ebelp,
gs_item-matnr,
gs_item-menge.
ENDLOOP.
END-OF-SELECTION.
Regards
Uwe -
Problem in changing Production order components.
The problem is happening while changing components in Production order.
Take a look at the source code.
data : IS_ORDER_KEY TYPE COXT_ORD_KEY,
IS_ORDER_COMPONENT_KEY TYPE COXT_S_ORD_COMP_KEY,
IS_REQUIREMENT_QUANTITY TYPE COXT_S_QUANTITY,
IS_REQUIREMENT_QUANTITYX TYPE COXT_S_QUANTITYX,
IS_CONFIRMED_QUANTITY TYPE COXT_S_QUANTITY,
IS_CONFIRMED_QUANTITYX TYPE COXT_S_QUANTITYX,
I_MATERIAL TYPE COXT_MATERIAL,
I_MATERIALX TYPE COXT_MATERIALX,
IS_ORDER_OPERATION_KEY TYPE COXT_S_ORD_OPR_KEY,
IS_ORDER_OPERATION_KEYX TYPE COXT_S_ORD_OPR_KEYX,
IS_REQUIREMENT_DATE TYPE COXT_S_DATE,
IS_REQUIREMENT_DATEX TYPE COXT_S_DATEX,
IS_STORAGE_LOCATION TYPE COXT_S_STORAGE_LOCATION,
IS_STORAGE_LOCATIONX TYPE COXT_S_STORAGE_LOCATIONX,
I_BATCH TYPE COXT_BATCH,
I_BATCHX TYPE COXT_BATCHX,
I_MI_CONFIGURATION_OBJECT TYPE COXT_CONFIG_OBJECT,
I_MI_CONFIGURATION_OBJECTX TYPE COXT_CONFIG_OBJECTX.
DATA :wa_resb type resb,
ES_BAPIRETURN TYPE COXT_BAPIRETURN,
E_ERROR_OCCURRED TYPE C.
IS_ORDER_KEY = '000002098003'.
select single * from resb into wa_resb where aufnr eq IS_ORDER_KEY
and bwart eq '531'.
move-corresponding wa_resb to IS_ORDER_COMPONENT_KEY.
IS_REQUIREMENT_QUANTITY-quantity = '10.23'.
IS_REQUIREMENT_QUANTITY-uom = 'KG'.
IS_REQUIREMENT_QUANTITYX-quantity = 'X'.
IS_REQUIREMENT_QUANTITYx-uom = 'X'.
*IS_STORAGE_LOCATION-lgort = '1060'.
*IS_STORAGE_LOCATIONX-lgort = 'X'.
I_MATERIAL = wa_resb-matnr.
IS_STORAGE_LOCATION-werks = wa_resb-werks.
IS_STORAGE_LOCATIONx-werks = 'X'.
IS_STORAGE_LOCATION-lgort = '1060'.
IS_STORAGE_LOCATIONX-lgort = 'X'.
CALL FUNCTION 'CO_XT_COMPONENT_CHANGE'
EXPORTING
IS_ORDER_KEY = IS_ORDER_KEY
IS_ORDER_COMPONENT_KEY = IS_ORDER_COMPONENT_KEY
IS_REQUIREMENT_QUANTITY = IS_REQUIREMENT_QUANTITY
IS_REQUIREMENT_QUANTITYX = IS_REQUIREMENT_QUANTITYX
IS_CONFIRMED_QUANTITY = IS_CONFIRMED_QUANTITY
IS_CONFIRMED_QUANTITYX = IS_CONFIRMED_QUANTITYX
I_MATERIAL = I_MATERIAL
I_MATERIALX = I_MATERIALX
* IS_ORDER_OPERATION_KEY = IS_ORDER_OPERATION_KEY
* IS_ORDER_OPERATION_KEYX = IS_ORDER_OPERATION_KEYX
* IS_REQUIREMENT_DATE = IS_REQUIREMENT_DATE
* IS_REQUIREMENT_DATEX = IS_REQUIREMENT_DATEX
IS_STORAGE_LOCATION = IS_STORAGE_LOCATION
IS_STORAGE_LOCATIONX = IS_STORAGE_LOCATIONX
I_BATCH = I_BATCH
I_BATCHX = I_BATCHX
I_MI_CONFIGURATION_OBJECT = I_MI_CONFIGURATION_OBJECT
I_MI_CONFIGURATION_OBJECTX = I_MI_CONFIGURATION_OBJECTX
* I_BATCH_SEL_CUOBJ = I_BATCH_SEL_CUOBJ
* I_BATCH_SEL_CUOBJX = I_BATCH_SEL_CUOBJX
* I_XFEHL = I_XFEHL
* I_XFEHLX = I_XFEHLX
* I_SOBKZ = I_SOBKZ
* I_SOBKZX = I_SOBKZX
* I_KDAUF = I_KDAUF
* I_KDAUFX = I_KDAUFX
* I_KDPOS = I_KDPOS
* I_KDPOSX = I_KDPOSX
* I_PSPEL = I_PSPEL
* I_PSPELX = I_PSPELX
* I_KZAUS = I_KZAUS
* I_KZAUSX = I_KZAUSX
* I_NAFKZ = I_NAFKZ
* I_NAFKZX = I_NAFKZX
* I_NOMAT = I_NOMAT
* I_NOMATX = I_NOMATX
* I_NFUML = I_NFUML
* I_NFUMLX = I_NFUMLX
* I_NFPKZ = I_NFPKZ
* I_NFPKZX = I_NFPKZX
* I_NOMNG = I_NOMNG
* I_NOMNGX = I_NOMNGX
IMPORTING
ES_BAPIRETURN = ES_BAPIRETURN "initial
E_ERROR_OCCURRED = E_ERROR_OCCURRED"blank not showing 'X'.
CALL FUNCTION 'CO_XT_ORDER_PREPARE_COMMIT'
IMPORTING
E_ORDER_KEY = IS_ORDER_KEY
ES_BAPIRETURN = ES_BAPIRETURN
E_ERROR_OCCURRED = E_ERROR_OCCURRED
* TABLES
* ET_ORD_KEY_MAP = ET_ORD_KEY_MAP
* ET_BAPIRETURN = ET_BAPIRETURN
write : 'dfdfdf'
Notable point is that after executing CO_XT_COMPONENT_CHANGE' parameters ES_BAPIRETURN and E_ERROR_OCCURRED are initial.
This explains that the FM has been executed successfully.
But still the changes are not done in production order.
Please let me know where i am mistaken.nabheet,
this is called expilicitly for commit.
Not in any exit or something.
Have a look at the source code which i have posted while starting this discussion.
This below FM is called just after CALL FUNCTION 'CO_XT_COMPONENT_CHANGE'
Look at the source code in starting of discussion. U will understand when it is executed.
CALL FUNCTION 'CO_XT_ORDER_PREPARE_COMMIT'
IMPORTING
E_ORDER_KEY = IS_ORDER_KEY
ES_BAPIRETURN = ES_BAPIRETURN
E_ERROR_OCCURRED = E_ERROR_OCCURRED
* TABLES
* ET_ORD_KEY_MAP = ET_ORD_KEY_MAP
* ET_BAPIRETURN = ET_BAPIRETURN -
Avoid Deletion of Production order Components.
Dear All,
Is there any arrangement to nbot to authorize the person to delete the component present in the Production Order.
If not than can we get the consolidated report for the details whodeleted the Material.
Regards,
Mandar.Dear ,
You may not be required that report if you have authorisation control through Screen Varint at user level and apply the following User Exit of SAP Standard Enhancement available for SAP PP Production Order .Find belwo those Enhancement and discuss with your ABAPer for the same .In transaction CMOD, create a project and include the project of the user exit, which you can look up in transaction SMOD.Then you implement the code in the include, and activate the project.
1.C_STUE_BER CS BOM Authorizations or you can make use of the exception NOT_ALLOWED_WITH_ERROR in this exit
2.PPCO0008 Enhancement in the adding and changing of components
3.PPCO0015 Additional check for document links from BOMs
Check father the below link which are useful I think :
Problem in User Exit
Request: BADI for CO02
Re: CO02 enhancement
Help needed: user exit for CO02
http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=189893877
Hope this will be useful to you
Regards
JH -
Rescheduling Sales Order vs Production Order (Components)
Hi gurus,
Transaction V_RA rescheduling sales order with different filters.
We need a transaction similar to V_RA that rescheduling sales order and production order (for availability check of components). Does it exist??
I will reward points to all answers!
Thank you!Daniel,
It all depends on the business policy of each client. In our case, it was decided that in case Production orders and Sales orders compete for the same material, we will give priority to sales orders. Hence, we changed the timings of the nightly jobs. The backorder job was run first, so that stock was committed there first. Balance if any could go to Prod orders.
But again, that depends on the strategy of your company.
Ashutosh -
Sort String Field Mandatory in Production Order Components Screen
Hi Gurus,
Am currently working on ECC 6.0 environment.
When I try to assign a batch to the components of the production order, the 'Sort String' is a mandatory field.
Can you please suggest from where is this mandatory field is picked? Is it possible to populate the field automatically? Or how to make the 'Sort String' field not mandatory?
In order type parameters (OPL8), standard parameters for display profiles are maintained.
Have also tried to maintain user parameters like F1F, S3F and S5F without success.
Your guidance please.
Thanks in advance.
The above mentioned problem does not occur if I try to create production order without reference of planned order using T Code CO01. This problem occurs only when I am converting planned order to production order.
Note that have tried maintaining sort string in the BoM. The sort string gets picked up when am creating manual production orders. Not copied when converting planned orders to production orders.
Tarang
Edited by: Tarang Machhar on Sep 28, 2010 7:23 PM
Edited by: Tarang Machhar on Sep 28, 2010 7:28 PMHi Tarang,
I think there is a transaction/screen variant maintained for that. Ask your ABAP team member to debug and check if there is any coding done to make it mandatory. There is no customizing for this one. There must be some code written to make it mandatory.
But you are correct, if you maintain the sort string in BOM, it gets copied on to the planned order, the reservation and the production order as well.
Regards,
Pradeep. -
Tables or bapi where i can find the production order' components
Hi Gurus,
Someone knows what are the tables or bapi that i need to know
what are the components of a producton order.
i can see the production order's comonents in CO02, but i need to know the components of a production
in order to generate a report.
Any suggestions ???
Kind Regards
Edited by: noemi huerta on Nov 4, 2008 1:15 AMHi.
This FM has been very helpful to me: BAPI_PRODORD_GET_DETAIL.
You use this one to make the detailed data of an order available. Using the parameter ORDER_OBJECTS you can define which order objects are selected and returned.
CALL FUNCTION 'BAPI_PRODORD_GET_DETAIL'
EXPORTING
NUMBER
COLLECTIVE_ORDER
ORDER_OBJECTS
IMPORTING
RETURN
TABLES
HEADER
POSITION
SEQUENCE
OPERATION
TRIGGER_POINT
COMPONENT
PROD_REL_TOOL
Kind regards,
F.S.A. -
Production order components has two batches
how can i configure my system in such a way that upon creating the order, and saving, system will suggest two batches ( in case first batch doesn't meet requirement quantity )
Hi,
We had alredy discuss this problem in another thred which you have posted.I have check Batch Determination with this characterstic today itself and it works fine.
Only problem with this characterstic is during Batch Determination system select those Batches also for which Self Life is alredy passes the limit.Due to this SAP has suggest two other charactersic LOBM_MBDAT and LOBM_RLZ along with LOBM_VFDAT.
Below link may help to solve your problem over Batch Determination
[http://www.sapdb.info/category/certification/] go to SCM595 Batch Management and read the topic over Batch Determination.
Regards,
Dhaval
Edited by: Dhaval Choksi on Jul 1, 2008 6:41 PM -
Need to Post Components in Production Order in MB1A through BAPI as Planned Good Issue
Hi ,
I have created a Program to upload data s for MB1A through BDC , it works fine, but for huge data s it takes more time. alternatively created one more Program which updates through BAPI Function Module "BAPI_GOODSMVT_CREATE". It works fine , but one issue noted, after posting through Function Module , components are posted as Unplanned Goods Issue. I need to post the components as " Planned Goods Issue" instead of "Unplanned Goods Issue " . This can viewed through Tcode : C003
Below are the inputs passed for BAPI Function Moduel
**&------Header Contents of bapi Upload-------------------&*
header-pstng_date = sy-datum. " Posting date
header-doc_date = sy-datum. " Document Date
header-header_txt = '000001002280'. " Header text
header-pr_uname = sy-uname. " User Name
header-ref_doc_no = '000001002280'. " Header Ref. Doc. No.
CONCATENATE sy-uname sy-uzeit c_method INTO header-ref_doc_no_long SEPARATED BY '-'. " Refer Text
*Item Data
wa_item-material = '000000000010000800'. "Material
wa_item-plant = '3910'. "Plant
wa_item-stge_loc = 'WIP'. "Storage Location
wa_item-move_type = '261'. "Movement Type
wa_item-entry_qnt = '1'. "Quantity
wa_item-entry_uom = 'PC'. "Unit
*wa_item-res_item = 1. "Reservation Item
*wa_item-reserv_no = " Reservation Number
wa_item-batch = '0000011027'. "Batch No
*wa_item-mvt_ind = 'F'. "Movement Indicator
*wa_item-stck_type = 'F'. "Stock Type
wa_item-orderid = '000001002260'. "Order ID
wa_item-prod_date = SY-DATUM.
*wa_item-GL_Account = '610000'. "GL Account
*TRANSLATE wa_item-batch TO UPPER CASE.
*APPEND wa_item TO it_item.
c_code = '03'.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = header
goodsmvt_code = c_code
TABLES
goodsmvt_item = it_item
goodsmvt_serialnumber = it_sno
return = return.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
commit work and wait.
Even i tried to pass "Movement Indicator , GL Account etc" , Still not able to fix the issue. Can anyone suggest how to post the Production Order components as "Planned Goods Issue". I am not sure any other values to be password.
BR,
MuraliI have made something like your :
* Alimtentation de la BAPI de mouvement de stock MM.
move : sy-datum to ls_header-pstng_date ,
sy-datum to ls_header-doc_date ,
* Indique le code mouvement
'03' to lw_code. " 03 normalement, mais je veux que ca plante
loop at lt_ltap
into ls_ltap.
move : ls_ltap-matnr to ls_item-material ,
ls_ltap-werks to ls_item-plant ,
ls_ltap-lgort to ls_item-stge_loc ,
'261' to ls_item-move_type ,
ls_ltap-vsolm to ls_item-entry_qnt ,
ls_ltap-meins to ls_item-entry_uom ,
i_ltak_vb-benum to ls_item-orderid ,
i_ltak_vb-rsnum to ls_item-reserv_no ,
ls_ltap-rspos to ls_item-res_item ,
ls_ltap-rsart to ls_item-res_type.
append ls_item to lt_item.
clear ls_item.
endloop.
I have to put the reservation number to have it works.
Fred -
Reversal of components issued to Production order
Hi Gurus
I have a problem during reversal of components issued to production order.
i issued 100 nos of components to production order thro co27.
When i do reverse 50 components thro MB1A (262 movement type)
the system is not reducing the reversed components qty. in the production order components overview ( Qty withdrawn).
One more issue is,
When i create rework order thro' co07, i have selected the ref. opn set what i have created. Then i entered the settlement rule against production order.
After that system giving error message "No task list for selection ID 01 for auto task list selection found.
With out considering this message, i did confirmation, i am not getting the rework order material in the stock ( control key with auto GR).
Please advice me.
Thanks & Regards
BalaBala,
In transaction MB1A, use the following procedure.
1. Execute transaction MB1A.
2. In the Intial screen enter movement type as 262, Plant details and storage location details and then click "To order" button or Shift+F1).
3. In the Popup screen enter the order number against which the reversal has to be performed and Enter in keyboard.
4. System default proposes all the components which were Issued, enter the quantity for the material you wanted to reverse, remaining materials leave the quantity blank.
5. Adopt and Post the Goods movement.
This would now reduce the Goods withdraw quantity.
Probabaly previously you were trying to enter the Order number in the second screen, what this means is that the system would consider this as "Unplanned Goods Movement", hence this movement does not gets updated with referance to reservation.
Hope this resolves your problem.
For your rework related query, request you to open a new thread if it is not answered here.
Regards,
Prasobh -
User-exit for components in Production Order
Hello
I have to change automatically materials parameters in production order components ( e.g resb u2013 fmeng I need to mark or stand out the indicator ) before saving.
Does anyone know a BADI or user-exit that i can use?
Regards,
ArturHi Artur
You can try BADI WORKORDER_UPDATE
or
user exit PPCO0001 and PPCO0008
Hope it helps you .
Regards
Ritesh -
In sale sorder based production order can i consume unrestirced stock
HI,
i am creating Production order using co08 with respect to sales order.the
( bom items)components to be cosumend for that production order should be sales order stock compulsory.
if i want to consume against sales order how can i consume stock which does not have sales order assignment. i think only through 231 movement type.
if there any possibe pls sugggest
regards
madan mohanHi madan,
Other than the way of converting the unrestricted stock to the sale order stock which is the normal course of working, you can also consume the unrestricted stock to the production order which has a assignment to the sale order by manually changing the assigment of the material to blank in the production order components. If you enter into the production order components u will be able to see a column called "Spec procurement" where in by default it will be '1' if the production order is w.r.t a sale order. you have to remove that and make it blank. then proceed with material availability check, if the unrestricted stock is avl for the material / storage location then the same will be commited to the production order.
reg
Kiki
award points if this is helps -
Reg.Stock transfer from Sale order into Production order
Dear All
We want to transfer the sale order stock in to production order.
What I have to do ? Pls help me.
Thanks
Rajakumar.KHi,
Could you please explain in details?
Other than the way of converting sale order stock which is the normal course of working, you can also consume the unrestricted stock to the production order which has a assignment to the sale order by manually changing the assigment of the material in the production order components. If you enter into the production order components u will be able to see a column called "Spec procurement" where in by default it will be '1' if the production order is w.r.t a sale order. Then proceed with material availability check.
Regards,
R.Brahmankar -
I am facing a difficult scenario. Pl. help me out. In my Business Process I am assigning Batches in Production Order Component Overview Screen. Here I am assigning relevant batches to BOM Components manually, My Management want SAP to suggest batches automatically on FIFO basis, thickness, grade, width & first batches should automatically assign to Production order. Can you pl. tell me how to configure this scenario.
Or can I pull stock overview screen at Production Order Component screen to assign relevant batch to BOM Components
Once batches assigned in Production Order component screen cannot be changed. It can be changes by specific persons only.Hi,
Automatic Batch Determination for production order components is possible by configuration.
You can also refer below discussions to map your scenario.
Batch determination in production order | SCN
Automatic Batch Determination in Production order
Regards,
Naresh
Maybe you are looking for
-
Create mobile Theme in APEX 4.0
I'm using APEX 4.0 (4.0.2.00.06) and I have to create a Mobile application. I know there are mobile theme's available in APEX 4.1, but we won't switch to APEX 4.1 jet... So, I've created a Page Template, List Template and Report Templete, using this
-
explain on change of endon. at new endat.
-
Hi, I am searching for a way to define a vendor's default currency in transaction FB60. We have entered the default currency in the vendor master (Purchasing data>Order currency>by Plant). When entering the invoice in FB60 the currency still shows as
-
I have a new credit card.. I want to update the billing info, but it says " not allowed to use store in this region" ( or something like that ). So I tried to change my country, but nothing happens. I do not want to make another apple id, I got 3 app
-
Buying a new MAC mini. Want to buy a non-apple monitor. Advice?
I am buying the MAC mini. the larger one. I want to buy a monitor and have been advised to get a Samsung from friends. are there considerations as to the number of pixels, or other things in purchasing this monitor? thanks for any help, ms. dragon