Escolar Documentos
Profissional Documentos
Cultura Documentos
Dismiss
Join GitHub today
GitHub is home to over 40 million developers
working together to host and review code,
manage projects, and build software together.
Sign up
1 contributor
1 *----------------------------------------------------------------------
2 * UI5 FILE UPLOAD PLANNING FUNCTION
3 * Author: Waleed Iqbal Date: 30/11/2017
4 * www.consetto.com
5 *----------------------------------------------------------------------
6 class ZCL_ZFILEUPLOAD_DPC_EXT definition
7 public
8 inheriting from ZCL_ZFILEUPLOAD_DPC
9 create public .
10
11 public section.
12
13 methods /IWBEP/IF_MGW_APPL_SRV_RUNTIME~CREATE_STREAM
14 redefinition .
15 protected section.
16
17 methods UPLOAD_MAPSET_GET_ENTITYSET
18 redefinition .
19 private section.
20 ENDCLASS.
21
22
23
https://github.com/consetto/ui5-file-upload-planning/blob/master/gateway_classes/zcl_zfileupload_dpc_ext.aclass 1/4
11/4/2019 ui5-file-upload-planning/zcl_zfileupload_dpc_ext.aclass at master · consetto/ui5-file-upload-planning · GitHub
https://github.com/consetto/ui5-file-upload-planning/blob/master/gateway_classes/zcl_zfileupload_dpc_ext.aclass 2/4
11/4/2019 ui5-file-upload-planning/zcl_zfileupload_dpc_ext.aclass at master · consetto/ui5-file-upload-planning · GitHub
72 lo_convert = cl_abap_conv_in_ce=>create( ).
73
74 * convert the xstring value to base64 string
75 lo_convert->convert( EXPORTING input = lv_xstring
76 IMPORTING data = base64_string ).
77
78 * convert the base64 string to xstring
79 CALL FUNCTION 'SSFC_BASE64_DECODE'
80 EXPORTING
81 b64data = base64_string
82 IMPORTING
83 bindata = base64_xstring
84 EXCEPTIONS
85 OTHERS = 2.
86
87 * store the xstring value in memory for global access
88 export base64_xstring from base64_xstring to memory id 'z_upload_data'.
89
90 * Execute planning sequence
91 CALL FUNCTION 'RSPLSSE_PLSEQ_EXECUTE'
92 EXPORTING
93 i_seqnm = lv_sequence
94 i_fast_enqueue = rs_c_true
95 TABLES
96 e_tk_return = lt_bapiret.
97
98 * Format messages for returning to UI5
99 LOOP AT lt_bapiret INTO ls_bapiret.
100 CALL FUNCTION 'FORMAT_MESSAGE'
101 EXPORTING
102 id = ls_bapiret-id
103 lang = sy-langu
104 no = ls_bapiret-number
105 v1 = ls_bapiret-message_v1
106 v2 = ls_bapiret-message_v2
107 v3 = ls_bapiret-message_v3
108 v4 = ls_bapiret-message_v4
109 IMPORTING
110 msg = i_msg_str
111 EXCEPTIONS
112 not_found = 1
113 OTHERS = 2.
114 CONCATENATE i_msg_str '\n' INTO l_sub_str.
115 CONCATENATE l_msg_str l_sub_str INTO l_msg_str.
116 ENDLOOP.
117
118 * Initialize BI-IP application
119 lr_application = cl_rspls_plan_application=>get( ).
https://github.com/consetto/ui5-file-upload-planning/blob/master/gateway_classes/zcl_zfileupload_dpc_ext.aclass 3/4
11/4/2019 ui5-file-upload-planning/zcl_zfileupload_dpc_ext.aclass at master · consetto/ui5-file-upload-planning · GitHub
https://github.com/consetto/ui5-file-upload-planning/blob/master/gateway_classes/zcl_zfileupload_dpc_ext.aclass 4/4