Skip to content

Commit e54fe1c

Browse files
committed
ATC fix cloud
1 parent 5080bfd commit e54fe1c

File tree

2 files changed

+50
-25
lines changed

2 files changed

+50
-25
lines changed

src/z2ui5_cl_tm_001.clas.abap

Lines changed: 33 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ CLASS z2ui5_cl_tm_001 DEFINITION
6363
METHODS get_txt
6464
IMPORTING
6565
roll TYPE string
66-
!type TYPE char1 OPTIONAL
66+
!type TYPE clike OPTIONAL
6767
RETURNING
6868
VALUE(result) TYPE string.
6969

@@ -234,8 +234,12 @@ CLASS z2ui5_cl_tm_001 IMPLEMENTATION.
234234
is_transport = ms_transport ).
235235

236236
CATCH cx_root.
237-
MESSAGE e316(42) into DATA(msg). " Transport request error
238-
client->message_toast_display( msg ).
237+
238+
DATA(ls_msg) = z2ui5_cl_util=>msg_get_by_msg(
239+
id = '42'
240+
no = `316` ).
241+
"MESSAGE e316(42) into DATA(msg). " Transport request error
242+
client->message_toast_display( ls_msg-text ).
239243
RETURN.
240244
ENDTRY.
241245

@@ -258,8 +262,11 @@ CLASS z2ui5_cl_tm_001 IMPLEMENTATION.
258262
MODIFY (mv_table) FROM TABLE @<tab_org>.
259263
IF sy-subrc = 0.
260264
COMMIT WORK AND WAIT.
261-
MESSAGE s002(I18N) into msg.
262-
client->message_toast_display( msg ).
265+
ls_msg = z2ui5_cl_util=>msg_get_by_msg(
266+
id = 'i18n'
267+
no = `002` ).
268+
" MESSAGE s002(i18n) INTO msg.
269+
client->message_toast_display( ls_msg-text ).
263270

264271
CLEAR mv_change_active.
265272
ENDIF.
@@ -270,8 +277,12 @@ CLASS z2ui5_cl_tm_001 IMPLEMENTATION.
270277
INSERT (mv_table) FROM TABLE @<tab_org>.
271278
IF sy-subrc = 0.
272279
COMMIT WORK AND WAIT.
273-
MESSAGE s002(I18N) into msg.
274-
client->message_toast_display( msg ).
280+
ls_msg = z2ui5_cl_util=>msg_get_by_msg(
281+
id = 'i18n'
282+
no = '002' ).
283+
284+
" MESSAGE s002(i18n) INTO msg.
285+
client->message_toast_display( ls_msg-text ).
275286

276287
CLEAR mv_change_active.
277288
ENDIF.
@@ -365,18 +376,25 @@ CLASS z2ui5_cl_tm_001 IMPLEMENTATION.
365376
is_transport = ms_transport ).
366377

367378
CATCH cx_root.
368-
MESSAGE e316(42) into DATA(msg). " Transport request error
369-
client->message_toast_display( msg ).
379+
DATA(ls_msg) = z2ui5_cl_util=>msg_get_by_msg(
380+
id = '42'
381+
no = `316` ).
382+
383+
"MESSAGE e316(42) INTO DATA(msg). " Transport request error
384+
client->message_toast_display( ls_msg-text ).
370385
RETURN.
371386
ENDTRY.
372-
message s215(RMPS_GENERAL) with ms_transport-transport into msg. "Transporteintrag erfolgreich geschrieben (&1)
373-
client->message_toast_display( msg ).
387+
ls_msg = z2ui5_cl_util=>msg_get_by_msg(
388+
id = 'rmps_general'
389+
no = `215` ).
390+
" MESSAGE s215(rmps_general) WITH ms_transport-transport INTO msg. "Transporteintrag erfolgreich geschrieben (&1)
391+
client->message_toast_display( ls_msg-text ).
374392

375393
ENDIF.
376394
ENDMETHOD.
377395

378396
METHOD get_comp.
379-
DATA id TYPE char32.
397+
DATA id TYPE c LENGTH 32.
380398
DATA selkz TYPE abap_bool.
381399

382400
TRY.
@@ -895,9 +913,9 @@ CLASS z2ui5_cl_tm_001 IMPLEMENTATION.
895913
ENDIF.
896914
mo_layout = z2ui5_cl_layo_manager=>factory( control = control
897915
data = mt_table
898-
handle01 = CONV #( class )
899-
handle02 = CONV #( mv_table )
900-
handle03 = CONV #( 'SIMPLE_VIEW' )
916+
handle01 = class
917+
handle02 = mv_table
918+
handle03 = 'SIMPLE_VIEW'
901919
handle04 = `` ).
902920

903921
ENDMETHOD.

src/z2ui5_cl_tm_pop.clas.abap

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ CLASS z2ui5_cl_tm_pop DEFINITION
4444

4545
METHODS get_txt
4646
IMPORTING
47-
roll TYPE string
48-
!type TYPE char1 OPTIONAL
47+
roll TYPE clike
48+
!type TYPE clike OPTIONAL
4949
RETURNING
5050
VALUE(result) TYPE string.
5151

@@ -262,33 +262,40 @@ CLASS z2ui5_cl_tm_pop IMPLEMENTATION.
262262
DATA(toolbar) = simple_form->get_root( )->get_child(
263263
)->buttons( ).
264264

265-
MESSAGE s512(prc_pri) INTO DATA(msg).
266265

267-
toolbar->button( text = msg
266+
DATA(ls_msg) = z2ui5_cl_util=>msg_get_by_msg(
267+
id = 'PRC_PRI'
268+
no = `512` ).
269+
"MESSAGE s512(prc_pri) INTO DATA(msg).
270+
271+
toolbar->button( text = ls_msg-text
268272
press = client->_event( 'POPUP_CLOSE' ) ).
269273

270274
IF mv_edit = abap_true.
271275

272-
MESSAGE s160(islm_di_gen) INTO msg.
276+
ls_msg = z2ui5_cl_util=>msg_get_by_msg( id = 'ISLM_DI_GEN' no = `160` ).
277+
" MESSAGE s160(islm_di_gen) INTO msg.
273278

274-
toolbar->button( text = msg
279+
toolbar->button( text = ls_msg-text
275280
type = 'Reject'
276281
icon = 'sap-icon://delete'
277282
press = client->_event( val = 'POPUP_DELETE' ) ).
278283

279-
MESSAGE s229(cnv_iuuc_replication) INTO msg.
284+
ls_msg = z2ui5_cl_util=>msg_get_by_msg( id = 'cnv_iuuc_replication' no = `229` ).
285+
"MESSAGE s229(cnv_iuuc_replication) INTO msg.
280286

281287
IF mv_copy = abap_true.
282-
toolbar->button( text = msg
288+
toolbar->button( text = ls_msg-text
283289
type = 'Inform'
284290
icon = 'sap-icon://copy'
285291
press = client->_event( val = 'POPUP_COPY' ) ).
286292
ENDIF.
287293
ENDIF.
288294

289-
MESSAGE s020(fsl_utilities) INTO msg.
295+
ls_msg = z2ui5_cl_util=>msg_get_by_msg( id = 'fsl_utilities' no = `020` ).
296+
" MESSAGE s020(fsl_utilities) INTO msg.
290297

291-
toolbar->button( text = msg
298+
toolbar->button( text = ls_msg-text
292299
press = client->_event( COND #( WHEN mv_edit = abap_true THEN `POPUP_EDIT` ELSE `POPUP_ADD` ) )
293300
type = 'Emphasized' ).
294301

0 commit comments

Comments
 (0)