‎2009 Jan 21 2:05 PM
Hi to All,
I'm using the BAPI /SAPMP/BAPI_MATERIAL_SAVEDATA but return the following error:
"Material number xxxxxxxxx" does not exist on the database
Have you idea?
Please, help me.
Thanks & Regards,
Umberto
‎2009 Jan 21 2:47 PM
Hi,
Are you passing material number as it is to function module.
For example if material number is '12345' then if you pass this as it is then you may encounter with such error. Material length is 18, you should pass 18 lenth material number to BAPI, like, 000000000000012345.
Use conversion exit before passing material number to BAPI.
DATA : V_MATNR TYPE MATNR.
V_MATNR = '12345'.
CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
EXPORTING
INPUT = V_MATNR.
IMPORTING
OUTPUT = V_MATNR.
Then pass this V_MATNR to BAPI.
‎2009 Jan 21 2:47 PM
Hi,
Are you passing material number as it is to function module.
For example if material number is '12345' then if you pass this as it is then you may encounter with such error. Material length is 18, you should pass 18 lenth material number to BAPI, like, 000000000000012345.
Use conversion exit before passing material number to BAPI.
DATA : V_MATNR TYPE MATNR.
V_MATNR = '12345'.
CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
EXPORTING
INPUT = V_MATNR.
IMPORTING
OUTPUT = V_MATNR.
Then pass this V_MATNR to BAPI.
‎2009 Jan 22 8:27 AM
Hi,
Can you please let me know whethere this has solved your problem
‎2009 Jan 22 9:50 AM