01-17-2018 3:48 AM
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
02-26-2018 9: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.
02-27-2018 7:57 AM
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?
02-27-2018 5:08 PM
Hi, I'm not sure but search in DMS Configurations.
This object /PLMB/ECR exist by default.
02-28-2018 1:21 AM
Hi Edwar, Do you know how to create my own sap object like /PLMB/ECR? Do you have any tutorial for that?