cancel
Showing results for 
Search instead for 
Did you mean: 

Communication error when calling web service for checkin and checkout files

Former Member
0 Kudos

Hello,

I am trying to checkout and also to checkin files within the DMS via web service. The files are stored in the VAULT (=TRESOR) without the data server parth and DVA computer.

For checkout:

    • Original zum Ändern auschecken

CALL FUNCTION 'BAPI_DOCUMENT_CHECKOUTMODIFY2'

EXPORTING

documenttype = pi_documenttype

documentnumber = pi_documentnumber

documentpart = pi_documentpart

documentversion = pi_documentversion

documentfile = lf_documentfiles

pf_http_dest = ''

pf_ftp_dest = ''

  • statusextern = lf_status

IMPORTING

return = lf_return

checkedoutfile = ls_checkedoutfile.

and for checkin:

    • Dokument einchecken

CALL FUNCTION 'BAPI_DOCUMENT_CHECKIN2'

EXPORTING

documenttype = pi_documenttype

documentnumber = pi_documentnumber

documentpart = pi_documentpart

documentversion = pi_documentversion

hostname = ''

statusintern = ''

  • statusextern = lf_status

statuslog = ''

IMPORTING

return = lf_return

TABLES

documentfiles = lt_files.

But it is not working cause I always get a 'communication error' from the function CV120_FTP_START_REG_SERVER when calling one of these BAPIs via web service:

IF pf_check_gui = 'X'.

CLEAR: gf_gui_exist,

gf_gui_checked.

CALL FUNCTION 'RFC_PING'

DESTINATION 'SAPGUI'

EXCEPTIONS: communication_failure = 1 MESSAGE lf_msg_text

system_failure = 2 MESSAGE lf_msg_text.

IF sy-subrc = 0.

gf_gui_exist = 'X'.

ELSE.

CLEAR gf_gui_exist.

ENDIF.

gf_gui_checked = 'X'.

ENDIF.

Afterwards the following function is called where I got the error 'Program no longer started via RFC. No return possible.':

  • ----------------------------------------------------------------------

    • -> Vault with DVA -> ** Start FTP on the client

  • ----------------------------------------------------------------------

CALL FUNCTION 'SYSTEM_START_REG_SERVER'

EXPORTING: progname = 'sapftp'

startmode = '' " X

exclusiv = 'Y'

waittime = 500

startcomp = 'C' " G=gui, C=RFC

startpara = ' '

IMPORTING: err_code = lf_errno

err_mess = lf_error_msg

destination = pfx_destination.

Regards

Jens

Accepted Solutions (0)

Answers (2)

Answers (2)

dominik-st
Participant
0 Kudos

Hi! I am facing the same problem in function SYSTEM_START_REG_SERVER.

Even the SAP Support did not propose any working solution.

So if you solved it our, please let us know.

Best regards

Dominik

jongilman
Explorer
0 Kudos

Hi, did you ever solve this issue with SYSTEM_START_REG_SERVER?  I am having the same problem.  Thanks.

dominik-st
Participant
0 Kudos

Hi! As mentioned below I had the same problem.

There are two notes concerning security setting of the SAP Gateway:

1069911 - GW: Changes to the ACL list of the gateway (reginfo)

1480644 -  gw/acl_mode versus gw/reg_no_conn_info

Your basis team should check if the Gateway settings allow external programs to register on the gateway.

Best regards

Dominik