Skip to Content
avatar image
Former Member

File to multiple IDOCs error

Dear All,

I am trying to create customer master using FILE-To-Multiple IDocs.Idoc generated with 2 errors.

1.First one is status 51...Specify the Account Group.

2.Second one is it's generating only single idoc(not multiple).

I have mapped Account Group source field to KTOKD(Idoc).is this mapping problem?I have given IDOC occurence unbounded but not generating multiple idocs.below is my message mapping structure.

mt_customer Debmas01

customer (1...1)

customer_master(1..unbounded)----


>IDOC (1..unbounded)

below is my input xml file with data.

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

<ns0:mt_customer xmlns:ns0="urn://fenestacustmast">

<Customer>

<Customer_master>

<AccountGroup>0004</AccountGroup>

<CustomerNumber/>

<CompanyCode>1000</CompanyCode>

<SalesOrg>DBPM</SalesOrg>

<DistributionChannel>PS</DistributionChannel>

<Division>WD</Division>

<Title>Mr</Title>

<Name>Preethi</Name>

<SearchTerm>Mat</SearchTerm>

<SearchTerm2>V6CUSTNO</SearchTerm2>

<StreetNumber>Street 6</StreetNumber>

<City>Bangalore</City>

<Country>IN</Country>

<Region>KAR</Region>

<TransporationZone>ASCHTS01</TransporationZone>

<Fax>251662546</Fax>

<Telephone>9658965236</Telephone>

<VATRegNo>ABCG1254</VATRegNo>

<LegalStatus>01</LegalStatus>

<ReconAccount>36023901</ReconAccount>

<SortKey>001</SortKey>

<TermsOfPayment>S028</TermsOfPayment>

<ToleranceGroup>1000</ToleranceGroup>

<PaymentHistRecord>TRUE</PaymentHistRecord>

<SalesDistrict>A1KAKA</SalesDistrict>

<SalesOffice>BPBL</SalesOffice>

<SalesGroup>SEN</SalesGroup>

<Currency>INR</Currency>

<CustPricingProc>1</CustPricingProc>

<CustStatsGroup>1</CustStatsGroup>

<DeliveringPriority>01</DeliveringPriority>

<ShippingConditions>01</ShippingConditions>

<Plant>DBBG</Plant>

<AccountAssGroup>01</AccountAssGroup>

<TaxClassification>1</TaxClassification>

<InvoicingDate>IN</InvoicingDate>

<InvoicingListDate>IN</InvoicingListDate>

<IncoTerms>FCA</IncoTerms>

<IncotermsPart2>Bangalore</IncotermsPart2>

<CreditControlArea>FENE</CreditControlArea>

</Customer_master>

</Customer>

</ns0:mt_customer>

I did very simple mapping one to one without any functions.All are string types.I couldn't find what is the error?any help would be appreciated.

Thanks in advance.

Vinay

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    May 13, 2011 at 09:48 AM

    Hi,

    I would like to know whether you have mapped your customer_master(1..unbounded) node to IDOC(1..unbounded) node???Please check it once.Depending on that only the multiple IDOCs will be generated. I think it is mapping problem only. Have you changed the occurrence of IDOC to unbounded by exporting & then reimporting it to external definitions???? I've already done it & i got multiple IDOcs generated. Please check it and let me know the response so that I can help.

    Please follow th below links

    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/877c0d53-0801-0010-3bb0-e38d5ecd352c

    /people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change

    Thanks & Regards

    Priyanka Anagani

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi priyanka,

      thank you for the quick reply.

      have you mapped your customer_master(1..unbounded) node to IDOC(1..unbounded) node???

      yes.

      Have you changed the occurrence of IDOC to unbounded by exporting & then reimporting it to external definitions????

      yes.

      multiple idcos is lower priority.Firs i have to generate IDOC without any errors.Do you have any idea to solve first problem also?

      thank you priyanka

      Vinay

  • May 13, 2011 at 01:07 PM

    Hi,

    Status 51 means...the problem is with the data records. Please verivy the data record...and in the receiver backend system make sure that account group is assigned . Please follow the below link it might be useful for you.

    http://www.hareshpradhan.com/SAP/SAP%20Notes5.htm

    Thanks & Regards

    Priyanka Anagani

    Add comment
    10|10000 characters needed characters exceeded