cancel
Showing results for 
Search instead for 
Did you mean: 

Long text - Should be simple...

Former Member
0 Kudos

Hi,

I want to display a large text in a Webdynpro ABAP page, but I'm stuck with 255 chars of OTR. I'm unable to create long texts via SOTR_EDIT transaction and I don't know how I can use more then 255 chars.

The text is static, it's just an explanation of what the screen is about with about 600 chars. How can I do this? What UI element should I use, and where do I write my text?

Thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

since the links above refer to the internal documentation system and point to a lower support package release, here are some up-to-date links:

<a href="http://help.sap.com/saphelp_nw70/helpdata/en/44/336208da18060be10000000a155369/frameset.htm">Documentation on help texts</a>

For really long texts, you could use the UI element <a href="http://help.sap.com/saphelp_nw70/helpdata/en/3b/219141c1d0ae5fe10000000a1550b0/frameset.htm">FormattedTextView</a> which has the advantage of formatting tags (unlike theTextView UI element).

Regards, Heidi

S-H
Active Participant
0 Kudos

Hi,

For the texts more than 255 chatercters we can have a context attribute of type string. In the WDINIT we can set the context node with the text to the attribute.

In the View we can use the UI element Explanation to display the text.

We can use TextView but we need to use a label for it (for accessebility purpose). Hence we can use the UI element Explanation for displaying the text this UI element can be used to display multiple lines texts.

For More information about this UI element refer the link <a href="http://aiokeh.wdf.sap.corp:50000/SAPIKS2/contentShow.sap?_SCLASS=IWB_STRUCT&_SLOIO=7C3545415EA6F523E10000000A155106&TMP_IWB_TASK=DISPLAY&RELEASE=684&LANGUAGE=EN&_SEQNUM=420&_LOIO=A942C041E125C917E10000000A155106&_CLASS=IWB_EXTHLP">http://aiokeh.wdf.sap.corp:50000/SAPIKS2/contentShow.sap?_SCLASS=IWB_STRUCT&_SLOIO=7C3545415EA6F523E10000000A155106&TMP_IWB_TASK=DISPLAY&RELEASE=684&LANGUAGE=EN&_SEQNUM=420&_LOIO=A942C041E125C917E10000000A155106&_CLASS=IWB_EXTHLP</a>

In the wddomodifyview you can write code to set the data to the explanation ui element for more information, kindly refer <a href="http://aiokeh.wdf.sap.corp:50000/SAPIKS2/contentShow.sap?_CLASS=IWB_EXTHLP&TMP_IWB_TASK=DISPLAY&_LOIO=4511E310459D7201E10000000A155369&_SLOIO=7C3545415EA6F523E10000000A155106&RELEASE=684&LANGUAGE=EN&_SEQNUM=107&_SCLASS=IWB_STRUCT">http://aiokeh.wdf.sap.corp:50000/SAPIKS2/contentShow.sap?_CLASS=IWB_EXTHLP&TMP_IWB_TASK=DISPLAY&_LOIO=4511E310459D7201E10000000A155369&_SLOIO=7C3545415EA6F523E10000000A155106&RELEASE=684&LANGUAGE=EN&_SEQNUM=107&_SCLASS=IWB_STRUCT</a>

In this link you can also find the code and the example with screenshot.

Best regards,

Suresh