Ayuda SAP

WS IncomingPaymentsService

#1

Estoy utilizando el WS IncomingPaymentsService para grabar los cobros de forma que pueda reconciliar estos cobros que se realicen a un mismo BP pero este servicio tiene más de 450 campos y es difícil trabajar con el, me ayudaría algún ejemplo o algún manual de referencia en condiciones.

¿Alguien puede ayudarme?

Saludos

0 me gusta

#2

Hola @FranKan
Prueba lo siguiente

<?xml version="1.0" encoding="UTF-16UCS-4"?>

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

   <env:Header>

      <SessionID>26C5D038-1A17-4617-2CE6-7AB9FC65CCE3</SessionID>

   </env:Header>

   <env:Body>

      <dis:AddObject xmlns:dis="http://www.sap.com/SBO/DIS">

         <BOM>

            <BO>

               <AdmInfo>

                  <Object>oBusinessPartners</Object>

               </AdmInfo>

               <BusinessPartners>

                  <row>

                     <CardCode>testBP</CardCode>

                  </row>

               </BusinessPartners>

            </BO>

         </BOM>

      </dis:AddObject>

      <dis:Add xmlns:dis="http://www.sap.com/SBO/DIS">

         <Service>InvoicesService</Service>

         <Document>

            <DocType>dDocument_Service</DocType>

            <CardCode>testBP</CardCode>

            <DocumentLines>

               <DocumentLine>

                  <Price>10000</Price>

                  <AccountCode>_SYS00000000081</AccountCode>

                  <TaxCode>My Tax</TaxCode>

               </DocumentLine>

            </DocumentLines>

         </Document>

      </dis:Add>

      <dis:Add xmlns:dis="http://www.sap.com/SBO/DIS">

         <Service>InvoicesService</Service>

         <Document>

            <DocType>dDocument_Service</DocType>

            <CardCode>testBP</CardCode>

            <DocumentLines>

               <DocumentLine>

                  <Price>12345</Price>

                  <AccountCode>_SYS00000000081</AccountCode>

                  <TaxCode>My Tax</TaxCode>

               </DocumentLine>

            </DocumentLines>

         </Document>

      </dis:Add>

      <dis:Add xmlns:dis="http://www.sap.com/SBO/DIS">

         <Service>IncomingPaymentsService</Service>

         <Payment>

            <DocEntry>1</DocEntry>

            <DocTypte>rCustomer</DocTypte>

            <DocDate>!date</DocDate>

            <CardCode>testBP</CardCode>

            <DocCurrency>USD</DocCurrency>

            <Reference2>Ref2</Reference2>

            <CounterReference>Some Ref</CounterReference>

            <Remarks>SomeRemarks</Remarks>

            <JournalRemarks>JourRem</JournalRemarks>

            <TaxDate>!date</TaxDate>

            <ProjectCode>1</ProjectCode>

            <PaymentInvoices>

               <PaymentInvoice>

                  <DocEntry>1</DocEntry>

                  <InvoiceType>it_Invoice</InvoiceType>

                  <DiscountPercent>3</DiscountPercent>

               </PaymentInvoice>

               <PaymentInvoice>

                  <DocEntry>2</DocEntry>

                  <InvoiceType>it_Invoice</InvoiceType>

                  <DiscountPercent>2</DiscountPercent>

               </PaymentInvoice>

            </PaymentInvoices>

            <PaymentCreditCards>

               <PaymentCreditCard>

                  <CreditCard>1</CreditCard>

                  <CreditAcct>_SYS00000000081</CreditAcct>

                  <CreditCardNumber>US_123456789</CreditCardNumber>

                  <CardValidUntil>!date</CardValidUntil>

                  <VoucherNum>19283920</VoucherNum>

                  <OwnerIdNum>672</OwnerIdNum>

                  <OwnerPhone>03-7879279</OwnerPhone>

                  <PaymentMethodCode>1</PaymentMethodCode>

                  <NumOfPayments>1</NumOfPayments>

                  <FirstPaymentSum>1690</FirstPaymentSum>

                  <AdditionalPaymentSum>0</AdditionalPaymentSum>

                  <CreditSum>1690</CreditSum>

                  <CreditType>cr_Telephone</CreditType>

               </PaymentCreditCard>

            </PaymentCreditCards>

         </Payment>

      </dis:Add>

      <dis:GetByParams xmlns:dis="http://www.sap.com/SBO/DIS">

         <Service>IncomingPaymentsService</Service>

         <PaymentParams>

            <DocEntry>1</DocEntry>

         </PaymentParams>

      </dis:GetByParams>

      <dis:Update xmlns:dis="http://www.sap.com/SBO/DIS">

         <Service>IncomingPaymentsService</Service>

         <Payment>

      <DocEntry>1</DocEntry>

            <DocTypte>rCustomer</DocTypte>

            <DocDate>!date</DocDate>

            <CardCode>testBP</CardCode>

            <DocCurrency>USD</DocCurrency>

            <Reference2>Ref2</Reference2>

            <CounterReference>Some Ref</CounterReference>

            <Remarks>SomeRemarks</Remarks>

            <JournalRemarks>JourRem</JournalRemarks>

            <TaxDate>!date</TaxDate>

            <ProjectCode>1</ProjectCode>

            <PaymentInvoices>

               <PaymentInvoice>

  <LineNum>0</LineNum>

                  <DocEntry>1</DocEntry>

                  <InvoiceType>it_Invoice</InvoiceType>

                  <DiscountPercent>3</DiscountPercent>

               </PaymentInvoice>

               <PaymentInvoice>

  <LineNum>1</LineNum>

                  <DocEntry>2</DocEntry>

                  <InvoiceType>it_Invoice</InvoiceType>

                  <DiscountPercent>2</DiscountPercent>

               </PaymentInvoice>

            </PaymentInvoices>

            <PaymentCreditCards>

               <PaymentCreditCard>

  <LineNum>0</LineNum>

                  <CreditCard>1</CreditCard>

                  <CreditAcct>_SYS00000000081</CreditAcct>

                  <CreditCardNumber>US_123456789</CreditCardNumber>

                  <CardValidUntil>!date</CardValidUntil>

                  <VoucherNum>19283920</VoucherNum>

                  <OwnerIdNum>672</OwnerIdNum>

                  <OwnerPhone>03-7879279</OwnerPhone>

                  <PaymentMethodCode>1</PaymentMethodCode>

                  <NumOfPayments>1</NumOfPayments>

                  <FirstPaymentSum>169</FirstPaymentSum>

                  <AdditionalPaymentSum>0</AdditionalPaymentSum>

                  <CreditSum>1690</CreditSum>

                  <CreditType>cr_Telephone</CreditType>

               </PaymentCreditCard>

            </PaymentCreditCards>

         </Payment>

      </dis:Update>

      <dis:Cancel xmlns:dis="http://www.sap.com/SBO/DIS">

         <Service>IncomingPaymentsService</Service>

         <PaymentParams>

            <DocEntry>1</DocEntry>

         </PaymentParams>

      </dis:Cancel>

   </env:Body>

</env:Envelope>


Andres Ramirez Jaramillo :colombia:

0 me gusta

bumped automáticamente #3
0 me gusta