Date to Date variable

Hi All,
We have a requirement to pass the value from one date variable to another date variable in another query.
These date fields being two Z* objects.
Thanks,
manasak

Create a variable and in RSBBS ( RRI settings ) pass the value of this variable to other.
Thanks,
Mayuri

Similar Messages

  • How to get data type of variable in program..

    Hi ABAP Guru.
    I need to know how to get data type of variable or any structure field.. because I got short dump when use command REPLACE ALL OCCURANCE ... with variable/structure field that has data type I or P, I think it should be used with data type CHAR only, So I need to check the data type first.
    Please give me your advice
    Thank you all.
    Nattapash C.

    data : v_value type i,
             v_char(10) type c.
    v_value = 10.
    move v_value to v_char.
    REPLACE ALL OCCURRENCES of '#' from v_char....
    Best regards,
    Prashant

  • Date range as variable values in report selection

    On a report selection screen, how can we save range values as variant?
    For example, S_ALR_87012341, I want to save the values of from- and to- dates for posting date using dynamic date calculation as selection parameter. 
    From date:  current date u2013 365 days
    To date:  current date
    I can only put one value at a time but not both.  Any value I input to the Name of Variable field, it is populated as a from-date value
    How can we put both names of variable for the from- and to- dates to the variant attributes?

    Hi,
    For the example you gave, choose Variable 'Current date - xxx,current date + yyy' , enter 365 and 0 for xxx and yyy and save the variant. When you call up that variant, you will see both 'From' and 'to' are populated.
    Regards,
    Ming

  • A Variable for Replacing From Date -- To Date

    Hi Friends,
    I am trying to create  a variable that can replace From Date -- To Date ,
    For Example In the Variable if the user enters 3 , It should Take Systems date ( today) and should show the resukts for the next three days ,
    Like this for 4 days or 5 days ..... whatever is the input , The variable should take todays date and should give the result accordingly ,
    Hope this is clear , Any sample code on this or any standard extractor or any Document describing this type of scenario would be great help ,
    Thanks in advance,
    sathy

    Hi Sathy,
    You can try the following.
    Create a formula variable (YOUR_USER_ENTRY_VAR in this example) for number of days offset (user entry).
    In customer exit we will calculate the TO_DATE based on system current date and entered offset.
    Execute TX CMOD.
    Choose either existing project or create a new one.
    Press a button Components (or use Component radio-button).
    Double click on a row with EXIT_SAPLRRSO_001.
    Double click on INCLUDE ZXRSRU01.
    In the body of this include place your code.
    CASE I_VNAM.
    WHEN ' YOUR_CUSTOMER_EXIT_VAR '.
    IF I_STEP = 2.“ After selecting of input variable
    LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
    WHERE VNAM = 'YOUR_USER_ENTRY_VAR'.
    CLEAR L_S_RANGE.
    L_S_RANGE-LOW = SY-DATUM + LOC_VAR_RANGE-LOW.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'EQ'.
    APPEND L_S_RANGE TO E_T_RANGE.
    EXIT.
    ENDLOOP.
    ENDIF.
    ENDCASE.
    Activate the project.
    Go back using green arrow each time activating the project.
    There is also some info with examples in the system:
    tcode SMOD, enhancement = RSR00001, select 'Documentation' radiobutton - Display. Make sure you do it in English.
    Best regards,
    Eugene

  • How can you add data from a variable into a column in a data flow?

    I need to populate a table with data from a variable. The data type of the variable is String. I'm running into issues doing it the way I am. I have variable
    User:VariableName = "Some moderately sized string of data"
    When I try to use a Derived Column Transformation Editor to insert the variable into the data flow as a new column, SSIS forces the Data Type to be Unicode String[DT_WSTR] and I can't change it. Additionally the length is 0 and I also can't change that.
    When I run the package it errors with a truncation error. If the length is 0 then that makes sense but then why can't I change it to something that makes more sense?
    What is the correct way to go about this?

    Use advanced editor to change data type and length.
    http://www.sureshjoshi.com/development/ssis-string-variables-in-derived-columns/

  • Passing data into a variable

    Hi, 
    All I want to do is pass numerical data into a variable, and then access it later. 
    Specifically, I use the Read Vector Space Position VI to find the X and Y positions of my motors. When I press a button, I want the X and Y position at that moment to be saved, so that I can access this information later.
    I would like to do this in a subVI.
    I have read tutorials on functional global variables, but so far they have been quite confusing. Specifically I do not know how to place/use uninitialized shift registers. 
    If someone could create a simple example code, that would be extremely helpful. I am using Labview 2011.
    Thanks

    Action Engine <- must read nugget
    If you don't understand shift registers...
    3 Hour Introduction
    6 Hour Introduction
    LabVEW Basics
    Self Paced training for students
    Self Paced training beginner to advanced, SSP Required
    LabVIEW Wiki on Training
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • To accept all date formats for variables

    Hi,
    I am getting a vadidation message on refresh of a query on entering European date format in the selection criteria "Please enter value in permitted format for variable XXXX"
    I need date to accept all date formats for variables to execute query.
    Currently US date format has been accomodated, On entering European date format i get the above validation message.
    Please suggest how do i supress this validation message or any other thoughts on the same.
    If anyone experienced the same before or applied any notes plz send the SAP Note number for the same. I am currently on BW 3.5.
    Message was edited by:
            tyson m

    tyson,
    why dont you control the date display through the user creation / user details option - then your date entries should sort themselves out.
    Arun

  • Illustrator Data Sets and Variables Help Please

    Hi, how's everyone doing?  I need a little help with Data Sets and Variables, or at least i believe that's what i need help with.  Ultimately i am trying to run an action on a batch of files. 
    I have an eps file with two images placed side by side.  They are the same image.  I am trying to replace both images and save the file accordingly.  Trying to make this happen using a bunch of files.  All the files can be in one folder and will be the same size. 
    I hope this make sense and what i need done is doable.
    Any help or advise would be greatly appreciated.
    Thanks in advance.

    Not sure a I read you correctly but if I understand you
    what you have to do is make the first two images as dynamic variables using the variable panel and save it as a data set
    then replace those two images and save those as a data set
    So now you have data set one and two.
    You can save that as an variable library (xml)and that can be loaded into other documents.
    The question is can it be actioned?
    It can be scripted and do you want the same two images to replace the same two image in each document.
    I think you really have to tell us more.

  • Secret data sets and variables in photoshop elements.

    In photoshop elements 4 thru 8, you can use data sets
    and variables, with the actions recorded for them in
    photoshop and then installed into photoshop elements.
    They work exactly like they do in photoshop and in fact
    there is already a menu item in photoshop elements,
    under in export menu, called export data sets as files.

    Not sure a I read you correctly but if I understand you
    what you have to do is make the first two images as dynamic variables using the variable panel and save it as a data set
    then replace those two images and save those as a data set
    So now you have data set one and two.
    You can save that as an variable library (xml)and that can be loaded into other documents.
    The question is can it be actioned?
    It can be scripted and do you want the same two images to replace the same two image in each document.
    I think you really have to tell us more.

  • Date and Time Variable error Plz guide

    Gurus
    When I write the query for time and date I keep getting error message mentioned below, plz guide
    DECLARE @ArrivalTme Time;
    SET @ArrivalTme = N'18:22';
    SELECT @ArrivalTme;
    GO
    Msg 2715, Level 16, State 3, Line 3
    Column, parameter, or variable #1: Cannot find data type TIME.
    Parameter or variable '@ArrivalTme' has an invalid data type.
    DECLARE @OneDay DATE;
    SET @OneDay = N'10360610';
    SELECT @OneDay AS [Day to Prevail];
    GO
    Msg 2715, Level 16, State 3, Line 3
    Column, parameter, or variable #1: Cannot find data type DATE.
    Parameter or variable '@OneDay' has an invalid data type.
    Faisal Baloch

    Hi Faisal,
    which SQL version do you use? In 2005 there is no variable "date" or "time", instead of this you have to use "datetime".
    http://msdn.microsoft.com/en-us/library/ms187752%28v=SQL.90%29.aspx
    Regards Steffen

  • Using the default date for presentation variable

    In the report I want to use the default date for the presentation variable.
    If I use the query like below,default value is giving correctly.but if I pass the date value from dashboard prompt it is throwing error
    Anybody help me to modify the below
    query to get the valid results?
    Timestampadd(SQL_TSI_day,(dayofmonth(date @{asdf}{date '1900-01-01'})*-1)+1,date @{asdf}{date '1900-01-01'})
    Edited by: user12255470 on Dec 2, 2010 12:11 PM
    Edited by: user12255470 on Dec 2, 2010 12:12 PM

    try this:
    Timestampadd(SQL_TSI_day,(dayofmonth(date '@{asdf}{1900-01-01}')*-1)+1,date '@{asdf}{1900-01-01}')
    mark answers promptly.
    J
    -bifacts
    http://www.obinotes.com
    Edited by: bifacts on Dec 2, 2010 3:21 PM

  • Getting raw data of a variable

    Is anyone aware of a handy way to get the raw (hex) data of an AppleScript variable into a text string? For example:
    «data rdatEFBBBF»
    «data isot323030372D31322D31325431373A34393A3130»
    I can do some comparisons, and put the raw data as text into a variable, but trying to get the actual raw data as text either fails or gets coerced into whatever it is supposed to be (such as ISOT). Well, actually I can do the "force an error and grab the error message" trick, but there has got to be a better way. Perhaps something along the lines of set X to do shell script "whattheheck " & (SomeVariable as data)?

    Hello
    Under OS9/Classic, we can use a mighty 'cast' command of 'programmer's tool' OSAX made by Ed Lai for this kind of task.
    http://osaxen.com/files/programmerstool1.0a10.html
    Under OSX, the ladder has been removed.
    One dirty way I can think of is to use write and read commands to force to replace the class of given data. Somethnig like this, though it won't work properly with AppleScript 2.0 if the input or output data is a sort of text object.
    --SCRIPT
    set x to «data isot323030372D31322D31325431373A34393A3130»
    --set x to «data rdatEFBBBF»
    --set x to current date
    --set x to {1, 2, 3}
    --set x to "ABC" as Unicode text
    set y to dump(x, string)
    set z to dump(y, data)
    return {x, y, z}
    on dump(x, cls)
      anything x : anything to be dumped [1]
      type class cls : resulting class of dumped data. e.g. string, data etc.
      return anything : dumped data as given class [2]
      * Notes.
      [1] x must be what 'write' osax can write to file. (E.g. script object etc cannot be processed by this method)
      [2] It won't return exact raw byte sequence in AppleScript 2.0 if
        - x's class is one of {Unicode text, string, text}; or
        - cls is one of {Unicode text, «class utf8», string, text}.
    set fp to (path to "desk" from user domain as Unicode text) & "scptdump_tempfile" & (random number 1000000)
    try
    set fref to open for access file fp with write permission
    set eof fref to 0
    write x to fref
    close access fref
    set d to read file fp as cls
    on error errs number errn
    try
    close access file fp
    end try
    error "dump():" & errs number errn
    end try
    do shell script "rm -f " & quoted form of POSIX path of fp
    return d
    end dump
    --END OF SCRIPT
    Hope this may be of some help,
    Hiroto
    PS.
    In pre-AS 2.0, we can use 'string' to hold raw byte sequence of any kind of data, although it might be indeed an abuse of 'string' object. In AS 2.0, we seem to have lost this final way to abuse string and I'm yet to know any alternative way to process raw byte sequence safely.
    Now, I think, it would be really nice to see the following basic features being implemented with «class rdat» in order to process raw byte sequence in AppleScript 2.0 or later, where we cannot 'abuse' string anymore:
    • length property; e.g. length of «data rdat0032» (count «data rdat0032») returning 2.
    • way to extract element(s); e.g. item 4 of «data rdat32303037» returning «data rdat37»
    • way to concatenate two data; e.g. «data rdat32» & «data rdat30» returing «data rdat3230»
    • way to perform valid coercion to other class, e.g. «data rdat0032» as Unicode text returning "2" (= U+0032).
    • way to perform coercion from other class, e.g. ("2" as Unicode text) as data returning «data rdat0032»
    Just my daydream. ; )
    Message was edited by: Hiroto (corrected typo)

  • Data Slice With Variables- not working

    Dear All,
    We are in BI 7.0.
    We have tried the data slice with variables approach and it is not working for us.
    We need to lock the plan data for the past periods. For  this, We have created a data slice (selection) with variable of type customer exit for fiscalyear/period.  How to populate this variable with the past month's data?. For Bex variables, this can be done in the cmod exits. Can we use the same cmod exits for populating data slice variable too?. If yes, then how this works?.( In case of Bex variable, the variable will be used in the characterics restriction (like fiscper) and hence this is getting filled up by the exit. How this works for the data slice variable?.
    Thanks for any suggestions/help.
    Regds
    velu

    Thanks for your response. Let me clarify one more thing related to this. I have 10 characterstics with a kf 0amount at my Aggregation level and i want to create a data slice to restrict the user not to change the data for the older periods. So, do i have to use all characterstics like my agg level or do i have to use only the fiscal year period?
    and the other thing is that it won't let me use a variable when i select the exit function for the fiscal year period when i created my data slice? where i can specify the variable name? is that at the settings tab or some where else?
    Thanks,
    Srini

  • Overflow of Main window data in to variable windows

    Hi,
    I have a following scenario. I have a main window . I defined some other variable windows below the  main window. My problem is that when the data is full in main window it is not triggering page break and printing variable window in the next page. Instead, the data is priting in the first page it self mingling with the data of the variable windows. Any solutions please?

    Are you giving the next page  as the second page in the first page General Attributes?
    Have you checked any checkboxs in the conditions tab of the table node?
    Regards,
    Satish
    Message was edited by:
            Satish Panakala

  • From DATE & To Date functionality in EXIT_SAPLRRS0_001

    Hi
    Guys,
    I need us assistance about a problem I am facing. In a particular query i am having a query variable From date and To date. The variable is of the type 0CALDAY.While executing the query, I am inserting the date range at From & To date respectively.
    Now, i have to get the display...
    From date: 20080517(which is the format), to be displayed into 17-May-08.
    Henceforth, I have generated two text variable of the type Customer exit. I wrote the required code under EXIT_SAPLRRS0_001: BW: Enhancements for global variables in reporting.
    I got the desired results for FROM DATE, which is displayed in the BEX report on query execution.
    But the customer exit variable for TO DATE is not fetching the result.
    Now the pertinent question, whether the customer exit execute for one variable at a time. I mean the SAP has configured the exit in that  manner.
    Please let me know whether there is any work around to get the desired result for the same i have ellucidated.
       I would be oblized if you kindly suggest me an work around to establish the process.
    Regards
    Arpan

    Hi,
    Check the report in debugging mode why its not getting the result to "TODATE" field.
    Put a break point in the Customer exit code and debug the report using the tcode RSRT.
    From here you can analyse why its not giving value to the field TODATE.
    Assign points if it helps...

  • Posting date  = Key date

    hi all,
    i am a beginner to sap bw, and learning FI AR.  for the 0FIAR_c03_q005 query, they use the posting date <= Key date. I didn't understand the meaning of posting date and key date.
    can you help me?
    thanks

    SKB
    Check this for more info on Key date
    Key Date
    Each query has a key date. For time-dependent data, the key date determines the time for which the data is selected. The default key date value is the date on which the query is executed, that is <Today>.
           1.      Choose  . The Date Selection dialog box appears.
           2.      Choose a date from the calendar and use the arrow button to add it to the selection window on the right. If you select 01.01.1999 for example, time-dependent data is read up to 01.01.1999.
           3.      Choose OK.
    You can also select a variable key date:
           1.      In the Date Selection dialog box, choose the Variables tab page.
           2.      Choose a variable and use the arrow button to add it to the selection window on the right.
    In the selection, you may need to know the technical names of the queries as well as their descriptions. In the Description window on the left hand side, choose Technical Names from the context menu (secondary mouse click).
    If you want to create a new variable, in the Description window on the left-hand side, choose New Variables from the context menu (secondary mouse click). The Variable Wizard dialog box appears, where you can create new variables .
    If you want to change a variable, in the Description window on the left-hand side, select the variable and choose Change Variable from the context menu (secondary mouse click). The Variable Editor dialog box appears, where you can change variables .
           3.      Choose OK.
    The key date only applies to time-dependent master data.
    Hope this helps
    Thnaks
    Sat

