BADI/EXIT for MM41/MM42

Hello,
I looking out for a screen BADI or EXIT for the transaction MM41/MM42 (SAP IS RETAIL). I would like to add 2 customer fields on the basic data view.
Thanks,
Raj.

HI Raj,
Copy and paste the code below. very useful program to see the loist of available User Exits and Badi for a Tcode.
Below code will give a list of BADIs for particular transaction.
*& Report ZNEGI16 *
REPORT ZNEGI16 .
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.
<b>Reward points if this helps.
Manish</b>

Similar Messages

  • 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_

  • 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

  • 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

  • What to do if there is no relavent BADI/EXIT for standard transaction

    Hi,
    Can any one say,What to do if there is no relavent BADI/EXIT for standard transaction.
    Helpful Answer will be rewarded.

    SAP provide some hooks to add our code to the standard program. This is what we called enhancement.
    It has following types:
    1. Personalization ( here the fields can be hide, display only etc. )
    2. Customer Exit ( Function module Exit, Menu Exit and Screen Exit )
    3. BTE
    4. BADI( Function module Exit, Menu Exit and Screen Exit )
    5. User Exit
    Suppose all these are not helpful, then you could create the code from scratch. But it is too difficult to develop because of its complexity.
    So what you can do is get SAP access key and change the code in the standard program. This is called as modification. Advantage of Enhancement and modification is whenever there is a new version come the changes made by us in standard code will be attached in the newer version also. 
    The final way is copy the source code into customer namespace and make changes according to your criteria. Eg. in the standard PO creation if you do like this, several disadvantages are the user has to give a new t.code, BASIS guy has to restrict the standard PO create T.code and you can't avail the new features of future versions.
    Hope this gives you complete picture and solution.

  • BTE/BADI/EXIT for F110

    Hi gurus,
    Can you please give me the BTE / BADI / Exit for F110. Because I have to change the value for BSEG-AUFNR (Order Number) into Blank.
    Thanks gurus.

    Hello,
    how is it that you can see the order number and i.e. i cant?
    What is the configuration?
    best Regards
    Laurynas Prikockis

  • Userexit or BADI for MM41/ MM42 article create/change

    Hi Experts,
    My requirment is do some validations for custome fields before save the article while create or change. Please let me know any user exit and BADI's for suitable for my requirment. The user exit and BADI should be execute when i create/change article through BAPI. & handle errors. How to handle error in BADI without throw error message to GUI screen.
    <removed by moderator>
    Thanks
    jayabanda
    Moderator message: please do more research before asking, show what you have done yourself when asking.
    [Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
    [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]
    Edited by: Thomas Zloch on Aug 25, 2011 11:13 PM

    Hi Jonathan,
    Appreciate your reply. As you know the validations kick in based on your input on the screen, kind of mostly part of PAI of the screen (0750 in this case). But my requirement is to prevent this change in the first place, not validating the user's input after a change option is given to the user.
    If you know if and how we can achieve this, please share your thoughts.
    Thanks & Regards,
    Venu

  • BADI/EXIT for changing line items (F-02)

    Hi All,
    I want to know any BADIs/EXITs which allow changing of G/L line items in transaction f-02. I have tried substitution it does not work for my requirement.
    My requirement is copying of PRCTR from offset line item to the Vendor/customer line item which always appears as line item 001.
    Thanks,
    Preetham S

    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
    FEDI0001            Function Exits for EDI in FI
    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)

  • BADI/Exit for transaction FB05/F-36

    Can anybody help me regarding exit/BADI for transaction FB05/F-36?
    I have tried exits in CMOD such as: 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
    FEDI0001 Function exits for EDI in FI
    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)
    But none of these seem to work.
    Can anybody tell me which BADI or Exit that I can use?

    To check for the suitable badi, Go to transaction SE24 and give the Object type as CL_EXITHANDLER and click on Display button.
    Double click on method GET_INSTANCE, put a break point on case statement.
    Execute your transaction and look for variable EXIT_NAME at your scenario then It will show the available badi's.
    You can find the exits in many ways.
    Get the developement class of the transaction code from SE93.
    Then go to transaction SMOD and press F4 and give the Development class in Press ENTER, then it will show all the exits available for that transaction.
    Or
    Go to transaction SE80 and give the development class name and then expand the enhancements tree view then you will get the list of userexits for that corresponding dev class.
    Reward if it is useful.
    Thanks,
    Srinivas

  • BADI / EXIT for KO88 and KO8G to populate a warning if posting period blank

    Hi,
    Need is to have a user exit to populate a warning message if posting period is blank when executing these transactions KO88 and KO8G
    . Can u tell me the BADI or exit for the same?
    Regards

    Hi ,
         We can also adress this by making the posting period field mandatory using Transaction Variants ,SHD0 for KO88 , KO8G Tcodes ..
    Example : Enter tcode SHDO , enter tcode as KO88 and Transaction variant as ZKO88 and click create this takes u to KO88 here enter required data and click enter gives u scree variant of K088 Initial screen here you can make the posting period field as required and save it in a separate package created in se80 , so that u can transport ..
    similarly for KO8G
    regrds
    pushpa

  • Badi/Exit for PPARCHA1

    Hello
    I have to implement a check in the archive-program PPARCHA1.
    This check shall stop the archiving-process for separate orders.
    So I'm looking for an exit, badi or another way to realize this.
    (modifying the selection-screen would be the best solution)
    Thx in advance
    Christian

    I've found an enhancement-point.
    Enhancement-spot = 'ES_PARCHAI3'.
    Implement this and you can attach your coding below the order-selection.
    Table ET_ORDER is to maintain.

  • Badi/exit for BAPI_PROCORDCONF_CREATE_TT   MSEG table update

    Dear Experts,
    I want to modify MSEG table field in bapi BAPI_PROCORDCONF_CREATE_TT.
    When I pass parent_id data for Goods movement to this bapi, the bapi clear the parent_id data and after confirmation, MSEG tables parent_id field is blank.
    I have debug this bapi and the reason is AFFW table. In the AFFW table has only line_id field. No parent_id field available in AFFW table.
    Goods movement data move through MOVE-CORRESPONDING statement from goodsmovement to AFFW.
    So I want any BADI or Exit used by this bapi to change the movement data.
    Regards,

    Plz reply,
    I also want to modify/populate the AUFM table, is there any way to populate MSEG and AUFM table.

  • BADI /exits for pm MODULE

    PM Experts,
    I need help to identify the BADI /BAPI /exits in PM for
    Craete measurement documents (T-code for IK11)
    Create PM notification (T-code for IW21)
    Change measurement points (T-code IK02)
    Appreciate your valuable inputs.
    Thanks and Regards,
    Sarang

    hi ,
    plz find the same (http://wiki.sdn.sap.com/wiki/display/ERPLO/PM-CSUserExits)
    path goto to wiki at the left top of the forum
    wiki>search wiki>type PM CS Userexits and enter you will get the required data
    regards
    pushpa

  • BADI/EXIT for SA (ME31L and ME32L)

    Hi all,
    I need to populate tax code based on the certain parameters in SA (ME31L and ME32L). Please tell me if there is any BDAI or exit available for my above requirement.
    I have already checked enhancement Spot 'ME_PROCESS_OUT' but its not working for ME31L and ME32L.
    Thanks a lot in advance.
    Regards,
    Sheelesh

    Thanks for your reply but its not working for me.
    Although i got one customer exit MM06E005 but as per the documentation of exit it seems that we can not edit sap standard field, we can only update our custom field.
    Is there any way to update the standard field?
    Edited by: Sheelesh on Nov 16, 2011 8:35 PM

  • 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

Maybe you are looking for

  • Goods Receipt against account assigned Purchase Order

    Respected members,   I am doing the good receipt with movement type 101 and special stock E with ref to po. In my purchase order in account assignment there is everything like sales order,internal order and profit centre and inventory gl account. The

  • My mc mini run only under windows and don't recognize the keyboard

    After installing boot amp and windows 7 the Mac mini run always under window 7, don't recognize the wireless keyboard. Normally I have to push the power button and alt to return on the Mac interface but now it's impossible. Do you have any idea how I

  • Insert from File command

    I have a large document and need to import several other PDFs into this document.  When importing multiple documents in one go can you choose or edit the order in which they're imported?  I ask this because I have a folder with say, 20 PDFs, and inst

  • Protected from other developers

    What is the best way to keep my code for an application or applet protected from other developers? I guess it is easy to decompile class files. Is it secure to package the application to jar-files?

  • Want to know the function module for Partial Payment F-28 in FI

    Hello all i want to know the Funtion Module for the documents in which Partial payment have been made . For that i have the customer and invoice number .