Application Development and Automation 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: 
Read only

convert error materialnumber

Former Member
0 Likes
822

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

4 REPLIES 4
Read only

Former Member
0 Likes
572

Try with CSAP_MAT_BOM_SELECT and see.

Cheers!!

VEnk@

Read only

Former Member
0 Likes
572

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"

Read only

h_senden2
Active Contributor
0 Likes
572

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

Read only

Former Member
0 Likes
572

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?