How to creat test variable for required year value.

Hi All,
I have one report in that report description i want to display year value(zvar_year).
Ex : report description like "&zvar_year& report" in runtime it can show "2011 report".
when i run this report from feb to dec i have to show current year value, when i run this report on jan it have to show previous year value
For this i used diff type of test variable as fallowed bellow
1) test variable using replacement path with info object :
variable type:test
char:zyear
process type:replacement path
replacement variable with:infoobject
replace with :key
         (or)
iam trying bellow variable method but iam unable to see in variable list its charectaristic value variable
variable type:test
char:zyear
process type:replacement path
replacement variable with:variable  "this is customer exit variable built on zyear unable to see in variable list
replace with :key
2)test variable using customer exit:
variable type:test
process type:customer exit
*Problem:* when i used &zvar_year& in the description its showing  "&zvar_year&" only not "2011" value.
please let me know how to get the values into test variable
Thanks in advance
Edited by: RJANAR on May 18, 2011 7:17 AM
Edited by: RJANAR on May 18, 2011 7:23 AM

Hi,
For that you need to modify your customer exit as shown below
Data : zyear(4), zmonth(2).
zmonth = sy-datum+4(2).
if zmonth = '01'
zyear = sy-datum(4).
Zyear = Zyear -1.
elseif
zyear = sy-datum(4).
endif.
CLEAR L_S_RANGE.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
L_S_RANGE-LOW = zyear.
APPEND L_S_RANGE TO E_T_RANGE
Hope this helps you. Thanks.
Regards,
Raj

