cancel
Showing results for 
Search instead for 
Did you mean: 

Receiver file adapter to handle multiple structure

Former Member
0 Kudos

Hi all,

I have an issue writing file to the file server using receiver file adpater, I am using file content conversion and my file adapter.

My data type of the output file has 3 hierarchy.

header

Item

subitem

for every item ,multile subitem would occur, but i am getting error in the communication channel, the adapter takes the fixed field length of the "Item" and looks for the subitem while writing the file.

Let me know if any one has come across this issue.

thankx in advance,

Shree

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

I have found this blog:

/people/krishnakumar.ramamoorthy3/blog/2007/01/27/generic-mapping-to-convert-nested-xml-to-flat--receiver-file-adatper

It shows how you can convert a complex structure to flat using ABAP Mapping.

Does anyone have a way to realize that using graphical mapping or some other kind?

At all, is it possible to convert a complex source structure with sub-structures that reoccur sometimes more then once and sometimes never without using an ABAP-Mapping but just with the graphical editor?

Former Member
0 Kudos

Hi Heinrich

No.In XI we can't have nested target structure.

thats not possible here.

regards

yugapreetha

Shabarish_Nair
Active Contributor
0 Kudos

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

note that u cannot have a hierarchy of 3

max hierarchy is as shown below;

<root>

<nameA>

<value1>value</value1>

<value2>value</value2>

<value3>value</value3>

</nameA>

<nameB>

<value4>value</value4>

</nameB>

...

</root>

also ref: /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion

Former Member
0 Kudos

Hello!

Is there really no possibility to convert a structure with a deeper hierarchy of 2?

I'm trying to convert a structure like this into a flat csv-file

<root>

<STRUCTURE1>

<value1>value</value1>

<value2>value</value2>

<value3>value</value3>

<STRUCTURE2>

<valuea>value</valuea>

<valueb>value</valueb>

<valuec>value</valuec>

<STRUCTURE3>

<valueZ>value</valueZ>

<valueY>value</valueY>

<valueX>value</valueX>

</STRUCTURE3>

</STRUCTURE2>

</STRUCTURE1>

</root>

I implemented that the values are printed in lines separated by ";". A new dataset is printed in a new line. I'm just missing my headerline. That won't work.

Any idea?