UserExit for Production Order
Hi,
Can some give me an UserExit or a BTE which gets triggered whenever the status of the Production Order is changed? Please help me with this...........
Thanks,
Archana.
Hi ,
plz have a look at the way of finding user exits--->
first find out the developement class of that tcode ,i.e from the program ->system-Status-->program
and search for CALL CUSTOM in the main program , and double click on it it will take u to FM exits.
or search in SE15 based on the development class .
in case of BTE , search program for OPEN_FI
or FIBF/BF24/44 tcode.
Regards
Prabhu
Similar Messages
-
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 -
Report to check open reservations for production orders where GI not posted
Hi experts,
Can we get reservation details from any report/ table for production order where material has not been issued, report should also display the value of the reserved material.
I could not find desired details in RESB (it has price but not value) and MB25.
Thanks in advance, useful ansers will be rewarded.
Thnx
AnandHello Anand,
there is no report but you may use the production order info system with list "components" and create a layout contaning the issued quantity and/or the final issue indicator. With a correct sorting, the list should show all orders with non-issued components at the top.
Regards, Andreas -
IDOC/BAPI for Production order creation from Legacy system
Hi all
We are using an interface to create Production orders from legacy to SAP. Would you recommend an IDOC or a BAPI to create Production orders. If IDOC or BAPI then could you please mention which one?
thanks a bunchHi John,
For your purposes, please use BAPI for production order creation from legacy system. There is no standard inbound IDoc available to use. SAP has an IDoc for outbound interface only (message type LOIPRO).
If there is an inbound IDoc available, I would recommend to use an IDoc.
IDoc technology has excellent error handling and will allow you to reprocess an error (if any).
BAPI is also good approach to use and fast in term of processing.
For BAPI approach, you can use BAPI BAPI_PRODORD_CREATE.
Hope this will help.
Regards,
Ferry Lianto -
How can I add a new line item for production order?
HI all,
How can I add a new line item for production order through BAPI/FM? Thanks in advance.Hi Mil,
Unfortunetly SAP is not in front of me.
But if possible go to BAPI transaction , check for any production order's bapi for CHANGE purpose. Where you will be able to add your new line.
Reward if useful! -
Different GL accunts during GR for PO and GR for production order
Hi
For posting GR for PO and GR for Production order we use movement 101 only then how we can define or e different GL accounts for both the transactions ?Hi,
As per my undestanding
If you want to hit different GL for same material type for e.g. GR for PO and GR for Production order.
you can define split valuation, Suppose material A has two Split valuation External Procurement or Inhouse Production.
Now For valuation type External Procurement assign valuation class 1000 and for Inhouse Production 2000.
Now in GBB for valuation modifier BSX assign two separate GL
Like
GBB BSX 1000 120000(External Procurement)
GBB BSX 2000 130000(Inhouse Production)
Solution 2 :-
Define other movement type for Production create and create a new event key and assign GL to that one.
Hope HElp U !
Regards,
Pardeep Malik -
How to restrict the GR for Production Order when Goods Issue is not done
Hi Gurus
How to restrict the GR for Production Order when all the required components for production order are not issued with all required quantity. Even for partial issue system should not allow GR with 101. The user status with RMWA, RMWF & CGFB is not working.
Pls suggest best solution.
Abhijit.Hi,
You can club together the GI nad GR at the time of confirmation..
I.e Backflush for the components and auto GR for the Product.
So that you can stream line the Process.
The best Option would be to use the User Exit:
Enhancement - MBCF0002
Functional Module - EXIT_SAPMM07M_001
Include - ZXMBCU02
Refer below link for further details..
How to stop the goods receipt before issueing the goods for production orde
Regards,
Siva -
Early Inspection for a Goods Receipt for production order
Dear Experts,
This is with respect Early Inspection for a Goods Receipt for inspction type 04.( 03 is also active in material master)
We made partial confirmation 250 qty for production order using t code co11n ( total qty of production order is 1000).
made the usage decision with an acceptance and posted all open stocks. to unrestricted.
Now in second partial confirmation prodn order of 250 qty was made . This suppose to be rejected . but sytem will add this 250 qty directly to unrestricted stock . how to over come this .
Regards
SandeepDon't make the UD until all stock has been receipted?
You basically approved the batch. So why wouldn't the system put the stock to unrestricted?
Why would you make a UD when you still have stock to be posted anyway? You can post stock without without making a UD so why not just post some if you need it, and wait on making the UD?
Craig -
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 use the selection profile and status profile for production order?
Hi expert,
I want to know how to use the selection profile and status profile for production order. what's the usage for these two selection profile and status profile ?
Please help me.
thanks in advance.
george.shiHi George,
There are are two types of statuses.One is system status and second one is user status.These statuses will tell us current situation of an order.
We can't change system statuses.But we can create our own statuses through status profile.With this profile we can control user statuses.
In this status profile,
1.We define the sequence in which user statuses can be activated,
2.We define initial statuses
3. Allow or prohibit certain business transactions.
Selection profiles are used to select the objects (say production orders) with different status combinations.We assign status profiles to selection profiles in BS42 T-Code.
Regards,
Raja.
Edited by: Rajarao on Oct 30, 2008 6:21 AM
Edited by: Rajarao on Oct 30, 2008 6:22 AM -
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 -
Automatic Batch determination at time of Goods receipt for production order
Hi SAP experts,
Greetings to you all. I wish to ask a query that how batch is determined automatically at the time of goods receipt for production order .
I have done the following settings:
1.Specified batch level at material level
2.External batch number assignment
3.Defined production order condition table '501' (plant/material)
4.Defined production order access sequence (order type-plant -material)
5.Defined Production Order Strategy type.
6.Defined Batch search procedure in Production Order.
7.Assigned Batch search procedure to Production order type for a particular plant , batch check not activated.
Please let me know of any more settings to be checked for the same.
For example, a production order is being confirmed for a quatity of 5 nos . at a time . However, the GI movement (261 movement type) for the production order components is taking place for 1 EA qty. from 5 different batches.
So now, how the system will define the GR (movement type 101) for the production order header material for the qty. 5 nos. EA ?
It is desired that the system should do GR for the qty. 1 EA of the header material for the 5 different batches (batches which were automatically deteremined for the Goods issue of the components).
Thanks in advance. good day.
Best regards,
RBHI Rahul,
As explained earlier, for e.g., if the GR is taking place for the production order for qty. 5 nos. , and in that , if the component qty. is 1 EA for 1EA of header material ; then , the GR for the header material should take place for the same different batches from which the order components were issued for the order and not for the other batches in stock for the header material as well as components.
I am not sure if i understand your requirement 100%.
But let me explain you standard behaviour.
When Confirmation for production order happens and GR is posted during confirmation , All the GR happens agaist same batch number which i sassigned in production order assignment screen.
So for all the order qty single batch would be fixed. Say batch A1 is created for Header material for 100 qty.
Now during components issue to production order, If 100 qty needs to be issued for compoenent B it is possible to use multiple batches of componenets ( using splilt batch functionality /or manual batch number entry agaist componenet in goods movement screen) but header batch remains the same.
Check and Revert,
Santosh Sarda -
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
Maybe you are looking for
-
BUG in JHS TP2: Recovering messages from Bundles
Hi JHS Team, I detected this bug on the JHS TP1 I was already trying, but decided to update to TP2 to see if it has been been detected and resolved. As the code is still the same, here goes the problem description (or at least, what I think is a bug)
-
Exporting images of phone with artwork on it?
Using CS5, I am creating App icon launchers in Illustrator and I want to be able to test them in Device Central on different phones and export images of the phone with the app icon launcher image on it so I can send them to someone else to compare. H
-
Hi, I am setting up a configuration with SA520W and 2 Wan, in load balancing. But I face a problem that I could not understand. Traffic is HTTP, SIP and 2 servers. Servers are for a VPN tunnel and a mail server with ActiveSync Both services absolutel
-
after removing the virus "privacy protection" we haven't been able to open firefox without the "user terminated" message.
-
Hello everyone, we have a problem with our Indesign server. It is configured to run as service on a Windows 2008 R2. We configured one instance with the management snap - that worked well. So we decided to add more instances and now the problems star