OTR text in WebDynpro

Go to transaction SOTR_EDIT

Click on Create button

Fill required fields like below

1

Click on Savebutton.

Open your WD application

Create a Label element

Create an Input Field

Assign attribute of ‘labelFor’ as InputField

Write the code of your OTR text into attribute of your Label.

 2

3

How to set values into a SAP Domain

  1. Go transaction SE11 and write your domain name. 1
  2. Set your values. Activate the object.
  3. 2

How to make an object visible or invisible dynamically.

1-) Define an attribute named ‘WDUI_Visibility’

       Set its TYPE as ‘WDUI_VISIBILITY’

 

2-) Open your objects properties which you

       You want to make visible or invisible.

 1

3-) Set  attribute ‘WDUI_Visibility’ object you have created

     at  ‘Visible’ property.

 2

Codes:

 

 DATA lo_el_context TYPE REF TO if_wd_context_element.

 DATA ls_context TYPE wd_this->Element_context.

 DATA lv_wdui_visibility TYPE wd_this->Element_contextwdui_visibility.

 lo_el_context wd_context->get_element( ).

 lv_wdui_visibility ‘1’. “1-Unvisible 2 Visible

 lo_el_context->set_attribute(

   name =  `WDUI_VISIBILITY`

   value lv_wdui_visibility ).