User-exit in MIGO (before posting)

Hi, everybody!
We are trying to prevent the creation of PR documents (table BKPF-field BLART; it looks like those documents are created because of material revaluation in case there is shortage of stock) in goods issue using MIRO transaction.
In case that kind of document is going to be created, a pop-up message will be shown on screen and prevent the creation.
Is there any user exit (or badi) that could allow us doing that before posting?
Thanks in advance.
Regards,
J Madariaga

Hi J,
you can go for a BADI.
You can define one in transaction SE19 using Interface IF_EX_MB_DOCUMENT_BADI.
Have a look at the documentation of MB_DOCUMENT_BADI in transaction SE18.
Methods:     
MB_DOCUMENT_BEFORE_UPDATE
MB_DOCUMENT_UPDATE
Best,
Ralf

Similar Messages

  • 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

  • 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

  • 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

  • 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

  • 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

  • The user exit on the sap post the account document

    Dear all.
       I use the t-code mb01 or migo to receipt goods for purchase order.When I execute post or save,the sap generate the material document and the account document.The account documents have two item with account 12110000 and account 12010000.And I know this two account was configure in the t-code omwb.
       Now my company have a new requirement:
       When the sap generate the account documents,I need to write some code to do some judgement and change the account 12110000 to account 35510000 or other account.The logic of the code was complex and it's impossible to do in sap standard configure.So I want to find the user exit on the sap post the account document.In the user exit I would write some code to do some judgement and change the account 12110000 to account 35510000 or other account.
      But I can't found the user exit.So I need the experts to give me some reference.
    Regard
    Yoda

    Hi,
    You may use ZXF48U01 of EXIT_SAPLF048_001 of enhancement F180A001 for the same.
    Please note that control comes here for no of transactions hence you need to specifically check for sy-tcode, for which your 'exit' logic needs o be executed.
    I hope this helps,
    Regards
    Raju Chitale

  • User Exit or BADI while posting GRs.

    HI all,
    I am looking for a User Exit or BADI while posting Goods Receipts for Purchase Orders.
    I need to change the <b>POSTING DATE</b> on the receipt for certain document types.
    i found a user exit : MB_CF001, but this is not allowing me to change the posting date on the material document.
    Thanks for your help in advance.

    Hi Ravi,
                      This is ULitity program which takes Tcode or program name as a input and gives the BADI existing in the program. Please Allocate me the point if it is usefully to you
    REPORT ZBADI_CHECK .
    TABLES : TSTC,
    TADIR,
    MODSAPT,
    MODACT,
    TRDIR,
    TFDIR,
    ENLFDIR,
    SXS_ATTRT ,
    TSTCT.
    DATA : JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
    DATA : FIELD1(30).
    DATA : V_DEVCLASS LIKE TADIR-DEVCLASS.
    PARAMETERS : P_TCODE LIKE TSTC-TCODE,
    P_PGMNA LIKE TSTC-PGMNA .
    DATA wa_tadir type tadir.
    START-OF-SELECTION.
    IF NOT P_TCODE IS INITIAL.
    SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
    ELSEIF NOT P_PGMNA IS INITIAL.
    TSTC-PGMNA = P_PGMNA.
    ENDIF.
    IF SY-SUBRC EQ 0.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'PROG'
    AND OBJ_NAME = TSTC-PGMNA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    IF SY-SUBRC NE 0.
    SELECT SINGLE * FROM TRDIR
    WHERE NAME = TSTC-PGMNA.
    IF TRDIR-SUBC EQ 'F'.
    SELECT SINGLE * FROM TFDIR
    WHERE PNAME = TSTC-PGMNA.
    SELECT SINGLE * FROM ENLFDIR
    WHERE FUNCNAME = TFDIR-FUNCNAME.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'FUGR'
    AND OBJ_NAME EQ ENLFDIR-AREA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    ENDIF.
    ENDIF.
    SELECT * FROM TADIR INTO TABLE JTAB
    WHERE PGMID = 'R3TR'
    AND OBJECT in ('SMOD', 'SXSD')
    AND DEVCLASS = V_DEVCLASS.
    SELECT SINGLE * FROM TSTCT
    WHERE SPRSL EQ SY-LANGU
    AND TCODE EQ P_TCODE.
    FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
    WRITE:/(19) 'Transaction Code - ',
    20(20) P_TCODE,
    45(50) TSTCT-TTEXT.
    SKIP.
    IF NOT JTAB[] IS INITIAL.
    WRITE:/(105) SY-ULINE.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    Sorting the internal Table
    sort jtab by OBJECT.
    data : wf_txt(60) type c,
    wf_smod type i ,
    wf_badi type i ,
    wf_object2(30) type C.
    clear : wf_smod, wf_badi , wf_object2.
    Get the total SMOD.
    LOOP AT JTAB into wa_tadir.
    at first.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 'Enhancement/ Business Add-in',
    41 SY-VLINE ,
    42 'Description',
    105 SY-VLINE.
    WRITE:/(105) SY-ULINE.
    endat.
    clear wf_txt.
    at new object.
    if wa_tadir-object = 'SMOD'.
    wf_object2 = 'Enhancement' .
    elseif wa_tadir-object = 'SXSD'.
    wf_object2 = ' Business Add-in'.
    endif.
    FORMAT COLOR COL_GROUP INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 wf_object2,
    105 SY-VLINE.
    endat.
    case wa_tadir-object.
    when 'SMOD'.
    wf_smod = wf_smod + 1.
    SELECT SINGLE MODTEXT into wf_txt
    FROM MODSAPT
    WHERE SPRSL = SY-LANGU
    AND NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
    when 'SXSD'.
    For BADis
    wf_badi = wf_badi + 1 .
    select single TEXT into wf_txt
    from SXS_ATTRT
    where sprsl = sy-langu
    and EXIT_NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED ON.
    endcase.
    WRITE:/1 SY-VLINE,
    2 wa_tadir-OBJ_NAME hotspot on,
    41 SY-VLINE ,
    42 wf_txt,
    105 SY-VLINE.
    AT END OF object.
    write : /(105) sy-ULINE.
    ENDAT.
    ENDLOOP.
    WRITE:/(105) SY-ULINE.
    SKIP.
    FORMAT COLOR COL_TOTAL INTENSIFIED ON.
    WRITE:/ 'No.of Exits:' , wf_smod.
    WRITE:/ 'No.of BADis:' , wf_badi.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'No userexits or BADis exist'.
    ENDIF.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'Transaction does not exist'.
    ENDIF.
    AT LINE-SELECTION.
    data : wf_object type tadir-object.
    clear wf_object.
    GET CURSOR FIELD FIELD1.
    CHECK FIELD1(8) EQ 'WA_TADIR'.
    read table jtab with key obj_name = sy-lisel+1(20).
    move jtab-object to wf_object.
    case wf_object.
    when 'SMOD'.
    SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
    CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
    when 'SXSD'.
    SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
    CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
    endcase.

  • Is there any user exit in IW54 before document saving?

    Dear experts,
    Is there any user exit in IW54 before document saving? I want to check some data before saving.
    thanks
    Lance

    Or BADI NOTIF_EVENT_SAVE (Change When Saving Notification)
    PeteA

  • User exit for MIGO transaction

    I'm checking for user exit in Migo transaction
    what I want to do is when I enter the PO# and try to save all the details ,it must trigger a pop-up(customized transaction) thru USEREXIT.
    Thanks in advance.

    Hello Hema
    These are the "old" customer-exits on ECC 5.0:
    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.
    Regards
      Uwe

  • 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 and MIRO to change the GL account posting

    Hiiii
    I have a flow like this .
    When i create a PO --> i do a Goods receipt in MIGO transaction and there is a GR automatic posting that is done in backgroung
    i needa user exist which instead of sap doing the standard posting in let's a GL account No i want sap to use the Gl account No XXX
    When is then do a Invoice receipt instead of an IR posting will also be done.  I need a user exit where instead of using the GL account of the standard i use the GL account XXX
    please advise which user exit i can use.

    HI newbye82c,
    have a look at these exits/badi:
    Enhancement                                                                               
    MBCF0010                                Customer exit: Create reservation BAPI_RESERVATION_CREATE1    
    MBCF0011                                Read From RESB and RKPF For Print List in  MB26               
    MBCFC003                                Maintenance of batch master data for goods movements          
    MBCFC004                                Maintenance of batch specifications for goods movements       
    MBCFC012                                Set Cycle Counting Factory Calendar                           
    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                                                                               
    Business Add-in                                                                               
    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                                                 
    Hope it helps,
    Matteo

  • User exit for MIGO Posting Date

    Dear all,
    My Client want requirement is : Posting date of GRN should be after last posting date of goods issue
    i.e.  GI                261  1st june
           GI Reverse 262   2nd june
    again  GI 261  28 may   ( as 2 posting perod are open )
    then user should be able to do GRN on or after 28th may
    For this user exit please suggest me any FM or logic
    my current logic is allowing to post GRN after 1st june i.e. latest GI date  but that is not matching client requirement
    Please suggest
    Regards,
    Ishwar

    Hi,
       Enhancement for MIGO ,you can try these user exit
    MB_CF001-->  Customer Function Exit in the Case of Updating a Mat. Doc.
    MBCF0002 --> Customer function exit: Segment text in material doc. item
    MBCF0005 --> Material document item for goods receipt/issue slip
    MBCF0007  -->Customer function exit: Updating a reservation
    In BADI,you can refer these
    MB_CIN_LMBMBU04--> posting of gr
    .In MKPF table having data (posting date of goods issue) BUDAT-field name,tell the conditions as per your requirement to ABAPer,they can implement the enhancement as per your requirement...
    I hope,it will help you
    <=<< Sharing Knowledge is a way to Innovative >>=>
    By,
      Yoga

  • User exit in MIGO when check is pressed

    Hi I'm working on 4.6b
    I checked the program thru which we get user exits from transaction
    My problem here is I want to display pop up when check button is pressed in MIGO transaction.
    Can anyone suggest any user exit....
    Thanks in advance
    Hema.

    hi hema,
    you can use the badi
    Badi MB_MIGO_BADI is used for adding new subscreen ( User defined subscreen )in the Migo transaction
    i donno weather it exists in ur verson r not?
    you can also check....
    You can use exit EXIT_SAPMM07M_001.
    This exit is executed before the document is posted.
    Also you can use exit EXIT_SAPLMBMB_001 after the document has been posted.
    ~~Guduri

  • USER EXIT ABOUT MIGO

    Pls tell me about step by step procedure in user exit for MIGO

    hi
    manpreet
    just follow tis this may help u.
    tcode->> MIGO...in memu bar select SYSTEM--->STATUS...
    now u wil get a pop up ..double click on the program name.........u wil get a program.....use find option (ctrl F)and find
    CL_EXITHANDLER=>GET_INSTANCE
    u wil get the line where this syntax is used.....
    double click on that.....there u wil find
    call method cl_exithandler=>get_instance
    exporting
    exit_name = 'MB_MIGO_ITEM_BADI'
    null_instance_accepted = x
    changing
    instance = if_badi_item.
    endmethod. "class_constructor
    now double click on the if_badi_name...it wil give
    the instance name....
    if_badi_item type ref to if_ex_mb_migo_item_badi.
    now the badi name is mb_migo_item_badi.....the instance wil just contain the addition if_ex to the badi name....
    goto se 18 transaction give the badi name...and in menu bar select implementation display/change......u wil goto the implentation screen.....
    then select the INTERFACE tab and double click on themethod...and write u r code there..........
    _some another badi for  migo**_
    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 when Creating a Material Document
    MB_DOCUMENT_UPDATE ..........BADI when updating material document: MSEG and MKPF
    MB_MIGO_BADI .........................BAdI in MIGO for External Detail Subscreens
    MB_MIGO_ITEM_BADI ................BAdI in MIGO for Changing Item Data
    MB_RESERVATION_BADI............MB21/MB22: Check and Complete Dialog Data

Maybe you are looking for

  • How do I create stationary in mail

    I have been trying to get stationaries to work in 10.7 Mail.  Here is what I have so far... 1) I created a draft message with the desired format for my stationary. 2) I used the File menu's "Save as Stationary" item. The new stationary is present whe

  • Database performance Reports

    Hi all, Can anybody give me any link from where i can genrate good report for Oracle 9i Db on RHEL

  • Path from _mc to array in root

    I have in root this array            var array1: Array = new Array ('xxx', 'xxx', 'xxx', 'xxx', 'xxx', 'xxx'); from mc1.mc2, I need to refer to that array I tried the. mc1:               var array2: Array = new Array (MovieClip (root). array1); but i

  • Where is my FaceTime icon

    My face time icon is no longer on my home page. How do I retrieve it?

  • Foreign trade data is incomplete for the line item eg 70!

    Dear Sapients, I have encountered an issue related to invoice while releasing it to accouting. The invoice is done for several line items but the problem is faced for one line item only, could any one suggest the possible solution please. Regards. Ko