cancel
Showing results for 
Search instead for 
Did you mean: 

Ignoring a record

Former Member
0 Kudos

Hi

the scenario is RFC -> File

the filename is sent in the third field of very first record every time,

so i'm using the variable substitution to get the filename from third field of very first record,

but i dont want to write the first record (the record with the file name) in the target file.

please help me in this,

thanks.

Saravanan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Saravanan,

write a Moduleprocessor in File adapter or write os level script for this iam not sure if you have option in windows to remove frist line but in unix you can do it.

how is project going on.

Regards

Sreeram.G.Reddy

Answers (2)

Answers (2)

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

Better option indtead of using variable substitution is to use Adapter Specific identifiers.

Look into this link to get the code to set the file name in your mapping.

In the receiever file adapter, select Adapter Specific Identifiers --> FileName.

http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/content.htm

Regards

Bhavesh

Former Member
0 Kudos

Hi Sarvanan,

See the below blog:

/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14

Thanks,

Rajeev Gupta