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

Error converting field MATERIAL (When using CSAP_MAT_BOM_ITEM_SELECT)

Former Member
4,019

When I am using the function module CSAP_MAT_BOM_ITEM_SELECT the following error is happening.

Exception ERROR

Message ID: 29 Message number: 851

Message:

Error converting field MATERIAL

This error is happening in all the CSAP_MAT* Function Modules and this is where it is happening.

PERFORM CONVERT_MATNR_TO_INTERN_FORMAT USING MATERIAL

CHANGING MASTB-MATNR

HLP_SUBRC.

IF HLP_SUBRC NE 0.

FLG_ERROR = KREUZ.

PERFORM APPL_LOG_WRITE_SINGLE_MESSAGE USING CHR_E MSGID_29

'851'

'MATERIAL'

' ' ' ' ' '.

ENDIF.

In TMCNV table we have LMATNR length as 8 and also in OMSL transaction.

It would be great if any one can help me to get out of this error.

Thanks in advance

Subra

3 REPLIES 3
Read only

Former Member
0 Likes
2,261

i dunno.....which number u r passing to matnr...if it is of type problem...try with the following FMs to convert it to appropraite format before passing to the main FM...

CONVERSION_EXIT_MATN1_RANGE_I

CONVERSION_EXIT_MATN1_RANGE_O

CONVERSION_EXIT_MATN1_INPUT

CONVERSION_EXIT_MATN1_OUTPUT

Read only

0 Likes
2,261

Error is happening here.

form convert_matnr_to_intern_format

using value(i_matnr) like csap_mbom-matnr

changing o_matnr like csin-matnr

value(subrc) like sy-subrc.

Will there be any backend settings for using these (CSAP_MAT_*)

Read only

Former Member
0 Likes
2,261

hi....are the material number that u r passing exist in the database??can u give a sample material number that u pass?