|Home • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us|
Change Labels on screen at Run Time (Dialog programming)
By Shweta Chavan, Hitachi Consulting
In dialog programming we cannot change the labels on
screen dynamically. Labels act as constants and its value cannot be changed at
run time. This article will show you trick to change such label text at runtime.
Change label text on screen based on input selection. In
this demo, we have Test as checkbox on selection screen. We will be displaying
two ALVs on screen. So we have two container added on screen. We want to display
text line which will show whether it is ‘TEST’ mode or not. Text
of this label will be chosen based on value of checkbox on selection screen.
Steps to Do
required Screen add input/output field
the properties of DYN_TEXT as below. Set Field as ‘Output only’.
go to PBO section of Screen. Write down code on Module Status_1001.
Please send us your feedback/suggestions at webmaster@SAPTechnical.COM
©2006-2007 SAPTechnical.COM. All rights reserved.
product names are trademarks of their respective companies. SAPTechnical.COM
is in no way affiliated with SAP AG.
Graphic Design by Round the Bend Wizards