mirror of
https://github.com/abap2UI5/abap2UI5.git
synced 2025-04-29 02:58:20 +08:00
fix-db-cleanup-w-launchpad (#1473)
This commit is contained in:
parent
03d1f83723
commit
ae831d52a9
|
@ -1451,12 +1451,44 @@ CLASS z2ui5_cl_util IMPLEMENTATION.
|
|||
EXPORTING
|
||||
val = 'TABLE_NAME_INITIAL_ERROR'.
|
||||
ENDIF.
|
||||
|
||||
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.
|
||||
|
||||
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( ) ).
|
||||
CATCH cx_root.
|
||||
RETURN.
|
||||
|
|
|
@ -72,6 +72,7 @@ CLASS z2ui5_cl_core_http_post IMPLEMENTATION.
|
|||
mo_action = mo_action->factory_by_frontend( ).
|
||||
|
||||
ELSEIF ms_request-s_control-app_start IS NOT INITIAL.
|
||||
NEW z2ui5_cl_core_draft_srv( )->cleanup( ).
|
||||
mo_action = mo_action->factory_first_start( ).
|
||||
|
||||
ELSE.
|
||||
|
@ -80,7 +81,6 @@ CLASS z2ui5_cl_core_http_post IMPLEMENTATION.
|
|||
|
||||
CATCH cx_root INTO DATA(x).
|
||||
ASSERT x->get_text( ) = 1.
|
||||
* mo_action = mo_action->factory_system_error( x ).
|
||||
ENDTRY.
|
||||
ENDMETHOD.
|
||||
|
||||
|
@ -159,7 +159,6 @@ CLASS z2ui5_cl_core_http_post IMPLEMENTATION.
|
|||
|
||||
CATCH cx_root INTO DATA(x).
|
||||
ASSERT x->get_text( ) = 1.
|
||||
* mo_action = mo_action->factory_system_error( x ).
|
||||
ENDTRY.
|
||||
ENDMETHOD.
|
||||
ENDCLASS.
|
||||
|
|
|
@ -145,8 +145,6 @@ CLASS z2ui5_cl_http_handler IMPLEMENTATION.
|
|||
set_config( is_custom_config ).
|
||||
ms_res-body = get_index_html( ).
|
||||
|
||||
NEW z2ui5_cl_core_draft_srv( )->cleanup( ).
|
||||
|
||||
ENDMETHOD.
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user