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

Issue with a Functuion Module

Former Member
0 Likes
475

We have a program which runs a ftp script to pull the file from IBM system.

The functionality is handled by below RFC.

CALL FUNCTION 'SXPG_CALL_SYSTEM'

DESTINATION DBHOST

EXPORTING

COMMANDNAME = 'ZFTPMVSPULL'

  • PARAMETERS = PARA

  • ADDITIONAL_PARAMETERS = PARA

IMPORTING

STATUS = STAT

TABLES

EXEC_PROTOCOL = PROT

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.

when we are executing the program this RFC is returning the sy-subrc as '2....i.e 'COMMAND NOT FOUND'.

Can anyone explain how this RFC is going to run the ftp script and how this command is related to it ?

Thanks in advance,

Vengal.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
444

Hi Vengalrao,

Chk if ur comman exists in SM69

2 REPLIES 2
Read only

Former Member
0 Likes
444

The command name that is taken is 'ZFTPMVSPULL' .

Read only

Former Member
0 Likes
445

Hi Vengalrao,

Chk if ur comman exists in SM69