MB_MIGO_ITEM_BADI

Hi
I want to set the storage location and item texts using MB_MIGO_ITEM_BADI. Any one can tell me coding used in method.

Hello Venkateswarao
Use of the single method ITEM_MODIFY is quite straightforward:
- use the information of IS_GOITEM and IS_GOHEAD to define which values you want to export in E_STGE_LOC (storage location) and E_ITEM_TEXT (item text), for example:
  IF ( is_goitem-... <condition ok>     AND
       is_goitem-... <condition ok> ).
    e_stge_loc  = <new storage location>.
    e_item_text = <new item text>.
  ELSE.
    e_stge_loc  = <default storage location>.
    e_item_text = <default item text>.  
  ENDIF.
Regards
  Uwe

Similar Messages

  • Read serial number in badi MB_MIGO_ITEM_BADI

    Dear all,
    I'm trying to read the serial number in the method item_modify for a MIGO.
    The structure which can be read in this BADI doesn 't contain the serial number. I searched on the forum, but doesn 't find some guidance. Someone who can help me ?
    thnx in advance !

    Hi Bjorn,
    I'm trying to do the same, which is to modify the serial number that was auto populated, you achieved this via an additional tab?
    Regards,
    Neesha

  • Unable to capture serial number in migo!

    dear all,
    i want to capture the serial numbers that i gave in MIGO transaction befor i save it to do some validation.
    i have tried with mb_migo_document badi but the serial numbers are not captured.
    is there any other way to capture serail numbers before i save the migo document?

    hi,
    check these badi.
    MB_MIGO_ITEM_BADI                       BAdI in MIGO for Changing Item Data
    MB_MIGO_BADI                            BAdI in MIGO for External Detail Subscreens

  • 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

  • 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

  • To BADI or not to BADI? That is the question.

    Hello friends,
    A question regarding BADIs. I've looked through the list of existing BADIs for transaction MB25 but could not find one that suited my purpose. So, does this mean I would have to create an insertion point myself? If so, do I have to edit and change SAP code or are there ways of getting around this touching SAP stuff?
    Your help is greatly appreciated
    GA

    Hi
    See the all related Enhancements and BADI's for MB25
    Do you really look into all these badi's for your requiremenet?
    check again?
                                                                                    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_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 a Material Document (SAP Internal)          
    MB_DOCUMENT_UPDATE                      BADI when updating material document: MSEG and MKPF             
    MB_DOCUMENT_BADI                        BAdIs when Creating a Material 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                                                                               
    Regards
    Anji

  • Need to do MIGO against PO instead of MIGO against Outbound Delivery

    Hi Experts,
    Inorder to avoid Manual errors, I am trying to do MIGO against PO, instead of MIGO against Outbound Delivery. The requirement is to fetch the Batch and Delivery quantity based on outbound delivery for a PO and populate with other PO details in MIGO tcode.
    I have tried using BADI's MB_MIGO_ITEM_BADI, however in Method ITEM_MODIFY, there is only importing parameter IS_GOITEM having PO details, batch and quantity. I need batch and quantity in the changing parameters of table type (useful for batch split purpose).
    In MB_MIGO_BADI, tried with LINE_MODIFY method. PO, batch and quantity are present in changing parameter CS_GOITEM (it is not of table type).
    I have written the logic for fetching the outbound delivery details (batch and quantity) based on PO, I need to know the place where to place it in MIGO.
    Thanks in Advance,
    Regards,
    Murthy.

    u can use line modify
    here is a sample below;
    CS_GOITEM-EXBWR is changed with  tp_dmbtr.
    sample:
    if cs_goitem-bwart eq '939'. "
          PERFORM f_get_material_value IN PROGRAM Zcl_item_harici_up
           USING    cs_goitem-matnr
                    cs_goitem-werks
                    cs_goitem-bwtar
           CHANGING up_DMBTR
                    zmtart.
          tp_dmbtr = tp_dmbtr + cs_goitem-menge * up_DMBTR.
    CS_GOITEM-EXBWR = tp_dmbtr.
    endif.

  • Control the goods issue(migo) on the basis of reservation number

    Dear All,
    I want to restrict the goods issue against the manual reservations.
    Logic:At the time of goods issue against the reservation system should check stock in hand(unrestricted stock)-all previous reservations.
    Eg:suppose unrestricted stock is 50kg
    Reservation 1 for 20 kg
    Reservation 2 for 30 kg
    Reservation 3 for 40 kg
    Reservation 4 for 10 kg
    When i do goods issue for Res :3
    System should check Uns Stock(50kg)-Previous Res(20kg+30kg)
    give error message stock insufficient.
    Waiting for the expert comment.
    Kind Regards,
    Sankar T

    hi,
    check these exits n badi's related to migo transaction.
    if u want to restrict by giving conditions u can do it using the exits n badi's.
    Transaction Code - MIGO                     Goods movement
    Enhancement/ Business Add-in            Description
    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
    ARC_MM_MATBEL_WRITE                     Archive AddOn-Specific Data for MM_MATBEL
    ARC_MM_MATBEL_CHECK                     Check AddOn-Specific Criteria for MM_MATBEL
    MB_CHECK_LINE_BADI                      BAdI: Check Line Before Copying to the Blocking Tables
    MB_PHYSINV_INTERNAL                     Connection: Core Inventory and Retail AddOn
    MB_RESERVATION_BADI                     MB21/MB22: Check and Complete Dialog Data
    MB_QUAN_CHECK_BADI                      BAdI: Item Data at Time of Quantity Check
    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 a Material Document (SAP Internal)
    MB_DOCUMENT_UPDATE                      BADI when updating material document: MSEG and MKPF
    MB_DOCUMENT_BADI                        BAdIs when Creating a Material 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_BATCH_MASTER                         Setting of Batch Data at Goods Movement
    reward points if hlpful.

  • MIGO - Blank out the Qty in unit of entry field on PO receipt

    Within MIGO upon PO receipt, standard behaviour is that it defaults Qty in unit of entry field to the total remaining outstanding qty.
    Customer has requirement to blank out the Qty in unit of entry field on PO receipt.
    We have looked at Business Add Ins for MIGO (e.g MB_MIGO_ITEM_BADI, MB_MIGO_BADI etc) and does not appear to be feasible.
    Does anyone know a way to do this ?
    Regards.
    Phil.

    Hi Joyce Roessner
    Could you please check in MB01 t-code & see quantity field is open for edit or not.
    This is controlled at Field selection & can be customised at fuctional level.
    Make GOITEM-MENGE as Input at follwoing path
    SPRO>MM>INv Mgmt & Phy Inv > Settings for enjoy trans>Settings for goods mvt(MIGO)>Field selection for MIGO
    Thanks,
    Mahesh

  • Automatic Goods Issue for Goods Receipt (Purchase Order).

    Hi,
    Experts - I have some newbee problem.
    I have to create ZMIGO to behave like follows:
    1. User enters all necessary data (like in MIGO) and posts document.
    2. System creates automatic Goods Issue document based on data entered in 1. (above).
    I doubt full automatic posting of GI will be possible (user has to fill in WBS for GI and possibly change "GI for project"). So my idea is to redirect user from ZMIGO (after posting) GR document to MIGO_GI and pass all necessary parameters. And thats my question: How to do it? Is it possible? Any other ideas? Maybe examples???
    Will reward points to all helpful answers.
    Regs,
    FS

    Hi,
    I've created implementation for MB_DOCUMENT_BADI in se19 (named it: ZMB_DOCUMENT_BADI_1). Filled methods with code and put some break-points. Activiated methods and implementation.
    When I post documents via MIGO this BADI is not executed! Why? When I've searched program SAPLMIGO for cl_exithandler only two were found: MB_MIGO_BADI and MB_MIGO_ITEM_BADI. What I have to do to activate this MB_DOCUMENT_BADI???
    Points waiting for helpful answers.
    REgs,
    FS

  • Migo Goods Receipt Purchase Order

    Hi all
    I have to clear ,in transaction Migo, the wbs elements ( only in certain cases ) .For that we ve created an user-exit in the program of Substitutions that clear the fields : cobl-ps_psp_pnr, cobl-mat_pspnr. But the two fileds are not cleared .
    the  user exit is this :
       IF ( V_BWARTWE = '101'  OR
            V_BWARTWE = '102'  OR
            V_BWARTWE = '122'  OR
            V_BWARTWE = '123' ).
          SELECT  SINGLE * FROM ekpo
                 WHERE ebeln = cobl-ebeln AND
                       ebelp = cobl-ebelp.
          check  EKPO-PSTYP EQ '3'.
          check  EKPO-KNTTP EQ 'Q'.
          cobl-kostl  = 'ZCL_PIENO'.
          CLEAR   cobl-ps_psp_pnr.
          CLEAR   cobl-mat_pspnr.
       ENDIF.
    the Field cobl-kostl   is correctly filled but the two fields wbs ar not clear .We used a program already used in an other project with the same logic,the only difference is the release : we are in 6.0
    can you Help me ?
    Thanks

    Hi,
    You can use these two badi's MB_MIGO_BADI, MB_MIGO_ITEM_BADI pick the proper one.
    i think item_badi will suit for your purpose.
    first create Z implementation for this definition and put break point in PBO detail method and chck which one is useful for you.
    regards
    Muthappan

  • Enhancement to make the first goods receipt as final(first and last for PO)

    Hello Experts,
    We have a business requirement wherein that only 1 goods receipt is allowed per purchase order. So meaning
    to say that no additional goods receipt will be allowed for a PO if it has already a goods receipt. I have checked
    BADIs like MB_MIGO_BADI, MB_MIGO_ITEM_BADI, etc but I can't change the value of the field ELIKZ which is the indicator
    for delivery complete.
    Any of you have done the same requirement of BADI/EXIT that I can use?

    Sorry - I don't mean the FIRST GR date, but the date when the batch was produced.
    thx,
    Jannik

  • Inserting/ deleting a line item in MIGO Transaction ( Goods Issue )?

    Hi,
    Can anyone help me with the logic for Inserting / deleting a line item in MIGO Transaction?
    Thanks,
    cs

    Hi
    The following user exits and badis for migo:
    Check the mb_migo_badi and check the method 'LINE_MODIFY' for u r purpose.
    For undestanding see the documentation of the badi and see the example implementation
    class: CL_EXM_IM_MB_MIGO_BADI
                                                                                    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 helpfu rewards points
    Regards
    Pratap.M

  • User exit or badi for FB03 to deactivating 'DELETE' button in attacmentlist

    Hi All,
    I have a requirement to put an authorization check on the 'DELETE' function in the attachment list of FB03 transaction.
    Meaning, if user is not authorized to delete, then he cannot delete the (link) attachment.
    Any user exits to do that enhancement.
    Thanks,
    Narsimha.

    Hi
    I believe there isn't a BADI or EXIT allows to change item data, I usually use the exit to change the item text EXIT_SAPMM07M_001 (the BADI MB_MIGO_ITEM_BADI should be the same thing) where I change the data by field-symbols:
    FIELD-SYMBOLS: <KOSTL> TYPE MSEG-KOSTL.
    ASSIGN '(SAPMM07M)MSEG-KOSTL' TO <KOSTL>.
    <KOSTL> = .......
    Max

  • User Exit or BADI for MIGO on entry of inbound delivery number

    Hi all,
    I want a user exit or BADI for MIGO, my requirement is that whenever a user enters an inbound delivery number and presses enter in MIGO the exit should get fired.
    Please help, if someone knows.
    Thanks and Regards,
    Mohammed.

    hi
    you can try out various BADI'S-
    MB_MIGO_BADI
    MB_MIGO_ITEM_BADI
    Helpful function modules:-
    MIGO_BADI_EXAMPLE
    MIGO_BADI_EXAMPLE_GET_DATA
    MIGO_BADI_EXAMPLE_GET_HEADER
    MIGO_BADI_EXAMPLE_PUT_DATA
    MIGO_BADI_EXAMPLE_PUT_HEADER
    MIGO_BADI_EXAMPLE_UPATE_DATA
    MIGO_BADI_EXAMPLE_UPDATE_HEAD
    I hope at least one of these helps.
    regards
    Aakash

Maybe you are looking for

  • Not able to start Saprouter from services.msc

    Hi, We have installed a saprouter into Windows 2003 Server. It is running fine. When we start the system then we need to manually start the saprouter by a batch file, so i am trying to register a service so that we need not to start the router manual

  • Choosing a midi keyboard for garage band

    Hi All, I am buying my daughter a keyboard and would like to ensure that when she gets her new Mac taht it will work. I am looking at the Yamaha YPT200 or the Casio CTK-800 If anyone has some experience with these and can offer feedback that would be

  • How can i open a ".exe" files?

    I can't open files in ".exe" Could someone help me?

  • OUI-10151:There was an error while loading library: globalVarQueries

    Hi, I am installing Oracle Database 11g version 11.1.0.6.0 on RHEL 5.3 x64. After completing all the requirements & pre-reqs, when the installation starts it throws the following error : OUI-10151:There was an error while loading library: globalVarQu

  • SMS character count? Does the iphone have one?

    Is it possible to see a character count for SMS's? i.e. on other phones, as you type, it tells you how many characters you have typed or have left, so you can ensure that you aren't needlessly sending 2 txts instead of 1?