ABAP Forum
cancel
Turn on suggestions
Showing results for
Search instead for
Did you mean:
The next set of progression badges have been announced! Let's Discuss!
Read only

Getting high priority check after doing ATC

tejas_kamble23
Discoverer

‎2025 Oct 16 12:14 PM

0 Kudos
734

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

2 REPLIES 2
Read only

Sandra_Rossi
Active Contributor

a month ago

0 Kudos
664

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.

NB: 2438131 - Material Number Field Length Extension: Code Adaptions for usages of released RFCs and BAP...

Read only

tejas_kamble23

a month ago

0 Kudos
575

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.

AltStyle によって変換されたページ (->オリジナル) /