cancel
Showing results for 
Search instead for 
Did you mean: 

how file adapter has to pick .stub file???

Former Member
0 Kudos

Hi guys,

Sap system is generating a .stub file.if that file exist then only adapter will send the data to pi.

Can we have some settings in Sender File Adapter where in we can Put check condition for .STUB file.

I mean, If .STUB file is present in ECC directory only than PI will Pick the File.

If .STUB file exist, we need to pick some other file.

If we want to go with unix script, From were we need to get that unix script file. and were we need to use .in file adapetr or some were else??

--> Do you have any example script? If yes, please share.

--> is there advance function in Sender File Adapter to pick that file?

please advice

Regards,

Naren

Edited by: Narendra Surepalli on Oct 17, 2011 8:20 AM

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Naren

with "Run operating system command before message processing" you can call a script on your server.

The script can check if there is a file .STUB exist on server or not.

You can serch for unix commands for check if file exist.

One example:

test -e $file_name && echo "file exists"

from http://www.unix.com/unix-dummies-questions-answers/5361-how-check-if-file-exist-not.html

You can check others as well.

Regards

Raj

Former Member
0 Kudos

Hi Raj,

Many thanks for ur reply. i will try this and come back if i still have any issue.

Regards,

Naren

Edited by: Narendra Surepalli on Oct 17, 2011 10:36 AM

Former Member
0 Kudos

Hi Raj,

As u said i tried with some unix commands .but i couldn't able to get my file from source based on .stub exist.

Can any one help me in this.am not that much gud in unix commands.

Any suggestion plssssss

Regards,

Naren

peter_wallner2
Active Contributor
0 Kudos

Hello Naren,

I mean, If .STUB file is present in ECC directory only than PI will Pick the File.

Just do

*.STUB

in the field file name where you specify what kind of file to pick. It will then only pick STUB-files and nothing else.

Regards,

Peter

Former Member
0 Kudos

Hi Peter,

Many Thanks for ur quick reply.

Here if .stub file exists need to pick some other file.we r not picking .stub file.

Regards,

Naren

peter_wallner2
Active Contributor
0 Kudos

Hello Naren,

Ok, now I get it. Then you should go with the solution from Raj and check for the .STUB file first.

Best regards,

Peter