diff --git a/src/z_generate_json_schema.prog.xml b/src/z_generate_json_schema.prog.xml index 2675fc4d..491f9eac 100644 --- a/src/z_generate_json_schema.prog.xml +++ b/src/z_generate_json_schema.prog.xml @@ -48,30 +48,6 @@ 38 - - - D - - - I - 000 - Einstellungen - 17 - - - I - 001 - Verwaiste Daten löschen: - 42 - - - R - Testlauf - 70 - - - - diff --git a/src/z_generate_repo.prog.abap b/src/z_generate_repo.prog.abap index fe95340d..6fec592a 100644 --- a/src/z_generate_repo.prog.abap +++ b/src/z_generate_repo.prog.abap @@ -553,23 +553,17 @@ CLASS lcl_generator IMPLEMENTATION. METHOD replace_names_in_string. DATA(string_content) = content_as_string. LOOP AT replacing_table_string ASSIGNING FIELD-SYMBOL(). - FIND ALL OCCURRENCES OF -to_be_replaced IN string_content IGNORING CASE RESULTS DATA(table). + FIND ALL OCCURRENCES OF -to_be_replaced IN string_content IGNORING CASE RESULTS DATA(findings). * replace all occurrences of -to_be_replaced in string_content with -replace_with ignoring case. - DATA(counter_replaced) = 0. - LOOP AT table ASSIGNING FIELD-SYMBOL(). + LOOP AT findings ASSIGNING FIELD-SYMBOL() step -1. IF -offset > 0. - DATA(offset) = -offset + counter_replaced. - DATA(before_offset) = offset - 1. + DATA(before_offset) = -offset - 1. DATA(char_before_offset) = to_lower( string_content+before_offset(1) ). ELSE. char_before_offset = ' '. - offset = 0. ENDIF. IF NOT to_lower( char_before_offset ) EQ 'z'. -* string_content = insert( val = string_content sub = 'z' off = offset ). -* make the object names to lower - REPLACE SECTION OFFSET offset LENGTH -length OF string_content WITH -replace_with. - counter_replaced += 1. + REPLACE SECTION OFFSET -offset LENGTH -length OF string_content WITH -replace_with. ENDIF. ENDLOOP. ENDLOOP. diff --git a/src/z_generate_repo.prog.xml b/src/z_generate_repo.prog.xml index 523641b4..5f776ab3 100644 --- a/src/z_generate_repo.prog.xml +++ b/src/z_generate_repo.prog.xml @@ -90,30 +90,6 @@ 15 - - - D - - - I - 000 - Einstellungen - 17 - - - I - 001 - Verwaiste Daten löschen: - 42 - - - R - Testlauf - 70 - - - -