cancel
Showing results for 
Search instead for 
Did you mean: 

About Explanation UI Elemaent

Former Member
0 Kudos

I have used a Explanation UI element in my view to show some free text on the screen. But it is not showing.

Can you help?

Thanks,

Prosun

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi

Create a view having Explanation UI element : say EXPL.

Create text to be displayed using transaction SE61

Take document class as TX (general text) and create document named ZEXPL.

In the view where you want to display the text through Explanation UI element, write the following code in WDDOMODIFYVIEW method.

data lines type tlinetab.

data header type thead.

data text type string.

data wad_formatted_text type ref to cl_wd_formatted_text.

data ui_explanation type ref to cl_wd_explanation.

call function 'DOCU_GET'

exporting

id = 'TX'

langu = sy-langu

object = 'ZEXPL'

importing

head = header

tables

line = lines

exceptions

no_docu_on_screen = 1

no_docu_self_def = 2

no_docu_temp = 3

ret_code = 4

others = 5.

if sy-subrc <> 0.

text = space.

endif.

wad_formatted_text = cl_wd_formatted_text=>create_from_sapscript( sapscript_head = header

sapscript_lines = lines

type = cl_wd_formatted_text=>e_type-wad

).

if wad_formatted_text is bound.

text = wad_formatted_text->m_xml_text.

else.

text = ''.

endif.

ui_explanation ?= view->get_element( 'EXPL' ).

ui_explanation->set_text( text ).

If the text don’t appear than right click anywhere on browser window and select “ show hide quick help”.

Regards

Vishal kapoor

Former Member
0 Kudos

hi, how do you catch up with such issue , if the sapscript tdline contain <h3> or other tag that is by default the formatted view use? how to do with that ?

Answers (2)

Answers (2)

Former Member
0 Kudos

Explanation visible only the quick help is on.So, for displaying free text in screen you should use formatted text.

Former Member
0 Kudos

Hi,

check if the explanation is activated, see the [documentation|http://help.sap.com/saphelp_nw70/helpdata/en/45/11e310459d7201e10000000a155369/frameset.htm]

Regards, Heidi

Former Member
0 Kudos

Hi,

Thanks for your reply. But my problem is I have put some Line of text on screen without effecting the layout allignment.Not The help link.