Types User-exit

Hi my Friends
Plz can Give me exmples type User-exit.
- What's la difference betwen Use-exit and Baddi ?
Said
<THREAD LOCKED. Please stop asking interview questions. There is already a lot of information out there, refer to the [Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement] on how to ask a good question and learn to search>
Edited by: Mike Pokraka on Oct 14, 2008 3:16 PM

Hi,
the user exit ZXPADU01  is for all infotypes , it should work for all infotypes ,
one more things is this will  triggered only for create and copy operation only,
means automatically it will be called in PA40 beacuse this is create opration
and in PA30 it will be worked for create and copy operation only,
so try to activate this include and respective function and its function group .
and try to test by including break-point in this code.
dynamic actions will be used for creating infotypes and respective default values based on other infotype .
please do the same and let me know so that we can think for other solution.

Similar Messages

  • Calculating with formula variables of type user exit

    I created the following query:
    Rows: Characteristic = Employee
    Column: KYF = Status
    Filter: Year, Month
    The KYF ist a formula containing a formula variable. This variable of type user exit should return a value recording to the value of employee and has to be read in a customizing (data-) table by the user exit.
    Is it possible to read the values of employee row by row from the internal table which contains the amount of data before processing to output screen and fill the 'Status'-KYF or should I create a virtual keyfigure for this case.
    Thanks for all your feedback,
    Angelika

    Hi,
    It seems like Status is master data of Employee.
    As per your process, if you do either formula variable or virtual keyfigure you will face query performance problem. More over you cant simply access record by record characteristic value in formula variable. It will be another complex process like you have to call the characteristic value via replacement path.
    You have the following choices:
    You mentioned master data is availabe in custom table. Try to pull the custom table master data into employee info object. Maintain  status as one of the attribute of the master data. Then you can display Status value simply in the report. This will be global access like you use this Status value n number of info providers which is having Employee as one of the info object in the info provider.
    If the previous way is not possible, include the Status in the info provider level and write a simple update routine to populate the values. This will be info provider level.
    I am not sure whether you are in development environment or productive. If developement, then you can choose simply any one of the above ways.
    Regards,
    Vivek

  • BPS Variable for hierarchy type User-Exit

    I try to make this type of variable.
    The variable is NCSTOPU, hierarchy is
    NHSTOPU like
    NHMAIN
    -- 4
        -- 401
        -- 402
        -- 403
      -- 5
         -- 501
         -- 502
         -- 503
    So The ABAP is
    FUNCTION ZCCB_AHR_VAR_HIER.
    *"*"Ëîêàëüíûé èíòåðôåéñ:
    *"  IMPORTING
    *"     REFERENCE(I_TYPE) TYPE  UPC_Y_VAR_TYPE
    *"     REFERENCE(I_AREA) TYPE  UPC_Y_AREA
    *"     REFERENCE(I_VARIABLE) TYPE  UPC_Y_VARIABLE
    *"     REFERENCE(IS_HIE_KEY) TYPE  UPC_YS_HIE_KEY
    *"  EXPORTING
    *"     REFERENCE(ET_HIE_NODES) TYPE  UPC_YT_HIESEL
    DATA ZHIER type upc_ys_hiesel.
    *CHANM  UPC_Y_CHANM
    *HIENM     UPC_Y_HIENM
    *HIEVER     UPC_Y_HIEVER
    *DATETO     UPC_Y_DATETO
    *NODENAME     UPC_Y_NODENAME
    *HIECHA     UPC_Y_CHANM
    *DUMMY_LEAF     UPC_Y_DUMMYLEAF
    *TO_CHADEP     UPC_YTO_CHADEP
    ZHIER-CHANM      = 'NCSTOPU'.
    ZHIER-HIENM      = 'NHSTOPU'.
    ZHIER-NODENAME   = '5'.
    ZHIER-HIEVER     = 'A'.
    ZHIER-HIECHA     = '5'.
    ZHIER-DUMMY_LEAF = ''.
    ZHIER-DATETO     = '99993112'.
    INSERT ZHIER INTO TABLE ET_HIE_NODES.
    ENDFUNCTION.
    But it doesn't work.
    The mistake is
    Selected node 5 does not exist
    The node 5  selected as the start value for characteristic 5 with the specified compound table does not exist in hierarchy NHSTOPU.
    What is the problem?

    Configuration of the variable:
    Variable Type - Hierarchy node,
    Characteristic - NCSTOPU,
    Hierarchy - NHSTOPU,
    Replacement type - user-exit,
    FUNCTION MODULE NAME - ZCCB_AHR_VAR_HIER.
    In the planning level the characteristic NCSTOPU is set with this variable.
    In the Layout  1) the characteristic NCSTOPU - Lead Column,
                         2) Hierarchy in the lead column -  Hierarchical Data Model, BW Hierarchy

  • Variable of type user exit

    Hi all,
    I have a variable of type user exit which is used to let the user enter a characteristic value in a popup-box.
    I am able to display the box and let the user enter a value, but then I'm stuck. Where does this value go?? How can I make sure that this value actually is used in the variable??
    I am attaching my current code cause I feel like something is missing with regards to exporting the correct value.
    Thanks and regards,
    TM
    DATA: i_sval Like sval occurs 0 with Header Line.
    data: v_subrc like sy-subrc.
    i_sval-tabname = 'ZASSET_AREA'.
    i_sval-fieldname = 'AREA'.
    i_sval-fieldtext = 'Asset Area'.
    i_sval-field_obl = 'X'.
    append i_sval.
    CALL FUNCTION 'POPUP_GET_VALUES'
    EXPORTING
    NO_VALUE_CHECK = ' '
    POPUP_TITLE = 'Asset Area'
    START_COLUMN = '5'
    START_ROW = '5'
    IMPORTING
    RETURNCODE = v_subrc
    TABLES
    FIELDS = i_sval
    EXCEPTIONS
    ERROR_IN_FIELDS = 1
    OTHERS = 2.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

    Hi,
    From the code you have written, I observe that after capturing the value in the pop-up, you are not passing the value back to the variable table.
    What I would suggest is, pass the variable value to the upc_var_cha_act table explicitly. This might resolve the problem.
    Sunil

  • Purchase requisition document type- USER EXIT

    Hi,
    I want to create two separate document type for material and services for PR that is created from PS. What is the user exit I shall use for the purpose or any other way to do.
    Zinni

    Hi
    Check this link for user exit.
    http://sap.niraj.tripod.com/id21.html
    Thanks
    S.Murali
    Edited by: S. Murali on Jul 8, 2009 2:30 PM
    Edited by: S. Murali on Jul 8, 2009 2:30 PM

  • BW-BPS Variables of type hierarchy node - user exit

    Hello,
    I created a variable SEM of type hierarchy node and with the replacement type "user exit". So I created a function to fill this variable and I don't find the right type for import and export parameters of my function. I have a dump : CALL_FUNCTION_CONFLICT_TYPE in the method GET_HIE_NODES
    Thank you for your help.
    Catherine Bellec

    Hello,
    For your information :
    the input parameter has the type UPC_YS_HIE_KEY and
    the export parameter the type UPC_YT_HIESEL
    Catherine Bellec

  • SEM-BPS: Variables of type hierarchy node user exit

    Hi,
    I read the "How to.." document "Variables of Type Exit".
    This document has example for variable type caracteristic.
    I need to use this kind of solution for global variables:
    I have the same variables in several planning areas. I have defined one ‘leading’ area containing the variable that should automatically set/adjust the corresponding variables in the other planning areas.
    I've created a SEM variable of type hierarchy node and with the replacement type user exit. There is a standard function module API_SEMBPS_VARIABLE_GETDETAIL which has to provide the selected hierarchy node in leading area to other areas.
    The function works ideally in test mode, but it doesn't work as the SEM user exit.
    Does anyone have experience in this problem?
    Thanks

    Your function module shall follow the expected interface (required for exit type). Function API_SEMBPS_VARIABLE_GETDETAIL is not for such usage.
    To see an example FM that is fit for a 'user exit' processing for hierarchy node, have a look at FM UPF_VARIABLE_USER_EXIT_HIER. There is inline documentation in the source code that shall help you create your own FM if required.
    cheers,

  • User-exit in sem-bps

    In SEM-BPS, I have a layout for manually entering data. The purpose is to enter values for a list of cost centers. This list
    of cost centers should change according to a SKF (statistical key figure) entered in the layout's header.
    The list of cost centers linked to a given SKF is read from a database table.
    This whole process is achieved with the use of a variable of type user-exit.
    However, I have two problems:
    1) If I change the SKF in the layout's header, I'm not beeing able to force another read to the database table, in order to
    refresh the cost center list;
    2) I'm not being able to detect the SKF selected in header, altough I'm using the function API_SEMBPS_VARIABLE_GETDETAIL to
    do so, wich returns all the SKF's (statistical key figures)
    Can anybody help me ?
    Thank you,
    Ricardo
    PS: Here is the exit, in its present state:
    <b>FUNCTION ZLACT_SFK_CC.
    ""Interface local:
    *"  IMPORTING
    *"     VALUE(I_AREA) TYPE  UPC_Y_AREA
    *"     VALUE(I_VARIABLE) TYPE  UPC_Y_VARIABLE
    *"     VALUE(I_CHANM) TYPE  UPC_Y_CHANM OPTIONAL
    *"     VALUE(ITO_CHANM) TYPE  UPC_YTO_CHA
    *"  EXPORTING
    *"     REFERENCE(ETO_CHARSEL) TYPE  UPC_YTO_CHARSEL
      DATA: ls_charsel TYPE upc_ys_charsel,
            seqno type i,
            tab_val_sel LIKE UPC_YS_API_VARSEL occurs 0 with header line,
            tab_val_sel_all LIKE UPC_YS_API_VARSEL occurs 0 with header line,
            head like UPC_YS_API_HEAD occurs 0 with header line.
      CLEAR:
      eto_charsel, eto_charsel[] ,
      tab_val_sel, tab_val_sel[] ,
      ls_charsel, char_value, seqno,
      t_ccusto, t_ccusto[],
      t_iest, t_iest[].
      case i_variable.
        WHEN 'PRVCCIE'.
    Get value of statistical key figure entered in layout's header****
    CALL FUNCTION 'API_SEMBPS_VARIABLE_GETDETAIL'
       EXPORTING
         I_AREA                   = 'PRRVS'
         I_VARIABLE               = 'PRVSK'
       TABLES
         ETK_VARSEL              = tab_val_sel.
    select cost center list from database table ***********************
        select
          from ZPR_CC_IE_CG
          appending corresponding fields of table t_ccusto
          where iest = tab_val_sel-low.
          clear:seqno.
          loop at tab_val_sel.
            ADD 1 TO seqno.
            ls_charsel-low   = tab_val_sel-low.
            ls_charsel-seqno = seqno.
            ls_charsel-opt   = 'EQ'.
            ls_charsel-sign  = 'I'.
            ls_charsel-chanm = '0STKEYFIG'.
            INSERT ls_charsel INTO TABLE eto_charsel.
          endloop.
          loop at t_ccusto.
            ADD 1 TO seqno.
            ls_charsel-low   = t_ccusto-ccusto.
            ls_charsel-seqno = seqno.
            ls_charsel-opt   = 'EQ'.
            ls_charsel-sign  = 'I'.
            ls_charsel-chanm = i_chanm.
            INSERT ls_charsel INTO TABLE eto_charsel.
          ENDLOOP.
      when others.
    *do nothing
      ENDCASE.
    endfunction.</b>

    Hello,
    I use the exit in the planning level and I link the exit to a variable for "0FISCPER".  I copy the data from a "Non-transactional Cube" to a "Transactional Cube" derictly of the period end closing.  I still need the data in previous month for calculations in BPS.  Maybe, I can use your code.
    Thanks and best regards
    Constant

  • Formula variable with User Exit

    Hi,
    Can we create a Formula Variable of processing type USER EXIT...which will display a constant Value Y
    Any syntax would be helpful
    Thanks

    Hi,
    check this for formula variables with user exits;
    http://wiki.sdn.sap.com/wiki/display/profile/Surendra+Reddy
    http://sap.ittoolbox.com/groups/technical-functional/sap-bw/customer-exit-to-derive-formula-variable-to-text-variable-sap-bw-35-3030684
    Also Check the issues and solution :
    Formula Variable with User Exit....Problem
    Thanks
    Hemav

  • User-exit not triggered(variable)

    Hi mates,
    I have two variables A (fiscal year), B(calmonth interval) and both of type user-entry(replacement type).  I defined C varible of type user-exit(replacement type). In C, i'm reading A & B values and checked whether B's interval is in A.
    eg: A input is 2007 (means 04.2006 to 03.2007).
    B  input interval 03.2006 to 10.2006.
    In C i'm checking whether B's interval is in A (fiscal year).
    Based on B's value, dynamically i have to show  input & output layouts. I defined one function module for C, but it's not triggering after entering input values in plng folder.
    How to trigger user-exit immediately after user enter input values? (without selecting dependent input or output layout tabs, these input or output layout uses varible B interval values for dynamically showing calmonth columns).
    Previously i defined few varibles like above, there user-exits triggered only after i choosing related input or output layout tabs.
    thanks,
    Raju

    The user exit written in the variable will be triggered if that variable is used anywhere in folder or layout or function or called in the logic of any other variable. In your case, C is not used anywhere that why it is not executing this code. For the required functionality, you have to create planning function of type exit and place this code. Run this function on layout open or folder opening something like this.

  • Deriving Planning Folder Technical Name From User-Exit

    Dear Colleagues,
    For those of you who know ABAP, do you know if it is possible to determine the technical name of a planning folder from within a user-exit (i.e. planning function that has been executed from within a planning folder)?
    Customer states: They would like to use a Planning Folder, and invoke a planning function of type user-exit (i.e. via button in folder), which will execute an ABAP that has a case statement for conditional execution of steps, based upon the technical name of the planning folder that invoked the call.
    Thank you in advance for any guidance or feedback you may be able to offer.
    -M

    Hi Michael,
    Write this code in the exit function
    FIELD-SYMBOLS: <fsl_class> TYPE REF TO cl_upb_pm_applc.
      DATA:          name(50),
                     plan_folder TYPE upb_y_ps_name.
      name = '(SAPLUPB_PM)gr_applc'.
      ASSIGN (name) TO <fsl_class>.
      IF sy-subrc = 0.
        CALL METHOD <fsl_class>->get_active_pm
          RECEIVING
            r_pm = plan_folder.
      ENDIF.
    Glad I could be of help to the mastero.
    Let me know if it worked.
    thanks

  • User exit: save PM order

    Dear all,
    I'm looking for an user exit that will be actived during order save. However, it seems most exits just for check, I can not change any data.
    The requirement is: if user save certain order, then field function area 'CAUFVD-FUNC_AREA' is filled automatically. This fiels in the order header.
    Thanks,
    Ben

    Hi,
    Orders     
    User Exits     BBPK0001
    Description     Exit for determining the external procurement profile
    User Exits     CNEX0013
    Description     Default item category for component assignment
    User Exits     CNEX0026
    Description     Customer enhancement for general inspection of material
    User Exits     CNEX0027
    Description     Customer enhancement: Plant, storage loc. finding for comp.
    User Exits     CNEX0037
    Description     Check new component
    User Exits     COCCA002
    Description     Customer Functions for Organizational Authorization Checks (SETTLEMENT)
    User Exits     COI20001
    Description     Changing of person found
    User Exits     COI20002
    Description     Alternative procurement of HR availability data
    User Exits     COOM0001
    Description     Customer Functions for Overhead Percentages
    User Exits     COOPA_01
    Description     Customer check modules for internal orders
    User Exits     COOPA002
    Description     Customer function for master data maintenance - internal orders
    User Exits     COOPA003
    Description     User-Defined Fields in the Order Master
    User Exits     COOPA004
    Description     Customer function: Print order master data
    User Exits     COPCP005 (see: 1, )
    Description     Material Costing: User exit for material valuation (strategy U)
    User Exits     CY190001
    Description     Capacity Planning: Change order operation
    User Exits     COZF0001
    Description     Change purchase req. for externally processed operation
    User Exits     COZF0002
    Description     Change purchase req. for externally procured component
    User Exits     CYPP0001
    Description     Change sequence criteria and sequencing
    User Exits     ICSV0001
    Description     Display of geographic location data
    User Exits     ICSV0002
    Description     Automatic task determination for service notifications
    User Exits     ICSV0003
    Description     Partner selection
    User Exits     ICSV0004
    Description     Check PM object and display object information
    User Exits     ICSV0005
    Description     Determining reason for rejection - resource-related billing
    User Exits     ICSV0008
    Description     Validation of additional partner types
    User Exits     IWMI0001
    Description     User exits for SM/PM IDOCs
    User Exits     IWO10001
    Description     Create a PM sub-order
    User Exits     IWO10002
    Description     Customer check for order release
    User Exits     IWO10004
    Description     Customer check for order completion
    User Exits     IWO10005
    Description     Customer specific determination of profit centre
    User Exits     IWO10006
    Description     FCode exclusion through customer enhancement
    User Exits     IWO10007
    Description     Customer enhancement - permits in the order
    User Exits     IWO10008
    Description     Customer enhancement: Determination of tax jurisdiction code
    User Exits     IWO10009
    Description     Customer Check for 'Save' Event
    User Exits     IWO10010
    Description     Customer enhancement for determining WBS element
    User Exits     IWO10011
    Description     Customer enhancement for component selection
    User Exits     IWO10012
    Description     Priority handling on central header
    User Exits     IWO10015
    Description     F4 Help for user fields on operation
    User Exits     IWO10016
    Description     Customer enhancement to check operation user fields
    User Exits     IWO10017
    Description     Determine external order number by customer logic
    User Exits     IWO10018
    Description     User fields on order header
    User Exits     IWO10020
    Description     Automatically include task list
    User Exits     IWO10021
    Description     Automatic task list transfer when creating order from notification
    User Exits     IWO10022
    Description     Determine calendar from user exit
    User Exits     IWO10023
    Description     Service order: Change header data for advance shipment document
    User Exits     IWO10024
    Description     Service order: Changes to items for advance shipment
    User Exits     IWO10025
    Description     Finding responsible cost centre
    User Exits     IWO10026
    Description     User check on setting status 'Do not perform'
    User Exits     IWO10027
    Description     User exit: Generate user-defined settlement rule
    User Exits     IWO10029
    Description     Inclusion of bill of material in PM/SM order
    User Exits     IWO10030
    Description     Predefining the fields for the profitability segment
    User Exits     IWO10031
    Description     Hide personnel number in PM/SM order
    User Exits     IWO10033
    Description     Customer-Specific Authorization Check PM/CS Order
    User Exits     IWO10034
    Description     Operation status based on the status of capacity requirements
    User Exits     IWO20001
    Description     User exit to pass routing/task list to order
    User Exits     IWOC0003
    Description     PM/SM authorization check of ref. object and planner group
    User Exits     M06B0002
    Description     Change communication structure for purchase requisition release
    User Exits     MGA00003
    Description     Material Master (Industry and Retail): Number Display
    User Exits     PPCO0001
    Description     Application development: PP orders
    User Exits     PPCO0005
    Description     Storage location/backflushing when order is created
    User Exits     PPCO0023
    Description     Checks changes to components
    regards,
    Venkatesan Anandan

  • Passing Multiple Single values in User Exits

    Hello All,
    I have a requirement where in, a user could enter either a single value, multiple single values or a combination of a range and single values.
    This set of values need to be passed on to a variable with in a user exit. I have been able to get either one single value to pass or one single range. I am unable to pass on multiple single values or a combo of a range and single value from the user entry.
    I would appreciate if anyone could help me with the structure of the code to pass multiple single values or combo.
    I was wondering if I would need to pass the values into an internal table first and then pass it to the user exit variable. However, as I am not a strong ABAP resource, I am struggling.
    Any and all help is deeply appreciated.
    Warm regards
    Sunil

    Hello Marc,
    There are two requirements which I was trying to address.
    1. IN few queries, the users enter either a range of profit centers or multiple single values in the pop-up window. I need to pass those values from that variable to an variable of type USer Exit to derive partner profit center values with in the query.
    For this I have been able to pass values for either a single value or a single range. I am unable to pass on values for multiple single values or a combo of a range and single values.
    2. I am trying to create a query for the top 5 customers to be used in the Corporate Performance Monitor. However, when I am trying to use the variable of type "replacement path", the system does not allow me to release it for OLE DB for OLAP.
    To obviate this problem, I was hoping to create a variable of typeUSer Exit" and then pass the values from the variable of type "replacement path" to this variable.
    Is it a workable solution? I was hoping that the method to pass the values in both the above scenarios might be similar.
    Please guide me.
    Warm regards
    Sunil

  • User-Exit for Checking Customer and Sale order type in Sales Order Creation

    Hi Experts,
      While creating the Sales Order once i enter sold-to-party and enter line item, i have to check the customer against the sales order type.
    Please suggest me if any user-exit or enhancement or BADI available for it.
    Thanks & Regards,
    -VM

    Hi
    Follow the below steps to find out what all BADI's are called when you press any button in any transaction.
    1) Goto se24 (Display class cl_exithandler)
    2) Double click on the method GET_INSTANCE.
    3) Put a break point at Line no.25 (CASE sy-subrc).
    Now
    4) Execute SAP standard transaction
    5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.
    6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.
    7) This way you will find all the BADIs called on click of any button in any transaction.
    mark if helpful
    Regs,
    Tushar Mundlik

  • User exit/BADI for condition type in shipment costing

    Hi! Does anyone know of any user exit or BADI or function module we can use to populate a value to a custom condition type we have created for shipment costing? We want to calculate the customs duty charges based on the purchase price of the item in the PO. As such, we need to go extract this information on the PO and populate it on the condition type.
    Appreciate any help on this.
    Cheers!
    SF

    Dear SF,
    These are the Exits available in the shipment cost process.Take help of ABAPer to choose the appropriate one.
    V54B0001  Shipment costing: Configure pricing                    
    V54B0003  Shipment Costs Calculation: Determine Rate Type and Cur
    V54B0004  Shipment Cost Calculation: Determine Status            
    V54C0001  Shipment costing: Description(s) shipement cost item(s)
    V54C0002  Shipment costing: Create shipment cost sub-items       
    V54C0003  Shipment Costs Processing: Determine Invoicing Party   
    V54C0004  Shipment Costs Processing: Determine Loc. for Tax Invoi
    V54D0001  Shipment Costing: Determining the Tax Countries        
    V54KSFRC  Determining the factors for apportionment of shipment c
    V54P0001  Extended Function Codes for Shipment Cost Information  
    V54U0001  Shipment cost processing: Check whether changes made   
    V54U0002  Check shipment costs for completion                    
    V54U0003  Specification of shipment cost number                  
    V54U0004  Formatting for update of new objects (shipment costs)  
    V54U0005  Updating new objects in shipment cost processing       
    V54U0006  Shipment Purchase Order - Header Data Supply           
    V54U0007  Shipment Purchase Order - Item Data Supply     
    I hope this will help you,
    Regards,
    Murali.

