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

dynamic display of value

Former Member
0 Likes
708

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.

6 REPLIES 6
Read only

Former Member
0 Likes
670

Hi,

You can use following Function modules:

DYNP_VALUES_READ

DYNP_UPDATE_FIELDS

Hope it helps.

Read only

Danish
Explorer
0 Likes
670

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

Read only

Former Member
0 Likes
670

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 .

Read only

Former Member
0 Likes
670

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.

Read only

Former Member
0 Likes
670

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

Read only

Former Member
0 Likes
670

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