mirror of
https://github.com/abapGit/abapGit.git
synced 2025-04-30 20:03:20 +08:00
naming conventions
This commit is contained in:
parent
c29a35487a
commit
7bbca76d7f
|
@ -9674,10 +9674,10 @@ CLASS lcl_object_enhs IMPLEMENTATION.
|
|||
lv_enh_shtext TYPE string,
|
||||
ls_enh_badi TYPE enh_badi_data,
|
||||
lt_enh_badi TYPE enh_badi_data_it,
|
||||
li_cx TYPE REF TO cx_root,
|
||||
lx_root TYPE REF TO cx_root,
|
||||
lv_package LIKE iv_package,
|
||||
li_spot_ref TYPE REF TO if_enh_spot_tool,
|
||||
li_badidef_tool TYPE REF TO cl_enh_tool_badi_def.
|
||||
lo_badidef_tool TYPE REF TO cl_enh_tool_badi_def.
|
||||
|
||||
|
||||
lv_spot_name = ms_item-obj_name.
|
||||
|
@ -9707,20 +9707,20 @@ CLASS lcl_object_enhs IMPLEMENTATION.
|
|||
CHANGING
|
||||
devclass = lv_package ).
|
||||
|
||||
li_badidef_tool ?= li_spot_ref.
|
||||
lo_badidef_tool ?= li_spot_ref.
|
||||
|
||||
li_badidef_tool->if_enh_object_docu~set_shorttext( lv_enh_shtext ).
|
||||
lo_badidef_tool->if_enh_object_docu~set_shorttext( lv_enh_shtext ).
|
||||
|
||||
LOOP AT lt_enh_badi INTO ls_enh_badi.
|
||||
li_badidef_tool->add_badi_def( ls_enh_badi ).
|
||||
lo_badidef_tool->add_badi_def( ls_enh_badi ).
|
||||
ENDLOOP.
|
||||
|
||||
li_badidef_tool->if_enh_object~save( ).
|
||||
li_badidef_tool->if_enh_object~activate( ).
|
||||
li_badidef_tool->if_enh_object~unlock( ).
|
||||
lo_badidef_tool->if_enh_object~save( ).
|
||||
lo_badidef_tool->if_enh_object~activate( ).
|
||||
lo_badidef_tool->if_enh_object~unlock( ).
|
||||
|
||||
CATCH cx_enh_root INTO li_cx.
|
||||
lv_message = `Error occured while deserializing EHNS: ` && li_cx->get_text( ).
|
||||
CATCH cx_enh_root INTO lx_root.
|
||||
lv_message = `Error occured while deserializing EHNS: ` && lx_root->get_text( ).
|
||||
_raise lv_message.
|
||||
ENDTRY.
|
||||
|
||||
|
@ -9732,24 +9732,23 @@ CLASS lcl_object_enhs IMPLEMENTATION.
|
|||
lv_enh_shtext TYPE string,
|
||||
lv_parent TYPE enhspotcompositename,
|
||||
lt_enh_badi TYPE enh_badi_data_it,
|
||||
li_cx TYPE REF TO cx_root,
|
||||
lx_root TYPE REF TO cx_root,
|
||||
li_spot_ref TYPE REF TO if_enh_spot_tool,
|
||||
li_badidef_tool TYPE REF TO cl_enh_tool_badi_def.
|
||||
lo_badidef_tool TYPE REF TO cl_enh_tool_badi_def.
|
||||
|
||||
lv_spot_name = ms_item-obj_name.
|
||||
|
||||
TRY.
|
||||
li_spot_ref = cl_enh_factory=>get_enhancement_spot(
|
||||
spot_name = lv_spot_name ).
|
||||
li_spot_ref = cl_enh_factory=>get_enhancement_spot( lv_spot_name ).
|
||||
|
||||
li_badidef_tool ?= li_spot_ref.
|
||||
lo_badidef_tool ?= li_spot_ref.
|
||||
|
||||
lv_enh_shtext = li_badidef_tool->if_enh_object_docu~get_shorttext( ).
|
||||
lv_enh_shtext = lo_badidef_tool->if_enh_object_docu~get_shorttext( ).
|
||||
|
||||
"get parent = composite enhs (ENHC)
|
||||
lv_parent = cl_r3standard_persistence=>enh_find_parent_composite( lv_spot_name ).
|
||||
"get subsequent BADI definitions
|
||||
lt_enh_badi = li_badidef_tool->get_badi_defs( ).
|
||||
lt_enh_badi = lo_badidef_tool->get_badi_defs( ).
|
||||
|
||||
io_xml->add( ig_data = lv_parent
|
||||
iv_name = 'PARENT_COMP' ).
|
||||
|
@ -9758,8 +9757,8 @@ CLASS lcl_object_enhs IMPLEMENTATION.
|
|||
io_xml->add( ig_data = lt_enh_badi
|
||||
iv_name = 'BADI_DATA' ).
|
||||
|
||||
CATCH cx_enh_root INTO li_cx.
|
||||
lv_message = `Error occured while serializing EHNS: ` && li_cx->get_text( ).
|
||||
CATCH cx_enh_root INTO lx_root.
|
||||
lv_message = `Error occured while serializing EHNS: ` && lx_root->get_text( ).
|
||||
_raise lv_message.
|
||||
ENDTRY.
|
||||
|
||||
|
@ -9791,9 +9790,9 @@ CLASS lcl_object_enhs IMPLEMENTATION.
|
|||
METHOD lif_object~delete.
|
||||
DATA: lv_spot_name TYPE enhspotname,
|
||||
lv_message TYPE string,
|
||||
li_cx TYPE REF TO cx_root,
|
||||
lx_root TYPE REF TO cx_root,
|
||||
li_spot_ref TYPE REF TO if_enh_spot_tool,
|
||||
li_badidef_tool TYPE REF TO cl_enh_tool_badi_def.
|
||||
lo_badidef_tool TYPE REF TO cl_enh_tool_badi_def.
|
||||
|
||||
lv_spot_name = ms_item-obj_name.
|
||||
|
||||
|
@ -9803,14 +9802,14 @@ CLASS lcl_object_enhs IMPLEMENTATION.
|
|||
lock = 'X' ).
|
||||
|
||||
IF li_spot_ref IS BOUND.
|
||||
li_badidef_tool ?= li_spot_ref.
|
||||
li_badidef_tool->if_enh_object~delete(
|
||||
lo_badidef_tool ?= li_spot_ref.
|
||||
lo_badidef_tool->if_enh_object~delete(
|
||||
nevertheless_delete = 'X'
|
||||
run_dark = 'X' ).
|
||||
ENDIF.
|
||||
li_badidef_tool->if_enh_object~unlock( ).
|
||||
CATCH cx_enh_root INTO li_cx.
|
||||
lv_message = `Error occured while deleting EHNS: ` && li_cx->get_text( ).
|
||||
lo_badidef_tool->if_enh_object~unlock( ).
|
||||
CATCH cx_enh_root INTO lx_root.
|
||||
lv_message = `Error occured while deleting EHNS: ` && lx_root->get_text( ).
|
||||
_raise lv_message.
|
||||
ENDTRY.
|
||||
|
||||
|
@ -9850,10 +9849,10 @@ CLASS lcl_object_ensc IMPLEMENTATION.
|
|||
DATA: lv_spot_name TYPE enhspotcompositename,
|
||||
lv_message TYPE string,
|
||||
lv_enh_shtext TYPE string,
|
||||
ls_enh_spot TYPE enhspotname,
|
||||
lv_enh_spot TYPE enhspotname,
|
||||
lt_enh_spots TYPE enhspotname_it,
|
||||
lt_comp_spots TYPE enhspotname_it,
|
||||
li_cx TYPE REF TO cx_root,
|
||||
lx_root TYPE REF TO cx_root,
|
||||
lv_package LIKE iv_package,
|
||||
li_spot_ref TYPE REF TO if_enh_spot_composite,
|
||||
lo_spot_ref TYPE REF TO cl_enh_spot_composite.
|
||||
|
@ -9888,20 +9887,20 @@ CLASS lcl_object_ensc IMPLEMENTATION.
|
|||
|
||||
lo_spot_ref->if_enh_object_docu~set_shorttext( lv_enh_shtext ).
|
||||
"Add subsequent enhancement spots
|
||||
LOOP AT lt_enh_spots INTO ls_enh_spot.
|
||||
lo_spot_ref->if_enh_spot_composite~add_enh_spot_child( ls_enh_spot ).
|
||||
LOOP AT lt_enh_spots INTO lv_enh_spot.
|
||||
lo_spot_ref->if_enh_spot_composite~add_enh_spot_child( lv_enh_spot ).
|
||||
ENDLOOP.
|
||||
"Add subsequent composite enhancement spots
|
||||
LOOP AT lt_comp_spots INTO ls_enh_spot.
|
||||
lo_spot_ref->if_enh_spot_composite~add_composite_child( ls_enh_spot ).
|
||||
LOOP AT lt_comp_spots INTO lv_enh_spot.
|
||||
lo_spot_ref->if_enh_spot_composite~add_composite_child( lv_enh_spot ).
|
||||
ENDLOOP.
|
||||
|
||||
lo_spot_ref->if_enh_object~save( ).
|
||||
lo_spot_ref->if_enh_object~activate( ).
|
||||
lo_spot_ref->if_enh_object~unlock( ).
|
||||
|
||||
CATCH cx_enh_root INTO li_cx.
|
||||
lv_message = `Error occured while deserializing ENSC: ` && li_cx->get_text( ).
|
||||
CATCH cx_enh_root INTO lx_root.
|
||||
lv_message = `Error occured while deserializing ENSC: ` && lx_root->get_text( ).
|
||||
_raise lv_message.
|
||||
ENDTRY.
|
||||
|
||||
|
@ -9914,10 +9913,11 @@ CLASS lcl_object_ensc IMPLEMENTATION.
|
|||
lv_parent TYPE enhspotcompositename,
|
||||
lt_enh_spots TYPE enhspotname_it,
|
||||
lt_comp_spots TYPE enhspotname_it,
|
||||
li_cx TYPE REF TO cx_root,
|
||||
lx_root TYPE REF TO cx_root,
|
||||
li_spot_ref TYPE REF TO if_enh_spot_composite,
|
||||
lo_spot_ref TYPE REF TO cl_enh_spot_composite.
|
||||
|
||||
|
||||
lv_spot_name = ms_item-obj_name.
|
||||
|
||||
TRY.
|
||||
|
@ -9942,8 +9942,8 @@ CLASS lcl_object_ensc IMPLEMENTATION.
|
|||
io_xml->add( ig_data = lt_comp_spots
|
||||
iv_name = 'COMP_ENH_SPOTS' ). "Composite enhancement spots
|
||||
|
||||
CATCH cx_enh_root INTO li_cx.
|
||||
lv_message = `Error occured while serializing ENSC: ` && li_cx->get_text( ).
|
||||
CATCH cx_enh_root INTO lx_root.
|
||||
lv_message = `Error occured while serializing ENSC: ` && lx_root->get_text( ).
|
||||
_raise lv_message.
|
||||
ENDTRY.
|
||||
|
||||
|
@ -9971,7 +9971,7 @@ CLASS lcl_object_ensc IMPLEMENTATION.
|
|||
METHOD lif_object~delete.
|
||||
DATA: lv_spot_name TYPE enhspotcompositename,
|
||||
lv_message TYPE string,
|
||||
li_cx TYPE REF TO cx_root,
|
||||
lx_root TYPE REF TO cx_root,
|
||||
li_spot_ref TYPE REF TO if_enh_spot_composite.
|
||||
|
||||
lv_spot_name = ms_item-obj_name.
|
||||
|
@ -9987,8 +9987,8 @@ CLASS lcl_object_ensc IMPLEMENTATION.
|
|||
run_dark = 'X' ).
|
||||
ENDIF.
|
||||
li_spot_ref->if_enh_object~unlock( ).
|
||||
CATCH cx_enh_root INTO li_cx.
|
||||
lv_message = `Error occured while deleting ENSC: ` && li_cx->get_text( ).
|
||||
CATCH cx_enh_root INTO lx_root.
|
||||
lv_message = `Error occured while deleting ENSC: ` && lx_root->get_text( ).
|
||||
_raise lv_message.
|
||||
ENDTRY.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user