How to find (SAPLMRMF)TAB_ERRPROT[] in badi

i need to implement badi MRM_HEADER_CHECK.
in scn i seen in that badi implementation this type used
(SAPLMRMF)TAB_ERRPROT[]  for error how we can identify this structure.

Hi Ganesh,
(SAPLMRMF)TAB_ERRPROT[] means table TAB_ERRPROT in program SAPLMRMF. It can be found in include LMRMFTOP as Jānis B wrote before.
To access (SAPLMRMF)TAB_ERRPROT[] you can do the following in your BADI:
TYPE-POOLS:    mrm.
DATA:          ls_errprot TYPE mrm_errprot.
FIELD-SYMBOLS: <ERRPROT>  TYPE TABLE OF mrm_errprot.
ASSIGN ('(SAPLMRMF)TAB_ERRPROT[]') TO <ERRPROT>.
You can use ls_errprot for LOOP or INSERT or APPEND.
Regards,
Klaus

Similar Messages

  • How to find out the exact BAdI

    hi all,
    can any one tell me how to find out the exact badi for the given transaction

    Hi,
    Execute this report !
    It gives you all the badis and user exits present for that particular transaction !
    REPORT z_user_exits_n_badis.
    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.
    u2022     START-OF-SELECTION *
    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.
    u2022     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.
    u2022     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'.
    u2022     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.
    Thanks
    Sarada

  • How to find User Exits/ Enhancments/ BADI's for T-code CJ20N

    Hi All,
        In T-code CJ20N, assume there are two fields A & B. User will input value in A, based on A value I need to fill B field. So I need to find first suitable User Exit/ Enhancment/ BADI.
    Kindly help me in this regard. Pls tell me how to find User Exit/ Enhancment/ BADI for a given t-code.
    Regards
    Jaker.

    Hi,
    Check the following , this might help,
    1. CNEX0037
    2.CNEX0038
    3.CNEX0039
    Regards
    Kiran Sure

  • How to find active implementation of badi/

    I have made badi which have two implementation when i access badi , how do i know that which badi implementation will get called....?
    how to find that ,plz let me know..
    Saurin Shah

    Hi,
        Just keep break-point in both of the implementations.
    i.e go to interface and in the method write break-point.
    then when you execute something then the process will first stop at one of the implementation.
    Like that you can find out.
    Reward if helpful.
    Regards,
    Syed

  • How to find my desired CJ_DOCUMENT BADI ? ...

    Hi there, members of SDN Community suggest me to use CJ_DOCUMENT BADI for FBCJ transaction. Mention that we use 4.6c installation.
    But I've got a basic problem - how to find that BADI ...
    1) I'm checking the SE15, I can see there:
    -> tree (R/3 Repository Information Sys.)  -> Envir.  ->Exit techniques  -> Business Ad-ins -> here I'm choosing Definitions
    In the selection screen I'm entering CJ_DOCUMENT into a Definition name field, press enter and got
    No objects correspond to the selection criteria
    2) When I choose SE18, and search for 'CJ*' I can only find the 'CJ_DSAL_FUNC - BADI for DSAL for Including Customer Functions'). I can't ses my desired CJ_DOCUMENT ...
    So where can I find the CJ_DOCUMENT BADI?
    Or maybe we have no CJ_DOCUMENT BADI ? If so is there some possibility to apply CJ_DOCUMENT BADI for our SAP?
    My questions could seem to be trivial but I'm completely new in SAP enhancements. I'll be thankful for tips and suggestions.
    Greetings. P.

    => goto SE80
    => Select Application Hierarchy and press display.
    => go to your relevant application component and thereafter find the best suitable BAdI.
    Regards,
    SG

  • How to find out which Badi is triggering in which transaction

    Hi SAP gurus,
    Can any one tell me How to find out  which Badi is triggering in which transaction.
    If I have a BADI . I want to know in how many transaction it will trigger.
    Can you help me in this issue. Its very important and urgent.
    Points will be rewarded.
    Thanks,
    Satish.

    Hi Satish,
    Check this blog -
    /people/alwin.vandeput2/blog/2006/04/13/how-to-search-for-badis-trace-it
    Check Clemens reply in this thread, its great-
    BADI
    <b>Reward Points if this helps,</b>
    Satish

  • How to find out the calling point of a Badi

    Hi Experts,
    Say one Badi is getting called in a particular screen of a transaction.
    Can anyone please guide me how to find out the calling point for that Badi.
    I checked for transaction CC31 screen 2000, method IF_EX_ECM_EXIT~OMR_CHECK_01
    is getting called.
    But I could not find the calling point.
    Please help.
    Thanks,
    Sonali.

    Go in to the perticular method, and click on where used list.That may help.
    Or get into the method in debugging, and press F7. That will take you to the calling point.

  • How to find the user exits and BADIS from SPRO

    Hi all,
    please let us know how to find the User exits or BADIS for an application from SPRO.
    Regards,
    Madhavi

    Hi Varisetty,
    Finding user exits and BAdis from SPRO can be cumbsersome. In most instances you know the standard SAP program and want to check (find) an exit called in the flow of the transaction. You can do this as follows:
    For User Exit:
    Put "/h" in the command box (to start debugging)
    Execute your transaction
    When you enter debugging - put a breakpoint at statement
    CALL CUSTOMER-FUNCTION
    the control will stop at all calls to User Exits
    For BAdi (it's simpler)
    Go to class CL_EXITHANDLER in SE24
    Enter method GET_INSTANCE
    Put a breakpoint in this method
    Run your standard transaction - control will stop at all BAdis called within the flow since this method is used to check BAdi implementations before invoking them
    Also, if you want to find enhancements by package - go to SE80, enter the package and check function groups starting with X - those contain function exits (conventional user exits). For BAdis in a package, there is normally a separate tree node (under the package) for Enhancements hence clearly identifiable.
    Cheers,
    Adi

  • How to find the BADI'S in Web Dynpro ABAP

    Hi Experts,
    I'm new to Web Dynpro ABAP. Can any one tell me, how to find the BADI'S for standarad components like i.e DEMO_ROADMAP .Please tell me, steps/procedure to find the BADI'S in WDA.
    Thanks ,
    Chaitanya
    Moderator message: wrong forum, please have a look in the "Web Dynpro ABAP" forum.
    Edited by: Thomas Zloch on Jun 18, 2011 4:30 PM

    Hi Nagaraju,
    There is another fool-proof method to find BADIs while executing a transaction -
    1. Goto transaction SE80
    2. Select "Class / Interface", type in the class name CL_EXITHANDLER and 'Enter"
    3. On the method GET_INSTANCE, create a Breakpoint just after the call to cl_exithandler=>get_class_name_by_interface at the following line - 
    <i>CASE sy-subrc.</i>
    Once the breakpoint has been set, call the transaction you wish to find the BADI for and you will notice that the debugger opens everytime a BADI is about to be called. You could get the name of the BADI from the the value of the variable "EXIT_NAME".
    CL_EXITHANDLER is a service class that is called by standard SAP code everytime a BADI is about to be called. So, setting a breakpoint here should let you know exactly which BADIs are called.
    Hope this helps!
    Thanks,
    Rohini.

  • How to find BADI for the enterprise service?

    Hi Experts,
      We are enhancing an enterprise service for Businesspartner  creation by adding an additional field in the structure. But we are not able to find out the correct BADI for the enterprise service.  We are using the following enterprise service - 'BusinessPartnerERPCreateRequestConfirmation_In' . I could not find any BADI in ES workplace also .How to search for a BADI for this ES.
    Any help on this will be well appreciated.
    Thanks in advance
    Sanu

    Hi Sanu.
    Not all the services is an BAPI or BAPI, maybe this is an interface.
    To see the related object go to esworkplace and find the service.
    You will find in the page the label "Related Web Service Definition".
    Copy the related value(in your case ECC_BusinessPartnerCrtRC) it and go to SAP GUI. In transaction SE84, go to enterprise service and choice service definition.
    Paste the value copied in esworkplace in field Service Definition, then F8.
    In the next screen double click in the returned value.
    In the next screen you will see a Reference Object field. Double click in the value and you will see the related object.
    In this case is an interface. You can see in Provider Class.
    Hope that's help you.
    Marcos

  • How to find which Badi Implementation is causing Short Dump

    Hi Experts,
    We are getting short dump on IW32 transaction when the users hit SAVE button.
    The Dump Details:
    Runtime Errors SYNTAX_ERROR
    Short text
    Syntax error in program "WORKORDER_UPDATE==============CP ".
    What happened?
    Error in the ABAP Application Program
    The current ABAP program "CL_EX_WORKORDER_UPDATE========CP" had
    terminated because it has
    come across a statement that unfortunately cannot be executed.
    The following syntax error occurred in program
    "WORKORDER_UPDATE==============CP " in include
    "WORKORDER_UPDATE==============CM000 " in
    line 12:
    "The specified type cannot be converted into the target variable
    The current ABAP program "CL_EX_WORKORDER_UPDATE========CP" had to be
    terminated because it has
    come across a statement that unfortunately cannot be executed.
    Error analysis
    The following syntax error was found in the program
    WORKORDER_UPDATE==============CP :
    "The specified type cannot be converted into the target variables."
    Information on where terminated
    Termination occurred in the ABAP program "CL_EX_WORKORDER_UPDATE========CP" -
    in "IF_EX_WORKORDER_UPDATE~AT_SAVE".
    The main program was "SAPLCOIH ".
    After going through the dump analysis, I found that there are around 25 BADI Implementations got created on Enhancement Spot "WORKORDER_UPDATE".
    How to find out which BADI Implementations is causing this dump?
    Please let me know.
    Thanks.
    Edited by: ravi kumar on Feb 22, 2011 1:12 PM

    Yes, I tried the Active Calls Stack also. The Short Dump is occuring exactly at the line :-
    method IF_EX_WORKORDER_UPDATE~AT_SAVE.
    in Class:-
    CL_EX_WORKORDER_UPDATE
    I was informedby the user that this is working perfectly fine in DEV System. The Short Dump is occuring in SBX System.
    When I executed the Class "CL_EX_WORKORDER_UPDATE" and Method "IF_EX_WORKORDER_UPDATE~AT_SAVE" via SE24 in SBX, I got the same dump. However it worked fine in DEV System.
    I am wondering if the issue is with the Standard Program itself?
    Any ideas?
    Thanks a lot again.
    Another thing is: It is short dumping even before calling any of the BADI Implementations.
    Wanted to give some more info on this: I put a break point in Function "CO_ZV_ORDER_POST" after the CALL FUNCTION 'CO_BADI_GET_BUSINESS_ADD_IN'.
    And the program dumps right after that when it calls the: CALL METHOD lp_badi_if->at_save.
    Thanks.
    Edited by: ravi kumar on Feb 22, 2011 1:51 PM
    Edited by: ravi kumar on Feb 22, 2011 2:11 PM

  • How to find and implement badi's

    hello can any one tell me how to find badi's for a transaction and implement them if any one can show with example will be helpful if any of standard transaction for sd ,
    regards
    afzal

    Hi,
    Just copy and paste this code in editor and execute it.
    Then give your Transaction coe it will displays all user exits Regrading your T.Code.
    *&  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.
    Thanks,
    Reward If Helpful.

  • How to find *screen badi*

    hi,
    i know how to find exits and badi for a particular transaction.
    i just wanted to know how we can find screen badi for a specific transaction.(ex: mb_migo_badi for migo transaction)
    can any one give suggestions in this issue.if possible send any documentation.
    note:plz dont send the same old program to find exits and badis.

    See point 8
    Procedure
           1.      Start the Object Navigator (SE80).
           2.      Open an enhancement spot. For more information, see Creating, Editing, and Deleting Enhancement Spots.
           3.      Select the Enh. Spot Element Definitions tab page.
           4.      Choose Create BAdI.
    A dialog box appears.
           5.      Enter a name and a short text for the BAdI.
    BAdIs are in the same namespace as global data types from the ABAP Dictionary, global classes, or interfaces. For BAdIs, we recommend using the prefix u201CBADI_u201D (or u201CZBADI_u201D, and so on, in the customer namespace).
    The new BAdI appears as a node in the tree display of the tab page.
           6.      On the right-hand side of the page, do the following:
                                a.      Enter the attribute for multiple use.
                                b.      Enter the instance creation mode.
                                c.      Enter the attribute for internal SAP BAdIs (only SAP internal use).
                                d.      Optional: Enter a Fallback Class.
                                e.      In the tree, expand the BAdI and choose the Interface node. Enter the name of an existing BAdI.
           7.      Optional: Choose the function Create Filter to create a filter.
    Here you can:
                                a.      Enter the filter name, filter type, and description.
                                b.      Optional: If you choose Constant Filter Value During Call, you may only specify a constant value at the respective filter when using GET BADI. This is provided for future performance improvements of the statement.
                                c.      Optional: Enter either a data element or a domain with fixed values, or a search help. Alternatively, enter a check or input help class, and a length (together with decimal places). In this way, the filter values specified at GET BADIcan be checked during the BAdI implementation.
           8.      Optional: Choose the function Create Screen Enhancement in order to create the BAdI as a screen enhancement.
    The BAdI must not be of a multiple use type.
                                a.      Enter Calling Program, Screen Number, Subscreen Area, and Description.
                                b.      Optional: Select Default Value to specify a screen of a program that is used if no active implementation is found at runtime.
           9.      Optional: Choose Create Function Code Enhancement to create the BAdI as a function code enhancement.
    The BAdI must not have any filters and must not be of the type for multiple use.
                                a.      Enter Program, Function Code, and Description.
                                b.      Optional: Select Default Value to specify an icon, a menu text, a pushbutton text, and a quick info, all of which are used when no active implementation is found at runtime.
       10.      Optional: Create an example implementation.
                                a.      Select the BAdI, and choose Create Example Class from the context menu.
                                b.      Enter the name of a BAdI implementation class and a description.

  • How can find BAdi

    Hi All.
    I need to find BAdi for Tcode:VL02N. how can find BAdi for particular transaction.
    Help me.
    To be Reward all helpfull answers.
    Regards.
    Jay

    Jay,
    Run the below code to find badis for a txn,
    report zbadi_find .
    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.
    Reward if helpful,
    karthik
    Message was edited by:
            Karthik Potharaju

  • How to find BADIs

    Hi all,
         How can we check the standard BADI those are available in SAP and to which transaction those will be useful.
    regards,
    Chandra.

    Hi,
    Followinf are the different ways of finding BADI's
    1) Search for BADI exits in the repository information system. se84.
    2) Search in IMG for 'BADI' most of the BADI's are given then for creating implementation.
    3) Search in the program for CL_EXITHANDLER
    4) Refine your search for some Application Component.
    5) Goto SE18 or SE19 and on F4 you can search this will lead to the same search of SE84.
    Regards,
    Sesh

Maybe you are looking for

  • Guitar audio drop-out at lower volumes

    I have tried out mainstage on a friends macbook pro, to check if it will be worth an investment into Logic over Garageband, mainly as an effects emulator for my guitar so I don't need to worry about amps in my small flat.   I connected through an Edi

  • Oledb Java connectivity

    Hi I have read a similar topic in another topic but couldnt find a solution to the problem. We are database reporting tool and use JAVA technology, and generate reports from multiple database. We have a customer who has written his own data layer ove

  • IPhone switches from play to pause randomly

    When playing music on the iPhone it will randomly switch from play to pause then back to play again on its own. It behaves like this randomly and the time before it switches back to play is equally random from 2 sec to 15 sec. This is annoying. Anyon

  • Photoshop is not opening

    I have been dealing with this for 4 hours now... I reinstalled photoshop CC to try and get the 3D tab because for some reason i didn't have it the first time i installed. I downloaded photoshop cc and i have a shortcut to my desktop. When i double cl

  • Best Practices - Transports

    Hi there In my brief Portal experience, I have only ever transported stuff (iviews, roles etc.) using the manual approach provided in the portal under System Admin >> Transports. Now, one of the other portal implementations that our company has done