‎2008 Jan 21 5:30 AM
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
‎2008 Jan 21 5:56 AM
Hi,
You set function code for field1 and make it as listbox.Event will triger while select value in field1.Try it.
L.Velu
‎2008 Jan 21 5:39 AM
hi udaya,
i think u question not clear to me.but we can do that by using LOOP AT SCREEN event option.
check this.
‎2008 Jan 21 5:48 AM
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.
‎2008 Jan 21 5:52 AM
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
‎2008 Jan 21 6:11 AM
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
‎2008 Jan 21 5:56 AM
&----
*& 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
‎2008 Jan 21 5:56 AM
Hi,
You set function code for field1 and make it as listbox.Event will triger while select value in field1.Try it.
L.Velu
‎2008 Jan 21 5:57 AM
hai maddipatla ,
I can't understand your input, where i should deine USER-COMMAND
‎2008 Jan 21 6:37 AM
Hai Velu,
I can't set function code for field1, how i can convert field1 into listbox.
‎2008 Jan 21 6:57 AM
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
‎2008 Jan 21 6:43 AM
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
‎2008 Jan 21 9:20 AM
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