cancel
Showing results for 
Search instead for 
Did you mean: 

File to multiple IDOCs error

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

PriyankaAnagani
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

Answers (1)

Answers (1)

PriyankaAnagani
Active Contributor
0 Kudos

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