Regarding Exit

Hi,
I am displaying one one status message if vendor num is not enterd.
After that I want to stop the execution of remaining program.
I am using EXIT...after that message. but its not working..
I tried with STOP also..but its also not working.
MESSAGE s043(zz) WITH 'Please enter Race vendor Number'(003).
    EXIT.
Regards
Sandip

Use LEAVE PROGRAM statement after rasing ur message.
Regards,
Dara.

Similar Messages

  • Regarding Exit/IDOC Related TD

    Hi,
    Can anybody tell me what is the code required to be written folowing TD points.
    Before below TD i have populated one internal table in
    userexit_save_document exit and submitted following new program need to be written as below:
    SUBMIT gv_prog
    WITH SELECTION-TABLE t_seltab
    VIA JOB gv_jobname NUMBER gv_jobnum "USER puser
    AND RETURN TO SAP-SPOOL
    SPOOL PARAMETERS gv_params
    WITHOUT SPOOL DYNPRO.
    As i am new to IDOC Concept can anybody help to write following code!
    Create new custom program that will create the CTO deletion idocs to send to WWCLASS
    •     Requirements:
    o     Need to be able to import data in from the save_doc userexit and create and post the idoc
         Import needed data from userexit_save_document
         Fill the control record to send into function (waiting for FA to get this information to me, as they have not yet created the partner)
    •     DOCTYP = ‘ ‘
    •     OUTMOD = ‘2’
    •     SERIAL = sy-datum
    •     SERIAL+8 = sy-uzeit
    •     IDOCTP = ‘ORDERS05’
    •     MESTYP = ‘ORDERS’
    •     MESCOD = ??????
    •     RCVPRT = ??????
    •     RCVPRN = ??????
    •     RCVPFC = ??????
    •     RCVPOR = ??????
         Fill the E1EDK01 segment (Header level segment)
    •     CURCY = currency
    •     ZTERM = zterm
    •     BELNR = order number (vbeln)
         Fill the E1EDP01 segment (Item level segment)
    •     POSEX = item number (posnr)
    •     ACTION = ‘001’
         Fill the E1EDP19 segment (Item Object Identification segment)
    •     QUALF = ‘OID’ to represent old GCTO id
    •     IDTNR = GCTO ID from vbap
         Generate the idoc
      CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'
        EXPORTING
          MASTER_IDOC_CONTROL                  = cntrl data
        TABLES
          COMMUNICATION_IDOC_CONTROL           = cntrl data(returned)
          MASTER_IDOC_DATA                     = idoc data
       EXCEPTIONS
         ERROR_IN_IDOC_CONTROL                = 1
         ERROR_WRITING_IDOC_STATUS            = 2
         ERROR_IN_IDOC_DATA                   = 3
         SENDING_LOGICAL_SYSTEM_UNKNOWN       = 4
         OTHERS                               = 5
    •     Based on the documentation for this standard function, you will need to do a commit work after calling the program in order to ensure the idoc is dispatched.
    o     Need to be able to capture failures and send report to users in e-mail
         Failures fall into 2 categories:
    •     An IDOC was created, but the posting fails with error status.  In this case, we still want to capture this in the file as a failure, but the users should re-process this with standard SAP transactions (can find status of created idoc in the returned communication_idoc_control table).
    •     An IDOC was NOT created for some reason.  In this case, we will need to capture all the necessary information needed to try and re-create an idoc
         File should be sent via e-mail to users defined in a table.
    •     Use standard FM SO_NEW_DOCUMENT_SEND_API1 to send document to specified users
      CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
           EXPORTING
                document_data              =
                document_type              = 'RAW'
                put_in_outbox              = ''
           TABLES
                object_content             =
                receivers                  =
           EXCEPTIONS
                too_many_receivers         = 1
                document_not_sent          = 2
                document_type_not_exist    = 3
                operation_no_authorization = 4
                parameter_error            = 5
                x_error                    = 6
                enqueue_error              = 7
                OTHERS                     = 8.
    •     Document Data should include the email header information.  Something that denotes to user that this is an WWCLASS CTO Deletion IDOC Error Report
    •     Object Content should include the following information:
    o     IDOC# (in cases where the idoc was created, but has fail status)
    o     Order Number
    o     Currency
    o     Terms of Payment
    o     Item Number
    o     GCTO ID
    •     Receivers should be the list of addresses that will receive the email.
    o     Read table ZCMAIL with REPID = this program name, and MAIL_LIST = ‘ ‘ to retrieve all the addresses that will need to have the report sent.  Will need to send the FA the name of this program so they can setup the table entries properly.
    o     Need to add parameters to program that will also allow the user to run this program manually so they can re-create the idoc in cases where the idoc was erroneously not created in normal process.
         Allow user to enter a file name that could be uploaded from their hard drive that will contain all data need to create the idoc.
         Generate the idoc based on data in file.
         File could look similar to the data reported in the error report
    Can anybody help me in writing code for above TD!
    Thanks in advance.
    Thanks & Regards,
    Deep.

    HI,
    Any solutions for the same!
    Thnaks,
    Deep.

  • Regarding EXIT in F-47

    Hi SAP Gurus,
    While doing posting from F-47 aganist a PO No., I need to check PO amount with the downpayment amount and raise a error message. Can any one tell me the EXIT name which I can use.
    Regards,
    Pavan.

    Hi,
    Check these below.  It might help you
    User exit
    SAPLF051                                Workflow for FI (pre-capture, release for payment)
    RFKORIEX                                Automatic correspondence
    RFEPOS00                                Line item display: Checking of selection conditions
    RFAVIS01                                Customer Exit for Changing Payment Advice Segment Text
    FEDI0001                                Function Exits for EDI in FI
    FARC0002                                Additional Checks for Archiving MM Vendor Master Data
    F180A001                                Balance Sheet Adjustment
    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
    Business Add-in
    AC_QUANTITY_GET                         Transfer of Quantities to Accounting - Customer Exit
    ADJUST_NET_DAYS                         Change to Net Due Date
    FBAS_CIN_LTAX1F02                       Tax interface
    FBAS_CIN_MF05AFA0                       EWT - Downpayment Clearing - Tax transfer for CIN
    FISPLIT                                 Online Split: Cash Discount, Exchange Rate Differences
    FI_AUTHORITY_ITEM                       Extended Authorization Check for Document Display (FB03)
    FI_DOC_DISP_LI                          Diversion to Document Items (FB03)
    FI_FB08_SUBST_BUDAT                     FB08: Check Posting Date for Reversal of FI Doc. with FB0
    FI_GET_INV_PYMT_AMT                     BAdI for determining the payment amount for an invoice
    FI_HEADER_SUB_1300                      Screen Enhancement for Document Header SAPMF05A
    FI_PAYREF_BADI_010                      BAdI: Payment Reference Number
    FI_RES_ITEM_CURRENCY                    Document of Residual Item with Invoice Currency
    FI_TRANS_DATE_DERIVE                    Derive BKPF-WWERT from Other Document Header Data
    BADI_ENJ_ALT_ADR                        Go to alternative vendor/customer data
    BADI_F040_SCREEN_600                    Screen Enhancement on F040 0600 Document Header
    RFESR000_BADI_001                       BAdI for Own Processing of POR Item
    BADI_MIRO_SPLT_ADD                      Append additional fields of ACCVS to ACCIT
    BADI_PRKNG_NO_UPDATE                    BAdI for Deactivating Update of Parked Documents
    FVFZ                                    Replacement for Function Modules of Function Group FVFZ
    F050S008                                FIDCC1, FIDCC2 Inbound IDoc: Update Comparison Ledger
    INVOIC_FI_INBOUND                       BADIs for Inbound IDoc INVOIC FI (Vendor Invoice)

  • Regarding exit from the module pool screen

    h experts,
    i have developed a module pool report in which in the selection screen i have four fields which are mandatory ,when i execute the program without entering in the selection screen it do not allow to come out of the module pool screen ...what i want that without entering any input in the selection screen if i press exit button push button it will allow to come out of the screen for this what sud i do plz help me....

    Hi
    keep a button called <b>EXIT</b> on the screen
    Make the function type of that field as <b>E</b>
    in Flow logic write
    PROCESS AFTER INPUT.
    Forced Exit from the transaction from screen
      MODULE exit AT EXIT-COMMAND.
    double click on exit module and
    then in PAI write
    *&      Module  exit  INPUT
    Exit from the Transaction
    MODULE exit INPUT.
      CASE okcode.
        WHEN 'EXIT' OR 'CANCEL'.
          CLEAR okcode.
          LEAVE PROGRAM.
      ENDCASE.
    ENDMODULE.                 " exit  INPUT
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Regarding Exit of validation in SPRO

    Hi  All,
             Normally for user exits the system should not ask for the Access key. But the exits of validations in tcode 'SPRO' it is asking for the acess key. It is creating some sort of confusion.plz clarify.
    Regards
    Prashanth

    Hi prashanth,
    1. customer exits (using CMOD, SMOD)
      won't ask for access key.
    2. But user-exits, (especially in SD Module)
       have some Z INCLUDE,
       which needs to be modified,
       for writing our code.
    So, only for the first time, it will ask for access key.
    regards,
    amit m.

  • Regarding exit for MIGO screen

    Hi,
          The requirement is: I need 3 additional character fields in MIGO transaction which my customer want to enter at the time of doing GR through MIGO. At the time of save they want those three fields to be capture in a table to store. Later they  want to print the details if they take the prointout of GR.
    Please tell me the procedure to add the three char fields to add to migo screen and the exit name to capture the details at the time of saveing the GR.
    Thanks,
    kishore

    Hi Kishore,
    Check the BADI MB_MIGO_BADI in se18.
    Read the documentation in se18 for that BADI and then proceed as suggested.
    Also, search the forum with that BADI name to get more help.
    Regards,
    Ravi

  • Help Regarding Exits

    Hi, Please explain me the uses of User Exits?
    and where we have to create them?
    What are types of Exits?
    Thanks
    Please explain me
    thanks and regards
    Dinakar

    MODIFICATIONS : Change to the standard functionality by changing the SAP object itself using the 'ACCESS KEY ' from SAP .
    These objects needs to be observed during version upgrades as the upgrade patches might overwrite the code written by you .
    Except for certain incode user exits provided by SAP like MV45AFZZ .
    ENHANCEMENTS : Change to the standard functionality by using the exits / badis provided by SAP.
    These objects do not need any access key from SAP.
    These changes will not get over written during SAP version upgrades.
    MODIFICATIONS : Change to the standard functionality by changing the SAP object itself using the 'ACCESS KEY ' from SAP .
    These objects needs to be observed during version upgrades as the upgrade patches might overwrite the code written by you .
    Except for certain incode user exits provided by SAP like MV45AFZZ .
    ENHANCEMENTS : Change to the standard functionality by using the exits / badis provided by SAP.
    These objects do not need any access key from SAP. These changes will not get over written during SAP version upgrades.
    USER EXITS->
    1. Introduction:
    User exits (Function module exits) are exits developed by SAP.
    The exit is implementerd as a call to a functionmodule.
    The code for the function module is writeen by the developer.
    You are not writing the code directly in the function module,
    but in the include that is implemented in the function module.
    The naming standard of function modules for functionmodule exits is:
    EXIT_<program name><3 digit suffix>
    The call to a functionmodule exit is implemented as:
    CALL CUSTOMER.-FUNCTION <3 digit suffix>
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    CUSTOMER EXITS-> t-code CMOD.
    As of Release 4.6A SAP provides a new enhancement technique, the Business Add-Ins.
    Among others, this enhancement technique has the advantage of
    being based on a multi-level system landscape (SAP, country versions, IS solutions, partner,
    customer, and so on)
    instead of a two-level landscape (SAP, customer) as with the customer exits.
    You can create definitions and implementations of business add-ins at any level of the system landscape.
    To unify enhancements of the SAP Standard you can migrate customer exits to business add-ins.
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm
    In order to find out the user exits for any tcode,
    1. get the developement class of the tcode from SE93.
    2. Now goto transaction SMOD and press F4,
    3. give in the Deve class in the dev class and Press ENTER
    this will show u the exits for any tcode.
    or execute this report
    http://www.erpgenie.com/sap/abap/code/abap26.htm
    which gives the list of exits for a tcode
    http://help.sap.com/saphelp_nw04/helpdata/en/bf/ec079f5db911d295ae0000e82de14a/frameset.htm
    For information on Exits, check these links
    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
    Difference between user exits & customer exits:
    User exit - A user exit is a three character code that instructs the system to access a program during system processing.
    SXX: S is for standard exits that are delivered by SAP. XX represents the 2-digit exit number.
    UXX: U is for user exits that are defined by the user. XX represents the 2-digit exit number
    Customer exit - The R/3 enhancement concept allows you to add your own functionality to SAP’s standard business applications
    without having to modify the original applications. SAP creates customer exits for specific programs, screens,
    and menus within standard R/3 applications. These exits do not contain any functionality. Instead,
    the customer exits act as hooks. You can hang your own add-on functionality onto these hooks.
    "The R/3 enhancement concept allows you to add your own functionality to SAP’s standard business applications without having to modify the original applications. SAP creates customer exits for specific programs, screens, and menus within standard R/3 applications. These exits do not contain any functionality. Instead, the customer exits act as hooks. You can hang your own add-on functionality onto these hooks."
    Customer exits are implemented in Z-includes and are ENHANCEMENTS to the system.
    User-exits were firstly intended to be developed for the SD module. You make your coding in includes in SAP namespace
    (e.g MV*). That's why, user exits are MODIFICATIONS to the system. In includes for user exits there are empty subroutines
    ( generally with the name convention "userexit_...") and you code using global variables of the main program.
    But, generally developers use these terms without this distinction. So, someone may mean a "customer exit" when (s)he says
    "user exit" or vice-versa.
    And as a last thing, let me introduce you the SDN forums pointing system: You can assign points to posts you find helpful
    while solving your question. You can reward points by clicking the yellow star icon at header of each reply post.
    You can reward;
    Business Add-Ins are a new SAP enhancement technique based on ABAP Objects. They can be inserted into the SAP System to
    accommodate user requirements too specific to be included in the standard delivery. Since specific industries often require special functions, SAP allows you to predefine these points in your software.
    As with customer exits two different views are available:
    In the definition view, an application programmer predefines exit points in a source that allow specific industry sectors,
    partners, and customers to attach additional software to standard SAP source code without having to modify the original
    object.
    In the implementation view, the users of Business Add-Ins can customize the logic they need or use a standard logic if one
    is available.
    In contrast to customer exits, Business Add-Ins no longer assume a two-level infrastructure (SAP and customer solutions),
    but instead allow for a multi-level system landscape (SAP, partner, and customer solutions, as well as country versions,
    industry solutions, and the like). Definitions and implementations of Business Add-Ins can be created at each level within
    such a system infrastructure.
    SAP guarantees the upward compatibility of all Business Add-In interfaces. Release upgrades do not affect enhancement calls
    from within the standard software nor do they affect the validity of call interfaces. You do not have to register
    Business Add-Ins in SSCR.
    The Business Add-In enhancement technique differentiates between enhancements that can only be implemented once and
    enhancements that can be used actively by any number of customers at the same time. In addition, Business Add-Ins can
    be defined according to filter values. This allows you to control add-in implementation and make it dependent on specific
    criteria (on a specific Country value, for example).
    All ABAP sources, screens, GUIs, and table interfaces created using this enhancement technique are defined in a manner
    that allows customers to include their own enhancements in the standard. A single Business Add-In contains all of the
    interfaces necessary to implement a specific task.
    The actual program code is enhanced using ABAP Objects. In order to better understand the programming techniques behind
    the Business Add-In enhancement concept, SAP recommends reading the section on ABAP Objects.
    Difference between user exits & customer exits:
    User exit - A user exit is a three character code that instructs the system to access a program during system processing.
    SXX: S is for standard exits that are delivered by SAP. XX represents the 2-digit exit number.
    UXX: U is for user exits that are defined by the user. XX represents the 2-digit exit number
    Customer exit - The R/3 enhancement concept allows you to add your own functionality to SAP’s standard business applications
    without having to modify the original applications. SAP creates customer exits for specific programs, screens,
    and menus within standard R/3 applications. These exits do not contain any functionality. Instead, the customer exits act as hooks. You can hang your own add-on functionality onto these hooks. *-- Mani
    The following document is about exits in SAP :-
    The R/3 enhancement concept allows you to add your own functionality to SAP’s standard business applications without having
    to modify the original applications.
    SAP creates user exits for specific programs, screens, and menus within standard R/3 applications.
    These exits do not contain any functionality. Instead, the customer exits act as hooks. You can hang your
    own add-on functionality onto these hooks.
    Customer Exit is a hook and also we have to add our own functionality so we have to write the code in include file and
    activate that project in CMOD.
    Whereas in User Exit ,we are writing the code in SAP namespace. So am thinking that its no need to create project and
    activating that project for user exit. Is it right? For User Exit also we have to create project please clarify me
    User Exits:
    User exits allow you to add additional functions to the SAP standard.
    Programs with user exits contain subroutine calls at certain points in their syntax that are identified by the prefix
    USEREXI
    T. The actual user exits are located in an include that has been assigned to a module pool. This is where customers can
    include any changes (enhancements) that they want to make to the system. These includes are always processed during program
    flow.
    Advantage: In principle, customers can modify anything they want that is found in the include (tables, structures, and so
    forth).
    Disadvantage: SAP cannot check the individual enhancements themselves which often leads to errors in the enhancement process.
    User exits (Function module exits) are exits developed by SAP. The exit is implemented as a call to a function module.
    The code for the function module is written by the developer. You are not writing the code directly in the function module,
    but in the include that is implemented in the function module.
    Customer exits are not available for all programs and screens found in the SAP System. You can only use customer exits if
    they already exist in the SAP System.
    Customer Exit
    SAP creates customer exits for specific programs, screens, and menus within standard applications. These exits do not
    contain any functionality.
    Instead, the customer exits act as hooks. You can hang your own add-on functionality onto these hooks.
    If you want to enhance the functionality of your SAP System, you should take advantage of the exits available in
    standard applications. There are two main reasons why you should use exits rather than modifying SAP software yourself.
    Add-ons attached to exits have the advantage that:
    • They do not affect standard SAP source code
    When you add new functionality to your SAP System using SAP’s exits, you do not alter the source code of
    standard SAP programs in any way. The code and screens you create are encapsulated as separate objects.
    These customer objects are linked to standard applications, but exist separately from SAP’s standard software package.
    • They do not affect software updates
    When you add new functionality to your SAP System using SAP’s exits, your objects (called customer objects)
    must adhere to
    strict naming conventions. When it comes time to upgrade a to a new software release, customer objects’ names ensure that
    they will not be affected by any changes or new additions to the standard software package.
    Customer exits are not available for all programs and screens found in the SAP System. You can only use customer exits if
    they already exist in the SAP System. You can find more information about locating applications with pre-defined exits in
    Locating Applications that have Exits
    1. Learn user exits :
    http://www.sapgenie.com/links/abap.htm
    2. finding user exits :
    http://www.sapgenie.com/abap/code/abap26.htm
    3. A short tutorial on user exits :
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    4. Introduction to user exits with examples :
    http://www.sap-img.com/abap/what-is-user-exits.htm
    Regards,
    Balaji.

  • Regarding Exit plug

    Hi,
    I would like to open an URL in a button click and also I want to close the window in which I have clicked the button.
    I am trying to use Exit plug of interface view.
    Please comment on this.
    Regards
    Vivek

    Hi,
    Open some URL,
    First u have to create outbound plug in interfaceview
    1)Open the node WebDynpro -
    > Web Dynpro Components -
    > <ComponentName> -
    > Component Interface -
    > Interface Views in that click <interfacename> interface view .
    2) Select the Plugs tab in the Plugs area.
    3)Choose New next to the outbound plug table.create new outbound plug.for example,Name GotoUrl, and choose Type Exit Plug.
    4)Select the new outbound plug GotoUrl and choose New next to the parameter table.taEnter the name Url datatype as STRING.
    5)Open the view in the View Designer and select the Properties tab. Choose Add next to the Required Controllers table and add the <interface name>InterfaceView
    Place 1 button and check,
    onActionButton write this code
    wdThis.wdGetSampleInterfaceViewController().wdFirePlugGotoUrl(
    "http://www.google.com");
    Closing Window:
    onActionClose()
    wdThis.wdGet<your interface view controller>().wdFirePlug<your exit plug's name>("javascript:void(window.close())");
    Check this thread also,
    close main application window in WD for Java

  • Regarding Exits

    Hi all,
    How can we find out how many Enhancements are active for a perticular T-code.
    Thanks & Regards,
    Amit.

    Hi Amit,
    use the below program to find enhancements and BADIs of a transaction
    REPORT Z_FIND_USEREXIT_BADI .
    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 for helpful answers</b>
    Satish

  • 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

  • ATC not checking code in user exit includes

    Dear Friends,
    I'm not sure if you have faced this issue, but I have not found anyone or any post or any document or any OSS note talking about it.
    I've recently have realized than when using ATC for checking the custom code of an Z include it was finding cero errors when it was actually full of them.
    In fact using code inspector, the errors where found. It was not an issue of using a different variant, this was checked, CI and ATC are using the same,
    The issue itself was clear: When the ATC checks a parent object its checks the code of its includes. If you try to check an include directly with ATC, it is ignored with message "No checks are available for the objects types", giving the chance to "add master program" so it will be checked when the master program is checked with all its includes. Last, ATC neither Code Inspector checks custom code.
    The end result is that when trying to check the code in a user exit include with ATC it does not find any error.
    I can think about encapsulating the code found in a user exits but this is a titanic task.
    The main problem is that the jobs for getting in CCLM the quality required massive ATC runs that will not catch the errors in these kind of objects.
    Have you face this issue? do you have any recommendation?
    I would like your opinion before raising this as customer message, as from my point of this this may require a SAP correction.
    Thanks
    Aubin

    Hello Aubin,
    to be perfectely honest I have not started with the indeep analysis yet. One reason is that the behaviour regarding exit techniques has got improoved recently so it is important to do the analysis on a SP level close / identical to yours.
    If I am not mistaken CMOD function exits yield into 2 TADIR keys:
    - 'R3TR' 'FUGX' .... - referring to the definition of the function group - typically provided by SAP - residing in a SAP package
    - 'R3TR' 'FUGS' .... - referring to the implementation - typically custom code - residing in a Z-Package
    My initial assumpution was that mapping partobjects always return FUGX but shall return FUGS. And also I was assuming the custom package shall contain the 'FUGS' implementation which shall enable checking out of the box.
    But it seems these assumptions are not valid. I am not sure wether I would be able to analyse this issue this week. In any case I will update this thread as soon as the analysis has been done.
    Best Regards
      Klaus

  • Appraisal exit BADI filter translations.

    Hi Everyone,
    I hope you can help me, I am trying to find out where translations for the short text of a BADI filter are done. As I understand it, for the BADI to be available in the appraisal it must exist in table T77HAP_FLT_EXI. The translations for the short texts of these filters are stored in table T77HAP_FLT_EXI_T. I can't figure out where these translations are maintained though. We are trying to add Japanese translations (after having done a unicode upgrade). We use 5 other latin based languages all of which I can see in table T77HAP_FLT_EXI_T but I am not sure how they were translated.
    I have tried looking at the BADI itself and can not find anthing regarding translation of the filter short text. I have also tried looking on the appraisal document for translations regarding exits with no luck. I have tried editing the basic settings via transaction OOHAP_BASIC where much of the translation around the appraisal are done but when you try to translate an exit the menu item is grayed out.
    Any help would be highly appreciated.
    Thanks in advance,
    Max

    Let me add my thanks to Sukant as well. My requirement was to exclude certain Business Partner Groupings from being uploaded to R/3. I was hoping that the filters applied in R3AC1 would actually have some effect, but they didn't. I don't understand that part yet. SAP must have had something in mind when they allowed filters for both directions of data transfer in R3AC1.
    Anyway, as Sukant suggested, I created a ZBUPA_MWX_BDOC_CREATE_MAIN function module and simply added the following code snippet:
    * Start of custom code to check whether BP grouping = 0003/0008
      LOOP AT ct_bp_extern into ls_one_bp.
        IF ( ls_one_bp-central_data-common-data-bp_control-grouping NE '0003' ) AND
           ( ls_one_bp-central_data-common-data-bp_control-grouping NE '0008' ).
          DELETE TABLE ct_bp_extern[] FROM ls_one_bp.
        ENDIF.
      ENDLOOP.
    * End of custom code to check whether BP grouping = 0003/0008
    Of course I had to create a copy of the function group, copy the includes and global variable declarations from the main program etc. But I was hoping that SAP would make such a simple filter more configurable rather than require coding, no matter how simple. If someone else with more knowledge comes across this thread in the future, please update it to let us know if we are asking for too much to have the filter option provided in R3AC1 actually work (for CRM --> R/3 data transfer).

  • Short Dump ASSIGN_TYPE_CONFLICT in Virtual KF implementation

    Hi
    Iam getting a short dump in my virtual KF code. Here is the code that I have written. If I have only bill date it works fine. The minute I add company code it gives the short dump. Can you pls let me know what is it that Iam doing wrong. any help will be greatly useful. Thanks.
    INCLUDE ZXRSRU02
    DATA: L_S_CHANM TYPE RRKE_S_CHANM.
    DATA: L_SUBRC1 TYPE SY-SUBRC. "execute only, if key figure really used
    CASE I_S_RKB1D-INFOCUBE.
       WHEN '0SD_C03'.
                L_S_CHANM-CHANM = '0BILL_DATE'.
                L_S_CHANM-MODE  =  RRKE_C_MODE-READ.
                APPEND L_S_CHANM TO E_T_CHANM.
                L_S_CHANM-CHANM = '0COMP_CODE'.
                L_S_CHANM-MODE = RRKE_C_MODE-READ.
                APPEND L_S_CHANM TO E_T_CHANM.
                APPEND 'ZCOUNT1' TO E_T_KYFNM.
    ENDCASE.
    *Include ZXRSRTOP*
    DATA : G_POS_0SD_C03_0BILL_DATE TYPE I.
    DATA : G_POS_0SD_C03_0COMP_CODE(4).
    DATA : G_POS_0SD_C03_ZCOUNT1 TYPE I.
    Include ZXRSRZZZ
    FORM USER_0SD_C03 USING I_S_RKB1D TYPE RSR_S_RKB1D
      CHANGING C_S_DATA TYPE ANY.
      DATA: l_zcount1 TYPE int4.
      FIELD-SYMBOLS <L_0BILL_DATE>.
      FIELD-SYMBOLS <L_0COMP_CODE>.
      FIELD-SYMBOLS <L_ZCOUNT1>.
      ASSIGN COMPONENT G_POS_0SD_C03_0BILL_DATE
      OF STRUCTURE C_S_DATA TO <L_0BILL_DATE>.
      ASSIGN COMPONENT G_POS_0SD_C03_0COMP_CODE
      OF STRUCTURE C_S_DATA TO <L_0COMP_CODE>.
      ASSIGN COMPONENT G_POS_0SD_C03_ZCOUNT1
      OF STRUCTURE C_S_DATA TO <L_ZCOUNT1>.
      IF <L_0COMP_CODE> = 'AB99'.
        CALL FUNCTION 'ZCALC_WDAYS_BETWEEN_DATES'
          EXPORTING
            P_DATE1  = <L_0BILL_DATE>
            P_DATE2  = SY-DATUM
            P_CAL_ID = 'Z1'
          IMPORTING
            P_DAYS   = l_zcount1.
        <L_ZCOUNT1> = l_zcount1.
      ELSEIF <L_0COMP_CODE> = 'DC99'.
        CALL FUNCTION 'ZCALC_WDAYS_BETWEEN_DATES'
          EXPORTING
            P_DATE1  = <L_0BILL_DATE>
            P_DATE2  = SY-DATUM
            P_CAL_ID = 'Z2'
          IMPORTING
            P_DAYS   = l_zcount1.
        <L_ZCOUNT1> = l_zcount1.
      ENDIF.
    The short dump:
    ASSIGN_TYPE_CONFLICT
    "CL_IM_RSR_OLAP_BADI===========CP" or "CL_IM_RSR_OLAP_BADI===========CM002"
    "IF_EX_RSR_OLAP_BADI~INITIALIZE"
    get field postions for characteristics in structure
    LOOP AT i_th_sfc ASSIGNING <l_s_sfc>
         WHERE user_exit NE rrke_c_mode-none.
    field name in structure is keyreturnnm
    name of the global variable
      CONCATENATE '(SAPLXRSR)G_POS' i_s_rkb1d-infocube <l_s_sfc>-chanm
          INTO l_global_name
          SEPARATED BY '_'.
    fill the global variable
      UNASSIGN <l_global>.
    >>>>>>>>  ASSIGN (l_global_name) TO <l_global>.

    My suggestion is that you review the how-to papers on SDN regarding exit RSR00002 or RSR_OLAP_BADI.  These are alternative methods of accomplishing virtual characteristics and key figures.  The code you have given is for exit RSR00002 (although it is full of syntax errors so is not executable), but the short dump you are getting refers to RSR_OLAP_BADI, so you must have implemented that Class as well, but incompletely. 
    Which method are you attempting to use?

  • Adobe Acrobat Pro Install Problem - Design Standard CS6

    Hi,
    I am haveing trouble to install Acrobat Pro in my Windows 7 64 Bit, but other component in the Design Standard CS6 can be install sccessful and work well except this,appreciated if you can help!
    Ken
    Exit Code: 6
    Please see specific errors and warnings below for troubleshooting. For example,  ERROR: DW050 ...
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 3 error(s), 0 warning(s)
    ----------- Payload: {AC76BA86-1033-F400-7760-000000000005} Acrobat Professional 10.0.0.0 -----------
    ERROR: Error 1324.The path R嶰up廨er un document num廨is?sur un multifonction.sequ or the volume is invalid. Please enter it again.
    ERROR: Install MSI payload failed with error: 1603 - Fatal error during installation.
    MSI Error message: Error 1324.The path R嶰up廨er un document num廨is?sur un multifonction.sequ or the volume is invalid. Please enter it again.
    ERROR: DW050: The following payload errors were found during install:
    ERROR: DW050:  - Acrobat Professional: Install failed

    There is a help document from adobe regarding Exit code 6 and Error: DW050
    Here are the links for those documents : (These documents are for CS5, CS5.5 and applicable to CS6 also)
    https://help-internal.adobe.com/content/help/en/creative-suite/kb/errors-exit-code-6-exit. html
    https://help-internal.adobe.com/content/help/en/creative-suite/kb/installation-error-dw050 -dw020-cs5.html
    If all other applications are running fine, than try the Acrobat cleaner tool to remove any leftover files from this link( http://labs.adobe.com/downloads/acrobatcleaner.html ) and than try to Install Acrobat XI Pro on your computer.

  • Confusion with 2 changeset begin and end method In ODATA DPC_EXT Class

    Hi Experts,
    for batch batch update,create and delete call i am using two methods
    /IWBEP/IF_MGW_CORE_SRV_RUNTIME~CHANGESET_BEGIN
    /IWBEP/IF_MGW_CORE_SRV_RUNTIME~CHANGESET_END
    /IWBEP/IF_MGW_CORE_SRV_RUNTIME~CHANGESET_BEGIN{
          mf_batch = abap_true.  //  this one is an custom attribute i have created for my DPC_EXT class
           EXIT.
    /IWBEP/IF_MGW_CORE_SRV_RUNTIME~CHANGESET_END{
             CHECK mf_batch EQ abap_true.
      commit work.
    CLEAR mf_batch.
    first of all i am not getting why we write EXIT in changeset_begin method.
    Including this also i am getting other 2 method of different interface in my DPC_EXT
    /IWBEP/IF_MGW_APPL_SRV_RUNTIME~CHANGESET_BEGIN
    /IWBEP/IF_MGW_APPL_SRV_RUNTIME~CHANGESET_END
    So could you please tell me what is the purpose of extra 2 methods?
    Regards
    Saumya

    Hi,
    Reason for 2 methods --> As the DPC_EXT class implements 2 interfaces /IWBEP/IF_MGW_APPL_SRV_RUNTIME and /IWBEP/IF_MGW_CORE_SRV_RUNTIME hence you will see 2 methods. This is also true for other methods such as get, read, create entity etc.
    But to redefine CHANGESET_BEGIN and CHANGESET_END, you need to redefine
    /IWBEP/IF_MGW_APPL_SRV_RUNTIME~CHANGESET_BEGIN
    /IWBEP/IF_MGW_APPL_SRV_RUNTIME~CHANGESET_END
    Regarding EXIT statement, if the methods do not contain any code ie virtually empty then you could just redefine it with EXIT statement means just exit with empty implementation.
    I will suggest to read this document http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40546820-3ea7-2f10-dfab-be373c0da357?overridelayout=t… for more explanatiion.
    Regards,
    Chandra

Maybe you are looking for