Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3523

Stock Transfer automatic processing of Excel File

$
0
0

Hi,

 

I have the request of a customer to provide an easy way for a periodic upload of about 5000 Products to one Stock Transfer.

My first guess was to use the XML(Excel) upload of the CustomerDemands -> External Request, but it didn't run popperly.

I had to give up when i could upload the XML(Excel) file and the Mass data Run finished with a green status but nothing happend. There were no items added to my customer demand.

 

 

Here is an Example of my xml maybe somebody can tell me what I'm doing wrong:

 

 

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<ns1:StockTransferXMLUploadInputRequest xmlns:ns1="http://0022802423-one-off.sap.com/Y31FXEWHY_">

    <MessageHeader>

        <CreationDateTime>2016-04-19T00:00:01Z</CreationDateTime>

    </MessageHeader>

    <List listCompleteTransmissionIndicator="true" actionCode="01">

        <ExternalRequestItem>

            <ID>30</ID>

            <Description languageCode="DE">Test1</Description>

            <SupplyPlanningAreaID>P1123</SupplyPlanningAreaID>

            <CumulatedRequestedQuantity unitCode="EA">3</CumulatedRequestedQuantity>

            <CumulatedRequestedQuantityTypeCode>EA</CumulatedRequestedQuantityTypeCode>

            <ExternalRequestItemProduct>

                <Productoductid55515b6962e03e01>P100213</Productoductid55515b6962e03e01>

            </ExternalRequestItemProduct>

            <BaseBusinessTransactionDocumentItemReference>

                <BusinessTransactionDocumentReference>

                    <ID>751</ID>

                </BusinessTransactionDocumentReference>

            </BaseBusinessTransactionDocumentItemReference>

        </ExternalRequestItem>

        <ExternalRequestItem>

            <ID>40</ID>

            <Description languageCode="DE">Test2</Description>

            <SupplyPlanningAreaID>P1123</SupplyPlanningAreaID>

            <CumulatedRequestedQuantity unitCode="EA">4</CumulatedRequestedQuantity>

            <CumulatedRequestedQuantityTypeCode>EA</CumulatedRequestedQuantityTypeCode>

            <ExternalRequestItemProduct>

                <Productoductid55515b6962e03e01>P100505</Productoductid55515b6962e03e01>

            </ExternalRequestItemProduct>

            <BaseBusinessTransactionDocumentItemReference>

                <BusinessTransactionDocumentReference>

                    <ID>751</ID>

                </BusinessTransactionDocumentReference>

            </BaseBusinessTransactionDocumentItemReference>

        </ExternalRequestItem>

    </List>

</ns1:StockTransferXMLUploadInputRequest>

 

 

I also tried to find out which BOs are created when adding a new StockTransfer I found the following:

-CustomerRequirement

-StockTransferProposal (hard to maintain data in the XML or Excel because most writeable fields are UUIDs)

-SupplyPlanningRequirement (hard to maintain data in the XML or Excel because most writeable fields are UUIDs)

 

 

Maybe I'm doing someting completely wrong, and somebody can tell me where. Or is there maybe a better way to do it?

 

 

Best Regards

Thomas


Viewing all articles
Browse latest Browse all 3523

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>