abapOpenChecks
abapOpenChecks copied to clipboard
Check 24 - Identical code blocks in local classes
I am using the same constants from an interface in a class and in a local class defined inside, using them as aliases
ALIASES:
gc_splitter FOR /rslt/if_ish_event_constants~gc_splitter,
gc_patient FOR /rslt/if_ish_event_constants~gc_patient,
gc_admission FOR /rslt/if_ish_event_constants~gc_admission,
gc_surgery FOR /rslt/if_ish_event_constants~gc_surgery,
gc_outpatient FOR /rslt/if_ish_event_constants~gc_outpatient,
gc_case_classification FOR /rslt/if_ish_event_constants~gc_case_classification,
gc_absence FOR /rslt/if_ish_event_constants~gc_absence,
gc_discharge FOR /rslt/if_ish_event_constants~gc_discharge,
gc_transfer FOR /rslt/if_ish_event_constants~gc_transfer,
gc_case_insurance FOR /rslt/if_ish_event_constants~gc_case_insurance,
gc_case_type FOR /rslt/if_ish_event_constants~gc_case_type,
gc_diagnosis FOR /rslt/if_ish_event_constants~gc_diagnosis,
gc_risk_factors FOR /rslt/if_ish_event_constants~gc_risk_factors,
gc_event_types FOR /rslt/if_ish_event_constants~gc_event_types,
gc_action FOR /rslt/if_ish_event_constants~gc_action,
gc_status FOR /rslt/if_ish_event_constants~gc_status.
Problem is that this check detects the same block in both places and reports an error