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: 

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

felix0315
Explorer
0 Kudos

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

  • SAP Managed Tags:
4 REPLIES 4

EdwarSoto
Participant
0 Kudos

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.

  • SAP Managed Tags:

0 Kudos

Hi Edwar,

thanks for your reply, But I think it can't solve all object like /PLMB/ECR. Maybe another object appears in the response message. By the way, How to define this kind of object?

  • SAP Managed Tags:

0 Kudos

Hi, I'm not sure but search in DMS Configurations.

This object /PLMB/ECR exist by default.

  • SAP Managed Tags:

0 Kudos

Hi Edwar, Do you know how to create my own sap object like /PLMB/ECR? Do you have any tutorial for that?

  • SAP Managed Tags: