cancel
Showing results for 
Search instead for 
Did you mean: 

Repeating structure through the receiver file adapter

Former Member
0 Kudos

I wanted to ask wheter it is possible to create repeating structure through the SAP xi receiver file adapter. What I'm trying to accomplish is this:

Item1

Item2

Item1

Item2

(variable number of times).

I can accomplish the following:

Item1

Item1

Item2

Item2

What I could do is have the Item1 and Item2 fields in the same segment in the design time, but this would mean the file adapter would write all the items on a single line instead of two.

There is no way to define line breaks between the the receiver file adapter field parameters ?

There is no way to support nested structures in the recordset definition ie. Item1.Item2 ?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos
Former Member
0 Kudos

Thanks for your replies, I've tried to accomplish this through the file adapter conversion but in the receiver file adapter, a substruture where two different fields would loop unspecified times seems impossible.

Through the file content conversion you seem to be able to just print the details in groups. Not like I decribed in my first post.

I believe the receiver adapter has even less options to use than the sender side:

http://help.sap.com/saphelp_erp2005/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm

stefan_grube
Active Contributor
0 Kudos

Henri,

What Vishal means is following:

Add sequences of the tag <recordset> between pairs of item1, item2:

<documentName>
   <<b>recordset</b>>
     <item1>
       <field-item1>column-value</field-item1>
       <field-item1>column-value</field-item1>
       <field-item1>column-value</field-item1>
     </item1>
     <item2>
       <field-item2>column-value</field-item2>
       <field-item2>column-value</field-item2>
       <field-item2>column-value</field-item2>
     </item2>
   </<b>recordset</b>>
   <<b>recordset</b>>
     <item1>
       <field-item1>column-value</field-item1>
       <field-item1>column-value</field-item1>
       <field-item1>column-value</field-item1>
     </item1>
     <item2>
       <field-item2>column-value</field-item2>
       <field-item2>column-value</field-item2>
       <field-item2>column-value</field-item2>
     </item2>
   </<b>recordset</b>>
</documentName>

A similar problem with header and items is in this thread:

Hope that helps,

Stefan

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Henri,

You can use file content conversion and do that. http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm this link can give you all the details.

Cheers

JK