Skip to Content
author's profile photo Former Member
Former Member

MB1B User Exit , BAdi (Urgent)

HI all !!

What is the user-exit or BAdi which is triggered <b>after</b> saving (not <b>while</b> saving)a material document in t-code MB1B?

Handsome points will be rewarded.

Nikhil

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 07, 2007 at 06:43 AM

    This are all the available User-Exits and Badi's...Not sure what you need...

    Enhancement

    MB_CF001

    MBCF0011

    MBCF0010

    MBCF0009

    MBCF0007

    MBCF0006

    MBCF0005

    MBCF0002

    Business Add-in

    MB_RESERVATION_UPCHD

    MB_RES_BAPI_CHANGE

    MB_RES_BAPI_CREATE1

    MB_RES_BAPI_DETAIL1

    MB_STOR_LOC_BADI_GTS

    ARC_MM_EBAN_CHECK

    ARC_MM_EBAN_PRECHECK

    ARC_MM_EBAN_WRITE

    ARC_MM_EINA_CHECK

    ARC_MM_EINA_WRITE

    ARC_MM_INVBEL_CHECK

    ARC_MM_INVBEL_WRITE

    ARC_MM_MATBEL_CHECK

    ARC_MM_MATBEL_WRITE

    MB_RESERVATION_SCR

    MB_CHECK_LINE_BADI

    MB_CIN_LMBMBU04

    MB_CIN_MM07MFB7

    MB_CIN_MM07MFB7_QTY

    MB_DOCUMENT_BADI

    MB_DOCUMENT_BADI_SAP

    MB_DOCUMENT_UPDATE

    MB_DOC_BADI_INTERNAL

    MB_ME_CSGMT_BADI_SAP

    MB_MIGO_BADI

    MB_MIGO_ITEM_BADI

    MB_PHYSINV_INTERNAL

    MB_QUAN_CHECK_BADI

    MB_RESERVATION_BADI

    rEGARDS

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 07, 2007 at 06:50 AM

    Hi,

    Nikhil,

    U can try with BADI 'MB_MIGO_BADI'.

    If it is helfull pls reward pts.

    Regards

    Srimanta

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2008 at 01:12 PM

    Hi

    following exit handlers are available.

    CALL METHOD cl_exithandler=>get_instance

    CHANGING

    instance = mill_before_batch_cl.

    CALL METHOD CL_EXITHANDLER=>GET_INSTANCE

    EXPORTING

    EXIT_NAME = 'BADI_SERIAL_IN_STO'

    NULL_INSTANCE_ACCEPTED = 'X'

    CHANGING

    INSTANCE = lp_badi_serial_in_sto

    EXCEPTIONS

    others = 9.

    call method cl_exithandler=>get_instance

    changing

    instance = diad1_exit.

    CALL METHOD CL_EXITHANDLER=>GET_INSTANCE

    EXPORTING

    EXIT_NAME = 'MB_ME_CSGMT_BADI_SAP'

    NULL_INSTANCE_ACCEPTED = 'X'

    IMPORTING

    ACT_IMP_EXISTING = G_BADI_ACTIVE

    CHANGING

    INSTANCE = G_BADI.

    CALL METHOD cl_exithandler=>get_instance

    EXPORTING

    exit_name = 'MB_CIN_MM07MFB7'

    null_instance_accepted = x

    CHANGING

    instance = mb_grpopup.

    CALL METHOD cl_exithandler=>get_instance

    EXPORTING

    exit_name = 'MB_CIN_MM07MFB7_QTY'

    null_instance_accepted = x

    CHANGING instance = mb_grqty.

    CALL METHOD cl_exithandler=>get_instance

    EXPORTING

    exit_name = 'MB_DOCUMENT_BADI' "541292

    null_instance_accepted = x "541292

    CHANGING

    instance = mb_document_badi.

    CALL METHOD cl_exithandler=>get_instance

    EXPORTING

    exit_name = 'MB_DOCUMENT_BADI_SAP'

    null_instance_accepted = x

    CHANGING

    instance = if_mb_document_badi_sap.

    CALL METHOD cl_exithandler=>get_instance

    EXPORTING

    exit_name = 'MB_DOC_BADI_INTERNAL' "541292

    null_instance_accepted = x "541292

    CHANGING

    instance = mb_doc_badi_internal.

    CALL METHOD cl_exithandler=>get_instance

    EXPORTING

    exit_name = 'MB_QUAN_CHECK_BADI'

    null_instance_accepted = x

    CHANGING

    instance = if_badi_quan_check.

    CALL METHOD cl_exithandler=>get_instance

    EXPORTING

    exit_name = 'MB_CHECK_LINE_BADI'

    null_instance_accepted = x

    CHANGING

    instance = if_mb_check_li

    CALL METHOD cl_exithandler=>get_instance

    EXPORTING

    exit_name = 'MB_STOR_LOC_B

    null_instance_accepted = x

    CHANGING

    instance = if_mb_stor_loc

    CALL METHOD cl_exithandler=>get_instance

    EXPORTING

    exit_name = 'VB_S

    null_instance_accepted = 'X'

    IMPORTING

    act_imp_existing = s_bad

    CHANGING

    instance = s_bad

    EXCEPTIONS

    no_reference = 1

    no_interface_reference = 2

    no_exit_interface = 3

    class_not_implement_interface = 4

    single_exit_multiply_active = 5

    cast_error = 6

    exit_not_existing = 7

    data_incons_in_exit_managem = 8

    OTHERS = 99.

    call method cl_exithandler=>get_instance

    exporting exit_name = 'OIC_GR_REPRICE_CHECK' "R3E KH Performance #537844

    changing

    instance = reprice.

    CLASS CL_EXITHANDLER DEFINITION LOAD.

    regards

    Saurav

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2008 at 02:37 PM

    hi this will help u.

    REPORT z_find_userexit NO STANDARD PAGE HEADING.

    &----


    *& Enter the transaction code that you want to search through in order

    & to find which Standard SAP User Exits exists.&

    &----


    *& Tables

    &----


    TABLES : tstc, "SAP Transaction Codes

    tadir, "Directory of Repository Objects

    modsapt, "SAP Enhancements - Short Texts

    modact, "Modifications

    trdir, "System table TRDIR

    tfdir, "Function Module

    enlfdir, "Additional Attributes for Function Modules

    tstct. "Transaction Code Texts

    &----


    *& Variables

    *&----


    DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.

    DATA : field1(30).

    DATA : v_devclass LIKE tadir-devclass.

    &----


    *& Selection Screen Parameters

    &----


    SELECTION-SCREEN BEGIN OF BLOCK a01 WITH FRAME TITLE text-001.

    SELECTION-SCREEN SKIP.

    PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.

    SELECTION-SCREEN SKIP.

    SELECTION-SCREEN END OF BLOCK a01.

    &----


    *& Start of main program

    &----


    START-OF-SELECTION.

    • Validate Transaction Code

    SELECT SINGLE * FROM tstc

    WHERE tcode EQ p_tcode.

    • Find Repository Objects for transaction code

    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 = enlfdir-area.

    MOVE : tadir-devclass TO v_devclass.

    ENDIF.

    ENDIF.

    • Find SAP Modifactions

    SELECT * FROM tadir

    INTO TABLE jtab

    WHERE pgmid = 'R3TR'

    AND object = 'SMOD'

    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:/(95) sy-uline.

    FORMAT COLOR COL_HEADING INTENSIFIED ON.

    WRITE:/1 sy-vline,

    2 'Exit Name',

    21 sy-vline ,

    22 'Description',

    95 sy-vline.

    WRITE:/(95) sy-uline.

    LOOP AT jtab.

    SELECT SINGLE * FROM modsapt

    WHERE sprsl = sy-langu AND

    name = jtab-obj_name.

    FORMAT COLOR COL_NORMAL INTENSIFIED OFF.

    WRITE:/1 sy-vline,

    2 jtab-obj_name HOTSPOT ON,

    21 sy-vline ,

    22 modsapt-modtext,

    95 sy-vline.

    ENDLOOP.

    WRITE:/(95) sy-uline.

    DESCRIBE TABLE jtab.

    SKIP.

    FORMAT COLOR COL_TOTAL INTENSIFIED ON.

    WRITE:/ 'No of Exits:' , sy-tfill.

    ELSE.

    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.

    WRITE:/(95) 'No User Exit exists'.

    ENDIF.

    ELSE.

    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.

    WRITE:/(95) 'Transaction Code Does Not Exist'.

    ENDIF.

    • Take the user to SMOD for the Exit that was selected.

    AT LINE-SELECTION.

    GET CURSOR FIELD field1.

    CHECK field1(4) EQ 'JTAB'.

    SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).

    CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.

    with regards,

    Hema Sundara.

    reward if helpful.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.