Enhancement in MIGO for Goods Movement
Hi Gurus,
I got a requirement to Create a 262 goods movement materials document with reference to a Sub-Contract GR for an account assigned Sub-Contract PO thru TCODE MIGO. The details are describe as follow:
Once the 101/543 GR movement is carried out, a 262 movement type needs to be executed to reverse the consumption of the material against the service order and bring it back to the inventory (open stock). This movement needs to be triggered once MIGO subcontractor goods receipt -101/543 is committed (saved).
When the 101/543 GR movement transaction MIGO is saved-
1. User exit needs to be invoked
2. Check if the GR is
o for an account assigned (EKPO- KNTTP Acct Assignment Cat =F) Sub-Contract PO (EKPO- PSTYP Item Category L)
o AND the service order number (AUFNR) exists in ZXXXXXX (ZSUBCON_VALIDATION) table
3. Identify the line item material in the goods receipt document (First item /against movement type 101),
4. Identify the service order number (AUFNR) from ZSUBCON_VALIDATION table.
5. Call the goods issue (262) transaction via the BAPI using the material derived via step 3 and against the service order number derived via step 4. BAPI_GOODSMVT_CREATE post goods movements
Hi Matt,
There are lots of Exits and BADI available in this transaction. See which suits you.
Enhancement
MB_CF001 Customer Function Exit in the Case of Updating a Mat. Doc.
MBCF0011 Read from RESB and RKPF for print list in MB26
MBCF0010 Customer exit: Create reservation BAPI_RESERVATION_CREATE1
MBCF0009 Filling the storage location field
MBCF0007 Customer function exit: Updating a reservation
MBCF0006 Customer function for WBS element
MBCF0005 Material document item for goods receipt/issue slip
MBCF0002 Customer function exit: Segment text in material doc. item
Business Add-in
MB_DOCUMENT_UPDATE BADI when updating material document: MSEG and MKPF
MB_DOC_BADI_INTERNAL BAdIs During Creation of a Material Document (SAP Internal)
MB_ME_CSGMT_BADI_SAP BAdI: Consignment Processing - Stock Transfer
MB_MIGO_BADI BAdI in MIGO for External Detail Subscreens
MB_MIGO_ITEM_BADI BAdI in MIGO for Changing Item Data
MB_PHYSINV_INTERNAL Connection: Core Inventory and Retail AddOn
MB_QUAN_CHECK_BADI BAdI: Item Data at Time of Quantity Check
MB_RESERVATION_BADI MB21/MB22: Check and Complete Dialog Data
MB_RESERVATION_SCR Screen BAdI for Retrofit DFPS
MB_RESERVATION_UPCHD BAdI for Creation and Changing of Manual Reservations
MB_RES_BAPI_CHANGE BAdI: Execution of Changes to Reservation Fields
MB_RES_BAPI_CREATE1 BAdI: Adoption of Customer's Own Fields as Reserv. Fields
MB_RES_BAPI_DETAIL1 BAdI: Display of Customer's Own Fields in Reservations
MB_STOR_LOC_BADI_GTS BADI to Check and Change Storage Location (GTS Fct. Only)
MB_DOCUMENT_BADI_SAP BADI for Creation and Changing of a Material Document
ARC_MM_EBAN_CHECK BAdI: Enhancement of Archivability Check (MM_EBAN)
ARC_MM_EBAN_PRECHECK BAdI: Enhancement of Archivability Check (MM_EBAN)
ARC_MM_EBAN_WRITE BAdI: Enhancement of Scope of Archiving (MM_EBAN)
ARC_MM_EINA_CHECK BAdI: Enhancement of Archivability Check (MM_EINA)
ARC_MM_EINA_WRITE BAdI: Enhancement of Scope of Archiving (MM_EINA)
ARC_MM_INVBEL_CHECK BAdI: Enhancement of Archivability Check (MM_INVBEL)
ARC_MM_INVBEL_WRITE BAdI: Enhancement of Scope of Archiving (MM_INVBEL)
ARC_MM_MATBEL_CHECK Prüfung ADD-ON-spezifischer Kriterien für MM_MATBEL
ARC_MM_MATBEL_WRITE Check Add-On-Specific Data for MM_MATBEL
MB_CHECK_LINE_BADI BAdI: Check Line Before Copying to the Blocking Tables
MB_CIN_LMBMBU04 posting of gr
MB_CIN_MM07MFB7 BAdI for India Version exit in include MM07MFB7
MB_CIN_MM07MFB7_QTY Proposal of quantity from Excise invoice in GR
MB_DOCUMENT_BADI BAdIs During Creation of a Material Document
Regards,
Atish
Similar Messages
-
MIGO not permitted for goods movement
Hello gurus
When I tried doing Goods Issue on an order (movement type 261), an error came up saying that the order was not found or not permitted for goods movement
What would be the cause of this? How can I remedy it?
Thanks in advance, points assuredHi,
This is because the Order may be not released.
Release the order and proceed further.
Regards,
Siva -
The Reservation item is not allowed for goods movements
Hi Experts,
When i do the goods movements against the reservations in
MIGO, I encounter the below error.
The reservation
xxxxxxx item xxxx is not allowed for Goods Movement.
Can you please suggest on this.
Regards,
Venkat.What is the message number ?
Can you please check the goods movement allowed for reservation in MB22 : -
Enhancement in CO11N in Goods Movement
Hi Experts,
My client's requirement is for some particular materials in CO11N in goods movement screen the quantity field will be non editable and for all other materials it will be in editable mode. There is a badi for goods movement WORKORDER_GOODSMVT. Will this badi will work? Can any one suggest me or send me a sample code?
Rgds,
SURYAHi
I tried the BADI, the method gm_screen_line_check is useful, the problem here is when you come to this screen the material and qty fields are editable but once press enter the BADI will get triggered.
Try looking for other options also.
Also look enhancement point also.
LOOP AT SCREEN.
IF screen-name = 'COWB_COMP-ERFMG'.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Shiva -
Order not found or not permitted for goods movement
Hi,
I try to implement Goods Movement by using BAPI_GOODSMVT_CREATE. I try to do it over delivery number. So I use the following code. But somehow it returns "Order not found or not permitted for goods movement" error. I can do the same movement over MIGO transaction. But BAPI can not find the order. Do you have any idea? Do I miss a parameter o something?
Thanks.
data: begin of gmhead.
include structure bapi2017_gm_head_01.
data: end of gmhead.
data: begin of gmcode.
include structure bapi2017_gm_code.
data: end of gmcode.
data: begin of mthead.
include structure bapi2017_gm_head_ret.
data: end of mthead.
data: begin of itab occurs 100.
include structure bapi2017_gm_item_create.
data: end of itab.
data: begin of errmsg occurs 10.
include structure bapiret2.
data: end of errmsg.
data: wmenge like iseg-menge,
error_code(220) type C,
temp_xchpf like mara-xchpf,
sbatch like mseg-charg.
DATA : temp_vbeln LIKE likp-vbeln.
gmhead-pstng_date = sy-datum.
gmhead-doc_date = sy-datum.
gmhead-pr_uname = 'sy-uname.
gmhead-VER_GR_GI_SLIP = '1'.
gmhead-VER_GR_GI_SLIPX = 'X'.
gmcode-gm_code = '01'. " for 101
itab-mvt_ind = 'F'.
itab-plant = '0001'.
itab-entry_qnt = AMOUNT.
itab-move_type = '101'.
itab-item_text = 'invoice'.
itab-deliv_numb = temp_vbeln.
APPEND itab.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = gmhead
goodsmvt_code = gmcode
goodsmvt_headret = mthead
TABLES
goodsmvt_item = itab
return = errmsg.
CLEAR error_code.
LOOP AT errmsg.
IF errmsg-type EQ 'E'.
error_code = errmsg-message.
ENDIF.
ENDLOOP.
IF error_code IS INITIAL.
COMMIT WORK.
IF sy-subrc NE 0.
error_code = 'Commit error'.
EXIT.
ENDIF.
ENDIF.
ERROR_C = error_code.Dzed,
I set item information but I'm still getting error.
Actually I didn't understand the difference between applying goods movement over delivery number or po number. What is the difference between them?
If I try to use only deliv_num & deliv_item data, BAPI looks for PO and finds nothing and gives error. But when I use PO number and item for goods movement, this time it is still impossible to be successfull(another error). So I decided to use both delivery number and PO together in BAPI; so I filled those fields:
po_number
po_item
deliv_numb
deliv_item
But as you may guess, no success.
There are also another fields for delivery :
deliv_num_to_search
deliv_item_to_search
I have no idea what are they for.
And also there's another field in BAPI header:
red_doc_no
Maybe I have to use this field to pass delivery number. I'm not sure. I'm confused. -
Outbound IDoc for Goods Movement
HI
We need to generate XML files for goods movement posted in SAP at Goods Receipt (MIGO) and Post Goods Issue (VL02N). Requirement is asynchronous update where the receiving system will poll the xml file at the end of the day.
I have not been able to find any standard outbound idoc for goods movement.Can someone advise how they tackled any similar requirement? Any other approach also appreciated.
Thanks
SriramAnswer to the question, which would be useful to all.
<b>MIGO</b>
MB_CF001 - Customer Function Exit in the Case of Updating a Mat. Doc.
This exit is called on update task, populate segments (edidc & edidd) of WMMBID02 (WMMBXY message type) and use MASTER_IDOC_DISTRIBUTE. Also you need to maintain the ALE Distribution model in WE64 for this message type.
Inside the code you can restrict based on movement type. No need to issue COMMIT.
<b>VL02N</b>
You can use BAdi: LE_SHP_DELIVERY_PROC to perform this.
Create Implementation and use the method SAVE_AND_PUBLISH_DOCUMENT.
Hope this help to others as well. -
GI:How to set Indicator:Item Not Relevant for Goods Movements LIPS-NOWAB
Hi,
does anybody know what i have to do to get the Indicator: Item Not Relevant for Goods Movements set for a good issue delivey position? (Table LIPS field NOWAB)
thanks in advance
SteffenHi,
the thing is the following (maybe it doesn't work at all, i don't know) :
a) i have a "Non-stock" material (e.g.material type NLAG)
b)this material should be picked, so it should be relevant for the delivery (e.g.item category TAX)
c) for a special reason the "Total goods movement status" in the outbound delivery header shouldn't be "Not relevant", therefore i assigned the item category TAX to a shedule line category that has a movement type (e.g. CN)
d)but the bad thing is, that the customer has set the indicators "quantity updating" and "value updating" for the material type NLAG, and so the goods issue posting gets some errors. eg.g missing storage location etc.)
During debugging i found a coding that checks the sign NOWAB of lips, the documentation says:
"You can use this indicator to control whether the item is relevant for goods movement when the delivery is still being created.
When this indicator is set, goods movement is not posted for this item - regardless of the movement type assigned to it."
So i head the idea it might be possible to set this indication (Lips-nowab) somewhere in the sales order or somewhere else but maybe this conflicts with point c) above .
Maybe shomeone knows what to do or has a better idea.
Best regards
Steffen -
Function Modules for goods movement
Hi Expert,
I need FM Modules for goods movement from one bin to other bin and for Storage location to other storage location.which movement type we have to use for BIN to BIN and Sloc to Sloc.
How to find the stock of a material with respect to bin level.
-RKHello,
Hello have alook at below FM's:-
CALL FUNCTION 'MB_CREATE_GOODS_MOVEMENT'
CALL FUNCTION 'MB_POST_GOODS_MOVEMENT'
Regards,
Nikhil -
GL Account Postings for Goods movement
Hi,
I have a requirement to setup a account determination for goods movement for charity.
What happens is that at times goods are given out directly for charitable purposes.
This is done using a direct goods movement using 562. I need to know what kind of accounts should be debited or credited?
kindly advice.
thanks.Hi,
Generally it should be Goods Issue against Cost Center through Movement Type "201" (Here create "Admin" Cost Center and in Text line mention the purpose as Issue to Charity)
Else create Charitable trust as a vendor and use option Goods Issue --> Others (Mvmt. Type 502) and issue the materials.
Accounting Entry should be;
Stock Account - Cr
Consumption Account - Dr
Also discuss once with your client. -
HI,
WILL ANY BODY HELP ME FOR BAPI MB1B FOR GOODS MOVEMENT 411
DEASSINGE.
I'M USING THIS BAPI FOR THE SAME
AND PASSING THIS DATA.
wa-MATERIAL = it_data-matnr.
wa-PLANT = 'SBST'.
wa-stge_loc = IT_DATA-LGORT .
wa-BATCH = it_data-charg.
wa-MOVE_TYPE = '411'.
WA-move_reas = '0003'.
WA-STCK_TYPE = 'F'.
wa-SPEC_STOCK = 'E'.
wa-val_sales_ord = it_data-vbeln.
wa-val_s_ord_item = it_data-posnr.
wa-quantity = it_data-qty .
wa-entry_qnt = it_data-qty .
WA-base_uom = 'MTS'.
WA-MOVE_MAT = it_data-matnr.
WA-MOVE_PLANT = 'SBST'.
WA-move_stloc = IT_DATA-LGORT .
WA-MOVE_BATCH = it_data-charg.
MOVE 'SBST' TO wa-tr_part_ba.
MOVE 'SBST' TO wa-move_plant.
MOVE 'X' TO wa-no_more_gr.
MOVE 'TNE' TO wa-entry_uom_iso.
MOVE 'TNE' TO wa-st_un_qtyy_2_iso.
append wa to l_it_item .
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = l_wa_header
goodsmvt_code = l_f_code
IMPORTING
goodsmvt_headret = l_wa_headret
TABLES
goodsmvt_item = l_it_item
return = lit_bapiret2.
Headling error message
IF lit_bapiret2[] IS INITIAL.
BUT IT GAVE ERROR
Reason for Mvmt 0003 not supported (check your entry)
WILL HELP
MUKESHthanks
-
Why do we configure Record resaon for goods movement?
Hi,
I have seen the settings for "Record reason for goods movement" in customizing for different movement types. it can be optional , suppressed or required.
Can somebody please let me know what is the effect of this setting? what it does at the front end or rather user level, what transaction does it effect?
Thanks
RegardsHi,
We define Record reason for goods movement to input reason for material rejection to vendor or material srapped etc.
By means of displaying the mtl doc anyone get idea why this mtl is rejected.
Regards,
Sandeep -
Tick for goods movement in production order
Hi,
I have one query with reference to tick for goods movement in production order.
Where it comes from as soon as i released the order.
Is there any customized setting or it is stanadard functionality?
TusharHi,
I am not sure about which tick you are talking. So pls clarify exactly which check boxes you are talking in Production Order.
If you are talking about check boxes of Goods Receipt, GR Non valuated & Delivery Completed check boxes then those are standard SAP functionality which comes automatically at the time of creation / release of the order.
Revert with more details in case your query is not resolved.
Regards,
Tejas -
Storage location not found in MIGO for 101 movement type
Hi all,
While posting goods receipt in MIGO for purchase order using 101 movement type,i am not getting the storage location field..Though goods is getting posted in migo transaction,it is not getting updated in the stock while seeing it in mmbe...
can anyone help me..
Thanks&Regards,
HariHi,
When ever we purhcase a material , it can be for two purpose
1. Material to Stock
2. Material for Direct consumption
If you wish to stock the material Material No is required and Cost Center Assignment is not required. In this case when you create Goods Receipt (MIGO) storage location will be asked.
If you have given a Cost Center or say any other Account Assignment, then at the time of GR (MIGO) storage location would not be asked, as the system assumes that it is for that particular cost center.
I think in your case you have given some Account Assignment category in your PO. Please check.
Hope it is of your use. Please reward.
Nikhil -
Fixing automatic printing of material document for goods movement type 101
Hi experts,
I have a situation, where I want to fix automatically printing of material documents good receipt and transfer posting related to movement type :
101- GR for plant XYZW to the printer AB12 with output type WE03 " GR note version 3" Language EN.
311 - transfer posting plant XYZW to the printer AB12 with output type ZUGT language EN.
Please provide pointers!!Hi Biju,
Thanks a lot for the information. But I a facing a problem, I have maintained the Plant/Storage/Condition type in OMJ3 with printer also maintained in it.
But, I am not able to generate output when I am doing MIGO for the Purchase order.
I have to go MB02, maintain output type 'WE03' and printer-PL56 in the message tab of material document and then only i can see the spool is generated in SP01.
My output condition type is maintained in MN21, with following parameters; Trans/Event type: WE, Print Version: 3, Print Item: 6 for output type WE03.
Moreover, Do I need to maintain the new printer in the printer settings.
Please help me in getting the material document print output at MIGO only. -
VL01N - indicator: Item not relevant for goods movements
Hello Everyone
When creating a new delivery, into the administration tab of the Item detail, there is an indicator:
"No goods movement" into the control data box.
Based on SAP help:
When this indicator is set, goods movement is not posted for this item - regardless of the movement type assigned to it.
My problem is: that field is not selectable(It is in grey). So we cannot change it. How can we set that field?
Regards
stjacqdDear Dstj,
Check the movement type before that No Goods Movement check box it should be 601 for outbound delivery.Due to wrong movement type check box get activated.
If you are allow to chenge that movement type then change and try.
If movement type is incorrect then take help of MM consultant to set the movement types properly.
I hope this will help you,
Regards,
Murali.
Edited by: Murali Mohan.Tallapaneni on Nov 15, 2008 6:52 AM
Maybe you are looking for
-
Data not getting selected in Background.
Hi Freinds I have written a program which select the invoice data hourly basis and download it into a text file. Everything is file when I run the program in the foreground. (Interactvely). My issue is when I schedule this using SM36 to run in the ba
-
Reporting Services 2014 ReportViewer.Webforms.dll
So is Microsoft still only going to support Internet Explorer for printing? Any chance they will ever support Chrome?
-
My purchased apps are all gone. How to get them back?
as above. I can still find them on my purchase history but they are not on my purchased list. That's so weird. I have checked if I can re-download them which dont work. I dont want to purchase any of them again. Please help.
-
UNIX executable of type .chm?
Does anybody know how to execute one of these things? (I think it's a UNIX executable of type "compiled HTML", whatever that is) When I try to "exec" it from the "terminal" window, it tells me it can't execute the UNIX executable due to an unknown er
-
IDriver.exe, the instruction at 0x77511029 referenced memory at 0x000005c,
iDriver.exe, the instruction at 0x77511029 referenced memory at 0x000005c, the memory could not be "read". I got this again when I installed 6.0.2. I had seen this before, last October with some other version. iTunes seems to be working OK, despite t