Skip to Content
author's profile photo Former Member
Former Member

Help with Text Variable User Exit

Hi All,

I have a requirement to display the start date range which the user inputs to show as the heading/lable of the report. The dates will be selected as a range like 1/1/2007 to 1/31/2009 and I need it to be displayed in the report as the heading like "January 1, 2007 - January 31, 2009". Therefore I think, I will have to a create a text variable with customer exit form and in the code I will have to define the text for each month ( like 01 = January, 02 = Febuary ) & as it's a range, i guess 2 text variables will need to be created. I am working in BI 7.0.

My questions are:

1) What all options do I need to check when I create the new text variable? And where will I need to insert this text variable in report definition? It is inserted near the query discription?

2) Can anyone please help me with code? Not sure how i can achieve this..

Can anyone advice please. Points will be awarded.

Thanks a lot!!!

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 07:41 AM

    Hi Sia,

    at first I have to let you know that I'm not familiar with BI7.0, because we still run BI3.5.

    In my mind you don't have to create 2 variables, one should be enough because for the range 01/01/2008 to ... theire is a variable ( in BI3.5 called 0I_Days )

    And for the coding you should take a look into in Sap documentation

    http://help.sap.com/saphelp_nw04s/helpdata/en/1d/ca10d858c2e949ba4a152c44f8128a/frameset.htm

    ( if the link doesn't work search for i_step )

    Last but not least some example Code:

    Case i_step.
    
    when 1.
    ...
    when 2.
    case vname.
    when '<your variable>'.
    if 0I_days-low(2) EQ '01' .
    concatenate 'Jan.' 0i_days-low+2(2) ',' 0i_days-low+4(4) into l_s_range-low.
    
    elseif 0I_days-high(2) EQ '01' .
    concatenate 'Jan.' 0i_days-high+2(2) ',' 0i_days-high+4(4) into l_s_range-high.
    elseif ...
    ...
    endif.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'BT'. 
    Append e_t_range.
    endcase.
    endcase.
    

    Hope this helps

    Sebastian

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.