SAP Exit

Hi all,
         Below output we required, kindly guide me.
User I/P: FISCAL YEAR/PERIOD - 001.2011
Report:______ACTUAL_______VY_ACTUAL
NET SALES--4000--
4000
User I/P: FISCAL YEAR/PERIOD - 002.2011
Report:______ACTUAL_______VY_ACTUAL
NET SALES--5000--
9000
If i have FEB 2011 it has to add jan and feb actual and put into VY_ACTUAL.
Is there any standard SAP exit available for FISCAL YEAR/PERIOD . Kindly guide me.
Thanks & Regards,
R. Saravanan

HI,
    Below code i written to find jan and i/p given year. EG: ZCE_C26
User i/p current month and year i have find using this SAP exit: 0P_FPER.
VY_ACTUAL: SELECTION FISCAL YEAR/PERIOD RESTRICT: VALUE RANGE: LOW: ZCE_C26 AND HIGH 0P_FPER.
and VALUE TYPE = 10.  RIGHT CLICK FISCAL YEAR/PERIOD given constant selection also.
But my output: user given input month only displaying in VY_ACTUAL column. If i giving ZCE_C26 SINGLE it correctly showing jan of user input year. but given in range not all month data getting added. Please help me.
CODE:
WHEN 'ZFP_FIRST'.
    IF i_step = 2.
      CLEAR: zmm, zyy, zfiscper, zstrlen.
      LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = '0P_FPER'.
        zmm = '001'.
        zyy = loc_var_range-low(4).
        CONCATENATE zyy zmm INTO zfiscper.
        CLEAR l_s_range.
        l_s_range-low  = zfiscper.
        l_s_range-sign = 'I'.
        l_s_range-opt  = 'EQ'.
        APPEND l_s_range TO e_t_range.
      ENDLOOP.
    ENDIF.

