cancel
Showing results for 
Search instead for 
Did you mean: 

Issue in creating AP credit memo using DI API

former_member209699
Contributor
0 Kudos

Hi all,

Manual case-

When we perform Copy From from A/P Invoice to A/P Credit Memo , all the details form A/P Invoice are copied on to A/P Credit memo , When we change the Warehouse at detail level system automatically change the location code and tax code remains same. And system allow to add the document.

Using DI API (My case)-

When we are creating A/P Credit Memo on the basis of AP Invoice, all the details form A/P Invoice are copied on to A/P Credit memo , we are changing the warehouse and location code. In this case system will somehow clearing the tax code. Even after providing the tax code through DI API it will again show error message as below-

"10001155 - Row without tax was found"

I am using SAP 8.81 PL09

I will appreciate any type of help.

Thanks and Regards,

Sandy  

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Sandeep,

     Can you post your code on how you do copy from in DI API?

Regards,

former_member209699
Contributor
0 Kudos

Hi,

We are adding this document through XML method.

<?xml version="1.0" encoding="utf-8"?>

<BOM>

  <BO>

    <AdmInfo>

      <Object>19</Object>

    </AdmInfo>

    <ORPC>

      <Row>

        <CardCode>VEDOT000249</CardCode>

        <Series>544</Series>

        <DocDate>20121109</DocDate>

        <DocDueDate>20121109</DocDueDate>

        <DocSubType>--</DocSubType>

        <U_IsTDSActive>N</U_IsTDSActive>

        <U_WTAmtChange>N</U_WTAmtChange>

      </Row>

    </ORPC>

    <RPC1>

      <row>

        <BaseType>18</BaseType>

        <BaseRef>12292</BaseRef>

        <BaseEntry>7088</BaseEntry>

        <BaseLine>0</BaseLine>

        <ItemCode>FLY-MV248</ItemCode>

        <WhsCode>WH-LKO</WhsCode>

        <LocCode>9</LocCode>

        <Project>UP(E)</Project>

        <TaxStatus>Y</TaxStatus>

        <Price>1761.9</Price>

        <OcrCode>Acc/Fin</OcrCode>

        <OcrCode2>B&amp;C_BUZ</OcrCode2>

        <OcrCode3>AP</OcrCode3>

        <OcrCode4></OcrCode4>

        <OcrCode5></OcrCode5>

        <TaxCode>VAT4AT1</TaxCode>

        <U_IsIndent>N</U_IsIndent>

        <Quantity>1</Quantity>

      </row>

    </RPC1>

    <SRNT>

      <row>

        <DistNumber>911128800407345</DistNumber>

        <DocLineNum>0</DocLineNum>

      </row>

    </SRNT>

  </BO>

</BOM>

regards:

Sandy

Former Member
0 Kudos

Hi,

I've to test, will find some time during my day. One thing strange is the xml entity (&amp;) on OcrCode2 value...

Regards,

Eric

Former Member
0 Kudos

Hi,

How are you creating the CreditMemo from the Invoice ?

Can you show some code ?

Regards,

Eric