Skip to Content
0

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

Jan 17 at 03:48 AM

149

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Edwar Soto Feb 26 at 09:18 PM
0

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.


Show 3 Share
10 |10000 characters needed characters left characters exceeded

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?

0

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

This object /PLMB/ECR exist by default.

0

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

0