BEx - Reading from another variable

dear all,
i have a variable in bex which does the calculation and logic and i want the text to be display as well... this means i will either perform the logic again just to get the text i want or is there a way to read the other variable which i have already created?

Hi,
Text variable works in 3.5 as well.
U need to go the box where u will type the description and write the & character there....u will get option to create a text varaible.Create a new one and u can use replacement path to point it to ur variable.
Hope it helps
Regards,
Rathy

Similar Messages

  • How to derive a variable value from another variable of a different IO?

    Hi Gurus,
    I am aware that using BEx variables and Customer Exit you are able to derive a variable value from another variable of the same infoobject (for example, Fiscal Year/Period (0FISCPER) and Calendar Day (0CALDAY)).
    However, is is possible, using the same approach to derive a variable value from another variable that is in a different InfoObject? (for example, Input Fiscal Year/Period (0FISCPER) but derive Output of Required Start Date (0REQSTDAT))?
    There are 2 BEx variables involved,
    1) A user entry variable that is restricted in 0FISCPER
    2) A customer exit variable that is restricted in ZREQSTDAT
    In CMOD under EXIT_SAPLRRS0_001, Include ZXRSRU01, the code (I assume, correct me if I'm wrong) should perform 3 functions in I_STEP = 2,
    1) After the pop up, capture user entry of Fiscal Year/Period
    2) Identify or convert Fiscal Year/Period to Calendar Day range (unsure on how to code this portion)
    3) Use the Calendar Day to lookup on matching Required Start Date and display all Required Start Date that matches. (unsure on how to code on this portion)
    Hope to hear your thoughts soon.
    Regards,
    Eric

    Hi Shanthi,
    I've made the necessary adjustments. The only difference in my code is,
    Instead of,
    If I_VNAM = 'ZREQSTDAT'
    I use,
    CASE I_VNAM.
    Instead of,
    PARAMETERS: ZFISCPER TYPE /BI0/OIFISCPER.
    ZYEAR = ZFISCPER(4).
    ZMM = ZFISCPER+4(3).
    I use ,
    This is the Customer Exit Variable in ZREQSTDAT
    WHEN 'ZRSD_CX'.
    The loop I use for the User Entry Variable in 0FISCPER-ZFYP_IN
      LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
          WHERE VNAM = 'ZFYP_IN'.
        IF SY-SUBRC = 0.
            CLEAR L_S_RANGE.
    ZYEAR = LOC_VAR_RANGE(4).
    ZMM = LOC_VAR_RANGE+4(3).
    The codes were checked with no errors.
    However, when I input the Fiscal Year/Periods and hit 'Execute'. The report went blank, not sure what is the cause. I've tried it several times. No error message appeared.
    Regards,
    Eric

  • Creating Variable with Replacement Path to get value from ANOTHER Variable

    Hi all,
        Is anyone has created the Variable with Replacement Path to get the value from another User Entry Variable, PLEASE ? 
    First created the User Entry Variable (ZV_X) and it accepts the date range like '01/01/2009 - 01/31/2009'. Next created the Characteristic variable (ZV_Y) of Replacement Path for which source variable will be ZV_X and we should get the 'FROM Date' (01/01/2009) from the selection (ZV_X) into it (ZV_Y).
    While creating the Characteristic variable (ZV_Y) of Replacement Path, I didn't find my newly created ZV_X variable in the list of available variables under 'Variable' header in 'Replacement Path' tab and it is causing the error 'Source to replace variable ZV_Y is not defined'. How could I create the Characteristic variable of Replacement Path for my requirement, PLEASE ?
    The following is from help.sap..com:
    Replace with Characteristic Value
    Text and formula variables with the processing type Replacement Path can be replaced with a corresponding characteristic value. In the variable editor, on the General tab page, you specify under Reference Characteristic the characteristic that is to be referenced by the replacement. On the Replacement Path tab page, you can choose whether the variable is replaced with the From or the To Value and with the Key or the Name of the characteristic value. You can also specify the Offset Start and Offset Length for the output.
    Replace with Variable
    Characteristic value variables, hierarchy variables, text variables, and formula variables with the Replacement Path processing type can take their values from a different variable.
    The following prerequisites need to be fulfilled:
    Variable
    ●      The variable must not be input-ready
    ●      The variable must represent a single value
    Source Variable
    ●      The source variable must not be a hierarchy node variable
    ●      The source variable must be input-ready
    ●      The source variable must be available in the query
    ●      The source variable must represent a single value or an interval
    In the variable editor, on the Replacement Path tab page, you specify the source variable from which the value is to be determined. The value is either determined from the key, the external attribute of the key, the description, or the attribute value. You can specify an Offset Start and an Offset Length for the output here. The variable is replaced on the variable screen upon each data release.
    Thanks,
    Venkat.

    Hi Eve,
    It is possible to connect the 2 queries using a Replacement Path characteristic variable. You would need to create the variable on the char whose values you want to pass from Q1 to Q2. The variable will be of type replacement path and you will need to enter the name of Q1 from which it will get the values. Make sure that you include this char in the query definition of Q1 and Q2. In Q2 you will restrict the characteristic using this variable. DO not use this variable (replacement path) in Q1.
    In your query properties check if you have turned on the checkmark for Release for OLE DB for OLAP (3rd tab). If the check mark is there, then remove it.
    We are using the scenario in a couple of places, and it works very well.
    Hope this helps...

  • Filling up a variable value from another variable

    Hi,
    I have two date fields, one calmonth characteristic ZCALMON (as char) and other calmonth charactaeristic 0CALMON as time dimension (standard bw).
    But at query level, I would like to user enter only one variable value 0PCALMON for 0CALMON (say only for date characteristic as time dimension). This date variable value should get copied to other date characteristic ZCALMON (as char).
    I can do this by using the customer exit varibale (without writing any abap code) and using the copy variable from other variable options. But I am not able to use the offset on ZCALMON.
    How can i Use offset using customer exit variable on ZCALMON.
    cheers
    raj

    Hi,
    you can use customer exit variable which will read the value of the 0calmonth variable and pass it to the zcalmonth.
    While populating the value, do the calculation or the off-set and send the value to zvcalmonth (Variable).
    WHEN 'ZVCALMON'.
       IF i_step = '2'.
      Loop at i_t_var_range into i_s_var_range where vnam = '0PCALMON' .
        zdat = i_s_var_range-low.
      endloop.
          CALL FUNCTION 'GO_BACK_MONTHS' *Sample Function
            EXPORTING
              currdate   = zdat
              backmonths = '012'
            IMPORTING
              newdate    = from_period.
          CALL FUNCTION 'GO_BACK_MONTHS' *Sample Function
            EXPORTING
              currdate   = zdat
              backmonths = '000'
            IMPORTING
              newdate    = to_period.
          CLEAR l_s_range.
          lyear  = from_period+0(4).
          lmon   = from_period+4(2).
          lday   = from_period+6(2).
          CONCATENATE lyear lmon lday INTO l_s_range-low.
    Hope you got it
    Regards
    Happy Tony

  • Time Machine backs up to one profile, and reads from another

    I have been running backups with Time Machine, for about 2 months now. Until now, I've never really looked closely at what comes up when I run TM.
    Today I've found that when the app is run, I can only jump back to states from the first two days that were backed up - 25th and 26th August, even though I've seen and forced backups throughout these 2 months.
    When I look in the "Backups.backupdb" folder, there seem to be two computer profiles for backing up. They are both the name of my computer, with the second one having a number 2 appended to the folder name.
    Inside the number 2 folder, I can see all of the backups performed since 26 August. It seems that my Time Machine is backing up to folder 2, but reads from folder 1!
    I don't mind deleting the whole TM setup, and starting again. In some ways I prefer it, as I want to partition this drive (but not format it), and place the TM backups on a separate partition. I'm just a little cautious of deleting backups.backupdb folder, or anything inside this.
    Does anyone know what's happening, and can I delete the "backups.backupdb" folder, or one of these backup profiles inside without stuffing things up?
    Cheers

    You only have one Mac backing up to the Time Machine disk?
    If so, then at some point, Time Machine lost track of the first set of backups and began a second set. Do you recall any event a day or two after you began using Time Machine that might explain this? Perhaps a system crash or swapping drives somehow? Something cause Time Machine to abandone the first set and start fresh.
    If you are going to repartition the drive, here is some advise regarding how to proceed...
    *_How Should a Time Machine Hard Disk be Prepared?_*
    For Time Machine to work properly, the hard disk must be formatted “Mac OS Extended (Journaled)” and its’ Partition Scheme should be either GUID or Apple Partition Map.
    Time Machine is incompatible with disks partitioned as Master Boot Record (MBR). Unfortunately, this describes nearly every hard drive you can buy because MBR is a Windows partition scheme. (Naturally, this DOES NOT apply to Apples’ Time Capsule.)
    For some, Time Machine begins to perform as expected with a new external hard disk. But then the initial full backup or subsequent incremental backups fail. The user only later discovers the hard disk was still partitioned as Master Boot Record (MBR).
    One article on Time Machine made this observation: “Virtually everybody will have to open Disk Utility and repartition the disk as APM or GUID. It doesn't really matter which one because the Time Machine disk will not be bootable anyway. APM allows a disk to boot a PowerPC, GUID allows the disk to boot an Intel processor but both are easily digestible by Time Machine on either kind of processor.” [http://www.girr.org/mac_stuff/backups.html]
    It’s been recommended by many here that your reserve +at least+ double the size of your primary hard disk, that way Time Machine backups have room to grow as the size of your data grows. Additionally, the more space you give Time Machine the more history it can preserve. The less space you reserve for Time Machine the sooner older backups & deleted items will disappear.
    One poster recommended this regarding multiple partitions: “If you do create multiple partitions (half and half would be a good place to start), make sure you use the first partition for Time Machine, and the second for your own stuff (the first one will be on top in the graphical representation shown in Disk Utility; you'll understand when you see the partition tab). This way, you can expand the Time Machine volume at any later time by deleting the second partition. Disk Utility allows this dynamic re-sizing of volumes, but volumes can only be expanded toward the end of the drive, when a volume that comes after is deleted to create the room.” [http://discussions.apple.com/thread.jspa?threadID=1712437&tstart=0]
    Procedure
    Connect the hard disk you wish to use for Time Machine backups.
    Launch Disk Utility.
    It will appear twice in the pane on the left. (Make sure you recognize that it is different from the 2 icons that represent your Macs' internal drive.) The upper entry represent the device as a whole, including the controller inside. The lower entry represents the hard disk contained within the device.
    Click on the upper icon of the external hard disk.
    Select the "Partition" tab.
    For "Volume Scheme" choose "1 partition". (Choose 2 partitions if you intend on storing other data on the disk besides your Time Machine backups. Ensure that the two partitions have different names.)
    Name the disk.
    Format should be "Mac OS Extended (Journaled)".
    Click "Options".
    Select either GUID or Apple Partition Map. (See above for significance)
    Click "OK".
    Click "Apply". Then click “Partition”.
    Once the external hard disk is repartitioned, select it again in Time Machine preferences and use it for your backups. If you chose to create 2 partitions, then select the first partition for Time Machine backups, and the second for additional files/folders.
    Let us know if this was helpful.
    Cheers!

  • How to derive value from another variable and use it to read master data?

    Hi,
    I have following case:
    First I need to read the value from Cost Center -variable (ZIPCC) and then I need to use that value to determine the home currency of that cost center from the cost center master data table (field: OBJ_CURR).
    I know to basic idea on how to do this, but don't seem to get the syntax correct. Could someone point me in the right direction?
    So the objects in play are:
    ZIPCC = Cost center selection variable (mandatory, single value)
    ZIPCUR = Cost Center Currency variable (customer exit, single value)
    0COSTCENTER
    0OBJ_CURR = Field in cost center master data
    Help will be greatly appreciated!
    -m

    Hi,
    Thank you very much for your example I can see that this logic works! However I'm experiencing trouble in selecting the 0OBJ_CURR
    This kind of declaration isn't working: "D1 Like /BIC/0OBJ_CURR."
    And the same goes for the Selection:
    "Select single OBJ_CURR into D1 from /BI0/PCOSTCENTER where COSTCENTER = i_t_var_range-low."
    This is where my syntax also went wrong.
    0OBJ_CURR is a unit, is there a special way to declare it and use it in the code?
    (and 0CURRENCY is a reference unit for 0OBJ_CURR).
    Do you have adivce on this?
    -miikka

  • Need Text variable for Bex which take values from another variable

    Hello ,
    I have a requirement to show date values in query description.
    User want to run a query which runs for 5 sept till last sunday.
    I have one exit which provides last week date range ( low= last week monday  & high = last week sunday )
    i have acheieved this by restricting 0calday by range = (5 sept 2011 to exit (above metnioned exist's low) + 6 (offset)
    now the problem is user wants to show this date range in query description .
    ie suppose user is runnig this query today so the query description should be  "5 sept  2011 to 2 oct 2011 "
    This could be possible with text variable  by using replacement path , but i am unable to figure ot the logic .
    Kindly advice .
    Regards,
    CR

    Thanks Sushant ,
    In the Tab "Replacement Path " ..there is a drop down -
    "Replace variable with" what should be choose in this ?
    I have used this selections for genearl tab  -
    General Tab -
    Processing By = Replacement Path

  • Reading from a variable "a.x"

    hi,
    i have a variable which is named as "a.x". i need to read this variable to get the value that is stored in this variable..
    how do i get it..
    can java identofy such variables

    i want the value of this variable directly..do not
    want to write it to a third variableThis does not make any sense. If you don't want a "third" (aka second) variable then just do
    properties.get("a.x");wherever you want to use that variable.
    >
    I open the properties file,Okay.
    my question , is how do i retrieve the value from a
    a variable which has a dot in its variable nameI already told you.
    Look the answer is right here and if you aren't getting it it's rather difficult to understand why unless you make some effort to communicate a coherent question.
    Why don't you do as I asked previously and post some code demonstrating what in the heck you are trying to do and why you wrongly think that I am not giving you your answer.

  • How to copy Bex queires from another multi provider

    Hi Experts,
    I developed one new multi provider in dev box, i need to developed some queries on this multi provider but same queries having another multi provider.
    finally i need copy some exesting queries to another new multoprovider with different technical name? how to do that?
    Many thanks
    David

    Hi David,
      RSZC allows to copy queries from one cube/mutlirprovider to another cube/mutliprovider having same structure..
    if not you use the below procedure to copy between multiproviders of differnt structures.
    Function Module Name : -       RSZ_I_COPY_QRY_TO_CUBE
    Step :- 1
         Open the Function Module in se37.
    Step :- 2
         Set break point in the line below.
      IF l_subrc <> 0 OR l_is_compliant = rs_c_false.
         Itu2019s the check just below Infocube compliance check.
    Step :- 3
         Run the FM.
    Step :- 4
         Give the inputs for source infocube and target infocube.
    Step :- 5
         It takes you to the breakpoint set in the FM.
    Change the value of l_is_compliant to u2018Xu2019 in the Variable screen.
    Hit F8.
    Step :- 6
         The system takes you to the select component screen.
         Select the query and transfer.
    Step :- 7
    It now leads to Rename component screen. Rename the query as per naming convention.
         Hit Enter.
    Step :- 8
    You see a lot of error messages because of the incompatibility of the cubes. Just scroll down in the log to end. Your query copy message should be in green. If it is green that shows the query was copied
    Once the query is copied , you need to open the query on the target multiprovider and then you need to save in eitther cases..whether using RSZC of same source/target structures or using the above procedure for non simialar strcutures.
    Regards
    vamsi

  • Variable value from another variable

    Hi all,
    I created a query where one variable fill nother variable with following abap code:
    when 'ZODACE'.
        tables: /BIC/AZSD_O0100,
                /BIC/AZSD_O0200.
        ranges: r_createdon for /BIC/AZSD_O0100-CREATEDON.
    break-point.
        if i_step = 2.
          loop at i_t_var_range into loc_var_range
                  where vnam = 'ZDATADOC'.
            clear r_createdon.
            r_createdon-low    = loc_var_range-low.
            r_createdon-high   = loc_var_range-high.
            r_createdon-sign   = 'I'.
            r_createdon-option = 'BT'.
            append r_createdon.
            exit.
          endloop.
          select DOC_NUMBER into
                 /BIC/AZSD_O0100-DOC_NUMBER
                 from /BIC/AZSD_O0100
                  where /BIC/ZAUDAT in r_createdon.
            select single * from /BIC/AZSD_O0200
          select * from /BIC/AZSD_O0200
                   where refer_doc = /BIC/AZSD_O0100-DOC_NUMBER.
              clear l_s_range.
              l_s_range-low = /BIC/AZSD_O0200-refer_doc.
              l_s_range-sign = 'I'.
              l_s_range-opt  = 'EQ'.
              append l_s_range to e_t_range.
          endselect.
          endselect.
        endif.
    The variable are:
    ZODACE based on IO 0REFER_DOC with customer exit
    ZDATADOC based on IO ZDATU with manual entry
    After wich end-user digit a data in ZDATADOC popup I take ODOC_NUMBER in order item ODS ZSD_O01 where ZDATADOC=CREATEDON.
    With 0DOC_NUMBER I go to delivery item ODS ZSD_O02 and I take the corresponding 0REFER_DOC and then I fill variable ZODACE.
    0REFER_DOC is in row of the query.
    When I start the query I receive the following error message:
    Error for variable in the customer exit ZODACE
    and in debug i find this message:
    System error in the program CL_RSR_REQUEST and Form GET_SETXX_WA
    How can I do please?
    Thanks in advance
    Gianmarco

    0DOC_NUMBER   type-CHAR lenght-10
    0REFER_DOC      type-CHAR lenght-10
    ZAUDAT               type-DATS lenght-8
    0CREATEDON      type-DATS lenght-8
    Can you help me please?
    Thanks a lot

  • How can I send instructions or keystrokes to an open Adobe reader from another program?

    Hi Gurus,
    In my previous question I opened the Adobe Reader as a help file.
    Now consider the case that my help.pdf file is already open on page 100 but the context sensitive help of the next dialog is on page 50. What can I do if I do not want to close the Adobe Reader and reopen it again?
    I suppose that the user has not closed the needed file and opened another one.
    How can I force the curson jump up to the input field of the page number, and fill it with "50" and send an [enter] to it? Or how can I send a "Ctrl+F", a sought word and an [enter]?
    TIA,
    Regards
               Ferenc

    You can use interapplication communication with DDE messages.
    http://livedocs.adobe.com/acrobat_sdk/11/Acrobat11_HTMLHelp/wwhelp/wwhimpl/js/html/wwhelp. htm?&accessible=true

  • Variable type Hierarchy, how to get the value from another similar variable

    Hi.
    We have created a variable, type hierarchy (using ORGEH hierarchy in HR based on 0ORGUNIT). Let's call this VAR1. We want to fill this with an User Exit, beacuse we want VAR1 to have the value from another variable, VAR2, which is also type hierarchy (and based on the same characteristic).
    However, when we program this user exit and use the VAR1 afterwards, it just behaves as if we have a single characteristic value and not a node value. As a result, we just get posts which do have the 'parent itself' as characteristic value, and none of the subnodes...  Any hints as to what we can do in our User exit to get the value passed over from VAR2 to VAR1 as a node value? Is there any spesific syntax to be used here that we are missing? ( The VAR1 and VAR2 are both defined as hierarchy variables, we have double checked...).

    Hi,
    are you on BI7.0? There you can create variables type replacement path and get the value out from a different variable without any coding.
    regards
    Cornelia

  • Variable calling another Variable. NW2004s

    Can anyone tell me If this has changed in NW 2004s?  
    Back in May 2001 SAP issued a an ASAP "How to Paper"   on How to Derive a Variable Value from another Variable?   Is this still a valid document? This was valid for BW Releases 2.0B, and 2.1C If so, to what extent?
    Right now I have Functional Area we are using in SEM for Plan data. We are doing an a compare  Plan to actual data,  that uses BW Functional Area for Actuals.  When we enter the FA in the SEM template, we want it to call and populate the BW FA behind the scenes then execute the report.
    Also, have any of the Function Modules or User Exits for this changed?  Particularly RRS_VAR_VALUES_EXIT_AFTER
    Thanx and all help appreciated.
    -JM

    Andreas,
    Thank You.   BTW, I am an SAP Alum worked in NSQ 10 years and for Labs for 3 Mos.
    How's that for a small world.,,
    Best
    JM, or  I080860

  • Bex exit Variable from another one.

    Hi Expert,
    Do you Know how to define a value for a variable from another that is navigable in the bex query. In other words, when i change a value during the OLAP navigation in the query, another variable must change on the basis of the first one. The first variable isn't a "variable selected from user" on the start of the query but is a "mandatory" with a default value. When the default is changed on the OLAP,  another variable must change.
    How can I do?
    Thanks.

    OK. I see - just to be sure: You dont want to call the variable screen, when making the change, right? That is how I understand it, if I am wrong, you can use an exit variable for ZC_FASCIA and fill it depending on what was set in 0calmonth variable.
    So, assuming you dont want to call the variable screen, have you tried setting the dependent variable to changeable during query navigation? I dont think it works, but anyway, try it out...
    One way of "solving" your requirement of "set value for Y when X is changed by user" could be to use a compounded characteristic where you compound ZC_FASCIA with 0calmonth. I think you should be able to compound ZC_FASCIA = 1 with 0calmonth = <blank>...
    Next, create a variable for this new char. Using a default should be possible and it would have to be changeable during query navigation and let users change the default month without calling the variable screen.
    I dont know if this works/helps...
    Regards
    Jacob
    P.S: Your requirement only seems to come from the "need" to have 0calmonth = #. If you did not need the #, you would always have 2 for ZC_FISCIA... so I was wondering why you need the blank month? Something with an annual value stored in # month??
    Edited by: Jacob Jansen on Jan 29, 2010 9:38 PM

  • Problem in BW query can read a variable from another query

    dear all
    now I create three queries
    the name are queryA queryB queryC
    there is a variable VAR_1 on queryB
    there is a variable VAR_2 on queryC
    webtemplate is only one and all queries belong to webtemplate
    VAR_1 is DATE
    VAR_2 is MONTH
    in inputscreen user will input VAR_1
    can we read VAR_1 and then VAR_2 = VAR_1+0(6)
    I created souce on CMOD but can't read VAR_1
    the code as below
    case i_vnam.
    when 'VAR_2'
    read table i_t_var_range into s_var_range
    with key vnam = 'VAR_1'.
    l_date = s_var_range-low.
    l_s_range-low = l_date+0(6).
    l_s_range-sign = 'I'.
    l_s_range-opt = 'EQ'.
    append l_s_range to e_t_range.
    endcase.
    PLS HELP ME

    Hi,
    As vijay said you try ...
    Let me explain:
    Create another variable var_3
    on queryB which is of type 'customer exit' and you write the code for this var_3 (date) in CMOD just to store this value in some ztable.
    create a ztable with fields of type
    1. sy-datum(system date)
    2.sy-uzeit (syatem time)
    3. sy-datum (for storing the value of var_1).
    make first two fields as key.
    Now for queryC create var_2 type 'customer exit'.
    Now for this variable in CMOD , get the value of third field from ztable for the last entry in the ztable.Write the logic for caluculating month and populate var_2.
    Hope its clear..
    Shylaja.

Maybe you are looking for

  • 0EC_PCA_1 Accumulated Balance field issue

    Hi Gurus/Experts, We have a standard extractor in ECC side: 0EC_PCA_1 wherein USD currency (CURRTYPE/Currecny type = 30) is giving out a sum value for Accumulated Balance field of -300,962.66 for Plant A. I checked on its corresponding EUR value (CUR

  • Will current versions of Firefox emulate older Firefox versions of browsers like IE8 or allow someone to open with another browser in Safari?

    The compatibility function in IE8 allows me to emulate an older version of a browser when software won't work with IE8. I can emulate a different browser when I use Safari 5. Can you do this with Firefox?

  • The Pen Tool is driving me CRAZY!!!

    Not using roto bezier. I have some basic frame by frame masking that I need to do. When I click and drag a point to a new position, after I release the mouse, the point moves to a random position FAR from where I dropped it. To rub salt in the wound,

  • Tax calculate

    hi can u tell me when i post calculate the tax for po its comes decimals but iwant to its rounding of decimals where its configure can u tell me t codes plz give me Regards nasa

  • Really bizzare SQL issued by BI server 11.1.3

    From OBIEE answers I select one column from a single fact table using a time and location dimension. The SQL that gets issued by the BI SERVER to the backend database contains an outer join over a COMPLETELY UNRELATED Fact table, which produces incor