Production order mass updation of components
Dear Friends,
My production order is created and partially confirmed, and now i want to directly insert some 100 components in components overview of CO02 screen.
please suggest any mass insertion or uploadinding method exists.
Or if any BAPI exists pls tell me.
Note: Dont suggest Order Change management
Thanking you guys in advance,
Reagards,
Kumar
Hi,
You can use BDC method for this requirement
Regards,
Sankaran
Similar Messages
-
Creation of Production Orders(CO01) , its opeartion & Components in mass
Hi Gurus
I have to create the Production Orders in mass with Operation & Component alloacation & i want to use the BAPI BAPI_PRODORD_CREATE, whether i can create the Opeartions & components of Production Orders at the same time using this BAPI BAPI_PRODORD_CREATE or anything else i have to use ?
what should be the solution for this kind of situation ?
i am going to get the flat file that have each & every single detail about Production Orders, its operations & Components & i have to create the Production orders in a big mass approiximately 2 million Production orders with Operations & componets.
Please suggest how to deal with this ?
ThanksResolved .
-
IDOC for Creation of Production order and also adding components
Hi ,
I have a requirement like I get the data from a 3rd party system and using that i have to create production orders and also should be able to add more materials in COMPONENTS part of that Production order. I was looking for a BAPI which can handle this process.
And also can any one help me by letting me know is there any Message type available for handling this process of Production order creation and Adding extyra components to it.
I have a message type LOIPRO (for Production Order) and associated function modle CLOI_MASTERIDOC_CREATE_LOIPRO for creation of master IDoc, but not sure can i handle the Components part in this.
Please do send replies ASAP, its very urgent.
Or else atleast suggest me the other ways of doing this .
Also send me any BDC program if anyone has already developed for this.
Thanks
Kumar
Edited by: Phani Kumar Peddagopu on Mar 19, 2008 6:56 PMResolved .
-
Material Account Assignment Group, in Sales Order Mass Update
Sd Experts,
We just went live, our consultant updated Account assignment group at the material level but did not updated existing materials. When we caught the problem and updated exisisting materials there were some existing orders already created. Which now I am getting an account determination error due to this field being empty at the material level.
We have some sales orders that I need to update but they are just too many, currently I have been fixing them thru VF02, for to the material and update manually.
Does anyone has any idea how to mass update this field for all existing orders, to update "Account Assignment Group" field automatically
Your help will be greatly appreciated.Hi
In Mass transaction choose object type as #BUS2032,after executing in the next screen from the tables choose#Sales Order Item Data, and from the fields choose#AcctAssgGr (MASSSDHE)-MASSSDHEAD_S-KTGRD, now execute to find fields Sales document and Sales Document item , here load all the Sales Orders for which the change is needed along with the items for which the changes are needed execute again to find the next screen with Sales Documet, Sales Document item and Account assignment which needed to be changed,now select the entire block enter new values in the Account assignment box in the above, click on the 'Carry out MAss change button ' and then save, it will take some time basing the change tobe carried and issues a log as to how many documents were changed
Hope this is clear,please do a test run before.
Regards
Chandra -
BAPI_GOODSMVT_CREATE for production order,not update database
hi guru,
i am using BAPI_GOODSMVT_CREATE for production order.When i m testing this BAPI
at se37 it creates one mat doc no and i m not getting any return messages.Now i m
writing code for it at se38. but it does not update the database even though i used
bapi_transaction_commit. here sy-subrc = 0.bt when i m checking MSEG table showing
that mat doc no does not exists.
please help me out asap.
thanks and regurds,
manasiCHECK THIS CODE
REPORT ZBAPI_GOODSMVT_CREATE.
*DECLARING INTERNAL TABLE TO HOLD FILE DATA.
DATA: BEGIN OF itab OCCURS 0,
text(200),
END OF itab.
*DECLARING INTERNAL TABLE TO PASS FILE DATA.
TYPES: BEGIN OF tw_goodsmvt,
pstng_date TYPE budat,
doc_date TYPE bldat,
material TYPE matnr,
plant TYPE werks_d,
stge_loc TYPE lgort_d,
move_type TYPE bwart,
* entry_qnt TYPE erfmg,
costcenter TYPE kostl,
END OF tw_goodsmvt,
tt_goodsmvt TYPE STANDARD TABLE OF tw_goodsmvt.
DATA: lt_goodsmvt TYPE tt_goodsmvt,
lw_goodsmvt TYPE tw_goodsmvt.
*declaring internal table of bapi structure.
DATA:s_goodsmvt_header LIKE bapi2017_gm_head_01,
lt_goodsmvt_item TYPE STANDARD TABLE OF bapi2017_gm_item_create WITH HEADER LINE,
lt_return TYPE STANDARD TABLE OF bapiret2 WITH HEADER LINE.
DATA:str_filename TYPE string,
gm_code TYPE gm_code,
v_head_count TYPE i VALUE 0,
v_prev_count TYPE i VALUE 1,
v_qnt TYPE string,
v_dummy.
*selection screen
SELECTION-SCREEN BEGIN OF BLOCK bk with frame title text_001.
PARAMETERS:p_docdat TYPE bldat,
p_pstdat TYPE budat,
fname LIKE rlgrap-filename.
SELECTION-SCREEN END OF BLOCK bk.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR fname.
*to provide F4 functionality.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
IMPORTING
file_name = fname.
* start of selection
START-OF-SELECTION.
str_filename = fname.
gm_code = '06'.
* to upload data
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = str_filename
filetype = 'ASC'
has_field_separator = 'X'
read_by_line = 'X'
TABLES
data_tab = itab.
*SPLITING DATA TO INTERNAL TABLES.
LOOP AT itab.
IF itab+0(1) EQ 'H'.
v_head_count = v_head_count + 1.
IF v_head_count GT v_prev_count.
PERFORM bapi_upload.
ENDIF.
SPLIT itab-text AT ',' INTO v_dummy
lw_goodsmvt-pstng_date
lw_goodsmvt-doc_date.
s_goodsmvt_header-doc_date = lw_goodsmvt-doc_date.
s_goodsmvt_header-pstng_date = lw_goodsmvt-pstng_date.
v_prev_count = v_head_count.
ELSEIF itab+0(1) EQ 'L'.
SPLIT itab-text AT ',' INTO v_dummy
lw_goodsmvt-material
lw_goodsmvt-plant
lw_goodsmvt-stge_loc
lw_goodsmvt-move_type
v_qnt
lw_goodsmvt-costcenter.
* PASSING DATA TO INTERNAL TABLE TYPE BAPI STRUCTURE.
lt_goodsmvt_item-material = lw_goodsmvt-material.
lt_goodsmvt_item-plant = lw_goodsmvt-plant.
lt_goodsmvt_item-stge_loc = lw_goodsmvt-stge_loc.
lt_goodsmvt_item-move_type = lw_goodsmvt-move_type.
lt_goodsmvt_item-entry_qnt = v_qnt.
lt_goodsmvt_item-costcenter = lw_goodsmvt-costcenter.
APPEND lt_goodsmvt_item.
ENDIF.
v_prev_count = v_head_count.
ENDLOOP.
PERFORM bapi_upload.
*& Form bapi_upload
form bapi_upload .
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = s_goodsmvt_header
goodsmvt_code = gm_code
* TESTRUN = ' '
* IMPORTING
* GOODSMVT_HEADRET =
* MATERIALDOCUMENT =
* MATDOCUMENTYEAR =
tables
goodsmvt_item = lt_goodsmvt_item
* GOODSMVT_SERIALNUMBER =
return = lt_return.
PERFORM commit_work TABLES lt_return.
CLEAR : lw_goodsmvt, s_goodsmvt_header.
REFRESH: lt_goodsmvt[], lt_goodsmvt_item[].
endform. " bapi_upload
*& Form commit_work
* text
* -->P_LT_RETURN text
form commit_work tables p_lt_return structure bapiret2.
IF NOT lt_return[] IS INITIAL.
*error handling
loop at lt_return.
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
ID = lt_return-id
LANG = sy-langu
NO = lt_return-NUMBER
V1 = lt_return-message_v1
V2 = lt_return-message_v2
V3 = lt_return-message_v3
V4 = lt_return-message_v4
IMPORTING
MSG = lt_return-MESSAGE
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2.
WRITE: lt_return-id, lt_return-message, lt_return-message_v1, lt_return-message_v2,
lt_return-message_v3, lt_return-message_v4.
CLEAR lt_return.
ENDLOOP.
ELSE.
* commit work
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
* EXPORTING
* WAIT =
IMPORTING
RETURN = lt_return.
WRITE: lt_return-id, lt_return-message, lt_return-message_v1, lt_return-message_v2,
lt_return-message_v3, lt_return-message_v4.
CLEAR lt_return.
endif.
endform. " commit_work -
Hello All,
Do you know a transaction which allow mass change of productions orders?
I found COHV, but I'm not sure how to use it, and if is useful for what I need.
What I need is to change let's say for 100 orders field Scheduling margin (Tcode Co02).
Rewards points guaranteed.
Thank you
BogdanI don't want to change the material master...
I would like to this on a daily basis on opened production orders.
I would like to fake the order reservation for the default storage location 10 and at a certain date; I want to change in the production orders the storage location 30 (1 day prior to backflush)...
I know it sounds weird; but let me explain the entire process...
we have a stoarage location caged (Locked) ex: 10 where we really know the inventory levels; we would like to order according to the inventory level on this storage location.
--> At a point in time we will issue to another storage location (Production area)ex: 30 the material physically. In SAP we would issue to a cost center the material.
--> Storage location 30 allows negative stock (in fact there will nevever be any stock)
--> at the end of the month we will know the standard consumptions (total of the negative quantitiues in storage location 30)
--> We will also know the real consumptions according to the content of cost center (related to stor. 10)
In order to do that we need to change the storage location 10 --> 30 before backflush.
If we do not change it the backflush will not be done at the right place.
If we always use stor. 30, our dependent requirements / inventory level / Pur req will be mixted and we don't want that.
The production area is hard to control and the inventory there is rarely good because the processes are specials.
--> ex: huge paper rolls: Before starting a lot, we need an entire roll (to avoid stops) in fact in the inventory we have 4 rolls with remaining quantity of 0.25 (4x0.25 = 1) for example. So for the buyer we're ok, but for the operations its not enough..
I hope my problem is clearer...
Any suggestions would be very appreciated...
Regards! -
Production Order - Variant Configuration of Components
Hi experts,
I want to book a part (which is on stock with serial number and variant configuration) into a production order with movement type 261-E.
However, there I get the error message that the configuration does not match.
If I compare the configurations, one is empty - I guess the one from CO02.
How can I add the configuration to CO02-components?
Kind regardsbtw, it is a production order without a material number itself (a kind of repair order, on which we book the parts of repair).
And one of that part is a component which is serialized and having a variant configuration.
And I have to add the info, that I don't have the part in the BOM/routings. I have to add different components per production order.
Kind regards -
Production order Qty update-urgent.
Hi all,
I want a query that must not allow me to update the Qty in the Production order.Once production order created from the MRP,it should not allow me to update any Qty at the production orer level what should be query its urgent.
mona.
thanx in advance.Hi Mona,
Query is only for report. It will not be the tool you are looking for this task.
The SBO_Transaction_Notification SP can be used instead. There are quite a few threads discuss this topic. Try search in the forum to find what you need.
Thanks,
Gordon -
Production order, change/update batch
Hello,
I need to change the batch of a produciton order.
Is there a BAPI that can do the job?Hi,
try this way..
CALL FUNCTION BAPI_PRODORD_GET_DETAIL'
"is used to get the Production order detials later call the below fm to update the batch
w_poitem-po_item = '0001'.
CONCATENATE 'External Services - Batch-' w_e_7b1_view-batch_number INTO w_poitem-short_text. "here Update Batch
w_poitem-quantity = w_menge.
w_poitem-preq_no = w_banfn. "w_child-trans_doc_id .
w_poitem-preq_item = w_bnfpo. "w_child-trans_line_id.
APPEND w_poitem TO t_poitem.
* Do up to X times only when locking error
DO w_i_retry_count TIMES.
REFRESH t_po_return.
CALL FUNCTION BAPI_PRODORD_CHANGE'
EXPORTING
purchaseorder = w_expProductionOrder
TABLES
return = t_return
poitem = t_poitem
poitemx = t_poitemx.
prabhudas -
GR for Production Order, not updating Stock
Hi All,
Issue:
I am posting a GR for a production order, but the stock qty is not getting updated. I checked in MB51, i find the document being posted, but in MMBE the stock is not updated. In the system, there is 2 settlement profiles, one which allows settlement on material & the other only on G/L or Cost Center. I find this issue only when i create orders which have settlement receivers as G/L or Cost Center, also in MB51 i find that the sloc field is blank, even though it is maintained in the order & the same is seen when i receive via MB31.
Await your inputs as to where i need to check to resolve this issue.
Regards,
VivekHi Prasobh,
I believe your pointing in the right direction. My suspicion is on similar lines.
A brief backdrop:
Order is created, whose settlement is to be done on a G/L acct, the settlement profile does not allow settlement onto material & hence in the GR tab, the GR non-valuated indicator is ticked. I manually ticked the GR indicator to post GR via MB31.
In MB51 i find the material document, but what is interesting is, the storage location field is blank, even though the order contains this value, which was later seen during MB31 posting as well.
But a similar order has been created in the legacy system with the same parameters as above & i find the stock to be updated.
So i suspect, it is something to do with the account determination, which is not allowing the quantity updation to take place, because of the GR non-valuated tick in the order header.
Hope i was able to put across the issue to you in a clear way.
Regards,
Vivek -
Batch management in production order for WM managed components
Hi Experts,
Iam having WM managed components in my production order which are batch managed as well. I have to do batch determination for these WM managed components.
I would like to know the steps involved in it and the required configuration.
Can anybody throw some light on this please
Thanks & Regards
EnricoEnrico,
For setting up Batch determination in production order please follow
[Batch determination in production order|http://help.sap.com/saphelp_470/helpdata/en/25/283c3f4f7811d18a150000e816ae6e/frameset.htm]
http://help.sap.com/saphelp_470/helpdata/en/25/283c3f4f7811d18a150000e816ae6e/frameset.htm
As far as WM managed components it will still be the same as WM transfer order is created only after goods movement document is posted.
Hope this helps. Else please come back.
thanks,
Ram -
Sales Order Mass Update - Credit Status
Hi
When we run mass update to sales orders, there are no changes to the value of sales order, but the credit status got changed from Approved to Not approved. Customer exposure total exceede the limite. Is there a way to stop the credit check for mass update?
Thanks.Hi,
May be check the value of field KOMP-CMPRE in the sales order with net value.
Use report RFDKLI20 to correct existing incorrect documents. This program determines the credit account and the risk category from the current payer and executes corresponding credit checks.
Before you start report RFDKLI20, note the documentation in Note 408596.
Regards
Damu -
Production orders not updated in Live Cache
Hi All,
We are currently facing a strange issue. Planned orders created in APO are converted into Production orders in R/3. When they are CIFfed to APO, those prodcution orders are captured in Product view but are not updated in either /SAPAPO/OM16 or Production list (/SAPAPO/PPL1). In these two transactions the production orders are not visible but their respective planned orders are showing up.
When delta report is executed for Production orders with "Consider Requirements/Receipts" as sub-object, these orders are captured with Error code 501 (Requirement/Receipt for the order exists only in R/3). When pushed to APO, these orders are updated in the Live Cache.
Can anyone share your thoughts on what could be the root cause for this issue.
Appreciate your thoughts
Thanks,
SaiThanks Vikas and Senthil,
Its not the issue with all the Production orders. The issue is with only few orders and we are in the process of tracing out the pattern.
Our Primary concern is that the orders captured in the delta report are visible in Product view even without taking any action in CCR but are missing in OM16. Its only after taking the action those orders are visible in OM16. I believe the data in the product view is read from Live Cache and the Live Cache contents are displayed in OM16. So, whatever orders visible in Product view have to be displayed in OM16 which is not happening.
Please let me know if I am missing anything.
Thanks,
Sai -
Multiple batches for a production order and mapping with components
Hello Gurus,
Our business requires to create multiple batches for one production order + they want to trace which component in the production order has been issued to the main equipment.
For example, I am creating production order for 'A' equipment for 4 qty. Business wants to create 4 different batches for these equipment
Lets say now 4 batches are created A001, A002, A003 and A004.
Now lets assume 2 nos of 'B' component are required for 1no of 'A' component. So the requirement of B component is 8.
Lets say 8 batches are generated B001, B002 ......B008
Now lets say batch B001 and B002 are issued for A001 and packed together. How do we map this?
I understand we can do some enhancement for creating the multiple batches but I still dont know how to map them with each other.
Please helpHi Ethan
There is a functionality called WIP batches, that allows you keep the batch traceability within an order.
With WIO batches you can track which batch of component was used to produce each batch of finished product.
See this link for more details:
Work-in-Process (WIP) Batch - SAP Library
BR
Caetano -
Production order creation & updation in co02 transaction takes long time
Hi experts,
I am creating production order using the below logic whiich takes more time.can u please help me with some logic.
1. I am taking recut and rejection last completion date for the material from zee table.
2. Based on the date to till date iam taking all the document number(mblnr) from mkpf.
SELECT mblnr
mjahr
vgart
bldat
cputm
FROM mkpf
INTO TABLE it_mkpf
WHERE vgart = 'WF'
AND ( bldat GE wa_zrjrcpoc-zdate
AND bldat LE c_date ).
3. Then fetching mblnr from mseg
SELECT mblnr
mjahr
bwart
matnr
werks
lgort
menge
j_3asiz
j_4ksca
FROM mseg
INTO TABLE it_mseg
FOR ALL ENTRIES IN it_mkpf
WHERE mblnr = it_mkpf-mblnr
AND mjahr = it_mkpf-mjahr
AND ( bwart = '101' OR bwart = '102' )
AND matnr IN s_matnr
and lgort in s_lgort
and werks in s_werks
AND ( j_4ksca = 'REJ'
OR j_4ksca = 'RCT' ).
The above logic takes more time for Production order creation.
can u please help me with a new logic...
A.JeniferHi Abhi..
Thanks for reply...
Yes i am taking material number and date from zrjrcpoc table & reading it.
Then iam passing it to mkpf & then to mseg.
In zrjrcpoc for 2 materials zdate is 01.05.2010 & 30.06.2010.
To create PO for this 2 materials it takes all mblnr from 01.05.2010 to sy-datum.
Finally after comparing it creates PO for document number from 01.07.2010 to 30.07.2010.....
whether any other logic to take material number from mkpf & mseg from 01.07.2010 to 30.07.2010....
Maybe you are looking for
-
Hi, The customer has asked to create a Company code, i have created it. I have maintained the required Configuration in Enterprise structure, Financial accounting Global setting, General ledger Accounting. i can do the posting to this Co.code in FB01
-
ISE 1.2.1 Install guide
Anyone have a link to instructions on how to upgrade ISE 1.2 (patch 8) to 1.2.1? The release notes don't mention a new process and the old process gives a SHA error.
-
Selecting a section of audio (say in the middle) and turning on cycle should play the selection from the start and end points selected. Instead it continues past the end point without cycling, playing the entire wave to the end and then cycles back t
-
IPhone 5 wifi works in one room but not the other.
I have an iPhone 5 and the wifi is unreliable. It works in the room with the router but when I walk down the hall it doesn't work. I'm talking 20 feet away. So frustrating because the phone is almost worthless. Why would it connect but only in such c
-
Is anyone aware of a way to email the results of a infoset query run on R/3 . Would like to schedule the query to run then have it emailed out automatically. Any help at all will be rewarded with points Thanks Richard