cancel
Showing results for 
Search instead for 
Did you mean: 

Info Spoke - Process Chain - OS Command usage help

Former Member
0 Kudos

I am new to BW. My requirement is to extract the master data off of BW data targets on a weekly basis and ftp the files onto a different server.

To meet this requirement, I am planning to create InfoSpoke(s), put it in a Process chain and using the OS Command ftp the files to different server.

Is this the right way to do it or are there any better ways? If it is, I need help on where to give the target server name, user_id and PSW in the OS Command variant of Process Chain.

Also, is it possible to schedule a Infospoke directly from the scheduler (Auotsys...) and still execute weekly/monthly?

Thanks for your help in advance

RK

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello Experts:

1. Where do I actually need to write the rcp/scp commands with source and target file names. I am assuming may be in SM49/SM69 and use the command name in "System Command".

2. When I am sending to a different server: Where do I write the login and psw for that server. (I know, in the "Target Computer(Host)" I have to mention the target system host name).

Thanks for your help in advance.

RK

Former Member
0 Kudos

The OS Command usage is very easy to use. I'd recommend using the rcp (remote copy) or scp (Secure copy) command if you're moving between two environments. The rcp command like would be something like:

rcp sidadm@host1:/usr/sap/SID/testfile si2adm@host2:/usr/sap/SI2/testfile

Talk to your administrator as they'll know which of the two commands they'll need to set up. Also, if UNIX, as if you can set up a .rhosts file if you'll be FTPing frequently. They might now like that but it'll start the conversation on an easy way to set it up.

-bill smallwood

Former Member
0 Kudos

Thanks for your response Bill.

However, how and where do I give the rcp or scp commands. Is this possible within the process chain?

Thanks

rk

Former Member
0 Kudos

That's correct. You'll define the command under the general services tab in the process chain transaction (It's labeled OS Command and is a silver circle thing with a blue dot in it).

When you drag it into the process chain it will ask for a varient. In the System Command field for this varient is where you'll define the actual command. (little pencil button next to it). At this point you can call a script that does the copy or call an actual command that does the copy.

Might be easier to control with a script that does the work but if you want to call rcp/scp, the os command will be rcp and parameters will be the filename, etc. If it's a script then you'll just enter the name of the script in the os command field.

Hope this helps.

-bill

Former Member
0 Kudos

Thanks for your reply Bill.

Do I need to add the rcp/scp command with source and target file names in SM49/SM69 transactions and assign a name to it and mention that name in the System Command section in the OS Command of process chain? or am I missing anything here?

Thanks for your help

RK