Hello Experts,
My coding is
CALL FUNCTION 'BAPI_DOCUMENT_GETDETAIL2'
EXPORTING
documenttype = dokar
documentnumber = doknr
documentpart = doktl
documentversion = dokvr
TABLES
documentfiles = lt_docfiles.
READ TABLE lt_docfiles INTO lw_docfiles .
CALL FUNCTION 'BAPI_DOCUMENT_CHECKOUTVIEW2'
EXPORTING
documenttype = dokar
documentnumber = doknr
documentpart = doktl
documentversion = dokvr
documentfile = lw_docfiles
getstructure = '1'
getcomponents = 'X'
originalpath = lv_org_path
getheader = 'X'
IMPORTING
return = lw_return.
IF lw_return-type = 'E'.
MESSAGE s000(zmm) WITH lw_return-message.
ELSE.
* CLEAR: gt_filedet,gf_filedown.
MESSAGE s000(zmm) WITH 'Document Downloaded'(003).
ENDIF.
ENDIF.
My lw_return workarea didnt show any error, but the file didnt download in my selected path,
did i miss anything please experts help to figure it out..