Data for production order
hi all,
We want to get the classification(configuration) data from the production order.
We are presently using VC_I_GET_CONFIGURATION and passing the instance as CUOBJ from AFPO. But the data we get is from the sales order.
Require help as to waht instance to pass to get the data from Prod Order and not from sales order.
any pointers???
I make a sales order first -
XYZ
Then i make a prod order with reference to sales order -
ABC
The CUOBJ -
LMN is same for both the orders in AFPO and VBAP
I go to VC_I_GET_CONFIGURATION and pass LMN and I get the charac values.
Now i change the sales order. I get a information message that a prod order is already available, but the system allows me to change the configuartion values
Now, the config values are different in sales order and prod order
I want the details from the prod order, but since the CUOBJ is same- when i run the FM, i get the changed values from the sales order
I need the previous unchanged data from the prod order and not from the sales order
Similar Messages
-
Batch processing function to read PP data for production orders
Hi,
As we know, If BOMs changed we can use T-code: CO02, then follow the menu "Function --> read PP master data" to get up-to-date BOM. But If there're many production orders need to be read PP master data again, I have to do it one by one.
My question is, If I have a list of production orders, could I do it in batches? and What's the transaction for it?
Please kindly Advise.
Best Regards.Hi,
As we know, If BOMs changed we can use T-code: CO02, then follow the menu "Function --> read PP master data" to get up-to-date BOM. But If there're many production orders need to be read PP master data again, I have to do it one by one.
My question is, If I have a list of production orders, could I do it in batches? and What's the transaction for it?
Please kindly Advise.
Best Regards. -
Exit for production order creation that update BOM explosion date
Hi Guros
does any one know a user exit for production order creation that update BOM explosion date = AUFLD.
or a UE that run before the BOM explosion.
thanks.Dear,
I dont think user exist will work for you,
You need to find BAdi for it, cl_exithandler=>get_class_name_by_interface .
Or try with SE84,
Enter the package name and check the " Enhancements"
Regards,
R.Brahmankar -
Bapi for update Master Data in Production order
Dear All ,
I am working in a car manufacturing company here production order is made month wise planning qty , but every day its Bom is get changed by Autocad/PLM interface and all changes are being recorded through ECN .
I have to generate daily reservation for assemblies for a perticular finish vehical ,so I need to update the Masterdata in production order no through the PLM( VB platform) interface .
So please suggest me any BAPI so that I can update the master data regular basis in monthly production order or if you have any better way to map this process into SAP please suggest .
Thanks in advance .
regards ,
Pralay ..Not sure what master data in production order you want to change. Anyway if it is at header level, then evaluate BAPI - BAPI_PRODORD_CHANGE.
Alternatively evaluate the usage of Order Change Management if it is feasible in your solution. Do a search in this forum you will find many threads on it, also read SAP help & do a test a test in your sandbox. If you face a specific issue then do revert -
Error during goods receipt of Finished goods for production order
hi friends
pls help me iam struggle this issue and mentioned the issue .
when i do goods receipt for production order system getting error like
No price could be determined for material/batch FG/ plant ZTP
Message no. CK 465
Diagnosis
The system could not calculate a price for material/batch FG/ in plant
ZTP for valuation view 0, because none of the valuation strategies in
valuation variant 007 was successful.
System Response
User-defined error management enables you to specify whether the message
is an error message, a warning message or an information message.
o If you have defined the message as a warning message or an
information message, the costing item will be entered in the cost
estimate with a value of zero.
If you have defined the message as an error message, the cost
estimate contains an error or errors.
- In the case of a material cost estimate, the system sets the
status KF.
- If it is a cost estimate without quantity structure, or base
object cost estimate (that is, a unit cost estimate), the
system cannot proceed with costing until you have corrected the
errors.
If the system issues a termination message, the cost estimate cannot
be processed, and processing is terminated.
procedure
o Check the master data for material/batch FG/ in plant ZTP.
o If you have authorization for Customizing, check the valuation
strategy for materials in valuation variant 007.
Note
If the message is a warning message or an information message, there is
a danger that materials with errors will be ignored by the system.
If, because of this, you issue a warning message and at the same time
include materials with a zero value in cost estimates, you can make the
following settings for these materials in the costing view of the
material master:
1. Enter a very low price in the planned price 1, 2 or 3 fields
manually, for instance 0.01 USD. These prices are used for costing
purposes only; they are not read by other applications.
2. Enter the highest price unit possible, for example 10000.
Note: If you enter a new price unit that is higher than the costing
lot size, the system increases the costing lot size accordingly.
3. Change the valuation strategy, such as strategy 4, where you could
enter the planned price field in which you entered the low price.
The system now costs as follows:
Using the valuation strategy, the system finds planned price 1, 2 or
3. Due to the low price and high price unit, the system rounds the
value to zero. However, the cost estimate still obtains status KA
(free of errors), and no error message is issued.
This procedure can be used for all materials that have caused error
message CK465 to be issued.
with regards
dinesh
Edited by: code acess on Nov 8, 2010 4:06 AMhi ragavendra,
this is dinesh .i maintained the costing view and planned price. but again i have same error.so please reply me where i missed the data
with regards
dinesh
Edited by: code acess on Nov 9, 2010 4:01 AM -
Error in scheduling parameters for production orders
Hi Guys,
Greeting for the day u2026u2026u2026.
I am trying to create production orders creation for own order type ex MM01, but I am getting error message as u201C scheduling parameters are not defined for the order type u201C even though I have maintained following parameters as below,
Production scheduler -
xxxxx,
Detailed scheduling -
check box of scheduling ticked,
Rough cut scheduling --- scheduling id u201301, scheduling and generate capa requi,, boxes ticked,
Adjust scheduling -- requi to operation date,
Scheduling control for detailed scheduling ---backwards and check box of auto scheduling ticked
Operation segment ---setup,
All operation in order will be reduce
Do not reduce,
Could any one light on this issue,
Thanks in advance,
MohanHi,
This error will come if you have not maintained Define scheduling parameters for production orders.
Check this order type whether linked with respective plant in OPU3.*And give production scheduler * mark ie, all.*
And in Define production scheduling profile - OPKP, link your order type in the page below.
In material master work scheduling view, input production sch profile or prod scheduler.
Regards,
Dharma -
How to change operation dates in Production Order /Capacity Leveling
Dear Experts ,
We are using ECC 5.0 .In production order , scheduling happing as Backward based on the Sales Order Delivery Date .I am doing the following :
1.Demand as Sales Order with Delievery date : 20.03.2010
2.Running MRP with Lead Time Scheduling -2 in md02 and converting the Planned Order to Production Order .
4.Production Order have following dates :
Basic Finsish Date : 21.03.2010
Basic Start : the day Pl.Or--Pr.Ord
Schedule Start : 15.03.2010
Schedule Finsish : 17.03.2010
Schedule Release : 13.03.2010
5.In schedueling margin key : Float Before Production : 3 , FAP : 3 , Release Period : 2
6.In material master : Work Scheduling View : Setup : 3 days , Processing : 4 ,Interoperation : 2 for one Base Qty 1
7.In operation : Op1 : Start Date : 15.03.2010 Finish Date: 15.03.2010
Op2 : Start Date : 16.03.2010 Finish Date : 17.03.2010
Op2 : Start Date : 17.03.2010 FD : 17.03.2010
Question :
1.How to change the Operation dates in Production Order Operation over view screen ? Today, operation over view screen , Start date and Finsih Date of individual operation are not changable with in Production Basic Start /BF date or beyond .It is only changing based on the Standard Value : Labor
2.How to change/re-schedule operation dates d in CM21 (Graphical view -Work Center Capacity load as per Production Order and Operation combination ) based on capacity availale in advance dates? I am using Time Profile : SAPSFCZ002 -SFC Graph midterm-3 motnhs and Planning ,
How to solve this above issue in scheduling operation and capacity distribution .
Regards
JHClosing the thread
-
Error during Goods Receipt for Production Order
Hi All,
When using MIGO to post Goods Receipt for a Production Order, I got a customize message saying that the posting is only available between 2010.08.25 to 2010.08.27. I have checked in Business Add-in using SE19 but there are no implementation present. I know that in Logistic Verification MIRO there is a transaction OMRM to set messages. I would like to ask is there anything similar for MIGO.
Or is there any other place in Configuration which allows me to add these Customize message.
Thanks.
Edited by: jamison2004 jordan2004 on Jul 9, 2010 9:09 AMHello Jiaul,
Sorry I may have mislead you. The actual error message is "Goods Receipt for Production Order XXXX can only be made on 2010.08.25 to 2010.08.27". These two dates are the Start Date and FInish Date for the Production Order in CO03,
The Basic Start Date for the current Production Order is 2010.08.25
The Basic Finish Date for the current Production Order is 2010.08.27
I think what it means is that you can only Post Goods Receipt for the Production Order only after the Basic Start Date of the Production Order. Do you know where I can find the configuration for this message?
Thanks -
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 -
Bins problem while creating goods receipt for production order.
Hi All,
I am facing a problem with selection of bins while creating goods receipt for production order in transaction MB31 and MBBE.
The order of filling bins is with respect to storage Unit not by document no, Please suggest something.
The scene is like that.
The bins are not filled in the proper sequence, the system checks for the empty bins and filled those later on.
like this,.
Typ StorageBin SC SS Stock Avail.st BUn GR Date DocumentNo Storage Unit Time
SLoc Batch Re IA PutawayS Pick qty Cert. No.
VN1 106A088 0 0 CS 01/25/2010 4739297 1005721391 10:00:59
100 0001020069 60 0
VN1 107B076 0 0 CS 01/25/2010 4739298 1005721392 10:01:01
100 0001020069 60 0
VN1 108B076 0 0 CS 01/25/2010 4739299 1005721393 10:01:04
100 0001020069 60 0
VN1 109A077 0 0 CS 01/25/2010 4739300 1005721394 10:01:06
100 0001020069 60 0
VN1 110B079 0 0 CS 01/25/2010 4739301 1005721395 10:01:08
100 0001020069 60 0
VN1 106B088 0 0 CS 01/25/2010 4739302 1005721403 10:01:11
100 0001020069 60 0
VN1 123B158 0 0 CS 01/25/2010 4739303 1005721389 10:01:13
100 0001020069 60 0
VN1 124A160 0 0 CS 01/25/2010 4739304 1005721390 10:01:15
100 0001020069 60 0
VN1 118A133 0 0 CS 01/25/2010 4739305 1005721396 10:01:17
100 0001020069 60 0
VN1 119A128 0 0 CS 01/25/2010 4739306 1005721397 10:01:20
100 0001020069 60 0
VN1 120B162 0 0 CS 01/25/2010 4739307 1005721398 10:01:22
100 0001020069 60 0
VN1 121B159 0 0 CS 01/25/2010 4739308 1005721399 10:01:24
100 0001020069 60 0
VN1 122B159 0 0 CS 01/25/2010 4739309 1005721400 10:01:26
100 0001020069 60 0
VN1 123B159 0 0 CS 01/25/2010 4739310 1005721401 10:01:29
100 0001020069 60 0
VN1 124B160 0 0 CS 01/25/2010 4739311 1005721402 10:01:31
100 0001020069 60 0
Thnks you,
Anmol.
Edited by: anmol112 on Jan 25, 2010 10:34 PMno replay, clossing threat.
-
Error while doing Good Issue for Production Order using BAPI
Hi All,
I am facing an error like 'u2018Content of order 1011907: MDT218AJ10 transferred to interface (IMSEG): T-86410-71".
I have written the code as below. Please let me know what is missing when using the BAPI 'BAPI_GOODSMVT_CREATE'. What is the cause of this error ?
*Action in Transaction (GM_CODE)
*GM Code for Goods Issue for Production Order is 03
gs_gmcode-gm_code = '03'.
*Header Data
*Posting date
gs_header-pstng_date = sy-datum.
*Document date
gs_header-doc_date = sy-datum.
*Item Data
*Material
gs_item-material = zptp_s_rf_migo_261-matnr1.
*Movement Type
gs_item-move_type = '261'.
*Movement Indicator
gs_item-mvt_ind = 'F'.
*Stock Type
gs_item-stck_type = 'F'.
*Plant
gs_item-plant = gv_plant.
*Storage Location
gs_item-stge_loc = gv_str_loc.
*Quantity
gs_item-entry_qnt = zptp_s_rf_migo_261-menge2.
*Unit
gs_item-entry_uom = gv_uom.
*ISO code for unit of measurement
gs_item-entry_uom_iso = gv_uom.
*Order Number
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = zptp_s_rf_migo_261-aufnr
IMPORTING
output = gs_item-orderid.
*Reservation Number
gs_item-reserv_no = gv_resv_num.
*Reservation Item
gs_item-res_item = gv_resv_itm.
*Reservation Type
gs_item-res_type = gv_resv_type.
APPEND gs_item TO gt_item.
Calling BAPI_GOODSMVT_CREATE to create the Material Document Number
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = gs_header
goodsmvt_code = gs_gmcode
IMPORTING
goodsmvt_headret = gs_headret
TABLES
goodsmvt_item = gt_item
goodsmvt_serialnumber = gt_serial
return = gt_return.
Thanks in Advance.hi,
did you look at message ?
System says, there are differences between the interface data and the order data. It can be anything. I think you should check
data in the interface .
this is the long explanation of your message :
Diagnosis
When calling the function module MB_CREATE_GOODS_MOVEMENT or the BAPI GoodsMovement.CreateFromData (BAPI_GOODSMVT_CREATE) to post a goods receipt for a production order, there are differences between the interface data and the order data.
Example: The order was created for plant 0001, but plant 0002 is passed on in the interface.
The system checks this for the material and the order item.
System response
Due to this difference, the system cannot post the goods receipt.
Procedure
Check the data in the interface (IMSEG-WERKS, IMSEG-AUFNR). If necessary, correct the plant or the order number in the interface.
<< Moderator message - Point begging removed >>
Edited by: Rob Burbank on Feb 6, 2012 11:24 AM -
Batch derivation in goods receipt for production order
Hi all,
i have set up batch derivation for the event 'goods receipt for production order'. The field derived is HSDAT (date of manufacture) /minimum. Although in the batch derivation monitor I can see tha the derivation was performed OK and the correct date (oldest of the components) is selected the field in the Batch is not updated. Can anyone help??Hi Vagia,
Your problem sounds like derivation type issue.
Please check your derivation type to be static for the 400 event.
Let us know if this helped.
Regards.
St.Pan. -
System status for IDOC creation and processing for production orders
All
I am creating IDOCs for production orders to send requirements to an external WM system for kitting execution.
I need to know whether there are any system statuses to notify me when an IDOC has been created,failed and processed. If not, how do I go about creating user defined statuses for these statuses.
Second question, which idocs should I use to confirm, teco and cancel the production orders from an external system?
Thanks
EvanHI Evan
u can use the standard program - RBDMOIND scheduled in back ground to update the Idoc staus ,
this helps to update the IDoc Status from
'03 Data passed to port OK ' to
'12 Dispatch OK'
status 03 indicates the IDoc is successfully transmitted to Communication Layer and the Status 12 helps to confirm the data dispatch to the receiving port. -
How to get the finished date of production order
hi guys
now i want to get the finished date of production date. when i search in the table afko , i found the field GLTRI is '0000.00.00'.
BUT IN the production order display view , the confirm date is '2007.1.1'. so how can i get the confirm date with the production order number? thanks.For costing report, you have to read the following tables: based on material Qty/value/ Machine rate and machine posting date , machine rate ( T-code kp26) and also types of material Raw, finished and semi finished ..
AFRU ,AFPO,AFKO,AFVV,AFVC,CAUFV FOR PRODUCTION ORDER.
For material calculation MARA, MSEG and MKPF as well as MAKT...
Hope thisll help you .
Thanks -
Report serial number for production order.
Dear gurus,
i activated the profile for use the serial nuber in the HALB material and in the FERT material.
I created a production order for the HALB material and i good issue the production order whit the transaction MIGO and inserting the serial numer.
After i created a new production order for the FERT material serial number 60 and i use the component HALB whit the serial number 38 .
Now i can see the collegament to serial numer of component and serial number of the FERT material?
I need insert the production order for the FERT material and see the serial number of the component used.
In the CO11N is possible do the moviment 261 for the component manage whit the serial number? I see the area for serial numeber.
Thanks a lot
Daniele PistilliDear ,
In the CO11N is possible do the moviment 261 for the component manage whitout the serial number?
Yes .It is possible to do the 261 whule perfoming CO11N for production Order .Find belwo the set up requireed :
Backflash can done based on the following set up to have the 261 while perfoming co11n .
1.In material master MRP2 view of the item , Backflash field should be kept -1-Alaways back Flash
2.In work Center where the routing operations are done , -Goto-Basic Data View -Back Flash Indicator -to be marked .
3.In Master Recipie Componenet Alocation Tab -Item Line -Back Flash Indicator to be ticked once assinged to a particualr operation .
4.In OKP4 keep the All Components under Goods Movement option ticked so that system posts the withdrawal of all components displayed in the overview as a backflush
Priority will be always Work centre even you keep the Material master MRP2 view kept always back flash
So when you do the confirmtion , if you go inside the Goods Movement Tab page , you will find 261 movement type along with 101 and same Material Documents will genertaed in one shot .
Hope this is clear to you .
Regards
JH
Edited by: Jiaul Haque on May 19, 2010 2:13 PM
Maybe you are looking for
-
Can not recover table from rman backup
For testing I want to recover deleted table from rman backup. I have make vm of oracle 11g. the following step i have applied but could not recover the table. rman> backup database ; On sqlplus create login as scott/tiger create table scott.emp1(col
-
Ipod Touch and Windows 7 64 Bit - Itunes not recognizing
I have Windows 7 64 bit operating system. I have been struggling with getting my Itunes and Ipod touch to work together - somewhere an update or upgrade screwed things up. Right now, I have Itunes 10 64 bit installed on my computer. When I plug in th
-
How to precalculate a Query without using a fixed variable in I Broad C?
Hello, The query should be precalculate with dynamic values of a variable which are investigated during runtime. The broadcaster forces fixed values of a variable. Does anybody knows, how to avoid the using of a fixed variable in the Information Broa
-
What the hell i can not download anything because of my adobe reader
this is what it keeps showing me no matter what i download, what the hell is going on?(Adobe Reader could not open ').exe' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attac
-
I payed by a mistake, a news suscription of my Adobe PDF converter, 24€, and after that I payed again for my old suscription that was canceles few days before, 19€. So, I payed twice for the same suscription. I ask you, please, get back my money. F