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

F4 help in Table Control to get values for Multiple Fields

0 Likes
985

Hi All,

Iam having a Table Contol in Module Pool Program, I need to select a value through  F4 Help in the Field A,

After selecting a value in Field A. I need the Fields B and C get displayed with the data based on Field A

For Eg: if we select a material code in Field A, we should get Material Description and Material Type in Fields B and C respectively.

Kindly help..

Thanks,

Ravi

Hi All,

Iam having a Table Contol in Module Pool Program, I need to select a value through  F4 Help in the Field A,

After selecting a value in Field A. I need the Fields B and C get displayed with the data based on Field A

For Eg: if we select a material code in Field A, we should get Material Description and Material Type in Fields B and C respectively.

Kindly help..

Thanks,

Ravi

1 REPLY 1
Read only

venkateswaran_k
Active Contributor
0 Likes
623

As usual provide f4 help to field matnr

Then,

In PAI for the field MATNR

write a module get_detail.  

In that write a select statement to get the description and type.

Example:

In PAI

FIELD WA_MATNR   MODULE display_data.

MODULE display_data INPUT.

   select desc and type from makt and mara where matnr = wa_matnr

   and assign the value to the appropriate screen field.

ENDMODULE.