BadI problem in MIGO

Dear Experts,
I need to do some validation in MIGO tcode based on item Purchase Order and item. I have already identified badi MB_MIGO_BADI and methods CHECK_ITEM also. but problem is in CHECK_ITEM method having Item Number only as Input parameter. I am unable to get PO Number and Item in this method to do validation.
Please let me know how can i get Po number and Item in my methos CHECK_ITEM???
Thanks in Advance,
Siva

Hi Siva,
Check like this
CALL METHOD im_header->get_items
RECEIVING
re_items = lt_items. If you use this method you can not get po no.
Suppose if your business requirement is to check when ever an item enter in line then you can use line_modify.This will fire when ever you enter line item.In this case you can use parameter cs_goitem for po reference.If there is any macro available then easy to give the message.
Regards,
Madhu.
Edited by: madhurao123 on Sep 26, 2011 11:20 PM

Similar Messages

  • Exit or badi problem about migo

    I hope i can get the material document after migo operation in exit or badi ,which exit or badi i can use it ?now i finded the badi which is MB_MIGO_BADI and i use POST_DOCUMENT method,but i can only get the document before actual document  create ,i want to get the document after actual document  create,
    please give me some clue or solve way,thank you very much!

    Hi,
    Check the BADI MB_DOCUMENT_BADI the method is MB_DOCUMENT_UPDATE..
    Also check the user exit EXIT_SAPLMBMB_001..
    In this BADI / Userexit..The material document number is available..
    These are called in the Update function module MB_POST_DOCUMENT.
    Thanks,
    Naren

  • Exit or Badi to prevent MIGO Goods Receipt on PO with Inbound Delivery

    Hi,
    I am hoping that someone can provide me with some direction on how to prevent the use of MIGO for GR when the PO being received is (or should be) linked to an inbound delivery.
    For purchase orders with a confirmation control key an inbound delivery is to be created and the goods receipt needs to be done from the inbound delivery. This scenario also includes the case of stock transport orders whereby an inbound delivery is created form the outbound delivery. On the other hand for purchase orders without a confirmation control key no inbound delivery is created and the MIGO transaction is to be used to post the goods receipt.
    Since both processes are possible, I would like to prevent people from posting the GR using MIGO if certain conditions pre-exist.
    Can anyone suggest a means to accomplish this goal? Is there an exit or badi in MIGO that you would suggest using?
    Thanks,
    Paul

    Hi,
    The following user eixts and badis available for migo transaction:
    Enhancement/ Business Add-in            Description                                                                               
    Enhancement                                                                               
    MB_CF001                               
    Customer Function Exit in the Case of Updating a Art. 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                              
    Article document item for goods receipt/issue slip             
    MBCF0002                               
    Customer function exit: Segment text in article doc. item                                                                               
    Business Add-in                                                                               
    MB_RESERVATION_BADI                    
    MB21/MB22: Check and Complete Dialog Data                      
    MB_QUAN_CHECK_BADI                    
    BAdI: Item Data at Time of Quantity Check                      
    MB_PHYSINV_INTERNAL                    
    Connection: Core Inventory and Retail AddOn                    
    MB_MIGO_ITEM_BADI                      
    BAdI in MIGO for Changing Item Data                            
    MB_MIGO_BADI                           
    BAdI in MIGO for External Detail Subscreens                    
    MB_DOC_BADI_INTERNAL                 
      BAdIs when Creating an Article Document (SAP Internal)         
    MB_DOCUMENT_UPDATE                    
    BADI when updating article document: MSEG and MKPF             
    MB_DOCUMENT_BADI                       
    BAdIs when Creating an Article Document                        
    MB_CIN_MM07MFB7_QTY                    
    Proposal of quantity from Excise invoice in GR                 
    MB_CIN_MM07MFB7                        
    BAdI for India Version exit in include MM07MFB7                
    MB_CIN_LMBMBU04                        
    posting of gr                                                  
    MB_CHECK_LINE_BADI                     
    BAdI: Check Line Before Copying to the Blocking Tables         
    ARC_MM_MATBEL_WRITE                   
    Check Add-On-Specific Data for MM_MATBEL                       
    ARC_MM_MATBEL_CHECK                    
    Check Add-On-Specific Criteria for MM_MATBEL     
    If it is helpful rewards points
    Regards
    Pratap.M

  • I can't open my gallery after i migrate the iphoto! How can i fix this bad problem?

    HI,
    I can't open my gallery after i migrate the iphoto! How can i fix this bad problem? Flz help me!!

    Try repair permissions with Disk Utility
    Regards
    TD

  • When i was in a phone conversation my phone has switch off and began to vibrate. I solved with a soft reset. It can be a bad problem?

    When i was in a phone conversation my phone has switch off and began to vibrate. I solved with a soft reset. It can be a bad problem?

    Is the battery charged?
    By factory reset, do you mean you "restored" the iPhone?

  • Problem in Migo BAdi

    Hi All...
    I have written a BDC for MIGO for Transfer Posting (A08) , with Reference Document (R10)-Others and Movement Type 911.
    First I go into the Tcode MIGO and set these parameters and come back.
    Then I run the BDC , it runs properly.
    But once I change these parameters one or all of them, the BDC does not run properly. It says that movement type does not exist.
    While in my BDC , I have assigned the above parameters .So it should run properly for these parameters, but it still shows the error.
    Can anyone please suggest me a solution .
    Thanks in advance.
    Sangeet.

    Look at [Note 504936 - Batch input compatibility of new transactions|https://service.sap.com/sap/support/notes/504936]
    With release 4.6B, SAP has delivered new enjoy transactions. Examples
    are transactions MIGO, MEPO, VL01N, VL02N. These transactions are not
    supported for batch input processing. For details please read notes
    304122,381630 457925 and 491875.
    or [Note 304122 - MIGO: Batch input and CATT not supported|https://service.sap.com/sap/support/notes/304122]
    Reason and Prerequisites
    The new goods movement transaction MIGO is not intended for use with batch input and CATT.
    The reason for this is that batch input and CATT are based on the screen technique, the Enjoy transactions like MIGO (single screen transactions) work more and more with the control technique. Batch input and controls are not compatible.
    Solution
    There are two alternatives:
    Use the following BAPIs to post goods movements in the background:
          Object name:  GoodsMovement
          Object type:  US2017
          Method:       Cancel (cancel goods movement)
                        CreateFromData (post goods movement)
    The old goods movement transactions (MB01, MB0A, MB1A, MB1B, MB1C, MB31) are still supported. These transactions support batch input and CATT.
    (BAPI refers to function module BAPI_GOODSMVT_CREATE)
    Regards

  • BADI/UserExit for MIGO in Stock Transfer

    Hi Gurus,
    I have a requirement.
    When posting a GR in MIGO, if the material has been flagged to go through inspection, MIGO post the batch to quality inspection.
    Now, when a batch has already gone through inspection (for example in another plant) and its released (passed) and its been transferred to another plant, if we are receiving this batch doing a post GR in MIGO, it automatically post it to quality inspection again.
    Is there a BADI, UserExit or way to skip this inspection and post the batch to unrestricted stock since its already gone through inspection in the previous plant and has a Decision Code A0 (accepted etc).
    We don't want to change the material master for this because we still want the material/batch to go through quality inspection if its hasn't already been.
    Thanks..
    Baz
    Edited by: Basil Balogun on Sep 23, 2010 1:49 AM

    Hi,
    Try the possibilities of MB_MIGO_BADI. I think in method LINE_MODIFY, POST_DOCUMENT and perhaps PAI_DETAIL.
    I hope this helps you
    Regards,
    Eduardo

  • BADI:problem with creating a new tab in BADI

    Hi
    I'm new to BADI's.
    i have a requriement to add a new tab in the MIGO transaction and add a field in that new tab .
    my Functional specification author is suggesting to use the BADI "MB_MIGO_ITEM_BADI" to create a new TAB .
    But i'm not find any function code availale in this BADI .
    Can anybody tell me how to use this BADI "MB_MIGO_ITEM_BADI" to create a new TAB .
    Also can anybody provide me any documentation available in designing a new TAB or new screen using BADI's ?

    Hi pawan
    Try this badi :   MB_MIGO_BADI  -
    (BAdI in MIGO for External Detail Subscreens)  as the name suggest ,
    If you want to add a screen in header level use : Method : PBO_header an code as :
        e_cprog   = 'ZMMPRM0001'.     """ Your screen created
        e_dynnr   = '1000'.                     "Your screen No
        e_heading = 'TEXT ID '(004).    """" Name of the screen to be created .
      ELSE .
        e_cprog   = 'ZMMPRM0001'.
        e_dynnr   = '1000'.                     "External fields: Display
        e_heading = 'TEXT ID '."(004).
    or if at item level
    u can use methid : PBO_DETAIL
    for item level screen creation . and code in the same maaner ..
    You can explore the remaning methods as per your requirements .
    Hope it helps ..!
    Regrads
    Swapnil P KAmble

  • Problem in MIGO

    Dear Friends,
    I have one query in migo.
    In particular one Purchase order, i am getting message like, "Purchase order 4400000030 has no items.
    Means when i put above po no and then press enter then above message is coming.
    I have find out that problem occurs when it goes in include program "LMIGOKP1" and in that program i have found one function like,
    CALL FUNCTION 'ME_READ_ITEM_GOODS_RECEIPT'
           EXPORTING
                ebeln          = i_po_number
                ebelp          = i_po_item
                i_werks        = i_po_werks
                kzwes          = ls_got156-kzwes
                lfbnr          = i_lfbnr
                lfgja          = i_lfbja
                lfpos          = i_lfpos
                i_smbln        = i_md_number
                i_sjahr        = i_md_year
                i_smblp        = i_md_item
                shkzg          = ls_got156-shkzg
                i_vbeln        = i_ib_number
                i_vbelp        = i_ib_item
                budat          = ps_gohead-budat  "#EC DOM_EQUAL
                i_welfbnr      = l_welfbnr
                display        = l_display
                xstor          = s_action-cancel
           TABLES
                xebefu         = lt_poitem
                xekbnk         = lt_pofreight
           EXCEPTIONS
                not_found_any  = 1
                not_found_one  = 2                                   "735762
                not_valid_any  = 3
                error_message  = 6
                OTHERS         = 7.
      IF sy-subrc <> 0.
        sy-subrc = sy-subrc.
      ENDIF.
    Here Sy-subrc will give 7 value which you can see in above function(in exceptions) and i have seen in LT_POITEM table, there are no records in table.
    Now in other POs, records are found in LT_POITEM table and sy-subrc gives 0 value means normal procedure will make it.
    Now i am not getting how can i find out the problem.I do not know that above function fetch the records in which table.
    And finally what is the reason behind  above message which i have shown to you above.
    Please reply <removed by moderator>.
    Regards,
    Shivam
    Edited by: Thomas Zloch on Nov 23, 2010 9:59 AM - priority normalised

    Hi shivam pastagia,
    That message will come for the following 2 reasons :
    1. The PO items were not saved properly, just check the conditions tab, there indicator should be in Green color. Simply we can say that PO is incomplete thats why system shows that message.
    2. GRN is already done, no suitable item remaining from the PO.
    Thanks & Regards,
    Faheem.

  • Problem with MIGO

    I have a PO wich have been MIGO (mov 101). Then the reception has been cancelled but non valuated ( i dont know why because the WEUNB (Goods Receipt, Non-Valuated) wasnt fleagged).
    The problem is than i have the 101 valued and the 102 non valued.
    I have tried to make a 101 of the same PO no valuated and later cancell it valuated (modifiying table EKPO with se16n and puting the flag) But the cancellation has no value: So I have:
    102 value 0
    101 value 0
    102 value 0
    101 14.000
    How can i cancell the first the god recepit?
    reggards

    I cant because the All items of this document are already cancelled. Thats the problem, the document has been cancelled with no value (i dont know how can that happen) and now i have a not balance PO.
    regards+

  • PO check BADI problem

    Hi,
    I have this problem,
    When I use me21n to create a new PO everything looks fine until I've ended filling header. When I press save button I can save a document that has no items (that is bad) because before I get a popup with warnigns, errors, etc. I get a window with save/edit/abort where save is active.
    Any help?

    Hi
    Try this ->
    1) If you have activated versioning on PO, you can get modifications with BBP_PD_PO_GET_DIFF, using the different version GUIDs.
    Otherwise you can read usual change documents (see FM BBPCHANGE_DOC_GENERAL called when you display SC or PO changes)._
    You can also look for implementing the BADI "BBPVERSION_CONTROL"_
    2) Use the FM "BBPPROCDOC_GETDETAIL" which gives the value of the details entered in PO / SC which are already there in Database._
    3) You can use the function module BBPPD_PO_GET_DIFF_ , but any way you should have different guids for the original purchase order and changed purchase order.
    Some related pointers to go through ->
    BADI: BBP_WFL_EMPL_WI_BADI - Read change document
    Re: Get PO modifications?
    how to get PO modifications when no version history exists
    Hope this will help. Do let me know.
    Regards
    - Atul

  • BADI for tcode MIGO to disable FI Documents Button

    Dear All,
    I am new to SAP. Currently, I need to check out a requirement that whether the 'FI Documents'  Button(MIGO_OK_FI_DOC) in Tcode MIGO can be disabled using BADI. This is because they want to prevent the user from seeing the FI documents number.
    Please share with me if you know anything about this function.
    Thank you in advance.
    Regards,
    Shan

    Hey Shan,
      Can you please explain your requirtment exactly. So that we can help you to solve asap.
    Regards,
    Saravanan M

  • BDC PROBLEM for MIGO

    Dear all,
    there is problem in BDC MIGO report.  when i uploaded the p_file the bdc run but on some fields it gives the error message
    S Field GOITEM-ERFME . is not an input field
    S Field GOITEM-ERFMG . is not an input field
    S Field GOITEM-LSMNG . is not an input field
    S Field GOITEM-LSMEH . is not an input field
    S Field GOITEM-BWART . is not an input field
    S Field GOITEM-LGOBE . is not an input field
    S Field GOITEM-WEMPF . is not an input field
    S Field GOITEM-ABLAD . is not an input field
    S Field GOITEM-SGTXT . is not an input field
    these are all input fields and i defiend as
    perform bdc_field       using 'BDC_CURSOR'
                                  'GOITEM-ERFME'.
    perform bdc_field       using 'GOITEM-ERFME'
                                  IT_DATA-ERFME.
    perform bdc_field       using 'GOITEM-ERFMG'
                                  IT_DATA-ERFMG.
    perform bdc_field       using 'GOITEM-LSMNG'
                                  IT_DATA-LSMNG.
    perform bdc_field       using 'GOITEM-LSMEH'
                                  IT_DATA-LSMEH.
    *perform bdc_field       using 'GOITEM-MIGO_ELIKZ'
                                 '1'.
    perform bdc_field       using 'GOITEM-BWART'
                                  '101'.
    perform bdc_field       using 'GOITEM-LGOBE'
                                  IT_DATA-LGOBE.
    perform bdc_field       using 'GOITEM-WEMPF'
                                  IT_DATA-WEMPF.
    perform bdc_field       using 'GOITEM-ABLAD'
                                  IT_DATA-ABLAD.
    perform bdc_field       using 'GOITEM-SGTXT'              "
                                  IT_DATA-SGTXT.
    please solve my problem.
    Regards,
    Pankaj

    HI,
    May this will throw some light for u
    Geting problem in BDC prog of MIGO transaction
    Regards,
    Aditya

  • 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

  • BADI / EXIT in MIGO

    Hi
    We want to give some custom msg during document saving in MIGO.
    Can someone suggest a BADI or EXIT for this.
    Regards
    Vikas

    Hi,
    following  BAdi is available in MIGO, it can be used for creating custom tab,
    BADI     MB_MIGO_BADI                      BAdI in MIGO for External Detail Subscreens
    Use
    Application component: MM-IM-GR; MM-IM-GI
    With the Business Add-In (BAdI) MB_MIGO_BADI, you can extend the
    interface of the goods movements transaction (MIGO) with additional
    tabstrip controls for the detailed information (detail tabstrips) and
    header information (header tabstrips). It is possible for an external
    application
    o   to display an additional detail tabstrip with own subscreen (max. 10
        lines) in MIGO
    o   to display an additional header tabstrip with own subscreen (max. 3
        lines) in MIGO
    The program name, screen number and tab page text can be determined
    dynamically. Different screens can therefore be controlled according to
    the mode (for example, change mode, display mode, goods receipt, goods
    issue).

Maybe you are looking for

  • B1 Item to B1 Item scenario on B1if 8.8

    Hi there. I'm trying to develop a very simple task with b1if. My target is to get a B1 to B1 consolidation of Items. Any time a item is created or changed, it will be reflected in others sbo companies. So far, I've got a simple scenario with just one

  • How can I use a different Apple ID withthe App Store?

    When I access the App Store from my iPhone 3G it asks me to enter the password for an Apple ID. How can I use a different Apple ID with the App Store?

  • Web Server Crash..Error Code 52

    Hello, Web server crashed and keep getting an error code 52 any insight on why would be greatly appreaciated. Thanks! ===== BEGIN DUMP ============================================================= JRockit dump produced after 0 days, 00:48:31 on Thu J

  • Question about some packages in arch

    Hello Where do I report/ask about packages in arch *like in AUR there is a comment section* The reason is because well the package (sdl) didn't had PulseAudio support so I was wondering where to report it and KTorrents didn't bring any plug-ins with

  • Bug in iTunes Philosophy Podcasts

    The Philosophy Podcast section in iTunes (subcategory of Society and Culture) does not display properly. All other subcategories (history, etc.) display fine. There are no thumbnails, featured postings or top rankings - just text. This has been a pro