Variable entry for offset

Hi All,
I was wondering if there was a way in which we can accept a user entry for the offset of a variable. I mean, in a report, I need to see all the records with the creation date of the last 'X' days, where 'X' can be entered by the user.
Thanks,
Doniv

Hi Doniv,
  Lets take the case,
ZINPDATE - User Entry Variable
ZREQDATE - Customer Exit Variable
CASE i_vnam. "variable name
WHEN 'ZREQDATE'. "Customer Exit Date Variable
IF I_STEP = 2.
      LOOP AT i_t_var_range INTO loc_var_range
        WHERE vnam = 'ZINPDATE'.
CLEAR l_s_range.
l_s_range-low = sy-datum - loc_var_range-low.
l_s_range-sign = 'I'.
l_s_range-opt = 'GT'.
APPEND l_s_range TO e_t_range.
  ENDLOOP.
ENDIF.
ENDCASE.
Assign Points,
Arun

Similar Messages

  • Variable entry for replacement path

    Hi Guys,
    This is my scenario. I have query A which uses a set of results from query B via replacement path. I have a mandatory variable entry for Query A which I have used also for query B. I was under the impression that when I made a user entry for the variable for query A, that value would be copied over to query B and perform the filtering in Query B too. Is this not the case.
    If I need to perform this operation, i.e use the value that I enter for variable entry in Query A in Query B, how can I do that?
    Thanks,
    Doniv

    Hello Doniv,
    we are using this scenario in our queries too, if we define the same variable in the query A and B,
    this value is used for the selection in the query B.
    Did you tried to search in OSS? (this could be the SAP error)
    Regards,
    Kirill

  • Offsetting entry for stock posting (GBB)

    Hi
    I want to know the practical application( where this comes) of posting entry for 'Offsetting entry for stock posting (GBB)' It will be appreciable if explained with example
    regards
    B Shar

    Following are the possible scenarios;
    o   Offsetting entry for stock posting (GBB)
        Offsetting entries for stock postings are used in Inventory
        Management. They are dependent on the account grouping to which each
        movement type is assigned. The following account groupings are
        defined in the standard system:
        -   AUA:     for order settlement
        -   AUF:     for goods receipts for orders (without account
            assignment)
                 and for order settlement if AUA is not maintained
        -   AUI:     Subsequent adjustment of actual price from cost center
            directly
                 to material (with account assignment)
        -   BSA:     for initial entry of stock balances
        -   INV:     for expenditure/income from inventory differences
        -   VAX:     for goods issues for sales orders without
                 account assignment object (the account is not a cost
            element)
        -   VAY:     for goods issues for sales orders with
                 account assignment object (account is a cost element)
        -   VBO:     for consumption from stock of material provided to
            vendor
        -   VBR:     for internal goods issues (for example, for cost
            center)
        -   VKA:     for sales order account assignment
                 (for example, for individual purchase order)
    -   VKP:     for project account assignment (for example, for
        individual PO)
    -   VNG:     for scrapping/destruction
    -   VQP:     for sample withdrawals without account assignment
    -   VQY:     for sample withdrawals with account assignment
    -   ZOB:     for goods receipts without purchase orders (mvt type
        501)
    -   ZOF:     for goods receipts without production orders
             (mvt types 521 and 531)

  • 2 queries sharing 1 variable entry screen

    We have 2 queries in a workbook which use identical user-entered variants.  Is there a way to have the user only fill in the variants once for both queries.
    Thanks,
    Ron

    Hi,
    Yes. you can. Bex will bring the popup for variable entry for the Query which is last inserted.
    Some say-> your have insert Query1 and then Query2.
    The the popup for Query2 with appear first and user make a variant there and save it. Now i am assuming that you have make sure that you are using the same variables for both query..then there will be no popup and the whatever values which user have entered in variant of Query2 which will taken by Query2 also.
    Fews points to keep in mind->
    1) Make sure that you are using the same variables (check techinal names of variables) in Query 2 as you have in Query 1.
    2) To refresh all queries with a single refresh screen, the user can select any cell in the workbook that is NOT part of the query (to visualize which cells are part of a query, use the Analyzer toolbar and select Layout >> Mark queries on worksheet), then select the refresh button. You will see a message box that says "No query is selected. Do you want to refresh all queries in the workbook?". If you select Yes, all queries will refresh with one refresh screen (assuming all queries have identical variables).
    Regards,
    San!

  • Variable entry screen for query doesnt show selection values.

    Hi,
    I've created a query with date varibale Quarter From-To. When i execute this query, the variable entry screen pops up but when i try to select values just shows ??? and not the text.
    if i run the same query in RSRT the variable entry screen pops up but here the selection values are present for me to choose from.
    can anyone tell why the values arent showing when the query is executed.
    Thanks

    yes, it seems to be a problem with NetWeaver BI BEx Java Web runtime as it works in RSRT and web analyzer. Found a note on marketplace note 125357 - No values displayed for attributes in input help but this did not resolve issue.
    A call has been raised now as it seems to be a product fault

  • Selection option for variable entry in BEx in 2004s

    Hi All,
    Have any of you noticed that the selection option functionality for variable entry  while creating a variable does not allow wild card entry,Even though you create the variable with selection option as input.
    In 3.5 we had option the option "contains the pattern " but in 2004s its not available in the variable entry screen.

    Hello Guys,
    When I posted this thread we were upgrading to SP11, now I am in the middle of another upgrade (SP15) and I still notice that wild card option is yet to be made available for a variable of type selection option.
    Back then I had sent a message to SAP and was told that the functionality would be rolled out in new SP's. I am very curious as too how others are handling this problem, as they are bound to be reports for which such variables are a must.
    P.S - The option has been made available
    Edited by: Karthik on Jul 22, 2008 6:52 PM

  • Offsetting Entry for Inventory Posting

    Hi ,
    While Working on Automatic Postings - Offsetting Entry for Inventory Posting
    can any one explain me what are all General modification ,valuation modification entries made ?
    What are all General Valuation Class applicable for GBB Entries & give me the G / L account details where the entries will be posted
    Please give me solution on this
    Thanks & Regards,
    Pioneer

    Refer belo link this may give some idea
    http://d.yimg.com/kq/groups/54256/740187646/name/SAP_FI_MM_SD_integration_20090615.pdf

  • OBYC : Offsetting entry for stock posting (GBB) , VAX/ VAY

    Dear Sapients,
    Could you please tell me the difference of the account grouping VAX and VAY for GBB(Offsetting entry for stock posting)
    SAP helps says:
    VAX: for goods issues for sales orders without
    account assignment object (the account is not a cost element)
    VAY:for goods issues for sales orders with
    account assignment object (account is a cost element)
    But truly i still did not understand, could you pls explaing.
    In my current scenario system asked me to maintain an entry for VAY, when we are trying to reverse a delivery(inter company) created for PO.
    Thanks and Regards
    Ravi

    Dear Ravikanth
    Account grouping code <b>VAX</b> is relevant when the sales order item does <b>not</b> carry costs and revenues. If the sales order item carries costs and revenues, account grouping code <b>VAY</b> is used.
    Thanks
    G. Lakshmipathi

  • Delete button in variable entry screen

    Hi guys,
    is it possible to get the delete button icon for multiple
    single values of a characteristic like we get for variable entry
    on variable node in web application scenario.
    Your help will be greatly appreciated.
    Thanks.
    urgent!

    sorry I misunderstood you question...
    I've never seen a "delete" button for deleteing an entry in a multiple variable....
    The user has to delete the input box and then press the check button...
    Otherwise you'll have to implement your own selection variable screen, I guess; since this screen is SAP standard, good luck!
    hope this helps,
    Olviier.
    Message was edited by:
            Olivier Cora

  • Variable Exit for YTD using posting period

    Hi Friends,
    I need to calculate the YTD amount per user entry, i.e., when user enters the posting period value as 5 the Actual value should calculate the amount for posting period 5 and Actual YTD value should calculate the amount from Period 1 - 5.
    I'm getting the same amount as period 1 for YTD as well....I created a two variables for YTD , one is with single value optional with default value as 1 not ready for input and another variable as customer exit with single value. In the exit I'm reading the user entry value as my 2nd variable value. Then I'm using these two variables as range in RKF with key figure and value type.... i.e,
      WHEN 'ZTEST'.
    data:      zper     TYPE t009b-poper
        if I_STEP = 2.
          READ TABLE I_T_VAR_RANGE INTO ZPER WITH KEY VNAM = '0P_PER3'. " this is the mandatory user entry for Actual value
         l_s_range-sign = 'I'.
         l_s_range-opt  = 'EQ'.
         l_s_range-low   = zper.
          append l_s_range to e_t_range.
    ENDIF.
    Thanks
    sam

    I used the range and when I use RSRT to test the query , I'm getting the exact variable values in the result example if I give the input as year = 2010 and Posting period = 3 - 6
    I'm getting the variale values for input as 3-6 and variable values for Actual YTD as 1-6 but the Actual YTD value is showing the same value as Actual.
    I have the cost element heirarcy as the row item. I'm not sure If we are allowed to use heirarchies in the rows when we are using the above logic for YTD?  Also when I drill down by posting period I could see all the values in Actual YTD but when I removed drill down it is only showing the value for 3-6 just as Actual....Please advice
    My Key figure in the RKF is a cumulated balance...Does it causes the YTD values and Actual values same?
    Example result below for Period input 10:
    Posting period Actual        Actual YTD
    1xxxxxxxxxx     xxxxxxxxxx     210,587,416 USD
    2xxxxxxxxxx     xxxxxxxxxx     172,717,190 USD
    3xxxxxxxxxx     xxxxxxxxxx     178,563,365 USD
    4xxxxxxxxxx     xxxxxxxxxx     160,894,981 USD
    5xxxxxxxxxx     xxxxxxxxxx     145,730,654 USD
    6xxxxxxxxxx     xxxxxxxxxx     109,796,716 USD
    7xxxxxxxxxx     xxxxxxxxxx     108,377,441 USD
    8xxxxxxxxxx     xxxxxxxxxx     95,732,276 USD
    9xxxxxxxxxx  xxxxxxxxxx     88,925,649 USD
    10xxxxxxxxx     107,755,724      107,755,724 USD
    Overall Result     107,755,724      107,755,724 USD 
    thanks

  • Variable entry issue when the query is executed on the WEB

    Hi,
           When I execute a 2004S query on the WEB,In the variable entry screen , even if I specify  for example  'A'  for a variable ,  the 'A' is completly ignored and it returns all the values.So there is a problem with '*'.
            If I execute the same query in the Analyser, '*' is considered while returning the results.
            Anyone having similar issue.
            Thanks in advance.

    Hi siva,
    Its a program error. Please apply the advanced correction from SAP note <a href="https://service.sap.com/sap/support/notes/1062214">1062214</a>
    Assign points if helpful,
    Regards, Uday

  • Problem with Variable Entry Screen

    Hello All,
    We upgraded our development systems to NW2004s and came across the following issue:
    All our Bex queries have restricted time characteristics with variables entries. When we execute a query it should pop-up the variable selection screen for us to enter the restriction values but the query is ignoring Variable restriction screen and taking into consideration everything. The same query works fine in Prod., which is still in 3.1.
    Did anyone come across this situation kind of situation? It did not pop-up any type of error and we are in SPS10
    Thanks in Advance,
    Message was edited by:
            bw expert online
    Message was edited by:
            bw expert online

    We fixed the "Variable Screen not appearing" problem by adding following objects to our users.
    1) Business Explorer - BEx Web Templates (NW 7.0+) S_RS_BTMP
    2) Business Explorer - Individual Tools S_RS_TOOLS
    3) Business Explorer - Data Access Services S_RS_DAS
    Mark the message answered if this helps.

  • How to link the variable entry with the planning function execution

    Hi All,
    I am new to IP , we have a requirement where the user enters the value 2008 for a variable year. Then we are supposed to copy the same combinations for the next four years against which the user will be able to input the key figure values. But i have only 2008 data in the cube, so i need to generate new records for the same characteristic combinations as present for 2008 for the next four years. I am planning to use a copy function for this but how can i trigger this planning function once the user enters the value for the year variable. I want the planning function to get executed once the user clicks OK after the variable entry. Request your valuable inputs on the same.

    Hi Tilak,
    for this u have an option of executing the planning sequence when the web template loads ie. after the variable screen.
    open the WAD.
    go to the properties of Web Template web item. Under the section standard action of the webtemplate, we have a n option to include planning functions under action before rendering.
    If u include your planning sequence in this this will get executed every time the layout loads.
    guess this is usefull to u.
    Regards.
    Shafi.

  • Variable Entry Style Sheet (CSS)

    The Web template uses the style sheet from the MIME repository:
    <link href=/sap/bw/mime/BEx/StyleSheets/BWReports.css  type=text/css rel=stylesheet>
    But, when the variable entry screen is displayed when executing the query it is not formatted and uses this style sheet:
    <link rel="stylesheet" href="OWNER">
    What is missing or needs to be configured so that the variable entry page uses the same style sheet as the Web template?
    Thanks for the help in advance.

    i had ot type out in the file:css in order for it to be imported into DW i dont know why its doing that.
    Did you define a local site folder in DW before you begain your project? 
    http://help.adobe.com/en_US/dreamweaver/cs/using/WS753df6af718a350a60097e0f131686fa2b4-7ff e.html
    This critical first step allows DW to manage your site links and assets for you.  Without a local site folder definition, many of DW's advanced features won't work.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/

  • Variable entry in Web application designer

    Hi,
    In the Variable entry screen in the Web app designer on executing a template, when I open the drop down menu for possible values, it leads to two more new variable entry screens wherein the selected values are populated instead of the original entry screen. This repeats for every additional variable entry selection, including the from and to selections. Any idea how this can be fixed? We are on SP7.
    Thanks.
    Param

    Hi,
    I solved this by changing the configuration in the WAD by changing the open dialogues in new window to 'do not open window'.
    Param