Maybe you are looking for

  • Is Calendar List View Available in ios7?

    I liked the old "list view" in calendar, but it seems to be unavailable in ios7 (using an iphone 5S).  That is the view where events were shown as a list which you could scroll through.  No mention of this change in the new iphone user guide, it only

  • Trouble Booting from External Drives; Trying to Defragment from External

    I have a Verbatim External Firewire 400/USB 2.0 hard drive that has Leopard installed on it. I have installed Drive Genius and Disk Warrior on the external drive. I boot holding the Option key and see the list of drives, and the External does appear.

  • Problem with Chart Pivoted Results

    Hi, I have upgraded catalog from 10.1.3.4.2 to 11.1.1.6.0 everything went fine. All reports are working but the report having Chart Pivoted Results doent show Chart. I tried to edit that request but no luck. it only shows Pivot table but no graph. An

  • Change background color of thumbnail

    How and where can I change the background color for the thumbnails listed in my pdf folder?  Currently they are sort of pink and I would like to change the color to white.

  • Still problems serializing xml-docs with xml-parser for java v2.0.2.7

    Hi ! I'm using the Oracle XML Parser 2.0.2.7.0 and get some problems when serializing the XMLDocument. In one class (DOMOut) I parse a xml-file with the oracle.xml.parser.v2.DOMParser, then obtain the XMLDocument and write it to System.out In another