Regarding User Exits in VARIABLES

can any one let me know,
1>  wen can we go for user exits in variables ?
2>  any suitable examples for that ?
3>  and can u people provide CODE for better Xplaination.?
Thanks and Regards,
Hawkin.

Read this article, it will clear your concepts.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f1a7e790-0201-0010-0a8d-f08a4662562d

Similar Messages

  • Help required regarding user exit for STPSHH01 IDOC

    Need help regarding user exit.
    I append the structure of VTTP and add one field with the name of ZDELCST i.e Delivery cost so i want to update that table once the idoc will post.
    I have to write the user exit for this but i have no idea how to do this so kindly requesting someone to please write the code for me and i will be very grateful to him/her.
    The functional module is IDOC_INPUT_SHIPPL
    and there is a CALL CUSTOMER-FUNCTION '012'
    this will take us to function module EXIT_SAPLV56I_012
    This includes ZXV56U08
    Within this include in need to map the delivery cost from the idoc to the new append filed VTTP-ZDELCST

    Hi,
    use this FM to update ur shipment
    variables
    DATA: lo_tp_g_tra       TYPE v56e_shipment_activities, "Data to modify
          lo_tp_g_shp       TYPE v56e_shipment,
          lo_tp_g_log       TYPE v56e_logfile, " Errors function
    call the function to modify shipments
    CALL FUNCTION 'SD_SHIPMENT_PROCESS'
      IMPORTING
        e_logfile    = lo_tp_g_log
      CHANGING
        c_activities = lo_tp_g_tra
        c_shipment   = lo_tp_g_shp
      EXCEPTIONS
        error        = 1
        OTHERS       = 2.
    Thanks,
    Sendil.

  • Funtion Module for user exits for variables used in BEx Queries.

    Hi,
    This is for BW Query customer exit variable (zvar2) for include ZXRSRU01 and exit :EXIT_SAPLRRS0_001.
    Can anyone please suggest the function modules that can be used to do the following.
    1)Read value of zvar1 from selection screen whatever
    user enters at run time.
    2)How to define the zvar2 in the include. zvar2 is the
    variable created in BEx to be populated from this
    customer exit.
    3)How to use case statment where once the value for zvar1
    is determined then,
    Case zvar1.
    when zvar1 = 0 , then zvar2 = 10
    when zvar1 = 1 , then zvar2 = 20
    3) Assign zvar2 value as computed in the case statement.
    Can anyone please help with the code to achieve this.
    Any information regarding function modules that can help write user exits for variable reading and input will be greatly helpful.
    Thanks
    Sarah.

    Hi Sarah,
    You don't need any FM for your issue.
    Please try thie sample code :
    DATA: VAR_INPIUT LIKE RRRANGEEXIT.
    CASE I_VNAM.
      WHEN 'ZVAR2'.
       CLEAR L_S_RANGE.
       IF I_STEP = 2."PROCESSED AFTER VARIABLE INPUT
    *Reading value of ZVAR1
        LOOP AT I_T_VAR_RANGE INTO VAR_INPIUT
          WHERE VNAM = 'ZVAR1'.
          CASE VAR_INPIUT-LOW.
    *FILLING ZVAR2
           WHEN 0.
              L_S_RANGE-LOW     = 10.
           WHEN 1.
              L_S_RANGE-LOW     = 20.
          ENDCASE.
          L_S_RANGE-SIGN     = 'I'.
          L_S_RANGE-OPT      = 'EQ'.
          APPEND L_S_RANGE TO E_T_RANGE.
          EXIT.
        ENDLOOP.
      ENDIF.
    ENDCASE.
    Hope this helps
    Joe

  • User Exit Formula Variable - to calculate #days of any month

    Hello Team,
    I need a column in my report layout which shows the #days of any month entered by the user. User entry 01.2014 to 03.2014 report should have 31 28 & 31 according to the Calendar month in the rows.
    To achieve this I'm using a user exit formula variable in my local calculation. An Optional Interval User Entry variable on CALMONTH is also put in at the filter section.
    I created a CLASS with 2 methods CONSTRUCTOR( vNam = 'ZC2C_DSONWDAYS') & GET_VALUES. We may also use FM /OSP/GET_DAYS_IN_MONTH but i need the code because I failed terribly.
    GET_VALUES method code:
    if i_step = 2.
       DATA: wa like line of i_t_var_range[].
       DATA: L_V_INDICATOR TYPE SCAL-INDICATOR.
       data: begin of ccrange ,
               iobjnm(30) type c,
                 sign(1),
                  opt(2),
                  low(7) type c,
                 high(7) type c,
             end of ccrange.
      data: l_s_range type rrrangesid,
            no_of_wrkdays type i value 0,
            startdate     type d,
            enddate       type d,
            startmth(2)   type c,
            endmth(2)     type c,
            startyr(4)    type c,
            endyr(4)      type c,
            endday(2)     type c,
            leapyear      type i value 0,
            dayofmth      type syst-datum.
    DATA:  day           type SCAL-INDICATOR.
      loop at i_t_var_range into wa.
        if wa-iobjnm = '0CALMONTH'.
           ccrange-sign = wa-sign.
           ccrange-opt = wa-opt.
           ccrange-low = wa-low.
           ccrange-high = wa-high.
           exit.
        endif.
      endloop.
      startyr  = ccrange-low+0(4).
      startmth = ccrange-low+4(2).
      endyr    = ccrange-high+0(4).
      endmth   = ccrange-high+4(2).
      concatenate startyr startmth '01' into startdate.
    * determine last day of the end month
      if endmth = '02'.
         leapyear = endyr mod 4.
         if leapyear = 0.
            endday = '29'.
         else.
            endday = '28'.
         endif.
      elseif ( endmth = '04' or endmth = '06' or endmth = '09' or endmth = '11' ).
           endday = '30'.
      else.
           endday = '31'.
      endif.
      concatenate endyr endmth endday into enddate.
      dayofmth = startdate.
    IF startmth <= endmth.
       startmth = startmth+1.
    ENDIF.
    * do it for all days in space of time
       WHILE dayofmth <= enddate.     "to date
         CALL FUNCTION '/OSP/GET_DAYS_IN_MONTH'
         EXPORTING
           input = startmth
         IMPORTING
           output = no_of_wrkdays.
           CLEAR l_s_range.
           l_s_range-sign = 'I'.
           l_s_range-opt = 'EQ'.
           l_s_range-low = no_of_wrkdays.
       append l_s_range to e_t_range.
           startmth = startmth + 1.
           CONCATENATE startyr startmth '01' into dayofmth.
        ENDWHILE.
    endif.
    endmethod.

    Hi Vasavi,
    1)  Create a FV to calculate no.of days  like below, with calmonth in ref characteristics :
    2. If you see number of days is an attribute of calmonth. Please enter that as below :
    3. Create a formula with above variable and make sure calmonth is added in the row.
    Its giving output like this :
    I hope this will help you.
    Thanks,

  • User Exits: Global Variables

    Please help me in how to create User Exits: Global Variables
    if there is step by step doc pls send it to my mail id
    [email protected]

    I guess by default (if text is maintained) F4 for calmonth should show you key, short description and long description.
    refer: Variable - Name of month instead of Number
    Edited by: sam hennry on Mar 17, 2008 11:00 AM

  • Regarding User Exites

    Hi Friends,
    I created a button on application tool bar which contain a tab (subscreen) with the help of Badi,for a standards T-code on the tab i am taking one field which is comman on the standard screen and tab which is created .
    [i<u>]when i am changing the field which is on the standard screen it must effects the data base table with out selecting the application toll bar button which i created tab
    and what ever logic i written for the screen it must trigger and update the data base table .</i></u>
    [i<u>]for that t-code there are no exits ,there is only one exits for save i tried by placing the field which i am using but it is not get the value in that exits ,after coming from the exits it is get the value</i></u>
    Can any one suggest solution for it, ASAP
    Rishi

    Hi Friends,
    Kindly Provide replay for my query which i posted bec it is urgent .
      <b>Regarding User Exites</b>
    Thanks
    Rishi

  • Get hierarchy name in user-exit from variable

    Hi everybody
    I have a WebTemplate with different queris. The user can select the costcenter in the beginning. In a further query of the template I show all the orders regarding that costcenter. But with this concept I block all the orders with one user executing the template.
    So now I want to select the orders that belong to the selected costcenter in a user exit (with a variable). This works fine when the user selects a costcenter.
    But it is also possible that the user selects a higher node of the costcenter hierarchy. How can I get all the orders that are connected to a costcenter node?
    So far I thought that I have to get all costcenter nodes that have the selected node as a parent (etc..) in the hierarchy table. But how do I find out which hierarchy is used by the query? I get the Variable name loc_var_range-vnam. And I know which table the hierarchy is in. But how do I find the correct HIEID?
    or does anybody have a better suggestion to solve my problem?
    Thanks in advance.
    Christophe

    Hi Christophe,
    I've written a code for finding the name of hierarchy using the node.
    It's little bit big code, if send ur email id i can pass it to you.
    hope that helps you.
    regards
    rajesh

  • Query regarding User Exit

    Hi exps
    Could you please tell me , which user exits get triggered when I save
    Invoice List (T code  : VF22) producing Idoc.
    Also tell me whether the exit EXIT_SAPLVEDF_002 get triggered during this
    process or not ?           
    Let  me know soon
    Regards
    Tulip

    J_3RSINV
    SDVFX001            User exit header line in delivery to accounting
    SDVFX002            User exit for A/R line in transfer to accounting
    SDVFX003            User exit cash clearing in transfer to accounting
    SDVFX004            User exit G/L line in transfer to accounting
    SDVFX005            User exit reserves in transfer to accounting
    SDVFX006            User exit tax line in transfer to accounting
    SDVFX007            User exit: Billing plan during transfer to Accounting
    SDVFX008            User exit: Processing of transfer structures SD-FI
    SDVFX009            Billing doc. processing KIDONO (payment reference number)
    SDVFX010            User exit item table for the customer lines
    SDVFX011            Userexit for the komkcv- and kompcv-structures
    V05I0001            User exits for billing index
    V05N0001            User Exits for Printing Billing Docs. using POR Procedure
    V60A0001            Customer functions in the billing document
    V60P0001            Data provision for additional fields for display in lists
    V61A0001            Customer enhancement: Pricing
    Check with these .

  • Regarding User/exits

    Dear SAP guru's
    Our requirement is  VBFA-VBELN table need to bring the  invoice no  BKPF  accounting document no and  store in  Field -BKTXT
    Scenerio  Sales order ( order type OR) ( T#codeVa01)-Delivery note -LF type
    ( VL02 gets created automatically according to my company process) -invoicetype F2(VF01) Invoice than  with refernce to invoice type ( F2)  create Credit memo ( T,code VA01) and accounting document , in accounting Document Header ( BKPF-BKTXT) invoice number should come in BKPF-BKTXT
    please help me it urgent to me.....
    Thanks & Regards
    Nagaraju Chintam

    Dear Prashanth.
    Thanks for your reply. almost i understand whats userexit.
    I tried below and i found these are the userexits available in VT01N-shipment creation.
    Now i want to confirm which is most suitable userexits amoung them matching my requirement.
    do you have any idea on this.
    After shipment creation i want this sales data to be stored in addon table..which user exits can i use for writing this code.
    suggestion pls...
    transaction Code - VT01N                    Create Shipment
    Exit Name
    Description
    MV56AINI
    Initialization of transaction control for transportation
    V56AFCCH
    Shipment processing: Check function code allowed
    V56AGTAR
    User Exit for Filtering Shipping Unit Calculation
    V56ARCHV
    Customer-spec. checks for archiving shipments
    V56ATKTX
    Change the number of lines for text input in shipment
    V56BMOD
    Transportation processing: Field modification
    V56DISTZ
    Shipment Processing: Determine Distance
    V56FCOPY
    Shipment processing: Copy delivery data
    V56FSTAT
    Shipment processing: Activities when setting a status
    V56L0001
    Status of Shipments for a Delivery
    V56LDELI
    Read Delivery Data for Shipment Processing
    V56LOCID
    Shipment Processing: Determine Location Identification
    V56MVT04
    Extensions for Collective Processing of Shipments
    V56SLDET
    Shipment processing: Leg determination
    V56TDLIF
    Filter Delivery Items for Shipment
    V56UCHCH
    Shipment processing: Check whether changes were made
    V56UCHCO
    Check shipments are complete
    V56UDLUP
    Obsolete as of 4.6C: Delivery Update on Delivery Routines
    V56UNUMB
    Shipment number allocation
    V56USTAT
    User-individual definition of transportation planning status
    V56USVDO
    Update new objects for transport
    V56USVDP
    Preparation for updating new objects for transport?
    I will surely reward points. Thanks for your suggestion.
    ambichan

  • Regarding user exits in enhancements

    HOW TO GENERATE USER DEFINED  SERIAL NUMBERS WITH MB1C(PLANT MAINTANANCE) TCODE USING USER EXIT.

    Hello Basi reddy,
      Try this..
      Include program - MM07MSE0_SERIALNUMBER_USER_EXI or
      Function module - EXIT_SAPLIE01_007
    Best Regards,
    Naresh

  • Regarding User Exit for VD01

    Hi All,
    I need to do some special validations based on the partner funstion which is entered during the customer creation through the transaction VD01.
    May i know which user exit can be used for the above or any badi can be used
    Thanks.

    Hi,
    User sxit for VD01   SAPMF02D  User exits: Customer master data
    Regards,
    Prashant

  • Regarding user exit of Service Entry (ML81N)

    Hi All,
    I have small issue of Service Entry(ML81N).
    These are the following enhancements for Service Entry.
    SRVDET, SRVEDIT,SRVESI, SRVESKN,SRVESLL,SRVESSR,SRVEUSCR,
    SRVKNTTP,SRVLIMIT,SRVMAIL1,SRVMSTLVSRVPOWEB,SRVQUOT,SRVREL,SRVSEL.My requirement is i have to send Service entry sheet no and posting date and some fields to .net application (after save the transaction) I tried the above enhancements using break point. But no enhancements are fired after save.  Some enhancements(SRVDET, SRVESKN,SRVEUSCR,SRVSEL) r triggered before save. But i need the enhancement and user exit which is fired after click on save button in transaction. Is there any other enhancements there? Plz help me any one familiars this one.
    Regards,
    Ravi Kumar

    Hi All,
    I need to add tab (along with few fields) on ML81N and need to pass the data in ESSR table.
    I am using enhancement - SRVEUSCR, thru which i am able to display tab on screen.
    But i am not able to capture value enter on screen in function modules:
    EXIT_SAPLMMSK_020 AND EXIT_SAPLMMSK_021.
    I have added fields in structure - CL_ESSRDB and using the same fields in new customer screen in SE51.
    Please assist and let me know where i am going wrong.
    Thanks
    Rajesh

  • Query with user-exit hierarchy variable and input ready hierarchy node var.

    Hello everyone.
    we are using several hierarchies (2005, 2006 and 2007) of the same info object 0FUNDS_CTR (one for each fiscal year). We would like to be able to use same reports regardless of chosen fiscal year (selected hierarchy) and ever more, to select node inside proper hierarchy. At the moment reports use 3 parameters:
    1) fiscal period from - fiscal period to
    2) hierarchy name
    3) hierarchy node
    Our goal is to get report with only 2 parameters:
    1) fiscal period from - fiscal period to
    2) hierarchy node
    since hierarchy name could be derived (user exit) from fiscal period.
    When user selects hierarchy node he is being asked to select hierarchy name (despite of user exit for hierarchy name) and key date (populated with current date).
    We would like to avoid step of user selecting hierarchy. Is it possible?
    Any other approaches to problem would be appreciated.
    Kind regards,
    Josko.

    Hi Jörg,
    As mentioned, I_STEP = 3 is  processed once per query, not once per varaiable.
    If this statement is placed within case-endcase for I_VNAM it never will be processed.
    Please take a look on this, it might be helpful..
    Regards
    Joe

  • Regarding User Exit for SD Field Catalog

    Hi All,
    I need to insert a field called "Transportation Zone" in the field catalog.
    Path: sproF5sales and DistBasic FunctionsPricing-Pricing ControlMaintain Condition Tables..
    Now using CMOD Tcode, how to locate the appropriate Exit for this issue...???
    Regards
    PAvan

    Hi Pavan,
    You can see these user exits in SE38
    To create a new field in the field catalog, the field needs to be put in field catalog with a Z name, say ZZ_TRZONE
    Now you have to make changes in these 2 user exits to populate the transportation zone which is coming from masterdata into sales order , into the structure TKOMP ...etc which are populated during pricing. If you achieve that, then the condition records will be updated.
    Please let me know if you need further information on this.
    Rwd point if it helps.
    BTW, These userexits are used only if the field which you want to include in the condition table is not in the list of allowed fields in the field catalog or not in structures KOMG, KOMP, KOMK. If the field is already there in field catalog and in all these structures, then there is no  need for user exit. You just need to create the condition table.
    Message was edited by:
            iimnava

  • Regarding user-exit for customer return order in sales order creation

    Hi,
    My problem is when sales order type ZRE(Customer return) is created with refrence to Invocie i have to check the quantity in the return order is less than the original invoice or not.If quantity in return order is greater than invoice quantity then i have to raise error message.For this which user-exit is suitable in sales order program SAPMV45A.
    Thanks,
    shyla kumar

    Hi
        Use can use MV45AFZZ AND MV45AFZB userexits
    Within mv45afzz USE CAN form related to VBAP or
    save_document_prepare.
    Please reward if useful.

