Error in Display of Text variable

Hello gurus,
I have a requirement in which power user wants to see the output as follows :
Product sold of Current year for months --- to -
     /  Product Sold of Previous year for months --- to -
So if on Selection screen ,user enters months 01/2005- 05/2005
it should show the
Product sold for 01/2005-05/2005  / Product sold for 01/2004-05/2004
So i created 2 text variables one for start period and second for ending period.
I included this in the display of 1st column.
It is coming perfectly.
Now how shall i include or do this for 2nd column.
In second column i just set the offsets value so data is coming right
If i restrict those with time chara.
But in display of 2nd column ,
WHAT SETTINGS I DO FOR TEXT VARIABLES.
plust the requirement is that.
User shall enter the Value of range of months only ONCE.

Hi Noviced
1.  Create a variable having user input enabled for calmonth range.
2. Create a customer exit variable
3. Restrict one KF with this cust exit variable and one with user input variable
4. Cust exit variable will give the value of previous year months.
5. Write the code in CMOD under ur project
DATA: loc_var_range LIKE rrrangeexit,
             l_s_range   LIKE rrrangesid.  "Header line for E_T_RANGE for export
WHEN 'ZTEXT'.
IF i_step = 2.
READ TABLE  i_t_var_range INTO loc_var_range WITH KEY  vnam = 'ZINPUT'.
v_year = loc_var_range-low+0(4).               " Take the year
v_month_start = loc_var_range-low+4(2) . " Take the starting month
v_month_end = loc_var_range-high+4(2).   " Take the ending month
v_year = v_year - 1.
CONCATENATE v_year v_month_start INTO l_s_range-low.
CONCATENATE v_year v_month_end  INTO l_s_range-high.
l_s_range-sign = 'I'.
l_s_range-opt = 'BT'.
APPEND l_s_range TO e_t_range.
ENDIF.
Thanks
Tripple k

