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

Screen Field Text Modification

Former Member
0 Likes
629

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
601

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).

4 REPLIES 4
Read only

former_member195383
Active Contributor
0 Likes
601

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

Read only

Former Member
0 Likes
601

go to thread

Please ref Paul Chapman's answer .

Read only

Former Member
0 Likes
602

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).

Read only

former_member200872
Active Participant
0 Likes
601

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.