2025 Oct 16 12:14 PM
In my function module I used the
BAPI_MATERIAL_SAVEDATA for creating material detials
its creating material properly but after doing ATC check showing like
"Syntactically incompatible change of existing functionality"
(FUNC BAPI_MATERIAL_GET_DETAIL, see Note(s): 0002438131)
can anyone help me solve this ATC Check
a month ago
What statement does this error refer to? What are your variable lengths? They should be 40 for material numbers instead of 40, amount lengths have also been extended.
a month ago
below is my code I also used the material number as it mentioned in BAPIMATDOA and its size is 40 but still getting the Syntactically incompatible change of existing functionality (FUNC BAPI_MATERIAL_GET_DETAIL, see Note(s): 0002438131)
Finding can be suppressed with pseudo comment "#EC CI_USAGE_OK[2438131] when i use bold code in front of BAPI function then check is gone but I don't want to use this each time in BAPI Function
Is there any alternative
FUNCTION zfm_get_material_details.
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" VALUE(IM_MATERIAL) TYPE BAPIMATDOA-OLD_MAT_NO_LONG
*" EXPORTING
*" VALUE(EX_RETURN) TYPE BAPIRETURN
*" VALUE(EX_DETAILS) TYPE BAPIMATDOA
*"----------------------------------------------------------------------
DATA : lt_return TYPE bapireturn, "Structure to hold return messages from BAPI
lt_mara TYPE bapimatdoa. "Structure to hold general material data
"Call the BAPI to get material details
CALL FUNCTION 'BAPI_MATERIAL_GET_DETAIL'
EXPORTING
MATERIAL_LONG = im_material
IMPORTING
MATERIAL_GENERAL_DATA = lt_mara
RETURN = lt_return.
"Assigning the BAPI return message to the exporting parameter
ex_return = lt_return.
"Assigning the fetched material details to the exporting parameter
ex_details = lt_mara.
ENDFUNCTION.