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

Module pool

Former Member
0 Likes
484

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

5 REPLIES 5
Read only

Former Member
0 Likes
473

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

Read only

Former Member
0 Likes
473

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

Read only

0 Likes
473

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.

Read only

0 Likes
473

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

Read only

Former Member
0 Likes
473

Hi,

We can't do.