Skip to Content
0
Nov 04, 2021 at 01:33 PM

Attachment as URL in SAP PM Notification: API_CV_ATTACHMENT_SRV/CreateUrlAsAttachment

216 Views

Hi All,

I'm trying to use standard API to put URL as attachment for PM Notification, but getting unauthorized error. Can you please help if you come accross this kind of issue. Or am I missing some other parameters in POST call URL?

Error:

User has no authorization for operation 01 on object BUS2038

API:

/sap/opu/odata/sap/API_CV_ATTACHMENT_SRV/CreateUrlAsAttachment

Parameters:

SemanticObject:''

BusinessObjectTypeName:'BUS2038'

LinkedSAPObjectKey:'<PM Notification Number>'

Url:'https://www.sap.com'

UrlDescription:'SAP'

MIMEType:'text/url'

Error:

User has no authorization for operation 01 on object BUS2038

Please note:

I'm following below SAP documentation..

https://help.sap.com/viewer/7489fa08cede494cbdf08fa3651598af/2111.500/en-US/adc53bb8c185416ab3b58ba66646a7ab.html

I'm passing the SemanticObject as blank, if I need to pass this, where from I can get it?

your valuable inputs are much appreciated, thanks!