‎2010 Aug 09 5:11 AM
Hi,
in the module pool programming i am having customer , material fields.
at customer field if i select one customer from f4 help popup
i need to display corresponding customers description in another field.
can any suggest me how to do it?
same wise for material also.
‎2010 Aug 09 10:17 AM
Hi,
You can use following Function modules:
DYNP_VALUES_READ
DYNP_UPDATE_FIELDS
Hope it helps.
‎2010 Aug 10 6:48 PM
Hi Kalpanak,
All you need to do is, once you have selected the customer from F4 help, the customer code will be saved in some field on the screen, you just need to write a query
for example
select name1
from kna1
into wa_tabctrl-name1 --> this would be your field of customer description on your screen
where kunnr = wa_tabctrl-kunnr.
Cordially,
Danish
‎2010 Aug 12 8:07 AM
Hi,
You can use following selection screen event.
loop at screen.
At selection screen output.
If Screen-group= ' '
if val = 1
screen-input = 1.
modify screen.
elseif val = 0.
screen-input = 0 .
modify screen.
endif.
endloop.
It will help full to u .
‎2010 Aug 12 10:22 AM
In module pool, the fields can be got from dictionary. If the fields customer & the description are both got from dictionary, then if you use F4, automatically the description will also be picked.
‎2010 Aug 13 10:25 AM
Suppose kna1-kunnr and kna1-name1 are the fields on screen.
In your PAI write :
Field : kna1-kunnr
module fill_cust.module fill_cust input.
select single *
from kna1
into it_kna1
where kunnr eq kna1-kunnr.
move it_kna1-name1 to kna1-name1.
endmodule." FILL_CUST INPUT.
Edited by: Rachana Pouras on Aug 13, 2010 2:14 PM
‎2010 Aug 14 1:32 PM
hi,
after taking f4 values, the value is in your screen field. now under PAI write the select query to fetch the description from the screen field values i.e may be customer no or material no. when we enter the values in the screen field and take enter the description field is also filled.
Regards,
sirisha