cancel
Showing results for 
Search instead for 
Did you mean: 

Can't create stock transfer using DI Server

Former Member
0 Kudos
741

Hi Experts,

I need a very urgent help from you guys.

I was creating an inventory transfer document with batch numbers by using DI Server, Each time it gives me error "10000559 - Not enough data".

I am using following soap string.

Thanks in advance for the help

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

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

  <env:Header>

    <SessionID>6BD16887-E595-41B0-A6D2-D730DFA07B55</SessionID>

  </env:Header>

  <env:Body>

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

      <BOM>

        <BO>

          <AdmInfo>

            <Object>oStockTransfer</Object>

          </AdmInfo>

          <Documents>

            <row>

              <CardCode>V00204</CardCode>

            </row>

          </Documents>

          <Document_Lines>

            <row>

              <ItemCode>Raw Colostrum</ItemCode>

              <WarehouseCode>TANK1</WarehouseCode>

              <Quantity>2.5</Quantity>

              <FromWarehouseCode>FREEZER1</FromWarehouseCode>           

            </row>

          </Document_Lines>

          <BatchNumbers>

            <row>

              <BatchNumber>140505155901743</BatchNumber>

              <Quantity>2.5</Quantity>

              <BaseLineNumber>0</BaseLineNumber>            

            </row>

          </BatchNumbers>

        </BO>

      </BOM>

    </dis:AddObject>

  </env:Body>

</env:Envelope>

Accepted Solutions (1)

Accepted Solutions (1)

maik_delly
Active Contributor
0 Kudos

Hi Ritu,

I don't know exactly what the problem is, but the following xml is working for me ( using StockTransferService):


<?xml version="1.0" ?>

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

    <soap:Header>

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

            <SessionID>87CC6D32-2724-49EA-BD30-EA6DD1F0810C</SessionID>

            <ServiceName>StockTransferService</ServiceName>

        </MsgHeader>

    </soap:Header>

    <soap:Body>

        <Add xmlns="StockTransferService">

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

                <FromWarehouse>01</FromWarehouse>

                <ToWarehouse>02</ToWarehouse>

                <StockTransferLines>

                    <StockTransferLine>

                        <ItemCode>B10000</ItemCode>

                        <Quantity>1</Quantity>

                        <WarehouseCode>02</WarehouseCode>

                        <BatchNumbers>

                            <BatchNumber>

                                <BatchNumber>B1-00067</BatchNumber>

                                <Quantity>1</Quantity>

                                <BaseLineNumber>0</BaseLineNumber>

                            </BatchNumber>

                        </BatchNumbers>

                    </StockTransferLine>

                </StockTransferLines>

            </StockTransfer>

        </Add>

    </soap:Body>

</soap:Envelope>

regards,

Maik

Former Member
0 Kudos

Hi Maik,

Many thanks for your highly valuable support.

The problem was


I was using <Documents> instead of < StockTransfer > and <Document_Lines> instead of  <StockTransferLine>  .


Due to this reason DI Server was treating this request as an Marketing document request. Thats why it was giving error "10000559 - Not enough data".


I did lots of R&D to overcome this problem. And finally got this reason.


Thanks

Ritu

Answers (0)