Maybe you are looking for

  • Key commands in Logic 8

    Can anyone confirm this: I have always used the key command "ctrlshift1" to attach "staccatto" to a note in score. If I now use this key command now, I only get screenset 1, no matter what I do. Could this be related to the scandinavian localization?

  • Windows Vista trouble finding airport base station

    I recently bought an AirPort Extreme 802.11n. It was easily able to connect it to my mac, but when I try to connect it to my Windows Vista desktop computer, the base station in the airport utility software cannot be found. It finds the internet from

  • Want to upgrade but running bootcamp! What to do?

    I want to upgrade to mountain lion from snow leopard so I can have icloud capabilities.  However, I'm running bootcamp because I am an architecture student and the programs I need aren't made for macs.  Is there a way to upgrade to mountain lion with

  • Tomcat Servlet: System.out.println in servlet not printing to catalina.out

    Hello friends , When i m using System.out.println() in servlet its o/p should come in catalina.out but its not coming plz help me....one thing more can we replace exixting catalina.out file with new one... please Help me soon. Thanks

  • OviSuite 2.2.1.23 crashes during calender sync

    I upgraded to the latest OVI suite and since then, OVI Suite crashes in while syncing my calender. Can someone help or suggest a workaround etc... I have the system info and dump, if someone from Nokia wants to have a look at the dump let me know whe