on 11-15-2007 7:19 AM
Hi Guys,
A new system Command is created. When that system command is executed, the client wants to take a file from one directory in application server and put that file into another directory on the application server itself. How this can be achieved?
What I know is we can create a function module and place that function module in the system command. But in that function module, I have to change the fielname and put that into another directory. I don't know how to do it.
Note: I shouldn't read the data from the file using Open Dataset statements..
Please let me the solution if any one has encountered such a scenario.
Regards.
Hari.
Create a script to rename and execute that script using SM49...
--
Markus
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Markus,
This is a directoy /interfaces/BI_Upload/GSM/IN on the application server. There are some files in this directory. When the system command is executed, a file in this directory needs to renamed and put into another directory /interfaces/BI_Upload/GSM/OUT..
The operating system is HP Unix..
Regards.
Hari.
Ok Mark. Now I got all the details that you need.
Command Name ZSAPICONV
Operating System LINUX
Type Customer
Operating system command /sapmnt/NWD/exe/sapiconv
Parameters for operating system command -f 1100 -t 4110
Additional Parameters Allowed.
I think this will help you to resolve my case. Please help ASAP.
Regards.
I think you are mixing up things here.
The program "sapiconv" is for converting files into different codepages, it´s not for copying/moving files to other directories.
If you want to use the ZSAPICONV to you need to modify it, take out the "sapiconv" and put in the "mv" (move) command to move the file to the other directory.
I suggest though creating a NEW command. e.g ZMV and give the appropriate parameters.
--
Markus
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.