cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC TO FILE ERROR

Former Member
0 Kudos

Hi Friends,

Plz do help me in solving this problem

IDOC

ZHDR 0to1 child for Idoc node

ZDET 0to1000 child for ZHDR

ZSUBDET 0to1000 child for ZDET

ZLIN1 0to1000 child for ZSUBDET

ZLIN2 0to1000 child for ZSUBDET

MT_TARG

ENV 1to1

RECORDDEF 1to1

HDRRECRDDEF 1toUNBOUNDED

DETRECRDDEF 1toUNBOUNDED

DT1RECRDDEF 1toUNBOUNDED

DT2RECRDDEF 1toUNBOUNDED

In the IDOC to File scenario, my IDOc is custom IDOC & after completion of mapping when i

execute my scenario for single HDR and DET at source side it is working fine.But when i

duplicate my ZHDR segment and execute it ... out put is as follows:

MT_TARG

ENV 1to1

RECORDDEF 1to1

HDRRECRDDEF 1toUNBOUNDED

HDRRECRDDEF 1toUNBOUNDED

DETRECRDDEF 1toUNBOUNDED

DETRECRDDEF 1toUNBOUNDED

DT1RECRDDEF 1toUNBOUNDED

DT1RECRDDEF 1toUNBOUNDED

DT2RECRDDEF 1toUNBOUNDED

DT2RECRDDEF 1toUNBOUNDED

Expected Target is:

ENV 1to1

RECORDDEF 1to1

HDRRECRDDEF 1toUNBOUNDED

DETRECRDDEF 1toUNBOUNDED

DT1RECRDDEF 1toUNBOUNDED

DT2RECRDDEF 1toUNBOUNDED

HDRRECRDDEF 1toUNBOUNDED

DETRECRDDEF 1toUNBOUNDED

DT1RECRDDEF 1toUNBOUNDED

DT2RECRDDEF 1toUNBOUNDED

I want ENV and RECORDDEF fields to be occured only once its working fine but order is mismatching for other NODES in the target side.

Every helpful answer will be rewarded.

Regards,

RVA.

Accepted Solutions (1)

Accepted Solutions (1)

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

him check your file communication channel you defined header as *

<asterisc> = *

i put <asterisc> because if i put the *

the prhase turn bold

HDRRECRDDEF,<asterisc>,DETRECRDDEF,<asterisc>,DT1RECRDDEF,<asterisc>,DT2RECRDDEF,<asterisc>

Thanks

Rodrigo

also see this blog

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

@venkat : wat u suggested is to change the occurence of HDR,

even though i was checking by doing this & it is not following

the order.

@Rodigro: i dont want the pattern said by u

Required Pattern is:

ENV

RECRD

HDR

DET

DET1

DET2

HDR

DET

DET1

DET2

Former Member
0 Kudos

Hi,

What you mean by order ? and my question is how you can repeat the sender segment in the XI ?

Former Member
0 Kudos

Hi,

You mentioned "ZHDR 0to1 child for Idoc node" so occurance is 0 to 1 then how you repeat and at the same time it is in the sender side, sender side how you repeat ?

Former Member
0 Kudos

Hi Rodrigo,

Thankz for ur advice.I'm not testing the complete scenario & i'm testing at IR level by using TEST tab.Mapping

logic is not working correctly.Segments order is missing at target side.

Regards...

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

hi, the output is ok. if you want

header

det

det

det

header

det

det

your structure should be

MT_XXXX

.......<header> 1...unbounded

...............<det> 1...unbounded

but take in mind the idoc just send one header ZHDR 0to1

its doesnt support 0...unbounded. one header per IDoc.

Thanks

Rodrigo

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

hi RVA,

as my experience the only way to get this structure if by the pattern before,

then in FCC you change it to

header

det1

det2

det3

header

det1

det2

...

...

Thanks

Rodrigo