When we try to call BAPI_DOCUMENT_CHECKOUTVIEW2 in update (during message output with dispatch time 4), we get a runtime error POSTING_ILLEGAL_STATEMENT (see dump.txt). It seems that during the checkout via SCMS_HTTP_GET_FILE a PING is being performed against the RFC destination SAPGUI which causes the dump.
How can I check out documents in update sessions?
The BAPI is being called like this:
call function 'BAPI_DOCUMENT_CHECKOUTVIEW2'
exporting
documenttype = 'ZSP'
documentnumber = '0000000000000010001541977'
documentpart = '000'
documentversion = '00'
documentfile = space
getstructure = '1'
getcomponents = 'X'
originalpath = space
hostname = space
getheader = 'X'
docbomchangenumber = space
docbomvalidfrom = space
docbomrevisionlevel = space
pf_http_dest = space
importing
return = result-return
tables
documentstructure = result-documentstructure
documentfiles = result-documentfiles
components = result-components.