Skip to Content
0
Jun 08, 2011 at 11:58 AM

Invoking BAPI_DOCUMENT_CHECKIN2 from WebDynpro doesn't work

50 Views

Hello everyone,

I've coded this:

METHOD check_in_attachments.

  CALL FUNCTION 'BAPI_DOCUMENT_CHECKIN2'
          EXPORTING: documenttype = dokar
                     documentnumber = doknr
                     documentpart = doktl
                     documentversion = dokvr
                     PF_HTTP_DEST = 'SAPHTTP'
                     PF_FTP_DEST = 'SAPFTP'
          IMPORTING: return = return
          TABLES: documentfiles = documentfiles.

  IF return-type CA 'EA'.
    ROLLBACK WORK.
  ELSE.
    COMMIT WORK.
  ENDIF.


ENDMETHOD.

and I'm calling this method from my webdynpro for ABAP program but I'm getting the error:

Error while checking in and storing: c:\myfile.txt 

When I invoke the same method from a report it works all right.

The destinations SAPHTTP and SAPFTP are working okay (report RSHTTP05 ).

Could any one help me on this?

Thank you.