Skip to Content
0
Former Member
Nov 22, 2012 at 02:58 PM

BAPI_MATERIAL_SAVEDATA: Error M3 853

633 Views

Hi,

i use this FM to change value in mara. If a User starts this Report,

the changes will be done but in WA_RETURN there is the message

M3853: Keine Berechtigung für diese Transaktion

If the User dose the changes via MM02, there are no message.

Has anyone an idea which Authority are missed?

Thanks,

Regards, Dieter

CLEAR: IT_RETURN[], WA_RETURN.
CLEAR: WA_HEADDATA.
CLEAR: WA_TE_MARA, WA_TE_MARAX.
CLEAR: IT_REX[], WA_REX, IT_REXX[], WA_REXX.
*
WA_HEADDATA-MATERIAL = WA_ITAB-MATNR.
WA_HEADDATA-BASIC_VIEW = ABAP_TRUE. "Sicht auf Grunddaten
* Kundenfelder: hier ZTELALPOS
WA_TE_MARA-MATERIAL = WA_ITAB-MATNR.
WA_TE_MARA-ZTELALPOS = WA_ITAB-ZTELALPOS_NEW.
WA_TE_MARAX-MATERIAL = WA_ITAB-MATNR.
WA_TE_MARAX-ZTELALPOS = ABAP_TRUE.
*
WA_REX-STRUCTURE = 'BAPI_TE_MARA'.
WA_REX-VALUEPART1 = WA_TE_MARA.
APPEND WA_REX TO IT_REX.
WA_REXX-STRUCTURE = 'BAPI_TE_MARAX'.
WA_REXX-VALUEPART1 = WA_TE_MARAX.
APPEND WA_REXX TO IT_REXX.
*
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
HEADDATA = WA_HEADDATA
IMPORTING
RETURN = WA_RETURN
TABLES
EXTENSIONIN = IT_REX
EXTENSIONINX = IT_REXX
RETURNMESSAGES = IT_RETURN_MES.