Application Development and Automation 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: 
Read only

Dropdown box label - change dynamicaly

Former Member
0 Likes
843

I have a dropdown box, an a label to its left. I want to change the label depending on the value I choose in the dropdown box.

As i have experience with .Net I take this for granted, but i'm starting to fear I can't do this in abap.

Am i correct? You can't change label elements dynamically in PBO/PAI?

I have a dropdown box, an a label to its left. I want to change the label depending on the value I choose in the dropdown box.

As i have experience with .Net I take this for granted, but i'm starting to fear I can't do this in abap.

Am i correct? You can't change label elements dynamically in PBO/PAI?

6 REPLIES 6
Read only

Former Member
0 Likes
787

Hi,

Instead of a label element use input / output text element and change the label dynamically. You just have to grey out the look so that it looks like a Label.

Regards,

Ravi

Note : Please mark the helpful answers and close the thread if the question is answered.

Read only

Former Member
0 Likes
787

Hi,

It cannot be done if you set it as a static text. as Ravi suggested, you can do it with IO fields.

Read only

Former Member
0 Likes
787

Hi,

you can't change the labels dynamically, instead You take I/O and Make it Output only as suggested that will solve your Problem.

Regards

vijay

Read only

0 Likes
787

Joao,

Please note that changing a dropdown label dynamically is very poor screening.

It actually violates Microsoft Windows standards.

I would recommend re-designing your screen to make it more user-friendly. Changing key fields like dropdown labels will confuse users greatly and make your app like "buggy" as well.

Read only

0 Likes
787

Although I'm aware that this not the most correct way to do things, some SAP Dynpro limitations/standards leave me with little choice.

User-interfaces in .Net are much more flexible and userfriendly.

Read only

0 Likes
787

.NET is definitely more flexible.

But I can think of no ABAP screening limitation that would force me to make a dropdown label dynamic. I truly believe that you need to re-visit your screen design.

Or get some additional training in screen design with SAP.