Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 845

I had created a web service, using standard object ExpenseReport, Operation Query is ok, Operation Create is error, who can help me.

$
0
0

Hi experts,

    I had created a web service, using standard object ExpenseReport, Operation Query is ok, Operation Create is error, who can help me.

    Thanks.

 

    my email: huangb.mmsh@sinopec.com

 

  1. New item
  2. Choose the Web service
  3. Choose the namespace and the object, the “Next”
  4. Select Elements
  5. Operation – Create
  6. Operation – Read
  7. Operation – Update
  8. Operation – Query
  9. Operation – Submit
  10. Add Work Center
  11. View of Work Center
  12. View of the Web service

 

 

 

 

  1. Define a Communication Scenario

 

  1. Query is Ok
  2. But Create raise
  3. Create xml

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:glob="http://sap.com/xi/SAPGlobal20/Global">

   <soap:Header/>

   <soap:Body>

<glob:ExpenseReportCreateRequest_sync>

         <BasicMessageHeader>

           

         </BasicMessageHeader>

         <ExpenseReport>

            <!--Optional:-->

            <EmployeeID schemeID="?" schemeAgencyID="?">E0014</EmployeeID>

            <!--Optional:-->

            <TypeCode listID="CN01" listAgencyID="?">01</TypeCode>

            <!--Optional:-->

            <Period>

               <!--Optional:-->

               <StartDateTime timeZoneCode="UTC+8" daylightSavingTimeIndicator="false">2016-08-20T08:00:00</StartDateTime>

               <!--Optional:-->

               <EndDateTime timeZoneCode="UTC+8" daylightSavingTimeIndicator="false">2016-08-21T17:00:00</EndDateTime>

            </Period>

            <!--Optional:-->

            <Description>ceshi00001</Description>

            <!--Optional:-->

<PaymentFormCode>05</PaymentFormCode>

            <!--Optional:-->

            <EmployeeBankDetailsKey>

               <!--Optional:-->

               <ID>0001</ID>

            </EmployeeBankDetailsKey>

            <!--Optional:-->

<AccountingBusinessTransactionDate>2016-08-21</AccountingBusinessTransactionDate>

            <!--Zero or more repetitions:-->

            <Receipt>

               <!--Optional:-->

               <ExpenseReportExpenseTypeCode listID="?" listAgencyID="?">TAXI</ExpenseReportExpenseTypeCode>

               <!--Optional:-->

               <Amount currencyCode="CNY">20.00</Amount>

               <!--Optional:-->

               <Date>2016-08-20</Date>

            </Receipt>

         </ExpenseReport>

</glob:ExpenseReportCreateRequest_sync>

   </soap:Body>

</soap:Envelope>

 

  1. Result

<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">

   <env:Header/>

   <env:Body>

      <env:Fault>

         <env:Code>

<env:Value>env:Receiver</env:Value>

         </env:Code>

         <env:Reason>

            <env:Text xml:lang="en">RABAX occurred on server side</env:Text>

         </env:Reason>

         <env:Detail>

            <sap:Rabax xmlns:sap="http://www.sap.com/webas/710/soap/runtime/abap/fault/generic">

<SYDATUM>20160902</SYDATUM>

<SYUZEIT>075718</SYUZEIT>

<ERRORCODE>MESSAGE_TYPE_X_TEXT</ERRORCODE>

            </sap:Rabax>

         </env:Detail>

      </env:Fault>

   </env:Body>

</env:Envelope>


Viewing all articles
Browse latest Browse all 845

Trending Articles



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