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: 

regarding sm69

Former Member
0 Kudos

hai,

i have Ztesting.bat file in C:\winnt\system32 WINDOWS NT directory.

how to test in SM69 could you pls guide me.

i mean how to set this file in Command name and execute.

I tried executing it but it always execute in DIR_HOME directory why is it?

should i have to set any path change in parameter under R3.

ambichan.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Ambi

I have used SM69 with the following settings:

Operating System : Windows NT (case sensitive)

Operating System Command : c:\usr\sap\test.cmd

Addition Parameters Allowed : ‘X’

This file test.cmd was on application server. Try putting your file on this path and do the needful also in SM69 and test.

Regards

Ashish Jain

ashishjain@ko-india.com

9 REPLIES 9

Former Member
0 Kudos

Hi,

Is your batch file present on the Application Server ? Or is it present on your local PC ?

Regards,

Anand Mandalika.

0 Kudos

hey

yes its in WINDOWS NT server local direcotry C:\winnt\system32

ie. Not in local PC.

ambichan

Message was edited by: ambi chan

Message was edited by: ambi chan

0 Kudos

Hi,

Why don't you just specify the file name with the complete path? By default, the system look s to find the file in the DIR_HOME directory. If you want it to look at some where else for the file, then you should tell the system.

Give C:\winnt\system32\ztesting.bat in the field called <b>Operating system command</b> in SM69. That should work.

Regards,

Anand Mandalika.

Former Member
0 Kudos

Hi Ambi

I have used SM69 with the following settings:

Operating System : Windows NT (case sensitive)

Operating System Command : c:\usr\sap\test.cmd

Addition Parameters Allowed : ‘X’

This file test.cmd was on application server. Try putting your file on this path and do the needful also in SM69 and test.

Regards

Ashish Jain

ashishjain@ko-india.com

0 Kudos

hey guys,

Thanks for your reply.

I have set path as you people said and it gets executed command properly. but Actually problem here is.

I just had sample like this.

OS:Windows NT.

OS Command : c:\winnt\system32\ztesting.cmd

Inside Ztesting.cmd.

suppose i have "DIR" written in cmd file.

when i execute from SM49. I get directory listing of

DIR_HOME- instead of displaying list from C:\winnt\system32\ directory.

why is it?

how to make set to display the DIR listing of C:\winnt\system32. using my command.

ambichan.

0 Kudos

Hi,

That is because the path you give is only the location of the file. The default is always DIR_HOME.

If you want the contents of the directory where the file is residing, you should put <b>DIR C:\winnt\system32</b> in your file.

Regards,

Anand Mandalika.

0 Kudos

hey anand,

Thanks for your reply.

yes it works out.great.

i have last question on this.

1-if i want to list of my local PC directory. how to make setting.

2-What does \C means in \C DIR....

ambichan

0 Kudos

Hi,

1. It is like asking If I want to edit a word document, how can I do it from SAP? Just kidding... I don't think you can do this. The external OS commands are simply not meant for such a thing.

2. It is not \c. It is /c. This is a windows related question. Just search for DIR in windows, you will get all the other options as well. Or at your windows command prompt, just type <b>DIR /?</b>

Regards,

Anand Madnalika.

0 Kudos

ok thanks anand.