Quantcast
Channel: SCN : Unanswered Discussions - SAP Business ByDesign
Viewing all articles
Browse latest Browse all 4032

Web Service Attachment

$
0
0

Hi,

 

I've created a web service using the BO CompanyPaymentFileRegister, this allows me to upload bank statements and other bank documents into ByD.

Unfortunately I can't get it working, if I send this request

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:glob="http://sap.com/xi/SAPGlobal20/Global">   <soapenv:Header/>   <soapenv:Body>      <glob:CompanyPaymentFileRegisterCreateRequest_sync>         <CompanyPaymentFileRegister>            <IncomingFile>               <HouseBankInternalID>10000210</HouseBankInternalID>               <ContentTypeCode>1</ContentTypeCode>               <BankStatementFormatCode>HT</BankStatementFormatCode>               <AttachmentFolder DocumentListCompleteTransmissionIndicator="false" ActionCode="01">                  <Document DocumentListCompleteTransmissionIndicator="false" ActionCode="01">                     <CategoryCode>2</CategoryCode>                     <TypeCode>10001</TypeCode>                     <MIMECode>text/csv</MIMECode>                     <Name>Bank Statement</Name>                     <FileContent ActionCode="01">                        <BinaryObject mimeCode="text/csv">Base64 Encoded CSV Bank Statement</BinaryObject>                     </FileContent>                  </Document>               </AttachmentFolder>            </IncomingFile>         </CompanyPaymentFileRegister>      </glob:CompanyPaymentFileRegisterCreateRequest_sync>   </soapenv:Body></soapenv:Envelope>

Then I get this response.

<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">   <soap-env:Header/>   <soap-env:Body>      <n0:CompanyPaymentFileRegisterCreateConfirmation_sync xmlns:n0="http://sap.com/xi/SAPGlobal20/Global" xmlns:prx="urn:sap.com:proxy:K7Q:/1SAI/TAS4B7E7609F6E83618F23B:804">         <Log>            <MaximumLogItemSeverityCode>3</MaximumLogItemSeverityCode>            <Item>               <TypeID>006(/FOP_CPFR/)</TypeID>               <CategoryCode>INC.BOI</CategoryCode>               <SeverityCode>3</SeverityCode>               <Note>Company missing</Note>            </Item>         </Log>      </n0:CompanyPaymentFileRegisterCreateConfirmation_sync>   </soap-env:Body></soapenv:Envelope>

 

I am using a custom bank statement format (format code HT) which works fine when I upload a bank statement in ByD.

The CompanyID is determined by ByD when you upload it apparently.

 

Anyone got any suggestions?

 

Many Thanks,

Will


Viewing all articles
Browse latest Browse all 4032


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>