fix-db-cleanup-w-launchpad (#1473)

This commit is contained in:
oblomov-dev 2024-10-03 12:07:20 +02:00 committed by GitHub
parent 03d1f83723
commit ae831d52a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 35 additions and 6 deletions

View File

@ -1451,12 +1451,44 @@ CLASS z2ui5_cl_util IMPLEMENTATION.
EXPORTING EXPORTING
val = 'TABLE_NAME_INITIAL_ERROR'. val = 'TABLE_NAME_INITIAL_ERROR'.
ENDIF. ENDIF.
TRY. TRY.
DATA(lo_struct) = CAST cl_abap_structdescr( cl_abap_structdescr=>describe_by_name( table_name ) ). cl_abap_structdescr=>describe_by_name(
EXPORTING
p_name = table_name
RECEIVING
p_descr_ref = DATA(lo_obj)
EXCEPTIONS
type_not_found = 1
OTHERS = 2
).
IF sy-subrc <> 0.
RAISE EXCEPTION TYPE z2ui5_cx_util_error
EXPORTING
val = 'TABLE_NOT_FOUD_NAME___' && table_name.
ENDIF.
DATA(lo_struct) = CAST cl_abap_structdescr( lo_obj ).
CATCH cx_root. CATCH cx_root.
TRY. TRY.
DATA(lo_tab) = CAST cl_abap_tabledescr( cl_abap_structdescr=>describe_by_name( table_name ) ). cl_abap_structdescr=>describe_by_name(
EXPORTING
p_name = table_name
RECEIVING
p_descr_ref = lo_obj
EXCEPTIONS
type_not_found = 1
OTHERS = 2
).
IF sy-subrc <> 0.
RAISE EXCEPTION TYPE z2ui5_cx_util_error
EXPORTING
val = 'TABLE_NOT_FOUD_NAME___' && table_name.
ENDIF.
DATA(lo_tab) = CAST cl_abap_tabledescr( lo_obj ).
lo_struct = CAST cl_abap_structdescr( lo_tab->get_table_line_type( ) ). lo_struct = CAST cl_abap_structdescr( lo_tab->get_table_line_type( ) ).
CATCH cx_root. CATCH cx_root.
RETURN. RETURN.

View File

@ -72,6 +72,7 @@ CLASS z2ui5_cl_core_http_post IMPLEMENTATION.
mo_action = mo_action->factory_by_frontend( ). mo_action = mo_action->factory_by_frontend( ).
ELSEIF ms_request-s_control-app_start IS NOT INITIAL. ELSEIF ms_request-s_control-app_start IS NOT INITIAL.
NEW z2ui5_cl_core_draft_srv( )->cleanup( ).
mo_action = mo_action->factory_first_start( ). mo_action = mo_action->factory_first_start( ).
ELSE. ELSE.
@ -80,7 +81,6 @@ CLASS z2ui5_cl_core_http_post IMPLEMENTATION.
CATCH cx_root INTO DATA(x). CATCH cx_root INTO DATA(x).
ASSERT x->get_text( ) = 1. ASSERT x->get_text( ) = 1.
* mo_action = mo_action->factory_system_error( x ).
ENDTRY. ENDTRY.
ENDMETHOD. ENDMETHOD.
@ -159,7 +159,6 @@ CLASS z2ui5_cl_core_http_post IMPLEMENTATION.
CATCH cx_root INTO DATA(x). CATCH cx_root INTO DATA(x).
ASSERT x->get_text( ) = 1. ASSERT x->get_text( ) = 1.
* mo_action = mo_action->factory_system_error( x ).
ENDTRY. ENDTRY.
ENDMETHOD. ENDMETHOD.
ENDCLASS. ENDCLASS.

View File

@ -145,8 +145,6 @@ CLASS z2ui5_cl_http_handler IMPLEMENTATION.
set_config( is_custom_config ). set_config( is_custom_config ).
ms_res-body = get_index_html( ). ms_res-body = get_index_html( ).
NEW z2ui5_cl_core_draft_srv( )->cleanup( ).
ENDMETHOD. ENDMETHOD.