Skip to Content

3 Comments

You must be Logged on to comment or reply to a post.

  1. Tom Van Doorslaer
    Hi,

    You can also check out function group CVBAPI. There are some nice BAPI’s in there which you can use to create/change documents in the SAP Document Management System.
    Only on ERP tough. In CRM there’s a BOL object for that purpose (CMDocument)

    cheers,

    Tom

    (0) 
    1. Former Member Post author
      Dear Tom,
      Just to clarify:
      CA-DMS has nothing to do with BC-SRV-BDS and GOS, expect that DMS BOR “Document” uses also GOS and BDS and DMS use KPRO.

      I know the DMS BAPIs quite well, since I use them for ten years now.
      Best regards,
      Stephan

      (0) 
  2. Gautham Vangaveti
    You can also provide F4 help for filename to make it more user friendly. 🙂

    * f4 help for filename
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.

    DATA: gt_lit_file_table TYPE filetable,
    gt_lwa_file_table TYPE file_table,
    g_lfd_rc TYPE i,
    g_lfd_action TYPE i.

    CALL METHOD cl_gui_frontend_services=>file_open_dialog
    CHANGING
    file_table = gt_lit_file_table
    rc = g_lfd_rc
    user_action = g_lfd_action
    EXCEPTIONS
    file_open_dialog_failed = 1
    cntl_error = 2
    error_no_gui = 3
    not_supported_by_gui = 4
    OTHERS = 5.

    IF sy-subrc = 0 AND cl_gui_frontend_services=>action_cancel <> g_lfd_action.

    READ TABLE gt_lit_file_table INTO gt_lwa_file_table INDEX 1.
    IF sy-subrc EQ 0.
    p_file = gt_lwa_file_table-filename.
    ENDIF.

    ENDIF.

    (0) 

Leave a Reply