Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Change title of a box in a dynpro

Former Member
0 Kudos

In a dynpro there is defined a box. Is it possible to change the title of this box dynamically in the program?

Regards and thank you in advance

Volker

Message was edited by: Volker Zink

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi,

in dynpro the let us assume the name of text box is l_matnr.

define the same variable in the progrm like

data l_matnr like mara-matnr.

and in PBO set the value

l_matnr = '3488844'.

you can set the value in PAI also

cheers,

sasi

8 REPLIES 8

Former Member
0 Kudos

hi,

in dynpro the let us assume the name of text box is l_matnr.

define the same variable in the progrm like

data l_matnr like mara-matnr.

and in PBO set the value

l_matnr = '3488844'.

you can set the value in PAI also

cheers,

sasi

0 Kudos

Hi Sasi,

I tried this, but it doesn't work.

Box title doesn't change

0 Kudos

Hi Volker,

You have to check the box property "Output field" in the screen painter...

Then fill it subsequently in the program..

I meant mark the property "Output field" for the box..

Sri

Message was edited by: Srikanth Pinnamaneni

0 Kudos

Hi Volker,

If I understood your requirement correctly, you want to change the text of a screen field. Here is one solution.

Instead of the screen element 'Text' use an input/output field. Set it as 'Output only' so that it will look like a text element. Give a name to this field and in the PBO you can change the value.

Cheers

Vinod

0 Kudos

I dont think this is possible.

If i understand correctly, u are asking about changing the title text of the box and not a value of some text field or the name of the box (the answers given suggest so).

rgds,

PJ

Former Member
0 Kudos

Hi,

You can give a program global variable or a ddic structure field name as "Name" to this box and in your PBO,

You can fill it with the text that you want..

Sri

Former Member
0 Kudos

Hi Volker,

What you can do ... is

LOOP AT SCREEN.

CHECK SCREEN-NAME = 'MY_BOX_NAME_ON_THE_SCREEN'.

|

|

|

modify screen.

endloop.

check the structure of screen to see the fields you can modidy.

If you have question about that ask me and If i did help you, reward me plz

Former Member
0 Kudos

yes its possible.

first of all declare a variable e.g temp..

giv this name to ur box.

also in the attributes of the box check the output field.

Now in the PAI of the dynpro you can change the value of this temp vairable like any other vairable...