cancel
Showing results for 
Search instead for 
Did you mean: 

IDoc to File

Former Member
0 Kudos

Hi All

I had a scenario of IDoc to file. A batch from SAP R/3 system is scheduled to run daily once, which in turn forwards bunch of IDocs which holds invoices, are forwarded as input to XI. After processing the IDocs only one Flat file need to be generated for all the IDoc's that as come as input to XI.

i.e if 100 IDocs come as input to XI(each IDoc holds 1 Invoice details, so 100 invoices come as input to XI in Idoc's format) so, output of XI should be 1 flat file for all the 100 IDocs.

Is these scenario possible to generate one flat file for all the IDocs. The IDoc i am using is INVOIC02. In what way i can make change the values for min and max occurance of the segments through external defination.

like INVOIC02 0 -unbounded

IDoc 1-1

or

INVOIC02 1-1

IDoc 0-unbounded

If so please let me know the approach i need to follow. Please mail to tshailu81@yahoo.co.in

Thanks

Shailaja

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Thanks one and all for you suggessions.

Thanks priya for your suggession , you mean to have the IDoc structure to be,

INVOIC02 0 -unbounded

IDoc 1-1

Subsegments.

or

INVOIC02 1-1

IDoc 0-unbounded

subsegments.

Since I am using standard IDoc, I had its structure as

INVOIC02 1-1

IDoc 1-1

subsegments.

but we can edit it, change its occurances and import as external message

Please let me know.mail me to tshailu81@yahoo.co.in, i need your emailid

Regards

Shailaja

stefan_grube
Active Contributor
0 Kudos

It is so easy:

Set the file adapter to append mode. Then you receive one huge file.

Regards

Stefan

sridharreddy_kondam
Active Contributor
0 Kudos

Hi Shailaja,

Use 0..Unbounded and map accordingly to target structure with 0...unbounded..

and test with sample xml in message mapping with multiple idocs data and see whther u get multiple records in target ...

I assume there is no need to go with BPM...

And one thing map the source segment with 1: unbounded to target segment try in the mapping either way and check the result it will work

Thanks and Regards,

sridhar

Message was edited by:

sridhar reddy kondam

Former Member
0 Kudos

Check this blog by Stefan

/people/stefan.grube/blog/2006/09/18/collecting-idocs-without-using-bpm

cheers

Sameer

Former Member
0 Kudos

Please let me know whether these scenario is possible without BPM.

Thanks

Shailaja

former_member189558
Contributor
0 Kudos

Hi Shailaja

No way...

You have to use BPM... and follow the guide in the URL...

Cheers,

Himadri

Former Member
0 Kudos

Wrong answer.

Message was edited by:

Priyanka Balagangadharan

former_member189558
Contributor
0 Kudos

Shailaja,

Yes it is possible .. you have to bundle the idocs in a BPM..

Check the URL -- you will get evertything u need...

http://help.sap.com/saphelp_nw04s/helpdata/en/08/16163ff8519a06e10000000a114084/content.htm