BADI/EXIT for MIGO Tcode..

Hi all,
When am creating GR for a PO, i want to raise a pop up when the batch is REJECTED.
any one help me in solving this issue..?
thanks

am using the method POST_DOCUMENT,
am writing the code like..
sample code..
DATA: wa_mseg type mseg,
wa_mch1 type mch1,
wa_ausp type ausp.
loop at it_mseg into wa_mseg.
*select single * from mch1 into wa_mch1 where matnr = wa_mseg-matnr*
                                                           and charg = wa_mseg-charg.
if sy-subrc is initial.
*select * from ausp into wa_ausp where objek = wa_mch1-cuonj_bm*
                                               and klart = '023'.
if sy-subrc is initial.
if wa_ausp-atwrt EQ 'ACCEPTED'.
continue.
else.
if wa_ausp-atwrt EQ 'REJECTED'.
call function 'popup_to_display_text'.
endif.
endif.
endif.
endif.
endloop.
when i debug ,i find no data in the mch1 table ..
any help..
thanx

Similar Messages

  • Need a BADI/ exit for MIGO transaction

    Hi,
    I need a BADI / exit for tha transaction MIGO. My requirement is before displaying the materials in the item tab, check whether the user has authorization for that material or not. If he has no authorization, give error message. This should be done for all types of documents.
    Please let me know if you need more information.
    thanks,
    Kishore

    hi,
    You can have the authorization for the inventory management via authorisation..
    Check the path: SPRO --> MM --> Purchasing --> Inv. management nad physical inventory --> Authorization management  --> Maintain roles and assign users....
    Regards
    Priyanka.P

  • BADI/EXIT for MIGO for accounting  document posting

    Hi
    I am using MIGO where SAP post Mat Document and Accountying document.
    This Uses FM  'MB_POST_GOODS_MOVEMENT  < Include LMIGOKG1>, once this FM executed both MKPF and BKPF data gets filled . I can see tha data for MKPF in debug but I am not able to see data for Accounting Document.Even I cant see the Acc. document no assigned by SAP
    I need to change some fieds for Acc. Document <BSEG-VBUND>
    Can any one help me to find in which structure or table I can get data for Accounting document

    am using the method POST_DOCUMENT,
    am writing the code like..
    sample code..
    DATA: wa_mseg type mseg,
    wa_mch1 type mch1,
    wa_ausp type ausp.
    loop at it_mseg into wa_mseg.
    *select single * from mch1 into wa_mch1 where matnr = wa_mseg-matnr*
                                                               and charg = wa_mseg-charg.
    if sy-subrc is initial.
    *select * from ausp into wa_ausp where objek = wa_mch1-cuonj_bm*
                                                   and klart = '023'.
    if sy-subrc is initial.
    if wa_ausp-atwrt EQ 'ACCEPTED'.
    continue.
    else.
    if wa_ausp-atwrt EQ 'REJECTED'.
    call function 'popup_to_display_text'.
    endif.
    endif.
    endif.
    endif.
    endloop.
    when i debug ,i find no data in the mch1 table ..
    any help..
    thanx

  • Field Exit For Migo Badi

    Hi to all experts,
    I need to assign F4 help to a headertext field for MIGO tcode . I have searched all the exits but couldnt find field exit for it. What are the different options fulfilling this requirement.Please help me out

    Hi,
        The following are the enhancement/Business Add ins,  Please use the appropriate exit for your requirement
      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
    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

  • BADI or Exit for MFBF Tcode

    Hi Experts,
    I need to do difference calculation in posting date and document date. I have made the code but not able to find exact BADI or exit for MFBF tcode.
    BADI i searched - RM_BFLUSH_GOODSMVT
    EXIT ???
    Please suggest, where I have to put below code so that when user put dates into this, then it will not allow him to get more than 7 days.
    data:  d_days like po347-scrdd,
         budat like mkpf-budat,
         bldat like mkpf-bldat.
    budat = rm61b-budat.
    bldat = rm61b-bldat.
    CALL FUNCTION 'DAYS_BETWEEN_TWO_DATES'
      EXPORTING
        I_DATUM_BIS                   = budat
        I_DATUM_VON                   = bldat
       I_STGMETH                     = '2'
    IMPORTING
       E_TAGE                        = d_days
    if d_days > 7 .
      message 'date exceeds' type 'E'.
      elseif d_days < 0.
      message 'document date should be greater than posting date' type 'I'.
    endif.
    Please suggest experts,
    Thanks.
    Deepanshu

    Hi,
    Include - LBARMFS1
    FORM - FORM get_hr_data .
    Create a implicit enhancement in the beginning of above mentioned form FORM get_hr_data and put below code inside that.
    FORM get_hr_data.
    ENHANCEMENT 1 ZTEST_TEST.
    data:  d_days like po347-scrdd,
         budat like mkpf-budat,
         bldat like mkpf-bldat.
    budat = rm61b-budat.
    bldat = rm61b-bldat.
    CALL FUNCTION 'DAYS_BETWEEN_TWO_DATES'
      EXPORTING
        I_DATUM_BIS                   = budat
        I_DATUM_VON                   = bldat
       I_STGMETH                     = '2'
    IMPORTING
       E_TAGE                        = d_days
    if d_days > 7 .
      message 'date exceeds' type 'E'.
      elseif d_days < 0.
      message 'document date should be greater than posting date' type 'I'.
    endif.
    ENDENHANCEMENT.
    BR,
    Vijay

  • EXIT for MIGO and MB01

    Hello,
    I need to find a BADI or USER-EXIT for MIGO and MB01 at the time of posting, to store in table BSEG fields ZBD1T LIFNR ZTERM the table EKKO.
    I found User-exits several but none contains the BSEG as output instead contains MSEG and the MKPF which I serve.
    Someone can help me?
    Thanks
    Diego

    Try this BTE  00001120
    link:
    Fill in BSEG-ZUONR with PO BEDNR field
    Thanks,
    AMS

  • How to create user exit for MIGO check  "item OK" Field select/unselect?

    Hi All,
       I want to know User Exit for MIGO Screen. when I click check button it will be show "Item OK " Field select or not.
    MIGO Screen post if Item ok field select both parent id and line id . otherwise it will be show error message?.
    Can Please  every one tell me how to do user exit for MIGO?
    mail id: [email protected]
    thanks,
    S.Muthu,

    Hi,
    check the BADI <b>MB_MIGO_BADI</b> ( method: POST_DOCUMENT).
    COMD enhancment <b>MBCF0005</b>
    Regards

  • User-exit for MIGO, need change GKONT for CO

    Good evening,
    Dear friends, sorry for my english.
    I have made user-exit for MIGO in GGB1 and put on it in SPRO.
    I have HKONT=V3100* and corresponding HKONT=1551*( OBYC, group WRX).
    Then i run MIGO and make Purchase Order.
    In my user exit, if HKONT of first position eq V3100, i must change corresponding HKONT from 1551 to V1551*.
    When i make Order, i am run view documents: FI and other HKONTs changed successfully! ( first possition has V3100, second - V1551).
    User-exit must work only with sy-tcode = MIGO or MIRO.
    But CO documens NOT changed: HKONT(type of cost) eq V3100, but corr GKONT = 1551*...
    I also try to use OPEN FI, but have the same picture... (in CO docs V3100* and 1551, but all another docs and FI too - V3100 and V1551*).
    I see, that GKONT has only COEP. And this table a cannot see in user-exit.
    I think, that FI doc must do CO doc,
    but why in
    View documents->RW-infodocs->documents CO = it is not change?
    Please, answer me? if you can. regards.

    Please, view Print-Screen of my problem:
    <a href="http://rodendron.blogspot.com/2007/07/user-exit-for-migo.html">http://rodendron.blogspot.com/2007/07/user-exit-for-migo.html</a>
    Anybody can help?

  • User Exit for MIGO Save

    Hi Gurus,
    I am looking for user exit for MIGO transaction.  User exit should be given after saving the material document & I need this document number for carrying out some updations.
    regards,

    Hi
    You need to use the BAdi MB_DOCUMENT_BADI.
    This BAdi has two methods
    MB_DOCUMENT_BEFORE_UPDATE
    MB_DOCUMENT_UPDATE
    The method MB_DOCUMENT_BEFORE_UPDATE is called up before the FI document is created. This means that it is called up even if the program is terminated by an error during the subsequent processing. The update of data in separate tables should always be contained in function modules that are called up with the addition 'in update task'. This ensures that all the data is updated consistently.
    The method MB_DOCUMENT_UPDATE is not carried out until update. This means that all updates are carried out immediately in their own tables and do not have to be contained in 'update task' in function modules. For performance reasons, you should not re-read the tables or carry out any time-consuming routines at this point.
    You should always call up MB_DOCUMENT_BEFORE_UPDATE before MB_DOCUMENT_UPDATE, particularly if time is a critical factor when posting the material documents. The method MB_DOCUMENT_UPDATE is processed after the FI document numbers are called. As a result, no other FI documents can be posted until this document is completely updated.
    hope this helps...
    Thanks & Regards
    Kishore

  • User exit for qa11 tcode

    Hi,
    i want to know which is relevant user exit for qa11 tcode while saving the data.

    Hi ricx,
    Check the below exits.
    Transaction Code - QA11                     Record usage decision
    Enhancement/ Business Add-in
    Description
    Enhancement
    QSS10001
    Possibility of calling a different print report
    QLCO0001
    QM: Call alternative costs report from UD
    QEVA0010
    UD: Usage decision check
    QEVA0009
    UD: Predefinition of quantity to be posted to sample stock
    QEVA0008
    Usage decision: Customer function key (e.g. to cancel UD)
    QEVA0007
    UD: Control of compulsory comment or long text presetting
    QEVA0006
    Entry to usage decision transactions
    QEVA0005
    User subscreen for displaying add. data for usage decision
    QEVA0004
    Exit for changing information line in usage decision header
    Business Add-in
    QEEM_OPER_ADDON
    Functional Enhancements - Results Recording Operation Level
    QEVA_ADDON_TAB
    Include Tab Page for Operation Completion
    QEVA_ALT_QTY_INPUT
    BAdI for Input Help for Quantities in Usage Decision
    QEVA_SUBSCREEN_1101
    VE: BAdI Subscreen for Display of Data on Screen 1101
    No.of Exits:          9
    No.of BADis:          4
    Regards
    Karthik D

  • Any standarad badi exits for tranction for bp ie in crm

    any standarad badi exits for chnaging or writing code in sap-crm standard tranction bp(busness patner) tr code is bp

    hello,
    BP is BDT (Business Data toolset) enabled (you can check it by adding break point in FM BUS_PBO and executing BP transaction). You can add your check directly to standard view (the check will be executed each time when user pushes enter) or you could add you check to appropriate action (during saving etc.) there are number of actions which you could use it depends on your requirements. You can find a lot of info about BDT (if you are not familiar) in Wiki.
    br,
    dez_

  • User Exit for MIGO (goods receipt and goods issue)

    Hi all ,
    When i create a cross company goods receipt or goods issue through MIGO,I need to add another line item to the accounting documents posted with the sales tax calculated.For this i need to use a user exit which adds another line item.
    Can someone suggest me the user exit which i need to use ?
    any input would be of great help.
    Thanks,
    nsp.

    Hi
    Available exits for MIGO are
    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
    You would hav to search through these.
    Hope this helps to solve ur problem....
    <b>do reward if useful....</b>
    regards
    dinesh

  • BADI/EXIT for FB60 Save document

    Hi All,
    I need to perform certain custom checks and save custom date in FB60 transaction.
    Please let me know the BADI/EXIT for header check and save document badis in FB60 transaction.
    Thanks and Regards,
    Vijay

    Hi,
    Could any of these exits be useful for you..??
    F050S001            FIDCMT, FIDCC1, FIDCC2: Edit user-defined IDoc segment 
    F050S002            FIDCC1: Change IDoc/do not send                        
    F050S003            FIDCC2: Change IDoc/do not send                        
    F050S004            FIDCMT, FIDCC1, FIDCC2: Change outbound IDoc/do not send
    F050S005            FIDCMT, FIDCC1, FIDCC2 Inbound IDoc: Change FI document
    F050S006            FI Outgoing IDoc: Reset Clearing in FI Document        
    F050S007            FIDCCH Outbound: Influence on IDoc for Document Change 
    F180A001            Balance Sheet Adjustment                               
    FARC0002            Additional Checks for Archiving MM Vendor Master Data  
    RFAVIS01            Customer Exit for Changing Payment Advice Segment Text 
    RFEPOS00            Line item display: Checking of selection conditions    
    RFKORIEX            Automatic correspondence                               
    SAPLF051            Workflow for FI (pre-capture, release for payment)
    Thanks

  • Help on USER EXIT for MIGO

    Hi friends,
    Facing problem in USER EXIT for MIGO...
    My requirement is...
    I want to give a error message for good issue or  it should not be posted in MIGO, if the Item OK check has not been made for all the available materials corresponding to Order no while posting goods issue.
    the structure and field names are: GODYNPRO-DETAIL_TAKE
    i.e., If the user omits to do the item-check for any materials while posting Good issue(after the Production order made),one popup(error) message will come/display b4 posting the document (by way to alert him).
    If anyone have solution or worked on this previously...pls post ur example by reply or let me know which is the corresponding USER EXIT to include my coding part.
    I've tried in MB_CF001 and MBCF0005 and its not working.
    Pls do the needful at the earliest.
    Thanks & regards
    sankar.

    Hi
    I hv same req. did u found correct exit?
    thanks

  • User exit for MIGO - Change on Posting A/C Code Upon Saving.

    Hi,
    I have a requirement to to split the GR/IR clearing account during the posting of goods receipt in MIGO by filled in BSEG-HKONT with specify a/c code (hard coded).
    I'm not able to find any user exit to change the value in BSEG-HKONT
    while click on save.
    Is there any suggestion on it?
    Thanks.

    Hi ,
    Try with the following User Exits for MIGO.
    MB_CF001  Customer Function Exit in the Case of Updating a Mat. D
    MBCF0002  Customer function exit: Segment text in material doc. i
    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_CREA
    MBCF0011  Read from RESB and RKPF for print list in  MB26
    Thanks,
    SVREDDY

