Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to store UNIX script in SM69/SM49

Former Member
0 Kudos

Hi,all

Its urgent requirement..

I wrote a UNIX script for moving files from source dir to target dir ,how to call this script in ABAP.

I know SXPG_command_execute...in that we can give a external command .But i need to call a script?

so how can i do this and where to store this script?

Thanx in advance

1 ACCEPTED SOLUTION

former_member188685
Active Contributor
0 Kudos

Hi

U store the script in unix file path.

and the command which u are going to create in sm59

and what ever command u create pass the script path as an argument.

this will solve ur problem.

regards

vijay

4 REPLIES 4

former_member188685
Active Contributor
0 Kudos

Hi

U store the script in unix file path.

and the command which u are going to create in sm59

and what ever command u create pass the script path as an argument.

this will solve ur problem.

regards

vijay

0 Kudos

hi vijay..thanx for quick response ..

can you give example???

i m creating command as z_file_mv.

In sm69,when we start creating the following are the steps:we need to specify

1.command name

2.OS

3.type

4.OS command

5.parameters for OS command

so where to put the script path?????

0 Kudos

Operating System Command is <b>CD</b>

Parameter for operating system is

<b>$DIR_GLOBAL/filename</b>

something like , nothing else required

this

venkata_ramisetti
Active Contributor
0 Kudos