cancel
Showing results for 
Search instead for 
Did you mean: 

Configuring Receiver File Adapter for J2SE

Former Member
0 Kudos

Hi All,

I have a scenario in which i need to convert the IDOC data into a fixed length file.

I did mapping according to the output structure of the file.

My Output file format is as follows...

Document1 document2 document3 etc

Each document contains different fields with different lengths

In XI-FIle adapter we give Recordset structure : Document1,Document2,Document3.

But while configuring Receiver File adapter in J2SE.

There is no option mentioned in J2SE Adapter.

<b>http://saphelp.border-states.com/EN/95/bb623c6369f454e10000000a114084/content.htm</b>

Please throw some light on the same.

Thank You

Regards,

Reehan

Accepted Solutions (0)

Answers (1)

Answers (1)

Shabarish_Nair
Active Contributor
0 Kudos
Former Member
0 Kudos

Yes shabrish,

I did...

Any help how to mention content conversion in J2SE?

Thanks in Advance..

Regards,

Reehan

Shabarish_Nair
Active Contributor
0 Kudos

in the same link if you go to point

<i>7. Specifications to convert an XML document (mode XMB2FILEWITHCONVERSION)</i>, it talks about how to do the content conversion for J2SE. Its quite similar to the normal file adapter.

Former Member
0 Kudos

Yes Shabrish,

I have already gone through that link .

in normal xi-file adapter we will mention what is our recordset structure.

but here there is no option to mention our recordset structure.

Thanks for the Time..

Regards,

Reehan.

Shabarish_Nair
Active Contributor
0 Kudos

as far as i read the document, what i understood is that the J2SE adapter has a limitation.

your XML structure should be as mention in the link;

<i>To convert a table in XML format to pure text format, the document format must be the same as that which is generated by the sender file/FTP adapter in mode FILE2XMBWITHROWCONVERSION <i>(with the default value <row> for the structure)</i> and the sender JDBC adapter. This means that the document structure looks like this:

<resultset>

<row>

<column-name1>column-value</column-name1>

<column-name2>column-value</column-name2>

<column-name3>column-value</column-name3>

</row>

<row>

<column-name1>column-value</column-name1>

<column-name2>column-value</column-name2>

<column-name3>column-value</column-name3>

</row>

</resultset>

This is an example for 3 columns and 2 lines. The number of lines and columns is, of course, unlimited. <b>The XML elements in italics can be defined by the user and the elements of a line must be grouped within an element of type <row> … </row></b>.</i>

So cannot take the <b>recordset structure</b> as we have for the normal File adapter.

Former Member
0 Kudos

Yes Shabrish

It has given a simple example.

But how to achieve if we have different logical structures?

Thank You..

Regards,

Reehan

Shabarish_Nair
Active Contributor
0 Kudos

well then you would have to utilize the J2EE capabilities since that is the limitation of the J2SE adapter !!!!