Defining Variant with Dynamic values

I want to schedule a report say Me2N so that every day it will give me purchase orders created today. I am defining variant for it. How to define Document date in variant so that every day it takes currrent system date.

Hi,
In the ME2N transaction code when you are saving the variant, you can set up the status of field. Here if you will scroll right you can see last three columnu2026SELECTION VARIABLE, OPTION AND NAME OF VARIABLE(input only using F4)
Now in the third last column (SELECTION VARIABLE) press F4 and select the D(Dynamic date calculation) and after this click on last column from right side NAME OF VARIABLE and select the CURRENT DATE and save the varient.
Now this variant will take the document date every day as a todayu2019s date.
I hope it will help.
Regards,
Manish

Similar Messages

  • WBS Hierarchy Logic build up with dynamic values

    Hello ABAP Crew.
    I currently using BAPI_PROJECT_MAINTAIN, and I have to pass I_WBS_HIERARCHIE_TABLE with the hierarchy table made by me.  Does anyone have a logic on how to do this from values within a table?
    Here are the values coming from a proxy:
    111520
    111520-111234
    111520-111234-19
    111520-111234-19-1
    111520-111234-19-2
    111520-111234-20-1
    111520-111234-20-4
    The purpose is to place this into the table of I_WBS_HIERARCHIE_TABLE in the UP DOWN LEFT RIGHT  format. 
    Now the problem is, the list of values received will always be different.
    Thanks.

    Hi Jotorres,
    Did you get a response for this question about WBS hierarchy logic build up with dynamic values? I have been trying to build it up myself, but its getting increasingly difficult. I wanted to know how you resolved this issue?
    Thanks a dozen !
    Regards
    Aradhana

  • How to save a variant with dynamic selections parameters

    Anybody knows how to save a variant for an ABAP that uses a Logical database with Dynamic Selections?
    Have a look for example to the following:
    SE38 - DEMO_PROGRAM_GET - Execute - Shift F4 - Connection Number.
    How to save 0820 as Connection Number?
    Function Group SVAR seems good but FREE SELECTIONs are not easy to manage...

    Hello,
      I tried to save the variant of DEMO_PROGRAM_GET with dynamic selection field (Connection Number) filled. It gets saved without any problem. Just click 'SAVE' and enter the variant name and description.
    Thanks,
    Venu

  • Unit test with Dynamic Value Query

    Hi,
    I am planing a function which should return a table name for a given ROWID. The ROWID will be selected from a view. Now I am trying to setup a unit test which consists of Startup and Teardown Process as well as a Dynamic Value Query. During Startup Process one dataset is inserted in a table which is part of a view definition. The dataset should be selected during Dynamic Value Query. However I am getting the following error message: Unable to run the test because no rows were returned by the dynamic query. Is there the possibility that within a Dynamic Value Query I can't make use of datasets which where inserted by a Startup Process? I am asking because the selection outside the unit testing framework supplies the dataset as expected.
    SQL Developer: 3.2.20.09 Build MAIN-09.87
    Java: 1.6.0_45
    Regards.

    Dynamic SQL is very tricky.  Since you can get the data outside your application extract and test the dynamic SQL as it is generated.  When working with dynamic SQL I find it useful to first generate the SQL text as a string and then if necessary store it in a table (CLOB type) for later reference.  Because of the uncertainty of obtaining bind variable values later I prefer to hard-code such values into dynamic SQL - possibly slightly less efficient for Oracle at run time but a lot easier to work with when debugging and tuning (again, apart from the built-in inefficiency of not using bind variables)  I usually find the overhead of the hard-coded values not too bad and the ability to know the data values at a glance useful.  I also find it useful to write dynamic SQL in such a way so that the resulting statement can be pasted in to any normal SQL tool (SQL*PLUS, SQL*Developer) and run without any editing.
    There may be some quirk in the generated dynamic SQL preventing it from finding anything.
    Good luck.

  • Need to create OAF new Button Item with Destination URI with dynamic value

    Would like to add a personalization to a OAF page, with adding a new button Item. Behind the button item, one of the properties we would like to set is Destination URI, and we would like to have this with a dynamic value from the Page we are on.
    Let's say we are on the OAF page for customers. One of the fields is Customer Account Number. This is one of the Attributes from the View Object that the page is built on. So we want to take a value from an Attribute, and use this in the Destination URI value. That is what I mean by dynamic. It depends on what record from the database we are looking at on the OAF page.
    In this case it is View Object is 'HzPuiCrUpCustActVO' and the Attribute is 'AccountNumber'
    Does that make sense? can we reference an View Attribute value in the Destination URI? How can this be done?
    Thanks!

    Kristofer,
    This does make it clearer, as far as using the personalization property to reach another OAF page.
    I would like to build a custom page for the destination, but I did not want to necessarily the page to be another OAF/jsp page.
    One thing we might want to do is build an APEX page. so this Destination URI might have to start with something like http://oraserver.mycompany.com:7779/pls/apex/f?p=
    Another option we might want to use is to just have the destination resolve to a custom URL that includes a parameter value like http://mycompany.com/1905 where 1905 is the account number from the Customer Account OAF page.
    Any ideas, or is this even possible?
    Chris

  • Map the parameter with dynamic value.

    Hi,
    can be map our variable with some dynamic values??
    like suppose I have a variable in which I want to fill current value every time like current date or current time to my variable.
    is there any way to customize the variable in this way?
    thnx
    USoni

    USoni
    In OFT you can generate user variables by:
    Edit -> Databank Wizard -> Add Variable; then select Internal - Specify Expression as the type then you can enter Date() in the expression text field, to call the system date or Time() to call the system time.
    Unfortunately since the removal of VBA that is all OFT can do
    In OpenScript however you can use Java code view to substitute the parameter value with any Java expression, or for the date you can change the parameter value for *{{@today(MM/dd/yyyy)}}* which will return the date with the format MM/dd/yyyy, calling *{{@today(dd/mm/yyyy)}}* would return the current date with the format dd/mm/yyyy etc ...
    There is a list of pre-build functions on the help files, and if you need something that is not there and have not Java skills you can post the specific question here and I'm sure someone will post the code.
    Regards
    Alex

  • Variants -- with changing value!!!

    Hi,
    I want to run a program by using the SUBMIT keyword and passing a variant using USING SELECTION-SET <variant name>
    And the variant changes its values for each execution of the SUBMIT statement.
    According to the replies to a similar question posted in this forum, I found that we can have constant input values in a VARIANT and pass the changing values using the WITH keyword.
    is there any other way to achieve this other than the above solution..........
    any help wud greatly be appreciated.!!!!!

    Hmm, you could set up multiple variants and change which variant you call the program with each time you SUBMIT.  Example:
    SUBMIT program_name USING SELECTION-SET variant1 AND RETURN.
    SUBMIT program_name USING SELECTION-SET variant2 AND RETURN.
    (and so on).
    Another way to do it is to specify the fields separately, like this:
    SUBMIT program_name WITH parameter1 = w_field1 AND parameter2 = w_field2
    AND RETURN.
    You can use this same statement multiple times, changing the values of w_field1 and w_field2 between calls (for instance, by putting the submit statement inside a LOOP, ENDLOOP).  I hope this helps.
    - April King

  • Accessing DefaultValues for parameters with dynamic values

    We have a custom user interface we place in front of all Crystal Reports (to maintain look&feel) that reads the parameters from the report and dynamically generates controls for user input.  The only time this doesn't work is for parameters that have dynamically generated default values.  If there is a static list of default values then we get the list from the DefaultValues collection; but if the list is dynamic then the collection is empty.
    Is there a way to force this collection to be populated, or alternatively, a way to find out what SQL query is being used to populate the parameter list?

    I think you may be out of luck. Dynamic cascading parameters (DCPs) are a relatively late addition to the Crystal Reports product line, and the Crystal Reports SDKs haven't caught up to that yet. Currently we don't have SDK access to dynamic value collections, including the SQL queries made for them. The most we can do at the moment is determine whether the parameter field uses dynamic or static values.

  • How to replace part of column name with dynamic value

    I have the following construction in an update transaction:
    $upd_blg_user_usr->addColumn("report_1_user", "NUMERIC_TYPE", "VALUE", "{rsCatReport.id_report}");
    The dynamic value, {rsCatReport.id_report}, gets a url variable.
    I want this variable to replace the "1" in the column name "report_1_user". Something like this:
    $upd_blg_user_usr->addColumn("report_{rsCatReport.id_report}_user", "NUMERIC_TYPE", "VALUE", "{rsCatReport.id_report}");
    That construction, however, does not work. Prevents the page from loading. I've tried different constructions but have not hit one one that works.
    First, I'm not sure anything will work and second, if some different construction will work, I don't know what it is.
    Can anyone answer these questions. Thanks in advance for your help.

    What? Are you some kind of genius?
    Yes that works perfectly. Thanks as always!
    Here's the rationale. The same basic form appears on many different pages. The only difference among the forms is the outcome of submitting the form. The form on different pages takes you to a different download page and a database column is marked to signify that the user downloaded that form. For instance:
    report_1_usr
    report_2_usr
    report_3_usr
    And so forth...
    Up to now each form has had to include the url variable so the submit would take the user to the right download page and it has had to include a unique reference to the correct database column.
    Now I can echo or insert that url variable all over the place, including the reference to the column name in the transaction, so I can use a single instance of the form and include it on all pages.
    Thanks for helping me figure out the last step.

  • User defined Variable with multiple value

    Hi Experts,
    customer requirement is the following:
    Build a layout in which to have in Lead Column the cost center characteristics, but not all cost center in master data but only those chosen by user with manual input. To achieve this goal i have created a variable of type characteristics (associatd to cost center CH) with replacement type "user defined values", then i have put this var in planning level. I have created a layout with Cost Center in Lead Column and set "all possible ch combination" in additional setting.
    Thanks to the varable created, the user can enter Cost Center value, but the problem is that he cannot select more than one single cost center value, for example:
    User want to see in layout CosCen1 and CosCen4, by now he can set variable in order to see the entire range from CosCen1 to CosCen4 (included all intermediate Cost Center) or to see only one between those 2 Cost Center, but it's not possible (or better i don't know how to..) to select both cost center and display the layout with ONLY those 2 Cost Center in Lead Column (CosCen1 and CosCen4).
    In other word, is it possible to set a variable with more than one single value without using range from-to?
    If not, does exist an alternative?
    Thanks in advance.
    Fabio

    Hi Fabio,
    It works as follows.
    let's say you have 3 multiple single lines for your cost center variable.
    once you are in the folder, select any single value & the layout is ready for planning with the corresponding cost center.
    now, select the "Cost center variable row" in the header of the folder within section "Name of Variable" & click on "Trash Can" icon to "Delete Selection" of variable.
    this basically deletes all the entered selections (3 entries) & displays for all.
    It works this way, because we don't have "resriction of values required by user".
    if am not wrong & correct me if am wrong,
    overall, this is nothing but equal to "planning level not restricted with any variable".
    I just tested this & the flaw in this is that, it is not only displaying for all the initially entered 3 lines but it displays for each & every cost center irrespective of the variable selections.
    hope it is clear.

  • OBPM4 - Variant with dynamic selection

    Hi Experts,
    I'm using the FBPM transaction (report SAPFPAYM). I have created the variant in OBPM4, in the variant I have insert the dynamic selection for Value Date.
    When I run the report  SAPFPAYM, the report does not work. If I delate this dynamic selection the report works correctly.
    Could you help me?
    Thanks in advance.
    Regards
    Giampaolo

    Hi Jyothi,
    I have inserted in the variant the dinamic variant selection "Value Date" or only a value date:
    When I run the report I have this message:
    "No Payment Media Created in Format FR_ETEBAC_VRT-ETR
    Message no. BFIBL02159
    Diagnosis
    No payment media were created for format FR_ETEBAC_VRT-ETR for payment group
    100"
    If I delate the value date or value date dinamic parameter, the report works correctly.
    Do you have any suggestion?
    Thans a lot
    Kind Regards
    Giampaolo

  • Variants with selection values

    Hi All,
    Need to have a variant for a planning folder which is restricted to a particular value for one of the folder variables.
    Say cost center is the header variable and i need to assign a variant to the user which opens with value of cost cneter as "120111"
    But for some other user variant value changes.
    Can this be done?
    I tried using "maintain set variables" value in table TVARVC and using the parameter in the variant at start of planning folder. But it doesnt work.
    Any suggestions would be appreciated.
    Thanks,
    Vidya.

    Hi All,
    Thanks for your inputs. But our layouts are going to be used by many users and also there will be some users who would require to see all cost centers.
    So we need some variants for the folder which can hold a particular value of cost center.And this would be assigned to the user role.
    Something of the sort BW variant in queries are used.
    Hope the requirement is clear.
    Thanks,
    Vidya.

  • Variant with Dynamic Date Calculation

    I have a variant that includes a dynamic date calculation.  I'm using the Current day -1 date calculation. Does the dynamic date calcuation use the time zone of the system or the time zone designated on the user id for the calcuation?

    time zone of the system.. if you want to use the user time use Sy-timlo

  • Passing Configuration Details with Dynamic Value - SFTP Adapter

    Hi:
    We are using SFTP adapter to get and load the files to a secured location. Now there is one more secured location which has IP address where we need to load the same file in that location.
    So is it possible to make the configurations in Deployments --> FTP Adpter in Weblogic server as dynamic, so that we can use the same JNDI while configuring in JDeveloper to connect different secured locations
    Oracle SOA Suite - 11.1.1.4
    Weblogic - 10.3.4
    JDeveloper - 11.1.1.4
    Regards
    RK
    Edited by: RK.. on Mar 26, 2013 5:30 PM

    Hi,
    I think it's unlikely you can achieve this by the way FtpAdapter is configured, it's done via deployment plan, so it is at deployment time.
    It seems like you need something able to be aware of modifications at run time, maybe if you can find the FtpAdapter mbean there may be something you can do at runtime.
    But I tend to think that SFTP servers don't appear and disappear overnight, so it wouldn't worth the effort to build something that wouldn't change that often.
    Cheers,
    Vlad

  • COPA user-defined charact. w. own value maint. with existing check-table

    Dear Experts,
    I need to create a user-defined characteristic with own value maintenance with the pecularity that it needs to refer to the same check table as another user-defined characteristic with own value maintenance.
    Could anybody explain me how I can do that?
    Thanks in advance for your kind support.
    Best Regards,
    Eric

    Hi Eric,
    Generally when you are creating user defined charachteristic with own value maintainance check table is created by the system. So you requirement is not possible to achieve. As a workaounr you can create two char as you want and then copy the content of the first check table to the second one. This will have the same impact as what you have described.
    Best Regards,
    Abhisek Patnaik

Maybe you are looking for