cancel
Showing results for 
Search instead for 
Did you mean: 

Need Help in Commond Line parameter File adapter

Former Member
0 Kudos

Hi  Experts.

I am using FCC and wanted to remove duplicate header from the file.

Can you please help me with Unix Commond line code so that I can apply after the file is placed.

Regards,

Rakhi

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member186851
Active Contributor
0 Kudos

Hello Rakhi,

Why don't you try document offset parameter.

https://scn.sap.com/thread/3155654

Former Member
0 Kudos

Receiver File is in append mode. After Appending,all files are carrying header so wanted to remove the rest of header.

anupam_ghosh2
Active Contributor
0 Kudos

Hi Rakhi,

                Please can you check my response to this thread

you need to remove all headers from the inbound files using the offset parameter in sender FCC in first scenario.

Then apply the technique mentioned in above thread.

Regards

Anupam

Message was edited by: Anupam Ghosh

Former Member
0 Kudos

it is a pass thru scenario.Where I will add the Java code

anupam_ghosh2
Active Contributor
0 Kudos

Hi Rakhi,

               Add dummy Service interfaces and java mapping for the second scenario. Or else you can do the same with adapter module if you want to avoid the ESR objects. There will be no FCC for second scenario. Please go through all my responses in the thread I mentioned earlier.

Let me know if you have any doubts.

Regards

Anupam

Former Member
0 Kudos

So you mean to say that there will be no FCC at Receiver Side such as Add Header Lin, Pipeline.

anupam_ghosh2
Active Contributor
0 Kudos

Hi Rakhi,

                 I explain the same here once again

scenario 1  file to file

-----------------

1. fcc at sender end and remove header : This converts csv to xml format

2. fcc at receiver end : again converts xml to csv

3. the files are created in append mode

4. sender and receiver channel running all the time.

Scenario2 file to file

------------------

1. no fcc at sender end

2. java mapping/ adapter module

3. no fcc at receiver end.

4. sender channel runs only once a day at 11:55 hours. using availability time planning.

Regards

Anupam

Former Member
0 Kudos

So,If I amnot wrong  here,there will be 4 channels here.2 Sender and 2 Receiver.

The motive of doing spiltting and appending is to pass the huge size message.If we are going to use 2 more channels,purpose will not get solve.

anupam_ghosh2
Active Contributor
0 Kudos

Hi Rakhi,

              

      let me try to understand again

you have a file like this

header

l1

l2

l3

l4

you split the file using fcc

so must get

file1

----------

header

l1

file2

--------

l2

l3

file 3

-------

l4

please can you explain if I am correct?

Regards

Anupam