Categories Uncategorized Automatically upload GOS attachments January 22, 2012 | 31 Views | Stephan Heinberg more by this author Retagging required stephan heinberg share share tweet share Follow My task was to perform a migration that uploads files to the Generic Object Service (Generic Object Services (GOS)) (BC-SRV-GBT-GOS). Alert Moderator To report this post you need to login first. 3 Replies 3 Comments You must be Logged on to comment or reply to a post. Tom Van Doorslaer January 22, 2012 at 11:17 pm 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 like (0) Stephan Heinberg Post authorJanuary 23, 2012 at 12:06 am 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 like (0) Gautham Vangaveti January 30, 2012 at 9:46 pm You can also provide F4 help for filename to make it more user friendly. 🙂 * f4 help for filenameAT 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. like (0) Leave a Reply Cancel replyYou must be logged in to post a comment. Insert/edit link Close Enter the destination URL URL Link Text Open link in a new tab Or link to existing content Search No search term specified. Showing recent items. Search or use up and down arrow keys to select an item. Cancel
Tom Van Doorslaer January 22, 2012 at 11:17 pm 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 like (0)
Stephan Heinberg Post authorJanuary 23, 2012 at 12:06 am 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 like (0)
Gautham Vangaveti January 30, 2012 at 9:46 pm You can also provide F4 help for filename to make it more user friendly. 🙂 * f4 help for filenameAT 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. like (0)
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
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
* 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.