10-18-2005 9:11 AM
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
10-18-2005 9:15 AM
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
10-18-2005 9:15 AM
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
10-18-2005 9:22 AM
Hi Sasi,
I tried this, but it doesn't work.
Box title doesn't change
10-18-2005 9:27 AM
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
10-18-2005 9:32 AM
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
10-18-2005 9:34 AM
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
10-18-2005 9:17 AM
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
10-18-2005 9:21 AM
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
10-18-2005 9:29 AM
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...