Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_MATERIAL_SAVEDATA: Error M3 853

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

Check via SU53 or are you allowed to MM01/MM02 transactions ?

(Read  also Note 545626 - FAQ: Data transfer problems)

Regards,

Raymond

3 REPLIES 3

Former Member
0 Kudos

I think authority object M_MATE_STA is missing. But to be sure run transaction SU53 after the FM call and you will get to know exactly what authorization is missing.

anup_deshmukh4
Active Contributor
0 Kudos

Hello Dieter,

After you execute your code or the program with bapi you can check tcode SU53 or SU56 it will give you the Authorization Analysis and then you can ask your basis guy to get it done properly .

Refer to the below link

http://help.sap.com/saphelp_nw04/helpdata/en/46/d51851548e12bee10000000a1553f7/content.htm

Hope this helps,

Anup

raymond_giuseppi
Active Contributor
0 Kudos

Check via SU53 or are you allowed to MM01/MM02 transactions ?

(Read  also Note 545626 - FAQ: Data transfer problems)

Regards,

Raymond