Archive Mini Doc Viewer

Nützliche Abap Codes und Code Fragmente

Archive Mini Doc Viewer

Postby Tron » Wed May 25, 2022 12:43 pm

e.g. Mini Viewer
Code: [Select all] [Expand/Collapse] [Download] (Untitled.txt)
  1. *&---------------------------------------------------------------------*
  2. *& Report  ZAR_SHOW_ARC_DOC
  3. *&
  4. *&---------------------------------------------------------------------*
  5. *&
  6. *&
  7. *&---------------------------------------------------------------------*
  8. REPORT ZAR_SHOW_ARC_DOC.
  9.  
  10. data l_url type char2048.
  11. data l_Docid type toa01-ARC_DOC_ID VALUE '0050569B043C1EDAA2A8603FA82CCA0C'.
  12. data l_Arcid type toa01-ARCHIV_ID VALUE 'DW'.
  13.  
  14. call function 'SCMS_URL_GENERATE'
  15.      exporting
  16. "          command      = 'docGet'
  17.           command      = 'get'
  18.           contrep      = l_Arcid
  19.           docid        = l_Docid
  20.           accessmode   = 'r'
  21.           SIGNATURE = 'X'
  22.      importing
  23.           absolute_uri = l_url.
  24.  
  25.  
  26. *
  27. CALL FUNCTION 'CALL_BROWSER'
  28.   EXPORTING
  29.    URL                          = l_url
  30.    WINDOW_NAME                  = 'test'
  31. *   NEW_WINDOW                   = ' '
  32.     BROWSER_TYPE                 = 'EASY.AUTOMATION'
  33. *   CONTEXTSTRING                =
  34.  EXCEPTIONS
  35.    FRONTEND_NOT_SUPPORTED       = 1
  36.    FRONTEND_ERROR               = 2
  37.    PROG_NOT_FOUND               = 3
  38.    NO_BATCH                     = 4
  39.    UNSPECIFIED_ERROR            = 5
  40.    OTHERS                       = 6.
  41.           .
  42. IF sy-subrc <> 0.
  43. * Implement suitable error handling here
GeSHi ©


gruß Jens

A DB View to find Attachments of Documents
viewtopic.php?f=31&t=20639
Tron
.....
.....
 
Posts: 1112
Joined: Sat Aug 04, 2007 10:21 pm

Return to Code Snippets

Who is online

Users browsing this forum: No registered users and 7 guests