Application Development and Automation 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: 
Read only

file share

Former Member
0 Likes
352

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

2 REPLIES 2
Read only

Former Member
0 Likes
330

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.

Read only

Former Member
0 Likes
330

Hi,

down the instance of SAP and then up the instance of SAP.

I hope that this solve your problem.

Cordial greetings.