Skip to Content
0
Jul 21, 2023 at 08:35 AM

ECC 6: BAPI_DOCUMENT_CHECKOUTVIEW2 dumps in update

147 Views Last edit Jul 26, 2023 at 05:58 AM 2 rev

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.

Attachments

dump.txt (610.5 kB)