cancel
Showing results for 
Search instead for 
Did you mean: 

Inserting blank lines

Sharadha1
Active Contributor
0 Kudos

Hi,

Is it possible to add blank lines between the columns in the file produced by the file adapter.

Regards,

Sharadha

Accepted Solutions (1)

Accepted Solutions (1)

vijay_b4
Active Contributor
0 Kudos

Hi Sharadha,

You can acheive this using file content parameters.

field seperator = "nl"-----which means new line.

Reward points this helps

Regards

Vani.

Sharadha1
Active Contributor
0 Kudos

hi,

Thanks for the replies. Let me explain more..

i have the following values coming in an internal table from RFC

header1,header2,header3,content1,content2,content3,content4.

I want the header fields to come in first line and content fields in the second line in the csv file produced.

Regards,

Sharadha

Former Member
0 Kudos

header1,header2,header3,content1,content2,content3,content4.

I want the header fields to come in first line and content fields in the second line in the csv file produced.

that depends on your target structure

Can you paste your target structure ??

Sharadha1
Active Contributor
0 Kudos

Hi Shekar,

thanks for the reply..

the target structure is also the same

.

header1,header2,header3,content1,content2,content3,content4.

Regards,

Sharadha

Former Member
0 Kudos

Then it wont possible to do the content conversion as per your requirement.

you can achive your requirement easily if you can change the target structure like below.

..........

<Header>

<header1>...</header1>

<header2>...</header2>

<header3>....</header3>

</Header>

<Content>

<Content1>....</Content1>

<Content2>....</Content2>

<Content3>....</Content3>

</Content>

...........

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

If it is the File content conversion then its possible, by specifying the file content parameters.

GabrielSagaya
Active Contributor
0 Kudos

using File Content Conversion.

Row.fieldSeparator='nl'

will produce field items should be printed in next line.

as per your requirement,

You can insert a blank line between 2 column is possible by using XSLT mapping or Java Mapping

if you know XSL-FO then you can use

<fo:block/> to insert blank line

former_member181985
Active Contributor
0 Kudos

Hi,

>>Is it possible to add blank lines between the columns in the file produced by the file adapter.

May I know the reason why you need blank lines in between.

Is it XML structure or flat file structure?

I think this cannot be acheived in graphical mapping,

But you can do it with java mapping or ABAP mapping as you render output structure/output using your programming logic code.

Thanks,

Gujjeti