Similar Messages

  • How to create a variable for key figure (value will be entered by the user

    I want to create one query, where the user has to entered a max value when the query is started, so that only the query rows will be listed, where the key figure value (integer) of the row is smaller than the max value given.
    How can i define that variable which has to start at the begin of the query; and also the restricted key figure iin consideration of the KF variable.
    Thanks for helping
    Ar.

    Hi Arnaud,
                Go to Conditions-> Right click -> New Condition -> Edit -> NEw -> Selct the KEy figures from the dropdown( the KFs that are used in the rows/columns) -> Select Less than from the operator drop down (less than is for you case) -> Values, there is an option to create a variable -> Select the variable -> transfer. It will appear on the top.
    Save & Execute, you will find it in your selction criteria.
    Regards
    Sunil

  • How to create Presentation variable for columns and to use it in Narrative?

    Hi All,
    Anybody know how to create presentation variable for a column (i.e., i need to create it in edit formula section itself). And then, I should use it in Narrative section to display that column value. Is it possible? Or do i need to use any other variable for this requirement? If so please let me know, how to create it? This is very urgent requirement.
    Thanks in Advance
    Thenmozhi

    Hi Satya,
    I just want to create a table that should horizontally display the values like below:
         SUID Tag # :123456               Year Mfg: 2007                                                                                     
         Description: computer corporation FA ID#: 4576
         Model Number: 4569 hESC: #ert
         Serial Number: 78945 Flags: c
    Department: Hematology
    User: thenmozhi
    Database: OLAP
    I think we can create this type of report using either Narrative or Static Text. But I am not sure whether it is possible or not? And also another thing is that sectioning is applied for SUID Tag # column. So, depending on the dashboard prompt if the SUID Tag # retrieves two or more values.
    Then the first value for example 123456     and the values for the other columns related to this SUID Tag # value should display in the first page (i.e., page 1). And if the next value of the SUID Tag # for example say 678901 then the values should move to second page that is like this:
         SUID Tag # :678901               Year Mfg: 2008                                                                                     
         Description: Computer Manufacturing FA ID#: 4577
         Model Number: 4570 hESC: #eth
         Serial Number: 78946 Flags: G
    Department: Hematology
    User: Rehman
    Database: OLAP
    Thanks
    Thenmozhi

  • How to create a calendar for two years in GL

    how to create a calendar for two years in GL

    Hi,
    - Login into Oracle EBS and select a responsiblity with GL Superuser drants (e.g. General Ledger Super User)
    - Navigate to Setup + Financials + Calendars and open the GUI Accounting (Navigation for R12)
    - Query the used calendard (used from jour Set of Books/ Ledger via the GUI
    - Enter for each Period (= Period Type 13, 16, 18,...) one Record, have a look to the existing data, used the same logic.
    In the GUI, defined the calendar for 2 Years
    Dirk

  • How to create a graph for the exact values in pivot table

    hi all,
    how can i create a graph exactly that shows pivoted values. i created one pivot table and deleted the table view. when i am creating the graph it is not showing the graph for pivot table values.

    for that you need to edit the pivot table properties and then select graph pivot results tab in the top middle .. hope this helps

  • How to create test scenario for KIT Item?

    Hi All,
    I want to test how KIT Functionality works in OM. I have tried looking into User Guides / Web but I am not able to get specific functionality related to KIT Item testing in OM.
    If anyone has idea of how KIT item works and what are the setups required to perform in the system related to KIT, which Transaction Type we need to use, etc. it will be great.

    Vishal,
    I'm not sure if you're familiar with the CTO processes in Oracle (if not check out the CTO user guide/manual), but kits work very similarly in that they have a bill of material structure and the components are optionally exploded to the sales order pad on saving/booking (depending on the setting of the profile option OM: Included Item Freeze Method).
    Each line has its own workflow in OM - again, in the same way as a configuration does except that in the case of a kit all of the components are required.
    I've sent you a sample test script to your email address.
    Regards,
    Jon

  • How we create Variable for Previous year for COPA reports

    Hi Guruss,
    I am making a COPA report for Current year comparison with previous year from KE31. For 1st column I have created the Variable for current year (which works perfectly) now in 2nd column i need the actual data pertaining to previous. So can any one please guide me how to create the variable for previous year.
    Thanks

    Thanks Jagannadha,
    I have create the variable for current year on KE3E. but i am confuse how i create the variable for previous year on KE3E.
    Waiting for reply.

  • Custom exit variable for fiscal year/period

    Hi BI Experts
    1) In one of the column i just want Budget data to be displayed for the entire year..i.e even if the user enters 005/2006 for fiscal year /period that column should display 001/2006 to 012/2006 Budget.
    I have created a restricted KF for 0AMOUNT restricted by version(for Budget), valuetype (for Budget )
    now how do I assign variable for Fiscal year/period...and the problem is posting period is not populated ...I mean there is no transformation for that...
    Can you share your experience on that ...full points wil be awarded...
    Thanks

    Hi Ajay and Pradhiba
    I am really sorry for assigning you guuys points ...wasa bit busy ...
    The problem is that the year and posting period is not populated...there fore I cannot use those time characteristics...
    Now I have only fiscal year/period populated..now i want
    if the user enters 005/2006 ....i want my first column to calculate the data for 001/2006 to 012/2006 ...thats the req...
    can u share ur ABAP experience in that...
    thanks

  • Creating test data for a problem

    Hi,
    I've been using this forum for a few months and it has been extremely useful. The problem is that I actually have no idea how to create test data for a specific problem. I've tried googling but to no avail. I have had other users create test data for some of my problems using a 'WITH' statement but it would be great if someone could explain the logic behind it and how to approach a specific problem where in the query I use multiple tables.
    I know it's probably a stupid question and I'm relatively new to sql but it would help a lot if I understood the process.
    Banner:
    Oracle Database 11g Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    "CORE 11.2.0.2.0 Production"
    TNS for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production

    Look at the point 3 and 4. You can also follow other points too.
    Please consider the following when you post a question. This would help us help you better
    1. New features keep coming in every oracle version so please provide Your Oracle DB Version to get the best possible answer.
    You can use the following query and do a copy past of the output.
    select * from v$version 2. This forum has a very good Search Feature. Please use that before posting your question. Because for most of the questions
    that are asked the answer is already there.
    3. We dont know your DB structure or How your Data is. So you need to let us know. The best way would be to give some sample data like this.
    I have the following table called sales
    with sales
    as
          select 1 sales_id, 1 prod_id, 1001 inv_num, 120 qty from dual
          union all
          select 2 sales_id, 1 prod_id, 1002 inv_num, 25 qty from dual
    select *
      from sales 4. Rather than telling what you want in words its more easier when you give your expected output.
    For example in the above sales table, I want to know the total quantity and number of invoice for each product.
    The output should look like this
    Prod_id   sum_qty   count_inv
    1         145       2 5. When ever you get an error message post the entire error message. With the Error Number, The message and the Line number.
    6. Next thing is a very important thing to remember. Please post only well formatted code. Unformatted code is very hard to read.
    Your code format gets lost when you post it in the Oracle Forum. So in order to preserve it you need to
    use the {noformat}{noformat} tags.
    The usage of the tag is like this.
    <place your code here>\
    7. If you are posting a *Performance Related Question*. Please read
       {thread:id=501834} and {thread:id=863295}.
       Following those guide will be very helpful.
    8. Please keep in mind that this is a public forum. Here No question is URGENT.
       So use of words like *URGENT* or *ASAP* (As Soon As Possible) are considered to be rude.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • For Mayank Guptha : how to create formula variable in IP

    Hi,
    How to create formula variable, such that it will appear in the variable screen.

    Hi,
    the variables you create in formula function are local to the function.
    Ex., DATA  CST_ELMNT TYPE 0COSTELMNT.
           DATA QTY TYPE 0QUANTITY.
    To get the variables listed in the variable screen you need o create variables at aggregation/filter level for the required characteristics.

  • How to create sql query for item master with operator LIKE with variables?

    hi all,
    How to create sql query for item master with
    operator LIKE(Contains,Start With,End With) with variables using query generator in SAP B1 ?
    Jeyakanthan

    Hi Jeyakanthan,
    here is an example (put the like statement into the where field)
    SELECT T0.CardCode, T0.CardName FROM OITM T0 WHERE T0.CardName Like '%%test%%'
    The %% sign is a wildcard. If you need start with write 'test%%' and otherwise ends with '%%test'. For contains you need '%%test%%'. You also could combinate this statements like 'test%%abc%%'. This means starts with test and contains abc.
    Regards Steffen

  • How to create the variable variant in process chains for ip

    how to create the variable variant in process cahins for ip

    Hi venky,
    check these links
    http://help.sap.com/saphelp_nw70/helpdata/EN/c0/980398e58611d194cc00a0c94260a5/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/EN/c0/98038ce58611d194cc00a0c94260a5/content.htm
    bhaskar

  • How to create customer exit for characteristic variables and for text vars.

    hi friends,
      can anybody tell me how to create customer exit for characteristic variables and for text variables in bw ides system.
    thanks,
    sree

    Hi,
    Please have a look at:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f1a7e790-0201-0010-0a8d-f08a4662562d
    Krzys

  • Variables for Fiscal year YTD, MTD and Quarter to data

    Hello Gurus,
    I have a fiscal year that runs from September to August. Is it possible to create a customer exit variable for Fiscal year YTD, fiscal year MTD and fiscal year QTD (quarter to date) based on sy-datum and not though user entry.
    If yes, then how should I restrict my key figures so that the user don't have to enter any date and the varaibles derive the data based on sy-datum.
    Looking forward to your expert advices
    Thanks,
    Rishi

    Hi Rishi,
    I understand your query some extent,You can create Characteristic varaible with processing type  Customer exit for fiscal year MTD and fiscal year QTD (quarter to date) based on sy-datum.
    If you want to see fiscal year MTD and fiscal year QTD  values in the column level, you have to create Text variable with replacememnt path.
    Do as follows.
    1) Create Characteristic varaiable  with processing type Customer exit. Search for required code in the SDN.
    2) Create the restricted keyfigure on required keyfigure.  Restrict it on fiscal year MTD and fiscal year QTD  with Char variable to enter year value.
    3)After maintaining the restricted keyfigure  (In the same step ) Create a text variable to get the value populated with the year specified with the processing type Replacement path with characteristic Fiscalyear.
    I hope above steps definetely help full for you.
    If any case you need  help let me know.
    Thanks,
    Chandu.

  • How to create Text Variables in BEx Query Designer

    How  can i create Text Variables in Bex Q.D.
    I am able to create characteristic variables
    but i can't find option to create text variables.
    What's the requirement to create Text variables in Bex Q.D.
    When i try to create Text variable for 0calDay.. the variable type is characteristic by Default and disabled.
    How can i create text variables related to 0CalDay with which i need to work in Customer Exit.

    Hi,
    You have to create characteristic variable processing by Customer Exit by considering 0CalDay as a Reference Characteristic
    After creation of the above variable, you restrict your KF with the above created variable.
    Now you can create a Text variable for the description of your KF. This way it works...........
    Regards,
    Suman

