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
1,263

Hi,

I have two fields in screen, First field has search help (Search help value is1.INTERNAL , 2.EXTERNAL). If i click INTERNAL the second field should be disable automatically without press enter, if i click EXTERNAL the second field should be enable automatically without press enter.Is it possible? If possible help me

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,245

Hi,

You set function code for field1 and make it as listbox.Event will triger while select value in field1.Try it.

L.Velu

11 REPLIES 11
Read only

Former Member
0 Likes
1,245

hi udaya,

i think u question not clear to me.but we can do that by using LOOP AT SCREEN event option.

check this.

Read only

Former Member
0 Likes
1,245

hi,

yes it's possible, u can do that like..

after the parameters u just define keyword called 'user-command'

at selection-screen on texfield1.

select single textfield2 from ** into () where textfield2 = **.

if sy-subrc = 0.

then at the loop at screen u can define visible and invisible to your fields.

endloop.

else.

exit.

endif.

reward points if useful,

seshu.

Read only

Former Member
0 Likes
1,245

Hai santhosh,

Imagine you have one screen, in that screen you have two fields

1.TextField1(It contain Search help)

2.TextField2

Based on the first textfield input, the second textfield should disable or enable with out press enter after select values in Textfield1

Read only

0 Likes
1,245

Hi Udaya,

u willhave to use a combination of fm dynp_values_read and then u will have to loop at screen for modifying ur screen elements.

Tell me if u ahve any problem .

Thanks

Rohit

Read only

Former Member
0 Likes
1,245

&----


*& Module USER_COMMAND INPUT

&----


  • Set user command for screen

----


MODULE user_command INPUT.

CASE sy-ucomm .

WHEN 'BACK' OR 'EXIT' OR 'CANCLE'.

LEAVE.

WHEN 'INTERNAL'.

LOOP AT SCREEN.

IF screen-group1 = 'EXTERNAL'.

screen-visible = 0.

ENDIF.

MODIFY SCREEN.

ENDLOOP.

WHEN 'EXTERNAL'.

LOOP AT SCREEN.

IF screen-group1 = 'INTERNAL'.

screen-visible = 0.

ENDIF.

MODIFY SCREEN.

ENDLOOP.

ENDCASE.

ENDMODULE. " USER_COMMAND_9003 INPUT

Read only

Former Member
0 Likes
1,246

Hi,

You set function code for field1 and make it as listbox.Event will triger while select value in field1.Try it.

L.Velu

Read only

Former Member
0 Likes
1,245

hai maddipatla ,

I can't understand your input, where i should deine USER-COMMAND

Read only

Former Member
0 Likes
1,245

Hai Velu,

I can't set function code for field1, how i can convert field1 into listbox.

Read only

0 Likes
1,245

Hi,

Goto screen layout->db click field1->change value in dropdown field as "listbox"->give function code in filed FctCode

You will get result.reward me if useful

L.Velu

Read only

Former Member
0 Likes
1,245

Hai Rohit,

No need to use DYNP_READ_VALUE function module in my program,because if i have search help in Field2 then only that function module will trigger, otherwise it will not trigger.

In my program i have search help in First field, then how this function module will trigger

Read only

Former Member
0 Likes
1,245

Hai Velu,

Thanks for your help, your answer is very helpfull, i want to communicate with you, how i can communicate with you.Send your e-mail id