cancel
Showing results for 
Search instead for 
Did you mean: 

Set Line price using xml document import

anrodse
Participant
0 Kudos
139

Trying to import documents I cannot import line prices properly. This is the XML I'm importing:

<BOM>
  <BO>
    <AdmInfo>
      <Object>17</Object>
      <Version>2</Version>
    </AdmInfo>
    <Documents>
      <row>
        <CardCode>C065002</CardCode>
        <NumAtCard>1234-XML</NumAtCard>
        <DocTotal>41.90</DocTotal>
        <PaymentMethod>TR (C)</PaymentMethod>
        <SalesPersonCode>3</SalesPersonCode>
        <DocDate>20200629</DocDate>
        <DocDueDate>20200203</DocDueDate>
        <TaxDate>20200202</TaxDate>
      </row>
    </Documents>
    <Document_Lines>
      <row>
        <ItemCode>PRODUCT-REF</ItemCode>
        <ItemDescription>PRODUCT NAME</ItemDescription>
        <Quantity>5</Quantity>
        <UnitPrice>10.0</UnitPrice>
        <!-- <Price>10.0</Price> -->
        <!-- <PriceAfterVAT>12.1</PriceAfterVAT> -->
        <!-- <LineTotal>50.0</LineTotal> -->
      </row>
    </Document_Lines>
  </BO>
</BOM>

If I only use UnitPrice or PriceAfterVAT it works properly. My problem is that LineTotal or Price doesn't work. SAP ignores it. I'd like to use LineTotal but it seems to be impossible.

Can does fields be used? I only use one of them at a time.

Accepted Solutions (0)

Answers (0)