메뉴 건너뛰기

SAP 한국 커뮤니티



LDM 파일을 다운로드 하는 Function

양키 2012.08.08 18:28 조회 수 : 8442 추천:2

LDM 첨부파일을 Local 혹은 Client Server로 다운로드할경우 대상 서버에서 아래 Function을 호출해주게되면

해당 Originalpath경로로 첨부파일이 다운로드 되어집니다.

물론 파일정보는 Documentfiles에 담겨 Return 되어집니다.

Legacy에서 SAP LDM 파일을 다운로드할떄 유용하게 사용되어지는 Function입니다.

참조하세요.

 

** Document (Originals of application type WRD) check out for viewing
CALL FUNCTION 'BAPI_DOCUMENT_CHECKOUTVIEW2'
EXPORTING
  documenttype      drad-dokar
  documentnumber    drad-doknr
  documentpart      drad-doktl
  documentversion   drad-dokvr
  documentfile      ls_documentfile
  getstructure      '1'
  getheader       'X'
  originalpath      lv_originalpath
  hostname          ' '
IMPORTING
   return            ls_return
TABLES
   documentfiles     lt_files.