cancel
Showing results for 
Search instead for 
Did you mean: 

Web Dynpro ABAP - How to put simple text on a view - Quick help needed!!!

Former Member
0 Kudos

Hi Guys!

I have to put some text on the window of a Web Dynpro for ABAP View...

Unfortunatly I have no idea of WDA and our WDA developer has left the company.

Please can somebody give me a quick hand?

I just want to put some text (explanations) on some existing windows. It has to be below (!!!) of some input fields.

Thanks a lot!!!

Peter

PS: This year I will take a WDA course, promised...

Accepted Solutions (0)

Answers (1)

Answers (1)

arjun_thakur
Active Contributor
0 Kudos

Hi Peter,

Just open the view in which you want to enter the text. Now Right click on the container and insert a TEXTVIEW UI element. Adjust the layout of the view according to your need. Now click on that text view, go to its TEXT property and enter whatever you want to write ( follow this step if your text will never change), if it changes according to some conditions then create a attribute of string type, bind it with the text property of the text view and set its value with the help of code wizard in WDDOINIT method.

I hope it helps.

Regards

Arjun

Former Member
0 Kudos

Hi Arjun!

That helped a little bit...

The TEXTVIEW UI element is always right to the input field. If the text is short the element will stay right. It is longer it will be below the input field.

I can´t move the TEXTVIEW UI element a little bit more down?

And if the text is very long it will be cut (The TEXTVIEW UI seems to be to short).

CU

Peter

arjun_thakur
Active Contributor
0 Kudos

Hi Peter,

First of all tell me what is the layout type of the container in which you have inserted the text view.

If you want that the text should come below the input field, then set the layout as matrix layout. and set the LAYOUTDATA property of the text view as MATRIXHEADDATA.

Now if you want to increase gap between the input field and text field, just insert an INVISIBLE ELEMENT between the two.

I hope it helps.

Regards

Arjun

Former Member
0 Kudos

> First of all tell me what is the layout type of the container in which you have inserted the text view

Where can I find the layout type?

CU

Peter

arjun_thakur
Active Contributor
0 Kudos

You must have inserted the text view in either ROOTUIELEMENTCONTAINER or some transparent container or in a group. Just click on it and check its layout property.

Regards

Arjun

Former Member
0 Kudos

It´s FlowLayout!!!

Peter

arjun_thakur
Active Contributor
0 Kudos

Peter! if want the text view to come below the input field, then i would suggest that you change the layout to Matix layout (also recommended by SAP), and set the LAYOUTDATA property as matrixhead data.