‎2008 Oct 30 8:49 AM
Hello,
I would like test the function module CSAP_MAT_BOM_ITEM_SELECT
but I get a covert error on the field MATERIAL. Its a number with char 18 length. I dont understand why? Could you please help me. Can I use an other function Module or BAPI, which returns me the same data?
regards
‎2008 Oct 30 8:55 AM
‎2008 Oct 30 8:56 AM
the datatype of material number is MATNR, which is of 18 chars.
eg: 00000000011112222 (Preceded with zeros)
So when ever you want to pass material number first you pass the material number to the FM "CONVERSION_EXIT_ALPHA_INPUT" and then pass the output value to your FM "CSAP_MAT_BOM_ITEM_SELECT"
‎2008 Oct 30 8:56 AM
A material in SAP is 18 characters long. This is defined in the data element MATNR.
If you go to the related domain MATNR, you will find the conversion routine MATN1. This conversion routine (actually some function modules) will do the conversion from internal to external representation and vice versa.
regards,
Hans
‎2008 Oct 30 10:21 AM
Hi,
I tried with 000000000XXXXXXXXX as Import value with X= Materialnumber. I get the error, that the data is incomplete(if I test just the Function Module in SE37). But it doesnt. I took the function CSAP_MAT_BOM_READ, as Import MATERIAL, PLANT, BOM_USAGE.
Then I tested the function with a test programm. I called the function with the same parameter, and I got a raise exception, with error.
Its in the function Module CS_DI_HEADER_OBJECT_CHECK, it raise an exception error (its called in the function CSAP_MAT_BOM_READ ). Have you tested this Function in your SAP System?