cancel
Showing results for 
Search instead for 
Did you mean: 

Idoc to file

Former Member
0 Kudos

Hi all any one can please provide solution for my problem.....

I am working on outbound interface (IDOC TO FILE)

IDOC --- PI --- Destination via file adapter

1.based on line items in idoc no of files will generates in the destination.

Ex: 5 line items --- 5 xml files in the receiver side.

based on conditions destination will define.

2.for the generated files count is required.

Ex:  1-5-file.xml or               file1.xml

       2-5-file.xml                  file2.xml

       3-5-file.xml                  file3.xml

                                             ---

                                         file5.xml

i am working in 7.4

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

can please suggest the mapping process...

anand_shankar10
Active Participant
0 Kudos

Hi Rajesh,

You are being advised to change the occurance of receive data structure, something that we call multi-mapping. After that you need to map the root node of the target to the repeating node in the sender. This will help you create as many files as the repeating values in sender file.

Hope you get an idea now.

Thanks

Anand

JaySchwendemann
Active Contributor
0 Kudos

Rajesh,

the hints by Venkat and Harish should give you a solid idea how to accomplish your goal.

Please double check if you really selected 0...unbounded in Message Mapping

(sorry for the image texts being in German. PI Version = 7.0 Dual Stack)

Also check (depending on your actual IDoc segments) if you mapped correctly including potential context change so that multiple target nodes get created when multiple source IDoc segments are there

HTH

Cheers

Jens

Former Member
0 Kudos

I tried it but i am getting multiple line items as a multiple messages in the one file, but expecting output is each line item as a one xml file with filed values. can you help....

Former Member
0 Kudos

Hi,

>>5 line items --- 5 xml files in the receiver side.

Use multi mapping by putting occurrence of target MT with 0..unbound

lineitem-->Rec_MT

>>for the generated files count is required.

Use the counter option in receiver file channel (Processing/File construction mode/Add counter).

Regards

Venkat

Former Member
0 Kudos

counter is available in NFS transport protocol

Their is

Create

Append

add time stamp

add message id in processing tab

Harish
Active Contributor
0 Kudos
Former Member
0 Kudos

I tried it but i am getting line items as a messages in the one file, but expecting output is each line item as a one xml file with filed values. can you help

iaki_vila
Active Contributor
0 Kudos

Hi Rajesh,

If the Harish links doesnt help you i'm afraid that you are doing wrong the mapping.

Could you share your Message mapping?, are you sure that you are testing with an example that generates several Message tags?

Regards.

Former Member
0 Kudos

Hi Harish

With the help of your inputs i have tried where as multiple messages are generated in one file but the requirement is one line item as one file. i am sharing my structure please help me... 

zrdspikto (senderside line item) how many times it repeats thous many times Picktask_to details has to be generate as a individual files in receiver side for example (1.xml,2.xml,3.xml......)

JaySchwendemann
Active Contributor
0 Kudos

Double check / reassign your operations mapping ICO (ID). Multiplicity must be 0...unbounded

Former Member
0 Kudos

Hi

i am posting the full details can u please help

Hi Gopal

I have a scenario IDOC to File

requirement is :

in Idoc one line item repeats multiple times then thous many xml files has to be generate in receiver location.

Ex: line item 5 times repeated 5 xml files in one location.

the above one is my structure

if ZRDSPICK to repeats 5 times 5 xml files

but i am getting 5 messages in one file but required 5 different files

In mapping i kept occurrence 0-UB

signature occurrence 0-UB

ICO occurrence 0-UB still same prob

can please help

Harish
Active Contributor
0 Kudos

Hi Rajesh,

Can you please share the Operational mapping and configuration screenshot?

regards,

Harish

JaySchwendemann
Active Contributor
0 Kudos

Any File Content Conversion / MessageTransformBean action going on? Taking a long shot here, though

Former Member
0 Kudos

i think this screen are ok need some thing else,.....

thanks

JaySchwendemann
Active Contributor
0 Kudos

I'm afraid we're running out of guesses here. If everything is like you describe it (especially multiplicity = Unbounded in ICO's receiver interfaces) then I would suggest opening an incident at SAP.

I'm pretty sure however, that there should be some misconfiguration somewhere which you / we overlooked so far.

Cheers

Jens