Similar Messages

  • Current Workday SAP EXIT variable not aligned with correct work days

    Hello,
    I am trying to use the Current Workday variable within a report so that the data will only be refreshed when the calendar day is Monday - Friday. Users look at this report every day, but when they get the report on Monday we would like for the date to be restricted to the previous Friday, and then switch back to Monday's date when they view the report on Tuesday. In order to do this we have placed the Current Workday variable from the Calendar Date characteristic with an offset of negative 1, but it is showing Sunday's date when they look at the report on Monday.
    My questions are:
    -Does this variable use the factory calendar that can define the work days?
    -If so, which Factory calendar does it use? I have gone to the Tcode SCAL but I can see there are many different factory calendars and I have no idea which calendar this variable pertains to. I have also transferred the global settings for the factory calendar from the source system, and I see no change within the variable.
    -How can I see the program name behind this SAP Exit variable? My thinking is that I could at least look at the code to see if perhaps I can find out the factory calendar ID the variable refers to from there.
    Any help on this would be greatly appreciated! Until this is fixed I have to manually adjust this report every Monday and Tuesday morning!! Not ideal.

    Hi Kelly,
    I am not sure whether this can be done by an SAP Exit variable.
    But you may try this using a Customer exit variable by using the Function module DATE_COMPUTE_DAY.
    The function module "DATE_COMPUTE_DAY" will return the day by 1 to 7 when you input date.
    Monday : System will return value = 1
    Tuesday : System will return value = 2
    Wednesday : System will return value = 3
    Thursday : System will return value = 4
    Friday : System will return value = 5
    Saturday : System will return value = 6
    Sunday : System will return value = 7
    So input sy-datum to this FM and find the number of day. If it is Monday, the number will be 1.
    If output is 1, then offset date by -3 to that of Friday, else offset by -1 to previous day.
    Hope this helps,
    Regards,
    Hari

  • How to look at sap exit

    hi gurus
    how can i read a sapexit for a standard variable created by sap. i need to replicate that same code and modify it and make my own user exit for a custom variable.
    thanks

    Hi Adnan,
    SAP exit variables will be filled with function modules and their name starts with RSVAREXIT. So u can go to SE37, and use RSVAREXIT* and press F4 to get input help. Select one of your interest to see the code.
    Regards, Uday
    Assign points for helpful answers and get one point for yourself.

  • SAP Exit for Current Posting Period

    H All,
       I am executing a query and it should always take the Current Fiscal Year & Current period into consideration. I don't see any Standard SAP exit which is provided for this. There is an SAP exit for Fiscal year/Period but I need both of them seperately.   Can anyone please provide a sample code for "Current posting period".
    Points will be assigned!
    Thanks a lot!

    Hi Sia
    Here is some cmod code that might help:
    These should be run in i-step = 1
    DATA: l_period        TYPE t009b-poper,
              l_txt4(4)      TYPE c.
    *Variable ZCCCFYEAR that defauts to current Fiscal Year
            WHEN 'ZCCCFYEAR'.
              l_txt4 = syst-datum(4).
              l_period = syst-datum+4(2).
    *Handles FiscVarnt, period 6 is end of year so period 7 is new year
              IF l_period > '06'.
                l_txt4 = l_txt4 + 1.
              ENDIF.
              l_s_range-low = l_txt4 .
              l_s_range-high = ''.
              l_s_range-sign = 'I'.
              l_s_range-opt = 'EQ'.
              APPEND l_s_range TO e_t_range.
    *Variable ZCCPPER that defauts to current Posting Period
    Code adds 6 to current year period to be inline with Fiscal Year Variant (ie.per1 = july(7)),
            WHEN 'ZCCPPER'.
              l_period = syst-datum+4(2) + 6.
              IF l_period > 12.
                l_period = l_period - 12.
              ENDIF.
              l_s_range-low = l_period.
              l_s_range-high = ''.
              l_s_range-sign = 'I'.
              l_s_range-opt = 'EQ'.
              APPEND l_s_range TO e_t_range.
    Hope this helps
    Josh

  • To use a Sap Exit variable in a diferent infoobject of the same type

    Hi gurus,
      I have the Sap Exit standard variable 0P_KEYDT in the infoobject Posting Date (0PSTG_DATE), and i need use this variable with the Document Date (0DOC_DATE), but i don´t have it in the infoobject. Both infoobjects are referenced by 0DATE.
    Are there some way to copy the variable from one infoobject to other, or i need make my own exit?
    Thanks in advance and regards.

    If both of them are the same type means they are referring to 0DATE, then you should be able to access the standard variable defined. What you need to do is, delete the variable  and recreate it, but when you recreate the variable don't refer to a characteristic 0PSTG_DATE but refer to date object so that it will be available to all date types.
    I will tell you the side effect of doing this, changing the standard definition is always risky because if someone install the object again, then the change you made will be overwritten and hard to know what happened.
    thanks.
    Wond

  • How to find out the customer exit and sap exit variables created provider?

    Hi all,
    How to identify what are all the customer exit and sap exit variables are been created for an info provider. is there any tables which allow us to find out.
    thanxs
    haritha

    Hello haritha,
           SAP Exit and Customer Exit variables are created for  Characteristics and not for individual InfoProviders.
    So whenever the characteristic is used in the InfoProvider, by selection the appropriate variable the exit can be called.
    So the same Exit can be in one or more InfoProviders.
    Hope it helps.
    Thanks,
    Chandran

  • Combine two reports in query designer using key figure with sap exit

    Hi experts,
    i want to combine two reports in query designer using key figure with sap exit
    in the report 1 key figure calculation based on the open on key date(0P_DATE_OPEN)
    to calculate due and not due in two columns
    in report 2 key figure calculate in the time zones using given in variable Grid Width (0DPM_BV0) like due in 1 to 30 days, 31 to 60 days...the due amount based on the open on key date(0P_DATE_OPEN)
    to calculate in 1-30, 31-60, 61-90, 91-120, 121-150 and >150 days in 6 columns
    now i have requirement like this
    not due, 1-30, 31-60, >60, due,1-30, 31-60, >60 in 8 columns
    or
    not due, due, 1-30, 31-60, 61-90, 91-120, 121-150 and >150 in 8 col
    thank you

    Hi Dirk,
    you perhaps know my requirement,
    for the management to make used in one report,
    we have in reporting finacials Ehp3.
    Vendor Due Date Analysis - which show due, not due
    Vendor Overdue Analysis - show only due and analysis in time grid frame
    i want to combine in one report that show NOT DUE, DUE, DUE time frames in grid.
    krish...

  • How to find list of standard sap exits are there in BW

    HI ALL,
    Please tell me how can i find list of sap exits in BW
    Thanks in Advance.

    Hi,
    Refer this link, it will give you entire list + how to get the list:
    http://www.easymarketplace.de/userexit.php
    Hope this helps.
    Thanks,
    Rahul

  • Standard SAP EXIT on Text Variables

    Hello Experts,
    I am working on Customer Aging Analysis. first of all I want to use standard SAP Queries and want to have a look on standard SAP EXIT created on variables.i have opened the query no 0FIAR_C03_Q0005. here it shows me one text variable 0P_KEYD2. now i want to see that SAP EXIT created on the variable of Posting Date.
    I went to SE37. i entered the Function Module EXIT_SAPLRRS0_001. but i didn't get standard SAP EXIT given by SAP.
    Can anyone tell me from where i can activate or Get the standard SAP EXIT ?
    Regards,
    Komik Shah

    Hi Mansi,
    Thanks for your reply.
    now if i want to add that SAP EXIT in EXIT_SAPLRRS0_001, then can i add it ? or do i have to directly use RSVAREXIT_0P_KEYD2 ??
    All standard SAP EXIT will work the same way you  mentioned ?? means goto SE37 --> type Variable Name --> get that exit.
    Regards,
    Komik Shah

  • Where to see the logic for 0FYEAR (SAP Exit)

    There is already an SAP exit 0FYEAR. There is a requirement to make ZFYEAR1 just like 0FYEAR. So, i want to see where the code (logic) for 0FYEAR is present so that i can write the the same for my custom variable(ZFYEAR1) in CMOD. Can anyone help me with the name of the program?

    Include ZXRSRU01 --> Function Module EXIT_SAPLRRSO_001
    or
    Search for Function Module RSVAREXIT_ [variable name]
    Variable Name = 0FYear

  • Variable required for 0DOC_DATE, same as the SAP exit variable 0P_KEYDT

    Hi Gurus,
    I am currently trying to create a query based upon the InfoProvider -  FIAP: Line Item (0FIAP_C03).
    For the Characteristic Net Due Date (0NETDUEDATE) there is a SAP exit variable called Key Due Date (0P_KEYDT).
    I need to replicate this variable for 0DOC_DATE, which is what I need to use in this query.
    I do not have any knowledge of ABAP therefore could you please advise;
    1) Whether this variable can be replicated for 0DOC_DATE so that it defaults to system date - 1 day
    2) What steps I need to take to create this variable
    3) What is the exact ABAP code that I will need to do this.
    If there is a variable that already exists for 0DOC_DATE that acts in the same way as 0P_KEYDT then please let me know.
    Thanks
    Nate

    Hello,
    1&3) goto CMOD - create e.g. ZBWVARS. Add RSR00001enhancement. Modify ZXRSRU01 include.
    You need developer key to do that.
    CASE i_vnam.
    WHEN 'ZDOC_DATE,'.
        IF i_step EQ '2'.
          CLEAR l_s_range.
          l_s_range-sign = 'I'.
          l_s_range-opt = 'EQ'.
          l_s_range-low = sy-datum - 1.
          APPEND l_s_range TO e_t_range.
        ENDIF.
    ENDCASE.
    2) In Query Designer create customer-exit variable ZDOC_DATE.
    BR
    Ondrej

  • Webi  Bypassing BEx Authorization Variable with SAP Exit

    BEx query has Hierarchy Node Variable with Authorization as processing type. Its set as User Input ready
    When the Webi report is refreshed, the LoVs appear as per the Authorization. However, if user doesn't select any value (pushes from right to left in variable screen) he gets NOT_AUTHORIZED error. Which is not intended, it should check the authorization in the background via SAP exit and populate the result. This is how it runs inBEx query.
    However, in Webi it's giving NOT_AUTHORIZED error? This is how the product is designed to work or is it a bug.
    I see several forum threads and SAP KBAs/notes but they are not answering my question. Could anyone please help.
    I am ready to provide more details on this error.
    Thanks,
    Tilak

    Hi,
    this is how authorization variable would work in any of the clients and not just Web Intelligence.
    You created an authorization variable which is configured as "read for input", so the user is getting prompted.
    So In Web Intelligence the LoV shows up.
    if the user does not select a value, then you are not sending a value, so you basically asking for all data and you are not allowed to see all data and therefore you are getting the message "no authorization".
    if you are making authorization variables as ready for input then the user needs to select the proper values - regardless of the BI tool.
    if you want the authorization to be check in the background then the authorization variable should be configured to not have ready for input.
    regards
    Ingo Hilgefort

  • SAP EXIT Variable 0FYEAR is not working for Fiscal Year(OFISCYEAR)

    Dear SDN,
    I have created Simple Query.
    ROWS
    Company code(0COMP_CODE)
    Fiscal Year(0FISCYEAR)
    Columns
    Total Debit postings(0DEBIT)
    Total Credit posting(0CREDIT)
    Filters
    Companycode(Variable Selection option)
    Fiscal year(Varialbe SAPEXIT 0FYEAR)
    Fiscal Year Variant(K4)
    After executing the query in the variable screen only company code is displayed.
    SAP EXIT FISCAL YEAR VARIALBE(0FYEAR) IS NOT WORKING.....
    Is there any setting or activation is required to use SAP EXITS?
    Waiting for Solution......
    Thanks & Regards,
    Praveen.K

    Hi
    In this case you will have to use a Customer Exit (which is Ready for Input) Variable which gets Current Fiscal Year as a Default Value.
    In order to do that - you will need to create a Customer Exit Variable which is Ready for Input. The Variable will have to be assigned with Current Fiscal Year under I_STEP 1 (this refers to the coding of the Customer Exit in T-code: CMOD)
    If you need any help with the coding - don't hesitate to ask.
    Yaniv

  • Using SAP Exit Variable twice on the same report

    Hello all,
    I need to use the same variable -Current Calendar Day (SAP Exit)- to filter against 2 characteristics on the same report.
    Unfortunately it's not possible, here the error:
    " Variable 0DAT is used in both (structure) element 11T4741S4XTWZUAJ9IQ6DUDE1, and element AZLK9YCS4XGJ940MRPMLXMDS9 for various characteristics (ZCBBIDATE, ZCBPHTDT). This is not permitted as the characteristic is required for the F4 value help structure."
    May you please suggest me a way to do it ? Thanks in advance.

    Hi
    As the 0DAT varaible check the other standard varaible which provides the same function in business content.
    Or create a varaible with Customer exit and use it.
    In CMOD write the code in like this
    WHEN 'ZDAT'
    L_ZDAT = Sy-datum.
    L_S_RANGE-low = L_ZDAT.
    and follow the other codes as you define for other varaibles.
    REgards
    M.A

  • Behaviour of SAP-exit feeded variables in variants of Broadcaster

    Hi folks,
    We would like to use the SAP exit feeded variable 0CMONTH (reference charateristic: 0CALMONTH) for broadcasting functionalities, based on a query.
    0CMONTH itself has SAP-default setting under details' property "Variable is Ready for Input", flag active set.
    If we select such query for broadcasting functions, creating some variants with characteristic variable 0CMONTH, how would these variants behave after the current month will change, changing to the next month?
    Example for 0CMONTH:
    Now: July 2008, 07.2008
    Next month: August 2008, 08.2008
    Would the initial created and saved broadcaster variants also change the month-setting as it would do in the BEx area?
    Or must the user change these variants each month again?
    Any reply is much appreciated.
    Regards
    Chäsitzer

    Thanks a lot Uday,
    now my enquiry changes a bit:
    How does the Broadcaster and its designed variants behave in the case of non SAP-exit variables with property setting "Variable is Ready for Input", flag active set?
    Thanks for any replies.
    Chäsitzer
    Edited by: Chäsitzer on Jul 23, 2008 9:37 AM

  • U201CDisplay not allowedu201D for SAP Exit variables

    Hi All
    I collected some SAP Exit variables under a transport request and moved them to the BI DEV system from sand box systemu2026u2026u2026 when we are trying to use these objects in BIDEV in the query designer the variables are displaying as u201CDISPLAY NOT ALLOWEDu201D for all queries where ever these variables are used and we are not able to use them for drag and drop in the query designer
    I searched forum and find one similar thread but no answer
    Please help on this
    Thanks in advance

    Same here. Do you know how you resolved this issue?

Maybe you are looking for

  • How to do Post Install SAP Cryptographic in Netweaver CE 7.1 to enable SSL?

    Dear all, I have install sap netweaver CE7.1 and SSM 7.5. During installation netweaver CE7.1, i didn't tick install SAP Crytographic Library, and after that NWCE setup, now i want to install Crytographic file that i have download. here picture durin

  • How do i change apple id on my devices

    how do i change my apple id on my devices ??

  • Type tool inop in PSE9

    My type tool doesn't work in PSE9. I've reset my preferences and even done an uninstall and reinstall of the program. I don't think it's the program because the same problem is there even after a reinstall of PSE9. I hope someone on the forum has an

  • Help with PHP and CSS links (&mysql results)

    Hi Hope someone can help.  I have a column in a mysql5 database that records if an advert is 'featured' or not with 'yes' or 'no' in the database fields. I'm dynamically creating a list of adverts using php5 and DWCS3 where each ad comprises several

  • Lens Profiles

    For LR4.1:  When will we see a lens profile for the Canon G1X?  And what should I use RAW in the interim G10, G11 or G12?