Application Development 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: 

pai module material description on entering material no

Former Member
0 Kudos

hi

can any one tell me how can i display material description after entering material no in screen .

by just clicking enter key from keyboard .

Regards

Rakesh singh

2 REPLIES 2

Former Member
0 Kudos

In PAI, create a module and write the code

Select <material desc>

from mara

into <ur screen field name Of material desc>

where matnr = <ur material number>.

modify screen.

Thanks

Nayan

Reward if useful

Former Member
0 Kudos

Hi,

Say your material no. is in the variable V_MATNR and description to be hold in V_MAKTX.

So in PAI write one module in that write code as:

MODULE GET_MAT_DES.

If V_MATNR is not initial.

Select single MAKTX from MAKT into V_MAKTX

where MATNR = V_MATNR.

else.

clear V_MATNR.

endif.

ENDMODULE.

if you write this code when user will hit ENTER key it will get the description of material when there is material no on screen.

I hope this will solve your problem.

Help children of U.N World Food Program by rewarding points and encourage others to answer your queries.