Maybe you are looking for

  • HDMI Out From 27inch iMAC No Longer Has Audio Post Mavericks Upgrade

    After upgrading to Mavericks my Mini Displayport->HDMI out is no longer outputting audio. Is this happening to anyone else?  Any line on a solution?

  • User Exit for getting Purchase Requisition Release Strategy

    Hi Experts, When a user creates a PR I need to know the user exit I need to implement so that the First Approver (Processor) text  in the Release Strategy is populated from a custom table. I have seen that the field is MEREL_S_GRID1-STEXT. I also nee

  • WD-Element TABLE Setting 1st Row

    Hello, in WD(ABAP) I use a TABLE-Control. It is bind to a node. The node is bind to a internal table with a lot of entries. Now I want ro show the Rows beginning at specific row , greater than 1 at startup-time. The example should show the rows 30 to

  • Which data source will suit

    Hi all, I need to work on conversion of plan order to production order blue print in PP.Could you please suggest me which below data source is suits for particlar rek. 2LIS_04_PEARBPL 2LIS_04_PECOMP 2LIS_04_PEMATNR 2LIS_04_P_ARBPL 2LIS_04_P_COMP 2LIS

  • SO 8 Win & OOo 2.0 B Linux

    Note: This post probably has to do with issues of incompatibility which go beyond Writer. For a long while, I have used SO 7 on both Windows 98 SE and Mandrake Linux 10.1. No trouble, in either, reading files written on the other: except that some fo