Maybe you are looking for

  • Identical request numbers

    Hello, we have two sap system. One of the is the copy of other system. (We have done the migration) Now we have the problem with numbering of transport requests in the copied system. We have identical request numbers in both systems. But sometimes we

  • Ant validator in JDeveloper 10.1.3 Preview (isset propertty)

    Typo on this Ant build.xml validator for the isset attribute! The validator is looking for 'propertty' instead of 'property' (two t's). Consequently, this generates compile time errors with no work-arounds... Is there a "manual" fix we can apply to t

  • Calculate ratio using two fact tables

    Hallo all, i have one transaction table orders with detail on hotel (dimension), day (dimension), order state (fact attribute), order and measure ordered roomnights      and one state table with detail on level hotel, day and measure hotel rooms coun

  • My Windows XP disc will not load in bootcamp (although it works in virtual box). Any ideas?

    Windows XP was not booting up at all so I removed the partition and attempted to reinstall it. However it will not even load. The software on the mac partition is all up to date and I have run verify disk, repair disk permissions etc. What options do

  • Can't see Excel Tabs when combining files

    Using acrobat 9 I right click (like I have a thousand times on my old computer) on a file and "combine supported files".  I select 2 excel files and position them in the order that I want them.  But if I click on them to select which tab to use, I ge