‎2007 Aug 10 2:32 PM
I have two fields on the selection screen. If the user fill the first field I have to write a logic to fill the second field..like if the user enter the kunnr i have to fill the name1...how can i do that....
‎2007 Aug 10 2:35 PM
Hi,
Paramters: P_KUNNR type KUNNR,
P_name like KNA1-Name1.
at selection-screen.
If not P_KUNNR is initial.
Select single name into P_NAME from KNA1 where kunnr = P_kunnr.
Endif.
Regards
Sudheer
‎2007 Aug 10 2:35 PM
Hi,
Paramters: P_KUNNR type KUNNR,
P_name like KNA1-Name1.
at selection-screen.
If not P_KUNNR is initial.
Select single name into P_NAME from KNA1 where kunnr = P_kunnr.
Endif.
Regards
Sudheer
‎2007 Aug 10 2:39 PM
REPORT ZTESTP.
parameters : p_first(10) type c,
p_second(10) type c.
at selection-screen output.
if p_first is not initial.
p_second = 'second'.
endif.
Thanks
mahesh
‎2007 Aug 10 2:41 PM
take two parameters:
parameters:p_f1 type kna1-kunnr,
p_f2 type kna1-name1.
data:begin of it_kna1 occurs 0,
name1 type kna1-name1,
kunnr type kna1-kunnr,
end of it_kna1.
if not p_f1 is initial.
select name1 from kna1
into table it_kna1 where kunnr = p_f1.
endif.