2008 Feb 05 4:33 AM
Hi Have a Requirement like,
I have a Text field in the screen with name 'Arrival date'.If i select the perticular radio button the text should chage to
'Exit Date'.
Is there any way to do this.
Please let me know.
Thanks in advance.
Regards,
G.Vijetha
Hi,
In top include declare a variable with the same name and type of your text field title.
Then pass values to the variable in PAI on some user action as u described. That values will be captured by the text fields title.
Hope this helps.
Regards,
Renjith Michael.
2008 Feb 05 5:05 AM
Vijetha,
DATA v_flag.
PARAMETERS : p_add RADIOBUTTON GROUP radi USER-COMMAND radio,
p_disp RADIOBUTTON GROUP radi DEFAULT 'X'.
SELECT-OPTION :s_date LIKE sy-datum MODIF ID mod1
s_date1 LIKE sy-datum MODIF ID mod2.
AT SELECTION-SCREEN OUTPUT.
IF v_flag = ' '.
LOOP AT SCREEN.
IF screen-group1 EQ 'MOD1'.
screen-active = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
LOOP AT SCREEN.
IF screen-group1 EQ 'MOD2'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ELSE.
CLEAR v_flag.
LOOP AT SCREEN.
IF screen-group1 EQ 'MOD1'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
LOOP AT SCREEN.
IF screen-group1 EQ 'MOD2'.
screen-active = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
AT SELECTION-SCREEN.
IF p_add EQ 'X'
v_flag = ''.
ELSE.
v_flag = 'X'.
ENDIF.
change the screens according to your requirement.
Don't forget to reward if useful..
2008 Feb 05 5:22 AM
Hi Muralikrishna,
It is there in the Screen desiging and in report programming..And i have design the text field so and so plane.For the same text field i should change the Text field title to 'Exit date'.
This is my query.
Can you please let me know if you have answer for this.
Thanks
2008 Feb 05 6:06 AM
Hi,
In top include declare a variable with the same name and type of your text field title.
Then pass values to the variable in PAI on some user action as u described. That values will be captured by the text fields title.
Hope this helps.
Regards,
Renjith Michael.
2008 Feb 05 6:12 AM
Hi vijetha,
Text field on the screen is like a constant. You cant change them. Rather, u can do like this.
1) Declare it as Input/Output field.
2) Make it Output only and output field in screen painter.
3) Now this I/O field appear similar to Text field. And we cant make any difference b/w Text and I/O when we execute the screen. I/O appears like Text field.
4) Now you change the values of this I/O field at runtime which appers to be like you are changing the text field on the screen.
Reward me if useful,
Harimanjesh AN
2008 Feb 05 8:02 AM
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |