Skip to Content
avatar image
Former Member

How to retrieve variable value description into web template?

Hi,

I have a need to display selected variable description not selected variable key value in the web template. any ideas?

let'z say I've an infoobject material with its values and descriptions as follows

0material Description

1 Material1

2 Material2

3 Material3

In my web tempalte, I've a variable built on Material. So, if i select material 2 in the variable screen, I should get results something like this

==========================

Material2 --> this Header should b the selected variable description.

==========================

0Material KeyFigure

2 KF1

2 KF2

2 KF3

I am aware that we need to use javaScript. But, I am just wondering How do i retrieve selected variable description into JavaScript?

can we retrieve by using dropdownbox? some of my web templates don't have variables. in that case, I should retrieve the dropDownBox selected value description into the header of web template.

thanks in advance

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Apr 23, 2004 at 06:08 AM

    Hi,

    please have a look on the online documentation for the web item textelements

    http://help.sap.com/saphelp_nw04/helpdata/en/9f/4e9d39d44cd45ee10000000a11402f/frameset.htm

    Heike

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      Thanks so much for your reply. I could able to retrieve variable value description both for dropdown box as well as variables. for web templates having dropdown box, i used "filter" and for web templates having variables, I used "text element" web item.

      here is the code that i used for web templates with variables.

      <object>

      <param name="OWNER" value="SAP_BW"/>

      <param name="CMD" value="GET_ITEM"/>

      <param name="NAME" value="TEXTELEMENTS_1"/>

      <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_TEXT_ELEMENTS"/>

      <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>

      <param name="GENERATE_CAPTION" value=""/>

      <param name="SHOW_COMMON_ELEMENTS" value=""/>

      <param name="SHOW_FILTERS" value=""/>

      <param name="ELEMENT_TYPE_1" value="VARIABLE"/>

      <param name="ONLY_VALUES" value="X"/>

      ITEM: TEXTELEMENTS_1

      </object>

      here is the code that i used for web templates with dropdown box.

      <object>

      <param name="OWNER" value="SAP_BW"/>

      <param name="CMD" value="GET_ITEM"/>

      <param name="NAME" value="FILTER_1"/>

      <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_FILTER"/>

      <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>

      <param name="GENERATE_CAPTION" value=""/>

      <param name="PRESENTATION" value="TEXT"/>

      <param name="ITEM_FILTER_IOBJNM_1" value="0SALESORG"/>

      <param name="ITEM_FILTER_IOBJNM_2" value="ZHIER01"/>

      <param name="ONLY_VALUES" value="X"/>

      ITEM: FILTER_1

      </object>

      thanks

      Hari