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

csap_mat_bom_read runtime error

Former Member
0 Likes
5,229

Hey everyone,

if I call the FM csap_mat_bom_read I get a runtime error.

I use se37 to test it and just put in a material number and mark the field BOM_USAGE with a "X".

After excecuting it I get the following error:

Error in the ABAP Application Program

The current ABAP program "CSAP_MAT_BOM_READ=============FT" had to be
terminated because it has
come across a statement that unfortunately cannot be executed.
In include "LCSAPU17                                ", in line 81 of program
"SAPLCSAP                                ", the following syntax errors
have occurred:
In PERFORM or CALL FUNCTION "CONVERT_MATNR_TO_INTERN_FORMAT", the actu
al parameter "MATERIAL" is incompatible with the formal parameter "I_M
ATNR".


Author and last person to change the include are:
Author         SAP
Last changed by "SAP         "

and

The following syntax error has occurred in program SAPLCSAP

              :

In PERFORM or CALL FUNCTION "CONVERT_MATNR_TO_INTERN_FORMAT", the actu

al parameter "MATERIAL" is incompatible with the formal parameter "I_M

ATNR".

" "

Can anyone tell me whats wrong here?

Thanks and Regards

Markus

1 ACCEPTED SOLUTION
Read only

DominikKraemer
Active Participant
0 Likes
4,742

It seems that you are passing the internal material number (MATNR after conversion to CONVERSION_EXIT_MATN1_INPUT)

Pass the external material number (same as you would open it in MM03) and then it should work.

Regards,

Dominik

10 REPLIES 10
Read only

DominikKraemer
Active Participant
0 Likes
4,743

It seems that you are passing the internal material number (MATNR after conversion to CONVERSION_EXIT_MATN1_INPUT)

Pass the external material number (same as you would open it in MM03) and then it should work.

Regards,

Dominik

Read only

0 Likes
4,742

I would say: I did it like you described it:

mm03: material number 200000

then in se37:

resulting in the following error:

Read only

0 Likes
4,742

Well thats strange. For me it is working properly. Maybe there is an OSS for your release?

Just one comment: The BOM usage is usually a numeric field (check table mast)

Read only

0 Likes
4,742

This is really strange.

I think table mast is looking good:

Can't find a sap note matching my problem.

You got a hint for me to find one, if there is a note existing.

Regards

Markus

Read only

0 Likes
4,742

Hmm maybe try once with adding the leading zeros for the material number & filling plant (werks) and bom_usage(stlan).

Other than that I couldn't find an OSS either which could be applicable.

Read only

0 Likes
4,742

Not working ;-(

Maybe I have to send an error message to sap....

Thanks for your help so far.

Regards

Markus

Read only

0 Likes
4,742

In this Function Module, there is a call to FORM CONVERT_MATNR_TO_INTERN_FORMAT

i.e. perform convert_matnr_to_intern_format using material
                                         changing csin-matnr
                                                  hlp_subrc.

This in turn calls a Function: CONVERSION_EXIT_MATN1_INPUT.

At the start of this Function there is a user-exit, badi, and enhancement point available. Could it be that you have one of these implemented and it is this causing the dump?

Read only

0 Likes
4,742

Hi Glen,

thanks for the hint.

I am not developing anything in this system (just making some research), but my collegue does. I will ask him.

Regards

Read only

0 Likes
4,742

We have't found out whats wrong.

Nobody has done anything nearby this FM.

We will report it to SAP.

Thank you for your help.

Regards

Markus

Read only

0 Likes
4,742

Problem solved.

Note 1940837 was installed to our SAP System.