‎2009 Nov 21 4:09 AM
Hello
My problem Definition is as follow
**Internal Declaration
DATA:BEGIN OF H_ITAB OCCURS 0,
MATNR(18),
PLANT(4),
END OF H_ITAB.
DATA: L_VPSTA LIKE T130M-PSTAT.
SELECT SINGLE VPSTA INTO L_VPSTA FROM MARA WHERE MATNR = H_ITAB-MATNR.
when the input material number is numeric type then i am unable to get output above select statement ex : 26300000000008
when the input material number is alphanumeric type then i am getting output above select statement ex : 00400000314C4007
how to resolve this issue
with regards
Anand kumar
‎2009 Nov 21 4:26 AM
Hi, You should transfer the material number's format by call a sap standard function module.
CONVERSION_EXIT_MATN1_INPUT
Michael Yan
‎2009 Nov 21 4:26 AM
Hi, You should transfer the material number's format by call a sap standard function module.
CONVERSION_EXIT_MATN1_INPUT
Michael Yan
‎2009 Nov 21 5:26 AM
Hi,
Use conversion exit function module.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = H_ITAB-matnr
IMPORTING
OUTPUT = H_ITAB-matnr.
Now use.
SELECT SINGLE VPSTA INTO L_VPSTA FROM MARA WHERE MATNR = H_ITAB-MATNR.
Regards
Siva