‎2008 Aug 06 7:38 AM
Hi,
How can I change the Screen Field Text dynamically? Is there any attribute like Name for Text in the SCREEN table?
ex: on certain condition, the text should be "Override Assignment" and another the text of the field should be "Manual Assignment"
Please help me in this regard.
Thanks,
V.Nagaraju.
‎2008 Aug 06 7:55 AM
Instead take an input field make it output only field, and Reference it to some variable in the program . and modify the Text value dynamically.This will work. (i hope you want this only for Custom programs).
‎2008 Aug 06 7:42 AM
u can define two text fields and use
screen-invisible = 1 or screen-invisible = 0, to display them as per requirement based on the condition.
Edited by: Rudra Prasanna Mohapatra on Aug 6, 2008 8:42 AM
‎2008 Aug 06 7:45 AM
‎2008 Aug 06 7:55 AM
Instead take an input field make it output only field, and Reference it to some variable in the program . and modify the Text value dynamically.This will work. (i hope you want this only for Custom programs).
‎2008 Aug 07 6:07 AM
Hi,
Try the code given below.
Regards,
Wajid Hussain P.
* * * *
DATA: g_atwrt TYPE atwrt.
PARAMETERS: p_text(15).
SELECTION-SCREEN: BEGIN OF LINE.
SELECTION-SCREEN: COMMENT 1(15) g_text FOR FIELD s_vbcod .
SELECT-OPTIONS: s_vbcod FOR g_atwrt.
SELECTION-SCREEN: END OF LINE.
AT SELECTION-SCREEN OUTPUT.
g_text = p_text.
s_vbcod = g_text.
LOOP AT SCREEN.
" Do the following when your condition is satisfied
IF screen-name CS 'S_VBCOD'.
screen-name = g_text.
MODIFY SCREEN.
ENDIF.
ENDLOOP.