Skip to Content
0

Automatic upload of Data in WebDav folder

Feb 09, 2017 at 03:45 AM

236

avatar image

Hi, I am trying to automatically upload a file in WebDav folder using the predefined available Communication arrangement "Access Documents via WebDav". as mentioned in thislink

the uploaded file should be available in the below location Input and Output management-Fileinput

The below is the Request xml that we get when Iload WSDL file in SoapUI.

I am not sure of what values to be passed in the below fields, ObjectTypeCode, URI, etc.

This is similar to ManageAttachmentFolderIn interface but not exactly the same.

Any sample file would be helpful. Also where is the field where we specify the Service Interface name? As this file will be used for FileInput by an Interface.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:glob="http://sap.com/xi/SAPGlobal20/Global">
   <soapenv:Header/>
   <soapenv:Body>
      <glob:AttachmentFolderFileMaintainRequest_sync>
         <!--Optional:-->
         <BasicMessageHeader>
            <!--Optional:-->
            <ID schemeID="?" schemeAgencyID="?" schemeAgencySchemeAgencyID="?">?</ID>
            <!--Optional:-->
            <UUID schemeID="?" schemeAgencyID="?">?</UUID>
            <!--Optional:-->
            <ReferenceID schemeID="?" schemeAgencyID="?" schemeAgencySchemeAgencyID="?">?</ReferenceID>
            <!--Optional:-->
            <ReferenceUUID schemeID="?" schemeAgencyID="?">?</ReferenceUUID>
         </BasicMessageHeader>
         <AttachmentFolderFile>
            <ActionCode>?</ActionCode>
            <HostObjectNodeTechnicalReference>
               <ObjectNodeTechnicalID>?</ObjectNodeTechnicalID>
               <!--Optional:-->
               <ObjectTypeCode listID="?" listVersionID="?" listAgencyID="?">?</ObjectTypeCode>
               <!--Optional:-->
               <ObjectNamespaceURI schemeID="?">?</ObjectNamespaceURI>
               <!--Optional:-->
               <ObjectName>?</ObjectName>
               <!--Optional:-->
               <ObjectNodeTypeCode listID="?" listVersionID="?" listAgencyID="?">?</ObjectNodeTypeCode>
               <!--Optional:-->
               <ObjectNodeNamespaceURI schemeID="?">?</ObjectNodeNamespaceURI>
               <!--Optional:-->
               <ObjectNodeName>?</ObjectNodeName>
            </HostObjectNodeTechnicalReference>
            <!--Optional:-->
            <UUID schemeID="?" schemeAgencyID="?">?</UUID>
            <!--Optional:-->
            <TypeCode listID="?" listVersionID="?" listAgencyID="?" listAgencySchemeID="?" listAgencySchemeAgencyID="?">?</TypeCode>
            <Name>?</Name>
            <!--Optional:-->
            <AlternativeName>?</AlternativeName>
            <!--Optional:-->
            <Description languageCode="?">?</Description>
            <!--Optional:-->
            <BinaryObject mimeCode="?" characterSetCode="?" format="?" fileName="?" uri="?">cid:349310390213</BinaryObject>
         </AttachmentFolderFile>
      </glob:AttachmentFolderFileMaintainRequest_sync>
   </soapenv:Body>
</soapenv:Envelope>

Any help is appreciated.

Thanks

Abdul Rasheed

img.png (11.8 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Horst Schaude
Feb 13, 2017 at 12:49 PM
0

Hello Abdul,

Have you already taken a look into the documentation at section 8.13?

Furthermore - even as it is not exact the same, but it is similar: Mass Upload.

HTH,
Horst

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

Yes I have taken a look into the documentation and your blog. It talks about generation of XML file and then manually upload it. It doesn't talk about automatically uploading file using Communication arrangement.

"Access Documents via WebDav" and "Integration to WebDav Repository".

I am unable to map all the fields of my generated XML file and the request xml of this Comm arrangement.

After mapping some fields, it fails with the below error.

"RBAM: No authorization for 'Operation http://sap.com/xi/DocumentServices/Global MaintainAttachmentFolderFile' on 'ServiceInterfa"

Regards,

Abdul Rasheed

0
Abdul Rasheed Mohammed

Hello Abdul,

This RBAM error tries to tell you that the user in the Communication Arrangement has not the sufficient authorizations.

HTH,
Horst

0

Yes. How do I get sufficient authorizations? I tried using multiple ID's there with full authorizations.

Regards,

Abdul Rasheed.

0
Abdul Rasheed Mohammed

Hello Abdul,

I am not a RBAM guru. :-(

  • Do you have some BusinessRoles to chose from?
  • Do you see some WoC reg. WebService, WebDAV, or any other integration?

Sorry,
Horst

0

Hi Horst,

  • I have access to all Business roles.
  • There is some WoC in Admin for WebDAV where we can maintain business roles for Communication. Tried this option as well

I have raised an incident with SAP. Will update once I get any progress on this.

Regards,

Abdul Rasheed.

    0