How to Create a Text Variable

Hi Experts...
Can you please explain me how to create a Text variable...
In my Cube i had 3 different date fields....
and as per my requirment i need to create a rolling report for which will display data for 6 months rolling.
As the date field which i need to use is not mapped to Time Char's (Cal Year,Cal Month...etc)
For that reason i created below customer exit variable and used offset variables to achieve the rolling 6 months report
Code used for Customer Exit VAriable:
WHEN 'ZC_Cmonth1'. " Current Cal Month Car Expiry
IF i_step = 2.
      CLEAR l_s_range.
determine date
    LV_SYDAT     =  SY-DATUM.
    LV_YEAR_ACT  =  SY-DATUM+0(4).
    LV_MONTH_ACT =  SY-DATUM+4(2).
Set begin date of intervall
CONCATENATE LV_YEAR_ACT LV_MONTH_ACT '01' INTO LV_DATE_LOW.
Set end date of intervall
CONCATENATE LV_YEAR_ACT LV_MONTH_ACT '31' INTO LV_DATE_HIGH.
Fill ranges-tab with: include all values between beginning of year
and actual date
  CLEAR E_T_RANGE.
  CLEAR L_S_RANGE.
  L_S_RANGE-SIGN = 'I'.
  L_S_RANGE-OPT  = 'BT'.
  L_S_RANGE-LOW  = LV_DATE_LOW.
  L_S_RANGE-HIGH = LV_DATE_HIGH.
  APPEND L_S_RANGE TO E_T_RANGE.
ENDIF.
Now i need to create TEXT VARIABLE that will display the Month Name in the column name
Please update in detail step how to create a Text Variable

In your specific requirement select the which ever the keyfigure you want  to analyse, go to edit mode of keyfigure propeties there select the newvariable type and create the Text variable by maintaining the proper offset start and length and also maintain the in whcih format u want see the month name in column headers. Maintain the Text format or key format. it totally depends on u r requirement.
Hope it will help ful for u.
Bye,
Chandu.

