Skip to Content

User has no authorization for operation DISPLAY on object /PLMB/ECR

Hi experts,

I have a problem about odata authorization,When I send a request as below:

/sap/opu/odata/sap/CV_ATTACHMENT_SRV/OriginalContentSet(Documenttype='ANH',Documentnumber='0000000000000010000009999',Documentpart='000',Documentversion='00',ApplicationId='7E4D4E6467021EE7B0D8D7C1C1599999',FileId='7E4D4E6467021EE7B0D8D7C339199999')/$value

Then I get the response from server as below:

<code>CV_ATTACHMENTS/012</code>
<message xml:lang="en">User has no authorization for operation DISPLAY on object /PLMB/ECR</message>

How can I get the authorization?

thank you very much.

best regards,

felix

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Feb 26 at 09:18 PM

    Hi,

    Implement this badi,

    BADI_CV_ODATA_ATTACHMENTS_AUTH

     method IF_EX_CV_ODATA_ATTACHMENT_AUTH~CHECK_AUTHORIZATION. 
    CV_NO_AUTHORIZATION = ''.
    endmethod.

    and set filter values for you document type.

    Add comment
    10|10000 characters needed characters exceeded