2008 Oct 21 3:05 PM
Hi,
Can any body explain me what exactly this function module do,
CALL FUNCTION 'SXPG_CALL_SYSTEM'
EXPORTING
commandname = l_cmd
additional_parameters = l_parm
IMPORTING
STATUS =
EXITCODE =
TABLES
exec_protocol = t_cmd
EXCEPTIONS
no_permission = 1
command_not_found = 2
parameters_too_long = 3
security_risk = 4
wrong_check_call_interface = 5
program_start_error = 6
program_termination_error = 7
x_error = 8
parameter_expected = 9
too_many_parameters = 10
illegal_command = 11
OTHERS = 12.
where l_cmd we had taken some extenal operating system command like 'ZZDIR' and l_parm we had given a path which contains a file which we maintain in a file share location. I am getting an error like 'file doesn't exist in the specified directory' which is a statement from the main z program. But that is due to some failure with the above FM. pls explain me clearly abt the above FM.
Regards,
Ramesh
Hi,
Can any body explain me what exactly this function module do,
CALL FUNCTION 'SXPG_CALL_SYSTEM'
EXPORTING
commandname = l_cmd
additional_parameters = l_parm
IMPORTING
STATUS =
EXITCODE =
TABLES
exec_protocol = t_cmd
EXCEPTIONS
no_permission = 1
command_not_found = 2
parameters_too_long = 3
security_risk = 4
wrong_check_call_interface = 5
program_start_error = 6
program_termination_error = 7
x_error = 8
parameter_expected = 9
too_many_parameters = 10
illegal_command = 11
OTHERS = 12.
where l_cmd we had taken some extenal operating system command like 'ZZDIR' and l_parm we had given a path which contains a file which we maintain in a file share location. I am getting an error like 'file doesn't exist in the specified directory' which is a statement from the main z program. But that is due to some failure with the above FM. pls explain me clearly abt the above FM.
Regards,
Ramesh
2008 Oct 21 4:01 PM
Hello,
This FM executes an OS command using the command and parameters that are passed to it. If there is a problem, check the definintion of the OS command in SM69. Also check the values of teh additional parameters that are passed to the FM
Regards
Greg Kern.
2008 Oct 21 4:16 PM
Hi,
down the instance of SAP and then up the instance of SAP.
I hope that this solve your problem.
Cordial greetings.
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |