Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

CSAP_MAT_BOM_OPEN Short Dump with CONVERT_MATNR_TO_INTERN_FORMAT

$
0
0

Has anyone else had this issue? All help appreciated.

 

I am using the function CSAP_MAT_BOM_OPEN to update a BOM. Running it generates a short dump with the following information:

 

In PERFORM or CALL FUNCTION "CONVERT_MATNR_TO_INTERN_FORMAT", the actu

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

ATNR".

 

At first I thought my variable for the material number was bad so instead I gave it a literal value just to see if it gave me a problem and it did.

 

Here is the snippit of code from my program where I give it an actual value:

 

   call function 'CSAP_MAT_BOM_OPEN'

        exporting

             material = '000000000000123456'

             plant = '1000'

             bom_usage = '3'

             valid_from = '20140703'

        importing

             o_stko     = tstk2

             fl_warning = flg_warning

        tables

             t_stpo     = tstp2

        exceptions

             error      = 1.

 

Inside this SAP owned FM is the following:

 

--------------------------------------------------------------------------------

   perform convert_matnr_to_intern_format using material

                                          changing csin-matnr

                                           hlp_subrc.

-------------------------------------------------------------------------------

 

convert_matnr_to_intern_format says this:

 

--------------------------------------------------------------------------------

 

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.

   data: conversion_call(30) type c value 'CONVERSION_EXIT_?_INPUT',
         conve(5)            type c,
         conv_exit(10)       type c.
   clear subrc.

   check not i_matnr is initial.

   describe field csin-matnr edit mask conv_exit.

   move conv_exit+2(5) to conve.

   replace '?' with conve into conversion_call.

   call function conversion_call

        exporting
             input        = i_matnr

        importing
             output       = o_matnr
        exceptions
             not_found    = 04
             length_error = 08
             too_long     = 12
             wrong_mask   = 16.
   subrc = sy-subrc.
endform.

---------------------------------------------------------------------

 

 


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>