Maybe you are looking for

  • No Message: InfoCube Update Completed

    BW Gurus, I trying to load Data from PSA to the Cube Using DTP...during the data load, for certain data package the data load is keep on going and there is no error message as such and its still yellow status and under the "Updating to InfoCube ZXX_X

  • Custom pushbutton in ME21N should display a popup window with item details

    Hello,, The requirement is to 1. Add a custom pushbutton in ME21N screen at header level. 2. The user will select some PO line items and will click on this push button.     This inturn should trigger a popup window with item details only for those se

  • The remote server returned an error :(401) unauthorized in Provider hosted app deployment

    Hi, We are trying to deploy the provider hosted app in server environment . we are getting the "The remote server returned an error :(401) unauthorized" error after deploy the app in server. stack Trace: [webException:Te remote server returned an err

  • Video duration changes when imported

    Hello! I'm having a problem importing video that is over 10 minutes long into after effects cs3. okay, when I import a video that is 10 minutes or longer in duration it comes into after effects with only 2 minutes of the video. A video that is 8 or 9

  • Material Ledger activation (COML) - multiple plants in single company code.

    Hi - Material Ledger activation (COML)- multiple plants in single company code. In large mfg plant - process industry (proposed to dived into number of production plants), Matrial 'a'  is produced in plant 'a'.Material 'a' is input to procude matl 'B