Create a BEx variable which should by default contain current date, etc

Hi,
I need to create 2 variables: ZDATE01 and ZDATE02.
They will be used in the following situation:
0DATETO >= ZDATE01
and
0DATEFROM <= ZDATE02
to only display records on a current "key" date.
ZDATE01 should be a variable that has current date pre-populated in it on the variable entry screen in BEx Web Analyzer, so that users do not have to type in the date themselves.
ZDATE02 should be a replacement path variable to be replaced by whatever is the value of ZDATE01.
How would I accomplish ZDATE01 variable having current date pre-populated in it on the variable entry screen?
I tried creating ZDATE01 variable with having SAP exit variable as replacement path, but it did not let me.
Thanks

Sorry, the previous link was wrong...
Here you go...
Current System date in report
WHEN 'XXXX'.
LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
WHERE VNAM = 'YYYY'.
CLEAR L_S_RANGE.
L_S_RANGE-LOW = sy_datum.
clear L_S_RANGE-HIGH.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
APPEND L_S_RANGE TO E_T_RANGE.

Similar Messages

  • How do I create an automator variable for a path that includes a date?

    I like to use Image Capture to scan documents into a hierarchy of folders under my ~/Documents directory that are organized by year and document type.  For example, I have
    ~/Documents/archives/2011
         /Misc
         /Utilities
    and
    ~/Documents/archives/2012
         /Misc
         /Utilities
    for archiving miscellaneous docs and utilities bills. Now, switching folders in Image Capture is annoying so I want to use the Automator support built into that app to direct the scanned images to ~/Documents/archives/<Current Year>/Misc or ~/Documents/archives/<Current Year>/Utilities.  I was able to do this with separate Automator workflows, each with a hard-coded path to the destination folder.  For example,
    What I would like to do is use an Automator variable to dynamically determine ~/Documents/archives/<Current Year>/Misc.  I see variables for Home, Documents, and Current Year.   However, when I try to create a new path variable it only lets me choose a full path to a Finder folder.  How do I combine Documents and Current Year variables with the "archives" and "Misc" folder names to create a new path variable?

    Well now, you went and made me learn something today.  In the Variables Library, under Utilities, is a variable named AppleScript.  You can put a small script into this that evaluates to your path, for example:
    ((((path to documents folder) as text) & "archives:" & (year of (current date)) as text) & ":Utilities") as alias
    If the script evaluates to a proper path, it can be used wherever any other path can - you can experiment by looking at the results of a Get Value of Variable action.

  • VF11 - Billing Date should be defaulted with system date

    Hi All,
    My requirement is to default the System date in Billing Date for the transaction VF11.
    Please let me know whether any Exits/BADI exist for this.
    I tried to create the field exit but the problem is for this Billing Date field there is no Parameter ID , so how can I assign the todays date to Billing date field in VF11 else is there any other way to do this ????.
    Please do the needful.
    Thanks in advance

    hi ,
    below are the exits available for vf11. choose the most apprapriate one
    Transaction Code - VF11                     Cancel Billing Document                                                                               
    Exit Name           Description                                                                               
    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                                                         
    SDVFX001            User exit header line in delivery to accounting                                       
    SDVFX002            User exit for A/R line (transfer to accounting)                                       
    SDVFX003            User exit: Cash clearing (transfer to accounting)                                     
    SDVFX004            User exit: G/L line (transfer to accounting)                                          
    SDVFX005            User exit: Reserves (transfer to accounting)                                          
    SDVFX006            User exit: Tax line (transfer to accounting)                                                                               
    regads,

  • Outlook event export defaults to current date/time

    iCal suddenly started imported all outlook exported events as "Private Event" at the date and time of the import rather than the date and time specified in the exported event.
    Any help?

    As Tom says, it's not the form you should be exporting but its data.  To export as a PDF file the easiest way is to do so is as a report which is restricted to the data in question by means of a parameter in its underlying query.  The report
    layout can mirror the layout of your form of course, and you might even be able to save time in designing it by copying and pasting objects from the form to the report, with both in design view, and then fine tuning the design of the report manually.
    You'll find an example of how to export a report as a PDF file as InvoicePDF.zip in my public databases folder at:
    https://onedrive.live.com/?cid=44CC60D7FEA42912&id=44CC60D7FEA42912!169
    If you have difficulty opening the link copy its text (NB, not the link location) and paste it into your browser's address bar.
    This little demo file exports the current invoice as a PDF file, and also has options for exporting multiple invoices.
    Ken Sheridan, Stafford, England

  • Display Key and Text in Variable Selection Box by Default in BEx

    Hi Experts,
    I have a requirement to display both key and text in the variable selection box by default.
    Currently, only the text is being displayed.
    The 'wrench' can be used to change the display, but the client would like to see both key and text by default.
    Is there  a way I can accomplish this?
    Thanks,
    Points will be assigned!

    hi experts,
    i have done the same settings in development and its working fine and we can see key/text bydefault in variable selection in Dev. and when i transport the cube into quality the settings are reflecting but in analyzer(QA) variable selection screen still its giving text(DEFAULT). could you please provide me the solutions to do it.
    thanks & Regards
    vadlamudi

  • Current date should be populated when executing the hierachy variable.

    Hi bw Pro's
    I have a customer hi-erachy.For that hierachy i created a variable.
    The variable name is hieraachy date.
    the variable will be executed with  user entry/default value.
    the characteristic i used for thata variable is date.
    Now the requirement is the date should be populated with current date when ever i executed the variable automatically
    I thk i need to develop customer exit for this. I am not so comfort with coding.
    can anybody will help me on this issue. suggest me with logic or any further idea.
    any help is appreciated .
    Thanks,
    suri

    Hi Jasprit,
    Below is the erro when i added the code and i restrict the customer exit variable.
    ERRORS:
    INCORRECT FORMAT WITH KEY DATE FOR ELEMENT "43Z6K6807CL51WZ025Q1GPHER"(VALUE "&&" IS INVALID).
    Below is the diagnosis for the error.
    You are using a key date specification in the query. This can be either in the query key date directly or in the key date for a selection or presentation hierarchy. the element, in which this error was found, is called "43Z6KGHDHHJ5VYWJU8UEVBRRK". The invalid value is called "&&".
    System response
    The problem is reported with the check.
    Procedure
    Check the incorrect format in the specified element and correct it.
    Technical name (UID) of the element: "43Z6KGHDHHJ5VYWJU8UEVBRRK".
    I am checking the UID in rsa1> transprot connection>query element-->variable.But system is not showing any UID. Any idead on the above issue.
    Can you please help me in this.
    thanks
    suri

  • Cascading LOV in BEx Query OLAP Universe + BEx variable

    Hi gurus,
    we have an universe where a Cascading LOV has been defined based on a BO Hierarchy ( based on a BW hierarchy), the OLAP universe is based on a BEx query.
    Now, when the users create a WebI report selecting a value from the value list, the Cascading LOV appears and the user selects the value, descending by the nodes.
    We are analyzing the universe performance and we are testing to add some time BEx variables in the query ( in the current version no variables are used).
    Everything works properly but when we try to select a value from the Cascading LOV and try to select a lower level the webI returns a mdx error indicanting that the time variable is not informed. (WIS 10901: A database error ocurred; MDX query can not be executed: specify a value for the variable Z... )
    We thought that the mdx for the LOV get values from the MD table because in the infoobject definition, it has the Business Explorer Settings:
       Query Def. Filter Value Selection = Value in Master Data Table
       Query Execution Filter Val. Selectn  = Value in Master Data Table
    The Query Execution Filter Val. Selectn  can be defined at the infoprovider also (with the provider specific Properties of the infoobject) and also at the query, whe have not modify none of them.
    My first question is which settings has efect at OLAP Universes, the infoobject settings; the infocube settings or the query settings ?
    Are the Cascading LOV integrated with BEx Query OLAP Universe?
    Is it an application error?
    Many Thanks in advanced.
    Best Regards,
    Nuria

    Hi Ingo,
    many thanks for your quick answer.
    That was one of the possibilities we have analized but the problem is that the user has to inform the hierarchy level for all the reports, that kind of variables is translated in the universe as a prompt
    Now we have only one universe and some business analists users create reports themselves for the business area based on that universe.
    The users create WebI filters without prompts,just filtering the hierarchy node. If we add the BEx variable then the user sould inform the prompt for all the reports based on that universe.
    We want to avoid that prompt, we have several hierarchies in the query for different infoobjects.
    Thanks again.
    Best Regards,
    Nuria

  • WEBI prompt based on bex variable suppress not assigned hashtag value in LOV

    Hi,
    is it possible to suppress the "Not assigned (#)" value from the list of values in a webi prompt based on a bex variable?
    This "Not assigned" value is something BW specific, BW adds this to each characteristic automatically?!
    WEBI:
    RSRT:
    It needs to work in WEBI, not only in RSRT, and the filtering of data still needs to work.
    For rsrt it works, when you exclude the not assigned value in "Filter > Characteristic Restrictions" and use the bex variable in/through "Filter > Default Values", but this does not work in WEBI, because the BEX Query Data is not filtered on the in the prompt selected value.
    Thanks.
    Regards
    David

    Thanks David for a quick reply !
    I could manage to avoid # values in WebI prompt using BAdI implementation, here is the brief:
    Problem:
    WebI report prompt (which shows BEx variable) list of values shows blanks or # . Rrequirement was to avoid these blanks or #
    Environment:
    BW 7.3
    BO 4.0
    BW Cube > BEx Query > OLAP Connection > WebI report
    Solution:
    InfoObject Level1 in BW had # values in masterdata, this could not be deleted since it was in use with other Cubes.
    Vaurable Var_Level1 displays # when pressed F4 running BEx query and in list of values in WebI report prompt.
    I implemented BAdI on Level1 info object and variable Var_Level1.
    Steps to implement BAdI are as in following link
    BEx Query - Control the values which are shown on F4
    Used following code to elimitate #.
    METHOD IF_RSR_VARIABLE_F4_RESTRICT~GET_RESTRICTION_FLAT.
    DATA: l_s_range     LIKE LINE OF c_t_range.
    DATA: l_var_range   LIKE LINE OF i_t_var_range.
    DATA: IT_MZLEVELS TYPE TABLE OF /BIC/MZLEVELS,
    WA_MZLEVELS LIKE LINE OF IT_MZLEVELS.
    DATA: L_ZLEVEL1     TYPE /BIC/OIZEVEL1.
      IF i_vnam EQ 'ZV_LEVEL1'.
    SELECT /BIC/ZLEVEL1
    FROM /BIC/MZLEVELS
    INTO CORRESPONDING FIELDS OF TABLE IT_MZLEVELS
    WHERE OBJVERS       = 'A'.
    IF SY-SUBRC NE 0.
    EXIT.
    ENDIF.
    SORT IT_MZLEVELS BY /BIC/ZLEVEL1.
    DELETE ADJACENT DUPLICATES FROM IT_MZLEVELS COMPARING /BIC/ZCLV1GP.
    DELETE IT_MZLEVELS WHERE /BIC/ZLEVEL1 = ''.
    l_s_range-iobjnm = i_iobjnm.
    l_s_range-sign   = 'I'.
    l_s_range-option = 'EQ'.
    LOOP AT IT_MZLEVELS INTO WA_MZLEVELS.
    l_s_range-low    =  WA_MZLEVELS-/BIC/ZLEVEL1.
    APPEND l_s_range TO c_t_range.
    ENDLOOP.
    ENDIF.
    ENDMETHOD.

  • How to create a context menu which appears on right click

    Hello Experts,
    I want to create a context menu which should appear on the right click of a mouse anywhere on the screen.
    I have seen this functionality in one of the sap applications, and i guess this is an inbuild functionality in Webdynpro for ABAP but in WebDynpro Java i haven't found any such inbuild functionality.
    Does anybody have any idea about it ?
    Regards,
    Amol

    Context menus are not supported in NW04 and NW04s, they will be available in the next major release.
    Armin

  • How to call a FM for a BEx Variable

    Hi,
       I have created a BEx Variable of type Customer Exit called 'ZCA8764'
       I intend to actually automatically calculate the number of days in the month.
       Through some discussions here, I found that I can use a FM NUMBER_OF_DAYS_PER_MONTH_GET
       So, I went to CMOD.
       But there onwards, I don`t know how to write a code to link the Variable and the FM.
      Can someone please advice with a sample code ?
       Can someone please assist.

    CALL FUNCTION  'NUMBER_OF_DAYS_PER_MONTH_GET'
            EXPORTING
                  (here u need to pass the values to the FM)
            IMPORTING
                  (here u will get the values that the function returns)
    e.g.
    CALL FUNCTION 'NUMBER_OF_DAYS_PER_MONTH_GET'
            EXPORTING
              day_in            = v_mth_beg
            IMPORTING
              last_day_of_month = v_mth_end.

  • To Blank out system default requested delivery date when create Sales Order

    Hi Experts,
    I am facing a problem when create Sales Order doc copy with reference to a contract.
    The create with reference screen under the Contract tab, SAP default with current date as the Requested delivery date.
    Is there any way to blank out this default as I need to use the requested delivery data in the contract doc ?
    Many Thanks.
    Regards,
    Xavier

    Hi,
    Try this--
    While defining the Contract sales docment type in VOV8,  uncheck the proposed delivery date field in  the tab Requested delivery date/ reqested pricing date/reqested prchase order date
    I will not propose the system date and leaves the field blank
    you can enter  the required delivery date.
    Hope this will work
    regards,
    santosh

  • How to set default value to current date in Webcenter Imaging Application?

    Hi
    I have created an application in Webcenter Imaging and have a field called as ScanDate.
    While uploading documents against that particular application, i want that ScanDate field should default to Current Date.
    I tried setting the default value but it becomes a static date.
    Can anyone suggest me what to do in this case?
    Regards
    ACM

    You can't do that anyway. The default values are saved as part of the VI and a built application can not do that. Instead, you will have to do this yourself by saving the data to a file, loading it and wiring it into a local variable of the control. You can do this, for example, with the configuration file VIs or, if you want to rely on the good work that other people already did, you can go to the OpenG site and download their file package, which includes saving control values to INI files.
    Try to take over the world!

  • Date should not be  less than current date.

    Hello, I have a form.It has an item called end_date. I want to have validation of end_date in such a way that "end_date should not less than current date". Any tips would be helpful.
    Thanks in advance.

    jwellsnh wrote:
    Pravish,
    A dynamic action executing JavaScript can do this:
    Create a Dynamic Action:
    Event Before Page Submit
    Condition JavaScript Expression
    Value $v('P1_END_DATE')<$v('P1_BEGIN_DATE')In this scenario; P1_BEGIN_DATE would need to default to sysdate and could be a hidden item on the page.
    Jeff
    Edited by: jwellsnh on Jul 19, 2012 9:50 AMMaybe I'm missing something but isn't this just a use case for a common-or-garden validation? Would be interested to know why you thought of javascript rather than normal built-in functionality (not meant as a criticism incidentally!) - is javascript your first port of call when it comes to APEX?
    I'd also watch out for comparisons to SYSDATE - remember that SYSDATE includes the current time, so you'd need to take that into account (maybe you could make use of the TRUNC function to remove the time element?). Indeed, would javascript evaluate that expression as comparing two dates (I know Javascript evaluates variables byDuck Typing but does this work in practice)?

  • How to make default values for date range?

    Dear Colleagues,
    My customer is asking for a default value for a date range prompt.
    The FromDate should contain the 1st of current month, the ToDate should contain current date.
    Does anyone have any idea how I can meet this demand?
    Regards Silje

    Hi Federico,
    Thank you for the answer, we are back to the challenge after summer vacations!
    I have created a variable in the universe: SELECT current date  as TODAY FROM SYSIBM.SYSDUMMY1. I Called it TODAY.
    Then I created a prompt in the query based on Date. In Prompt Properties I tagged for "Set Default Values" and I typed in TODAY.
    When I try to run the query I get the error message:  The date for the query filter based on 'Date' is invalid (WIS10704).
    What is wrong? What do I have to do differently?
    My goal is to have a default for Date that gives me today..
    Regards Silje

  • Billing Date should be Current Date

    Hi experts,
    At present , system takes billing date from PGI document.  However this field is editable at the bill of billing ( VF01 ).  User can change it.  Our requirement is as under :
    We want the same to be made non editable OR it should pick up the current date but not future date.
    Kindly suggest how it is possible.
    Regards
    ( Rajneesh Gulati )

    This is Material management froum,any way,Use transaction variant(SHD0) to display billing date as non editable in VF01(By standard If u don't enter billing date it will take current system date as default,Billing Date is determined based on Invoicing date in Customer master Sales area billing tab).

Maybe you are looking for

  • Generation of MMON process trace files in large file size (GB Size)

    Hi, I have created a database using the dbca in windows platform. Few days I found that, in the BDUMP directory the MMON process trace files are getting generated. The files starts to generate in MB size and will increase upto GB size. I know that th

  • No sound from GB over Bluetooth connection

    The function to perform sound of Garageband over Bluetooth doesn't work well! The I-pad settings  to play sound over BT are correct. The pairing with my (bluetooth) VOIIS gateway was succesful. Music (sound)  from my I-Pad (i.e. Music APP) is transmi

  • FBCJ -cash receipt validations

    Dear all, IT'S VERY URGENT In FBCJ transaction under the tab 'Cash Receipts', I want to do the following validations. The amount value is entered under the column 'amount',then sale order number is entered under the column 'sales order'. Now my requi

  • Audio file interpreted as audiobook

    iTunes seems to be trying to interpret a particular song in my library as an audiobook (the overlapping-squares icon appears next to it) - consequently, it won't play at all. The song is 'What Goes On,' by The Beatles, if that matters. I'm unable to

  • Change Default resources Assignment Owner in Project Professional, in the checked-out Enterprise Resource Pool?

    Hi, i'm not able to change the default Assignment Owner (massive) in the Checked-out Enterprise resource pool in Project Professional 2013. I've also unlocked the "Windows account edit" in the Register Editor. Do you know if is this possible or i hav