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

selection screen

Former Member
0 Likes
399

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
377

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

3 REPLIES 3
Read only

Former Member
0 Likes
378

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

Read only

Former Member
0 Likes
377

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

Read only

Former Member
0 Likes
377

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.