2014 Nov 10 12:38 PM
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
2014 Nov 10 12:48 PM
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
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
2014 Nov 10 12:48 PM
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
2014 Nov 10 1:10 PM
I would say: I did it like you described it:
mm03: material number 200000
then in se37:
resulting in the following error:
2014 Nov 10 1:16 PM
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)
2014 Nov 10 1:40 PM
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
2014 Nov 10 1:47 PM
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.
2014 Nov 10 1:54 PM
Not working ;-(
Maybe I have to send an error message to sap....
Thanks for your help so far.
Regards
Markus
2014 Nov 10 2:06 PM
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?
2014 Nov 10 2:10 PM
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
2014 Nov 11 8:19 AM
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
2014 Nov 24 11:53 AM
Problem solved.
Note 1940837 was installed to our SAP System.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |