HOW TO DISPLAY A VARIABLE

hi friends,
I have a variable in wk_matnr value is 'MATERIAL123'.
How to display this variable like Material No :-MATERIAL123
How to code for this in BSP.
Moosa

Hi,
To display any variable in BSP.
you need to do this:
<%= varibale name %>
For your variable,
<%= wk_matnr %>
OR
<htmlb:label for = "wkm"
                   text = "Material No" />
<htmlb:text id = "wkm"
text = "<%= wk_matnr %>" />
Hope this is helpful.
Regards,
Abhinav

Similar Messages

  • How to display the variable content in message?

    Hi anybody
    please let me know How to display the variable content in message?
    please send few lines of sample code to understand that
    thanks in advance

    Hi,
    Check out the link
    http://help.sap.com/saphelp_nw70/helpdata/en/2c/840b42202cce6ce10000000a155106/content.htm
    REPORT Y9020027 LINE-SIZE 130.    "Release 3.1G, 4.5A                  
    BREAK-POINT.
    MOVE: 'TESTREPORT for    "ASSIGN  FFeld+o(l)  TO  "        '     
            TO SY-TITLE.
          Declaration of variables    **********************
    FIELD-SYMBOLS <FS1>.
    DATA: FFELD8(8)   TYPE F VALUE '1022333'.   "Unusual: Explicit 8 bytes
    *DATA: ZFELD1(2)    TYPE N.            "Here slack bytes are (DW border)
                                         "necessary                      
                  "If you like computing error, please uncomment the above
    DATA: FFELDX(8)   TYPE F VALUE '7777777'.
    DATA: FFELDA(8)   TYPE F VALUE '7333213'.
    DATA: NFELDX(400) TYPE N.
    DATA: OFFX(4) TYPE I VALUE 160.
    DATA: LENX(4) TYPE I VALUE 8.
                  Main Section             *******************
        SKIP.
        WRITE: /5  'Example 1   **** inadmissible ASSIGN ***' COLOR 6.
        WRITE: /10 'Inadmissible ASSIGN: ''ASSIGN FFELD4+1(3) TO <FS1>'' '.
      ASSIGN FFELD4+1(3) TO <FS1>.
        ULINE.
        SKIP 2.
        SKIP.
    ASSIGN FFELD8+8(8) TO <FS1>.     "<-- Assigning of variable  FFELDX  !!
        BREAK-POINT.
        WRITE: / 'ASSIGN command with FFELD8, but FFELDX will be assigned'
                  COLOR 3.
        WRITE: /5 'Example 2'.
        PERFORM DISPLAY-FFELD USING FFELD8 'FFELD8'.
        WRITE: /10 'Content of   FFELDX      :', FFELDX.
        ULINE. SKIP 2.
        SKIP.
    ASSIGN FFELD8+16(8) TO <FS1>.    "<-- Assiging a few FFELDA to <FS1>  
        BREAK-POINT.
        WRITE: / 'ASSIGN with FFELD8, but instead FFELDA is assigned'
                  COLOR 3.
        WRITE: /5 'Example 3'.
        WRITE: /10 'Content of   FFELDA      :', FFELDA.
        PERFORM DISPLAY-FFELD USING FFELD8 'FFELD8'.
        WRITE: /10 'Content of   FFELDA      :', FFELDA.
        ULINE. SKIP 2.
    BREAK-POINT.
       DO 4 TIMES.
         ASSIGN FFELD8+OFFX(LENX) TO <FS1>.     "Zuordnung auf OFFX zu <FS1>
            WRITE: / 'ASSIGN command with FFELD8, es wird NFELDX zugeordnet'
                      COLOR 5.
             WRITE: /5 'Example 4', 'DO-Schleife Nr.:', SY-INDEX.
             PERFORM DISPLAY-FFELD USING FFELD8 'FFELD8'.
             WRITE: /10 'Content of NFELDX145(40)  :', NFELDX145(40).
             ULINE. SKIP 2.
             ADD 8 TO OFFX.
       ENDDO.
                   Subroutines             *******************
               Display of data fields and field symbols                  *
    FORM DISPLAY-FFELD USING FFELD FNAME.
    WRITE: /10 'Content of', FNAME, ':', FFELD.
    PERFORM FELDEIGENSCHAFTEN USING FFELD.
    WRITE: /10 'Content of <FS1> :', <FS1>.
    PERFORM FELDEIGENSCHAFTEN USING <FS1>.
    ADD   111    TO <FS1>.               "<-- Das Feldsybmol wird verwendet
    WRITE: /10 'ADD 111 TO <FS1>'.
    ULINE.
    WRITE: /10 'Content of', FNAME, 35 ':', FFELD.
    WRITE: /10 'Content of <FS1>',  35 ':', <FS1>.
    ENDFORM.
       Determination of field properties (only for information)          *
    FORM FELDEIGENSCHAFTEN USING ALLG.
    DATA: FLAENGE(2) TYPE N.
    DATA: FTYP(1) TYPE C.
    DATA: FOUT(2) TYPE N.
    DATA: FDEZ(2) TYPE N.
      ULINE.
      DESCRIBE FIELD ALLG LENGTH FLAENGE.
      WRITE: /10 'Field length  :', FLAENGE.
      DESCRIBE FIELD ALLG TYPE FTYP.
      WRITE: /10 'Field type    :', FTYP.
      DESCRIBE FIELD ALLG OUTPUT-LENGTH FOUT.
      WRITE: /10 'Output length :', FOUT.
      DESCRIBE FIELD ALLG DECIMALS FDEZ.
      WRITE: /10 'Decimals      :', FDEZ.
      SKIP 1.
    ENDFORM.
    END OF PROGRAM *************************************

  • How to display a variable in the report?

    hi all
    i want to use one complex sql statement which will return only one value and i need to display it in report. i'm new to OBIEE. i thought of creating a repository variable to hold that value. but im not sure of how to display the variable in the report.
    Any idea?
    Your help is appreciated

    Hi where do you want to show that value in answers i mean in which part of answers, you want to show that?
    see this
    http://bischool.wordpress.com/2009/05/05/presentation-variable-values-in-report-titles-or-using-presentation-variable-in-dashboard-text-object-and-narrative-view-directly/
    also see this to where and how to use variables in answers
    http://shivabizint.wordpress.com/2008/10/02/oracle-bi-ee-variables-overview/

  • How to display presentation variable in a column

    Hi all....I have to display presentation variable in a column...
    I tried placing @{variable_name} in column formula..
    But it is displaying a value 0 ..where the variable carries a date value.
    Any suggestions?

    Take a look at this blog: http://gerardnico.com/wiki/dat/obiee/presentation_variable
    Try it out by providing a default format.
    Thanks,
    BIPuser

  • How to display the variables in the specified manner?

    We need to display some variables in an array in the horizontal order with backslash between the variables using a For loop in XML
    For Example
    Variable 1 / Variable 2 / Variable 3
    Could someone provide valuable suggestions on the same.
    Regards,
    Sudeep.

    Not sure if I understood the question, do you mean you want to display variables as output, where in the logic runs in a loop while reading the XML data and creates an array of data separated by backslash? You can always concatenate the variables similar to string concatenation.

  • How to display a variable value in WAD?

    I am using a replacement path variable to filter a report by project number. While this works fine, the project number is not easily visible (only via Filter -> Display All Filter Values and this only displays the description, not the key).
    How can I display the key and the description of the project number variable at the top of the report?
    Thank you,
    Dennis

    The first part is right -
    1) drag a text element onto the page, at a location in which you want the variable value to be displayed
    2) On the left hand bottom page - go to the web item properties for the text element
    3) scroll down to the specific properties for the item - in that uncheck the first two check boxes - display general text elements & display static filter values
    4) in the next item in the properties (List of text elements) click once on the box where List is written and then clcik on the small browse button that appears.
    5) in the window that opens, in the element type field, select variable/variable value as key (as per your requirement) and then under the element ID field type in the technical name of your variable that you want to display.
    click ok and save your template and try executing it.
    See if this solves your problem.
    regards,
    Nikhil

  • 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 to display a variable in the message

    Hi all,
    I am developing an application where I am parking a document, can anyone please tell me how can I display the document number on the web dynpro screen with the message once the document has been parked. So far I have written the following code but this is just for displaying a message only and not the number:
    DATA lo_api_controller     TYPE REF TO if_wd_controller.
        DATA lo_message_manager    TYPE REF TO if_wd_message_manager.
    lo_api_controller ?= wd_this->wd_get_api( ).
        CALL METHOD lo_api_controller->get_message_manager
          RECEIVING
            message_manager = lo_message_manager.
        CALL METHOD lo_message_manager->report_success
          EXPORTING
            message_text = 'Document has been parked.'

    DATA lo_api_controller     TYPE REF TO if_wd_controller.
    DATA lo_message_manager    TYPE REF TO if_wd_message_manager.
    data lv_document_number    type        string.
    data lv_message_string        type        string.
    lo_api_controller ?= wd_this->wd_get_api( ).
        CALL METHOD lo_api_controller->get_message_manager
          RECEIVING
            message_manager = lo_message_manager.
    *** get document number in lv_document_number
    lv_document_number = .....
    *** form message string
    concatenate 'Document has been parked : Document No :' lv_document_number into lv_message_string.
        CALL METHOD lo_message_manager->report_success
          EXPORTING
            message_text = lv_message_string.

  • How to display presentation variable in a narrative view

    Is there any way that we can display the prompt value stored in a presentation variable in the narrative view?

    Hi,
    use this synatx @{PRESENTATION_VARIABLE}{'Default'}
    Regards,
    Gianluca

  • How to display the variable screen with report in the same page together

    our customers want to design a web application use BEx
    they want the variable screen can be displayed with the report result in the same web page together
    so they can modify the variable filters any time and refresh the report with new variable filter
    i have tried the navigation area,but it seems only use new filter to the data athough get,we can't change the filter we input in the variable screen.
    is there any way to display these together?
    even I can use BSP.

    I think to display var screen with the report is not possible.(At least it will not be static). You need to refresh the report and choose the varibale at that time.
    Other option could be to bring all the possible value in the report and provide your user with the filter value. But this will make your report slow as you may have to bring more data in the filter.
    Thanks...
    Shambhu

  • How to Display Query Variables in Text Titles?

    Hi experts,
    I have created a web template that has a query parameter screen and then displays the results in the form of charts and tables.
    My question is how do I display the parameters entered by the user in a chart title?
    For example if the user enters a date range of ISO Week 19 to 23, I want to display the chart title as: "Report Results - Week 19 to 23".
    I also want to do the same for a general title. I've tried using information fields, but they don't allow me to add additional text.
    Maybe I need to use some java script to get the parameter value?
    Keep in mind I am just starting out with this and I am using BW7.0 with the WAD.
    Thanks in advance for any assistance.

    Thanks for your response.
    I think you are referring to 3.5? Maybe 7.0 handles it differently?
    I've tried entering free text and then putting in a text web item that is hooked up to a data provider with a characteristic but that only prints out the characteristic header and not the actual value selected by the user.
    For example, I have the following:
    Report for week <text web item>
    Returns:
    Report for week ISO Week
    I would like it to return:
    Report for week 19
    Thoughts?

  • How to display query variable in text element and format the text element

    Hi All,
    I want to display the value of the value of variable against fiscper3 and the value of the variable against 0fiscyear in the web application template from the query in the text element in the web template in BI 7 Web application designer.
    Also, in the web application designer I need to format the text element in the web application designer to set the text element to center the display change the size and make it bold. I am bit lost I cannot find these properties in the web application designer against the text element.
    Appreciate if you could kindly help.
    Thanks
    Karen

    Hi
    hope below tags would help you
    Re: Search by text on a variable
    Re: Need to display text part of TEXT variable in query designer
    regards
    nag

  • How to display a variable(non editable)  in JSP page?

    I have this java code in my JSP and I want to print it on the JSP page with a name associated to it so that it can be passed to a Java Bean. How can I do it?
    String user = display.getOwnerName();

    whatever value you want to send it to server side, you have to put it in a "form". You can put it in HTML form input tag , JSP form, Struts form or JSF form.
    for example:
    <form action="getUserProfile.do">
    <input type="text" value="<c:out value='display.ownerName' />" />
    </form>
    kind regards

  • How to display Hierarchy Variable in BI 7.0 WAD

    Hi Experts
    I have a variable for Cost Center which is a Hierarchy Variable and not a Hierarchy Node Variable. I am using BI WAD 7.0 and my requirement is that the user wants to see for what Hierarchy s/he ran for.
    I am using a Information Web Item whihc is under Advanced tab. After dragging that I check the box for Variables so that the user see all the variables he ran for and after s/he prints its more precise report.
    My problem is I cant see the Hierarchy variable value in my Web Template ....I can see at the variable POP UP screen I enter my Hierarchy but after executing it I dont see my Hierarchy variable value.
    Your suggestions will be reciprocated with Points.
    Thanks

    Hello Experts,
    To substantiate my earlier question ...I have 3 Hierarchies for 0COSTCENTER
    In the WAD under the Information Web ITem i check the box for
    Display Variables (VARIABLES_VISIBLE)
    I have 3 variables
    1) Hierarchy Variable : user will pick 1 out of 3 Hierarchy
    (not a node but entire Hierarchy)
    2) Fiscal  Year/period
    3) Value type
    But I can see only 2 variables after the Web template is executed , the user wants to see for what hierarchy it ran when it prints the report
    Your suggestions are supremely appreciated
    Thanks
    Nick

  • How to display the variable name in right side of the graph

    Hi All,
    i have defined a scatter chart. my requirement is to show the values of the Z-axis or level axis beside the scatter chart. this is already present for the OBIEE pie chart. can we configure the same for the scatter chart.
    thanks in advance.

    Hi Paul,
    Following customized code displays Full Names on my portal:
    private String GetWelcomeMsg(IPortalComponentRequest request, String welcomeClause)
        IUserContext userContext = request.getUser();
        if (userContext != null)
              String firstName = userContext.getFirstName();
              String lastName = userContext.getLastName();
              String displayName = userContext.getDisplayName();
              String salutation = userContext.getSalutation();
              if (displayName != null)
                   if(salutation != null)
                        return java.text.MessageFormat.format(welcomeClause, new Object[] {displayName, salutation, " "}).toString();
                   else
                        return java.text.MessageFormat.format(welcomeClause, new Object[] {displayName, " ", " "}).toString();
              else if ((firstName != null) && (lastName != null))
                   if(salutation != null)
                        return java.text.MessageFormat.format(welcomeClause, new Object[] {firstName, lastName, salutation}).toString();
                   else
                        return java.text.MessageFormat.format(welcomeClause, new Object[] {firstName, lastName, " "}).toString();
              else
                   return java.text.MessageFormat.format(welcomeClause, new Object[] {userContext.getUniqueName()," ", " "}).toString();          
        return "";
    Regards,
    Sergei

Maybe you are looking for