Similar Messages

  • How to create a text variable for Calender Yr/Month depending on the prompt for calendar year

    Hi everyone
    Please assist on this issue:
    i have created a Bex report that has an offset for 12 months from the current calender month, i tried to use text variables to replace the calender months but i just learned now text variables from Bex dont work in BO, so I would like to create a prompt in BO to enter Calendar Year and then based on the input(Calender Year) the Webi report must display a 12 months for that Year.
    Please also indicate where exactly  i have to click in order to get that "Helpful icon "  when the my issues have been resolved, because i searched it and havent seen it anywhere on the communications
    Thanks in Advance
    Ole

    Hi Gill
    In BO I recieve my all months for existing data  and when i create a prompt for Calender Year the months in the report still has those text varibale for exampl if i enter 2011 on the prompt the text remains for the year that was already there wen i created my text variable... so its not dynamic.....
    So if i have text variables in Bex it will display like this in Webi in which it wont change if i put in 2011 as input for the prompt...

  • Wondering how to create a text box with variables...

    Hi everyone,
    I was wondering how to create a text box, that at the beginning of the presentation, the audience fills in regarding what they think constitutes the role they have been chosen for.
    I would like that same box to then appear at the end of the presentation, with the text they typed in at the beginning, so they can reflect on what they think now, and what they thought then. I understand this is done using variables, but i'm not 100% sure.
    I hope I've worded this okay!

    This screenshot shows the properties panel, Style tab for the TEB. I relabeled it to My_TEB, used the X button  to create a user variable v_choice that will replace the generic Text_Entry_Box_1/
    This is the properties panel of a Shape, I went in Edit mode (double clicking)to make the Character section appear, where you find the X button. It opens the dialog box 'Insert Variable' and you can choose the var associated with the TEB. The Maximum Length will define how many characters will be displayed, the value of a variable has maximum 256 characters.

  • How to create charasteristic value variable step by step please?

    How to create charasteristic value variable step by step please?
    I searched the previous threads it is not listed.
    I will assing points to only valuable information.
    York

    Hi Les,
    http://help.sap.com/saphelp_nw04/helpdata/en/ac/789b3c4d4d8d15e10000000a114084/content.htm
    In the left hand side of the query designer, find your char and under than there will be a button with text called Characteristic Value Variables. Right click this and choose New Variable. This will open the variable wizard. You need to follow the screen to define a technical name and description, the processing type, the user entry options and if the variable will accept single or multiple values, and also if you want to set a default value.
    Hope this helps...

  • How to create a global variable in forms 6i

    How to create a global variable in forms 6i

    :GLOBAL.my_var := 15; Well, this statement is not correct! Global variables
    stores a character string of up to 255 characters in
    length. Thus, valid statement for Khurram example
    is:
    :GLOBAL.my_var := TO_CHAR(15);
    or
    :GLOBAL.my_var := '15';
    But numeric values are implicitly converted by oracle so there's nothing in fact wrong with the statement...
    :GLOBAL.my_var := 15;
    ;)

  • How to create a text file or XML file  and add content through  code into it...

    Hi Everyone,
    How to create a text file and add content through the code to the text file eform javascript ......orelse can we create a text file in life cycle designer...
    Else say how to create a new XML file through the code and how some content like Example "Hello World".

    You can create a text file as a file attachment (data object) using the doc.createDataObject and doc.setDataObjectContents:
    http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.450.html
    http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.528.html
    You can then export the file with the doc.exportDataObject method:
    http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.463.html
    This won't work with Reader if it hasn't been given the file attachment usage right with LiveCycle Reader Extensions.

  • How to create a text box in ascreen painter?

    HI friends can anyone tell me how to create a text box in a screen painter?
    And attachment BROWSER like what we attach for any documents in over mail.
    Example when we click on browser the path of the computer has to be opened and by giving the document name attach and the document will be attached. Please tell me the procedure....
    Thks

    To get the best answers, I think you probably need to break down your post into several different one with a separate question in each, along with the business problem you are trying to solve... but here's a few pointers for you to research...
    Textbox - there's plenty of info in SDN on creating a custom control with a textbox e.g. Re: Text Editor on modulepool Screen and sample code in SAP too.
    Attachments - If this is for an email, then GUI_UPLOAD might help and the BCS class is the newer way to send messages... check out Re: Offline Approval: RBBP_NOTIFICATION_OFFAPP Vs RSWUWFMLEC for example... if this is an attachment for an SAP object such as an FI Document or Purchase Order, then the Generic Object Services (GOS) could be what you want e.g. https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0e6b0d95-0a01-0010-4696-ca0a48de5fb3
    Jonathan

  • How to Create a Session variable in JSP?

    How to create a session variable and add attributes to it?
    For example i want to create a session variable called "name" and add value "user" to it? if i try to do it with setAttribute(), it is giving error as both is of type string? how to do it? kindly help me

    This is variable what is working in my aplication
    String variable;
    if(user == null){
                   user=new String("");
         }//if you don'y do this you will have null pointer exception
    session.setAttribute("user",user);//put value
              String name=(String)session.getAttribu("user");      //get value;
    I hope this will help

  • How to create a session variable in Apex?

    Hello colleagues,
    Is there someone do know how to create a session variable in Apex?
    How to get them?
    Thanks
    Best Regards

    Hello,
    What do you mean by 'session variable'? You mean something that stores the value int he users session state?
    I really recommend reading the 2-Day Developer guide documentation, there is a complete section on session state -
    http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10499/concept.htm#CIHCFHBD
    Hope this helps,
    John
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd

  • How to create a text item dynamically

    Greetings to All Expert,
    Could anyone please tell me how i create a text item with code.The scenario is like this....
    Suppose there is a text item corresponding to department_id=10 and i dont know how many employees r there in this department.Now if the query returns 10 employee then how do i display these 10 employees name.....it may be 20 employees also...i dont know the actual number before executing the query..
    Regards,
    Wel
    Edited by: 787312 on Aug 15, 2010 1:03 AM
    Edited by: 787312 on Aug 15, 2010 4:19 AM

    Hi,
    You can create two blocks for this. One is an unbound block which consist of a text box with a command button. Other block is a bound block from your table(multiple rows block). In hierarchical, unbound block should above above bound block, which makes the focus control goes first to the text box. When the user type the dept code and click on the button it goes to bound block and execute the query.
    you can write code in the command block as below
    set_block_property('<boundblockname>',default_where,'deptno = '||:ti_DEPTNO);
    go_block('<boundblockname>');
    execute_query;Best Regards
    MP

  • How to Create a text frame?

    Hai
    i'm senthil....
    i'm just now started working with Adobe Indesign plugin's..
    Can anyone tell me how to create a text frame...
    wat r the steps for creating a text frame?
    what are the Interface pointers used for creating a text frame...
    plzz reply me who knows...
    bye.

    See SDKLayoutHelper::CreateTextFrame.
    You can also look at SnpCreateFrame::CreateTextFrame in SnippetRunner.
    Regards,
    Narayan

  • How to get the Text variables in the Columns Headings

    Hi,
         My requirement is I need to get data for weekly wise and for the last 10 weeks also. For this purpose I used the restricted KF based on the variables (customer exit) and offset. Also used the text variable for displaying from and to days in the column headings. I am getting the right text for the first column only. But the text offset is not considering.
    Ex 07/04/2007 to 07/10/2007      06/27/2007 to 07/03/2007 like that.
    I used the two text variables one for from data and other for to date using the customer exit. I am getting the same text as of the first column for the subsequent columns also. Please help me for getting the right text in the columns.
    Thanks,
    visu

    Hello ,
               The quite simple way is to create a text variable with replacement path , as it replaces the value of customer exit used in the report.
    create two text variables
    First variable:
    1 Replace variable with -
    external characteristic key value
    For interval use ---from value
    2.Secod text variable
    Replace variable with -
    external characteristic key value
    For interval use ---To value
    offset start -0000 offset length0000
    use these variables in the column headings.
    hope it is clear,
    assign points if useful

  • How to Create header text in Quotations?

    Helli Experts,
    Can anybody of you tell me how to create Header text for Quotations in SD?
    I want to fetch it into Layout Set. I want to hardcode it.
    Harish

    Hi,
    Use the SAVE_TEXT and READ_TEXT Function module to create a header text through program.
    Prabhudas

  • How to create an array variable

    Hi folks,
    I'm developing a flowN activity , for each branch created, I need to pass different values (values I get from DB).
    For this my plan would be,
    -create an array variable , load all the values(from DB) into the array
    -pass the array to each branch in flowN activity based on the index
    As I'm newbie to BPEL, I do not know how to create an array variable.
    Could you people guide me please.
    Regards
    Viki

    Hi,
    I created my string array like
    <element name="string_array">
    <complexType>
    <sequence>
    <element name="input" type="string" minOccurs="0" maxOccurs="unbounded"/>
    </sequence>
    </complexType>
    </element>
    <variable name="arr" element="client:string_array"/>
    I am able to add values to my array variable named as "arr"
    When I use the following code snippet, it gives my the value of the entire list.
    <%ora:getNodeValue(bpws:getVariableData('arr'))%>
    But when I try retireve values one by one like <%ora:getElement('arr','/client:string_array/client:input',[0])%>, its giving me error.
    Guide to get throu' this.
    Viki

  • How to create User Defined Variables in Procurement Contract 12.1.3

    Hi,
    We are using Procurement Contract 12.1.3. As per our business requirement while creating contract template we need to use many variables which are not available in 'System Defined' variable list. Please guide us with some samples (step by step) how to create the 'User defined' variables.
    Regards,
    Prabhu

    Hi Prabhu,
    Did you get the setps how to create user defined variables in Procurement contracts? if so please share me the setp by step flow.
    Prakash

Maybe you are looking for