Goods Issue (MB1A) for production order - no stock reduce happening in WM
Hi,
I try to do a Goods Issue with transaction MB1A for a production order, but no stock reduces happens within WM (HUM).
I did the following.
Created a Production order - CO01
Created a TR - LB01 - (assigned production order to the TR)
Created a HU for the materials. (HU02)
Created a Transfer order to storage type 914 with L_TO_CREATE_MOVE_SU.
At the end I want to do an goods Issue with MB1A. This seems not to work correctly. When I fill out the ordernumber and process the transaction a Delivery is created.The materials are already on 914, so it can be issued directly.
What can I do to solve this.
Thanks in advance.
Regards,
Alexander
Please find out is there any accoun t assignment is there for the component in question.
pl got production order disply screen and goto --> material list
check is there any value on the filed account assignment. If that is the case then you need to have special stcok for that account.
If it is empty then check
are you entereing the correct storage location and plant.
if that is also fine then check whether the component is already issued, i.e. goto the component detailed screen and check wthere final issue tick is there for the component...or the componentb is deleted...
come back after these checks.
Similar Messages
-
Regarding Goods Reversal and Goods Issue process for Production orders
Hi,
I have a issue regarding <b>Goods Reversal</b> and <b>Goods Issue</b> process for <b>Production orders</b>.
Actually I am having a Z - Function Module in that i am passing <b>production order number other details</b> to
make the <b>Goods Reversal</b> happen.
The code for the above is as below:
i_mvtit-material = wa_mdfa-matnr.
i_mvtit-plant = i_resb-werks.
i_mvtit-spec_stock = 'Q'. "New
i_mvtit-stge_loc = 'ZWIP'.
i_mvtit-stge_type = i_resb-lgtyp. "New
i_mvtit-batch = i_resb-charg. "New
i_mvtit-orderid = i_resb-aufnr.
i_mvtit-spec_stock = i_resb-sobkz.
i_mvtit-entry_qnt = i_resb-enmng.
i_mvtit-entry_uom = i_resb-erfme.
i_mvtit-entry_uom_iso = i_resb-meins. "New
i_mvtit-wbs_elem = v_frwbs.
i_mvtit-move_type = '262'.
i_mvtit-xstob = 'X'.
i_mvtit-gr_rcpt = i_resb-aufnr. "New
i_mvtit-reserv_no = i_resb-rsnum.
i_mvtit-res_item = i_resb-rspos.
APPEND i_mvtit.
* HEADER ELEMENTS
k_gmvt_code-gm_code = '03'.
k_gmvt_head-pstng_date = sy-datum.
k_gmvt_head-doc_date = sy-datum.
* CREATE GOODS MOVEMENTS
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = k_gmvt_head
goodsmvt_code = k_gmvt_code
TABLES
goodsmvt_item = i_mvtit
return = i_return.
The Above code does the <b>Goods Reversal</b> but then i will update one Z Table with fields like
Production Order Number[AUFNR], Number of Reservation[RSNUM], Item Number of Reservation [RSPOS], Material Number [MATNR], Requirement Quantity [BDMNG], WBS element[PSPNR] etc. If Above BAPI runs sucessfully.
That is happening correctly.
But Then actual issue is i have do <b>Goods Issue</b> for those Z-Table records.
There i will give Production order Number's & Storage Location in Selection-Criteria.
Then i need to do <b>Goods Issue</b> for that order.
The code i had written as follows.
* POPULATE VALUES FOR BAPI CALL
i_mvtit-material = i_zpsi7603_01-matnr.
i_mvtit-plant = i_resb-werks.
i_mvtit-spec_stock = 'Q'. "New
i_mvtit-stge_loc = p_sloc.
i_mvtit-stge_type = i_resb-lgtyp. "New
i_mvtit-batch = i_resb-charg.
i_mvtit-orderid = i_resb-aufnr.
i_mvtit-spec_stock = i_resb-sobkz.
i_mvtit-entry_qnt = i_resb-enmng.
i_mvtit-entry_uom = i_resb-erfme.
i_mvtit-entry_uom_iso = i_resb-meins. "New
i_mvtit-wbs_elem = v_frwbs.
i_mvtit-move_type = c_261.
i_mvtit-mvt_ind = 'F'. "New
i_mvtit-xstob = c_x.
i_mvtit-gr_rcpt = i_resb-aufnr. "New
i_mvtit-reserv_no = i_resb-rsnum.
i_mvtit-res_item = i_resb-rspos.
APPEND i_mvtit.
* HEADER ELEMENTS
k_gmvt_code-gm_code = c_03.
k_gmvt_head-pstng_date = sy-datum.
k_gmvt_head-doc_date = sy-datum.
* CREATE GOODS MOVEMENTS
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = k_gmvt_head
goodsmvt_code = k_gmvt_code
TABLES
goodsmvt_item = i_mvtit
return = i_return.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = c_x.
READ TABLE i_return INDEX 1.
IF i_return-type EQ c_s.
DELETE FROM zpsi7603_01 WHERE aufnr = i_resb-aufnr AND
rsnum = i_resb-rsnum AND
rspos = i_resb-rspos.
ENDIF.
If i run above code for <b>Goods Issue</b> it is giving error can anybody tell me what changes i need to do to make it work.
The <b>Error Message</b> i am getting is as below:
<b>Qty and / or "delivery completed" ind. or final issue ind. are missing</b>
<b>Error Number for the above is : 264.</b>
Can anybody solve my issue.
Any help will be appreciated.
Thanks in advance.
Thanks & Regards,
Rayeez.Hi,
Thanks boss.
It is working now correctly.
The issue is the i_mvtit-XSTOB should be equal space in case of Goods issue while incase of Reversal it should be equal to X.
Thanks for ur efforts.
I had awarded you points.
Thanks a lot.
Thanks & Regards,
Rayeez. -
Possible methods for Goods issue in a production orderfrom shopfloor stock
Dear experts,
pls tell me about the possble ways to goods issue against a prodcution order ,from shopfloor stock ,except backflushing ,alongwith TCODES & Mvt types used in this process..
ThanksIn MIGO select Goods issue, Order and enter the Production order no, system will display the all the components material in Production order with 261 movement type and post the document
or
In MIGO select Reservation, enter reservation NO(You can see in production order assignment tab) system will display the all the components material in Production order with 261 movement type and post the document
or
In MB1A,after entering Movement type 261, plant storage location Click to order enter the production order No, system will display the all the components material in Production order ( this will come under planned consumption i.e, rervation qty will be reduced).
For unplanned
In MB1A, enter the Movement type 261, plant storage loc and enter, In the second screen enter the production order NO, here you need to enter component manually with qty and save, this will comes under unplanned consumption -
Need a Badi to look the good issue status for prod order before good receipt in MIGO
Hi ,
Need a Badi to look the good issue status for compoents for prod order before good receipt in MIGO.
Example : There are 10 comps need to be issued to production order to make any assy but 6 comps were issued
and remaining 4 comps are not yet issued.,in this situation if I try to do goods receipt for prod order through MIGO.,system should populate the warning
message saying still goods issue are pending for prod order.
Please advise .
Thanks
PrasadHi Prasad,
Before trying with a BAdI, have you tried to control this behaviour thru the Order confirmation parameters (OPK4)?
Note that you can have a termination in case of having problems in the goods movements..
Take a look of this and the SAP help:
Termination of Confirmation if Incorrect Goods Movements
Controls if the confirmation is terminated in the event of incorrect goods
movements.
Use
This enables you to terminate the confirmation in the event of incorrect
items, for example, to prevent postprocessing records.
Dependencies
The indicator is only evaluated if either no process control key or one
process control key has been stored that enbles the goods movements to be posted
in dialog AND for which the "provide error handling for goods movements"
indicator is active. If there are incorrect goods movements, the system behaves
as follows:
A log is issued that gives information on the incorrect goods movements
If these incorrect goods movements are determined by inventory management,
then the option of correcting these errors is offered in the error handling
If the correction is not successful, the confirmation is terminated
Kind Regards,
Mariano -
Sequencing of Purchase order and Good Issue acc. to Production order date
Hello ,
We are using Direct procurement scenario ,During MRP run we generate a Plan order(which have dates); which converted into Production order later.For these production order material is needed (components). And for procuring components we need to create purchase order.
Assumption :- Each component have same Procurement lead time
Our requirement is Purchase order and GI in Production order should be done sequentially, means Based on Production order date ,FIFO based Purchase orders are created and GI done in Production order. Production order with earlier production date have purchase orders earlier and we do GI in production order accordingly.
Kindly suggestHello Dario
Thanks for your reply. Our requirement is to put a check on system that GI for production order should be done FIFO wise
means as MRP generate 3 production order of same material each at different date , we want issance of components to be done on FIFO wise in production order
Regards
Rajeev -
Good issue by MB1A against Production Order
Hi Dear PP profesionals,
Could you advise me about the follow scenario.
I am using MB1A to do re-stcok (262) and consume (261) against Production Order only for one o two component(ROH Materials).
Just I created Production order by 100 EA, after I confirmed it but I need to do some ajusment in some components.
For one them I need to do re-stock from production order to storage location in this case I am using MB1A against production order with movement type 262 the quantity to back storage location is by 5 EA.
For the other component I need to consume 5 EA more then I am using MB1A against production order with movement type 261.
After excute MB1A for both cases I go to the production Order but I can not see reflected this changes
For first one I expect to see 5 less if when I confirmed production order were issue 100 EA after ajusment with MB1A I expect see 95 with movement type 262.
For second one I expect see 5 EA more if initialy I consumed 100 EA after ajusment with MB1A I am expectin see 105 EA.
Could you advise me about iit, f I am expecting is correct or MB1A only make ajusment without any reflected in Production Order?
Best Regards,
Julio PPHi PP_HKV,
I did as you told me about use MB1A/261 against production order and you rigth, This not up date any quantity in production order for component only I can see this movoment in option GOTO --> Documented goods movements, but not in component overview in field Qty withdrawn, It is the same case when I use MB1A/262 transation allow me to do the movment but the quantity in production order for component is not up date only it is show in GOTO --> Documented goods movements
I see in standard process it is not work as I expect. Is there some way for to do that any bapi o customization?
Thanks in advance,
Julio Werekeitzen -
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 -
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 -
Goods Receipt for Production Order
Dear All,
I am Creating a Production order manually and assigning the Project WBSE in Assignment Tab.
Then i conformed the order. Now i am doing the MIGO for goods receipt against that Production Order.
System is receiving the stock in Pant, not as a Project stock. But as per my requirement it should be created as a project stock.
So please tell me what is the issue in this...
Regards,
Rao
Message was edited by: Mohamed Rafi - Search forum, refer SAP Help.Hi,
I find the settings as below.
Item cat: L
Priority
Plant 2
Project 1
Sales Ord 3
Regards,
Rao -
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 -
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 -
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 -
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.
-
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. -
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
Maybe you are looking for
-
What is the best way to repeatedly load random commercials?
Hi Everyone, Any help with the above question would be useful. Here's my end goal: I want to display commercials on a screen at my wife's bakery. The script should load one commercial, play it, then unload it, randomly load another, and so on. I am
-
How to correct bad PDF display of Excel 2007 graph-Adobe Pro X?
Just installed Adobe Acrobat Pro X; previously had Adobe Pro 8, which worked fine. Have Excel 2007 files with an Excel graph and a JPG image on the spreadsheet tab. Both the graph and the JPG are too big, are displaced, and hide spreadsheet data, w
-
How are BAPI's related to conversions
Hi, I would like to know how can we do conversions using BAPI's. Is conversion through BAPI preferred over BDC or call transaction?? Thanks, Haritha
-
Has the page ordering changed since cs5 or is something amiss with my cs6?
Hi Right i hope i explain this correctly in my old cs5 the page ordering displayed like so in the pages panel: 1 2-3 4-5 6-7 and so on but in cs6 its like this 1 3-2 5-4 7-6 and so on so basically all documents when exported are in the wron order!
-
Question for you Apple experts
First let me state that I don't mean this to be a ******** session. I bought my Iphone in December and overall I'm pleased. It doesn't run my life, I use it to make and receive calls and email. With the exception that one day it turned into a brick,