cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

IDOC mapping issue

Former Member
0 Likes
459

Hello,

I use this scenario flat file -> XI -> IDOC.

I have configured the parameters of the file adapter for converting the flat file into an intermediate xml structure used for a mapping. I want to map this structure to the IDOC FIDCCP01.

So for example for a flat file with two lines i have the intermediate structure :

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

<ns:PAIE xmlns:ns="http://sap.com/xi/flat">

<MASTER>

<LINE>

<Code_Mouvement>CA</Code_Mouvement>

<Num_Trait_CPT>000001</Num_Trait_CPT>

<Code_Monnaie>E</Code_Monnaie>

<Code_Enregistrement>Z2M</Code_Enregistrement>

<Date_Paie>0804</Date_Paie>

<Journal>SAL</Journal>

<Folio>01</Folio>

<DJF>D</DJF>

<Jour_Ecriture>31</Jour_Ecriture>

<Num_Compte>4487100</Num_Compte>

<Num_Imputation>921110000000</Num_Imputation>

<Debit>0000000309063</Debit>

<Credit>0000000293486</Credit>

<Libelle_Compte />

<Num_Matricule />

<Num_Analytique>6328100</Num_Analytique>

<Ref_Logistique>JA</Ref_Logistique>

<No_Ref_Comptable />

<Ref2_Comptable />

<Num_DTR>0195</Num_DTR>

<Num_ZADIG>041014</Num_ZADIG>

<ABG>B</ABG>

<Filler />

<Siecle>20</Siecle>

</LINE>

<LINE>

<Code_Mouvement>CA</Code_Mouvement>

<Num_Trait_CPT>000001</Num_Trait_CPT>

<Code_Monnaie>E</Code_Monnaie>

<Code_Enregistrement>Z2M</Code_Enregistrement>

<Date_Paie>0804</Date_Paie>

<Journal>SAL</Journal>

<Folio>01</Folio>

<DJF>D</DJF>

<Jour_Ecriture>31</Jour_Ecriture>

<Num_Compte>4487100</Num_Compte>

<Num_Imputation>921120000000</Num_Imputation>

<Debit>0000000148862</Debit>

<Credit>0000000140545</Credit>

<Libelle_Compte />

<Num_Matricule />

<Num_Analytique>6328100</Num_Analytique>

<Ref_Logistique>JA</Ref_Logistique>

<No_Ref_Comptable />

<Ref2_Comptable />

<Num_DTR>0195</Num_DTR>

<Num_ZADIG>041014</Num_ZADIG>

<ABG>B</ABG>

<Filler />

<Siecle>20</Siecle>

</LINE>

</MASTER>

</ns:PAIE>

Now, i want to map this structure to the FIDCCP01 IDOC structure so for that i have imported the FIDCCP01 structure and what i want as result is one instance of FIDCCP01 with multiple instance of the IDOC record, for example :

<FIDCCPO1>

<IDOC>

<EDI_DC40>

....

</EDI_DC40>

<E1FIKPF>

....

</E1FIKPF>

</IDOC>

<IDOC>

<EDI_DC40>

....

</EDI_DC40>

<E1FIKPF>

....

</E1FIKPF>

</IDOC>

</FIDCCPO1>

If you see the DTD of any IDOC you have the definition of the IDOC record : (IDOC+) so it's possible to create multiple record IDOC in one instance of FIDCCP01 and for information i have already do that in the past with the business connector but after importing the FIDCCP01 defintion in the Integration Repository the defintion of the occurences of the IDOC record is 1..1 and i don't understand why ? and with this definition what i want to do is not possible, so what can i do ?

Regards

Vincent

View Entire Topic
Former Member
0 Likes

Hi Vincent,

Did you set the File to IDoc senarios? I am doing the same senarios where I had changed IDOC occurance and mapped source file to IDOC multiple times but I am not sure to the functionality. You did in the same way or applied BPM? Please help me. Thanks.

Regards,

PKT