Skip to Content
0

Error creating a customer invoice with sdk....

Oct 03, 2017 at 02:41 PM

66

avatar image
Former Member

Good afternoon,

I need your help, I have a C # application that saves customer invoices in SAP using xml (the application runs normal with the SDK), but when I want to burn a sales document with some articles I skip this error:

"It is not possible to add a line without the complete selection of serial / lot numbers".

these articles have configured series and lots, but I do not get that add to my xml so that it creates the invoice.

I have tried it with others, and the sale runs. attached my xml.

Greetings.

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

1 Answer

Best Answer
ANKIT CHAUHAN
Oct 03, 2017 at 03:30 PM
1

Hi Jesus,

You need to include the details about Serial Numbers in below format:

<SerialNumbers>
      <row>
        <ManufacturerSerialNumber></ManufacturerSerialNumber>
        <InternalSerialNumber>A6-000283</InternalSerialNumber>
        <ReceptionDate>20070206</ReceptionDate>
        <Location></Location>
        <Notes></Notes>
        <BatchID></BatchID>
        <SystemSerialNumber>283</SystemSerialNumber>
        <BaseLineNumber>0</BaseLineNumber>
        <Quantity>1.000000</Quantity>
      </row>
    </SerialNumbers>

Kind regards,

ANKIT CHAUHAN

SAP SME Support

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

thank you very much for your reply

As I would to save several products with different series and lotres??

Este seria mi XML

<?xml version="1.0" encoding="UTF-8"?>
<BOM xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <BO>
    <AdmInfo>
      <Object>13</Object>
      <Version>2</Version>
    </AdmInfo>
    <QueryParams/>
    <Documents>
      <row>
        <DocDate>20171005</DocDate>
        <CardCode>C60000</CardCode>
        <Comments> factura con serial 2</Comments>
        <DiscountPercent>2</DiscountPercent>
             
      </row>
    </Documents>
    <Document_ApprovalRequests/>
    <Document_Lines>
      <row>
        <ItemCode>A00006</ItemCode>
        <Quantity>1.000</Quantity>
        <DiscountPercent>10</DiscountPercent>
      </row>
      <row>
        <ItemCode>S10000</ItemCode>
        <Quantity>1.000</Quantity>
        <DiscountPercent>0</DiscountPercent>	        
      </row>
  	</Document_Lines>
    <SerialNumbers>
      <row>
        <ManufacturerSerialNumber></ManufacturerSerialNumber>
        <InternalSerialNumber>A6-000283</InternalSerialNumber>
        <ReceptionDate>20070206</ReceptionDate>
        <Location></Location>
        <Notes></Notes>
        <BatchID></BatchID>
        <SystemSerialNumber>283</SystemSerialNumber>
        <BaseLineNumber>0</BaseLineNumber>
        <Quantity>1.000000</Quantity>
      </row>
    </SerialNumbers> 
    <Document_LinesAdditionalExpenses/>
    <LineTaxJurisdictions/>
    <WithholdingTaxLines/>
    <SerialNumbers/>
    <BatchNumbers/>
    <DocumentsAdditionalExpenses/>
    <DocExpenseTaxJurisdictions/>
    <WithholdingTaxData/>
    <Document_SpecialLines/>
    <TaxExtension/>
    <AddressExtension/>
  </BO>
</BOM>

0
Former Member

???????????????

0