Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Content Conversion Issue - sender File adapter..!!

Hi All ,

Input file:

GRP|HD|7001|7001A00443|012|

GRP-LN|DTL|1|ZTAS|3|002|209782010|0001|EN

GRP-LN|TXT|Customer: KR Test, Case 3

GRP-LN|TXT|Power : -2.25

GRP-LN|DTL|2|ZTAS|4|002|209782035|0001|EN

GRP-LN|TXT|Customer: CL Test, Case 4

GRP-LN|TXT|Sphere Power : -2.25

T 7

I have 4 segments (Header,Detail,Text,Trailer) with "|" as the field separator and HD,DTL,TXT,T are the Keyfields

I need to get the xml structure like below heirarchy. Text segment has to come under Detail structure. Header,Detail and Trailer has to be in the same position.

Recordset

--Header

--Detail

-


Text

--Trailer

After completion of content conversion, I am getting the XML structure in the below format. All the segments are coming in the same hierarchy.

Recordset

-Header

-Detail

-Text

-Trailer

Text segment has to come under Detail segment. I used the below parameters for FCC.

Recordset Structure: Header,1,Detail,,Text,,Trailer,1

Recordset Sequence: Variable

Header.fieldSeparator

Header.keyFieldValue

Header.fieldNames

Detail.fieldSeparator

Detail.keyFieldValue

Detail.fieldNames

Text.fieldSeparator

Text.keyFieldValue

Text.fieldNames

Trailer.fieldSeparator

Trailer.keyFieldValue

Trailer.fieldNames

Kindly suggest me wat went wrong and how to solve it by content conversion.?

Thanks

Deepthi

Former Member
replied

>

> Hi Shabharish,

>

> >> then use a java mapping to help create the heirarchy.

>

> Then I need to use 2 mappings?

> one for converting the flatxml into nested structure and

> Second for doing Message mapping to target XML.

yes you are right.

Use a java mapping to create the hierarchy and then use a graphical mapping to map the XML to target.

Else another option is to do everything in one single mapping. The choice is yours

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question