06-26-2008 12:16 PM
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
06-26-2008 12:37 PM
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
06-26-2008 1:34 PM
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.