Transfer posting in MIGO- need BADI
Dear All,
i have this issue
Stock transfer From Material code: 736
Same storage location and Same Plant to material code: 9010 same storage location and same plant and same Quantity and same UOM and Addition UOM.
Example:
Material: 736
SLoc: CT16
Plant: 1100
Quantity: 100 KG ( KG only Base UOM)
Additional :
Transfer the material.
Material: 9010
Sloc: CT16
Plant: 1100
Quantity: 100 KG (KG only Base UOM)
Additional:
need to find the BADI. i have googled and checked with few badi's MB_MIGO_BADI;and MB_DOCUMENT_UPDATE.
but couldn't solve the issue.
Need to find the BADI and its corresponding method.
regards,
Hi Naren,
I will tell you four methods to find a BADI,
Method 1. If you think that it is a simple requirement then got SE18 and click on F4 and Iformation Systems. In the short description enter the short text and search.
Method2. Another simple method is to search with Package.
Method3. Put a break point in the FM SXV_GET_CLIF_BY_NAME and then run your transaction
Method4. Put a break point in the class CL_EXITHANDLER for METHOD get_instance. and then run your transaction.
Hope this material helps.
ThnX,
Bhargav.
Similar Messages
-
Transfer Posting with MIGO.
HI,
I need to do a transfer posting to post some of the materials using 541 mvt to my Subcontracting Vendor. When i am able to do it with MB1B , i am able to access with reference to PO whereas in the enjoy transaction ( MIGO ) with Transfer posting, i am able to see only reference documents such as material document, Reservation and Others.
If i want to add one more reference to the Transfer posting function how to go about.
Please expedite.
Regards,
RitiGHi RitiG,
Unfortunately, as you have seen, the only two available references to post a Transfer posting with MIGO are 'Others' and 'Reservation'.
This is, it is not possible to post a transfer posting in MIGO with reference to a Purchase Order. This is the standard behavior and it cannot be customized.
If you wish this option to be available to transfer stock to your subcontracting vendor (using the movement type 541), then, you will need to make this posting via the business transaction 'A08 Transfer posting' - 'R10 Others', but then you will not have any reference to the Purchase Order.
Alternatively, you can use transaction ME2O, which uses this reference to the Purchase Order, or you can continue using MB1B.
Best regards,
Esther -
Populate Tax Code in RKWA table while doing transfer posting through MIGO.
Hi All,
I have a requirement where for certain countries i have to pass the tax code to RKWA table while doing Transfer posting through MIGO transaction.
For certain countries which i have to pass the Tax code to RKWA table, basically will not be having the tax code. For this reason im looking for BADi/User exits where i can update the RKWA table with the tax code. If the tax code is not derived, im getting the error as 'No tax information found'.
Please suggest if any BADi/exits are available for this requirement.
Regards,
SantoshCheck the following SAP notes:
139176
579241
Regards,
Indranil -
In MIGO transaction Transfer posting user exist or BADI or Enhacements
Hi Experts,
Could you please help on this issue.
My requirment is, In MIGO transaction code, Transfer Posting (i.e., Storage location) screen, in item level there is Transfer posting tab From and Dest two sub screens are there.
if user enter material , plant and stoargae location in From side and that will be same maintain in Destination side.
If any user will change in Destination level Material or Plant or Stoarage location, I need to populate the error message.
Could you please tell me BADI or user exist or Enhacement for this requirment.
I have serached in SDN and debug the transaction code MIGO. I didn't found user exist and enhacment.
Thanks
SrinuHI ,
If i tried this Enhacment MB_MIGO_SC. I have put break point and it is not triggering, when i am saving/ Checking the postings in MIGO transaction code.
Thanks
Srinu -
Dear experts,
Requirement is like, whenever we do goods receipt and save in MIGO(tcode), the transfer posting should happen after the commit work of MB_POST_GOODS_MOVEMENT. Could anyone suggest which is the correct enhancement-point to implement the code?
Thanks,
AdithanHi,
did you try to use this BADI: BADI_DIAD_GOODMVT_1. This is from BADI documentation
This BAdI enables you to initiate follow-up actions after a goods
movement. Using the number and year of the material document, the system
reads the goods movement data in the customer-specific coding and
triggers the relevant actions.
It has also sample code.
Cheers -
Transfer posting with Mov Type 311E in MIGO with reference to SC-PO
Hi,
I am working with MTO scenario.
I want to carry out transfer posting of material with movement type 311E against subcontracting Purchase Order which is sale order specific.
However, system does not allow me to do the same. whenever transfer posting, PO & movement type is selected in transaction MIGO, item details entry tabs are displayed blank.
Below steps are being follow:
Scenario is MTO ( special stock subcontracting)
1. Subcontracting PO no. 4500000147 against Sale Order no 61 created.
2. RM code - 61, available stock 100 TO & batch no.0000000127
3. Transfer material to vendor for processing through MIGO ( since it is a special sales order stock, transferring happens from SL 0001- Main Stores to SL VLSC -Virtual storage location) using movement type 311 E
5. Item Data details tabs are blank.---This is the issue / error.
Note: I am restricted to post transfer posting through MIGO-Transfer Posting (will not use MB1B) due to some enhancement of MIGO and interfaces with legacy system.
Please have a look on attachment for SAP screen issue.
Regards
Mohit JaiswalHi Mohit ,
please check below link , you need to perform steps as given
http://help.sap.com/saphelp_470/helpdata/en/4d/2b90b043ad11d189410000e829fbbd/content.htm
also see the sales order subcontracting using the business addon
http://help.sap.com/erp2005_ehp_04/helpdata/en/c7/2587b8dad94c52854ccd28015dceb0/frameset.htm -
Transfer Posting problem via MIGO MVT 311
While doing transfer posting through MIGO MVT 311 against reservation, we are facing the problem displayed below:-
"Check table XMRES: entry 0000000000 0001 does not exist
Message no. M7001
Diagnosis
In table XMRES the entry 0000000000 0001 is missing."You cannot use 311 .311 is Moving material from one storage location to another -- Un restricted to another, Reserved stock can be moved by converting in to another movement type .Do movement 341in mb1c , if 341 is not there then go to moment type control
data and create particular moment type and run that for reservation no
document created and in valuation area -
User Exit for MIGO(Transfer Posting)
Is there any user exit for transfer posting by MIGO?
if so plz give the names of user exits related to it.....
Awaiting for ur reply..............USER EXIT
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sapgenie.com/abap/code/abap26.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
http://www.easymarketplace.de/userexit.php
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sappoint.com/abap/userexit.pdfUser-Exit
http://www.sap-img.com/ab038.htm
http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
Transaction Code - MIGO Goods Movement
Exit Name Description
MBCF0002 Customer function exit: Segment text in material doc. item
MBCF0005 Material document item for goods receipt/issue slip
MBCF0006 Customer function for WBS element
MBCF0007 Customer function exit: Updating a reservation
MBCF0009 Filling the storage location field
MBCF0010 Customer exit: Create reservation BAPI_RESERVATION_CREATE1
MBCF0011 Read from RESB and RKPF for print list in MB26
MB_CF001 Customer Function Exit in the Case of Updating a Mat. Doc.
No of Exits: 8
Rewards if useful.........
Minal -
BAPI_GOODSMVT_CREATE: move 309 for transfer posting - change of sales order
Hello Experts,
I'm trying to use BAPI_GOODSMVT_CREATE to transfer the material from one sales order to another.
But that doesn't seem to work.
ls_goodsmvt_header-pstng_date = sy-datum.
ls_goodsmvt_header-doc_date = sy-datum.
ls_goodsmvt_code-gm_code = '04'.
ls_goodsmvt_item-material = ls_outtab_l-matnr.
ls_goodsmvt_item-plant = ls_outtab_l-werks.
ls_goodsmvt_item-stge_loc = ls_outtab_l-lgort.
ls_goodsmvt_item-move_mat = ls_outtab_l-matnr.
ls_goodsmvt_item-move_plant = ls_outtab_l-werks.
ls_goodsmvt_item-move_stloc = ls_outtab_l-lgort.
ls_goodsmvt_item-move_type = '309'.
ls_goodsmvt_item-mvt_ind = ''.
ls_goodsmvt_item-entry_qnt = ls_outtab_l-kalab.
ls_goodsmvt_item-entry_uom = 'EA'.
ls_goodsmvt_item-spec_stock = 'E'.
ls_goodsmvt_item-val_sales_ord = ls_outtab_l-vbeln.
ls_goodsmvt_item-val_s_ord_item = ls_outtab_l-posnr.
ls_goodsmvt_item-sales_ord = ls_outtab_r-vbeln.
ls_goodsmvt_item-s_ord_item = ls_outtab_r-posnr.
" ls_goodsmvt_item-sched_line = '000'.
APPEND ls_goodsmvt_item TO lt_goodsmvt_item.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = ls_goodsmvt_header
goodsmvt_code = ls_goodsmvt_code
testrun = ''
IMPORTING
goodsmvt_headret = ls_goodsmvt_headret
materialdocument = lv_materialdocument
matdocumentyear = lv_matdocumentyear
TABLES
goodsmvt_item = lt_goodsmvt_item
return = lt_return.
Right now i supply val_sales_ord with destination order number, and sales_ord with source. But I'm not really sure about that, which is the destination, and which is source sales order number parameter in itemline, val_sales_ord or sales_ord? Or maybe it doesnt work like that?
Thanks for any help,So after some time i found out where the flow of bapi and migo differ, this is also, where the field KDAUF gets reseted, and the cause of not posting material document correctly:
Starts in line 59 of MM07MFU0_UMLAGERUNG_PRUEFEN:
* The old fieldselection (T156B) is not valid for a transfer posting
* from MIGO
IF NOT vm07m-xstor = zwei AND xmigo <> x.
IF dm07m-fausw+55(1) = minus.
CLEAR mseg-ummat.
ENDIF.
IF dm07m-fausw+56(1) = minus.
CLEAR mseg-umwrk.
ENDIF.
IF dm07m-fausw+57(1) = minus.
CLEAR mseg-umlgo.
ENDIF.
IF dm07m-fausw+64(1) = minus.
CLEAR mseg-umcha.
ENDIF.
IF NOT vm07m-kzbwa = kzbwa-01 AND
NOT vm07m-kzbwa = kzbwa-05 AND
NOT vm07m-kzbwa = kzbwa-07.
CLEAR: mseg-umbar.
ENDIF.
" the condition below is the source of my problems
IF dm07m-fausw+60(1) = minus.
CLEAR: mseg-kdauf, mseg-kdpos.
ENDIF.
IF dm07m-fausw+62(1) = minus.
CLEAR mseg-ps_psp_pnr.
ENDIF.
ENDIF.
I changed the value minus '-' of dm07m-fausw+60(1) to a dot '.', and the bapi worked like a charm. I am just not sure if I can change the records of T156B just like that, I guess not a good idea.
Still i have no solution... -
Dear forumers,
I have a requirement as such:-
Upon a transfer posting in the transaction MIGO, some data fields will need to be updated in RESB and another custom table based on certain conditions. This transfer posting will be for issuing / transferring a part from one location to another.
As for the data logic, I should be able to work it out. But, I am not sure on how I can find the right BADI for this.
Would someone have any idea on this at all?
Please help. Many thanks in advance.Hi
If you use MIGO, you can use the BADI 'MB_MIGO_BADI'. You can use too the BADI 'MB_DOCUMENT_BADI', but in this case be careful (see Note 92550 - Stock inconsistency due to customer enhancement (exit, BAdI) ). This is for custom tables. For RESB data I don't know what you want to do.
I hope this helps you
Regards
Eduardo -
Getting serial number box while transfer post in MB1A but not while doing MIGO
Hi Team
I am getting serial number box while transfer post in MB1A.
But getting below error under serial number tab while doing GR through MIGO of outbound delivery.
Issuing plant and receiving plant, material, batch, qty are same in both cases.
How can I get serial number box when doing GR? Does any customizing changes needed?
Br, Kiran UMovement type is different for those two screen shots, also you are saying you are using MB1A, but you are using 301 movement type. Generally 301 movement type is not allowed from MB1A t-code.
Please check these SAP notes if relevant for your case.
856548 - MIGO: you cannot enter serial numbers
856662 - T156Q: Missing entries -
Transfer posting options Need a printout prior to posting
Hello Gurus
Our company uses a 3rd party warehouse and carries serialized products. We often move items from
BLOCKED Storage location A to BLOCKED Storage location B (different physical address).
In transferring from SL A to SL B, we need a printout to give to warehouse A, so they know material/qty/which location.
The problem is the timing issue. At the time we want to execute the transfer posting, we dont know the serial numbers so we cannot execute in SAP. The warehouse makes the decision on which Seral numbers after receipt of printout.
What are my options?
Any suggestions would be appreciated.
The only scenario I can think of is STO with Outbound Delivery.But In this case, is it possible to customize where it pulls from (Blocked stock) and transfers to Blocked or unrestricted stock?
Im not sure if something like this is possible.
Thanks in advance for your suggestions.
HanarinYou can try and make a Reservation using MB21 for the said storage locations.This reservation can be printed as well. Also while Issuing / Receiving Materiasl w.r.t Reservation via MIGO , you can select the desired stock type as "Blocked" under "Where" tab .
-
Need information on the transfer posting from WM To IM
Hello All,
Is there any scenario in WM and IM, where you are doing the transfer posting in MIGO_TR and creating the material doc for it. Now the stock moves in IM but when u create TO for the material doc and confirm the TO. That's where the stock moves in WM.
1) MB1B-311 Movt type---create TO for the mat Doc---i am moving the stock from one storage location to another location...then it moves the stock in IM, but i create TO and confirm in LT06...that's where, the stock moves in WM.
2) MB1B---321 MOVT TYPE...LT06...the stock category changes in IM and WM respectively...
I know the above scenarios work fine but there is any scenarios in SAP, where the posting happens first in WM and then in IM.
i need the clarity on the below scenarios, which is similar in case.
transfer-WM to IM
Backflushing of WIP to an interim storage location?
Thanks,As Manish mentions above, when you are performing a posting change in a WM-managed SLOC, the preferable method is to use LQ02. This is because you already know the exact quant involved in the posting change and if your configuration is set properly, it is a single transaction for the end user.
If you start with MIGO, you must then follow on with LU04 as a second step to convert the Posting Change Notification in the foreground - otherwise you risk carrying out a posting change on the wrong quant!
You will first need to create custom WM movement types for the constellation of movements you want to perform these posting changes with (e.g., U > S, S > U, etc.). For the examples I just named you can copy the appropriate 3xx WM movement as a template. I would recommend that you set these movement types for automatic creation, automatic confirmation and post to the same bin.
In the IMG you can go to WM > Interfaces > IM > Define Posting Changes and link the IM and WM movements and also the source/destination stock categories (or special stock). Then in LQ02 you can simply enter the warehouse, storage type, bin and WM movement involved and you should be able to tick the quant(s) to change and post.
One limitation of using LQ02 for initiating the posting change in WM is that you must transform the entire quant. If, for example, you have a quant with 100 EA and only 41 EA are to be blocked, you should first quickly perform a bin-to-bin movement of the stock to be blocked to some other bin, perform the posting change, and then move it back. This has been my experience. If someone knows a way to do a partial posting change using LQ02 I'd love to know how to do it.
Good Luck!
Jason -
MIGO Automatic Transfer Posting (Mvt 101 ) to (mvt 301)
Hi Experts,
My requirement is : MIGO - once performed goods receipt (MvT 101) in receiving plant then transfer posting will perform automatically MB1B (MvT 301) to destination plant/ storage location based on shipping address.
This should transfer after updating tables (which is after save for Mvt 101 ). For this I got 1 Badi ' MB_DOCUMENT_BADI'.
I have used methods MB_DOCUMENT_UPDATE and 1 User Exit mb_CF0001 (EXIT_SAPLMIGO_001 or EXIT_SAPMM07M_001 ).
These 2 will trigger after updating tables, but the problem is tables are locked especially plant table, so my BAPI BAPI_GOODSMVt_CREAte is throwing error (says plant is locked). I even tried DEQUE_ALL still unable to unlock tables. when I come out of these 2 spots then only tables are unlocked by SAP.
Appreciated for right answer.
Regards,
Sri
Edited by: srijaS on Aug 17, 2009 1:08 AM
Edited by: srijaS on Aug 17, 2009 1:09 AMTry calling Bapi with 'IN UPDATE TASK' or 'IN BACKGROUND TASK "
-
Posting header data for MIGO thru badi
Hi,
I'm using badi ' MB_MIGO_BADI ' for posting header data for the T-Code MIGO.
I have created an extra tab for supplier details for header data. The details from dis tab should be stored in a ztable.
I have written the code for the same in the METHOD 'POST DOCUMENT' of the badi, but m unable to store the data in the ztable. niether is the code for display working.
kindly help.Hi,
you need to create an attribute where you will store data from your additional screen. In example there is an attribute GS_EXDATA_HEADER with structure MBLNR, MJAHR, BADI_NUMMER. So obviously the point is to enter some number on additional header tab screen. You can see that in the method PAI_HEADER that all data from screen are transferred to this structure and in the method PBO_HEADER are data transferred from internal structure to the screen. So in this internal structure you store the current values of the fields from your additional header tab. Now when you store material document you want to also store your additional data into database. Until this point you store it only in memory. Hence you prepare a new FM which will store this data to DB and you will call this FM in UPDATE TASK. Here is an example
CALL FUNCTION 'MIGO_BADI_EXAMPLE_UPDATE_HEAD' IN UPDATE TASK
EXPORTING
is_migo_badi_header_fields = gs_exdata_header.
Once again to summarize it:
1) Define your own structure to keep additional data as an attribute of BADI implementation class
2) Pass data from memory to screen and back using methods PBO_HEADER and PAI_HEADER
3) Store additional data into DB using FM called in UPDATE TASK from method POST_DOCUMENT
Cheers
Maybe you are looking for
-
How to Bates-label (give each page a number) using Adobe?
Dear reader. I am a secretary at a law firm. When clients or opposing party send us files in Adobe, we have to print out these hundereds of pages of documents. We make labels in Word, print out the labels and stick them individually on each documents
-
Error : Entry 4 not in table EMSEG (system error) in MIGO
Hi All, I am getting the below error while cancelling the material document in MIGO. Error : Entry 4 not in table EMSEG (system error) Please provide any information on the same issue. Thanks & Regards, Ashish Dholi
-
How can I put a Viewer in my JFrame?
Hello, I mean that i have a 3DViewer for VRML ,and i just want to put it on my JFrame(GUI) with JSplitPane ,the left of JFrame is ToolBar and the right is the Viewer.How can i do? Must i the Viewer in a Container load?
-
Enhancement spot for checking XD03 CIN Details - LST and CST fields
Hi experts, How to validate LST & CST fileds in XD03 - CIN details these no are already in J_1IMOCUST table, there is any enhancement spot. please guide me. regards, Moon
-
Intel based 21.5" iMac freezes on restart
I have a mid 2010 21.5" iMac running 10.8.1 and whenever I try to restart it freezes on the gray screen. I then have to force power it down and when I power it back up everything seems to be fine. This is not new since upgrading the software. It see