Maybe you are looking for

  • WHY CAN I NOT INSTALL THIS PROGRAM EVEN WITH A SERIAL NUMBER!?

    Hi. I just bought Adobe Presenter 10 (#AD015087786)... This is my first time buying this program. When I type in the serial number, it tells me that the serial number is valid, but that "a qualifying product" cannot be found on my computer. I current

  • Parameters in SQL File

    Hi, I have an SQL File in Eclipse which uses a String parameter. When i try to send it to "Crystal Reports->Add to New Report" a message says that there is an error in the sql sentence. I was wondering if there is a way to use an SQL file with parame

  • Integrate struts with fop

    hi i successfully created a pdf file using fop in a command line. i give the xml and xsl and then automatically generates pdf. Now, i need to integrate fop with struts. i am using action but i am getting an error constructor XSLTInputHandler(String,S

  • Jscrollpane without scrollbar

    adf bc swing appilcation, jdeveloper 10.1.3 this is my form structure this (gridbag layout) jscrollpane(default layout) jpane (null layout) jpane2 jtabbedpane jscrollpane size < jpane size why the scroll bar of the jscrollpane doesn't appear ??

  • HTMLB classlib question...

    Hi, I have a question relating to the HTMLB library, Currently my iView JSP has: <b><hbj:link     id="link1"     text="Link to google"     reference="http://www.google.com"     target="_TOP"     tooltip="this takes you to: http://www.google.com"