cancel
Showing results for 
Search instead for 
Did you mean: 

What is the Significance of class CL_WD_UTILITIES and its methods?

vishesh_malik
Participant
0 Kudos

Hi Guys,

I have used CL_WD_UTILITIES class in my view , its working perfectly but I want to know the exact usage n functionality flow of the methods of this class . Most impodrantly about processing/flow of method GET_OTR_TEXT_BY_ALIAS.

Regards,

Vishesh

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi, Vishesh.

CL_WD_UTILITIES has many useful method. From my experience, i share you with one of them:

CL_WD_UTILITIES=>CONSTRUCT_WD_URL

This is very helpful when you want to redirect to another WD application from one WD application, using "Create_external_window" passing the URL .


* get the URL of the called application
  CALL METHOD CL_WD_UTILITIES=>CONSTRUCT_WD_URL
    EXPORTING
      APPLICATION_NAME              = 'ZTEST_CALLED'
    IMPORTING
      OUT_ABSOLUTE_URL              = lw_url.
lo_window = lo_window_mg->create_external_window( url = lw_url ).
  lo_window->open( ).

Also in SE24, you can also read the other 3 methods the class provides, and for detail, you can search them in Google or other place like SDN.

Best wishes.

Former Member
0 Kudos

Hi Vishesh,

the class is mainly used to do at runtime actions/creation of ui elements.

The method you describe is to fetch the text at runtime and reuse this to

e.g. add the found text as a label text. It comes down to do the otr selection

for the attribute in the develoment area at runtime, where the framework would

do this if you declared it at design time.

Greetz,

Koen