cancel
Showing results for 
Search instead for 
Did you mean: 

Extra Blank Line gets added at the Beginning of the text file

Former Member
0 Kudos

Hello All,

I have created abap proxy to File Adapter scenario in PI 7.1 and I am using Content Conversion in the File Adapter to convert the payload structure to flat text file. The input Structure is simple as follows:

<?xml version="1.0" encoding="UTF-8"?>

<ns0:MT_Test xmlns:ns0="http://test.com">

  <Filename/>

   <DTL>

      <Name/>

      <ID/>

   </DTL>

</ns0:MT_Test>

And in Receiver file content conversion I am using the following parameter

DTL.addHeaderLine   0

DTL.FieldNames    Name,ID

DTL.fieldSeparator   ,

DTL.endSeparator   'nl'

DTL.fieldContentFormatting nothing

And I am using variable substitution to get the filename.

Please help in removing the blank header line

Accepted Solutions (1)

Accepted Solutions (1)

azharshaikh
Active Contributor
0 Kudos

Hi Ramya,

1. Please try to use the FCC parameters as suggested in the following links and check if it works.

Create another node, under that node(FileNode) create one filename element like Filename. Use content conversion like below

FileNode.fieldFixedLengths  0

FileNode.fixedLengthTooShortHandling  Cut

FileNode.endSeparator  '0'

2. Else go for Dynamic Config option

Dynamic file name and directory in Receiver File Adapter - summary of possibilities - Process Integr...

(Adapter-Specific Message Attributes and Dynamic Configuration)

Regards,

Azhar

Answers (1)

Answers (1)

Former Member
0 Kudos

Dear Ramya,

Please use the document offset in FCC for removing extra lines .

Please check the link

Warm Regards,

Rudra

Former Member
0 Kudos

Hi Rudra,

Document offset is available only in sender Fcc.

My scenario is proxy to file.

Regards,

Ramya