cancel
Showing results for 
Search instead for 
Did you mean: 

can we assign OTR to drop down list?

Former Member
0 Kudos

Hi, All:

In Webdyn Pro, Can we use Text element or can we assign OTR to drop down list text field.

for example:

wa_value_set-text = $OTR:ZPACKAGE/TEST_MSG

thanks,

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

STEP 1 GET THE OTR TEXTS:

<b>

As described in previous answer...

CALL METHOD CL_BSP_RUNTIME=>GET_OTR_TEXT

EXPORTING

ALIAS = 'OTR_Package/OTR_Elemet'

RECEIVING

TEXT = wa_value_set-text .

</b>

Step 2 Update Node attribute info with the set of

<b>

Update the meta data info behind the COntext Node attribute that is to have the

drop down list.

GET NODE from WD_CONTEXT. (use wizard)

Then call GET_NODE_INFO to get the reference to the meta.

Then ADD your values, whatever they are from STEP 1 to the ATTRIBUTE

of the node. Using SET_ATTRIBUTE_VALUE_SET method.

</b>

Seems a strange thing to do.

May I ask why the OTR is to be the source of drop down lists ?

regards

Phil.

Madhu2004
Active Contributor
0 Kudos

u can use the follwing method to get the otr trst and asign it to the dropdown list text.

[code]call method cl_wd_utilities=>get_otr_text_by_alias

exporting

alias = '$OTR:ZPACKAGE/TEST_MSG'

receiving

alias_text =wa_value_set-text .[/code]

raja_thangamani
Active Contributor
0 Kudos

You can use the Text element & OTR.

If its text element then you can assign directly.

if its OTR, you can use below code..

 CALL METHOD CL_BSP_RUNTIME=>GET_OTR_TEXT
      EXPORTING
        ALIAS = 'OTR_Package/OTR_Elemet'
      RECEIVING
        TEXT  = wa_value_set-text .

Hope this will solve your problem..

<b>*Reward each useful answer</b>

Raja T