cancel
Showing results for 
Search instead for 
Did you mean: 

How To create a long text in webdynpro abap.

Former Member
0 Kudos

Hi all i want create a long text to write the description about design document , declared a sting variable and text should be long like how in standard va01 screen item text maintain. kindly give solution to create a long text field. is the same method i need to use input filed and make the size big or any standard method available for webdynpro abap.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

For the TextEdit UI Element :

In the Context tab at the context create a Node (TEXT_EDIT_NODE)cardinality 1:N and then create an Attribute(TEXT) type String.

In the Layout Tab at the TEXTEDIT uielement at the Attributes level (VALUE) bind that Attribute(TEXT) TYPE STRING that you create at the context node.

In order to display TEXT in your code you will need to SET_ATTRIBUTE (using the wizard, SET) and set it to the Context Attribute (TEXT)within your node(TEXT_EDIT_NODE).

For the Long Text: Create a Node (LONG_TEXT_NODE) cardinality 1:1 and then Create an Attribute(LONG_TEXT_ type String.

then follow the same proccess that you did for the TEXTEDIT above.

Thanks

KH

0 Kudos

This should do the job.

In addition to this, we can also set the lines to be display on screen in the properties of TEXTEDIT ie: the no of rows and the rest will become scrollable.

former_member184578
Active Contributor
0 Kudos

Hi,

You could use TextEdit UI element to achieve this. Or you can use FormattedTextEdit UI to enter formatted text.

Regards,

Kiran