Similar Messages

  • Empty paragrpahs in a textflow cause runtime error when displaying the text

    Hello there,
    when I create a textflow which has empty ParagraphElements in
    it (i.e. a ParagraphElement without any children) I get this
    runtime error once I try to display the text in a container:
    Error: Error #2175: One or more elements of the content of
    the TextBlock has a null ElementFormat.
    Is this a bug, or is there a legitimate reason for this
    error? If so, I'd like to understand why. In my reasoning an empty
    ParagraphElement should just result in the rendering of a newline.
    But maybe I'm thinking too much in HTML terms here...
    I appreciate any light you can shed on this,
    thanks in advance,
    Roland
    P.S. I'm using the latest build 370

    Hey Richard,
    thank you very much, and I was indeed already using your
    mentioned workaround, I was just wondering whether it was a bug or
    something I didn't fully understand :) But now I do, so thanks for
    your time.

  • Why text variable displayed as itself.

    Hi expert,
            I create a text variable for a key figure, which is restricted by a variable for 0CALDAY. but when run the query. this KF is displayed as text variable name , such as &...&.  so what is wrong with definition.
    Many Thanks,

    I believe you have used system font or applied effects which would convert the text into image on export. I would suggest you to use web safe font and then export which will resolve this issue.
    More details : http://helpx.adobe.com/muse/using/typography.html
    Regarding center position of contents in page , you can use Pin feature and pin the objects on page.
    More Details : http://helpx.adobe.com/muse/using/objects.html
    Thanks,
    Sanjit

  • How to display text variable of type customer exit

    Hi to all,
    I have created a query in query designer which display sales value according to plant.
    There i have also used a variable which will take input from user and restricted on 0CALDAY.
    I have also created 2 text variable to display the text for sales based on input in variable.
    I need when user enter the 01.02.2010 - 31.12.2010 value in variable , text variable should display SALES FROM 01.02.2010 TO 31.12.2010
    i knew how to do that by using text variable of processing type customer exit.
    But display of text variable is like SALES FROM 01022010 TO  31122010  ,
    But i need that SALES  01.02.2010 TO 31.12.2010
    i shall be thankfull to you for this.
    Regards
    Pavneet Rana
    Edited by: pavneet rana on Dec 22, 2010 7:46 AM
    Edited by: pavneet rana on Dec 22, 2010 8:03 AM

    Hi,
    Give Description on Sales Amount  as SALES FROM &ZVAR_YEAR1& TO &ZVAR_YEAR2&.
    ZVAR_YEAR1 & ZVAR_YEAR2 are the two text variables. These two variables should NOT be input enabled.
    In the Exit - under I_STEP = 2, write the below code.
    WHEN 'ZVAR_YEAR1'.
      DATA:   l_s_range       TYPE rs_s_range,
                   loc_var_range TYPE rrs0_s_var_range.
      READ TABLE i_t_var_range INTO loc_var_range WITH KEY vnam = 'ZVAR_INPUT_CALDAY'.
      l_s_range-sign = 'I'.
      l_s_range-opt  = 'EQ'.
      l_s_range-low  = loc_var_range-low.
      APPEND l_s_range to e_t_range.
    WHEN 'ZVAR_YEAR2'.
      DATA:   l_s_range       TYPE rs_s_range,
                   loc_var_range TYPE rrs0_s_var_range.
      READ TABLE i_t_var_range INTO loc_var_range WITH KEY vnam = 'ZVAR_INPUT_CALDAY'.
      l_s_range-sign = 'I'.
      l_s_range-opt  = 'EQ'.
      l_s_range-low  = loc_var_range-high.
      APPEND l_s_range to e_t_range.

  • How can I show the Text variable in WAD 7.0

    Hi All,
    How I can show the text variable in WAD 7.0??
    Kinsly suggest me..
    Re

    Hi,
    As far as i know u do not need any special web item to display the text variable as such. have a analysis item in u r WAD and assign query to the same. Ur variables appear as per the configuration u have made in the query designer. WAD has nothing to do.
    Regards

  • Text Variable error "No value could be determined for variable " Brain 632

    Hi,
    I want to display current fiscal period as description in the colomn of a query.
    Ex. If current fiscal period is 005.2009 in the colomn it should display 2009005
    For that I have created a text variable.(Is it correct to create a text variable for this?)
    But it gives me following error.
    "No value could be determined for variable " Brain 632 Error.
    Please help.

    I assume that your requirement is suppose a user enter a date as 01/12/2010 - 31/12/2010 in the selection screen then he should get the data for this  range in one keyfigure and 01/11/2010 - 31/11/2010
    For this requirement you have to create one customer exit variable on calendar day :
    I have taken into account only the two values .
    Important is to take into account what if a month has 31 days and previous month has 30 days.
    The user exit will trow an error in this case .
    You need to handle this in the code .
    Data :
    day type string,
    year type string ,
    Month type string ,
    LS_Calday type Date.
    IF i_step = 2.
      CLEAR loc_var_range.
      READ TABLE i_t_var_range INTO loc_var_range
        WITH KEY vnam = 'Z_PCG1'.
    day = loc_var_range-low+6(2) .
    Year=loc_var_range-low+0(4).
    Month =loc_var_range-low+4(2) .
    if month = 01 ,
    year= year -1 .
    month = '12'
    concatenate year month day into LS_Calday .
    else if month = 03
    and day =31 or day = 30 or day = 29 .
    day = 28 .
    month = month -1 .
    month_high = month 
    concatenate year month day into LS_Calday .
    else if month = 05 or month = 07 or month = 10 .
    month = month -1 .
    concatenate year month day into LS_Calday .
        CLEAR l_s_range.
        l_s_range-low  = LS_Calday .
         l_s_range-sign = 'I'.
        l_s_range-opt  = 'EQ'.
        APPEND l_s_range TO e_t_range.
      ENDIF.
    ENDIF.
    restrict the first keyfigure with the user input variable and second with this customer exit variable .

  • Error in creating Text Variable

    Hi  Gurus,
    I have one requirement to create a text variable for the user & the user wants to put the description as input to the variable.
    But when i am creating the variable,the variable type "characteristic Value"  is by default selected and i am also unable to change the variable type to text variable.
    Please any body have the solution to resolve the error.
    Regards
    Debasish

    Hi,
    Just select a particular key figure and on the right side you will see its properties..
    Now just besides the description of the key figure you will find a symbol for create variables, just click on that.. It will create a text variable...
    Edited by: mansi dandavate on Aug 31, 2009 11:12 AM

  • Text Variables are not being Displayed in the Output of the Query

    Hi All ,
    We have some column headings , which are populated through the Text Vaiables , But in the Query Ouptput only the tech names of the Text variables are being displayed . can anyone tell me why its happening like this . I want to debug the Query , please guide me in this regard
    Thanks in Advance.. Pls reply me as soon as possible

    Hi Nagarjuna reddy,
    Click on the properties of the infoobject enter the name of the description and next to that you can see the X/? buttion click on the this button and select the field/if the proper field is not there then create a field descriton and select. i hope this is works and correct me if i am wrong. for debuggin the query use a transaction code- RSRT.
    regs,
    Vachan

  • Problem in Displaying text Variable

    Hi All,
    I have problem in Displaying text Variable in the column header.
    My requirement is as follows.
    Column Level:
    0Calmonth/Year
    Key figures
    Keyfigure1 - Current Month  - Text Variable1
    Keyfigure2 - Previous Month - Text Variable2
    Keyfigure3 - Previous Month - Same as Text Variable2 - Display same month
    So based on each 0Calmonth/year these three keygirues should display in Header section like.
    Selection screen
    0Calmonth/Year - 03.2005 - 06.2005
    Result should be for each month.
    0Calmonth/Year
    03.2005                                04.2005                              05.2005
    03.2005 | 02.2005 | 02.20005  04.2005 | 03.2005 | 03.2005 05.2005 | 04.2005 | 04.2005.
    I have created two text variable with Customer exit.But not able to show exact months in the header section.
    For first three columns months are coming exactly, but from fourth columns it should display next month, but it is not coming.
    I have tried to code, but not successfull.
    Please help me how to go about this.
    Will assign full points.
    Regards,
    Vijay

    hi
    Check here........
    Re: Customer Exist for "From Current Date To Month End"
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/25d98cf6-0d01-0010-0e9b-edcd4597335a
    Cal month
    it might helpful for you
    assign points if helpful

  • Error Box displays in JClient Form with no text (preview 9.0.3)

    I am using Preview 9.0.3, with a JClient Form, running as an applet. When I execute the applet within JDeveloper, an Error box displays, but has NO text. When I try to close the box, it just keeps redisplaying, with no text. I am using the -Djbo.debugoutput=console, and the last statement to be logged is the SELECT statement from the Entity Object I am working with.
    Is there any other diagnostic logging I can turn on to find out what the error is?
    Any ideas?

    I am using Preview 9.0.3, with a JClient Form, running as an applet. When I execute the applet within JDeveloper, an Error box displays, but has NO text. When I try to close the box, it just keeps redisplaying, with no text. I am using the -Djbo.debugoutput=console, and the last statement to be logged is the SELECT statement from the Entity Object I am working with.
    Is there any other diagnostic logging I can turn on to find out what the error is?
    Any ideas? You may turn on the diagnostic on BC4J to see where things are breaking.
    Open up Project settings. In the Runner panel, provide runtime option : -Djbo.debugoutput=console

  • Text variable placeholder display

    Not too many people will be familiar with both Mac and Windows incarnations of CS3, so this might not be a known issue (then again, I just might have missed previous discussions).<br /><br />Placeholders for Text variables are displayed on master pages as "<Name of variable>" on my Windows machine. If I open that same file on any one of our Macs, they are displayed as "" -- that's right, a tiny tiny dotted rectangle, with no recognizable text.<br /><br />Is that just all of our Macs (4 of them), or is the Mac community missing out on this rather important hint? If the latter, do they care? ;-)

    Sorry, Haeme, it's not <br />i literally <br />a ""-thingy. Sometimes I forget not everyone is a programmer -- it's an empty string, zero characters. With invisiblies on I can see a thin, tall, blue dotted rectangle.<br />(walking 'round to a random Mac:)<br />Just (double) checked. It has nothing to do with Windows files, an entirely new file does the same.<br /><br />Some further details: it only happens with Running Headers, which kinda makes sense, as the other types immediately display a value (Filename, Output Date, and the like). But I'd think that's what the <Placeholder> was for; to see <br />i something <br />there.<br /><br />If I just could remember how to make a screen shot on OSX (wait, I got it ...)<br /><br /><img src="http://www.jongware.com/binaries/weirdvariable.png" />

  • Text variable creation Error.

    Hello gurus ,
    I am working in BI 7
    I have to design a Report in which i want follwoing key figures in column
    Net volume (User entry range of month)      Billing Product (same range of month)
    Now the trickiest part is that whatever user enters on Selection Screen i.e the range of month of year they wanted to see the output,
    they also want to see the same range entered in Report output.
    For e.g.
    user enters   Jan-March 2007
    Then in query output it shuld show
    Net volume (Jan-March 2007)      Billing Product (Jan-March 2007)
    Like wise.
    So if it aggregates the data for January to March , there is no worries.
    What i did?
    I restricted Net volume in Selection screen with Fiscal year/period.
    I restricted Fiscal year/period with Standard Interval range variable.(Because in its technical name the prefix was "0")
    Then i tried creating Text variable, and tried to include it in Description,
    BUT OVER THERE WHILE INCLUDING IT , I WAS UNABLE TO SEE THE INTERVAL RANGE VARIABLE.
    So i tried creating my own variable, and tried to use it.
    IF i use my own created variable everywhere i dont get output.
    But if i use Standard SAP provided variable everywhere, I am unable to include it while creating Text variable.
    Where did i go wrong ?
    For text variable i followed this procedure
    Message: Create Text Var - >Type of var - Text ->Processing type - Replca Path ->Time char on which u hav created the interval var ->Replcaement Path - > Replacement Tab : Replacement Variable -Variable - > Variable - Giv the Interval Variable
    - > Replace with key or text.
    Please advise

    Noviced,
    Best to create your own but you will need two. One to show you the From value and one to show you the To Value.
    When you are selecting the display type, you will see an option on that Dialogue box to show the From or To.
    Regards
    Gill

  • Text Variable(Customer Exit) displays variable name instead of its value.

    Hi Gurus,
    My requirement is to display the year(from variable) as the field name i.e Year end salary 2009.
    I was using the fields name as hardcoded values like 2009 but as per my requirement i need to display it from the variable.
    I tried using Text Variable using customer exit, but I'm getting variable name(zvariable) instead of value(2009).
    Please help me out, many thanks in advance.
    Regards,
    Ankur

    Hi,
    Actually I tried to create a Text Variable with Replacement Path.
    But here the problem is that we have a Characteristic Variable (Customer Exit) which is not listing in the selection box of Replacement Path.
    Hence we tried to create another Text Variable (Customer Exit) and refering to the same Customer Exit code.
    Regards,
    Ankur

  • Problem in displaying dates for replacement path with text variable

    Hi all,
    I have to display dates in sequence as descriptions for 15 columns based on the the date entered by the user in Bex Report.I managed to display date as description using text variable with replacement path for single column.I could not able to increment date for other descriptions.Could you please help me to solve this issue.Its urgent.
    Ex: User enters 03/09/2007 then in the out put desciptions for the columns should be  03/09   04/09  05/09 ............ 17/09.
    Thanks in advance.
    Regards,
    Mandadi.

    Hi,
       goto the properties of your KF and click on the variable button side to that of the description field and click on new/Create option.Enter the technical name description for the text variable and select Replacement path as the Processing type and in the nxt screen select Fiscal year as the replacement variable and in nxt screen  specify as Key and provide offset values if necessary and click on finish.now select the variable by clickin on the variable button next to the description field.it comes after the description of the KF.Now run the query.
    Thanks,
    Sandeep

  • Error using Text variables

    HI all
    I am trying to create Text variables in query.
    But it is throwing the below error when i use that.
    Error : Source is not permitted variable for target period from variable 0p_fiscper3_2
    Pls let me know what would be the problem and how o debug it
    Thanks

    My user exit retuns a table in a select-option format
    SIGN OPT LOW
    I   |EQ |29 DEC 2003
    I   |EQ |05 JAN 2004  
    My query looks similar to this
    01/2004                     02/2004
    29 Dec 2004
    xxx xx xxxx  xxxxxx xxxx    xxx xx xxxx  xxxxxx xxxx
    I am not sure why this is happening.
    Thanks
    Eric

Maybe you are looking for