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

dictionary/program fields window(F6) not working

Former Member
0 Likes
1,467

Hi All,

I have a requirement to dynamically change the field lable for a custom modulepool program.I tried the following but its not working:

  1. Decleared global variable(LV_FLDLBL type String).
  2. In Screen painter created I/O field i.e used option dictionary/program fields window(F6)->LV_FLDLBL->Get from Program ->Selected the field and placed into screen.
  3. In Attribute window changed selected the Output only.
  4. In PBO method based on some conditions the variable-LV_FLDLBL has passed.

But if i execute the custom tcode the field label didn't changed dynamically and even the initial text also not displayed.

Hope the above process is currect,Pls let me know if anything is still missing.

Thanks in advance.

7 REPLIES 7
Read only

Private_Member_49934
Product and Topic Expert
Product and Topic Expert
0 Likes
1,118

Could you debug and check if the variable is getting set properly in PBO?

BTW why is it LV_ ?? It should be a global variable in top include and not local variable.

Read only

0 Likes
1,118

I decleared in top include only,the field is getting populated in PBO

Read only

0 Likes
1,118

Try doing one thing. Start your application in debug mode (/h). Put a watchpoint on LV_FLDLBL. Check if the field is getting cleared somewhere. I suspect after setting the value your code is clearing it somewhere. Just check it.

Read only

0 Likes
1,118

I checked in debug,the variable has the values,this variable not been used in other part of the program

Read only

Former Member
0 Likes
1,118

So, where in all this did you change the text for the fieldname?  I see references to the field, I see that you've made it output only (not available for input), but I don't see where you changed the value stored for the text value (field) associated with the data field.  So, what is the text field for the data field, and what is stored there?

Read only

0 Likes
1,118

I coded in PBO to fill the values into the variable,i can see the value in debug but still its not displaying in the screen output when i execute the Tcode.

Read only

0 Likes
1,118

HI

Did u activate your screen after changing. If yes then try defining the var LV_FLDLBL type String into PBO module.