content
stringlengths 4
1.04M
| input_ids
sequencelengths 2
1.02k
| attention_mask
sequencelengths 2
1.02k
|
---|---|---|
report zwordle.
*
* Author: Hugo de Groot
*
* Version: 3.0
*
* To understand program flow, follow method LCL->MAIN().
* This method is invoked at the START-OF-SELECTION event.
*
*------------------------------------------------------------------------------
class lcl_wordle definition.
public section.
class-data:
god_mode type abap_bool,
letter1 type char26,
letter2 type char26,
letter3 type char26,
letter4 type char26,
letter5 type char26,
black_letters type char26,
orange_letters type char26.
class-methods:
remove_black_letters.
methods:
main.
private section.
types:
ty_word_score type p length 6 decimals 1,
begin of ty_matched_word,
word type char5,
vowel_count type i,
consonant_count type i,
contains_all_orange_letters type abap_bool,
word_score type ty_word_score,
end of ty_matched_word,
ty_matched_word_tab type standard table of ty_matched_word with default key,
ty_relative_frequency type p length 6 decimals 4,
begin of ty_letter_frequency,
first_letter type ty_relative_frequency,
other_letters type ty_relative_frequency,
end of ty_letter_frequency,
ty_letter_frequency_tab type standard table of ty_letter_frequency with default key,
begin of ty_god,
date type dats,
word type char5,
end of ty_god,
ty_god_tab type sorted table of ty_god with unique key date.
data:
word_tab type string_table,
letter_frequency_tab type ty_letter_frequency_tab,
god_tab type ty_god_tab,
regex_string type string,
matched_word_tab type ty_matched_word_tab.
methods:
build_word_tab, "List of 5-letter words. Source: https://www-cs-faculty.stanford.edu/~knuth/sgb-words.txt
build_word_tab_v2, "List of 5-letter words. Source: Collins Scrabble Words Dec 2021
build_letter_frequency_tab, "Letter Frequency for English Dictionary Words
build_god_tab,
build_regex_string,
get_matched_words,
display_output_alv,
get_vowel_count importing i_word type char5 returning value(r_count) type i,
contains_all_orange_letters importing i_word type char5 returning value(r_contains_all_orange_letters) type abap_bool,
get_word_score importing i_word type char5 returning value(r_word_score) type ty_word_score,
get_letter_frequency importing i_letter type char1 i_first type abap_bool returning value(r_frequency) type ty_relative_frequency.
endclass.
*------------------------------------------------------------------------------
selection-screen skip.
parameters:
pgmode as checkbox.
selection-screen skip.
selection-screen begin of line.
selection-screen comment 1(80) text-001.
selection-screen end of line.
selection-screen begin of line.
selection-screen comment 1(80) text-002.
selection-screen end of line.
selection-screen begin of line.
selection-screen comment 4(75) text-003.
selection-screen end of line.
selection-screen begin of line.
selection-screen comment 6(74) text-004.
selection-screen end of line.
selection-screen begin of line.
selection-screen comment 4(75) text-005.
selection-screen end of line.
selection-screen begin of line.
selection-screen comment 1(80) text-006.
selection-screen end of line.
selection-screen skip.
parameters:
pblack type char26.
selection-screen skip.
parameters:
pletter1 type char26,
pletter2 type char26,
pletter3 type char26,
pletter4 type char26,
pletter5 type char26.
selection-screen skip.
parameters:
porange type char26.
*------------------------------------------------------------------------------
initialization.
pletter1 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.
pletter2 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.
pletter3 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.
pletter4 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.
pletter5 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.
*------------------------------------------------------------------------------
at selection-screen output.
"When user presses ENTER, remove the BLACK LETTERS from LETTER POSITION 1...5.
lcl_wordle=>remove_black_letters( ).
*------------------------------------------------------------------------------
start-of-selection.
data wordle_assistant type ref to lcl_wordle.
lcl_wordle=>god_mode = pgmode.
lcl_wordle=>letter1 = pletter1.
lcl_wordle=>letter2 = pletter2.
lcl_wordle=>letter3 = pletter3.
lcl_wordle=>letter4 = pletter4.
lcl_wordle=>letter5 = pletter5.
lcl_wordle=>black_letters = pblack.
lcl_wordle=>orange_letters = porange.
create object wordle_assistant.
wordle_assistant->main( ).
*------------------------------------------------------------------------------
class lcl_wordle implementation.
method main.
"build_word_tab( ).
build_word_tab_v2( ).
build_letter_frequency_tab( ).
build_god_tab( ).
build_regex_string( ).
get_matched_words( ).
display_output_alv( ).
endmethod.
method remove_black_letters.
data black_letters_regex type string.
if pblack is not initial.
if strlen( pblack ) = 1.
black_letters_regex = pblack+0(1).
else.
black_letters_regex = |[{ pblack }]|.
endif.
replace all occurrences of regex black_letters_regex in pletter1 with ''.
replace all occurrences of regex black_letters_regex in pletter2 with ''.
replace all occurrences of regex black_letters_regex in pletter3 with ''.
replace all occurrences of regex black_letters_regex in pletter4 with ''.
replace all occurrences of regex black_letters_regex in pletter5 with ''.
endif.
endmethod.
method build_regex_string.
data:
vletter1 type string,
vletter2 type string,
vletter3 type string,
vletter4 type string,
vletter5 type string.
if letter1 is initial.
vletter1 = '.'.
elseif strlen( letter1 ) = 1.
vletter1 = letter1.
else.
vletter1 = |[{ letter1 }]|.
endif.
if letter2 is initial.
vletter2 = '.'.
elseif strlen( letter2 ) = 1.
vletter2 = letter2.
else.
vletter2 = |[{ letter2 }]|.
endif.
if letter3 is initial.
vletter3 = '.'.
elseif strlen( letter3 ) = 1.
vletter3 = letter3.
else.
vletter3 = |[{ letter3 }]|.
endif.
if letter4 is initial.
vletter4 = '.'.
elseif strlen( letter4 ) = 1.
vletter4 = letter4.
else.
vletter4 = |[{ letter4 }]|.
endif.
if letter5 is initial.
vletter5 = '.'.
elseif strlen( letter5 ) = 1.
vletter5 = letter5.
else.
vletter5 = |[{ letter5 }]|.
endif.
regex_string = |^{ vletter1 }{ vletter2 }{ vletter3 }{ vletter4 }{ vletter5 }$|.
endmethod.
method get_matched_words.
data:
match_result_tab type match_result_tab,
match_result_wa like line of match_result_tab,
matched_word type ty_matched_word,
god_wa type ty_god.
if god_mode = abap_true.
read table god_tab into god_wa with key date = sy-datum binary search.
assert sy-subrc = 0.
matched_word-word = god_wa-word.
matched_word-vowel_count = get_vowel_count( god_wa-word ).
matched_word-consonant_count = 5 - matched_word-vowel_count.
matched_word-contains_all_orange_letters = contains_all_orange_letters( god_wa-word ).
matched_word-word_score = get_word_score( god_wa-word ).
append matched_word to matched_word_tab.
else.
find all occurrences of regex regex_string in table word_tab
results match_result_tab.
loop at match_result_tab into match_result_wa.
read table word_tab index match_result_wa-line into matched_word-word.
assert sy-subrc = 0.
matched_word-vowel_count = get_vowel_count( matched_word-word ).
matched_word-consonant_count = 5 - matched_word-vowel_count.
matched_word-contains_all_orange_letters = contains_all_orange_letters( matched_word-word ).
matched_word-word_score = get_word_score( matched_word-word ).
append matched_word to matched_word_tab.
endloop.
endif.
endmethod.
method display_output_alv.
data:
alv_grid type ref to cl_salv_table,
functions type ref to cl_salv_functions_list,
columns type ref to cl_salv_columns,
column type ref to cl_salv_column_table,
alv_header_grid type ref to cl_salv_form_layout_grid.
sort matched_word_tab by contains_all_orange_letters descending
word_score descending.
cl_salv_table=>factory(
importing
r_salv_table = alv_grid
changing
t_table = matched_word_tab ).
"Set ALV function buttons -------------------------------------------------
functions = alv_grid->get_functions( ).
functions->set_group_sort( 'X' ). "Sort Ascending / Sort Descending
functions->set_group_filter( 'X' ). "Filter
functions->set_export_spreadsheet( 'X' ). "Allow export (List->Export->Spreadsheet...)
"Set Column Labels etc. ---------------------------------------------------
columns = alv_grid->get_columns( ).
column ?= columns->get_column( 'WORD' ).
column->set_key( 'X' ).
column->set_long_text( 'Matching Words' ). "40
column->set_output_length( 16 ).
columns = alv_grid->get_columns( ).
column ?= columns->get_column( 'VOWEL_COUNT' ).
column->set_long_text( 'Vowel Count' ). "40
column->set_alignment( if_salv_c_alignment=>centered ).
column->set_output_length( 15 ).
columns = alv_grid->get_columns( ).
column ?= columns->get_column( 'CONSONANT_COUNT' ).
column->set_long_text( 'Consonant Count' ). "40
column->set_alignment( if_salv_c_alignment=>centered ).
column->set_output_length( 15 ).
columns = alv_grid->get_columns( ).
column ?= columns->get_column( 'CONTAINS_ALL_ORANGE_LETTERS' ).
column->set_long_text( 'Contains all Orange Letters' ). "40
column->set_alignment( if_salv_c_alignment=>centered ).
column->set_output_length( 25 ).
columns = alv_grid->get_columns( ).
column ?= columns->get_column( 'WORD_SCORE' ).
column->set_long_text( 'Word Score' ). "40
column->set_alignment( if_salv_c_alignment=>centered ).
"Define ALV Header --------------------------------------------------------
create object alv_header_grid.
alv_header_grid->create_label( row = 1 column = 1 text = 'Black Letters:' ).
alv_header_grid->create_text( row = 1 column = 2 text = black_letters ).
alv_header_grid->create_label( row = 2 column = 1 text = 'Orange Letters:' ).
alv_header_grid->create_text( row = 2 column = 2 text = orange_letters ).
alv_header_grid->create_label( row = 3 column = 1 text = 'Letter 1:' ).
alv_header_grid->create_label( row = 4 column = 1 text = 'Letter 2:' ).
alv_header_grid->create_label( row = 5 column = 1 text = 'Letter 3:' ).
alv_header_grid->create_label( row = 6 column = 1 text = 'Letter 4:' ).
alv_header_grid->create_label( row = 7 column = 1 text = 'Letter 5:' ).
alv_header_grid->create_text( row = 3 column = 2 text = letter1 ).
alv_header_grid->create_text( row = 4 column = 2 text = letter2 ).
alv_header_grid->create_text( row = 5 column = 2 text = letter3 ).
alv_header_grid->create_text( row = 6 column = 2 text = letter4 ).
alv_header_grid->create_text( row = 7 column = 2 text = letter5 ).
alv_header_grid->create_label( row = 8 column = 1 text = 'Regex:' ).
alv_header_grid->create_text( row = 8 column = 2 text = regex_string ).
alv_grid->set_top_of_list( alv_header_grid ).
"Finally, display the grid! -----------------------------------------------
alv_grid->display( ).
endmethod.
method get_vowel_count.
data:
vowels_regex type string value '[AEIOUY]'.
find all occurrences of regex vowels_regex in i_word
match count r_count.
endmethod.
method contains_all_orange_letters.
data:
word type char6,
orange1 type c,
orange2 type c,
orange3 type c,
orange4 type c,
orange5 type c,
contains_orange1 type abap_bool,
contains_orange2 type abap_bool,
contains_orange3 type abap_bool,
contains_orange4 type abap_bool,
contains_orange5 type abap_bool.
r_contains_all_orange_letters = abap_false.
if orange_letters is initial.
r_contains_all_orange_letters = abap_true.
else.
word = i_word.
orange1 = orange_letters+0(1).
orange2 = orange_letters+1(1).
orange3 = orange_letters+2(1).
orange4 = orange_letters+3(1).
orange5 = orange_letters+4(1).
if word ca orange1.
contains_orange1 = abap_true.
endif.
if word ca orange2.
contains_orange2 = abap_true.
endif.
if word ca orange3.
contains_orange3 = abap_true.
endif.
if word ca orange4.
contains_orange4 = abap_true.
endif.
if word ca orange5.
contains_orange5 = abap_true.
endif.
if contains_orange1 = abap_true and
contains_orange2 = abap_true and
contains_orange3 = abap_true and
contains_orange4 = abap_true and
contains_orange5 = abap_true .
r_contains_all_orange_letters = abap_true.
else.
r_contains_all_orange_letters = abap_false.
endif.
endif.
endmethod.
method get_word_score.
if strlen( letter1 ) > 1.
r_word_score = r_word_score + get_letter_frequency( i_letter = i_word+0(1) i_first = abap_true ).
endif.
if strlen( letter2 ) > 1.
r_word_score = r_word_score + get_letter_frequency( i_letter = i_word+1(1) i_first = abap_false ).
endif.
if strlen( letter3 ) > 1.
r_word_score = r_word_score + get_letter_frequency( i_letter = i_word+2(1) i_first = abap_false ).
endif.
if strlen( letter4 ) > 1.
r_word_score = r_word_score + get_letter_frequency( i_letter = i_word+3(1) i_first = abap_false ).
endif.
if strlen( letter5 ) > 1.
r_word_score = r_word_score + get_letter_frequency( i_letter = i_word+4(1) i_first = abap_false ).
endif.
endmethod.
method get_letter_frequency.
field-symbols <frequency> like line of letter_frequency_tab.
data v_index type i.
v_index = find( val = sy-abcde sub = i_letter ) + 1.
read table letter_frequency_tab assigning <frequency> index v_index.
assert sy-subrc = 0.
if i_first = abap_true.
r_frequency = <frequency>-first_letter.
else.
r_frequency = <frequency>-other_letters.
endif.
endmethod.
method build_letter_frequency_tab.
"
" Source of Letter Frequency for English Dictionary Words:
" https://en.wikipedia.org/wiki/Letter_frequency
"
data frequency like line of letter_frequency_tab.
frequency-first_letter = '5.7'.
frequency-other_letters = '7.8'. "A
insert frequency into table letter_frequency_tab.
frequency-first_letter = '6.0'.
frequency-other_letters = '2.0'. "B
insert frequency into table letter_frequency_tab.
frequency-first_letter = '9.4'.
frequency-other_letters = '4.0'. "C
insert frequency into table letter_frequency_tab.
frequency-first_letter = '6.1'.
frequency-other_letters = '3.8'. "D
insert frequency into table letter_frequency_tab.
frequency-first_letter = '3.9'.
frequency-other_letters = '11.0'. "E
insert frequency into table letter_frequency_tab.
frequency-first_letter = '4.1'.
frequency-other_letters = '1.4'. "F
insert frequency into table letter_frequency_tab.
frequency-first_letter = '3.3'.
frequency-other_letters = '3.0'. "G
insert frequency into table letter_frequency_tab.
frequency-first_letter = '3.7'.
frequency-other_letters = '2.3'. "H
insert frequency into table letter_frequency_tab.
frequency-first_letter = '3.9'.
frequency-other_letters = '8.2'. "I
insert frequency into table letter_frequency_tab.
frequency-first_letter = '1.1'.
frequency-other_letters = '0.21'. "J
insert frequency into table letter_frequency_tab.
frequency-first_letter = '1.0'.
frequency-other_letters = '2.5'. "K
insert frequency into table letter_frequency_tab.
frequency-first_letter = '3.1'.
frequency-other_letters = '5.3'. "L
insert frequency into table letter_frequency_tab.
frequency-first_letter = '5.6'.
frequency-other_letters = '2.7'. "M
insert frequency into table letter_frequency_tab.
frequency-first_letter = '2.2'.
frequency-other_letters = '7.2'. "N
insert frequency into table letter_frequency_tab.
frequency-first_letter = '2.5'.
frequency-other_letters = '6.1'. "O
insert frequency into table letter_frequency_tab.
frequency-first_letter = '7.7'.
frequency-other_letters = '2.8'. "P
insert frequency into table letter_frequency_tab.
frequency-first_letter = '0.49'.
frequency-other_letters = '0.24'. "Q
insert frequency into table letter_frequency_tab.
frequency-first_letter = '6.0'.
frequency-other_letters = '7.3'. "R
insert frequency into table letter_frequency_tab.
frequency-first_letter = '11.0'.
frequency-other_letters = '8.7'. "S
insert frequency into table letter_frequency_tab.
frequency-first_letter = '5.0'.
frequency-other_letters = '6.7'. "T
insert frequency into table letter_frequency_tab.
frequency-first_letter = '2.9'.
frequency-other_letters = '3.3'. "U
insert frequency into table letter_frequency_tab.
frequency-first_letter = '1.5'.
frequency-other_letters = '1.0'. "V
insert frequency into table letter_frequency_tab.
frequency-first_letter = '2.7'.
frequency-other_letters = '0.91'. "W
insert frequency into table letter_frequency_tab.
frequency-first_letter = '0.05'.
frequency-other_letters = '0.27'. "X
insert frequency into table letter_frequency_tab.
frequency-first_letter = '0.36'.
frequency-other_letters = '1.6'. "Y
insert frequency into table letter_frequency_tab.
frequency-first_letter = '0.24'.
frequency-other_letters = '0.44'. "Z
insert frequency into table letter_frequency_tab.
endmethod.
method build_word_tab.
"
" Source for 5-Letter Word List:
" https://www-cs-faculty.stanford.edu/~knuth/sgb-words.txt
"
append 'WHICH' to word_tab.
append 'THERE' to word_tab.
append 'THEIR' to word_tab.
append 'ABOUT' to word_tab.
append 'WOULD' to word_tab.
append 'THESE' to word_tab.
append 'OTHER' to word_tab.
append 'WORDS' to word_tab.
append 'COULD' to word_tab.
append 'WRITE' to word_tab.
append 'FIRST' to word_tab.
append 'WATER' to word_tab.
append 'AFTER' to word_tab.
append 'WHERE' to word_tab.
append 'RIGHT' to word_tab.
append 'THINK' to word_tab.
append 'THREE' to word_tab.
append 'YEARS' to word_tab.
append 'PLACE' to word_tab.
append 'SOUND' to word_tab.
append 'GREAT' to word_tab.
append 'AGAIN' to word_tab.
append 'STILL' to word_tab.
append 'EVERY' to word_tab.
append 'SMALL' to word_tab.
append 'FOUND' to word_tab.
append 'THOSE' to word_tab.
append 'NEVER' to word_tab.
append 'UNDER' to word_tab.
append 'MIGHT' to word_tab.
append 'WHILE' to word_tab.
append 'HOUSE' to word_tab.
append 'WORLD' to word_tab.
append 'BELOW' to word_tab.
append 'ASKED' to word_tab.
append 'GOING' to word_tab.
append 'LARGE' to word_tab.
append 'UNTIL' to word_tab.
append 'ALONG' to word_tab.
append 'SHALL' to word_tab.
append 'BEING' to word_tab.
append 'OFTEN' to word_tab.
append 'EARTH' to word_tab.
append 'BEGAN' to word_tab.
append 'SINCE' to word_tab.
append 'STUDY' to word_tab.
append 'NIGHT' to word_tab.
append 'LIGHT' to word_tab.
append 'ABOVE' to word_tab.
append 'PAPER' to word_tab.
append 'PARTS' to word_tab.
append 'YOUNG' to word_tab.
append 'STORY' to word_tab.
append 'POINT' to word_tab.
append 'TIMES' to word_tab.
append 'HEARD' to word_tab.
append 'WHOLE' to word_tab.
append 'WHITE' to word_tab.
append 'GIVEN' to word_tab.
append 'MEANS' to word_tab.
append 'MUSIC' to word_tab.
append 'MILES' to word_tab.
append 'THING' to word_tab.
append 'TODAY' to word_tab.
append 'LATER' to word_tab.
append 'USING' to word_tab.
append 'MONEY' to word_tab.
append 'LINES' to word_tab.
append 'ORDER' to word_tab.
append 'GROUP' to word_tab.
append 'AMONG' to word_tab.
append 'LEARN' to word_tab.
append 'KNOWN' to word_tab.
append 'SPACE' to word_tab.
append 'TABLE' to word_tab.
append 'EARLY' to word_tab.
append 'TREES' to word_tab.
append 'SHORT' to word_tab.
append 'HANDS' to word_tab.
append 'STATE' to word_tab.
append 'BLACK' to word_tab.
append 'SHOWN' to word_tab.
append 'STOOD' to word_tab.
append 'FRONT' to word_tab.
append 'VOICE' to word_tab.
append 'KINDS' to word_tab.
append 'MAKES' to word_tab.
append 'COMES' to word_tab.
append 'CLOSE' to word_tab.
append 'POWER' to word_tab.
append 'LIVED' to word_tab.
append 'VOWEL' to word_tab.
append 'TAKEN' to word_tab.
append 'BUILT' to word_tab.
append 'HEART' to word_tab.
append 'READY' to word_tab.
append 'QUITE' to word_tab.
append 'CLASS' to word_tab.
append 'BRING' to word_tab.
append 'ROUND' to word_tab.
append 'HORSE' to word_tab.
append 'SHOWS' to word_tab.
append 'PIECE' to word_tab.
append 'GREEN' to word_tab.
append 'STAND' to word_tab.
append 'BIRDS' to word_tab.
append 'START' to word_tab.
append 'RIVER' to word_tab.
append 'TRIED' to word_tab.
append 'LEAST' to word_tab.
append 'FIELD' to word_tab.
append 'WHOSE' to word_tab.
append 'GIRLS' to word_tab.
append 'LEAVE' to word_tab.
append 'ADDED' to word_tab.
append 'COLOR' to word_tab.
append 'THIRD' to word_tab.
append 'HOURS' to word_tab.
append 'MOVED' to word_tab.
append 'PLANT' to word_tab.
append 'DOING' to word_tab.
append 'NAMES' to word_tab.
append 'FORMS' to word_tab.
append 'HEAVY' to word_tab.
append 'IDEAS' to word_tab.
append 'CRIED' to word_tab.
append 'CHECK' to word_tab.
append 'FLOOR' to word_tab.
append 'BEGIN' to word_tab.
append 'WOMAN' to word_tab.
append 'ALONE' to word_tab.
append 'PLANE' to word_tab.
append 'SPELL' to word_tab.
append 'WATCH' to word_tab.
append 'CARRY' to word_tab.
append 'WROTE' to word_tab.
append 'CLEAR' to word_tab.
append 'NAMED' to word_tab.
append 'BOOKS' to word_tab.
append 'CHILD' to word_tab.
append 'GLASS' to word_tab.
append 'HUMAN' to word_tab.
append 'TAKES' to word_tab.
append 'PARTY' to word_tab.
append 'BUILD' to word_tab.
append 'SEEMS' to word_tab.
append 'BLOOD' to word_tab.
append 'SIDES' to word_tab.
append 'SEVEN' to word_tab.
append 'MOUTH' to word_tab.
append 'SOLVE' to word_tab.
append 'NORTH' to word_tab.
append 'VALUE' to word_tab.
append 'DEATH' to word_tab.
append 'MAYBE' to word_tab.
append 'HAPPY' to word_tab.
append 'TELLS' to word_tab.
append 'GIVES' to word_tab.
append 'LOOKS' to word_tab.
append 'SHAPE' to word_tab.
append 'LIVES' to word_tab.
append 'STEPS' to word_tab.
append 'AREAS' to word_tab.
append 'SENSE' to word_tab.
append 'SPEAK' to word_tab.
append 'FORCE' to word_tab.
append 'OCEAN' to word_tab.
append 'SPEED' to word_tab.
append 'WOMEN' to word_tab.
append 'METAL' to word_tab.
append 'SOUTH' to word_tab.
append 'GRASS' to word_tab.
append 'SCALE' to word_tab.
append 'CELLS' to word_tab.
append 'LOWER' to word_tab.
append 'SLEEP' to word_tab.
append 'WRONG' to word_tab.
append 'PAGES' to word_tab.
append 'SHIPS' to word_tab.
append 'NEEDS' to word_tab.
append 'ROCKS' to word_tab.
append 'EIGHT' to word_tab.
append 'MAJOR' to word_tab.
append 'LEVEL' to word_tab.
append 'TOTAL' to word_tab.
append 'AHEAD' to word_tab.
append 'REACH' to word_tab.
append 'STARS' to word_tab.
append 'STORE' to word_tab.
append 'SIGHT' to word_tab.
append 'TERMS' to word_tab.
append 'CATCH' to word_tab.
append 'WORKS' to word_tab.
append 'BOARD' to word_tab.
append 'COVER' to word_tab.
append 'SONGS' to word_tab.
append 'EQUAL' to word_tab.
append 'STONE' to word_tab.
append 'WAVES' to word_tab.
append 'GUESS' to word_tab.
append 'DANCE' to word_tab.
append 'SPOKE' to word_tab.
append 'BREAK' to word_tab.
append 'CAUSE' to word_tab.
append 'RADIO' to word_tab.
append 'WEEKS' to word_tab.
append 'LANDS' to word_tab.
append 'BASIC' to word_tab.
append 'LIKED' to word_tab.
append 'TRADE' to word_tab.
append 'FRESH' to word_tab.
append 'FINAL' to word_tab.
append 'FIGHT' to word_tab.
append 'MEANT' to word_tab.
append 'DRIVE' to word_tab.
append 'SPENT' to word_tab.
append 'LOCAL' to word_tab.
append 'WAXES' to word_tab.
append 'KNOWS' to word_tab.
append 'TRAIN' to word_tab.
append 'BREAD' to word_tab.
append 'HOMES' to word_tab.
append 'TEETH' to word_tab.
append 'COAST' to word_tab.
append 'THICK' to word_tab.
append 'BROWN' to word_tab.
append 'CLEAN' to word_tab.
append 'QUIET' to word_tab.
append 'SUGAR' to word_tab.
append 'FACTS' to word_tab.
append 'STEEL' to word_tab.
append 'FORTH' to word_tab.
append 'RULES' to word_tab.
append 'NOTES' to word_tab.
append 'UNITS' to word_tab.
append 'PEACE' to word_tab.
append 'MONTH' to word_tab.
append 'VERBS' to word_tab.
append 'SEEDS' to word_tab.
append 'HELPS' to word_tab.
append 'SHARP' to word_tab.
append 'VISIT' to word_tab.
append 'WOODS' to word_tab.
append 'CHIEF' to word_tab.
append 'WALLS' to word_tab.
append 'CROSS' to word_tab.
append 'WINGS' to word_tab.
append 'GROWN' to word_tab.
append 'CASES' to word_tab.
append 'FOODS' to word_tab.
append 'CROPS' to word_tab.
append 'FRUIT' to word_tab.
append 'STICK' to word_tab.
append 'WANTS' to word_tab.
append 'STAGE' to word_tab.
append 'SHEEP' to word_tab.
append 'NOUNS' to word_tab.
append 'PLAIN' to word_tab.
append 'DRINK' to word_tab.
append 'BONES' to word_tab.
append 'APART' to word_tab.
append 'TURNS' to word_tab.
append 'MOVES' to word_tab.
append 'TOUCH' to word_tab.
append 'ANGLE' to word_tab.
append 'BASED' to word_tab.
append 'RANGE' to word_tab.
append 'MARKS' to word_tab.
append 'TIRED' to word_tab.
append 'OLDER' to word_tab.
append 'FARMS' to word_tab.
append 'SPEND' to word_tab.
append 'SHOES' to word_tab.
append 'GOODS' to word_tab.
append 'CHAIR' to word_tab.
append 'TWICE' to word_tab.
append 'CENTS' to word_tab.
append 'EMPTY' to word_tab.
append 'ALIKE' to word_tab.
append 'STYLE' to word_tab.
append 'BROKE' to word_tab.
append 'PAIRS' to word_tab.
append 'COUNT' to word_tab.
append 'ENJOY' to word_tab.
append 'SCORE' to word_tab.
append 'SHORE' to word_tab.
append 'ROOTS' to word_tab.
append 'PAINT' to word_tab.
append 'HEADS' to word_tab.
append 'SHOOK' to word_tab.
append 'SERVE' to word_tab.
append 'ANGRY' to word_tab.
append 'CROWD' to word_tab.
append 'WHEEL' to word_tab.
append 'QUICK' to word_tab.
append 'DRESS' to word_tab.
append 'SHARE' to word_tab.
append 'ALIVE' to word_tab.
append 'NOISE' to word_tab.
append 'SOLID' to word_tab.
append 'CLOTH' to word_tab.
append 'SIGNS' to word_tab.
append 'HILLS' to word_tab.
append 'TYPES' to word_tab.
append 'DRAWN' to word_tab.
append 'WORTH' to word_tab.
append 'TRUCK' to word_tab.
append 'PIANO' to word_tab.
append 'UPPER' to word_tab.
append 'LOVED' to word_tab.
append 'USUAL' to word_tab.
append 'FACES' to word_tab.
append 'DROVE' to word_tab.
append 'CABIN' to word_tab.
append 'BOATS' to word_tab.
append 'TOWNS' to word_tab.
append 'PROUD' to word_tab.
append 'COURT' to word_tab.
append 'MODEL' to word_tab.
append 'PRIME' to word_tab.
append 'FIFTY' to word_tab.
append 'PLANS' to word_tab.
append 'YARDS' to word_tab.
append 'PROVE' to word_tab.
append 'TOOLS' to word_tab.
append 'PRICE' to word_tab.
append 'SHEET' to word_tab.
append 'SMELL' to word_tab.
append 'BOXES' to word_tab.
append 'RAISE' to word_tab.
append 'MATCH' to word_tab.
append 'TRUTH' to word_tab.
append 'ROADS' to word_tab.
append 'THREW' to word_tab.
append 'ENEMY' to word_tab.
append 'LUNCH' to word_tab.
append 'CHART' to word_tab.
append 'SCENE' to word_tab.
append 'GRAPH' to word_tab.
append 'DOUBT' to word_tab.
append 'GUIDE' to word_tab.
append 'WINDS' to word_tab.
append 'BLOCK' to word_tab.
append 'GRAIN' to word_tab.
append 'SMOKE' to word_tab.
append 'MIXED' to word_tab.
append 'GAMES' to word_tab.
append 'WAGON' to word_tab.
append 'SWEET' to word_tab.
append 'TOPIC' to word_tab.
append 'EXTRA' to word_tab.
append 'PLATE' to word_tab.
append 'TITLE' to word_tab.
append 'KNIFE' to word_tab.
append 'FENCE' to word_tab.
append 'FALLS' to word_tab.
append 'CLOUD' to word_tab.
append 'WHEAT' to word_tab.
append 'PLAYS' to word_tab.
append 'ENTER' to word_tab.
append 'BROAD' to word_tab.
append 'STEAM' to word_tab.
append 'ATOMS' to word_tab.
append 'PRESS' to word_tab.
append 'LYING' to word_tab.
append 'BASIS' to word_tab.
append 'CLOCK' to word_tab.
append 'TASTE' to word_tab.
append 'GROWS' to word_tab.
append 'THANK' to word_tab.
append 'STORM' to word_tab.
append 'AGREE' to word_tab.
append 'BRAIN' to word_tab.
append 'TRACK' to word_tab.
append 'SMILE' to word_tab.
append 'FUNNY' to word_tab.
append 'BEACH' to word_tab.
append 'STOCK' to word_tab.
append 'HURRY' to word_tab.
append 'SAVED' to word_tab.
append 'SORRY' to word_tab.
append 'GIANT' to word_tab.
append 'TRAIL' to word_tab.
append 'OFFER' to word_tab.
append 'OUGHT' to word_tab.
append 'ROUGH' to word_tab.
append 'DAILY' to word_tab.
append 'AVOID' to word_tab.
append 'KEEPS' to word_tab.
append 'THROW' to word_tab.
append 'ALLOW' to word_tab.
append 'CREAM' to word_tab.
append 'LAUGH' to word_tab.
append 'EDGES' to word_tab.
append 'TEACH' to word_tab.
append 'FRAME' to word_tab.
append 'BELLS' to word_tab.
append 'DREAM' to word_tab.
append 'MAGIC' to word_tab.
append 'OCCUR' to word_tab.
append 'ENDED' to word_tab.
append 'CHORD' to word_tab.
append 'FALSE' to word_tab.
append 'SKILL' to word_tab.
append 'HOLES' to word_tab.
append 'DOZEN' to word_tab.
append 'BRAVE' to word_tab.
append 'APPLE' to word_tab.
append 'CLIMB' to word_tab.
append 'OUTER' to word_tab.
append 'PITCH' to word_tab.
append 'RULER' to word_tab.
append 'HOLDS' to word_tab.
append 'FIXED' to word_tab.
append 'COSTS' to word_tab.
append 'CALLS' to word_tab.
append 'BLANK' to word_tab.
append 'STAFF' to word_tab.
append 'LABOR' to word_tab.
append 'EATEN' to word_tab.
append 'YOUTH' to word_tab.
append 'TONES' to word_tab.
append 'HONOR' to word_tab.
append 'GLOBE' to word_tab.
append 'GASES' to word_tab.
append 'DOORS' to word_tab.
append 'POLES' to word_tab.
append 'LOOSE' to word_tab.
append 'APPLY' to word_tab.
append 'TEARS' to word_tab.
append 'EXACT' to word_tab.
append 'BRUSH' to word_tab.
append 'CHEST' to word_tab.
append 'LAYER' to word_tab.
append 'WHALE' to word_tab.
append 'MINOR' to word_tab.
append 'FAITH' to word_tab.
append 'TESTS' to word_tab.
append 'JUDGE' to word_tab.
append 'ITEMS' to word_tab.
append 'WORRY' to word_tab.
append 'WASTE' to word_tab.
append 'HOPED' to word_tab.
append 'STRIP' to word_tab.
append 'BEGUN' to word_tab.
append 'ASIDE' to word_tab.
append 'LAKES' to word_tab.
append 'BOUND' to word_tab.
append 'DEPTH' to word_tab.
append 'CANDY' to word_tab.
append 'EVENT' to word_tab.
append 'WORSE' to word_tab.
append 'AWARE' to word_tab.
append 'SHELL' to word_tab.
append 'ROOMS' to word_tab.
append 'RANCH' to word_tab.
append 'IMAGE' to word_tab.
append 'SNAKE' to word_tab.
append 'ALOUD' to word_tab.
append 'DRIED' to word_tab.
append 'LIKES' to word_tab.
append 'MOTOR' to word_tab.
append 'POUND' to word_tab.
append 'KNEES' to word_tab.
append 'REFER' to word_tab.
append 'FULLY' to word_tab.
append 'CHAIN' to word_tab.
append 'SHIRT' to word_tab.
append 'FLOUR' to word_tab.
append 'DROPS' to word_tab.
append 'SPITE' to word_tab.
append 'ORBIT' to word_tab.
append 'BANKS' to word_tab.
append 'SHOOT' to word_tab.
append 'CURVE' to word_tab.
append 'TRIBE' to word_tab.
append 'TIGHT' to word_tab.
append 'BLIND' to word_tab.
append 'SLEPT' to word_tab.
append 'SHADE' to word_tab.
append 'CLAIM' to word_tab.
append 'FLIES' to word_tab.
append 'THEME' to word_tab.
append 'QUEEN' to word_tab.
append 'FIFTH' to word_tab.
append 'UNION' to word_tab.
append 'HENCE' to word_tab.
append 'STRAW' to word_tab.
append 'ENTRY' to word_tab.
append 'ISSUE' to word_tab.
append 'BIRTH' to word_tab.
append 'FEELS' to word_tab.
append 'ANGER' to word_tab.
append 'BRIEF' to word_tab.
append 'RHYME' to word_tab.
append 'GLORY' to word_tab.
append 'GUARD' to word_tab.
append 'FLOWS' to word_tab.
append 'FLESH' to word_tab.
append 'OWNED' to word_tab.
append 'TRICK' to word_tab.
append 'YOURS' to word_tab.
append 'SIZES' to word_tab.
append 'NOTED' to word_tab.
append 'WIDTH' to word_tab.
append 'BURST' to word_tab.
append 'ROUTE' to word_tab.
append 'LUNGS' to word_tab.
append 'UNCLE' to word_tab.
append 'BEARS' to word_tab.
append 'ROYAL' to word_tab.
append 'KINGS' to word_tab.
append 'FORTY' to word_tab.
append 'TRIAL' to word_tab.
append 'CARDS' to word_tab.
append 'BRASS' to word_tab.
append 'OPERA' to word_tab.
append 'CHOSE' to word_tab.
append 'OWNER' to word_tab.
append 'VAPOR' to word_tab.
append 'BEATS' to word_tab.
append 'MOUSE' to word_tab.
append 'TOUGH' to word_tab.
append 'WIRES' to word_tab.
append 'METER' to word_tab.
append 'TOWER' to word_tab.
append 'FINDS' to word_tab.
append 'INNER' to word_tab.
append 'STUCK' to word_tab.
append 'ARROW' to word_tab.
append 'POEMS' to word_tab.
append 'LABEL' to word_tab.
append 'SWING' to word_tab.
append 'SOLAR' to word_tab.
append 'TRULY' to word_tab.
append 'TENSE' to word_tab.
append 'BEANS' to word_tab.
append 'SPLIT' to word_tab.
append 'RISES' to word_tab.
append 'WEIGH' to word_tab.
append 'HOTEL' to word_tab.
append 'STEMS' to word_tab.
append 'PRIDE' to word_tab.
append 'SWUNG' to word_tab.
append 'GRADE' to word_tab.
append 'DIGIT' to word_tab.
append 'BADLY' to word_tab.
append 'BOOTS' to word_tab.
append 'PILOT' to word_tab.
append 'SALES' to word_tab.
append 'SWEPT' to word_tab.
append 'LUCKY' to word_tab.
append 'PRIZE' to word_tab.
append 'STOVE' to word_tab.
append 'TUBES' to word_tab.
append 'ACRES' to word_tab.
append 'WOUND' to word_tab.
append 'STEEP' to word_tab.
append 'SLIDE' to word_tab.
append 'TRUNK' to word_tab.
append 'ERROR' to word_tab.
append 'PORCH' to word_tab.
append 'SLAVE' to word_tab.
append 'EXIST' to word_tab.
append 'FACED' to word_tab.
append 'MINES' to word_tab.
append 'MARRY' to word_tab.
append 'JUICE' to word_tab.
append 'RACED' to word_tab.
append 'WAVED' to word_tab.
append 'GOOSE' to word_tab.
append 'TRUST' to word_tab.
append 'FEWER' to word_tab.
append 'FAVOR' to word_tab.
append 'MILLS' to word_tab.
append 'VIEWS' to word_tab.
append 'JOINT' to word_tab.
append 'EAGER' to word_tab.
append 'SPOTS' to word_tab.
append 'BLEND' to word_tab.
append 'RINGS' to word_tab.
append 'ADULT' to word_tab.
append 'INDEX' to word_tab.
append 'NAILS' to word_tab.
append 'HORNS' to word_tab.
append 'BALLS' to word_tab.
append 'FLAME' to word_tab.
append 'RATES' to word_tab.
append 'DRILL' to word_tab.
append 'TRACE' to word_tab.
append 'SKINS' to word_tab.
append 'WAXED' to word_tab.
append 'SEATS' to word_tab.
append 'STUFF' to word_tab.
append 'RATIO' to word_tab.
append 'MINDS' to word_tab.
append 'DIRTY' to word_tab.
append 'SILLY' to word_tab.
append 'COINS' to word_tab.
append 'HELLO' to word_tab.
append 'TRIPS' to word_tab.
append 'LEADS' to word_tab.
append 'RIFLE' to word_tab.
append 'HOPES' to word_tab.
append 'BASES' to word_tab.
append 'SHINE' to word_tab.
append 'BENCH' to word_tab.
append 'MORAL' to word_tab.
append 'FIRES' to word_tab.
append 'MEALS' to word_tab.
append 'SHAKE' to word_tab.
append 'SHOPS' to word_tab.
append 'CYCLE' to word_tab.
append 'MOVIE' to word_tab.
append 'SLOPE' to word_tab.
append 'CANOE' to word_tab.
append 'TEAMS' to word_tab.
append 'FOLKS' to word_tab.
append 'FIRED' to word_tab.
append 'BANDS' to word_tab.
append 'THUMB' to word_tab.
append 'SHOUT' to word_tab.
append 'CANAL' to word_tab.
append 'HABIT' to word_tab.
append 'REPLY' to word_tab.
append 'RULED' to word_tab.
append 'FEVER' to word_tab.
append 'CRUST' to word_tab.
append 'SHELF' to word_tab.
append 'WALKS' to word_tab.
append 'MIDST' to word_tab.
append 'CRACK' to word_tab.
append 'PRINT' to word_tab.
append 'TALES' to word_tab.
append 'COACH' to word_tab.
append 'STIFF' to word_tab.
append 'FLOOD' to word_tab.
append 'VERSE' to word_tab.
append 'AWAKE' to word_tab.
append 'ROCKY' to word_tab.
append 'MARCH' to word_tab.
append 'FAULT' to word_tab.
append 'SWIFT' to word_tab.
append 'FAINT' to word_tab.
append 'CIVIL' to word_tab.
append 'GHOST' to word_tab.
append 'FEAST' to word_tab.
append 'BLADE' to word_tab.
append 'LIMIT' to word_tab.
append 'GERMS' to word_tab.
append 'READS' to word_tab.
append 'DUCKS' to word_tab.
append 'DAIRY' to word_tab.
append 'WORST' to word_tab.
append 'GIFTS' to word_tab.
append 'LISTS' to word_tab.
append 'STOPS' to word_tab.
append 'RAPID' to word_tab.
append 'BRICK' to word_tab.
append 'CLAWS' to word_tab.
append 'BEADS' to word_tab.
append 'BEAST' to word_tab.
append 'SKIRT' to word_tab.
append 'CAKES' to word_tab.
append 'LIONS' to word_tab.
append 'FROGS' to word_tab.
append 'TRIES' to word_tab.
append 'NERVE' to word_tab.
append 'GRAND' to word_tab.
append 'ARMED' to word_tab.
append 'TREAT' to word_tab.
append 'HONEY' to word_tab.
append 'MOIST' to word_tab.
append 'LEGAL' to word_tab.
append 'PENNY' to word_tab.
append 'CROWN' to word_tab.
append 'SHOCK' to word_tab.
append 'TAXES' to word_tab.
append 'SIXTY' to word_tab.
append 'ALTAR' to word_tab.
append 'PULLS' to word_tab.
append 'SPORT' to word_tab.
append 'DRUMS' to word_tab.
append 'TALKS' to word_tab.
append 'DYING' to word_tab.
append 'DATES' to word_tab.
append 'DRANK' to word_tab.
append 'BLOWS' to word_tab.
append 'LEVER' to word_tab.
append 'WAGES' to word_tab.
append 'PROOF' to word_tab.
append 'DRUGS' to word_tab.
append 'TANKS' to word_tab.
append 'SINGS' to word_tab.
append 'TAILS' to word_tab.
append 'PAUSE' to word_tab.
append 'HERDS' to word_tab.
append 'AROSE' to word_tab.
append 'HATED' to word_tab.
append 'CLUES' to word_tab.
append 'NOVEL' to word_tab.
append 'SHAME' to word_tab.
append 'BURNT' to word_tab.
append 'RACES' to word_tab.
append 'FLASH' to word_tab.
append 'WEARY' to word_tab.
append 'HEELS' to word_tab.
append 'TOKEN' to word_tab.
append 'COATS' to word_tab.
append 'SPARE' to word_tab.
append 'SHINY' to word_tab.
append 'ALARM' to word_tab.
append 'DIMES' to word_tab.
append 'SIXTH' to word_tab.
append 'CLERK' to word_tab.
append 'MERCY' to word_tab.
append 'SUNNY' to word_tab.
append 'GUEST' to word_tab.
append 'FLOAT' to word_tab.
append 'SHONE' to word_tab.
append 'PIPES' to word_tab.
append 'WORMS' to word_tab.
append 'BILLS' to word_tab.
append 'SWEAT' to word_tab.
append 'SUITS' to word_tab.
append 'SMART' to word_tab.
append 'UPSET' to word_tab.
append 'RAINS' to word_tab.
append 'SANDY' to word_tab.
append 'RAINY' to word_tab.
append 'PARKS' to word_tab.
append 'SADLY' to word_tab.
append 'FANCY' to word_tab.
append 'RIDER' to word_tab.
append 'UNITY' to word_tab.
append 'BUNCH' to word_tab.
append 'ROLLS' to word_tab.
append 'CRASH' to word_tab.
append 'CRAFT' to word_tab.
append 'NEWLY' to word_tab.
append 'GATES' to word_tab.
append 'HATCH' to word_tab.
append 'PATHS' to word_tab.
append 'FUNDS' to word_tab.
append 'WIDER' to word_tab.
append 'GRACE' to word_tab.
append 'GRAVE' to word_tab.
append 'TIDES' to word_tab.
append 'ADMIT' to word_tab.
append 'SHIFT' to word_tab.
append 'SAILS' to word_tab.
append 'PUPIL' to word_tab.
append 'TIGER' to word_tab.
append 'ANGEL' to word_tab.
append 'CRUEL' to word_tab.
append 'AGENT' to word_tab.
append 'DRAMA' to word_tab.
append 'URGED' to word_tab.
append 'PATCH' to word_tab.
append 'NESTS' to word_tab.
append 'VITAL' to word_tab.
append 'SWORD' to word_tab.
append 'BLAME' to word_tab.
append 'WEEDS' to word_tab.
append 'SCREW' to word_tab.
append 'VOCAL' to word_tab.
append 'BACON' to word_tab.
append 'CHALK' to word_tab.
append 'CARGO' to word_tab.
append 'CRAZY' to word_tab.
append 'ACTED' to word_tab.
append 'GOATS' to word_tab.
append 'ARISE' to word_tab.
append 'WITCH' to word_tab.
append 'LOVES' to word_tab.
append 'QUEER' to word_tab.
append 'DWELL' to word_tab.
append 'BACKS' to word_tab.
append 'ROPES' to word_tab.
append 'SHOTS' to word_tab.
append 'MERRY' to word_tab.
append 'PHONE' to word_tab.
append 'CHEEK' to word_tab.
append 'PEAKS' to word_tab.
append 'IDEAL' to word_tab.
append 'BEARD' to word_tab.
append 'EAGLE' to word_tab.
append 'CREEK' to word_tab.
append 'CRIES' to word_tab.
append 'ASHES' to word_tab.
append 'STALL' to word_tab.
append 'YIELD' to word_tab.
append 'MAYOR' to word_tab.
append 'OPENS' to word_tab.
append 'INPUT' to word_tab.
append 'FLEET' to word_tab.
append 'TOOTH' to word_tab.
append 'CUBIC' to word_tab.
append 'WIVES' to word_tab.
append 'BURNS' to word_tab.
append 'POETS' to word_tab.
append 'APRON' to word_tab.
append 'SPEAR' to word_tab.
append 'ORGAN' to word_tab.
append 'CLIFF' to word_tab.
append 'STAMP' to word_tab.
append 'PASTE' to word_tab.
append 'RURAL' to word_tab.
append 'BAKED' to word_tab.
append 'CHASE' to word_tab.
append 'SLICE' to word_tab.
append 'SLANT' to word_tab.
append 'KNOCK' to word_tab.
append 'NOISY' to word_tab.
append 'SORTS' to word_tab.
append 'STAYS' to word_tab.
append 'WIPED' to word_tab.
append 'BLOWN' to word_tab.
append 'PILED' to word_tab.
append 'CLUBS' to word_tab.
append 'CHEER' to word_tab.
append 'WIDOW' to word_tab.
append 'TWIST' to word_tab.
append 'TENTH' to word_tab.
append 'HIDES' to word_tab.
append 'COMMA' to word_tab.
append 'SWEEP' to word_tab.
append 'SPOON' to word_tab.
append 'STERN' to word_tab.
append 'CREPT' to word_tab.
append 'MAPLE' to word_tab.
append 'DEEDS' to word_tab.
append 'RIDES' to word_tab.
append 'MUDDY' to word_tab.
append 'CRIME' to word_tab.
append 'JELLY' to word_tab.
append 'RIDGE' to word_tab.
append 'DRIFT' to word_tab.
append 'DUSTY' to word_tab.
append 'DEVIL' to word_tab.
append 'TEMPO' to word_tab.
append 'HUMOR' to word_tab.
append 'SENDS' to word_tab.
append 'STEAL' to word_tab.
append 'TENTS' to word_tab.
append 'WAIST' to word_tab.
append 'ROSES' to word_tab.
append 'REIGN' to word_tab.
append 'NOBLE' to word_tab.
append 'CHEAP' to word_tab.
append 'DENSE' to word_tab.
append 'LINEN' to word_tab.
append 'GEESE' to word_tab.
append 'WOVEN' to word_tab.
append 'POSTS' to word_tab.
append 'HIRED' to word_tab.
append 'WRATH' to word_tab.
append 'SALAD' to word_tab.
append 'BOWED' to word_tab.
append 'TIRES' to word_tab.
append 'SHARK' to word_tab.
append 'BELTS' to word_tab.
append 'GRASP' to word_tab.
append 'BLAST' to word_tab.
append 'POLAR' to word_tab.
append 'FUNGI' to word_tab.
append 'TENDS' to word_tab.
append 'PEARL' to word_tab.
append 'LOADS' to word_tab.
append 'JOKES' to word_tab.
append 'VEINS' to word_tab.
append 'FROST' to word_tab.
append 'HEARS' to word_tab.
append 'LOSES' to word_tab.
append 'HOSTS' to word_tab.
append 'DIVER' to word_tab.
append 'PHASE' to word_tab.
append 'TOADS' to word_tab.
append 'ALERT' to word_tab.
append 'TASKS' to word_tab.
append 'SEAMS' to word_tab.
append 'CORAL' to word_tab.
append 'FOCUS' to word_tab.
append 'NAKED' to word_tab.
append 'PUPPY' to word_tab.
append 'JUMPS' to word_tab.
append 'SPOIL' to word_tab.
append 'QUART' to word_tab.
append 'MACRO' to word_tab.
append 'FEARS' to word_tab.
append 'FLUNG' to word_tab.
append 'SPARK' to word_tab.
append 'VIVID' to word_tab.
append 'BROOK' to word_tab.
append 'STEER' to word_tab.
append 'SPRAY' to word_tab.
append 'DECAY' to word_tab.
append 'PORTS' to word_tab.
append 'SOCKS' to word_tab.
append 'URBAN' to word_tab.
append 'GOALS' to word_tab.
append 'GRANT' to word_tab.
append 'MINUS' to word_tab.
append 'FILMS' to word_tab.
append 'TUNES' to word_tab.
append 'SHAFT' to word_tab.
append 'FIRMS' to word_tab.
append 'SKIES' to word_tab.
append 'BRIDE' to word_tab.
append 'WRECK' to word_tab.
append 'FLOCK' to word_tab.
append 'STARE' to word_tab.
append 'HOBBY' to word_tab.
append 'BONDS' to word_tab.
append 'DARED' to word_tab.
append 'FADED' to word_tab.
append 'THIEF' to word_tab.
append 'CRUDE' to word_tab.
append 'PANTS' to word_tab.
append 'FLUTE' to word_tab.
append 'VOTES' to word_tab.
append 'TONAL' to word_tab.
append 'RADAR' to word_tab.
append 'WELLS' to word_tab.
append 'SKULL' to word_tab.
append 'HAIRS' to word_tab.
append 'ARGUE' to word_tab.
append 'WEARS' to word_tab.
append 'DOLLS' to word_tab.
append 'VOTED' to word_tab.
append 'CAVES' to word_tab.
append 'CARED' to word_tab.
append 'BROOM' to word_tab.
append 'SCENT' to word_tab.
append 'PANEL' to word_tab.
append 'FAIRY' to word_tab.
append 'OLIVE' to word_tab.
append 'BENDS' to word_tab.
append 'PRISM' to word_tab.
append 'LAMPS' to word_tab.
append 'CABLE' to word_tab.
append 'PEACH' to word_tab.
append 'RUINS' to word_tab.
append 'RALLY' to word_tab.
append 'SCHWA' to word_tab.
append 'LAMBS' to word_tab.
append 'SELLS' to word_tab.
append 'COOLS' to word_tab.
append 'DRAFT' to word_tab.
append 'CHARM' to word_tab.
append 'LIMBS' to word_tab.
append 'BRAKE' to word_tab.
append 'GAZED' to word_tab.
append 'CUBES' to word_tab.
append 'DELAY' to word_tab.
append 'BEAMS' to word_tab.
append 'FETCH' to word_tab.
append 'RANKS' to word_tab.
append 'ARRAY' to word_tab.
append 'HARSH' to word_tab.
append 'CAMEL' to word_tab.
append 'VINES' to word_tab.
append 'PICKS' to word_tab.
append 'NAVAL' to word_tab.
append 'PURSE' to word_tab.
append 'RIGID' to word_tab.
append 'CRAWL' to word_tab.
append 'TOAST' to word_tab.
append 'SOILS' to word_tab.
append 'SAUCE' to word_tab.
append 'BASIN' to word_tab.
append 'PONDS' to word_tab.
append 'TWINS' to word_tab.
append 'WRIST' to word_tab.
append 'FLUID' to word_tab.
append 'POOLS' to word_tab.
append 'BRAND' to word_tab.
append 'STALK' to word_tab.
append 'ROBOT' to word_tab.
append 'REEDS' to word_tab.
append 'HOOFS' to word_tab.
append 'BUSES' to word_tab.
append 'SHEER' to word_tab.
append 'GRIEF' to word_tab.
append 'BLOOM' to word_tab.
append 'DWELT' to word_tab.
append 'MELTS' to word_tab.
append 'RISEN' to word_tab.
append 'FLAGS' to word_tab.
append 'KNELT' to word_tab.
append 'FIBER' to word_tab.
append 'ROOFS' to word_tab.
append 'FREED' to word_tab.
append 'ARMOR' to word_tab.
append 'PILES' to word_tab.
append 'AIMED' to word_tab.
append 'ALGAE' to word_tab.
append 'TWIGS' to word_tab.
append 'LEMON' to word_tab.
append 'DITCH' to word_tab.
append 'DRUNK' to word_tab.
append 'RESTS' to word_tab.
append 'CHILL' to word_tab.
append 'SLAIN' to word_tab.
append 'PANIC' to word_tab.
append 'CORDS' to word_tab.
append 'TUNED' to word_tab.
append 'CRISP' to word_tab.
append 'LEDGE' to word_tab.
append 'DIVED' to word_tab.
append 'SWAMP' to word_tab.
append 'CLUNG' to word_tab.
append 'STOLE' to word_tab.
append 'MOLDS' to word_tab.
append 'YARNS' to word_tab.
append 'LIVER' to word_tab.
append 'GAUGE' to word_tab.
append 'BREED' to word_tab.
append 'STOOL' to word_tab.
append 'GULLS' to word_tab.
append 'AWOKE' to word_tab.
append 'GROSS' to word_tab.
append 'DIARY' to word_tab.
append 'RAILS' to word_tab.
append 'BELLY' to word_tab.
append 'TREND' to word_tab.
append 'FLASK' to word_tab.
append 'STAKE' to word_tab.
append 'FRIED' to word_tab.
append 'DRAWS' to word_tab.
append 'ACTOR' to word_tab.
append 'HANDY' to word_tab.
append 'BOWLS' to word_tab.
append 'HASTE' to word_tab.
append 'SCOPE' to word_tab.
append 'DEALS' to word_tab.
append 'KNOTS' to word_tab.
append 'MOONS' to word_tab.
append 'ESSAY' to word_tab.
append 'THUMP' to word_tab.
append 'HANGS' to word_tab.
append 'BLISS' to word_tab.
append 'DEALT' to word_tab.
append 'GAINS' to word_tab.
append 'BOMBS' to word_tab.
append 'CLOWN' to word_tab.
append 'PALMS' to word_tab.
append 'CONES' to word_tab.
append 'ROAST' to word_tab.
append 'TIDAL' to word_tab.
append 'BORED' to word_tab.
append 'CHANT' to word_tab.
append 'ACIDS' to word_tab.
append 'DOUGH' to word_tab.
append 'CAMPS' to word_tab.
append 'SWORE' to word_tab.
append 'LOVER' to word_tab.
append 'HOOKS' to word_tab.
append 'MALES' to word_tab.
append 'COCOA' to word_tab.
append 'PUNCH' to word_tab.
append 'AWARD' to word_tab.
append 'REINS' to word_tab.
append 'NINTH' to word_tab.
append 'NOSES' to word_tab.
append 'LINKS' to word_tab.
append 'DRAIN' to word_tab.
append 'FILLS' to word_tab.
append 'NYLON' to word_tab.
append 'LUNAR' to word_tab.
append 'PULSE' to word_tab.
append 'FLOWN' to word_tab.
append 'ELBOW' to word_tab.
append 'FATAL' to word_tab.
append 'SITES' to word_tab.
append 'MOTHS' to word_tab.
append 'MEATS' to word_tab.
append 'FOXES' to word_tab.
append 'MINED' to word_tab.
append 'ATTIC' to word_tab.
append 'FIERY' to word_tab.
append 'MOUNT' to word_tab.
append 'USAGE' to word_tab.
append 'SWEAR' to word_tab.
append 'SNOWY' to word_tab.
append 'RUSTY' to word_tab.
append 'SCARE' to word_tab.
append 'TRAPS' to word_tab.
append 'RELAX' to word_tab.
append 'REACT' to word_tab.
append 'VALID' to word_tab.
append 'ROBIN' to word_tab.
append 'CEASE' to word_tab.
append 'GILLS' to word_tab.
append 'PRIOR' to word_tab.
append 'SAFER' to word_tab.
append 'POLIO' to word_tab.
append 'LOYAL' to word_tab.
append 'SWELL' to word_tab.
append 'SALTY' to word_tab.
append 'MARSH' to word_tab.
append 'VAGUE' to word_tab.
append 'WEAVE' to word_tab.
append 'MOUND' to word_tab.
append 'SEALS' to word_tab.
append 'MULES' to word_tab.
append 'VIRUS' to word_tab.
append 'SCOUT' to word_tab.
append 'ACUTE' to word_tab.
append 'WINDY' to word_tab.
append 'STOUT' to word_tab.
append 'FOLDS' to word_tab.
append 'SEIZE' to word_tab.
append 'HILLY' to word_tab.
append 'JOINS' to word_tab.
append 'PLUCK' to word_tab.
append 'STACK' to word_tab.
append 'LORDS' to word_tab.
append 'DUNES' to word_tab.
append 'BURRO' to word_tab.
append 'HAWKS' to word_tab.
append 'TROUT' to word_tab.
append 'FEEDS' to word_tab.
append 'SCARF' to word_tab.
append 'HALLS' to word_tab.
append 'COALS' to word_tab.
append 'TOWEL' to word_tab.
append 'SOULS' to word_tab.
append 'ELECT' to word_tab.
append 'BUGGY' to word_tab.
append 'PUMPS' to word_tab.
append 'LOANS' to word_tab.
append 'SPINS' to word_tab.
append 'FILES' to word_tab.
append 'OXIDE' to word_tab.
append 'PAINS' to word_tab.
append 'PHOTO' to word_tab.
append 'RIVAL' to word_tab.
append 'FLATS' to word_tab.
append 'SYRUP' to word_tab.
append 'RODEO' to word_tab.
append 'SANDS' to word_tab.
append 'MOOSE' to word_tab.
append 'PINTS' to word_tab.
append 'CURLY' to word_tab.
append 'COMIC' to word_tab.
append 'CLOAK' to word_tab.
append 'ONION' to word_tab.
append 'CLAMS' to word_tab.
append 'SCRAP' to word_tab.
append 'DIDST' to word_tab.
append 'COUCH' to word_tab.
append 'CODES' to word_tab.
append 'FAILS' to word_tab.
append 'OUNCE' to word_tab.
append 'LODGE' to word_tab.
append 'GREET' to word_tab.
append 'GYPSY' to word_tab.
append 'UTTER' to word_tab.
append 'PAVED' to word_tab.
append 'ZONES' to word_tab.
append 'FOURS' to word_tab.
append 'ALLEY' to word_tab.
append 'TILES' to word_tab.
append 'BLESS' to word_tab.
append 'CREST' to word_tab.
append 'ELDER' to word_tab.
append 'KILLS' to word_tab.
append 'YEAST' to word_tab.
append 'ERECT' to word_tab.
append 'BUGLE' to word_tab.
append 'MEDAL' to word_tab.
append 'ROLES' to word_tab.
append 'HOUND' to word_tab.
append 'SNAIL' to word_tab.
append 'ALTER' to word_tab.
append 'ANKLE' to word_tab.
append 'RELAY' to word_tab.
append 'LOOPS' to word_tab.
append 'ZEROS' to word_tab.
append 'BITES' to word_tab.
append 'MODES' to word_tab.
append 'DEBTS' to word_tab.
append 'REALM' to word_tab.
append 'GLOVE' to word_tab.
append 'RAYON' to word_tab.
append 'SWIMS' to word_tab.
append 'POKED' to word_tab.
append 'STRAY' to word_tab.
append 'LIFTS' to word_tab.
append 'MAKER' to word_tab.
append 'LUMPS' to word_tab.
append 'GRAZE' to word_tab.
append 'DREAD' to word_tab.
append 'BARNS' to word_tab.
append 'DOCKS' to word_tab.
append 'MASTS' to word_tab.
append 'POURS' to word_tab.
append 'WHARF' to word_tab.
append 'CURSE' to word_tab.
append 'PLUMP' to word_tab.
append 'ROBES' to word_tab.
append 'SEEKS' to word_tab.
append 'CEDAR' to word_tab.
append 'CURLS' to word_tab.
append 'JOLLY' to word_tab.
append 'MYTHS' to word_tab.
append 'CAGES' to word_tab.
append 'GLOOM' to word_tab.
append 'LOCKS' to word_tab.
append 'PEDAL' to word_tab.
append 'BEETS' to word_tab.
append 'CROWS' to word_tab.
append 'ANODE' to word_tab.
append 'SLASH' to word_tab.
append 'CREEP' to word_tab.
append 'ROWED' to word_tab.
append 'CHIPS' to word_tab.
append 'FISTS' to word_tab.
append 'WINES' to word_tab.
append 'CARES' to word_tab.
append 'VALVE' to word_tab.
append 'NEWER' to word_tab.
append 'MOTEL' to word_tab.
append 'IVORY' to word_tab.
append 'NECKS' to word_tab.
append 'CLAMP' to word_tab.
append 'BARGE' to word_tab.
append 'BLUES' to word_tab.
append 'ALIEN' to word_tab.
append 'FROWN' to word_tab.
append 'STRAP' to word_tab.
append 'CREWS' to word_tab.
append 'SHACK' to word_tab.
append 'GONNA' to word_tab.
append 'SAVES' to word_tab.
append 'STUMP' to word_tab.
append 'FERRY' to word_tab.
append 'IDOLS' to word_tab.
append 'COOKS' to word_tab.
append 'JUICY' to word_tab.
append 'GLARE' to word_tab.
append 'CARTS' to word_tab.
append 'ALLOY' to word_tab.
append 'BULBS' to word_tab.
append 'LAWNS' to word_tab.
append 'LASTS' to word_tab.
append 'FUELS' to word_tab.
append 'ODDLY' to word_tab.
append 'CRANE' to word_tab.
append 'FILED' to word_tab.
append 'WEIRD' to word_tab.
append 'SHAWL' to word_tab.
append 'SLIPS' to word_tab.
append 'TROOP' to word_tab.
append 'BOLTS' to word_tab.
append 'SUITE' to word_tab.
append 'SLEEK' to word_tab.
append 'QUILT' to word_tab.
append 'TRAMP' to word_tab.
append 'BLAZE' to word_tab.
append 'ATLAS' to word_tab.
append 'ODORS' to word_tab.
append 'SCRUB' to word_tab.
append 'CRABS' to word_tab.
append 'PROBE' to word_tab.
append 'LOGIC' to word_tab.
append 'ADOBE' to word_tab.
append 'EXILE' to word_tab.
append 'REBEL' to word_tab.
append 'GRIND' to word_tab.
append 'STING' to word_tab.
append 'SPINE' to word_tab.
append 'CLING' to word_tab.
append 'DESKS' to word_tab.
append 'GROVE' to word_tab.
append 'LEAPS' to word_tab.
append 'PROSE' to word_tab.
append 'LOFTY' to word_tab.
append 'AGONY' to word_tab.
append 'SNARE' to word_tab.
append 'TUSKS' to word_tab.
append 'BULLS' to word_tab.
append 'MOODS' to word_tab.
append 'HUMID' to word_tab.
append 'FINER' to word_tab.
append 'DIMLY' to word_tab.
append 'PLANK' to word_tab.
append 'CHINA' to word_tab.
append 'PINES' to word_tab.
append 'GUILT' to word_tab.
append 'SACKS' to word_tab.
append 'BRACE' to word_tab.
append 'QUOTE' to word_tab.
append 'LATHE' to word_tab.
append 'GAILY' to word_tab.
append 'FONTS' to word_tab.
append 'SCALP' to word_tab.
append 'ADOPT' to word_tab.
append 'FOGGY' to word_tab.
append 'FERNS' to word_tab.
append 'GRAMS' to word_tab.
append 'CLUMP' to word_tab.
append 'PERCH' to word_tab.
append 'TUMOR' to word_tab.
append 'TEENS' to word_tab.
append 'CRANK' to word_tab.
append 'FABLE' to word_tab.
append 'HEDGE' to word_tab.
append 'GENES' to word_tab.
append 'SOBER' to word_tab.
append 'BOAST' to word_tab.
append 'TRACT' to word_tab.
append 'CIGAR' to word_tab.
append 'UNITE' to word_tab.
append 'OWING' to word_tab.
append 'THIGH' to word_tab.
append 'HAIKU' to word_tab.
append 'SWISH' to word_tab.
append 'DIKES' to word_tab.
append 'WEDGE' to word_tab.
append 'BOOTH' to word_tab.
append 'EASED' to word_tab.
append 'FRAIL' to word_tab.
append 'COUGH' to word_tab.
append 'TOMBS' to word_tab.
append 'DARTS' to word_tab.
append 'FORTS' to word_tab.
append 'CHOIR' to word_tab.
append 'POUCH' to word_tab.
append 'PINCH' to word_tab.
append 'HAIRY' to word_tab.
append 'BUYER' to word_tab.
append 'TORCH' to word_tab.
append 'VIGOR' to word_tab.
append 'WALTZ' to word_tab.
append 'HEATS' to word_tab.
append 'HERBS' to word_tab.
append 'USERS' to word_tab.
append 'FLINT' to word_tab.
append 'CLICK' to word_tab.
append 'MADAM' to word_tab.
append 'BLEAK' to word_tab.
append 'BLUNT' to word_tab.
append 'AIDED' to word_tab.
append 'LACKS' to word_tab.
append 'MASKS' to word_tab.
append 'WADED' to word_tab.
append 'RISKS' to word_tab.
append 'NURSE' to word_tab.
append 'CHAOS' to word_tab.
append 'SEWED' to word_tab.
append 'CURED' to word_tab.
append 'AMPLE' to word_tab.
append 'LEASE' to word_tab.
append 'STEAK' to word_tab.
append 'SINKS' to word_tab.
append 'MERIT' to word_tab.
append 'BLUFF' to word_tab.
append 'BATHE' to word_tab.
append 'GLEAM' to word_tab.
append 'BONUS' to word_tab.
append 'COLTS' to word_tab.
append 'SHEAR' to word_tab.
append 'GLAND' to word_tab.
append 'SILKY' to word_tab.
append 'SKATE' to word_tab.
append 'BIRCH' to word_tab.
append 'ANVIL' to word_tab.
append 'SLEDS' to word_tab.
append 'GROAN' to word_tab.
append 'MAIDS' to word_tab.
append 'MEETS' to word_tab.
append 'SPECK' to word_tab.
append 'HYMNS' to word_tab.
append 'HINTS' to word_tab.
append 'DROWN' to word_tab.
append 'BOSOM' to word_tab.
append 'SLICK' to word_tab.
append 'QUEST' to word_tab.
append 'COILS' to word_tab.
append 'SPIED' to word_tab.
append 'SNOWS' to word_tab.
append 'STEAD' to word_tab.
append 'SNACK' to word_tab.
append 'PLOWS' to word_tab.
append 'BLOND' to word_tab.
append 'TAMED' to word_tab.
append 'THORN' to word_tab.
append 'WAITS' to word_tab.
append 'GLUED' to word_tab.
append 'BANJO' to word_tab.
append 'TEASE' to word_tab.
append 'ARENA' to word_tab.
append 'BULKY' to word_tab.
append 'CARVE' to word_tab.
append 'STUNT' to word_tab.
append 'WARMS' to word_tab.
append 'SHADY' to word_tab.
append 'RAZOR' to word_tab.
append 'FOLLY' to word_tab.
append 'LEAFY' to word_tab.
append 'NOTCH' to word_tab.
append 'FOOLS' to word_tab.
append 'OTTER' to word_tab.
append 'PEARS' to word_tab.
append 'FLUSH' to word_tab.
append 'GENUS' to word_tab.
append 'ACHED' to word_tab.
append 'FIVES' to word_tab.
append 'FLAPS' to word_tab.
append 'SPOUT' to word_tab.
append 'SMOTE' to word_tab.
append 'FUMES' to word_tab.
append 'ADAPT' to word_tab.
append 'CUFFS' to word_tab.
append 'TASTY' to word_tab.
append 'STOOP' to word_tab.
append 'CLIPS' to word_tab.
append 'DISKS' to word_tab.
append 'SNIFF' to word_tab.
append 'LANES' to word_tab.
append 'BRISK' to word_tab.
append 'IMPLY' to word_tab.
append 'DEMON' to word_tab.
append 'SUPER' to word_tab.
append 'FURRY' to word_tab.
append 'RAGED' to word_tab.
append 'GROWL' to word_tab.
append 'TEXTS' to word_tab.
append 'HARDY' to word_tab.
append 'STUNG' to word_tab.
append 'TYPED' to word_tab.
append 'HATES' to word_tab.
append 'WISER' to word_tab.
append 'TIMID' to word_tab.
append 'SERUM' to word_tab.
append 'BEAKS' to word_tab.
append 'ROTOR' to word_tab.
append 'CASTS' to word_tab.
append 'BATHS' to word_tab.
append 'GLIDE' to word_tab.
append 'PLOTS' to word_tab.
append 'TRAIT' to word_tab.
append 'RESIN' to word_tab.
append 'SLUMS' to word_tab.
append 'LYRIC' to word_tab.
append 'PUFFS' to word_tab.
append 'DECKS' to word_tab.
append 'BROOD' to word_tab.
append 'MOURN' to word_tab.
append 'ALOFT' to word_tab.
append 'ABUSE' to word_tab.
append 'WHIRL' to word_tab.
append 'EDGED' to word_tab.
append 'OVARY' to word_tab.
append 'QUACK' to word_tab.
append 'HEAPS' to word_tab.
append 'SLANG' to word_tab.
append 'AWAIT' to word_tab.
append 'CIVIC' to word_tab.
append 'SAINT' to word_tab.
append 'BEVEL' to word_tab.
append 'SONAR' to word_tab.
append 'AUNTS' to word_tab.
append 'PACKS' to word_tab.
append 'FROZE' to word_tab.
append 'TONIC' to word_tab.
append 'CORPS' to word_tab.
append 'SWARM' to word_tab.
append 'FRANK' to word_tab.
append 'REPAY' to word_tab.
append 'GAUNT' to word_tab.
append 'WIRED' to word_tab.
append 'NIECE' to word_tab.
append 'CELLO' to word_tab.
append 'NEEDY' to word_tab.
append 'CHUCK' to word_tab.
append 'STONY' to word_tab.
append 'MEDIA' to word_tab.
append 'SURGE' to word_tab.
append 'HURTS' to word_tab.
append 'REPEL' to word_tab.
append 'HUSKY' to word_tab.
append 'DATED' to word_tab.
append 'HUNTS' to word_tab.
append 'MISTS' to word_tab.
append 'EXERT' to word_tab.
append 'DRIES' to word_tab.
append 'MATES' to word_tab.
append 'SWORN' to word_tab.
append 'BAKER' to word_tab.
append 'SPICE' to word_tab.
append 'OASIS' to word_tab.
append 'BOILS' to word_tab.
append 'SPURS' to word_tab.
append 'DOVES' to word_tab.
append 'SNEAK' to word_tab.
append 'PACES' to word_tab.
append 'COLON' to word_tab.
append 'SIEGE' to word_tab.
append 'STRUM' to word_tab.
append 'DRIER' to word_tab.
append 'CACAO' to word_tab.
append 'HUMUS' to word_tab.
append 'BALES' to word_tab.
append 'PIPED' to word_tab.
append 'NASTY' to word_tab.
append 'RINSE' to word_tab.
append 'BOXER' to word_tab.
append 'SHRUB' to word_tab.
append 'AMUSE' to word_tab.
append 'TACKS' to word_tab.
append 'CITED' to word_tab.
append 'SLUNG' to word_tab.
append 'DELTA' to word_tab.
append 'LADEN' to word_tab.
append 'LARVA' to word_tab.
append 'RENTS' to word_tab.
append 'YELLS' to word_tab.
append 'SPOOL' to word_tab.
append 'SPILL' to word_tab.
append 'CRUSH' to word_tab.
append 'JEWEL' to word_tab.
append 'SNAPS' to word_tab.
append 'STAIN' to word_tab.
append 'KICKS' to word_tab.
append 'TYING' to word_tab.
append 'SLITS' to word_tab.
append 'RATED' to word_tab.
append 'EERIE' to word_tab.
append 'SMASH' to word_tab.
append 'PLUMS' to word_tab.
append 'ZEBRA' to word_tab.
append 'EARNS' to word_tab.
append 'BUSHY' to word_tab.
append 'SCARY' to word_tab.
append 'SQUAD' to word_tab.
append 'TUTOR' to word_tab.
append 'SILKS' to word_tab.
append 'SLABS' to word_tab.
append 'BUMPS' to word_tab.
append 'EVILS' to word_tab.
append 'FANGS' to word_tab.
append 'SNOUT' to word_tab.
append 'PERIL' to word_tab.
append 'PIVOT' to word_tab.
append 'YACHT' to word_tab.
append 'LOBBY' to word_tab.
append 'JEANS' to word_tab.
append 'GRINS' to word_tab.
append 'VIOLA' to word_tab.
append 'LINER' to word_tab.
append 'COMET' to word_tab.
append 'SCARS' to word_tab.
append 'CHOPS' to word_tab.
append 'RAIDS' to word_tab.
append 'EATER' to word_tab.
append 'SLATE' to word_tab.
append 'SKIPS' to word_tab.
append 'SOLES' to word_tab.
append 'MISTY' to word_tab.
append 'URINE' to word_tab.
append 'KNOBS' to word_tab.
append 'SLEET' to word_tab.
append 'HOLLY' to word_tab.
append 'PESTS' to word_tab.
append 'FORKS' to word_tab.
append 'GRILL' to word_tab.
append 'TRAYS' to word_tab.
append 'PAILS' to word_tab.
append 'BORNE' to word_tab.
append 'TENOR' to word_tab.
append 'WARES' to word_tab.
append 'CAROL' to word_tab.
append 'WOODY' to word_tab.
append 'CANON' to word_tab.
append 'WAKES' to word_tab.
append 'KITTY' to word_tab.
append 'MINER' to word_tab.
append 'POLLS' to word_tab.
append 'SHAKY' to word_tab.
append 'NASAL' to word_tab.
append 'SCORN' to word_tab.
append 'CHESS' to word_tab.
append 'TAXIS' to word_tab.
append 'CRATE' to word_tab.
append 'SHYLY' to word_tab.
append 'TULIP' to word_tab.
append 'FORGE' to word_tab.
append 'NYMPH' to word_tab.
append 'BUDGE' to word_tab.
append 'LOWLY' to word_tab.
append 'ABIDE' to word_tab.
append 'DEPOT' to word_tab.
append 'OASES' to word_tab.
append 'ASSES' to word_tab.
append 'SHEDS' to word_tab.
append 'FUDGE' to word_tab.
append 'PILLS' to word_tab.
append 'RIVET' to word_tab.
append 'THINE' to word_tab.
append 'GROOM' to word_tab.
append 'LANKY' to word_tab.
append 'BOOST' to word_tab.
append 'BROTH' to word_tab.
append 'HEAVE' to word_tab.
append 'GRAVY' to word_tab.
append 'BEECH' to word_tab.
append 'TIMED' to word_tab.
append 'QUAIL' to word_tab.
append 'INERT' to word_tab.
append 'GEARS' to word_tab.
append 'CHICK' to word_tab.
append 'HINGE' to word_tab.
append 'TRASH' to word_tab.
append 'CLASH' to word_tab.
append 'SIGHS' to word_tab.
append 'RENEW' to word_tab.
append 'BOUGH' to word_tab.
append 'DWARF' to word_tab.
append 'SLOWS' to word_tab.
append 'QUILL' to word_tab.
append 'SHAVE' to word_tab.
append 'SPORE' to word_tab.
append 'SIXES' to word_tab.
append 'CHUNK' to word_tab.
append 'MADLY' to word_tab.
append 'PACED' to word_tab.
append 'BRAID' to word_tab.
append 'FUZZY' to word_tab.
append 'MOTTO' to word_tab.
append 'SPIES' to word_tab.
append 'SLACK' to word_tab.
append 'MUCUS' to word_tab.
append 'MAGMA' to word_tab.
append 'AWFUL' to word_tab.
append 'DISCS' to word_tab.
append 'ERASE' to word_tab.
append 'POSED' to word_tab.
append 'ASSET' to word_tab.
append 'CIDER' to word_tab.
append 'TAPER' to word_tab.
append 'THEFT' to word_tab.
append 'CHURN' to word_tab.
append 'SATIN' to word_tab.
append 'SLOTS' to word_tab.
append 'TAXED' to word_tab.
append 'BULLY' to word_tab.
append 'SLOTH' to word_tab.
append 'SHALE' to word_tab.
append 'TREAD' to word_tab.
append 'RAKED' to word_tab.
append 'CURDS' to word_tab.
append 'MANOR' to word_tab.
append 'AISLE' to word_tab.
append 'BULGE' to word_tab.
append 'LOINS' to word_tab.
append 'STAIR' to word_tab.
append 'TAPES' to word_tab.
append 'LEANS' to word_tab.
append 'BUNKS' to word_tab.
append 'SQUAT' to word_tab.
append 'TOWED' to word_tab.
append 'LANCE' to word_tab.
append 'PANES' to word_tab.
append 'SAKES' to word_tab.
append 'HEIRS' to word_tab.
append 'CASTE' to word_tab.
append 'DUMMY' to word_tab.
append 'PORES' to word_tab.
append 'FAUNA' to word_tab.
append 'CROOK' to word_tab.
append 'POISE' to word_tab.
append 'EPOCH' to word_tab.
append 'RISKY' to word_tab.
append 'WARNS' to word_tab.
append 'FLING' to word_tab.
append 'BERRY' to word_tab.
append 'GRAPE' to word_tab.
append 'FLANK' to word_tab.
append 'DRAGS' to word_tab.
append 'SQUID' to word_tab.
append 'PELTS' to word_tab.
append 'ICING' to word_tab.
append 'IRONY' to word_tab.
append 'IRONS' to word_tab.
append 'BARKS' to word_tab.
append 'WHOOP' to word_tab.
append 'CHOKE' to word_tab.
append 'DIETS' to word_tab.
append 'WHIPS' to word_tab.
append 'TALLY' to word_tab.
append 'DOZED' to word_tab.
append 'TWINE' to word_tab.
append 'KITES' to word_tab.
append 'BIKES' to word_tab.
append 'TICKS' to word_tab.
append 'RIOTS' to word_tab.
append 'ROARS' to word_tab.
append 'VAULT' to word_tab.
append 'LOOMS' to word_tab.
append 'SCOLD' to word_tab.
append 'BLINK' to word_tab.
append 'DANDY' to word_tab.
append 'PUPAE' to word_tab.
append 'SIEVE' to word_tab.
append 'SPIKE' to word_tab.
append 'DUCTS' to word_tab.
append 'LENDS' to word_tab.
append 'PIZZA' to word_tab.
append 'BRINK' to word_tab.
append 'WIDEN' to word_tab.
append 'PLUMB' to word_tab.
append 'PAGAN' to word_tab.
append 'FEATS' to word_tab.
append 'BISON' to word_tab.
append 'SOGGY' to word_tab.
append 'SCOOP' to word_tab.
append 'ARGON' to word_tab.
append 'NUDGE' to word_tab.
append 'SKIFF' to word_tab.
append 'AMBER' to word_tab.
append 'SEXES' to word_tab.
append 'ROUSE' to word_tab.
append 'SALTS' to word_tab.
append 'HITCH' to word_tab.
append 'EXALT' to word_tab.
append 'LEASH' to word_tab.
append 'DINED' to word_tab.
append 'CHUTE' to word_tab.
append 'SNORT' to word_tab.
append 'GUSTS' to word_tab.
append 'MELON' to word_tab.
append 'CHEAT' to word_tab.
append 'REEFS' to word_tab.
append 'LLAMA' to word_tab.
append 'LASSO' to word_tab.
append 'DEBUT' to word_tab.
append 'QUOTA' to word_tab.
append 'OATHS' to word_tab.
append 'PRONE' to word_tab.
append 'MIXES' to word_tab.
append 'RAFTS' to word_tab.
append 'DIVES' to word_tab.
append 'STALE' to word_tab.
append 'INLET' to word_tab.
append 'FLICK' to word_tab.
append 'PINTO' to word_tab.
append 'BROWS' to word_tab.
append 'UNTIE' to word_tab.
append 'BATCH' to word_tab.
append 'GREED' to word_tab.
append 'CHORE' to word_tab.
append 'STIRS' to word_tab.
append 'BLUSH' to word_tab.
append 'ONSET' to word_tab.
append 'BARBS' to word_tab.
append 'VOLTS' to word_tab.
append 'BEIGE' to word_tab.
append 'SWOOP' to word_tab.
append 'PADDY' to word_tab.
append 'LACED' to word_tab.
append 'SHOVE' to word_tab.
append 'JERKY' to word_tab.
append 'POPPY' to word_tab.
append 'LEAKS' to word_tab.
append 'FARES' to word_tab.
append 'DODGE' to word_tab.
append 'GODLY' to word_tab.
append 'SQUAW' to word_tab.
append 'AFFIX' to word_tab.
append 'BRUTE' to word_tab.
append 'NICER' to word_tab.
append 'UNDUE' to word_tab.
append 'SNARL' to word_tab.
append 'MERGE' to word_tab.
append 'DOSES' to word_tab.
append 'SHOWY' to word_tab.
append 'DADDY' to word_tab.
append 'ROOST' to word_tab.
append 'VASES' to word_tab.
append 'SWIRL' to word_tab.
append 'PETTY' to word_tab.
append 'COLDS' to word_tab.
append 'CURRY' to word_tab.
append 'COBRA' to word_tab.
append 'GENIE' to word_tab.
append 'FLARE' to word_tab.
append 'MESSY' to word_tab.
append 'CORES' to word_tab.
append 'SOAKS' to word_tab.
append 'RIPEN' to word_tab.
append 'WHINE' to word_tab.
append 'AMINO' to word_tab.
append 'PLAID' to word_tab.
append 'SPINY' to word_tab.
append 'MOWED' to word_tab.
append 'BATON' to word_tab.
append 'PEERS' to word_tab.
append 'VOWED' to word_tab.
append 'PIOUS' to word_tab.
append 'SWANS' to word_tab.
append 'EXITS' to word_tab.
append 'AFOOT' to word_tab.
append 'PLUGS' to word_tab.
append 'IDIOM' to word_tab.
append 'CHILI' to word_tab.
append 'RITES' to word_tab.
append 'SERFS' to word_tab.
append 'CLEFT' to word_tab.
append 'BERTH' to word_tab.
append 'GRUBS' to word_tab.
append 'ANNEX' to word_tab.
append 'DIZZY' to word_tab.
append 'HASTY' to word_tab.
append 'LATCH' to word_tab.
append 'WASPS' to word_tab.
append 'MIRTH' to word_tab.
append 'BARON' to word_tab.
append 'PLEAD' to word_tab.
append 'ALOOF' to word_tab.
append 'AGING' to word_tab.
append 'PIXEL' to word_tab.
append 'BARED' to word_tab.
append 'MUMMY' to word_tab.
append 'HOTLY' to word_tab.
append 'AUGER' to word_tab.
append 'BUDDY' to word_tab.
append 'CHAPS' to word_tab.
append 'BADGE' to word_tab.
append 'STARK' to word_tab.
append 'FAIRS' to word_tab.
append 'GULLY' to word_tab.
append 'MUMPS' to word_tab.
append 'EMERY' to word_tab.
append 'FILLY' to word_tab.
append 'OVENS' to word_tab.
append 'DRONE' to word_tab.
append 'GAUZE' to word_tab.
append 'IDIOT' to word_tab.
append 'FUSSY' to word_tab.
append 'ANNOY' to word_tab.
append 'SHANK' to word_tab.
append 'GOUGE' to word_tab.
append 'BLEED' to word_tab.
append 'ELVES' to word_tab.
append 'ROPED' to word_tab.
append 'UNFIT' to word_tab.
append 'BAGGY' to word_tab.
append 'MOWER' to word_tab.
append 'SCANT' to word_tab.
append 'GRABS' to word_tab.
append 'FLEAS' to word_tab.
append 'LOUSY' to word_tab.
append 'ALBUM' to word_tab.
append 'SAWED' to word_tab.
append 'COOKY' to word_tab.
append 'MURKY' to word_tab.
append 'INFER' to word_tab.
append 'BURLY' to word_tab.
append 'WAGED' to word_tab.
append 'DINGY' to word_tab.
append 'BRINE' to word_tab.
append 'KNEEL' to word_tab.
append 'CREAK' to word_tab.
append 'VANES' to word_tab.
append 'SMOKY' to word_tab.
append 'SPURT' to word_tab.
append 'COMBS' to word_tab.
append 'EASEL' to word_tab.
append 'LACES' to word_tab.
append 'HUMPS' to word_tab.
append 'RUMOR' to word_tab.
append 'AROMA' to word_tab.
append 'HORDE' to word_tab.
append 'SWISS' to word_tab.
append 'LEAPT' to word_tab.
append 'OPIUM' to word_tab.
append 'SLIME' to word_tab.
append 'AFIRE' to word_tab.
append 'PANSY' to word_tab.
append 'MARES' to word_tab.
append 'SOAPS' to word_tab.
append 'HUSKS' to word_tab.
append 'SNIPS' to word_tab.
append 'HAZEL' to word_tab.
append 'LINED' to word_tab.
append 'CAFES' to word_tab.
append 'NAIVE' to word_tab.
append 'WRAPS' to word_tab.
append 'SIZED' to word_tab.
append 'PIERS' to word_tab.
append 'BESET' to word_tab.
append 'AGILE' to word_tab.
append 'TONGS' to word_tab.
append 'STEED' to word_tab.
append 'FRAUD' to word_tab.
append 'BOOTY' to word_tab.
append 'VALOR' to word_tab.
append 'DOWNY' to word_tab.
append 'WITTY' to word_tab.
append 'MOSSY' to word_tab.
append 'PSALM' to word_tab.
append 'SCUBA' to word_tab.
append 'TOURS' to word_tab.
append 'POLKA' to word_tab.
append 'MILKY' to word_tab.
append 'GAUDY' to word_tab.
append 'SHRUG' to word_tab.
append 'TUFTS' to word_tab.
append 'WILDS' to word_tab.
append 'LASER' to word_tab.
append 'TRUSS' to word_tab.
append 'HARES' to word_tab.
append 'CREED' to word_tab.
append 'LILAC' to word_tab.
append 'SIREN' to word_tab.
append 'TARRY' to word_tab.
append 'BRIBE' to word_tab.
append 'SWINE' to word_tab.
append 'MUTED' to word_tab.
append 'FLIPS' to word_tab.
append 'CURES' to word_tab.
append 'SINEW' to word_tab.
append 'BOXED' to word_tab.
append 'HOOPS' to word_tab.
append 'GASPS' to word_tab.
append 'HOODS' to word_tab.
append 'NICHE' to word_tab.
append 'YUCCA' to word_tab.
append 'GLOWS' to word_tab.
append 'SEWER' to word_tab.
append 'WHACK' to word_tab.
append 'FUSES' to word_tab.
append 'GOWNS' to word_tab.
append 'DROOP' to word_tab.
append 'BUCKS' to word_tab.
append 'PANGS' to word_tab.
append 'MAILS' to word_tab.
append 'WHISK' to word_tab.
append 'HAVEN' to word_tab.
append 'CLASP' to word_tab.
append 'SLING' to word_tab.
append 'STINT' to word_tab.
append 'URGES' to word_tab.
append 'CHAMP' to word_tab.
append 'PIETY' to word_tab.
append 'CHIRP' to word_tab.
append 'PLEAT' to word_tab.
append 'POSSE' to word_tab.
append 'SUNUP' to word_tab.
append 'MENUS' to word_tab.
append 'HOWLS' to word_tab.
append 'QUAKE' to word_tab.
append 'KNACK' to word_tab.
append 'PLAZA' to word_tab.
append 'FIEND' to word_tab.
append 'CAKED' to word_tab.
append 'BANGS' to word_tab.
append 'ERUPT' to word_tab.
append 'POKER' to word_tab.
append 'OLDEN' to word_tab.
append 'CRAMP' to word_tab.
append 'VOTER' to word_tab.
append 'POSES' to word_tab.
append 'MANLY' to word_tab.
append 'SLUMP' to word_tab.
append 'FINED' to word_tab.
append 'GRIPS' to word_tab.
append 'GAPED' to word_tab.
append 'PURGE' to word_tab.
append 'HIKED' to word_tab.
append 'MAIZE' to word_tab.
append 'FLUFF' to word_tab.
append 'STRUT' to word_tab.
append 'SLOOP' to word_tab.
append 'PROWL' to word_tab.
append 'ROACH' to word_tab.
append 'COCKS' to word_tab.
append 'BLAND' to word_tab.
append 'DIALS' to word_tab.
append 'PLUME' to word_tab.
append 'SLAPS' to word_tab.
append 'SOUPS' to word_tab.
append 'DULLY' to word_tab.
append 'WILLS' to word_tab.
append 'FOAMS' to word_tab.
append 'SOLOS' to word_tab.
append 'SKIER' to word_tab.
append 'EAVES' to word_tab.
append 'TOTEM' to word_tab.
append 'FUSED' to word_tab.
append 'LATEX' to word_tab.
append 'VEILS' to word_tab.
append 'MUSED' to word_tab.
append 'MAINS' to word_tab.
append 'MYRRH' to word_tab.
append 'RACKS' to word_tab.
append 'GALLS' to word_tab.
append 'GNATS' to word_tab.
append 'BOUTS' to word_tab.
append 'SISAL' to word_tab.
append 'SHUTS' to word_tab.
append 'HOSES' to word_tab.
append 'DRYLY' to word_tab.
append 'HOVER' to word_tab.
append 'GLOSS' to word_tab.
append 'SEEPS' to word_tab.
append 'DENIM' to word_tab.
append 'PUTTY' to word_tab.
append 'GUPPY' to word_tab.
append 'LEAKY' to word_tab.
append 'DUSKY' to word_tab.
append 'FILTH' to word_tab.
append 'OBOES' to word_tab.
append 'SPANS' to word_tab.
append 'FOWLS' to word_tab.
append 'ADORN' to word_tab.
append 'GLAZE' to word_tab.
append 'HAUNT' to word_tab.
append 'DARES' to word_tab.
append 'OBEYS' to word_tab.
append 'BAKES' to word_tab.
append 'ABYSS' to word_tab.
append 'SMELT' to word_tab.
append 'GANGS' to word_tab.
append 'ACHES' to word_tab.
append 'TRAWL' to word_tab.
append 'CLAPS' to word_tab.
append 'UNDID' to word_tab.
append 'SPICY' to word_tab.
append 'HOIST' to word_tab.
append 'FADES' to word_tab.
append 'VICAR' to word_tab.
append 'ACORN' to word_tab.
append 'PUSSY' to word_tab.
append 'GRUFF' to word_tab.
append 'MUSTY' to word_tab.
append 'TARTS' to word_tab.
append 'SNUFF' to word_tab.
append 'HUNCH' to word_tab.
append 'TRUCE' to word_tab.
append 'TWEED' to word_tab.
append 'DRYER' to word_tab.
append 'LOSER' to word_tab.
append 'SHEAF' to word_tab.
append 'MOLES' to word_tab.
append 'LAPSE' to word_tab.
append 'TAWNY' to word_tab.
append 'VEXED' to word_tab.
append 'AUTOS' to word_tab.
append 'WAGER' to word_tab.
append 'DOMES' to word_tab.
append 'SHEEN' to word_tab.
append 'CLANG' to word_tab.
append 'SPADE' to word_tab.
append 'SOWED' to word_tab.
append 'BROIL' to word_tab.
append 'SLYLY' to word_tab.
append 'STUDS' to word_tab.
append 'GRUNT' to word_tab.
append 'DONOR' to word_tab.
append 'SLUGS' to word_tab.
append 'ASPEN' to word_tab.
append 'HOMER' to word_tab.
append 'CROAK' to word_tab.
append 'TITHE' to word_tab.
append 'HALTS' to word_tab.
append 'AVERT' to word_tab.
append 'HAVOC' to word_tab.
append 'HOGAN' to word_tab.
append 'GLINT' to word_tab.
append 'RUDDY' to word_tab.
append 'JEEPS' to word_tab.
append 'FLAKY' to word_tab.
append 'LADLE' to word_tab.
append 'TAUNT' to word_tab.
append 'SNORE' to word_tab.
append 'FINES' to word_tab.
append 'PROPS' to word_tab.
append 'PRUNE' to word_tab.
append 'PESOS' to word_tab.
append 'RADII' to word_tab.
append 'POKES' to word_tab.
append 'TILED' to word_tab.
append 'DAISY' to word_tab.
append 'HERON' to word_tab.
append 'VILLA' to word_tab.
append 'FARCE' to word_tab.
append 'BINDS' to word_tab.
append 'CITES' to word_tab.
append 'FIXES' to word_tab.
append 'JERKS' to word_tab.
append 'LIVID' to word_tab.
append 'WAKED' to word_tab.
append 'INKED' to word_tab.
append 'BOOMS' to word_tab.
append 'CHEWS' to word_tab.
append 'LICKS' to word_tab.
append 'HYENA' to word_tab.
append 'SCOFF' to word_tab.
append 'LUSTY' to word_tab.
append 'SONIC' to word_tab.
append 'SMITH' to word_tab.
append 'USHER' to word_tab.
append 'TUCKS' to word_tab.
append 'VIGIL' to word_tab.
append 'MOLTS' to word_tab.
append 'SECTS' to word_tab.
append 'SPARS' to word_tab.
append 'DUMPS' to word_tab.
append 'SCALY' to word_tab.
append 'WISPS' to word_tab.
append 'SORES' to word_tab.
append 'MINCE' to word_tab.
append 'PANDA' to word_tab.
append 'FLIER' to word_tab.
append 'AXLES' to word_tab.
append 'PLIED' to word_tab.
append 'BOOBY' to word_tab.
append 'PATIO' to word_tab.
append 'RABBI' to word_tab.
append 'PETAL' to word_tab.
append 'POLYP' to word_tab.
append 'TINTS' to word_tab.
append 'GRATE' to word_tab.
append 'TROLL' to word_tab.
append 'TOLLS' to word_tab.
append 'RELIC' to word_tab.
append 'PHONY' to word_tab.
append 'BLEAT' to word_tab.
append 'FLAWS' to word_tab.
append 'FLAKE' to word_tab.
append 'SNAGS' to word_tab.
append 'APTLY' to word_tab.
append 'DRAWL' to word_tab.
append 'ULCER' to word_tab.
append 'SOAPY' to word_tab.
append 'BOSSY' to word_tab.
append 'MONKS' to word_tab.
append 'CRAGS' to word_tab.
append 'CAGED' to word_tab.
append 'TWANG' to word_tab.
append 'DINER' to word_tab.
append 'TAPED' to word_tab.
append 'CADET' to word_tab.
append 'GRIDS' to word_tab.
append 'SPAWN' to word_tab.
append 'GUILE' to word_tab.
append 'NOOSE' to word_tab.
append 'MORES' to word_tab.
append 'GIRTH' to word_tab.
append 'SLIMY' to word_tab.
append 'AIDES' to word_tab.
append 'SPASM' to word_tab.
append 'BURRS' to word_tab.
append 'ALIBI' to word_tab.
append 'LYMPH' to word_tab.
append 'SAUCY' to word_tab.
append 'MUGGY' to word_tab.
append 'LITER' to word_tab.
append 'JOKED' to word_tab.
append 'GOOFY' to word_tab.
append 'EXAMS' to word_tab.
append 'ENACT' to word_tab.
append 'STORK' to word_tab.
append 'LURED' to word_tab.
append 'TOXIC' to word_tab.
append 'OMENS' to word_tab.
append 'NEARS' to word_tab.
append 'COVET' to word_tab.
append 'WRUNG' to word_tab.
append 'FORUM' to word_tab.
append 'VENOM' to word_tab.
append 'MOODY' to word_tab.
append 'ALDER' to word_tab.
append 'SASSY' to word_tab.
append 'FLAIR' to word_tab.
append 'GUILD' to word_tab.
append 'PRAYS' to word_tab.
append 'WRENS' to word_tab.
append 'HAULS' to word_tab.
append 'STAVE' to word_tab.
append 'TILTS' to word_tab.
append 'PECKS' to word_tab.
append 'STOMP' to word_tab.
append 'GALES' to word_tab.
append 'TEMPT' to word_tab.
append 'CAPES' to word_tab.
append 'MESAS' to word_tab.
append 'OMITS' to word_tab.
append 'TEPEE' to word_tab.
append 'HARRY' to word_tab.
append 'WRING' to word_tab.
append 'EVOKE' to word_tab.
append 'LIMES' to word_tab.
append 'CLUCK' to word_tab.
append 'LUNGE' to word_tab.
append 'HIGHS' to word_tab.
append 'CANES' to word_tab.
append 'GIDDY' to word_tab.
append 'LITHE' to word_tab.
append 'VERGE' to word_tab.
append 'KHAKI' to word_tab.
append 'QUEUE' to word_tab.
append 'LOATH' to word_tab.
append 'FOYER' to word_tab.
append 'OUTDO' to word_tab.
append 'FARED' to word_tab.
append 'DETER' to word_tab.
append 'CRUMB' to word_tab.
append 'ASTIR' to word_tab.
append 'SPIRE' to word_tab.
append 'JUMPY' to word_tab.
append 'EXTOL' to word_tab.
append 'BUOYS' to word_tab.
append 'STUBS' to word_tab.
append 'LUCID' to word_tab.
append 'THONG' to word_tab.
append 'AFORE' to word_tab.
append 'WHIFF' to word_tab.
append 'MAXIM' to word_tab.
append 'HULLS' to word_tab.
append 'CLOGS' to word_tab.
append 'SLATS' to word_tab.
append 'JIFFY' to word_tab.
append 'ARBOR' to word_tab.
append 'CINCH' to word_tab.
append 'IGLOO' to word_tab.
append 'GOODY' to word_tab.
append 'GAZES' to word_tab.
append 'DOWEL' to word_tab.
append 'CALMS' to word_tab.
append 'BITCH' to word_tab.
append 'SCOWL' to word_tab.
append 'GULPS' to word_tab.
append 'CODED' to word_tab.
append 'WAVER' to word_tab.
append 'MASON' to word_tab.
append 'LOBES' to word_tab.
append 'EBONY' to word_tab.
append 'FLAIL' to word_tab.
append 'ISLES' to word_tab.
append 'CLODS' to word_tab.
append 'DAZED' to word_tab.
append 'ADEPT' to word_tab.
append 'OOZED' to word_tab.
append 'SEDAN' to word_tab.
append 'CLAYS' to word_tab.
append 'WARTS' to word_tab.
append 'KETCH' to word_tab.
append 'SKUNK' to word_tab.
append 'MANES' to word_tab.
append 'ADORE' to word_tab.
append 'SNEER' to word_tab.
append 'MANGO' to word_tab.
append 'FIORD' to word_tab.
append 'FLORA' to word_tab.
append 'ROOMY' to word_tab.
append 'MINKS' to word_tab.
append 'THAWS' to word_tab.
append 'WATTS' to word_tab.
append 'FREER' to word_tab.
append 'EXULT' to word_tab.
append 'PLUSH' to word_tab.
append 'PALED' to word_tab.
append 'TWAIN' to word_tab.
append 'CLINK' to word_tab.
append 'SCAMP' to word_tab.
append 'PAWED' to word_tab.
append 'GROPE' to word_tab.
append 'BRAVO' to word_tab.
append 'GABLE' to word_tab.
append 'STINK' to word_tab.
append 'SEVER' to word_tab.
append 'WANED' to word_tab.
append 'RARER' to word_tab.
append 'REGAL' to word_tab.
append 'WARDS' to word_tab.
append 'FAWNS' to word_tab.
append 'BABES' to word_tab.
append 'UNIFY' to word_tab.
append 'AMEND' to word_tab.
append 'OAKEN' to word_tab.
append 'GLADE' to word_tab.
append 'VISOR' to word_tab.
append 'HEFTY' to word_tab.
append 'NINES' to word_tab.
append 'THROB' to word_tab.
append 'PECAN' to word_tab.
append 'BUTTS' to word_tab.
append 'PENCE' to word_tab.
append 'SILLS' to word_tab.
append 'JAILS' to word_tab.
append 'FLYER' to word_tab.
append 'SABER' to word_tab.
append 'NOMAD' to word_tab.
append 'MITER' to word_tab.
append 'BEEPS' to word_tab.
append 'DOMED' to word_tab.
append 'GULFS' to word_tab.
append 'CURBS' to word_tab.
append 'HEATH' to word_tab.
append 'MOORS' to word_tab.
append 'AORTA' to word_tab.
append 'LARKS' to word_tab.
append 'TANGY' to word_tab.
append 'WRYLY' to word_tab.
append 'CHEEP' to word_tab.
append 'RAGES' to word_tab.
append 'EVADE' to word_tab.
append 'LURES' to word_tab.
append 'FREAK' to word_tab.
append 'VOGUE' to word_tab.
append 'TUNIC' to word_tab.
append 'SLAMS' to word_tab.
append 'KNITS' to word_tab.
append 'DUMPY' to word_tab.
append 'MANIA' to word_tab.
append 'SPITS' to word_tab.
append 'FIRTH' to word_tab.
append 'HIKES' to word_tab.
append 'TROTS' to word_tab.
append 'NOSED' to word_tab.
append 'CLANK' to word_tab.
append 'DOGMA' to word_tab.
append 'BLOAT' to word_tab.
append 'BALSA' to word_tab.
append 'GRAFT' to word_tab.
append 'MIDDY' to word_tab.
append 'STILE' to word_tab.
append 'KEYED' to word_tab.
append 'FINCH' to word_tab.
append 'SPERM' to word_tab.
append 'CHAFF' to word_tab.
append 'WILES' to word_tab.
append 'AMIGO' to word_tab.
append 'COPRA' to word_tab.
append 'AMISS' to word_tab.
append 'EYING' to word_tab.
append 'TWIRL' to word_tab.
append 'LURCH' to word_tab.
append 'POPES' to word_tab.
append 'CHINS' to word_tab.
append 'SMOCK' to word_tab.
append 'TINES' to word_tab.
append 'GUISE' to word_tab.
append 'GRITS' to word_tab.
append 'JUNKS' to word_tab.
append 'SHOAL' to word_tab.
append 'CACHE' to word_tab.
append 'TAPIR' to word_tab.
append 'ATOLL' to word_tab.
append 'DEITY' to word_tab.
append 'TOILS' to word_tab.
append 'SPREE' to word_tab.
append 'MOCKS' to word_tab.
append 'SCANS' to word_tab.
append 'SHORN' to word_tab.
append 'REVEL' to word_tab.
append 'RAVEN' to word_tab.
append 'HOARY' to word_tab.
append 'REELS' to word_tab.
append 'SCUFF' to word_tab.
append 'MIMIC' to word_tab.
append 'WEEDY' to word_tab.
append 'CORNY' to word_tab.
append 'TRUER' to word_tab.
append 'ROUGE' to word_tab.
append 'EMBER' to word_tab.
append 'FLOES' to word_tab.
append 'TORSO' to word_tab.
append 'WIPES' to word_tab.
append 'EDICT' to word_tab.
append 'SULKY' to word_tab.
append 'RECUR' to word_tab.
append 'GROIN' to word_tab.
append 'BASTE' to word_tab.
append 'KINKS' to word_tab.
append 'SURER' to word_tab.
append 'PIGGY' to word_tab.
append 'MOLDY' to word_tab.
append 'FRANC' to word_tab.
append 'LIARS' to word_tab.
append 'INEPT' to word_tab.
append 'GUSTY' to word_tab.
append 'FACET' to word_tab.
append 'JETTY' to word_tab.
append 'EQUIP' to word_tab.
append 'LEPER' to word_tab.
append 'SLINK' to word_tab.
append 'SOARS' to word_tab.
append 'CATER' to word_tab.
append 'DOWRY' to word_tab.
append 'SIDED' to word_tab.
append 'YEARN' to word_tab.
append 'DECOY' to word_tab.
append 'TABOO' to word_tab.
append 'OVALS' to word_tab.
append 'HEALS' to word_tab.
append 'PLEAS' to word_tab.
append 'BERET' to word_tab.
append 'SPILT' to word_tab.
append 'GAYLY' to word_tab.
append 'ROVER' to word_tab.
append 'ENDOW' to word_tab.
append 'PYGMY' to word_tab.
append 'CARAT' to word_tab.
append 'ABBEY' to word_tab.
append 'VENTS' to word_tab.
append 'WAKEN' to word_tab.
append 'CHIMP' to word_tab.
append 'FUMED' to word_tab.
append 'SODAS' to word_tab.
append 'VINYL' to word_tab.
append 'CLOUT' to word_tab.
append 'WADES' to word_tab.
append 'MITES' to word_tab.
append 'SMIRK' to word_tab.
append 'BORES' to word_tab.
append 'BUNNY' to word_tab.
append 'SURLY' to word_tab.
append 'FROCK' to word_tab.
append 'FORAY' to word_tab.
append 'PURER' to word_tab.
append 'MILKS' to word_tab.
append 'QUERY' to word_tab.
append 'MIRED' to word_tab.
append 'BLARE' to word_tab.
append 'FROTH' to word_tab.
append 'GRUEL' to word_tab.
append 'NAVEL' to word_tab.
append 'PALER' to word_tab.
append 'PUFFY' to word_tab.
append 'CASKS' to word_tab.
append 'GRIME' to word_tab.
append 'DERBY' to word_tab.
append 'MAMMA' to word_tab.
append 'GAVEL' to word_tab.
append 'TEDDY' to word_tab.
append 'VOMIT' to word_tab.
append 'MOANS' to word_tab.
append 'ALLOT' to word_tab.
append 'DEFER' to word_tab.
append 'WIELD' to word_tab.
append 'VIPER' to word_tab.
append 'LOUSE' to word_tab.
append 'ERRED' to word_tab.
append 'HEWED' to word_tab.
append 'ABHOR' to word_tab.
append 'WREST' to word_tab.
append 'WAXEN' to word_tab.
append 'ADAGE' to word_tab.
append 'ARDOR' to word_tab.
append 'STABS' to word_tab.
append 'PORED' to word_tab.
append 'RONDO' to word_tab.
append 'LOPED' to word_tab.
append 'FISHY' to word_tab.
append 'BIBLE' to word_tab.
append 'HIRES' to word_tab.
append 'FOALS' to word_tab.
append 'FEUDS' to word_tab.
append 'JAMBS' to word_tab.
append 'THUDS' to word_tab.
append 'JEERS' to word_tab.
append 'KNEAD' to word_tab.
append 'QUIRK' to word_tab.
append 'RUGBY' to word_tab.
append 'EXPEL' to word_tab.
append 'GREYS' to word_tab.
append 'RIGOR' to word_tab.
append 'ESTER' to word_tab.
append 'LYRES' to word_tab.
append 'ABACK' to word_tab.
append 'GLUES' to word_tab.
append 'LOTUS' to word_tab.
append 'LURID' to word_tab.
append 'RUNGS' to word_tab.
append 'HUTCH' to word_tab.
append 'THYME' to word_tab.
append 'VALET' to word_tab.
append 'TOMMY' to word_tab.
append 'YOKES' to word_tab.
append 'EPICS' to word_tab.
append 'TRILL' to word_tab.
append 'PIKES' to word_tab.
append 'OZONE' to word_tab.
append 'CAPER' to word_tab.
append 'CHIME' to word_tab.
append 'FREES' to word_tab.
append 'FAMED' to word_tab.
append 'LEECH' to word_tab.
append 'SMITE' to word_tab.
append 'NEIGH' to word_tab.
append 'ERODE' to word_tab.
append 'ROBED' to word_tab.
append 'HOARD' to word_tab.
append 'SALVE' to word_tab.
append 'CONIC' to word_tab.
append 'GAWKY' to word_tab.
append 'CRAZE' to word_tab.
append 'JACKS' to word_tab.
append 'GLOAT' to word_tab.
append 'MUSHY' to word_tab.
append 'RUMPS' to word_tab.
append 'FETUS' to word_tab.
append 'WINCE' to word_tab.
append 'PINKS' to word_tab.
append 'SHALT' to word_tab.
append 'TOOTS' to word_tab.
append 'GLENS' to word_tab.
append 'COOED' to word_tab.
append 'RUSTS' to word_tab.
append 'STEWS' to word_tab.
append 'SHRED' to word_tab.
append 'PARKA' to word_tab.
append 'CHUGS' to word_tab.
append 'WINKS' to word_tab.
append 'CLOTS' to word_tab.
append 'SHREW' to word_tab.
append 'BOOED' to word_tab.
append 'FILMY' to word_tab.
append 'JUROR' to word_tab.
append 'DENTS' to word_tab.
append 'GUMMY' to word_tab.
append 'GRAYS' to word_tab.
append 'HOOKY' to word_tab.
append 'BUTTE' to word_tab.
append 'DOGIE' to word_tab.
append 'POLED' to word_tab.
append 'REAMS' to word_tab.
append 'FIFES' to word_tab.
append 'SPANK' to word_tab.
append 'GAYER' to word_tab.
append 'TEPID' to word_tab.
append 'SPOOK' to word_tab.
append 'TAINT' to word_tab.
append 'FLIRT' to word_tab.
append 'ROGUE' to word_tab.
append 'SPIKY' to word_tab.
append 'OPALS' to word_tab.
append 'MISER' to word_tab.
append 'COCKY' to word_tab.
append 'COYLY' to word_tab.
append 'BALMY' to word_tab.
append 'SLOSH' to word_tab.
append 'BRAWL' to word_tab.
append 'APHID' to word_tab.
append 'FAKED' to word_tab.
append 'HYDRA' to word_tab.
append 'BRAGS' to word_tab.
append 'CHIDE' to word_tab.
append 'YANKS' to word_tab.
append 'ALLAY' to word_tab.
append 'VIDEO' to word_tab.
append 'ALTOS' to word_tab.
append 'EASES' to word_tab.
append 'METED' to word_tab.
append 'CHASM' to word_tab.
append 'LONGS' to word_tab.
append 'EXCEL' to word_tab.
append 'TAFFY' to word_tab.
append 'IMPEL' to word_tab.
append 'SAVOR' to word_tab.
append 'KOALA' to word_tab.
append 'QUAYS' to word_tab.
append 'DAWNS' to word_tab.
append 'PROXY' to word_tab.
append 'CLOVE' to word_tab.
append 'DUETS' to word_tab.
append 'DREGS' to word_tab.
append 'TARDY' to word_tab.
append 'BRIAR' to word_tab.
append 'GRIMY' to word_tab.
append 'ULTRA' to word_tab.
append 'MEATY' to word_tab.
append 'HALVE' to word_tab.
append 'WAILS' to word_tab.
append 'SUEDE' to word_tab.
append 'MAUVE' to word_tab.
append 'ENVOY' to word_tab.
append 'ARSON' to word_tab.
append 'COVES' to word_tab.
append 'GOOEY' to word_tab.
append 'BREWS' to word_tab.
append 'SOFAS' to word_tab.
append 'CHUMS' to word_tab.
append 'AMAZE' to word_tab.
append 'ZOOMS' to word_tab.
append 'ABBOT' to word_tab.
append 'HALOS' to word_tab.
append 'SCOUR' to word_tab.
append 'SUING' to word_tab.
append 'CRIBS' to word_tab.
append 'SAGAS' to word_tab.
append 'ENEMA' to word_tab.
append 'WORDY' to word_tab.
append 'HARPS' to word_tab.
append 'COUPE' to word_tab.
append 'MOLAR' to word_tab.
append 'FLOPS' to word_tab.
append 'WEEPS' to word_tab.
append 'MINTS' to word_tab.
append 'ASHEN' to word_tab.
append 'FELTS' to word_tab.
append 'ASKEW' to word_tab.
append 'MUNCH' to word_tab.
append 'MEWED' to word_tab.
append 'DIVAN' to word_tab.
append 'VICES' to word_tab.
append 'JUMBO' to word_tab.
append 'BLOBS' to word_tab.
append 'BLOTS' to word_tab.
append 'SPUNK' to word_tab.
append 'ACRID' to word_tab.
append 'TOPAZ' to word_tab.
append 'CUBED' to word_tab.
append 'CLANS' to word_tab.
append 'FLEES' to word_tab.
append 'SLURS' to word_tab.
append 'GNAWS' to word_tab.
append 'WELDS' to word_tab.
append 'FORDS' to word_tab.
append 'EMITS' to word_tab.
append 'AGATE' to word_tab.
append 'PUMAS' to word_tab.
append 'MENDS' to word_tab.
append 'DARKS' to word_tab.
append 'DUKES' to word_tab.
append 'PLIES' to word_tab.
append 'CANNY' to word_tab.
append 'HOOTS' to word_tab.
append 'OOZES' to word_tab.
append 'LAMED' to word_tab.
append 'FOULS' to word_tab.
append 'CLEFS' to word_tab.
append 'NICKS' to word_tab.
append 'MATED' to word_tab.
append 'SKIMS' to word_tab.
append 'BRUNT' to word_tab.
append 'TUBER' to word_tab.
append 'TINGE' to word_tab.
append 'FATES' to word_tab.
append 'DITTY' to word_tab.
append 'THINS' to word_tab.
append 'FRETS' to word_tab.
append 'EIDER' to word_tab.
append 'BAYOU' to word_tab.
append 'MULCH' to word_tab.
append 'FASTS' to word_tab.
append 'AMASS' to word_tab.
append 'DAMPS' to word_tab.
append 'MORNS' to word_tab.
append 'FRIAR' to word_tab.
append 'PALSY' to word_tab.
append 'VISTA' to word_tab.
append 'CROON' to word_tab.
append 'CONCH' to word_tab.
append 'UDDER' to word_tab.
append 'TACOS' to word_tab.
append 'SKITS' to word_tab.
append 'MIKES' to word_tab.
append 'QUITS' to word_tab.
append 'PREEN' to word_tab.
append 'ASTER' to word_tab.
append 'ADDER' to word_tab.
append 'ELEGY' to word_tab.
append 'PULPY' to word_tab.
append 'SCOWS' to word_tab.
append 'BALED' to word_tab.
append 'HOVEL' to word_tab.
append 'LAVAS' to word_tab.
append 'CRAVE' to word_tab.
append 'OPTIC' to word_tab.
append 'WELTS' to word_tab.
append 'BUSTS' to word_tab.
append 'KNAVE' to word_tab.
append 'RAZED' to word_tab.
append 'SHINS' to word_tab.
append 'TOTES' to word_tab.
append 'SCOOT' to word_tab.
append 'DEARS' to word_tab.
append 'CROCK' to word_tab.
append 'MUTES' to word_tab.
append 'TRIMS' to word_tab.
append 'SKEIN' to word_tab.
append 'DOTED' to word_tab.
append 'SHUNS' to word_tab.
append 'VEERS' to word_tab.
append 'FAKES' to word_tab.
append 'YOKED' to word_tab.
append 'WOOED' to word_tab.
append 'HACKS' to word_tab.
append 'SPRIG' to word_tab.
append 'WANDS' to word_tab.
append 'LULLS' to word_tab.
append 'SEERS' to word_tab.
append 'SNOBS' to word_tab.
append 'NOOKS' to word_tab.
append 'PINED' to word_tab.
append 'PERKY' to word_tab.
append 'MOOED' to word_tab.
append 'FRILL' to word_tab.
append 'DINES' to word_tab.
append 'BOOZE' to word_tab.
append 'TRIPE' to word_tab.
append 'PRONG' to word_tab.
append 'DRIPS' to word_tab.
append 'ODDER' to word_tab.
append 'LEVEE' to word_tab.
append 'ANTIC' to word_tab.
append 'SIDLE' to word_tab.
append 'PITHY' to word_tab.
append 'CORKS' to word_tab.
append 'YELPS' to word_tab.
append 'JOKER' to word_tab.
append 'FLECK' to word_tab.
append 'BUFFS' to word_tab.
append 'SCRAM' to word_tab.
append 'TIERS' to word_tab.
append 'BOGEY' to word_tab.
append 'DOLED' to word_tab.
append 'IRATE' to word_tab.
append 'VALES' to word_tab.
append 'COPED' to word_tab.
append 'HAILS' to word_tab.
append 'ELUDE' to word_tab.
append 'BULKS' to word_tab.
append 'AIRED' to word_tab.
append 'VYING' to word_tab.
append 'STAGS' to word_tab.
append 'STREW' to word_tab.
append 'COCCI' to word_tab.
append 'PACTS' to word_tab.
append 'SCABS' to word_tab.
append 'SILOS' to word_tab.
append 'DUSTS' to word_tab.
append 'YODEL' to word_tab.
append 'TERSE' to word_tab.
append 'JADED' to word_tab.
append 'BASER' to word_tab.
append 'JIBES' to word_tab.
append 'FOILS' to word_tab.
append 'SWAYS' to word_tab.
append 'FORGO' to word_tab.
append 'SLAYS' to word_tab.
append 'PREYS' to word_tab.
append 'TREKS' to word_tab.
append 'QUELL' to word_tab.
append 'PEEKS' to word_tab.
append 'ASSAY' to word_tab.
append 'LURKS' to word_tab.
append 'EJECT' to word_tab.
append 'BOARS' to word_tab.
append 'TRITE' to word_tab.
append 'BELCH' to word_tab.
append 'GNASH' to word_tab.
append 'WANES' to word_tab.
append 'LUTES' to word_tab.
append 'WHIMS' to word_tab.
append 'DOSED' to word_tab.
append 'CHEWY' to word_tab.
append 'SNIPE' to word_tab.
append 'UMBRA' to word_tab.
append 'TEEMS' to word_tab.
append 'DOZES' to word_tab.
append 'KELPS' to word_tab.
append 'UPPED' to word_tab.
append 'BRAWN' to word_tab.
append 'DOPED' to word_tab.
append 'SHUSH' to word_tab.
append 'RINDS' to word_tab.
append 'SLUSH' to word_tab.
append 'MORON' to word_tab.
append 'VOILE' to word_tab.
append 'WOKEN' to word_tab.
append 'FJORD' to word_tab.
append 'SHEIK' to word_tab.
append 'JESTS' to word_tab.
append 'KAYAK' to word_tab.
append 'SLEWS' to word_tab.
append 'TOTED' to word_tab.
append 'SANER' to word_tab.
append 'DRAPE' to word_tab.
append 'PATTY' to word_tab.
append 'RAVES' to word_tab.
append 'SULFA' to word_tab.
append 'GRIST' to word_tab.
append 'SKIED' to word_tab.
append 'VIXEN' to word_tab.
append 'CIVET' to word_tab.
append 'VOUCH' to word_tab.
append 'TIARA' to word_tab.
append 'HOMEY' to word_tab.
append 'MOPED' to word_tab.
append 'RUNTS' to word_tab.
append 'SERGE' to word_tab.
append 'KINKY' to word_tab.
append 'RILLS' to word_tab.
append 'CORNS' to word_tab.
append 'BRATS' to word_tab.
append 'PRIES' to word_tab.
append 'AMBLE' to word_tab.
append 'FRIES' to word_tab.
append 'LOONS' to word_tab.
append 'TSARS' to word_tab.
append 'DATUM' to word_tab.
append 'MUSKY' to word_tab.
append 'PIGMY' to word_tab.
append 'GNOME' to word_tab.
append 'RAVEL' to word_tab.
append 'OVULE' to word_tab.
append 'ICILY' to word_tab.
append 'LIKEN' to word_tab.
append 'LEMUR' to word_tab.
append 'FRAYS' to word_tab.
append 'SILTS' to word_tab.
append 'SIFTS' to word_tab.
append 'PLODS' to word_tab.
append 'RAMPS' to word_tab.
append 'TRESS' to word_tab.
append 'EARLS' to word_tab.
append 'DUDES' to word_tab.
append 'WAIVE' to word_tab.
append 'KARAT' to word_tab.
append 'JOLTS' to word_tab.
append 'PEONS' to word_tab.
append 'BEERS' to word_tab.
append 'HORNY' to word_tab.
append 'PALES' to word_tab.
append 'WREAK' to word_tab.
append 'LAIRS' to word_tab.
append 'LYNCH' to word_tab.
append 'STANK' to word_tab.
append 'SWOON' to word_tab.
append 'IDLER' to word_tab.
append 'ABORT' to word_tab.
append 'BLITZ' to word_tab.
append 'ENSUE' to word_tab.
append 'ATONE' to word_tab.
append 'BINGO' to word_tab.
append 'ROVES' to word_tab.
append 'KILTS' to word_tab.
append 'SCALD' to word_tab.
append 'ADIOS' to word_tab.
append 'CYNIC' to word_tab.
append 'DULLS' to word_tab.
append 'MEMOS' to word_tab.
append 'ELFIN' to word_tab.
append 'DALES' to word_tab.
append 'PEELS' to word_tab.
append 'PEALS' to word_tab.
append 'BARES' to word_tab.
append 'SINUS' to word_tab.
append 'CRONE' to word_tab.
append 'SABLE' to word_tab.
append 'HINDS' to word_tab.
append 'SHIRK' to word_tab.
append 'ENROL' to word_tab.
append 'WILTS' to word_tab.
append 'ROAMS' to word_tab.
append 'DUPED' to word_tab.
append 'CYSTS' to word_tab.
append 'MITTS' to word_tab.
append 'SAFES' to word_tab.
append 'SPATS' to word_tab.
append 'COOPS' to word_tab.
append 'FILET' to word_tab.
append 'KNELL' to word_tab.
append 'REFIT' to word_tab.
append 'COVEY' to word_tab.
append 'PUNKS' to word_tab.
append 'KILNS' to word_tab.
append 'FITLY' to word_tab.
append 'ABATE' to word_tab.
append 'TALCS' to word_tab.
append 'HEEDS' to word_tab.
append 'DUELS' to word_tab.
append 'WANLY' to word_tab.
append 'RUFFS' to word_tab.
append 'GAUSS' to word_tab.
append 'LAPEL' to word_tab.
append 'JAUNT' to word_tab.
append 'WHELP' to word_tab.
append 'CLEAT' to word_tab.
append 'GAUZY' to word_tab.
append 'DIRGE' to word_tab.
append 'EDITS' to word_tab.
append 'WORMY' to word_tab.
append 'MOATS' to word_tab.
append 'SMEAR' to word_tab.
append 'PRODS' to word_tab.
append 'BOWEL' to word_tab.
append 'FRISK' to word_tab.
append 'VESTS' to word_tab.
append 'BAYED' to word_tab.
append 'RASPS' to word_tab.
append 'TAMES' to word_tab.
append 'DELVE' to word_tab.
append 'EMBED' to word_tab.
append 'BEFIT' to word_tab.
append 'WAFER' to word_tab.
append 'CEDED' to word_tab.
append 'NOVAS' to word_tab.
append 'FEIGN' to word_tab.
append 'SPEWS' to word_tab.
append 'LARCH' to word_tab.
append 'HUFFS' to word_tab.
append 'DOLES' to word_tab.
append 'MAMAS' to word_tab.
append 'HULKS' to word_tab.
append 'PRIED' to word_tab.
append 'BRIMS' to word_tab.
append 'IRKED' to word_tab.
append 'ASPIC' to word_tab.
append 'SWIPE' to word_tab.
append 'MEALY' to word_tab.
append 'SKIMP' to word_tab.
append 'BLUER' to word_tab.
append 'SLAKE' to word_tab.
append 'DOWDY' to word_tab.
append 'PENIS' to word_tab.
append 'BRAYS' to word_tab.
append 'PUPAS' to word_tab.
append 'EGRET' to word_tab.
append 'FLUNK' to word_tab.
append 'PHLOX' to word_tab.
append 'GRIPE' to word_tab.
append 'PEONY' to word_tab.
append 'DOUSE' to word_tab.
append 'BLURS' to word_tab.
append 'DARNS' to word_tab.
append 'SLUNK' to word_tab.
append 'LEFTS' to word_tab.
append 'CHATS' to word_tab.
append 'INANE' to word_tab.
append 'VIALS' to word_tab.
append 'STILT' to word_tab.
append 'RINKS' to word_tab.
append 'WOOFS' to word_tab.
append 'WOWED' to word_tab.
append 'BONGS' to word_tab.
append 'FROND' to word_tab.
append 'INGOT' to word_tab.
append 'EVICT' to word_tab.
append 'SINGE' to word_tab.
append 'SHYER' to word_tab.
append 'FLIED' to word_tab.
append 'SLOPS' to word_tab.
append 'DOLTS' to word_tab.
append 'DROOL' to word_tab.
append 'DELLS' to word_tab.
append 'WHELK' to word_tab.
append 'HIPPY' to word_tab.
append 'FETED' to word_tab.
append 'ETHER' to word_tab.
append 'COCOS' to word_tab.
append 'HIVES' to word_tab.
append 'JIBED' to word_tab.
append 'MAZES' to word_tab.
append 'TRIOS' to word_tab.
append 'SIRUP' to word_tab.
append 'SQUAB' to word_tab.
append 'LATHS' to word_tab.
append 'LEERS' to word_tab.
append 'PASTA' to word_tab.
append 'RIFTS' to word_tab.
append 'LOPES' to word_tab.
append 'ALIAS' to word_tab.
append 'WHIRS' to word_tab.
append 'DICED' to word_tab.
append 'SLAGS' to word_tab.
append 'LODES' to word_tab.
append 'FOXED' to word_tab.
append 'IDLED' to word_tab.
append 'PROWS' to word_tab.
append 'PLAIT' to word_tab.
append 'MALTS' to word_tab.
append 'CHAFE' to word_tab.
append 'COWER' to word_tab.
append 'TOYED' to word_tab.
append 'CHEFS' to word_tab.
append 'KEELS' to word_tab.
append 'STIES' to word_tab.
append 'RACER' to word_tab.
append 'ETUDE' to word_tab.
append 'SUCKS' to word_tab.
append 'SULKS' to word_tab.
append 'MICAS' to word_tab.
append 'CZARS' to word_tab.
append 'COPSE' to word_tab.
append 'AILED' to word_tab.
append 'ABLER' to word_tab.
append 'RABID' to word_tab.
append 'GOLDS' to word_tab.
append 'CROUP' to word_tab.
append 'SNAKY' to word_tab.
append 'VISAS' to word_tab.
append 'PALLS' to word_tab.
append 'MOPES' to word_tab.
append 'BONED' to word_tab.
append 'WISPY' to word_tab.
append 'RAVED' to word_tab.
append 'SWAPS' to word_tab.
append 'JUNKY' to word_tab.
append 'DOILY' to word_tab.
append 'PAWNS' to word_tab.
append 'TAMER' to word_tab.
append 'POACH' to word_tab.
append 'BAITS' to word_tab.
append 'DAMNS' to word_tab.
append 'GUMBO' to word_tab.
append 'DAUNT' to word_tab.
append 'PRANK' to word_tab.
append 'HUNKS' to word_tab.
append 'BUXOM' to word_tab.
append 'HERES' to word_tab.
append 'HONKS' to word_tab.
append 'STOWS' to word_tab.
append 'UNBAR' to word_tab.
append 'IDLES' to word_tab.
append 'ROUTS' to word_tab.
append 'SAGES' to word_tab.
append 'GOADS' to word_tab.
append 'REMIT' to word_tab.
append 'COPES' to word_tab.
append 'DEIGN' to word_tab.
append 'CULLS' to word_tab.
append 'GIRDS' to word_tab.
append 'HAVES' to word_tab.
append 'LUCKS' to word_tab.
append 'STUNK' to word_tab.
append 'DODOS' to word_tab.
append 'SHAMS' to word_tab.
append 'SNUBS' to word_tab.
append 'ICONS' to word_tab.
append 'USURP' to word_tab.
append 'DOOMS' to word_tab.
append 'HELLS' to word_tab.
append 'SOLED' to word_tab.
append 'COMAS' to word_tab.
append 'PAVES' to word_tab.
append 'MATHS' to word_tab.
append 'PERKS' to word_tab.
append 'LIMPS' to word_tab.
append 'WOMBS' to word_tab.
append 'BLURB' to word_tab.
append 'DAUBS' to word_tab.
append 'COKES' to word_tab.
append 'SOURS' to word_tab.
append 'STUNS' to word_tab.
append 'CASED' to word_tab.
append 'MUSTS' to word_tab.
append 'COEDS' to word_tab.
append 'COWED' to word_tab.
append 'APING' to word_tab.
append 'ZONED' to word_tab.
append 'RUMMY' to word_tab.
append 'FETES' to word_tab.
append 'SKULK' to word_tab.
append 'QUAFF' to word_tab.
append 'RAJAH' to word_tab.
append 'DEANS' to word_tab.
append 'REAPS' to word_tab.
append 'GALAS' to word_tab.
append 'TILLS' to word_tab.
append 'ROVED' to word_tab.
append 'KUDOS' to word_tab.
append 'TONED' to word_tab.
append 'PARED' to word_tab.
append 'SCULL' to word_tab.
append 'VEXES' to word_tab.
append 'PUNTS' to word_tab.
append 'SNOOP' to word_tab.
append 'BAILS' to word_tab.
append 'DAMES' to word_tab.
append 'HAZES' to word_tab.
append 'LORES' to word_tab.
append 'MARTS' to word_tab.
append 'VOIDS' to word_tab.
append 'AMEBA' to word_tab.
append 'RAKES' to word_tab.
append 'ADZES' to word_tab.
append 'HARMS' to word_tab.
append 'REARS' to word_tab.
append 'SATYR' to word_tab.
append 'SWILL' to word_tab.
append 'HEXES' to word_tab.
append 'COLIC' to word_tab.
append 'LEEKS' to word_tab.
append 'HURLS' to word_tab.
append 'YOWLS' to word_tab.
append 'IVIES' to word_tab.
append 'PLOPS' to word_tab.
append 'MUSKS' to word_tab.
append 'PAPAW' to word_tab.
append 'JELLS' to word_tab.
append 'BUSED' to word_tab.
append 'CRUET' to word_tab.
append 'BIDED' to word_tab.
append 'FILCH' to word_tab.
append 'ZESTS' to word_tab.
append 'ROOKS' to word_tab.
append 'LAXLY' to word_tab.
append 'RENDS' to word_tab.
append 'LOAMS' to word_tab.
append 'BASKS' to word_tab.
append 'SIRES' to word_tab.
append 'CARPS' to word_tab.
append 'POKEY' to word_tab.
append 'FLITS' to word_tab.
append 'MUSES' to word_tab.
append 'BAWLS' to word_tab.
append 'SHUCK' to word_tab.
append 'VILER' to word_tab.
append 'LISPS' to word_tab.
append 'PEEPS' to word_tab.
append 'SORER' to word_tab.
append 'LOLLS' to word_tab.
append 'PRUDE' to word_tab.
append 'DIKED' to word_tab.
append 'FLOSS' to word_tab.
append 'FLOGS' to word_tab.
append 'SCUMS' to word_tab.
append 'DOPES' to word_tab.
append 'BOGIE' to word_tab.
append 'PINKY' to word_tab.
append 'LEAFS' to word_tab.
append 'TUBAS' to word_tab.
append 'SCADS' to word_tab.
append 'LOWED' to word_tab.
append 'YESES' to word_tab.
append 'BIKED' to word_tab.
append 'QUALM' to word_tab.
append 'EVENS' to word_tab.
append 'CANED' to word_tab.
append 'GAWKS' to word_tab.
append 'WHITS' to word_tab.
append 'WOOLY' to word_tab.
append 'GLUTS' to word_tab.
append 'ROMPS' to word_tab.
append 'BESTS' to word_tab.
append 'DUNCE' to word_tab.
append 'CRONY' to word_tab.
append 'JOIST' to word_tab.
append 'TUNAS' to word_tab.
append 'BONER' to word_tab.
append 'MALLS' to word_tab.
append 'PARCH' to word_tab.
append 'AVERS' to word_tab.
append 'CRAMS' to word_tab.
append 'PARES' to word_tab.
append 'DALLY' to word_tab.
append 'BIGOT' to word_tab.
append 'KALES' to word_tab.
append 'FLAYS' to word_tab.
append 'LEACH' to word_tab.
append 'GUSHY' to word_tab.
append 'POOCH' to word_tab.
append 'HUGER' to word_tab.
append 'SLYER' to word_tab.
append 'GOLFS' to word_tab.
append 'MIRES' to word_tab.
append 'FLUES' to word_tab.
append 'LOAFS' to word_tab.
append 'ARCED' to word_tab.
append 'ACNES' to word_tab.
append 'NEONS' to word_tab.
append 'FIEFS' to word_tab.
append 'DINTS' to word_tab.
append 'DAZES' to word_tab.
append 'POUTS' to word_tab.
append 'CORED' to word_tab.
append 'YULES' to word_tab.
append 'LILTS' to word_tab.
append 'BEEFS' to word_tab.
append 'MUTTS' to word_tab.
append 'FELLS' to word_tab.
append 'COWLS' to word_tab.
append 'SPUDS' to word_tab.
append 'LAMES' to word_tab.
append 'JAWED' to word_tab.
append 'DUPES' to word_tab.
append 'DEADS' to word_tab.
append 'BYLAW' to word_tab.
append 'NOONS' to word_tab.
append 'NIFTY' to word_tab.
append 'CLUED' to word_tab.
append 'VIREO' to word_tab.
append 'GAPES' to word_tab.
append 'METES' to word_tab.
append 'CUTER' to word_tab.
append 'MAIMS' to word_tab.
append 'DROLL' to word_tab.
append 'CUPID' to word_tab.
append 'MAULS' to word_tab.
append 'SEDGE' to word_tab.
append 'PAPAS' to word_tab.
append 'WHEYS' to word_tab.
append 'EKING' to word_tab.
append 'LOOTS' to word_tab.
append 'HILTS' to word_tab.
append 'MEOWS' to word_tab.
append 'BEAUS' to word_tab.
append 'DICES' to word_tab.
append 'PEPPY' to word_tab.
append 'RIPER' to word_tab.
append 'FOGEY' to word_tab.
append 'GISTS' to word_tab.
append 'YOGAS' to word_tab.
append 'GILTS' to word_tab.
append 'SKEWS' to word_tab.
append 'CEDES' to word_tab.
append 'ZEALS' to word_tab.
append 'ALUMS' to word_tab.
append 'OKAYS' to word_tab.
append 'ELOPE' to word_tab.
append 'GRUMP' to word_tab.
append 'WAFTS' to word_tab.
append 'SOOTS' to word_tab.
append 'BLIMP' to word_tab.
append 'HEFTS' to word_tab.
append 'MULLS' to word_tab.
append 'HOSED' to word_tab.
append 'CRESS' to word_tab.
append 'DOFFS' to word_tab.
append 'RUDER' to word_tab.
append 'PIXIE' to word_tab.
append 'WAIFS' to word_tab.
append 'OUSTS' to word_tab.
append 'PUCKS' to word_tab.
append 'BIERS' to word_tab.
append 'GULCH' to word_tab.
append 'SUETS' to word_tab.
append 'HOBOS' to word_tab.
append 'LINTS' to word_tab.
append 'BRANS' to word_tab.
append 'TEALS' to word_tab.
append 'GARBS' to word_tab.
append 'PEWEE' to word_tab.
append 'HELMS' to word_tab.
append 'TURFS' to word_tab.
append 'QUIPS' to word_tab.
append 'WENDS' to word_tab.
append 'BANES' to word_tab.
append 'NAPES' to word_tab.
append 'ICIER' to word_tab.
append 'SWATS' to word_tab.
append 'BAGEL' to word_tab.
append 'HEXED' to word_tab.
append 'OGRES' to word_tab.
append 'GONER' to word_tab.
append 'GILDS' to word_tab.
append 'PYRES' to word_tab.
append 'LARDS' to word_tab.
append 'BIDES' to word_tab.
append 'PAGED' to word_tab.
append 'TALON' to word_tab.
append 'FLOUT' to word_tab.
append 'MEDIC' to word_tab.
append 'VEALS' to word_tab.
append 'PUTTS' to word_tab.
append 'DIRKS' to word_tab.
append 'DOTES' to word_tab.
append 'TIPPY' to word_tab.
append 'BLURT' to word_tab.
append 'PITHS' to word_tab.
append 'ACING' to word_tab.
append 'BARER' to word_tab.
append 'WHETS' to word_tab.
append 'GAITS' to word_tab.
append 'WOOLS' to word_tab.
append 'DUNKS' to word_tab.
append 'HEROS' to word_tab.
append 'SWABS' to word_tab.
append 'DIRTS' to word_tab.
append 'JUTES' to word_tab.
append 'HEMPS' to word_tab.
append 'SURFS' to word_tab.
append 'OKAPI' to word_tab.
append 'CHOWS' to word_tab.
append 'SHOOS' to word_tab.
append 'DUSKS' to word_tab.
append 'PARRY' to word_tab.
append 'DECAL' to word_tab.
append 'FURLS' to word_tab.
append 'CILIA' to word_tab.
append 'SEARS' to word_tab.
append 'NOVAE' to word_tab.
append 'MURKS' to word_tab.
append 'WARPS' to word_tab.
append 'SLUES' to word_tab.
append 'LAMER' to word_tab.
append 'SARIS' to word_tab.
append 'WEANS' to word_tab.
append 'PURRS' to word_tab.
append 'DILLS' to word_tab.
append 'TOGAS' to word_tab.
append 'NEWTS' to word_tab.
append 'MEANY' to word_tab.
append 'BUNTS' to word_tab.
append 'RAZES' to word_tab.
append 'GOONS' to word_tab.
append 'WICKS' to word_tab.
append 'RUSES' to word_tab.
append 'VENDS' to word_tab.
append 'GEODE' to word_tab.
append 'DRAKE' to word_tab.
append 'JUDOS' to word_tab.
append 'LOFTS' to word_tab.
append 'PULPS' to word_tab.
append 'LAUDS' to word_tab.
append 'MUCKS' to word_tab.
append 'VISES' to word_tab.
append 'MOCHA' to word_tab.
append 'OILED' to word_tab.
append 'ROMAN' to word_tab.
append 'ETHYL' to word_tab.
append 'GOTTA' to word_tab.
append 'FUGUE' to word_tab.
append 'SMACK' to word_tab.
append 'GOURD' to word_tab.
append 'BUMPY' to word_tab.
append 'RADIX' to word_tab.
append 'FATTY' to word_tab.
append 'BORAX' to word_tab.
append 'CUBIT' to word_tab.
append 'CACTI' to word_tab.
append 'GAMMA' to word_tab.
append 'FOCAL' to word_tab.
append 'AVAIL' to word_tab.
append 'PAPAL' to word_tab.
append 'GOLLY' to word_tab.
append 'ELITE' to word_tab.
append 'VERSA' to word_tab.
append 'BILLY' to word_tab.
append 'ADIEU' to word_tab.
append 'ANNUM' to word_tab.
append 'HOWDY' to word_tab.
append 'RHINO' to word_tab.
append 'NORMS' to word_tab.
append 'BOBBY' to word_tab.
append 'AXIOM' to word_tab.
append 'SETUP' to word_tab.
append 'YOLKS' to word_tab.
append 'TERNS' to word_tab.
append 'MIXER' to word_tab.
append 'GENRE' to word_tab.
append 'KNOLL' to word_tab.
append 'ABODE' to word_tab.
append 'JUNTA' to word_tab.
append 'GORGE' to word_tab.
append 'COMBO' to word_tab.
append 'ALPHA' to word_tab.
append 'OVERT' to word_tab.
append 'KINDA' to word_tab.
append 'SPELT' to word_tab.
append 'PRICK' to word_tab.
append 'NOBLY' to word_tab.
append 'EPHOD' to word_tab.
append 'AUDIO' to word_tab.
append 'MODAL' to word_tab.
append 'VELDT' to word_tab.
append 'WARTY' to word_tab.
append 'FLUKE' to word_tab.
append 'BONNY' to word_tab.
append 'BREAM' to word_tab.
append 'ROSIN' to word_tab.
append 'BOLLS' to word_tab.
append 'DOERS' to word_tab.
append 'DOWNS' to word_tab.
append 'BEADY' to word_tab.
append 'MOTIF' to word_tab.
append 'HUMPH' to word_tab.
append 'FELLA' to word_tab.
append 'MOULD' to word_tab.
append 'CREPE' to word_tab.
append 'KERNS' to word_tab.
append 'ALOHA' to word_tab.
append 'GLYPH' to word_tab.
append 'AZURE' to word_tab.
append 'RISER' to word_tab.
append 'BLEST' to word_tab.
append 'LOCUS' to word_tab.
append 'LUMPY' to word_tab.
append 'BERYL' to word_tab.
append 'WANNA' to word_tab.
append 'BRIER' to word_tab.
append 'TUNER' to word_tab.
append 'ROWDY' to word_tab.
append 'MURAL' to word_tab.
append 'TIMER' to word_tab.
append 'CANST' to word_tab.
append 'KRILL' to word_tab.
append 'QUOTH' to word_tab.
append 'LEMME' to word_tab.
append 'TRIAD' to word_tab.
append 'TENON' to word_tab.
append 'AMPLY' to word_tab.
append 'DEEPS' to word_tab.
append 'PADRE' to word_tab.
append 'LEANT' to word_tab.
append 'PACER' to word_tab.
append 'OCTAL' to word_tab.
append 'DOLLY' to word_tab.
append 'TRANS' to word_tab.
append 'SUMAC' to word_tab.
append 'FOAMY' to word_tab.
append 'LOLLY' to word_tab.
append 'GIVER' to word_tab.
append 'QUIPU' to word_tab.
append 'CODEX' to word_tab.
append 'MANNA' to word_tab.
append 'UNWED' to word_tab.
append 'VODKA' to word_tab.
append 'FERNY' to word_tab.
append 'SALON' to word_tab.
append 'DUPLE' to word_tab.
append 'BORON' to word_tab.
append 'REVUE' to word_tab.
append 'CRIER' to word_tab.
append 'ALACK' to word_tab.
append 'INTER' to word_tab.
append 'DILLY' to word_tab.
append 'WHIST' to word_tab.
append 'CULTS' to word_tab.
append 'SPAKE' to word_tab.
append 'RESET' to word_tab.
append 'LOESS' to word_tab.
append 'DECOR' to word_tab.
append 'MOVER' to word_tab.
append 'VERVE' to word_tab.
append 'ETHIC' to word_tab.
append 'GAMUT' to word_tab.
append 'LINGO' to word_tab.
append 'DUNNO' to word_tab.
append 'ALIGN' to word_tab.
append 'SISSY' to word_tab.
append 'INCUR' to word_tab.
append 'REEDY' to word_tab.
append 'AVANT' to word_tab.
append 'PIPER' to word_tab.
append 'WAXER' to word_tab.
append 'CALYX' to word_tab.
append 'BASIL' to word_tab.
append 'COONS' to word_tab.
append 'SEINE' to word_tab.
append 'PINEY' to word_tab.
append 'LEMMA' to word_tab.
append 'TRAMS' to word_tab.
append 'WINCH' to word_tab.
append 'WHIRR' to word_tab.
append 'SAITH' to word_tab.
append 'IONIC' to word_tab.
append 'HEADY' to word_tab.
append 'HAREM' to word_tab.
append 'TUMMY' to word_tab.
append 'SALLY' to word_tab.
append 'SHIED' to word_tab.
append 'DROSS' to word_tab.
append 'FARAD' to word_tab.
append 'SAVER' to word_tab.
append 'TILDE' to word_tab.
append 'JINGO' to word_tab.
append 'BOWER' to word_tab.
append 'SERIF' to word_tab.
append 'FACTO' to word_tab.
append 'BELLE' to word_tab.
append 'INSET' to word_tab.
append 'BOGUS' to word_tab.
append 'CAVED' to word_tab.
append 'FORTE' to word_tab.
append 'SOOTY' to word_tab.
append 'BONGO' to word_tab.
append 'TOVES' to word_tab.
append 'CREDO' to word_tab.
append 'BASAL' to word_tab.
append 'YELLA' to word_tab.
append 'AGLOW' to word_tab.
append 'GLEAN' to word_tab.
append 'GUSTO' to word_tab.
append 'HYMEN' to word_tab.
append 'ETHOS' to word_tab.
append 'TERRA' to word_tab.
append 'BRASH' to word_tab.
append 'SCRIP' to word_tab.
append 'SWASH' to word_tab.
append 'ALEPH' to word_tab.
append 'TINNY' to word_tab.
append 'ITCHY' to word_tab.
append 'WANTA' to word_tab.
append 'TRICE' to word_tab.
append 'JOWLS' to word_tab.
append 'GONGS' to word_tab.
append 'GARDE' to word_tab.
append 'BORIC' to word_tab.
append 'TWILL' to word_tab.
append 'SOWER' to word_tab.
append 'HENRY' to word_tab.
append 'AWASH' to word_tab.
append 'LIBEL' to word_tab.
append 'SPURN' to word_tab.
append 'SABRE' to word_tab.
append 'REBUT' to word_tab.
append 'PENAL' to word_tab.
append 'OBESE' to word_tab.
append 'SONNY' to word_tab.
append 'QUIRT' to word_tab.
append 'MEBBE' to word_tab.
append 'TACIT' to word_tab.
append 'GREEK' to word_tab.
append 'XENON' to word_tab.
append 'HULLO' to word_tab.
append 'PIQUE' to word_tab.
append 'ROGER' to word_tab.
append 'NEGRO' to word_tab.
append 'HADST' to word_tab.
append 'GECKO' to word_tab.
append 'BEGET' to word_tab.
append 'UNCUT' to word_tab.
append 'ALOES' to word_tab.
append 'LOUIS' to word_tab.
append 'QUINT' to word_tab.
append 'CLUNK' to word_tab.
append 'RAPED' to word_tab.
append 'SALVO' to word_tab.
append 'DIODE' to word_tab.
append 'MATEY' to word_tab.
append 'HERTZ' to word_tab.
append 'XYLEM' to word_tab.
append 'KIOSK' to word_tab.
append 'APACE' to word_tab.
append 'CAWED' to word_tab.
append 'PETER' to word_tab.
append 'WENCH' to word_tab.
append 'COHOS' to word_tab.
append 'SORTA' to word_tab.
append 'GAMBA' to word_tab.
append 'BYTES' to word_tab.
append 'TANGO' to word_tab.
append 'NUTTY' to word_tab.
append 'AXIAL' to word_tab.
append 'ALECK' to word_tab.
append 'NATAL' to word_tab.
append 'CLOMP' to word_tab.
append 'GORED' to word_tab.
append 'SIREE' to word_tab.
append 'BANDY' to word_tab.
append 'GUNNY' to word_tab.
append 'RUNIC' to word_tab.
append 'WHIZZ' to word_tab.
append 'RUPEE' to word_tab.
append 'FATED' to word_tab.
append 'WIPER' to word_tab.
append 'BARDS' to word_tab.
append 'BRINY' to word_tab.
append 'STAID' to word_tab.
append 'HOCKS' to word_tab.
append 'OCHRE' to word_tab.
append 'YUMMY' to word_tab.
append 'GENTS' to word_tab.
append 'SOUPY' to word_tab.
append 'ROPER' to word_tab.
append 'SWATH' to word_tab.
append 'CAMEO' to word_tab.
append 'EDGER' to word_tab.
append 'SPATE' to word_tab.
append 'GIMME' to word_tab.
append 'EBBED' to word_tab.
append 'BREVE' to word_tab.
append 'THETA' to word_tab.
append 'DEEMS' to word_tab.
append 'DYKES' to word_tab.
append 'SERVO' to word_tab.
append 'TELLY' to word_tab.
append 'TABBY' to word_tab.
append 'TARES' to word_tab.
append 'BLOCS' to word_tab.
append 'WELCH' to word_tab.
append 'GHOUL' to word_tab.
append 'VITAE' to word_tab.
append 'CUMIN' to word_tab.
append 'DINKY' to word_tab.
append 'BRONC' to word_tab.
append 'TABOR' to word_tab.
append 'TEENY' to word_tab.
append 'COMER' to word_tab.
append 'BORER' to word_tab.
append 'SIRED' to word_tab.
append 'PRIVY' to word_tab.
append 'MAMMY' to word_tab.
append 'DEARY' to word_tab.
append 'GYROS' to word_tab.
append 'SPRIT' to word_tab.
append 'CONGA' to word_tab.
append 'QUIRE' to word_tab.
append 'THUGS' to word_tab.
append 'FUROR' to word_tab.
append 'BLOKE' to word_tab.
append 'RUNES' to word_tab.
append 'BAWDY' to word_tab.
append 'CADRE' to word_tab.
append 'TOXIN' to word_tab.
append 'ANNUL' to word_tab.
append 'EGGED' to word_tab.
append 'ANION' to word_tab.
append 'NODES' to word_tab.
append 'PICKY' to word_tab.
append 'STEIN' to word_tab.
append 'JELLO' to word_tab.
append 'AUDIT' to word_tab.
append 'ECHOS' to word_tab.
append 'FAGOT' to word_tab.
append 'LETUP' to word_tab.
append 'EYRIE' to word_tab.
append 'FOUNT' to word_tab.
append 'CAPED' to word_tab.
append 'AXONS' to word_tab.
append 'AMUCK' to word_tab.
append 'BANAL' to word_tab.
append 'RILED' to word_tab.
append 'PETIT' to word_tab.
append 'UMBER' to word_tab.
append 'MILER' to word_tab.
append 'FIBRE' to word_tab.
append 'AGAVE' to word_tab.
append 'BATED' to word_tab.
append 'BILGE' to word_tab.
append 'VITRO' to word_tab.
append 'FEINT' to word_tab.
append 'PUDGY' to word_tab.
append 'MATER' to word_tab.
append 'MANIC' to word_tab.
append 'UMPED' to word_tab.
append 'PESKY' to word_tab.
append 'STREP' to word_tab.
append 'SLURP' to word_tab.
append 'PYLON' to word_tab.
append 'PUREE' to word_tab.
append 'CARET' to word_tab.
append 'TEMPS' to word_tab.
append 'NEWEL' to word_tab.
append 'YAWNS' to word_tab.
append 'SEEDY' to word_tab.
append 'TREED' to word_tab.
append 'COUPS' to word_tab.
append 'RANGY' to word_tab.
append 'BRADS' to word_tab.
append 'MANGY' to word_tab.
append 'LONER' to word_tab.
append 'CIRCA' to word_tab.
append 'TIBIA' to word_tab.
append 'AFOUL' to word_tab.
append 'MOMMY' to word_tab.
append 'TITER' to word_tab.
append 'CARNE' to word_tab.
append 'KOOKY' to word_tab.
append 'MOTES' to word_tab.
append 'AMITY' to word_tab.
append 'SUAVE' to word_tab.
append 'HIPPO' to word_tab.
append 'CURVY' to word_tab.
append 'SAMBA' to word_tab.
append 'NEWSY' to word_tab.
append 'ANISE' to word_tab.
append 'IMAMS' to word_tab.
append 'TULLE' to word_tab.
append 'AWAYS' to word_tab.
append 'LIVEN' to word_tab.
append 'HALLO' to word_tab.
append 'WALES' to word_tab.
append 'OPTED' to word_tab.
append 'CANTO' to word_tab.
append 'IDYLL' to word_tab.
append 'BODES' to word_tab.
append 'CURIO' to word_tab.
append 'WRACK' to word_tab.
append 'HIKER' to word_tab.
append 'CHIVE' to word_tab.
append 'YOKEL' to word_tab.
append 'DOTTY' to word_tab.
append 'DEMUR' to word_tab.
append 'CUSPS' to word_tab.
append 'SPECS' to word_tab.
append 'QUADS' to word_tab.
append 'LAITY' to word_tab.
append 'TONER' to word_tab.
append 'DECRY' to word_tab.
append 'WRITS' to word_tab.
append 'SAUTE' to word_tab.
append 'CLACK' to word_tab.
append 'AUGHT' to word_tab.
append 'LOGOS' to word_tab.
append 'TIPSY' to word_tab.
append 'NATTY' to word_tab.
append 'DUCAL' to word_tab.
append 'BIDET' to word_tab.
append 'BULGY' to word_tab.
append 'METRE' to word_tab.
append 'LUSTS' to word_tab.
append 'UNARY' to word_tab.
append 'GOETH' to word_tab.
append 'BALER' to word_tab.
append 'SITED' to word_tab.
append 'SHIES' to word_tab.
append 'HASPS' to word_tab.
append 'BRUNG' to word_tab.
append 'HOLED' to word_tab.
append 'SWANK' to word_tab.
append 'LOOKY' to word_tab.
append 'MELEE' to word_tab.
append 'HUFFY' to word_tab.
append 'LOAMY' to word_tab.
append 'PIMPS' to word_tab.
append 'TITAN' to word_tab.
append 'BINGE' to word_tab.
append 'SHUNT' to word_tab.
append 'FEMUR' to word_tab.
append 'LIBRA' to word_tab.
append 'SEDER' to word_tab.
append 'HONED' to word_tab.
append 'ANNAS' to word_tab.
append 'COYPU' to word_tab.
append 'SHIMS' to word_tab.
append 'ZOWIE' to word_tab.
append 'JIHAD' to word_tab.
append 'SAVVY' to word_tab.
append 'NADIR' to word_tab.
append 'BASSO' to word_tab.
append 'MONIC' to word_tab.
append 'MANED' to word_tab.
append 'MOUSY' to word_tab.
append 'OMEGA' to word_tab.
append 'LAVER' to word_tab.
append 'PRIMA' to word_tab.
append 'PICAS' to word_tab.
append 'FOLIO' to word_tab.
append 'MECCA' to word_tab.
append 'REALS' to word_tab.
append 'TROTH' to word_tab.
append 'TESTY' to word_tab.
append 'BALKY' to word_tab.
append 'CRIMP' to word_tab.
append 'CHINK' to word_tab.
append 'ABETS' to word_tab.
append 'SPLAT' to word_tab.
append 'ABACI' to word_tab.
append 'VAUNT' to word_tab.
append 'CUTIE' to word_tab.
append 'PASTY' to word_tab.
append 'MORAY' to word_tab.
append 'LEVIS' to word_tab.
append 'RATTY' to word_tab.
append 'ISLET' to word_tab.
append 'JOUST' to word_tab.
append 'MOTET' to word_tab.
append 'VIRAL' to word_tab.
append 'NUKES' to word_tab.
append 'GRADS' to word_tab.
append 'COMFY' to word_tab.
append 'VOILA' to word_tab.
append 'WOOZY' to word_tab.
append 'BLUED' to word_tab.
append 'WHOMP' to word_tab.
append 'SWARD' to word_tab.
append 'METRO' to word_tab.
append 'SKEET' to word_tab.
append 'CHINE' to word_tab.
append 'AERIE' to word_tab.
append 'BOWIE' to word_tab.
append 'TUBBY' to word_tab.
append 'EMIRS' to word_tab.
append 'COATI' to word_tab.
append 'UNZIP' to word_tab.
append 'SLOBS' to word_tab.
append 'TRIKE' to word_tab.
append 'FUNKY' to word_tab.
append 'DUCAT' to word_tab.
append 'DEWEY' to word_tab.
append 'SKOAL' to word_tab.
append 'WADIS' to word_tab.
append 'OOMPH' to word_tab.
append 'TAKER' to word_tab.
append 'MINIM' to word_tab.
append 'GETUP' to word_tab.
append 'STOIC' to word_tab.
append 'SYNOD' to word_tab.
append 'RUNTY' to word_tab.
append 'FLYBY' to word_tab.
append 'BRAZE' to word_tab.
append 'INLAY' to word_tab.
append 'VENUE' to word_tab.
append 'LOUTS' to word_tab.
append 'PEATY' to word_tab.
append 'ORLON' to word_tab.
append 'HUMPY' to word_tab.
append 'RADON' to word_tab.
append 'BEAUT' to word_tab.
append 'RASPY' to word_tab.
append 'UNFED' to word_tab.
append 'CRICK' to word_tab.
append 'NAPPY' to word_tab.
append 'VIZOR' to word_tab.
append 'YIPES' to word_tab.
append 'REBUS' to word_tab.
append 'DIVOT' to word_tab.
append 'KIWIS' to word_tab.
append 'VETCH' to word_tab.
append 'SQUIB' to word_tab.
append 'SITAR' to word_tab.
append 'KIDDO' to word_tab.
append 'DYERS' to word_tab.
append 'COTTA' to word_tab.
append 'MATZO' to word_tab.
append 'LAGER' to word_tab.
append 'ZEBUS' to word_tab.
append 'CRASS' to word_tab.
append 'DACHA' to word_tab.
append 'KNEED' to word_tab.
append 'DICTA' to word_tab.
append 'FAKIR' to word_tab.
append 'KNURL' to word_tab.
append 'RUNNY' to word_tab.
append 'UNPIN' to word_tab.
append 'JULEP' to word_tab.
append 'GLOBS' to word_tab.
append 'NUDES' to word_tab.
append 'SUSHI' to word_tab.
append 'TACKY' to word_tab.
append 'STOKE' to word_tab.
append 'KAPUT' to word_tab.
append 'BUTCH' to word_tab.
append 'HULAS' to word_tab.
append 'CROFT' to word_tab.
append 'ACHOO' to word_tab.
append 'GENII' to word_tab.
append 'NODAL' to word_tab.
append 'OUTGO' to word_tab.
append 'SPIEL' to word_tab.
append 'VIOLS' to word_tab.
append 'FETID' to word_tab.
append 'CAGEY' to word_tab.
append 'FUDGY' to word_tab.
append 'EPOXY' to word_tab.
append 'LEGGY' to word_tab.
append 'HANKY' to word_tab.
append 'LAPIS' to word_tab.
append 'FELON' to word_tab.
append 'BEEFY' to word_tab.
append 'COOTS' to word_tab.
append 'MELBA' to word_tab.
append 'CADDY' to word_tab.
append 'SEGUE' to word_tab.
append 'BETEL' to word_tab.
append 'FRIZZ' to word_tab.
append 'DREAR' to word_tab.
append 'KOOKS' to word_tab.
append 'TURBO' to word_tab.
append 'HOAGY' to word_tab.
append 'MOULT' to word_tab.
append 'HELIX' to word_tab.
append 'ZONAL' to word_tab.
append 'ARIAS' to word_tab.
append 'NOSEY' to word_tab.
append 'PAEAN' to word_tab.
append 'LACEY' to word_tab.
append 'BANNS' to word_tab.
append 'SWAIN' to word_tab.
append 'FRYER' to word_tab.
append 'RETCH' to word_tab.
append 'TENET' to word_tab.
append 'GIGAS' to word_tab.
append 'WHINY' to word_tab.
append 'OGLED' to word_tab.
append 'RUMEN' to word_tab.
append 'BEGOT' to word_tab.
append 'CRUSE' to word_tab.
append 'ABUTS' to word_tab.
append 'RIVEN' to word_tab.
append 'BALKS' to word_tab.
append 'SINES' to word_tab.
append 'SIGMA' to word_tab.
append 'ABASE' to word_tab.
append 'ENNUI' to word_tab.
append 'GORES' to word_tab.
append 'UNSET' to word_tab.
append 'AUGUR' to word_tab.
append 'SATED' to word_tab.
append 'ODIUM' to word_tab.
append 'LATIN' to word_tab.
append 'DINGS' to word_tab.
append 'MOIRE' to word_tab.
append 'SCION' to word_tab.
append 'HENNA' to word_tab.
append 'KRAUT' to word_tab.
append 'DICKS' to word_tab.
append 'LIFER' to word_tab.
append 'PRIGS' to word_tab.
append 'BEBOP' to word_tab.
append 'GAGES' to word_tab.
append 'GAZER' to word_tab.
append 'FANNY' to word_tab.
append 'GIBES' to word_tab.
append 'AURAL' to word_tab.
append 'TEMPI' to word_tab.
append 'HOOCH' to word_tab.
append 'RAPES' to word_tab.
append 'SNUCK' to word_tab.
append 'HARTS' to word_tab.
append 'TECHS' to word_tab.
append 'EMEND' to word_tab.
append 'NINNY' to word_tab.
append 'GUAVA' to word_tab.
append 'SCARP' to word_tab.
append 'LIEGE' to word_tab.
append 'TUFTY' to word_tab.
append 'SEPIA' to word_tab.
append 'TOMES' to word_tab.
append 'CAROB' to word_tab.
append 'EMCEE' to word_tab.
append 'PRAMS' to word_tab.
append 'POSER' to word_tab.
append 'VERSO' to word_tab.
append 'HUBBA' to word_tab.
append 'JOULE' to word_tab.
append 'BAIZE' to word_tab.
append 'BLIPS' to word_tab.
append 'SCRIM' to word_tab.
append 'CUBBY' to word_tab.
append 'CLAVE' to word_tab.
append 'WINOS' to word_tab.
append 'REARM' to word_tab.
append 'LIENS' to word_tab.
append 'LUMEN' to word_tab.
append 'CHUMP' to word_tab.
append 'NANNY' to word_tab.
append 'TRUMP' to word_tab.
append 'FICHU' to word_tab.
append 'CHOMP' to word_tab.
append 'HOMOS' to word_tab.
append 'PURTY' to word_tab.
append 'MASER' to word_tab.
append 'WOOSH' to word_tab.
append 'PATSY' to word_tab.
append 'SHILL' to word_tab.
append 'RUSKS' to word_tab.
append 'AVAST' to word_tab.
append 'SWAMI' to word_tab.
append 'BODED' to word_tab.
append 'AHHHH' to word_tab.
append 'LOBED' to word_tab.
append 'NATCH' to word_tab.
append 'SHISH' to word_tab.
append 'TANSY' to word_tab.
append 'SNOOT' to word_tab.
append 'PAYER' to word_tab.
append 'ALTHO' to word_tab.
append 'SAPPY' to word_tab.
append 'LAXER' to word_tab.
append 'HUBBY' to word_tab.
append 'AEGIS' to word_tab.
append 'RILES' to word_tab.
append 'DITTO' to word_tab.
append 'JAZZY' to word_tab.
append 'DINGO' to word_tab.
append 'QUASI' to word_tab.
append 'SEPTA' to word_tab.
append 'PEAKY' to word_tab.
append 'LORRY' to word_tab.
append 'HEERD' to word_tab.
append 'BITTY' to word_tab.
append 'PAYEE' to word_tab.
append 'SEAMY' to word_tab.
append 'APSES' to word_tab.
append 'IMBUE' to word_tab.
append 'BELIE' to word_tab.
append 'CHARY' to word_tab.
append 'SPOOF' to word_tab.
append 'PHYLA' to word_tab.
append 'CLIME' to word_tab.
append 'BABEL' to word_tab.
append 'WACKY' to word_tab.
append 'SUMPS' to word_tab.
append 'SKIDS' to word_tab.
append 'KHANS' to word_tab.
append 'CRYPT' to word_tab.
append 'INURE' to word_tab.
append 'NONCE' to word_tab.
append 'OUTEN' to word_tab.
append 'FAIRE' to word_tab.
append 'HOOEY' to word_tab.
append 'ANOLE' to word_tab.
append 'KAZOO' to word_tab.
append 'CALVE' to word_tab.
append 'LIMBO' to word_tab.
append 'ARGOT' to word_tab.
append 'DUCKY' to word_tab.
append 'FAKER' to word_tab.
append 'VIBES' to word_tab.
append 'GASSY' to word_tab.
append 'UNLIT' to word_tab.
append 'NERVY' to word_tab.
append 'FEMME' to word_tab.
append 'BITER' to word_tab.
append 'FICHE' to word_tab.
append 'BOORS' to word_tab.
append 'GAFFE' to word_tab.
append 'SAXES' to word_tab.
append 'RECAP' to word_tab.
append 'SYNCH' to word_tab.
append 'FACIE' to word_tab.
append 'DICEY' to word_tab.
append 'OUIJA' to word_tab.
append 'HEWER' to word_tab.
append 'LEGIT' to word_tab.
append 'GURUS' to word_tab.
append 'EDIFY' to word_tab.
append 'TWEAK' to word_tab.
append 'CARON' to word_tab.
append 'TYPOS' to word_tab.
append 'RERUN' to word_tab.
append 'POLLY' to word_tab.
append 'SURDS' to word_tab.
append 'HAMZA' to word_tab.
append 'NULLS' to word_tab.
append 'HATER' to word_tab.
append 'LEFTY' to word_tab.
append 'MOGUL' to word_tab.
append 'MAFIA' to word_tab.
append 'DEBUG' to word_tab.
append 'PATES' to word_tab.
append 'BLABS' to word_tab.
append 'SPLAY' to word_tab.
append 'TALUS' to word_tab.
append 'PORNO' to word_tab.
append 'MOOLA' to word_tab.
append 'NIXED' to word_tab.
append 'KILOS' to word_tab.
append 'SNIDE' to word_tab.
append 'HORSY' to word_tab.
append 'GESSO' to word_tab.
append 'JAGGY' to word_tab.
append 'TROVE' to word_tab.
append 'NIXES' to word_tab.
append 'CREEL' to word_tab.
append 'PATER' to word_tab.
append 'IOTAS' to word_tab.
append 'CADGE' to word_tab.
append 'SKYED' to word_tab.
append 'HOKUM' to word_tab.
append 'FURZE' to word_tab.
append 'ANKHS' to word_tab.
append 'CURIE' to word_tab.
append 'NUTSY' to word_tab.
append 'HILUM' to word_tab.
append 'REMIX' to word_tab.
append 'ANGST' to word_tab.
append 'BURLS' to word_tab.
append 'JIMMY' to word_tab.
append 'VEINY' to word_tab.
append 'TRYST' to word_tab.
append 'CODON' to word_tab.
append 'BEFOG' to word_tab.
append 'GAMED' to word_tab.
append 'FLUME' to word_tab.
append 'AXMAN' to word_tab.
append 'DOOZY' to word_tab.
append 'LUBES' to word_tab.
append 'RHEAS' to word_tab.
append 'BOZOS' to word_tab.
append 'BUTYL' to word_tab.
append 'KELLY' to word_tab.
append 'MYNAH' to word_tab.
append 'JOCKS' to word_tab.
append 'DONUT' to word_tab.
append 'AVIAN' to word_tab.
append 'WURST' to word_tab.
append 'CHOCK' to word_tab.
append 'QUASH' to word_tab.
append 'QUALS' to word_tab.
append 'HAYED' to word_tab.
append 'BOMBE' to word_tab.
append 'CUSHY' to word_tab.
append 'SPACY' to word_tab.
append 'PUKED' to word_tab.
append 'LEERY' to word_tab.
append 'THEWS' to word_tab.
append 'PRINK' to word_tab.
append 'AMENS' to word_tab.
append 'TESLA' to word_tab.
append 'INTRO' to word_tab.
append 'FIVER' to word_tab.
append 'FRUMP' to word_tab.
append 'CAPOS' to word_tab.
append 'OPINE' to word_tab.
append 'CODER' to word_tab.
append 'NAMER' to word_tab.
append 'JOWLY' to word_tab.
append 'PUKES' to word_tab.
append 'HALED' to word_tab.
append 'CHARD' to word_tab.
append 'DUFFS' to word_tab.
append 'BRUIN' to word_tab.
append 'REUSE' to word_tab.
append 'WHANG' to word_tab.
append 'TOONS' to word_tab.
append 'FRATS' to word_tab.
append 'SILTY' to word_tab.
append 'TELEX' to word_tab.
append 'CUTUP' to word_tab.
append 'NISEI' to word_tab.
append 'NEATO' to word_tab.
append 'DECAF' to word_tab.
append 'SOFTY' to word_tab.
append 'BIMBO' to word_tab.
append 'ADLIB' to word_tab.
append 'LOONY' to word_tab.
append 'SHOED' to word_tab.
append 'AGUES' to word_tab.
append 'PEEVE' to word_tab.
append 'NOWAY' to word_tab.
append 'GAMEY' to word_tab.
append 'SARGE' to word_tab.
append 'RERAN' to word_tab.
append 'EPACT' to word_tab.
append 'POTTY' to word_tab.
append 'CONED' to word_tab.
append 'UPEND' to word_tab.
append 'NARCO' to word_tab.
append 'IKATS' to word_tab.
append 'WHORL' to word_tab.
append 'JINKS' to word_tab.
append 'TIZZY' to word_tab.
append 'WEEPY' to word_tab.
append 'POSIT' to word_tab.
append 'MARGE' to word_tab.
append 'VEGAN' to word_tab.
append 'CLOPS' to word_tab.
append 'NUMBS' to word_tab.
append 'REEKS' to word_tab.
append 'RUBES' to word_tab.
append 'ROWER' to word_tab.
append 'BIPED' to word_tab.
append 'TIFFS' to word_tab.
append 'HOCUS' to word_tab.
append 'HAMMY' to word_tab.
append 'BUNCO' to word_tab.
append 'FIXIT' to word_tab.
append 'TYKES' to word_tab.
append 'CHAWS' to word_tab.
append 'YUCKY' to word_tab.
append 'HOKEY' to word_tab.
append 'RESEW' to word_tab.
append 'MAVEN' to word_tab.
append 'ADMAN' to word_tab.
append 'SCUZZ' to word_tab.
append 'SLOGS' to word_tab.
append 'SOUSE' to word_tab.
append 'NACHO' to word_tab.
append 'MIMED' to word_tab.
append 'MELDS' to word_tab.
append 'BOFFO' to word_tab.
append 'DEBIT' to word_tab.
append 'PINUP' to word_tab.
append 'VAGUS' to word_tab.
append 'GULAG' to word_tab.
append 'RANDY' to word_tab.
append 'BOSUN' to word_tab.
append 'EDUCE' to word_tab.
append 'FAXES' to word_tab.
append 'AURAS' to word_tab.
append 'PESTO' to word_tab.
append 'ANTSY' to word_tab.
append 'BETAS' to word_tab.
append 'FIZZY' to word_tab.
append 'DORKY' to word_tab.
append 'SNITS' to word_tab.
append 'MOXIE' to word_tab.
append 'THANE' to word_tab.
append 'MYLAR' to word_tab.
append 'NOBBY' to word_tab.
append 'GAMIN' to word_tab.
append 'GOUTY' to word_tab.
append 'ESSES' to word_tab.
append 'GOYIM' to word_tab.
append 'PANED' to word_tab.
append 'DRUID' to word_tab.
append 'JADES' to word_tab.
append 'REHAB' to word_tab.
append 'GOFER' to word_tab.
append 'TZARS' to word_tab.
append 'OCTET' to word_tab.
append 'HOMED' to word_tab.
append 'SOCKO' to word_tab.
append 'DORKS' to word_tab.
append 'EARED' to word_tab.
append 'ANTED' to word_tab.
append 'ELIDE' to word_tab.
append 'FAZES' to word_tab.
append 'OXBOW' to word_tab.
append 'DOWSE' to word_tab.
append 'SITUS' to word_tab.
append 'MACAW' to word_tab.
append 'SCONE' to word_tab.
append 'DRILY' to word_tab.
append 'HYPER' to word_tab.
append 'SALSA' to word_tab.
append 'MOOCH' to word_tab.
append 'GATED' to word_tab.
append 'UNJAM' to word_tab.
append 'LIPID' to word_tab.
append 'MITRE' to word_tab.
append 'VENAL' to word_tab.
append 'KNISH' to word_tab.
append 'RITZY' to word_tab.
append 'DIVAS' to word_tab.
append 'TORUS' to word_tab.
append 'MANGE' to word_tab.
append 'DIMER' to word_tab.
append 'RECUT' to word_tab.
append 'MESON' to word_tab.
append 'WINED' to word_tab.
append 'FENDS' to word_tab.
append 'PHAGE' to word_tab.
append 'FIATS' to word_tab.
append 'CAULK' to word_tab.
append 'CAVIL' to word_tab.
append 'PANTY' to word_tab.
append 'ROANS' to word_tab.
append 'BILKS' to word_tab.
append 'HONES' to word_tab.
append 'BOTCH' to word_tab.
append 'ESTOP' to word_tab.
append 'SULLY' to word_tab.
append 'SOOTH' to word_tab.
append 'GELDS' to word_tab.
append 'AHOLD' to word_tab.
append 'RAPER' to word_tab.
append 'PAGER' to word_tab.
append 'FIXER' to word_tab.
append 'INFIX' to word_tab.
append 'HICKS' to word_tab.
append 'TUXES' to word_tab.
append 'PLEBE' to word_tab.
append 'TWITS' to word_tab.
append 'ABASH' to word_tab.
append 'TWIXT' to word_tab.
append 'WACKO' to word_tab.
append 'PRIMP' to word_tab.
append 'NABLA' to word_tab.
append 'GIRTS' to word_tab.
append 'MIFFS' to word_tab.
append 'EMOTE' to word_tab.
append 'XEROX' to word_tab.
append 'REBID' to word_tab.
append 'SHAHS' to word_tab.
append 'RUTTY' to word_tab.
append 'GROUT' to word_tab.
append 'GRIFT' to word_tab.
append 'DEIFY' to word_tab.
append 'BIDDY' to word_tab.
append 'KOPEK' to word_tab.
append 'SEMIS' to word_tab.
append 'BRIES' to word_tab.
append 'ACMES' to word_tab.
append 'PITON' to word_tab.
append 'HUSSY' to word_tab.
append 'TORTS' to word_tab.
append 'DISCO' to word_tab.
append 'WHORE' to word_tab.
append 'BOOZY' to word_tab.
append 'GIBED' to word_tab.
append 'VAMPS' to word_tab.
append 'AMOUR' to word_tab.
append 'SOPPY' to word_tab.
append 'GONZO' to word_tab.
append 'DURST' to word_tab.
append 'WADER' to word_tab.
append 'TUTUS' to word_tab.
append 'PERMS' to word_tab.
append 'CATTY' to word_tab.
append 'GLITZ' to word_tab.
append 'BRIGS' to word_tab.
append 'NERDS' to word_tab.
append 'BARMY' to word_tab.
append 'GIZMO' to word_tab.
append 'OWLET' to word_tab.
append 'SAYER' to word_tab.
append 'MOLLS' to word_tab.
append 'SHARD' to word_tab.
append 'WHOPS' to word_tab.
append 'COMPS' to word_tab.
append 'CORER' to word_tab.
append 'COLAS' to word_tab.
append 'MATTE' to word_tab.
append 'DROID' to word_tab.
append 'PLOYS' to word_tab.
append 'VAPID' to word_tab.
append 'CAIRN' to word_tab.
append 'DEISM' to word_tab.
append 'MIXUP' to word_tab.
append 'YIKES' to word_tab.
append 'PROSY' to word_tab.
append 'RAKER' to word_tab.
append 'FLUBS' to word_tab.
append 'WHISH' to word_tab.
append 'REIFY' to word_tab.
append 'CRAPS' to word_tab.
append 'SHAGS' to word_tab.
append 'CLONE' to word_tab.
append 'HAZED' to word_tab.
append 'MACHO' to word_tab.
append 'RECTO' to word_tab.
append 'REFIX' to word_tab.
append 'DRAMS' to word_tab.
append 'BIKER' to word_tab.
append 'AQUAS' to word_tab.
append 'PORKY' to word_tab.
append 'DOYEN' to word_tab.
append 'EXUDE' to word_tab.
append 'GOOFS' to word_tab.
append 'DIVVY' to word_tab.
append 'NOELS' to word_tab.
append 'JIVED' to word_tab.
append 'HULKY' to word_tab.
append 'CAGER' to word_tab.
append 'HARPY' to word_tab.
append 'OLDIE' to word_tab.
append 'VIVAS' to word_tab.
append 'ADMIX' to word_tab.
append 'CODAS' to word_tab.
append 'ZILCH' to word_tab.
append 'DEIST' to word_tab.
append 'ORCAS' to word_tab.
append 'RETRO' to word_tab.
append 'PILAF' to word_tab.
append 'PARSE' to word_tab.
append 'RANTS' to word_tab.
append 'ZINGY' to word_tab.
append 'TODDY' to word_tab.
append 'CHIFF' to word_tab.
append 'MICRO' to word_tab.
append 'VEEPS' to word_tab.
append 'GIRLY' to word_tab.
append 'NEXUS' to word_tab.
append 'DEMOS' to word_tab.
append 'BIBBS' to word_tab.
append 'ANTES' to word_tab.
append 'LULUS' to word_tab.
append 'GNARL' to word_tab.
append 'ZIPPY' to word_tab.
append 'IVIED' to word_tab.
append 'EPEES' to word_tab.
append 'WIMPS' to word_tab.
append 'TROMP' to word_tab.
append 'GRAIL' to word_tab.
append 'YOYOS' to word_tab.
append 'POUFS' to word_tab.
append 'HALES' to word_tab.
append 'ROUST' to word_tab.
append 'CABAL' to word_tab.
append 'RAWER' to word_tab.
append 'PAMPA' to word_tab.
append 'MOSEY' to word_tab.
append 'KEFIR' to word_tab.
append 'BURGS' to word_tab.
append 'UNMET' to word_tab.
append 'CUSPY' to word_tab.
append 'BOOBS' to word_tab.
append 'BOONS' to word_tab.
append 'HYPES' to word_tab.
append 'DYNES' to word_tab.
append 'NARDS' to word_tab.
append 'LANAI' to word_tab.
append 'YOGIS' to word_tab.
append 'SEPAL' to word_tab.
append 'QUARK' to word_tab.
append 'TOKED' to word_tab.
append 'PRATE' to word_tab.
append 'AYINS' to word_tab.
append 'HAWED' to word_tab.
append 'SWIGS' to word_tab.
append 'VITAS' to word_tab.
append 'TOKER' to word_tab.
append 'DOPER' to word_tab.
append 'BOSSA' to word_tab.
append 'LINTY' to word_tab.
append 'FOIST' to word_tab.
append 'MONDO' to word_tab.
append 'STASH' to word_tab.
append 'KAYOS' to word_tab.
append 'TWERP' to word_tab.
append 'ZESTY' to word_tab.
append 'CAPON' to word_tab.
append 'WIMPY' to word_tab.
append 'REWED' to word_tab.
append 'FUNGO' to word_tab.
append 'TAROT' to word_tab.
append 'FROSH' to word_tab.
append 'KABOB' to word_tab.
append 'PINKO' to word_tab.
append 'REDID' to word_tab.
append 'MIMEO' to word_tab.
append 'HEIST' to word_tab.
append 'TARPS' to word_tab.
append 'LAMAS' to word_tab.
append 'SUTRA' to word_tab.
append 'DINAR' to word_tab.
append 'WHAMS' to word_tab.
append 'BUSTY' to word_tab.
append 'SPAYS' to word_tab.
append 'MAMBO' to word_tab.
append 'NABOB' to word_tab.
append 'PREPS' to word_tab.
append 'ODOUR' to word_tab.
append 'CABBY' to word_tab.
append 'CONKS' to word_tab.
append 'SLUFF' to word_tab.
append 'DADOS' to word_tab.
append 'HOURI' to word_tab.
append 'SWART' to word_tab.
append 'BALMS' to word_tab.
append 'GUTSY' to word_tab.
append 'FAXED' to word_tab.
append 'EGADS' to word_tab.
append 'PUSHY' to word_tab.
append 'RETRY' to word_tab.
append 'AGORA' to word_tab.
append 'DRUBS' to word_tab.
append 'DAFFY' to word_tab.
append 'CHITS' to word_tab.
append 'MUFTI' to word_tab.
append 'KARMA' to word_tab.
append 'LOTTO' to word_tab.
append 'TOFFS' to word_tab.
append 'BURPS' to word_tab.
append 'DEUCE' to word_tab.
append 'ZINGS' to word_tab.
append 'KAPPA' to word_tab.
append 'CLADS' to word_tab.
append 'DOGGY' to word_tab.
append 'DUPER' to word_tab.
append 'SCAMS' to word_tab.
append 'OGLER' to word_tab.
append 'MIMES' to word_tab.
append 'THROE' to word_tab.
append 'ZETAS' to word_tab.
append 'WALED' to word_tab.
append 'PROMO' to word_tab.
append 'BLATS' to word_tab.
append 'MUFFS' to word_tab.
append 'OINKS' to word_tab.
append 'VIAND' to word_tab.
append 'COSET' to word_tab.
append 'FINKS' to word_tab.
append 'FADDY' to word_tab.
append 'MINIS' to word_tab.
append 'SNAFU' to word_tab.
append 'SAUNA' to word_tab.
append 'USURY' to word_tab.
append 'MUXES' to word_tab.
append 'CRAWS' to word_tab.
append 'STATS' to word_tab.
append 'CONDO' to word_tab.
append 'COXES' to word_tab.
append 'LOOPY' to word_tab.
append 'DORMS' to word_tab.
append 'ASCOT' to word_tab.
append 'DIPPY' to word_tab.
append 'EXECS' to word_tab.
append 'DOPEY' to word_tab.
append 'ENVOI' to word_tab.
append 'UMPTY' to word_tab.
append 'GISMO' to word_tab.
append 'FAZED' to word_tab.
append 'STROP' to word_tab.
append 'JIVES' to word_tab.
append 'SLIMS' to word_tab.
append 'BATIK' to word_tab.
append 'PINGS' to word_tab.
append 'SONLY' to word_tab.
append 'LEGGO' to word_tab.
append 'PEKOE' to word_tab.
append 'PRAWN' to word_tab.
append 'LUAUS' to word_tab.
append 'CAMPY' to word_tab.
append 'OODLE' to word_tab.
append 'PREXY' to word_tab.
append 'PROMS' to word_tab.
append 'TOUTS' to word_tab.
append 'OGLES' to word_tab.
append 'TWEET' to word_tab.
append 'TOADY' to word_tab.
append 'NAIAD' to word_tab.
append 'HIDER' to word_tab.
append 'NUKED' to word_tab.
append 'FATSO' to word_tab.
append 'SLUTS' to word_tab.
append 'OBITS' to word_tab.
append 'NARCS' to word_tab.
append 'TYROS' to word_tab.
append 'DELIS' to word_tab.
append 'WOOER' to word_tab.
append 'HYPED' to word_tab.
append 'POSET' to word_tab.
append 'BYWAY' to word_tab.
append 'TEXAS' to word_tab.
append 'SCROD' to word_tab.
append 'AVOWS' to word_tab.
append 'FUTON' to word_tab.
append 'TORTE' to word_tab.
append 'TUPLE' to word_tab.
append 'CAROM' to word_tab.
append 'KEBAB' to word_tab.
append 'TAMPS' to word_tab.
append 'JILTS' to word_tab.
append 'DUALS' to word_tab.
append 'ARTSY' to word_tab.
append 'REPRO' to word_tab.
append 'MODEM' to word_tab.
append 'TOPED' to word_tab.
append 'PSYCH' to word_tab.
append 'SICKO' to word_tab.
append 'KLUTZ' to word_tab.
append 'TARNS' to word_tab.
append 'COXED' to word_tab.
append 'DRAYS' to word_tab.
append 'CLOYS' to word_tab.
append 'ANDED' to word_tab.
append 'PIKER' to word_tab.
append 'AIMER' to word_tab.
append 'SURAS' to word_tab.
append 'LIMOS' to word_tab.
append 'FLACK' to word_tab.
append 'HAPAX' to word_tab.
append 'DUTCH' to word_tab.
append 'MUCKY' to word_tab.
append 'SHIRE' to word_tab.
append 'KLIEG' to word_tab.
append 'STAPH' to word_tab.
append 'LAYUP' to word_tab.
append 'TOKES' to word_tab.
append 'AXING' to word_tab.
append 'TOPER' to word_tab.
append 'DUVET' to word_tab.
append 'COWRY' to word_tab.
append 'PROFS' to word_tab.
append 'BLAHS' to word_tab.
append 'ADDLE' to word_tab.
append 'SUDSY' to word_tab.
append 'BATTY' to word_tab.
append 'COIFS' to word_tab.
append 'SUETY' to word_tab.
append 'GABBY' to word_tab.
append 'HAFTA' to word_tab.
append 'PITAS' to word_tab.
append 'GOUDA' to word_tab.
append 'DEICE' to word_tab.
append 'TAUPE' to word_tab.
append 'TOPES' to word_tab.
append 'DUCHY' to word_tab.
append 'NITRO' to word_tab.
append 'CARNY' to word_tab.
append 'LIMEY' to word_tab.
append 'ORALS' to word_tab.
append 'HIRER' to word_tab.
append 'TAXER' to word_tab.
append 'ROILS' to word_tab.
append 'RUBLE' to word_tab.
append 'ELATE' to word_tab.
append 'DOLOR' to word_tab.
append 'WRYER' to word_tab.
append 'SNOTS' to word_tab.
append 'QUAIS' to word_tab.
append 'COKED' to word_tab.
append 'GIMEL' to word_tab.
append 'GORSE' to word_tab.
append 'MINAS' to word_tab.
append 'GOEST' to word_tab.
append 'AGAPE' to word_tab.
append 'MANTA' to word_tab.
append 'JINGS' to word_tab.
append 'ILIAC' to word_tab.
append 'ADMEN' to word_tab.
append 'OFFEN' to word_tab.
append 'CILLS' to word_tab.
append 'OFFAL' to word_tab.
append 'LOTTA' to word_tab.
append 'BOLAS' to word_tab.
append 'THWAP' to word_tab.
append 'ALWAY' to word_tab.
append 'BOGGY' to word_tab.
append 'DONNA' to word_tab.
append 'LOCOS' to word_tab.
append 'BELAY' to word_tab.
append 'GLUEY' to word_tab.
append 'BITSY' to word_tab.
append 'MIMSY' to word_tab.
append 'HILAR' to word_tab.
append 'OUTTA' to word_tab.
append 'VROOM' to word_tab.
append 'FETAL' to word_tab.
append 'RATHS' to word_tab.
append 'RENAL' to word_tab.
append 'DYADS' to word_tab.
append 'CROCS' to word_tab.
append 'VIRES' to word_tab.
append 'CULPA' to word_tab.
append 'KIVAS' to word_tab.
append 'FEIST' to word_tab.
append 'TEATS' to word_tab.
append 'THATS' to word_tab.
append 'YAWLS' to word_tab.
append 'WHENS' to word_tab.
append 'ABACA' to word_tab.
append 'OHHHH' to word_tab.
append 'APHIS' to word_tab.
append 'FUSTY' to word_tab.
append 'ECLAT' to word_tab.
append 'PERDU' to word_tab.
append 'MAYST' to word_tab.
append 'EXEAT' to word_tab.
append 'MOLLY' to word_tab.
append 'SUPRA' to word_tab.
append 'WETLY' to word_tab.
append 'PLASM' to word_tab.
append 'BUFFA' to word_tab.
append 'SEMEN' to word_tab.
append 'PUKKA' to word_tab.
append 'TAGUA' to word_tab.
append 'PARAS' to word_tab.
append 'STOAT' to word_tab.
append 'SECCO' to word_tab.
append 'CARTE' to word_tab.
append 'HAUTE' to word_tab.
append 'MOLAL' to word_tab.
append 'SHADS' to word_tab.
append 'FORMA' to word_tab.
append 'OVOID' to word_tab.
append 'PIONS' to word_tab.
append 'MODUS' to word_tab.
append 'BUENO' to word_tab.
append 'RHEUM' to word_tab.
append 'SCURF' to word_tab.
append 'PARER' to word_tab.
append 'EPHAH' to word_tab.
append 'DOEST' to word_tab.
append 'SPRUE' to word_tab.
append 'FLAMS' to word_tab.
append 'MOLTO' to word_tab.
append 'DIETH' to word_tab.
append 'CHOOS' to word_tab.
append 'MIKED' to word_tab.
append 'BRONX' to word_tab.
append 'GOOPY' to word_tab.
append 'BALLY' to word_tab.
append 'PLUMY' to word_tab.
append 'MOONY' to word_tab.
append 'MORTS' to word_tab.
append 'YOURN' to word_tab.
append 'BIPOD' to word_tab.
append 'SPUME' to word_tab.
append 'ALGAL' to word_tab.
append 'AMBIT' to word_tab.
append 'MUCHO' to word_tab.
append 'SPUED' to word_tab.
append 'DOZER' to word_tab.
append 'HARUM' to word_tab.
append 'GROAT' to word_tab.
append 'SKINT' to word_tab.
append 'LAUDE' to word_tab.
append 'THRUM' to word_tab.
append 'PAPPY' to word_tab.
append 'ONCET' to word_tab.
append 'RIMED' to word_tab.
append 'GIGUE' to word_tab.
append 'LIMED' to word_tab.
append 'PLEIN' to word_tab.
append 'REDLY' to word_tab.
append 'HUMPF' to word_tab.
append 'LITES' to word_tab.
append 'SEEST' to word_tab.
append 'GREBE' to word_tab.
append 'ABSIT' to word_tab.
append 'THANX' to word_tab.
append 'PSHAW' to word_tab.
append 'YAWPS' to word_tab.
append 'PLATS' to word_tab.
append 'PAYED' to word_tab.
append 'AREAL' to word_tab.
append 'TILTH' to word_tab.
append 'YOUSE' to word_tab.
append 'GWINE' to word_tab.
append 'THEES' to word_tab.
append 'WATSA' to word_tab.
append 'LENTO' to word_tab.
append 'SPITZ' to word_tab.
append 'YAWED' to word_tab.
append 'GIPSY' to word_tab.
append 'SPRAT' to word_tab.
append 'CORNU' to word_tab.
append 'AMAHS' to word_tab.
append 'BLOWY' to word_tab.
append 'WAHOO' to word_tab.
append 'LUBRA' to word_tab.
append 'MECUM' to word_tab.
append 'WHOOO' to word_tab.
append 'COQUI' to word_tab.
append 'SABRA' to word_tab.
append 'EDEMA' to word_tab.
append 'MRADS' to word_tab.
append 'DICOT' to word_tab.
append 'ASTRO' to word_tab.
append 'KITED' to word_tab.
append 'OUZEL' to word_tab.
append 'DIDOS' to word_tab.
append 'GRATA' to word_tab.
append 'BONNE' to word_tab.
append 'AXMEN' to word_tab.
append 'KLUNK' to word_tab.
append 'SUMMA' to word_tab.
append 'LAVES' to word_tab.
append 'PURLS' to word_tab.
append 'YAWNY' to word_tab.
append 'TEARY' to word_tab.
append 'MASSE' to word_tab.
append 'LARGO' to word_tab.
append 'BAZAR' to word_tab.
append 'PSSST' to word_tab.
append 'SYLPH' to word_tab.
append 'LULAB' to word_tab.
append 'TOQUE' to word_tab.
append 'FUGIT' to word_tab.
append 'PLUNK' to word_tab.
append 'ORTHO' to word_tab.
append 'LUCRE' to word_tab.
append 'COOCH' to word_tab.
append 'WHIPT' to word_tab.
append 'FOLKY' to word_tab.
append 'TYRES' to word_tab.
append 'WHEEE' to word_tab.
append 'CORKY' to word_tab.
append 'INJUN' to word_tab.
append 'SOLON' to word_tab.
append 'DIDOT' to word_tab.
append 'KERFS' to word_tab.
append 'RAYED' to word_tab.
append 'WASSA' to word_tab.
append 'CHILE' to word_tab.
append 'BEGAT' to word_tab.
append 'NIPPY' to word_tab.
append 'LITRE' to word_tab.
append 'MAGNA' to word_tab.
append 'REBOX' to word_tab.
append 'HYDRO' to word_tab.
append 'MILCH' to word_tab.
append 'BRENT' to word_tab.
append 'GYVES' to word_tab.
append 'LAZED' to word_tab.
append 'FEUED' to word_tab.
append 'MAVIS' to word_tab.
append 'INAPT' to word_tab.
append 'BAULK' to word_tab.
append 'CASUS' to word_tab.
append 'SCRUM' to word_tab.
append 'WISED' to word_tab.
append 'FOSSA' to word_tab.
append 'DOWER' to word_tab.
append 'KYRIE' to word_tab.
append 'BHOYS' to word_tab.
append 'SCUSE' to word_tab.
append 'FEUAR' to word_tab.
append 'OHMIC' to word_tab.
append 'JUSTE' to word_tab.
append 'UKASE' to word_tab.
append 'BEAUX' to word_tab.
append 'TUSKY' to word_tab.
append 'ORATE' to word_tab.
append 'MUSTA' to word_tab.
append 'LARDY' to word_tab.
append 'INTRA' to word_tab.
append 'QUIFF' to word_tab.
append 'EPSOM' to word_tab.
append 'NEATH' to word_tab.
append 'OCHER' to word_tab.
append 'TARED' to word_tab.
append 'HOMME' to word_tab.
append 'MEZZO' to word_tab.
append 'CORMS' to word_tab.
append 'PSOAS' to word_tab.
append 'BEAKY' to word_tab.
append 'TERRY' to word_tab.
append 'INFRA' to word_tab.
append 'SPIVS' to word_tab.
append 'TUANS' to word_tab.
append 'BELLI' to word_tab.
append 'BERGS' to word_tab.
append 'ANIMA' to word_tab.
append 'WEIRS' to word_tab.
append 'MAHUA' to word_tab.
append 'SCOPS' to word_tab.
append 'MANSE' to word_tab.
append 'TITRE' to word_tab.
append 'CURIA' to word_tab.
append 'KEBOB' to word_tab.
append 'CYCAD' to word_tab.
append 'TALKY' to word_tab.
append 'FUCKS' to word_tab.
append 'TAPIS' to word_tab.
append 'AMIDE' to word_tab.
append 'DOLCE' to word_tab.
append 'SLOES' to word_tab.
append 'JAKES' to word_tab.
append 'RUSSE' to word_tab.
append 'BLASH' to word_tab.
append 'TUTTI' to word_tab.
append 'PRUTA' to word_tab.
append 'PANGA' to word_tab.
append 'BLEBS' to word_tab.
append 'TENCH' to word_tab.
append 'SWARF' to word_tab.
append 'HEREM' to word_tab.
append 'MISSY' to word_tab.
append 'MERSE' to word_tab.
append 'PAWKY' to word_tab.
append 'LIMEN' to word_tab.
append 'VIVRE' to word_tab.
append 'CHERT' to word_tab.
append 'UNSEE' to word_tab.
append 'TIROS' to word_tab.
append 'BRACK' to word_tab.
append 'FOOTS' to word_tab.
append 'WELSH' to word_tab.
append 'FOSSE' to word_tab.
append 'KNOPS' to word_tab.
append 'ILEUM' to word_tab.
append 'NOIRE' to word_tab.
append 'FIRMA' to word_tab.
append 'PODGY' to word_tab.
append 'LAIRD' to word_tab.
append 'THUNK' to word_tab.
append 'SHUTE' to word_tab.
append 'ROWAN' to word_tab.
append 'SHOJI' to word_tab.
append 'POESY' to word_tab.
append 'UNCAP' to word_tab.
append 'FAMES' to word_tab.
append 'GLEES' to word_tab.
append 'COSTA' to word_tab.
append 'TURPS' to word_tab.
append 'FORES' to word_tab.
append 'SOLUM' to word_tab.
append 'IMAGO' to word_tab.
append 'BYRES' to word_tab.
append 'FONDU' to word_tab.
append 'CONEY' to word_tab.
append 'POLIS' to word_tab.
append 'DICTU' to word_tab.
append 'KRAAL' to word_tab.
append 'SHERD' to word_tab.
append 'MUMBO' to word_tab.
append 'WROTH' to word_tab.
append 'CHARS' to word_tab.
append 'UNBOX' to word_tab.
append 'VACUO' to word_tab.
append 'SLUED' to word_tab.
append 'WEEST' to word_tab.
append 'HADES' to word_tab.
append 'WILED' to word_tab.
append 'SYNCS' to word_tab.
append 'MUSER' to word_tab.
append 'EXCON' to word_tab.
append 'HOARS' to word_tab.
append 'SIBYL' to word_tab.
append 'PASSE' to word_tab.
append 'JOEYS' to word_tab.
append 'LOTSA' to word_tab.
append 'LEPTA' to word_tab.
append 'SHAYS' to word_tab.
append 'BOCKS' to word_tab.
append 'ENDUE' to word_tab.
append 'DARER' to word_tab.
append 'NONES' to word_tab.
append 'ILEUS' to word_tab.
append 'PLASH' to word_tab.
append 'BUSBY' to word_tab.
append 'WHEAL' to word_tab.
append 'BUFFO' to word_tab.
append 'YOBBO' to word_tab.
append 'BILES' to word_tab.
append 'POXES' to word_tab.
append 'ROOTY' to word_tab.
append 'LICIT' to word_tab.
append 'TERCE' to word_tab.
append 'BROMO' to word_tab.
append 'HAYEY' to word_tab.
append 'DWEEB' to word_tab.
append 'IMBED' to word_tab.
append 'SARAN' to word_tab.
append 'BRUIT' to word_tab.
append 'PUNKY' to word_tab.
append 'SOFTS' to word_tab.
append 'BIFFS' to word_tab.
append 'LOPPY' to word_tab.
append 'AGARS' to word_tab.
append 'AQUAE' to word_tab.
append 'LIVRE' to word_tab.
append 'BIOME' to word_tab.
append 'BUNDS' to word_tab.
append 'SHEWS' to word_tab.
append 'DIEMS' to word_tab.
append 'GINNY' to word_tab.
append 'DEGUM' to word_tab.
append 'POLOS' to word_tab.
append 'DESEX' to word_tab.
append 'UNMAN' to word_tab.
append 'DUNGY' to word_tab.
append 'VITAM' to word_tab.
append 'WEDGY' to word_tab.
append 'GLEBE' to word_tab.
append 'APERS' to word_tab.
append 'RIDGY' to word_tab.
append 'ROIDS' to word_tab.
append 'WIFEY' to word_tab.
append 'VAPES' to word_tab.
append 'WHOAS' to word_tab.
append 'BUNKO' to word_tab.
append 'YOLKY' to word_tab.
append 'ULNAS' to word_tab.
append 'REEKY' to word_tab.
append 'BODGE' to word_tab.
append 'BRANT' to word_tab.
append 'DAVIT' to word_tab.
append 'DEQUE' to word_tab.
append 'LIKER' to word_tab.
append 'JENNY' to word_tab.
append 'TACTS' to word_tab.
append 'FULLS' to word_tab.
append 'TREAP' to word_tab.
append 'LIGNE' to word_tab.
append 'ACKED' to word_tab.
append 'REFRY' to word_tab.
append 'VOWER' to word_tab.
append 'AARGH' to word_tab.
append 'CHURL' to word_tab.
append 'MOMMA' to word_tab.
append 'GAOLS' to word_tab.
append 'WHUMP' to word_tab.
append 'ARRAS' to word_tab.
append 'MARLS' to word_tab.
append 'TILER' to word_tab.
append 'GROGS' to word_tab.
append 'MEMES' to word_tab.
append 'MIDIS' to word_tab.
append 'TIDED' to word_tab.
append 'HALER' to word_tab.
append 'DUCES' to word_tab.
append 'TWINY' to word_tab.
append 'POSTE' to word_tab.
append 'UNRIG' to word_tab.
append 'PRISE' to word_tab.
append 'DRABS' to word_tab.
append 'QUIDS' to word_tab.
append 'FACER' to word_tab.
append 'SPIER' to word_tab.
append 'BARIC' to word_tab.
append 'GEOID' to word_tab.
append 'REMAP' to word_tab.
append 'TRIER' to word_tab.
append 'GUNKS' to word_tab.
append 'STENO' to word_tab.
append 'STOMA' to word_tab.
append 'AIRER' to word_tab.
append 'OVATE' to word_tab.
append 'TORAH' to word_tab.
append 'APIAN' to word_tab.
append 'SMUTS' to word_tab.
append 'POCKS' to word_tab.
append 'YURTS' to word_tab.
append 'EXURB' to word_tab.
append 'DEFOG' to word_tab.
append 'NUDER' to word_tab.
append 'BOSKY' to word_tab.
append 'NIMBI' to word_tab.
append 'MOTHY' to word_tab.
append 'JOYED' to word_tab.
append 'LABIA' to word_tab.
append 'PARDS' to word_tab.
append 'JAMMY' to word_tab.
append 'BIGLY' to word_tab.
append 'FAXER' to word_tab.
append 'HOPPY' to word_tab.
append 'NURBS' to word_tab.
append 'COTES' to word_tab.
append 'DISHY' to word_tab.
append 'VISED' to word_tab.
append 'CELEB' to word_tab.
append 'PISMO' to word_tab.
append 'CASAS' to word_tab.
append 'WITHS' to word_tab.
append 'DODGY' to word_tab.
append 'SCUDI' to word_tab.
append 'MUNGS' to word_tab.
append 'MUONS' to word_tab.
append 'UREAS' to word_tab.
append 'IOCTL' to word_tab.
append 'UNHIP' to word_tab.
append 'KRONE' to word_tab.
append 'SAGER' to word_tab.
append 'VERST' to word_tab.
append 'EXPAT' to word_tab.
append 'GRONK' to word_tab.
append 'UVULA' to word_tab.
append 'SHAWM' to word_tab.
append 'BILGY' to word_tab.
append 'BRAES' to word_tab.
append 'CENTO' to word_tab.
append 'WEBBY' to word_tab.
append 'LIPPY' to word_tab.
append 'GAMIC' to word_tab.
append 'LORDY' to word_tab.
append 'MAZED' to word_tab.
append 'TINGS' to word_tab.
append 'SHOAT' to word_tab.
append 'FAERY' to word_tab.
append 'WIRER' to word_tab.
append 'DIAZO' to word_tab.
append 'CARER' to word_tab.
append 'RATER' to word_tab.
append 'GREPS' to word_tab.
append 'RENTE' to word_tab.
append 'ZLOTY' to word_tab.
append 'VIERS' to word_tab.
append 'UNAPT' to word_tab.
append 'POOPS' to word_tab.
append 'FECAL' to word_tab.
append 'KEPIS' to word_tab.
append 'TAXON' to word_tab.
append 'EYERS' to word_tab.
append 'WONTS' to word_tab.
append 'SPINA' to word_tab.
append 'STOAE' to word_tab.
append 'YENTA' to word_tab.
append 'POOEY' to word_tab.
append 'BURET' to word_tab.
append 'JAPAN' to word_tab.
append 'BEDEW' to word_tab.
append 'HAFTS' to word_tab.
append 'SELFS' to word_tab.
append 'OARED' to word_tab.
append 'HERBY' to word_tab.
append 'PRYER' to word_tab.
append 'OAKUM' to word_tab.
append 'DINKS' to word_tab.
append 'TITTY' to word_tab.
append 'SEPOY' to word_tab.
append 'PENES' to word_tab.
append 'FUSEE' to word_tab.
append 'WINEY' to word_tab.
append 'GIMPS' to word_tab.
append 'NIHIL' to word_tab.
append 'RILLE' to word_tab.
append 'GIBER' to word_tab.
append 'OUSEL' to word_tab.
append 'UMIAK' to word_tab.
append 'CUPPY' to word_tab.
append 'HAMES' to word_tab.
append 'SHITS' to word_tab.
append 'AZINE' to word_tab.
append 'GLADS' to word_tab.
append 'TACET' to word_tab.
append 'BUMPH' to word_tab.
append 'COYER' to word_tab.
append 'HONKY' to word_tab.
append 'GAMER' to word_tab.
append 'GOOKY' to word_tab.
append 'WASPY' to word_tab.
append 'SEDGY' to word_tab.
append 'BENTS' to word_tab.
append 'VARIA' to word_tab.
append 'DJINN' to word_tab.
append 'JUNCO' to word_tab.
append 'PUBIC' to word_tab.
append 'WILCO' to word_tab.
append 'LAZES' to word_tab.
append 'IDYLS' to word_tab.
append 'LUPUS' to word_tab.
append 'RIVES' to word_tab.
append 'SNOOD' to word_tab.
append 'SCHMO' to word_tab.
append 'SPAZZ' to word_tab.
append 'FINIS' to word_tab.
append 'NOTER' to word_tab.
append 'PAVAN' to word_tab.
append 'ORBED' to word_tab.
append 'BATES' to word_tab.
append 'PIPET' to word_tab.
append 'BADDY' to word_tab.
append 'GOERS' to word_tab.
append 'SHAKO' to word_tab.
append 'STETS' to word_tab.
append 'SEBUM' to word_tab.
append 'SEETH' to word_tab.
append 'LOBAR' to word_tab.
append 'RAVER' to word_tab.
append 'AJUGA' to word_tab.
append 'RICED' to word_tab.
append 'VELDS' to word_tab.
append 'DRIBS' to word_tab.
append 'VILLE' to word_tab.
append 'DHOWS' to word_tab.
append 'UNSEW' to word_tab.
append 'HALMA' to word_tab.
append 'KRONA' to word_tab.
append 'LIMBY' to word_tab.
append 'JIFFS' to word_tab.
append 'TREYS' to word_tab.
append 'BAUDS' to word_tab.
append 'PFFFT' to word_tab.
append 'MIMER' to word_tab.
append 'PLEBS' to word_tab.
append 'CANER' to word_tab.
append 'JIBER' to word_tab.
append 'CUPPA' to word_tab.
append 'WASHY' to word_tab.
append 'CHUFF' to word_tab.
append 'UNARM' to word_tab.
append 'YUKKY' to word_tab.
append 'STYES' to word_tab.
append 'WAKER' to word_tab.
append 'FLAKS' to word_tab.
append 'MACES' to word_tab.
append 'RIMES' to word_tab.
append 'GIMPY' to word_tab.
append 'GUANO' to word_tab.
append 'LIRAS' to word_tab.
append 'KAPOK' to word_tab.
append 'SCUDS' to word_tab.
append 'BWANA' to word_tab.
append 'ORING' to word_tab.
append 'AIDER' to word_tab.
append 'PRIER' to word_tab.
append 'KLUGY' to word_tab.
append 'MONTE' to word_tab.
append 'GOLEM' to word_tab.
append 'VELAR' to word_tab.
append 'FIRER' to word_tab.
append 'PIETA' to word_tab.
append 'UMBEL' to word_tab.
append 'CAMPO' to word_tab.
append 'UNPEG' to word_tab.
append 'FOVEA' to word_tab.
append 'ABEAM' to word_tab.
append 'BOSON' to word_tab.
append 'ASKER' to word_tab.
append 'GOTHS' to word_tab.
append 'VOCAB' to word_tab.
append 'VINED' to word_tab.
append 'TROWS' to word_tab.
append 'TIKIS' to word_tab.
append 'LOPER' to word_tab.
append 'INDIE' to word_tab.
append 'BOFFS' to word_tab.
append 'SPANG' to word_tab.
append 'GRAPY' to word_tab.
append 'TATER' to word_tab.
append 'ICHOR' to word_tab.
append 'KILTY' to word_tab.
append 'LOCHS' to word_tab.
append 'SUPES' to word_tab.
append 'DEGAS' to word_tab.
append 'FLICS' to word_tab.
append 'TORSI' to word_tab.
append 'BETHS' to word_tab.
append 'WEBER' to word_tab.
append 'RESAW' to word_tab.
append 'LAWNY' to word_tab.
append 'COVEN' to word_tab.
append 'MUJIK' to word_tab.
append 'RELET' to word_tab.
append 'THERM' to word_tab.
append 'HEIGH' to word_tab.
append 'SHNOR' to word_tab.
append 'TRUED' to word_tab.
append 'ZAYIN' to word_tab.
append 'LIEST' to word_tab.
append 'BARFS' to word_tab.
append 'BASSI' to word_tab.
append 'QOPHS' to word_tab.
append 'ROILY' to word_tab.
append 'FLABS' to word_tab.
append 'PUNNY' to word_tab.
append 'OKRAS' to word_tab.
append 'HANKS' to word_tab.
append 'DIPSO' to word_tab.
append 'NERFS' to word_tab.
append 'FAUNS' to word_tab.
append 'CALLA' to word_tab.
append 'PSEUD' to word_tab.
append 'LURER' to word_tab.
append 'MAGUS' to word_tab.
append 'OBEAH' to word_tab.
append 'ATRIA' to word_tab.
append 'TWINK' to word_tab.
append 'PALMY' to word_tab.
append 'POCKY' to word_tab.
append 'PENDS' to word_tab.
append 'RECTA' to word_tab.
append 'PLONK' to word_tab.
append 'SLAWS' to word_tab.
append 'KEENS' to word_tab.
append 'NICAD' to word_tab.
append 'PONES' to word_tab.
append 'INKER' to word_tab.
append 'WHEWS' to word_tab.
append 'GROKS' to word_tab.
append 'MOSTS' to word_tab.
append 'TREWS' to word_tab.
append 'ULNAR' to word_tab.
append 'GYPPY' to word_tab.
append 'COCAS' to word_tab.
append 'EXPOS' to word_tab.
append 'ERUCT' to word_tab.
append 'OILER' to word_tab.
append 'VACUA' to word_tab.
append 'DRECK' to word_tab.
append 'DATER' to word_tab.
append 'ARUMS' to word_tab.
append 'TUBAL' to word_tab.
append 'VOXEL' to word_tab.
append 'DIXIT' to word_tab.
append 'BEERY' to word_tab.
append 'ASSAI' to word_tab.
append 'LADES' to word_tab.
append 'ACTIN' to word_tab.
append 'GHOTI' to word_tab.
append 'BUZZY' to word_tab.
append 'MEADS' to word_tab.
append 'GRODY' to word_tab.
append 'RIBBY' to word_tab.
append 'CLEWS' to word_tab.
append 'CREME' to word_tab.
append 'EMAIL' to word_tab.
append 'PYXIE' to word_tab.
append 'KULAK' to word_tab.
append 'BOCCI' to word_tab.
append 'RIVED' to word_tab.
append 'DUDDY' to word_tab.
append 'HOPER' to word_tab.
append 'LAPIN' to word_tab.
append 'WONKS' to word_tab.
append 'PETRI' to word_tab.
append 'PHIAL' to word_tab.
append 'FUGAL' to word_tab.
append 'HOLON' to word_tab.
append 'BOOMY' to word_tab.
append 'DUOMO' to word_tab.
append 'MUSOS' to word_tab.
append 'SHIER' to word_tab.
append 'HAYER' to word_tab.
append 'PORGY' to word_tab.
append 'HIVED' to word_tab.
append 'LITHO' to word_tab.
append 'FISTY' to word_tab.
append 'STAGY' to word_tab.
append 'LUVYA' to word_tab.
append 'MARIA' to word_tab.
append 'SMOGS' to word_tab.
append 'ASANA' to word_tab.
append 'YOGIC' to word_tab.
append 'SLOMO' to word_tab.
append 'FAWNY' to word_tab.
append 'AMINE' to word_tab.
append 'WEFTS' to word_tab.
append 'GONAD' to word_tab.
append 'TWIRP' to word_tab.
append 'BRAVA' to word_tab.
append 'PLYER' to word_tab.
append 'FERMI' to word_tab.
append 'LOGES' to word_tab.
append 'NITER' to word_tab.
append 'REVET' to word_tab.
append 'UNATE' to word_tab.
append 'GYVED' to word_tab.
append 'TOTTY' to word_tab.
append 'ZAPPY' to word_tab.
append 'HONER' to word_tab.
append 'GIROS' to word_tab.
append 'DICER' to word_tab.
append 'CALKS' to word_tab.
append 'LUXES' to word_tab.
append 'MONAD' to word_tab.
append 'CRUFT' to word_tab.
append 'QUOIN' to word_tab.
append 'FUMER' to word_tab.
append 'AMPED' to word_tab.
append 'SHLEP' to word_tab.
append 'VINCA' to word_tab.
append 'YAHOO' to word_tab.
append 'VULVA' to word_tab.
append 'ZOOEY' to word_tab.
append 'DRYAD' to word_tab.
append 'NIXIE' to word_tab.
append 'MOPER' to word_tab.
append 'IAMBS' to word_tab.
append 'LUNES' to word_tab.
append 'NUDIE' to word_tab.
append 'LIMNS' to word_tab.
append 'WEALS' to word_tab.
append 'NOHOW' to word_tab.
append 'MIAOW' to word_tab.
append 'GOUTS' to word_tab.
append 'MYNAS' to word_tab.
append 'MAZER' to word_tab.
append 'KIKES' to word_tab.
append 'OXEYE' to word_tab.
append 'STOUP' to word_tab.
append 'JUJUS' to word_tab.
append 'DEBAR' to word_tab.
append 'PUBES' to word_tab.
append 'TAELS' to word_tab.
append 'DEFUN' to word_tab.
append 'RANDS' to word_tab.
append 'BLEAR' to word_tab.
append 'PAVER' to word_tab.
append 'GOOSY' to word_tab.
append 'SPROG' to word_tab.
append 'OLEOS' to word_tab.
append 'TOFFY' to word_tab.
append 'PAWER' to word_tab.
append 'MACED' to word_tab.
append 'CRITS' to word_tab.
append 'KLUGE' to word_tab.
append 'TUBED' to word_tab.
append 'SAHIB' to word_tab.
append 'GANEF' to word_tab.
append 'SCATS' to word_tab.
append 'SPUTA' to word_tab.
append 'VANED' to word_tab.
append 'ACNED' to word_tab.
append 'TAXOL' to word_tab.
append 'PLINK' to word_tab.
append 'OWETH' to word_tab.
append 'TRIBS' to word_tab.
append 'RESAY' to word_tab.
append 'BOULE' to word_tab.
append 'THOUS' to word_tab.
append 'HAPLY' to word_tab.
append 'GLANS' to word_tab.
append 'MAXIS' to word_tab.
append 'BEZEL' to word_tab.
append 'ANTIS' to word_tab.
append 'PORKS' to word_tab.
append 'QUOIT' to word_tab.
append 'ALKYD' to word_tab.
append 'GLARY' to word_tab.
append 'BEAMY' to word_tab.
append 'HEXAD' to word_tab.
append 'BONKS' to word_tab.
append 'TECUM' to word_tab.
append 'KERBS' to word_tab.
append 'FILAR' to word_tab.
append 'FRIER' to word_tab.
append 'REDUX' to word_tab.
append 'ABUZZ' to word_tab.
append 'FADER' to word_tab.
append 'SHOER' to word_tab.
append 'COUTH' to word_tab.
append 'TRUES' to word_tab.
append 'GUYED' to word_tab.
append 'GOONY' to word_tab.
append 'BOOKY' to word_tab.
append 'FUZES' to word_tab.
append 'HURLY' to word_tab.
append 'GENET' to word_tab.
append 'HODAD' to word_tab.
append 'CALIX' to word_tab.
append 'FILER' to word_tab.
append 'PAWLS' to word_tab.
append 'IODIC' to word_tab.
append 'UTERO' to word_tab.
append 'HENGE' to word_tab.
append 'UNSAY' to word_tab.
append 'LIERS' to word_tab.
append 'PIING' to word_tab.
append 'WEALD' to word_tab.
append 'SEXED' to word_tab.
append 'FOLIC' to word_tab.
append 'POXED' to word_tab.
append 'CUNTS' to word_tab.
append 'ANILE' to word_tab.
append 'KITHS' to word_tab.
append 'BECKS' to word_tab.
append 'TATTY' to word_tab.
append 'PLENA' to word_tab.
append 'REBAR' to word_tab.
append 'ABLED' to word_tab.
append 'TOYER' to word_tab.
append 'ATTAR' to word_tab.
append 'TEAKS' to word_tab.
append 'AIOLI' to word_tab.
append 'AWING' to word_tab.
append 'ANENT' to word_tab.
append 'FECES' to word_tab.
append 'REDIP' to word_tab.
append 'WISTS' to word_tab.
append 'PRATS' to word_tab.
append 'MESNE' to word_tab.
append 'MUTER' to word_tab.
append 'SMURF' to word_tab.
append 'OWEST' to word_tab.
append 'BAHTS' to word_tab.
append 'LOSSY' to word_tab.
append 'FTPED' to word_tab.
append 'HUNKY' to word_tab.
append 'HOERS' to word_tab.
append 'SLIER' to word_tab.
append 'SICKS' to word_tab.
append 'FATLY' to word_tab.
append 'DELFT' to word_tab.
append 'HIVER' to word_tab.
append 'HIMBO' to word_tab.
append 'PENGO' to word_tab.
append 'BUSKS' to word_tab.
append 'LOXES' to word_tab.
append 'ZONKS' to word_tab.
append 'ILIUM' to word_tab.
append 'APORT' to word_tab.
append 'IKONS' to word_tab.
append 'MULCT' to word_tab.
append 'REEVE' to word_tab.
append 'CIVVY' to word_tab.
append 'CANNA' to word_tab.
append 'BARFY' to word_tab.
append 'KAIAK' to word_tab.
append 'SCUDO' to word_tab.
append 'KNOUT' to word_tab.
append 'GAPER' to word_tab.
append 'BHANG' to word_tab.
append 'PEASE' to word_tab.
append 'UTERI' to word_tab.
append 'LASES' to word_tab.
append 'PATEN' to word_tab.
append 'RASAE' to word_tab.
append 'AXELS' to word_tab.
append 'STOAS' to word_tab.
append 'OMBRE' to word_tab.
append 'STYLI' to word_tab.
append 'GUNKY' to word_tab.
append 'HAZER' to word_tab.
append 'KENAF' to word_tab.
append 'AHOYS' to word_tab.
append 'AMMOS' to word_tab.
append 'WEENY' to word_tab.
append 'URGER' to word_tab.
append 'KUDZU' to word_tab.
append 'PAREN' to word_tab.
append 'BOLOS' to word_tab.
append 'FETOR' to word_tab.
append 'NITTY' to word_tab.
append 'TECHY' to word_tab.
append 'LIETH' to word_tab.
append 'SOMAS' to word_tab.
append 'DARKY' to word_tab.
append 'VILLI' to word_tab.
append 'GLUON' to word_tab.
append 'JANES' to word_tab.
append 'CANTS' to word_tab.
append 'FARTS' to word_tab.
append 'SOCLE' to word_tab.
append 'JINNS' to word_tab.
append 'RUING' to word_tab.
append 'SLILY' to word_tab.
append 'RICER' to word_tab.
append 'HADDA' to word_tab.
append 'WOWEE' to word_tab.
append 'RICES' to word_tab.
append 'NERTS' to word_tab.
append 'CAULS' to word_tab.
append 'SWIVE' to word_tab.
append 'LILTY' to word_tab.
append 'MICKS' to word_tab.
append 'ARITY' to word_tab.
append 'PASHA' to word_tab.
append 'FINIF' to word_tab.
append 'OINKY' to word_tab.
append 'GUTTY' to word_tab.
append 'TETRA' to word_tab.
append 'WISES' to word_tab.
append 'WOLDS' to word_tab.
append 'BALDS' to word_tab.
append 'PICOT' to word_tab.
append 'WHATS' to word_tab.
append 'SHIKI' to word_tab.
append 'BUNGS' to word_tab.
append 'SNARF' to word_tab.
append 'LEGOS' to word_tab.
append 'DUNGS' to word_tab.
append 'STOGY' to word_tab.
append 'BERMS' to word_tab.
append 'TANGS' to word_tab.
append 'VAILS' to word_tab.
append 'ROODS' to word_tab.
append 'MOREL' to word_tab.
append 'SWARE' to word_tab.
append 'ELANS' to word_tab.
append 'LATUS' to word_tab.
append 'GULES' to word_tab.
append 'RAZER' to word_tab.
append 'DOXIE' to word_tab.
append 'BUENA' to word_tab.
append 'OVERS' to word_tab.
append 'GUTTA' to word_tab.
append 'ZINCS' to word_tab.
append 'NATES' to word_tab.
append 'KIRKS' to word_tab.
append 'TIKES' to word_tab.
append 'DONEE' to word_tab.
append 'JERRY' to word_tab.
append 'MOHEL' to word_tab.
append 'CEDER' to word_tab.
append 'DOGES' to word_tab.
append 'UNMAP' to word_tab.
append 'FOLIA' to word_tab.
append 'RAWLY' to word_tab.
append 'SNARK' to word_tab.
append 'TOPOI' to word_tab.
append 'CEILS' to word_tab.
append 'IMMIX' to word_tab.
append 'YORES' to word_tab.
append 'DIEST' to word_tab.
append 'BUBBA' to word_tab.
append 'POMPS' to word_tab.
append 'FORKY' to word_tab.
append 'TURDY' to word_tab.
append 'LAWZY' to word_tab.
append 'POOHS' to word_tab.
append 'WORTS' to word_tab.
append 'GLOMS' to word_tab.
append 'BEANO' to word_tab.
append 'MULEY' to word_tab.
append 'BARKY' to word_tab.
append 'TUNNY' to word_tab.
append 'AURIC' to word_tab.
append 'FUNKS' to word_tab.
append 'GAFFS' to word_tab.
append 'CORDY' to word_tab.
append 'CURDY' to word_tab.
append 'LISLE' to word_tab.
append 'TORIC' to word_tab.
append 'SOYAS' to word_tab.
append 'REMAN' to word_tab.
append 'MUNGY' to word_tab.
append 'CARPY' to word_tab.
append 'APISH' to word_tab.
append 'OATEN' to word_tab.
append 'GAPPY' to word_tab.
append 'AURAE' to word_tab.
append 'BRACT' to word_tab.
append 'ROOKY' to word_tab.
append 'AXLED' to word_tab.
append 'BURRY' to word_tab.
append 'SIZER' to word_tab.
append 'PROEM' to word_tab.
append 'TURFY' to word_tab.
append 'IMPRO' to word_tab.
append 'MASHY' to word_tab.
append 'MIENS' to word_tab.
append 'NONNY' to word_tab.
append 'OLIOS' to word_tab.
append 'GROOK' to word_tab.
append 'SATES' to word_tab.
append 'AGLEY' to word_tab.
append 'CORGI' to word_tab.
append 'DASHY' to word_tab.
append 'DOSER' to word_tab.
append 'DILDO' to word_tab.
append 'APSOS' to word_tab.
append 'XORED' to word_tab.
append 'LAKER' to word_tab.
append 'PLAYA' to word_tab.
append 'SELAH' to word_tab.
append 'MALTY' to word_tab.
append 'DULSE' to word_tab.
append 'FRIGS' to word_tab.
append 'DEMIT' to word_tab.
append 'WHOSO' to word_tab.
append 'RIALS' to word_tab.
append 'SAWER' to word_tab.
append 'SPICS' to word_tab.
append 'BEDIM' to word_tab.
append 'SNUGS' to word_tab.
append 'FANIN' to word_tab.
append 'AZOIC' to word_tab.
append 'ICERS' to word_tab.
append 'SUERS' to word_tab.
append 'WIZEN' to word_tab.
append 'KOINE' to word_tab.
append 'TOPOS' to word_tab.
append 'SHIRR' to word_tab.
append 'RIFER' to word_tab.
append 'FERAL' to word_tab.
append 'LADED' to word_tab.
append 'LASED' to word_tab.
append 'TURDS' to word_tab.
append 'SWEDE' to word_tab.
append 'EASTS' to word_tab.
append 'COZEN' to word_tab.
append 'UNHIT' to word_tab.
append 'PALLY' to word_tab.
append 'AITCH' to word_tab.
append 'SEDUM' to word_tab.
append 'COPER' to word_tab.
append 'RUCHE' to word_tab.
append 'GEEKS' to word_tab.
append 'SWAGS' to word_tab.
append 'ETEXT' to word_tab.
append 'ALGIN' to word_tab.
append 'OFFED' to word_tab.
append 'NINJA' to word_tab.
append 'HOLER' to word_tab.
append 'DOTER' to word_tab.
append 'TOTER' to word_tab.
append 'BESOT' to word_tab.
append 'DICUT' to word_tab.
append 'MACER' to word_tab.
append 'PEENS' to word_tab.
append 'PEWIT' to word_tab.
append 'REDOX' to word_tab.
append 'POLER' to word_tab.
append 'YECCH' to word_tab.
append 'FLUKY' to word_tab.
append 'DOETH' to word_tab.
append 'TWATS' to word_tab.
append 'CRUDS' to word_tab.
append 'BEBUG' to word_tab.
append 'BIDER' to word_tab.
append 'STELE' to word_tab.
append 'HEXER' to word_tab.
append 'WESTS' to word_tab.
append 'GLUER' to word_tab.
append 'PILAU' to word_tab.
append 'ABAFT' to word_tab.
append 'WHELM' to word_tab.
append 'LACER' to word_tab.
append 'INODE' to word_tab.
append 'TABUS' to word_tab.
append 'GATOR' to word_tab.
append 'CUING' to word_tab.
append 'REFLY' to word_tab.
append 'LUTED' to word_tab.
append 'CUKES' to word_tab.
append 'BAIRN' to word_tab.
append 'BIGHT' to word_tab.
append 'ARSES' to word_tab.
append 'CRUMP' to word_tab.
append 'LOGGY' to word_tab.
append 'BLINI' to word_tab.
append 'SPOOR' to word_tab.
append 'TOYON' to word_tab.
append 'HARKS' to word_tab.
append 'WAZOO' to word_tab.
append 'FENNY' to word_tab.
append 'NAVES' to word_tab.
append 'KEYER' to word_tab.
append 'TUFAS' to word_tab.
append 'MORPH' to word_tab.
append 'RAJAS' to word_tab.
append 'TYPAL' to word_tab.
append 'SPIFF' to word_tab.
append 'OXLIP' to word_tab.
append 'UNBAN' to word_tab.
append 'MUSSY' to word_tab.
append 'FINNY' to word_tab.
append 'RIMER' to word_tab.
append 'LOGIN' to word_tab.
append 'MOLAS' to word_tab.
append 'CIRRI' to word_tab.
append 'HUZZA' to word_tab.
append 'AGONE' to word_tab.
append 'UNSEX' to word_tab.
append 'UNWON' to word_tab.
append 'PEATS' to word_tab.
append 'TOILE' to word_tab.
append 'ZOMBI' to word_tab.
append 'DEWED' to word_tab.
append 'NOOKY' to word_tab.
append 'ALKYL' to word_tab.
append 'IXNAY' to word_tab.
append 'DOVEY' to word_tab.
append 'HOLEY' to word_tab.
append 'CUBER' to word_tab.
append 'AMYLS' to word_tab.
append 'PODIA' to word_tab.
append 'CHINO' to word_tab.
append 'APNEA' to word_tab.
append 'PRIMS' to word_tab.
append 'LYCRA' to word_tab.
append 'JOHNS' to word_tab.
append 'PRIMO' to word_tab.
append 'FATWA' to word_tab.
append 'EGGER' to word_tab.
append 'HEMPY' to word_tab.
append 'SNOOK' to word_tab.
append 'HYING' to word_tab.
append 'FUZED' to word_tab.
append 'BARMS' to word_tab.
append 'CRINK' to word_tab.
append 'MOOTS' to word_tab.
append 'YERBA' to word_tab.
append 'RHUMB' to word_tab.
append 'UNARC' to word_tab.
append 'DIRER' to word_tab.
append 'MUNGE' to word_tab.
append 'ELAND' to word_tab.
append 'NARES' to word_tab.
append 'WRIER' to word_tab.
append 'NODDY' to word_tab.
append 'ATILT' to word_tab.
append 'JUKES' to word_tab.
append 'ENDER' to word_tab.
append 'THENS' to word_tab.
append 'UNFIX' to word_tab.
append 'DOGGO' to word_tab.
append 'ZOOKS' to word_tab.
append 'DIDDY' to word_tab.
append 'SHMOO' to word_tab.
append 'BRUSK' to word_tab.
append 'PREST' to word_tab.
append 'CURER' to word_tab.
append 'PASTS' to word_tab.
append 'KELPY' to word_tab.
append 'BOCCE' to word_tab.
append 'KICKY' to word_tab.
append 'TAROS' to word_tab.
append 'LINGS' to word_tab.
append 'DICKY' to word_tab.
append 'NERDY' to word_tab.
append 'ABEND' to word_tab.
append 'STELA' to word_tab.
append 'BIGGY' to word_tab.
append 'LAVED' to word_tab.
append 'BALDY' to word_tab.
append 'PUBIS' to word_tab.
append 'GOOKS' to word_tab.
append 'WONKY' to word_tab.
append 'STIED' to word_tab.
append 'HYPOS' to word_tab.
append 'ASSED' to word_tab.
append 'SPUMY' to word_tab.
append 'OSIER' to word_tab.
append 'ROBLE' to word_tab.
append 'RUMBA' to word_tab.
append 'BIFFY' to word_tab.
append 'PUPAL' to word_tab.
endmethod.
method build_god_tab.
append '20210620REBUT' to god_tab.
append '20210621SISSY' to god_tab.
append '20210622HUMPH' to god_tab.
append '20210623AWAKE' to god_tab.
append '20210624BLUSH' to god_tab.
append '20210625FOCAL' to god_tab.
append '20210626EVADE' to god_tab.
append '20210627NAVAL' to god_tab.
append '20210628SERVE' to god_tab.
append '20210629HEATH' to god_tab.
append '20210630DWARF' to god_tab.
append '20210701MODEL' to god_tab.
append '20210702KARMA' to god_tab.
append '20210703STINK' to god_tab.
append '20210704GRADE' to god_tab.
append '20210705QUIET' to god_tab.
append '20210706BENCH' to god_tab.
append '20210707ABATE' to god_tab.
append '20210708FEIGN' to god_tab.
append '20210709MAJOR' to god_tab.
append '20210710DEATH' to god_tab.
append '20210711FRESH' to god_tab.
append '20210712CRUST' to god_tab.
append '20210713STOOL' to god_tab.
append '20210714COLON' to god_tab.
append '20210715ABASE' to god_tab.
append '20210716MARRY' to god_tab.
append '20210717REACT' to god_tab.
append '20210718BATTY' to god_tab.
append '20210719PRIDE' to god_tab.
append '20210720FLOSS' to god_tab.
append '20210721HELIX' to god_tab.
append '20210722CROAK' to god_tab.
append '20210723STAFF' to god_tab.
append '20210724PAPER' to god_tab.
append '20210725UNFED' to god_tab.
append '20210726WHELP' to god_tab.
append '20210727TRAWL' to god_tab.
append '20210728OUTDO' to god_tab.
append '20210729ADOBE' to god_tab.
append '20210730CRAZY' to god_tab.
append '20210731SOWER' to god_tab.
append '20210801REPAY' to god_tab.
append '20210802DIGIT' to god_tab.
append '20210803CRATE' to god_tab.
append '20210804CLUCK' to god_tab.
append '20210805SPIKE' to god_tab.
append '20210806MIMIC' to god_tab.
append '20210807POUND' to god_tab.
append '20210808MAXIM' to god_tab.
append '20210809LINEN' to god_tab.
append '20210810UNMET' to god_tab.
append '20210811FLESH' to god_tab.
append '20210812BOOBY' to god_tab.
append '20210813FORTH' to god_tab.
append '20210814FIRST' to god_tab.
append '20210815STAND' to god_tab.
append '20210816BELLY' to god_tab.
append '20210817IVORY' to god_tab.
append '20210818SEEDY' to god_tab.
append '20210819PRINT' to god_tab.
append '20210820YEARN' to god_tab.
append '20210821DRAIN' to god_tab.
append '20210822BRIBE' to god_tab.
append '20210823STOUT' to god_tab.
append '20210824PANEL' to god_tab.
append '20210825CRASS' to god_tab.
append '20210826FLUME' to god_tab.
append '20210827OFFAL' to god_tab.
append '20210828AGREE' to god_tab.
append '20210829ERROR' to god_tab.
append '20210830SWIRL' to god_tab.
append '20210831ARGUE' to god_tab.
append '20210901BLEED' to god_tab.
append '20210902DELTA' to god_tab.
append '20210903FLICK' to god_tab.
append '20210904TOTEM' to god_tab.
append '20210905WOOER' to god_tab.
append '20210906FRONT' to god_tab.
append '20210907SHRUB' to god_tab.
append '20210908PARRY' to god_tab.
append '20210909BIOME' to god_tab.
append '20210910LAPEL' to god_tab.
append '20210911START' to god_tab.
append '20210912GREET' to god_tab.
append '20210913GONER' to god_tab.
append '20210914GOLEM' to god_tab.
append '20210915LUSTY' to god_tab.
append '20210916LOOPY' to god_tab.
append '20210917ROUND' to god_tab.
append '20210918AUDIT' to god_tab.
append '20210919LYING' to god_tab.
append '20210920GAMMA' to god_tab.
append '20210921LABOR' to god_tab.
append '20210922ISLET' to god_tab.
append '20210923CIVIC' to god_tab.
append '20210924FORGE' to god_tab.
append '20210925CORNY' to god_tab.
append '20210926MOULT' to god_tab.
append '20210927BASIC' to god_tab.
append '20210928SALAD' to god_tab.
append '20210929AGATE' to god_tab.
append '20210930SPICY' to god_tab.
append '20211001SPRAY' to god_tab.
append '20211002ESSAY' to god_tab.
append '20211003FJORD' to god_tab.
append '20211004SPEND' to god_tab.
append '20211005KEBAB' to god_tab.
append '20211006GUILD' to god_tab.
append '20211007ABACK' to god_tab.
append '20211008MOTOR' to god_tab.
append '20211009ALONE' to god_tab.
append '20211010HATCH' to god_tab.
append '20211011HYPER' to god_tab.
append '20211012THUMB' to god_tab.
append '20211013DOWRY' to god_tab.
append '20211014OUGHT' to god_tab.
append '20211015BELCH' to god_tab.
append '20211016DUTCH' to god_tab.
append '20211017PILOT' to god_tab.
append '20211018TWEED' to god_tab.
append '20211019COMET' to god_tab.
append '20211020JAUNT' to god_tab.
append '20211021ENEMA' to god_tab.
append '20211022STEED' to god_tab.
append '20211023ABYSS' to god_tab.
append '20211024GROWL' to god_tab.
append '20211025FLING' to god_tab.
append '20211026DOZEN' to god_tab.
append '20211027BOOZY' to god_tab.
append '20211028ERODE' to god_tab.
append '20211029WORLD' to god_tab.
append '20211030GOUGE' to god_tab.
append '20211031CLICK' to god_tab.
append '20211101BRIAR' to god_tab.
append '20211102GREAT' to god_tab.
append '20211103ALTAR' to god_tab.
append '20211104PULPY' to god_tab.
append '20211105BLURT' to god_tab.
append '20211106COAST' to god_tab.
append '20211107DUCHY' to god_tab.
append '20211108GROIN' to god_tab.
append '20211109FIXER' to god_tab.
append '20211110GROUP' to god_tab.
append '20211111ROGUE' to god_tab.
append '20211112BADLY' to god_tab.
append '20211113SMART' to god_tab.
append '20211114PITHY' to god_tab.
append '20211115GAUDY' to god_tab.
append '20211116CHILL' to god_tab.
append '20211117HERON' to god_tab.
append '20211118VODKA' to god_tab.
append '20211119FINER' to god_tab.
append '20211120SURER' to god_tab.
append '20211121RADIO' to god_tab.
append '20211122ROUGE' to god_tab.
append '20211123PERCH' to god_tab.
append '20211124RETCH' to god_tab.
append '20211125WROTE' to god_tab.
append '20211126CLOCK' to god_tab.
append '20211127TILDE' to god_tab.
append '20211128STORE' to god_tab.
append '20211129PROVE' to god_tab.
append '20211130BRING' to god_tab.
append '20211201SOLVE' to god_tab.
append '20211202CHEAT' to god_tab.
append '20211203GRIME' to god_tab.
append '20211204EXULT' to god_tab.
append '20211205USHER' to god_tab.
append '20211206EPOCH' to god_tab.
append '20211207TRIAD' to god_tab.
append '20211208BREAK' to god_tab.
append '20211209RHINO' to god_tab.
append '20211210VIRAL' to god_tab.
append '20211211CONIC' to god_tab.
append '20211212MASSE' to god_tab.
append '20211213SONIC' to god_tab.
append '20211214VITAL' to god_tab.
append '20211215TRACE' to god_tab.
append '20211216USING' to god_tab.
append '20211217PEACH' to god_tab.
append '20211218CHAMP' to god_tab.
append '20211219BATON' to god_tab.
append '20211220BRAKE' to god_tab.
append '20211221PLUCK' to god_tab.
append '20211222CRAZE' to god_tab.
append '20211223GRIPE' to god_tab.
append '20211224WEARY' to god_tab.
append '20211225PICKY' to god_tab.
append '20211226ACUTE' to god_tab.
append '20211227FERRY' to god_tab.
append '20211228ASIDE' to god_tab.
append '20211229TAPIR' to god_tab.
append '20211230TROLL' to god_tab.
append '20211231UNIFY' to god_tab.
append '20220101REBUS' to god_tab.
append '20220102BOOST' to god_tab.
append '20220103TRUSS' to god_tab.
append '20220104SIEGE' to god_tab.
append '20220105TIGER' to god_tab.
append '20220106BANAL' to god_tab.
append '20220107SLUMP' to god_tab.
append '20220108CRANK' to god_tab.
append '20220109GORGE' to god_tab.
append '20220110QUERY' to god_tab.
append '20220111DRINK' to god_tab.
append '20220112FAVOR' to god_tab.
append '20220113ABBEY' to god_tab.
append '20220114TANGY' to god_tab.
append '20220115PANIC' to god_tab.
append '20220116SOLAR' to god_tab.
append '20220117SHIRE' to god_tab.
append '20220118PROXY' to god_tab.
append '20220119POINT' to god_tab.
append '20220120ROBOT' to god_tab.
append '20220121PRICK' to god_tab.
append '20220122WINCE' to god_tab.
append '20220123CRIMP' to god_tab.
append '20220124KNOLL' to god_tab.
append '20220125SUGAR' to god_tab.
append '20220126WHACK' to god_tab.
append '20220127MOUNT' to god_tab.
append '20220128PERKY' to god_tab.
append '20220129COULD' to god_tab.
append '20220130WRUNG' to god_tab.
append '20220131LIGHT' to god_tab.
append '20220201THOSE' to god_tab.
append '20220202MOIST' to god_tab.
append '20220203SHARD' to god_tab.
append '20220204PLEAT' to god_tab.
append '20220205ALOFT' to god_tab.
append '20220206SKILL' to god_tab.
append '20220207ELDER' to god_tab.
append '20220208FRAME' to god_tab.
append '20220209HUMOR' to god_tab.
append '20220210PAUSE' to god_tab.
append '20220211ULCER' to god_tab.
append '20220212ULTRA' to god_tab.
append '20220213ROBIN' to god_tab.
append '20220214CYNIC' to god_tab.
append '20220215AGORA' to god_tab.
append '20220216AROMA' to god_tab.
append '20220217CAULK' to god_tab.
append '20220218SHAKE' to god_tab.
append '20220219PUPAL' to god_tab.
append '20220220DODGE' to god_tab.
append '20220221SWILL' to god_tab.
append '20220222TACIT' to god_tab.
append '20220223OTHER' to god_tab.
append '20220224THORN' to god_tab.
append '20220225TROVE' to god_tab.
append '20220226BLOKE' to god_tab.
append '20220227VIVID' to god_tab.
append '20220228SPILL' to god_tab.
append '20220301CHANT' to god_tab.
append '20220302CHOKE' to god_tab.
append '20220303RUPEE' to god_tab.
append '20220304NASTY' to god_tab.
append '20220305MOURN' to god_tab.
append '20220306AHEAD' to god_tab.
append '20220307BRINE' to god_tab.
append '20220308CLOTH' to god_tab.
append '20220309HOARD' to god_tab.
append '20220310SWEET' to god_tab.
append '20220311MONTH' to god_tab.
append '20220312LAPSE' to god_tab.
append '20220313WATCH' to god_tab.
append '20220314TODAY' to god_tab.
append '20220315FOCUS' to god_tab.
append '20220316SMELT' to god_tab.
append '20220317TEASE' to god_tab.
append '20220318CATER' to god_tab.
append '20220319MOVIE' to god_tab.
append '20220320LYNCH' to god_tab.
append '20220321SAUTE' to god_tab.
append '20220322ALLOW' to god_tab.
append '20220323RENEW' to god_tab.
append '20220324THEIR' to god_tab.
append '20220325SLOSH' to god_tab.
append '20220326PURGE' to god_tab.
append '20220327CHEST' to god_tab.
append '20220328DEPOT' to god_tab.
append '20220329EPOXY' to god_tab.
append '20220330NYMPH' to god_tab.
append '20220331FOUND' to god_tab.
append '20220401SHALL' to god_tab.
append '20220402HARRY' to god_tab.
append '20220403STOVE' to god_tab.
append '20220404LOWLY' to god_tab.
append '20220405SNOUT' to god_tab.
append '20220406TROPE' to god_tab.
append '20220407FEWER' to god_tab.
append '20220408SHAWL' to god_tab.
append '20220409NATAL' to god_tab.
append '20220410FIBRE' to god_tab.
append '20220411COMMA' to god_tab.
append '20220412FORAY' to god_tab.
append '20220413SCARE' to god_tab.
append '20220414STAIR' to god_tab.
append '20220415BLACK' to god_tab.
append '20220416SQUAD' to god_tab.
append '20220417ROYAL' to god_tab.
append '20220418CHUNK' to god_tab.
append '20220419MINCE' to god_tab.
append '20220420SLAVE' to god_tab.
append '20220421SHAME' to god_tab.
append '20220422CHEEK' to god_tab.
append '20220423AMPLE' to god_tab.
append '20220424FLAIR' to god_tab.
append '20220425FOYER' to god_tab.
append '20220426CARGO' to god_tab.
append '20220427OXIDE' to god_tab.
append '20220428PLANT' to god_tab.
append '20220429OLIVE' to god_tab.
append '20220430INERT' to god_tab.
append '20220501ASKEW' to god_tab.
append '20220502HEIST' to god_tab.
append '20220503SHOWN' to god_tab.
append '20220504ZESTY' to god_tab.
append '20220505HASTY' to god_tab.
append '20220506TRASH' to god_tab.
append '20220507FELLA' to god_tab.
append '20220508LARVA' to god_tab.
append '20220509FORGO' to god_tab.
append '20220510STORY' to god_tab.
append '20220511HAIRY' to god_tab.
append '20220512TRAIN' to god_tab.
append '20220513HOMER' to god_tab.
append '20220514BADGE' to god_tab.
append '20220515MIDST' to god_tab.
append '20220516CANNY' to god_tab.
append '20220517FETUS' to god_tab.
append '20220518BUTCH' to god_tab.
append '20220519FARCE' to god_tab.
append '20220520SLUNG' to god_tab.
append '20220521TIPSY' to god_tab.
append '20220522METAL' to god_tab.
append '20220523YIELD' to god_tab.
append '20220524DELVE' to god_tab.
append '20220525BEING' to god_tab.
append '20220526SCOUR' to god_tab.
append '20220527GLASS' to god_tab.
append '20220528GAMER' to god_tab.
append '20220529SCRAP' to god_tab.
append '20220530MONEY' to god_tab.
append '20220531HINGE' to god_tab.
append '20220601ALBUM' to god_tab.
append '20220602VOUCH' to god_tab.
append '20220603ASSET' to god_tab.
append '20220604TIARA' to god_tab.
append '20220605CREPT' to god_tab.
append '20220606BAYOU' to god_tab.
append '20220607ATOLL' to god_tab.
append '20220608MANOR' to god_tab.
append '20220609CREAK' to god_tab.
append '20220610SHOWY' to god_tab.
append '20220611PHASE' to god_tab.
append '20220612FROTH' to god_tab.
append '20220613DEPTH' to god_tab.
append '20220614GLOOM' to god_tab.
append '20220615FLOOD' to god_tab.
append '20220616TRAIT' to god_tab.
append '20220617GIRTH' to god_tab.
append '20220618PIETY' to god_tab.
append '20220619PAYER' to god_tab.
append '20220620GOOSE' to god_tab.
append '20220621FLOAT' to god_tab.
append '20220622DONOR' to god_tab.
append '20220623ATONE' to god_tab.
append '20220624PRIMO' to god_tab.
append '20220625APRON' to god_tab.
append '20220626BLOWN' to god_tab.
append '20220627CACAO' to god_tab.
append '20220628LOSER' to god_tab.
append '20220629INPUT' to god_tab.
append '20220630GLOAT' to god_tab.
append '20220701AWFUL' to god_tab.
append '20220702BRINK' to god_tab.
append '20220703SMITE' to god_tab.
append '20220704BEADY' to god_tab.
append '20220705RUSTY' to god_tab.
append '20220706RETRO' to god_tab.
append '20220707DROLL' to god_tab.
append '20220708GAWKY' to god_tab.
append '20220709HUTCH' to god_tab.
append '20220710PINTO' to god_tab.
append '20220711GAILY' to god_tab.
append '20220712EGRET' to god_tab.
append '20220713LILAC' to god_tab.
append '20220714SEVER' to god_tab.
append '20220715FIELD' to god_tab.
append '20220716FLUFF' to god_tab.
append '20220717HYDRO' to god_tab.
append '20220718FLACK' to god_tab.
append '20220719AGAPE' to god_tab.
append '20220720WENCH' to god_tab.
append '20220721VOICE' to god_tab.
append '20220722STEAD' to god_tab.
append '20220723STALK' to god_tab.
append '20220724BERTH' to god_tab.
append '20220725MADAM' to god_tab.
append '20220726NIGHT' to god_tab.
append '20220727BLAND' to god_tab.
append '20220728LIVER' to god_tab.
append '20220729WEDGE' to god_tab.
append '20220730AUGUR' to god_tab.
append '20220731ROOMY' to god_tab.
append '20220801WACKY' to god_tab.
append '20220802FLOCK' to god_tab.
append '20220803ANGRY' to god_tab.
append '20220804BOBBY' to god_tab.
append '20220805TRITE' to god_tab.
append '20220806APHID' to god_tab.
append '20220807TRYST' to god_tab.
append '20220808MIDGE' to god_tab.
append '20220809POWER' to god_tab.
append '20220810ELOPE' to god_tab.
append '20220811CINCH' to god_tab.
append '20220812MOTTO' to god_tab.
append '20220813STOMP' to god_tab.
append '20220814UPSET' to god_tab.
append '20220815BLUFF' to god_tab.
append '20220816CRAMP' to god_tab.
append '20220817QUART' to god_tab.
append '20220818COYLY' to god_tab.
append '20220819YOUTH' to god_tab.
append '20220820RHYME' to god_tab.
append '20220821BUGGY' to god_tab.
append '20220822ALIEN' to god_tab.
append '20220823SMEAR' to god_tab.
append '20220824UNFIT' to god_tab.
append '20220825PATTY' to god_tab.
append '20220826CLING' to god_tab.
append '20220827GLEAN' to god_tab.
append '20220828LABEL' to god_tab.
append '20220829HUNKY' to god_tab.
append '20220830KHAKI' to god_tab.
append '20220831POKER' to god_tab.
append '20220901GRUEL' to god_tab.
append '20220902TWICE' to god_tab.
append '20220903TWANG' to god_tab.
append '20220904SHRUG' to god_tab.
append '20220905TREAT' to god_tab.
append '20220906UNLIT' to god_tab.
append '20220907WASTE' to god_tab.
append '20220908MERIT' to god_tab.
append '20220909WOVEN' to god_tab.
append '20220910OCTAL' to god_tab.
append '20220911NEEDY' to god_tab.
append '20220912CLOWN' to god_tab.
append '20220913WIDOW' to god_tab.
append '20220914IRONY' to god_tab.
append '20220915RUDER' to god_tab.
append '20220916GAUZE' to god_tab.
append '20220917CHIEF' to god_tab.
append '20220918ONSET' to god_tab.
append '20220919PRIZE' to god_tab.
append '20220920FUNGI' to god_tab.
append '20220921CHARM' to god_tab.
append '20220922GULLY' to god_tab.
append '20220923INTER' to god_tab.
append '20220924WHOOP' to god_tab.
append '20220925TAUNT' to god_tab.
append '20220926LEERY' to god_tab.
append '20220927CLASS' to god_tab.
append '20220928THEME' to god_tab.
append '20220929LOFTY' to god_tab.
append '20220930TIBIA' to god_tab.
append '20221001BOOZE' to god_tab.
append '20221002ALPHA' to god_tab.
append '20221003THYME' to god_tab.
append '20221004ECLAT' to god_tab.
append '20221005DOUBT' to god_tab.
append '20221006PARER' to god_tab.
append '20221007CHUTE' to god_tab.
append '20221008STICK' to god_tab.
append '20221009TRICE' to god_tab.
append '20221010ALIKE' to god_tab.
append '20221011SOOTH' to god_tab.
append '20221012RECAP' to god_tab.
append '20221013SAINT' to god_tab.
append '20221014LIEGE' to god_tab.
append '20221015GLORY' to god_tab.
append '20221016GRATE' to god_tab.
append '20221017ADMIT' to god_tab.
append '20221018BRISK' to god_tab.
append '20221019SOGGY' to god_tab.
append '20221020USURP' to god_tab.
append '20221021SCALD' to god_tab.
append '20221022SCORN' to god_tab.
append '20221023LEAVE' to god_tab.
append '20221024TWINE' to god_tab.
append '20221025STING' to god_tab.
append '20221026BOUGH' to god_tab.
append '20221027MARSH' to god_tab.
append '20221028SLOTH' to god_tab.
append '20221029DANDY' to god_tab.
append '20221030VIGOR' to god_tab.
append '20221031HOWDY' to god_tab.
append '20221101ENJOY' to god_tab.
append '20221102VALID' to god_tab.
append '20221103IONIC' to god_tab.
append '20221104EQUAL' to god_tab.
append '20221105UNSET' to god_tab.
append '20221106FLOOR' to god_tab.
append '20221107CATCH' to god_tab.
append '20221108SPADE' to god_tab.
append '20221109STEIN' to god_tab.
append '20221110EXIST' to god_tab.
append '20221111QUIRK' to god_tab.
append '20221112DENIM' to god_tab.
append '20221113GROVE' to god_tab.
append '20221114SPIEL' to god_tab.
append '20221115MUMMY' to god_tab.
append '20221116FAULT' to god_tab.
append '20221117FOGGY' to god_tab.
append '20221118FLOUT' to god_tab.
append '20221119CARRY' to god_tab.
append '20221120SNEAK' to god_tab.
append '20221121LIBEL' to god_tab.
append '20221122WALTZ' to god_tab.
append '20221123APTLY' to god_tab.
append '20221124PINEY' to god_tab.
append '20221125INEPT' to god_tab.
append '20221126ALOUD' to god_tab.
append '20221127PHOTO' to god_tab.
append '20221128DREAM' to god_tab.
append '20221129STALE' to god_tab.
append '20221130VOMIT' to god_tab.
append '20221201OMBRE' to god_tab.
append '20221202FANNY' to god_tab.
append '20221203UNITE' to god_tab.
append '20221204SNARL' to god_tab.
append '20221205BAKER' to god_tab.
append '20221206THERE' to god_tab.
append '20221207GLYPH' to god_tab.
append '20221208POOCH' to god_tab.
append '20221209HIPPY' to god_tab.
append '20221210SPELL' to god_tab.
append '20221211FOLLY' to god_tab.
append '20221212LOUSE' to god_tab.
append '20221213GULCH' to god_tab.
append '20221214VAULT' to god_tab.
append '20221215GODLY' to god_tab.
append '20221216THREW' to god_tab.
append '20221217FLEET' to god_tab.
append '20221218GRAVE' to god_tab.
append '20221219INANE' to god_tab.
append '20221220SHOCK' to god_tab.
append '20221221CRAVE' to god_tab.
append '20221222SPITE' to god_tab.
append '20221223VALVE' to god_tab.
append '20221224SKIMP' to god_tab.
append '20221225CLAIM' to god_tab.
append '20221226RAINY' to god_tab.
append '20221227MUSTY' to god_tab.
append '20221228PIQUE' to god_tab.
append '20221229DADDY' to god_tab.
append '20221230QUASI' to god_tab.
append '20221231ARISE' to god_tab.
append '20230101AGING' to god_tab.
append '20230102VALET' to god_tab.
append '20230103OPIUM' to god_tab.
append '20230104AVERT' to god_tab.
append '20230105STUCK' to god_tab.
append '20230106RECUT' to god_tab.
append '20230107MULCH' to god_tab.
append '20230108GENRE' to god_tab.
append '20230109PLUME' to god_tab.
append '20230110RIFLE' to god_tab.
append '20230111COUNT' to god_tab.
append '20230112INCUR' to god_tab.
append '20230113TOTAL' to god_tab.
append '20230114WREST' to god_tab.
append '20230115MOCHA' to god_tab.
append '20230116DETER' to god_tab.
append '20230117STUDY' to god_tab.
append '20230118LOVER' to god_tab.
append '20230119SAFER' to god_tab.
append '20230120RIVET' to god_tab.
append '20230121FUNNY' to god_tab.
append '20230122SMOKE' to god_tab.
append '20230123MOUND' to god_tab.
append '20230124UNDUE' to god_tab.
append '20230125SEDAN' to god_tab.
append '20230126PAGAN' to god_tab.
append '20230127SWINE' to god_tab.
append '20230128GUILE' to god_tab.
append '20230129GUSTY' to god_tab.
append '20230130EQUIP' to god_tab.
append '20230131TOUGH' to god_tab.
append '20230201CANOE' to god_tab.
append '20230202CHAOS' to god_tab.
append '20230203COVET' to god_tab.
append '20230204HUMAN' to god_tab.
append '20230205UDDER' to god_tab.
append '20230206LUNCH' to god_tab.
append '20230207BLAST' to god_tab.
append '20230208STRAY' to god_tab.
append '20230209MANGA' to god_tab.
append '20230210MELEE' to god_tab.
append '20230211LEFTY' to god_tab.
append '20230212QUICK' to god_tab.
append '20230213PASTE' to god_tab.
append '20230214GIVEN' to god_tab.
append '20230215OCTET' to god_tab.
append '20230216RISEN' to god_tab.
append '20230217GROAN' to god_tab.
append '20230218LEAKY' to god_tab.
append '20230219GRIND' to god_tab.
append '20230220CARVE' to god_tab.
append '20230221LOOSE' to god_tab.
append '20230222SADLY' to god_tab.
append '20230223SPILT' to god_tab.
append '20230224APPLE' to god_tab.
append '20230225SLACK' to god_tab.
append '20230226HONEY' to god_tab.
append '20230227FINAL' to god_tab.
append '20230228SHEEN' to god_tab.
append '20230301EERIE' to god_tab.
append '20230302MINTY' to god_tab.
append '20230303SLICK' to god_tab.
append '20230304DERBY' to god_tab.
append '20230305WHARF' to god_tab.
append '20230306SPELT' to god_tab.
append '20230307COACH' to god_tab.
append '20230308ERUPT' to god_tab.
append '20230309SINGE' to god_tab.
append '20230310PRICE' to god_tab.
append '20230311SPAWN' to god_tab.
append '20230312FAIRY' to god_tab.
append '20230313JIFFY' to god_tab.
append '20230314FILMY' to god_tab.
append '20230315STACK' to god_tab.
append '20230316CHOSE' to god_tab.
append '20230317SLEEP' to god_tab.
append '20230318ARDOR' to god_tab.
append '20230319NANNY' to god_tab.
append '20230320NIECE' to god_tab.
append '20230321WOOZY' to god_tab.
append '20230322HANDY' to god_tab.
append '20230323GRACE' to god_tab.
append '20230324DITTO' to god_tab.
append '20230325STANK' to god_tab.
append '20230326CREAM' to god_tab.
append '20230327USUAL' to god_tab.
append '20230328DIODE' to god_tab.
append '20230329VALOR' to god_tab.
append '20230330ANGLE' to god_tab.
append '20230331NINJA' to god_tab.
append '20230401MUDDY' to god_tab.
append '20230402CHASE' to god_tab.
append '20230403REPLY' to god_tab.
append '20230404PRONE' to god_tab.
append '20230405SPOIL' to god_tab.
append '20230406HEART' to god_tab.
append '20230407SHADE' to god_tab.
append '20230408DINER' to god_tab.
append '20230409ARSON' to god_tab.
append '20230410ONION' to god_tab.
append '20230411SLEET' to god_tab.
append '20230412DOWEL' to god_tab.
append '20230413COUCH' to god_tab.
append '20230414PALSY' to god_tab.
append '20230415BOWEL' to god_tab.
append '20230416SMILE' to god_tab.
append '20230417EVOKE' to god_tab.
append '20230418CREEK' to god_tab.
append '20230419LANCE' to god_tab.
append '20230420EAGLE' to god_tab.
append '20230421IDIOT' to god_tab.
append '20230422SIREN' to god_tab.
append '20230423BUILT' to god_tab.
append '20230424EMBED' to god_tab.
append '20230425AWARD' to god_tab.
append '20230426DROSS' to god_tab.
append '20230427ANNUL' to god_tab.
append '20230428GOODY' to god_tab.
append '20230429FROWN' to god_tab.
append '20230430PATIO' to god_tab.
append '20230501LADEN' to god_tab.
append '20230502HUMID' to god_tab.
append '20230503ELITE' to god_tab.
append '20230504LYMPH' to god_tab.
append '20230505EDIFY' to god_tab.
append '20230506MIGHT' to god_tab.
append '20230507RESET' to god_tab.
append '20230508VISIT' to god_tab.
append '20230509GUSTO' to god_tab.
append '20230510PURSE' to god_tab.
append '20230511VAPOR' to god_tab.
append '20230512CROCK' to god_tab.
append '20230513WRITE' to god_tab.
append '20230514SUNNY' to god_tab.
append '20230515LOATH' to god_tab.
append '20230516CHAFF' to god_tab.
append '20230517SLIDE' to god_tab.
append '20230518QUEER' to god_tab.
append '20230519VENOM' to god_tab.
append '20230520STAMP' to god_tab.
append '20230521SORRY' to god_tab.
append '20230522STILL' to god_tab.
append '20230523ACORN' to god_tab.
append '20230524APING' to god_tab.
append '20230525PUSHY' to god_tab.
append '20230526TAMER' to god_tab.
append '20230527HATER' to god_tab.
append '20230528MANIA' to god_tab.
append '20230529AWOKE' to god_tab.
append '20230530BRAWN' to god_tab.
append '20230531SWIFT' to god_tab.
append '20230601EXILE' to god_tab.
append '20230602BIRCH' to god_tab.
append '20230603LUCKY' to god_tab.
append '20230604FREER' to god_tab.
append '20230605RISKY' to god_tab.
append '20230606GHOST' to god_tab.
append '20230607PLIER' to god_tab.
append '20230608LUNAR' to god_tab.
append '20230609WINCH' to god_tab.
append '20230610SNARE' to god_tab.
append '20230611NURSE' to god_tab.
append '20230612HOUSE' to god_tab.
append '20230613BORAX' to god_tab.
append '20230614NICER' to god_tab.
append '20230615LURCH' to god_tab.
append '20230616EXALT' to god_tab.
append '20230617ABOUT' to god_tab.
append '20230618SAVVY' to god_tab.
append '20230619TOXIN' to god_tab.
append '20230620TUNIC' to god_tab.
append '20230621PRIED' to god_tab.
append '20230622INLAY' to god_tab.
append '20230623CHUMP' to god_tab.
append '20230624LANKY' to god_tab.
append '20230625CRESS' to god_tab.
append '20230626EATER' to god_tab.
append '20230627ELUDE' to god_tab.
append '20230628CYCLE' to god_tab.
append '20230629KITTY' to god_tab.
append '20230630BOULE' to god_tab.
append '20230701MORON' to god_tab.
append '20230702TENET' to god_tab.
append '20230703PLACE' to god_tab.
append '20230704LOBBY' to god_tab.
append '20230705PLUSH' to god_tab.
append '20230706VIGIL' to god_tab.
append '20230707INDEX' to god_tab.
append '20230708BLINK' to god_tab.
append '20230709CLUNG' to god_tab.
append '20230710QUALM' to god_tab.
append '20230711CROUP' to god_tab.
append '20230712CLINK' to god_tab.
append '20230713JUICY' to god_tab.
append '20230714STAGE' to god_tab.
append '20230715DECAY' to god_tab.
append '20230716NERVE' to god_tab.
append '20230717FLIER' to god_tab.
append '20230718SHAFT' to god_tab.
append '20230719CROOK' to god_tab.
append '20230720CLEAN' to god_tab.
append '20230721CHINA' to god_tab.
append '20230722RIDGE' to god_tab.
append '20230723VOWEL' to god_tab.
append '20230724GNOME' to god_tab.
append '20230725SNUCK' to god_tab.
append '20230726ICING' to god_tab.
append '20230727SPINY' to god_tab.
append '20230728RIGOR' to god_tab.
append '20230729SNAIL' to god_tab.
append '20230730FLOWN' to god_tab.
append '20230731RABID' to god_tab.
append '20230801PROSE' to god_tab.
append '20230802THANK' to god_tab.
append '20230803POPPY' to god_tab.
append '20230804BUDGE' to god_tab.
append '20230805FIBER' to god_tab.
append '20230806MOLDY' to god_tab.
append '20230807DOWDY' to god_tab.
append '20230808KNEEL' to god_tab.
append '20230809TRACK' to god_tab.
append '20230810CADDY' to god_tab.
append '20230811QUELL' to god_tab.
append '20230812DUMPY' to god_tab.
append '20230813PALER' to god_tab.
append '20230814SWORE' to god_tab.
append '20230815REBAR' to god_tab.
append '20230816SCUBA' to god_tab.
append '20230817SPLAT' to god_tab.
append '20230818FLYER' to god_tab.
append '20230819HORNY' to god_tab.
append '20230820MASON' to god_tab.
append '20230821DOING' to god_tab.
append '20230822OZONE' to god_tab.
append '20230823AMPLY' to god_tab.
append '20230824MOLAR' to god_tab.
append '20230825OVARY' to god_tab.
append '20230826BESET' to god_tab.
append '20230827QUEUE' to god_tab.
append '20230828CLIFF' to god_tab.
append '20230829MAGIC' to god_tab.
append '20230830TRUCE' to god_tab.
append '20230831SPORT' to god_tab.
append '20230901FRITZ' to god_tab.
append '20230902EDICT' to god_tab.
append '20230903TWIRL' to god_tab.
append '20230904VERSE' to god_tab.
append '20230905LLAMA' to god_tab.
append '20230906EATEN' to god_tab.
append '20230907RANGE' to god_tab.
append '20230908WHISK' to god_tab.
append '20230909HOVEL' to god_tab.
append '20230910REHAB' to god_tab.
append '20230911MACAW' to god_tab.
append '20230912SIGMA' to god_tab.
append '20230913SPOUT' to god_tab.
append '20230914VERVE' to god_tab.
append '20230915SUSHI' to god_tab.
append '20230916DYING' to god_tab.
append '20230917FETID' to god_tab.
append '20230918BRAIN' to god_tab.
append '20230919BUDDY' to god_tab.
append '20230920THUMP' to god_tab.
append '20230921SCION' to god_tab.
append '20230922CANDY' to god_tab.
append '20230923CHORD' to god_tab.
append '20230924BASIN' to god_tab.
append '20230925MARCH' to god_tab.
append '20230926CROWD' to god_tab.
append '20230927ARBOR' to god_tab.
append '20230928GAYLY' to god_tab.
append '20230929MUSKY' to god_tab.
append '20230930STAIN' to god_tab.
append '20231001DALLY' to god_tab.
append '20231002BLESS' to god_tab.
append '20231003BRAVO' to god_tab.
append '20231004STUNG' to god_tab.
append '20231005TITLE' to god_tab.
append '20231006RULER' to god_tab.
append '20231007KIOSK' to god_tab.
append '20231008BLOND' to god_tab.
append '20231009ENNUI' to god_tab.
append '20231010LAYER' to god_tab.
append '20231011FLUID' to god_tab.
append '20231012TATTY' to god_tab.
append '20231013SCORE' to god_tab.
append '20231014CUTIE' to god_tab.
append '20231015ZEBRA' to god_tab.
append '20231016BARGE' to god_tab.
append '20231017MATEY' to god_tab.
append '20231018BLUER' to god_tab.
append '20231019AIDER' to god_tab.
append '20231020SHOOK' to god_tab.
append '20231021RIVER' to god_tab.
append '20231022PRIVY' to god_tab.
append '20231023BETEL' to god_tab.
append '20231024FRISK' to god_tab.
append '20231025BONGO' to god_tab.
append '20231026BEGUN' to god_tab.
append '20231027AZURE' to god_tab.
append '20231028WEAVE' to god_tab.
append '20231029GENIE' to god_tab.
append '20231030SOUND' to god_tab.
append '20231031GLOVE' to god_tab.
append '20231101BRAID' to god_tab.
append '20231102SCOPE' to god_tab.
append '20231103WRYLY' to god_tab.
append '20231104ROVER' to god_tab.
append '20231105ASSAY' to god_tab.
append '20231106OCEAN' to god_tab.
append '20231107BLOOM' to god_tab.
append '20231108IRATE' to god_tab.
append '20231109LATER' to god_tab.
append '20231110WOKEN' to god_tab.
append '20231111SILKY' to god_tab.
append '20231112WRECK' to god_tab.
append '20231113DWELT' to god_tab.
append '20231114SLATE' to god_tab.
append '20231115SMACK' to god_tab.
append '20231116SOLID' to god_tab.
append '20231117AMAZE' to god_tab.
append '20231118HAZEL' to god_tab.
append '20231119WRIST' to god_tab.
append '20231120JOLLY' to god_tab.
append '20231121GLOBE' to god_tab.
append '20231122FLINT' to god_tab.
append '20231123ROUSE' to god_tab.
append '20231124CIVIL' to god_tab.
append '20231125VISTA' to god_tab.
append '20231126RELAX' to god_tab.
append '20231127COVER' to god_tab.
append '20231128ALIVE' to god_tab.
append '20231129BEECH' to god_tab.
append '20231130JETTY' to god_tab.
append '20231201BLISS' to god_tab.
append '20231202VOCAL' to god_tab.
append '20231203OFTEN' to god_tab.
append '20231204DOLLY' to god_tab.
append '20231205EIGHT' to god_tab.
append '20231206JOKER' to god_tab.
append '20231207SINCE' to god_tab.
append '20231208EVENT' to god_tab.
append '20231209ENSUE' to god_tab.
append '20231210SHUNT' to god_tab.
append '20231211DIVER' to god_tab.
append '20231212POSER' to god_tab.
append '20231213WORST' to god_tab.
append '20231214SWEEP' to god_tab.
append '20231215ALLEY' to god_tab.
append '20231216CREED' to god_tab.
append '20231217ANIME' to god_tab.
append '20231218LEAFY' to god_tab.
append '20231219BOSOM' to god_tab.
append '20231220DUNCE' to god_tab.
append '20231221STARE' to god_tab.
append '20231222PUDGY' to god_tab.
append '20231223WAIVE' to god_tab.
append '20231224CHOIR' to god_tab.
append '20231225STOOD' to god_tab.
append '20231226SPOKE' to god_tab.
append '20231227OUTGO' to god_tab.
append '20231228DELAY' to god_tab.
append '20231229BILGE' to god_tab.
append '20231230IDEAL' to god_tab.
append '20231231CLASP' to god_tab.
append '20240101SEIZE' to god_tab.
append '20240102HOTLY' to god_tab.
append '20240103LAUGH' to god_tab.
append '20240104SIEVE' to god_tab.
append '20240105BLOCK' to god_tab.
append '20240106MEANT' to god_tab.
append '20240107GRAPE' to god_tab.
append '20240108NOOSE' to god_tab.
append '20240109HARDY' to god_tab.
append '20240110SHIED' to god_tab.
append '20240111DRAWL' to god_tab.
append '20240112DAISY' to god_tab.
append '20240113PUTTY' to god_tab.
append '20240114STRUT' to god_tab.
append '20240115BURNT' to god_tab.
append '20240116TULIP' to god_tab.
append '20240117CRICK' to god_tab.
append '20240118IDYLL' to god_tab.
append '20240119VIXEN' to god_tab.
append '20240120FUROR' to god_tab.
append '20240121GEEKY' to god_tab.
append '20240122COUGH' to god_tab.
append '20240123NAIVE' to god_tab.
append '20240124SHOAL' to god_tab.
append '20240125STORK' to god_tab.
append '20240126BATHE' to god_tab.
append '20240127AUNTY' to god_tab.
append '20240128CHECK' to god_tab.
append '20240129PRIME' to god_tab.
append '20240130BRASS' to god_tab.
append '20240131OUTER' to god_tab.
append '20240201FURRY' to god_tab.
append '20240202RAZOR' to god_tab.
append '20240203ELECT' to god_tab.
append '20240204EVICT' to god_tab.
append '20240205IMPLY' to god_tab.
append '20240206DEMUR' to god_tab.
append '20240207QUOTA' to god_tab.
append '20240208HAVEN' to god_tab.
append '20240209CAVIL' to god_tab.
append '20240210SWEAR' to god_tab.
append '20240211CRUMP' to god_tab.
append '20240212DOUGH' to god_tab.
append '20240213GAVEL' to god_tab.
append '20240214WAGON' to god_tab.
append '20240215SALON' to god_tab.
append '20240216NUDGE' to god_tab.
append '20240217HAREM' to god_tab.
append '20240218PITCH' to god_tab.
append '20240219SWORN' to god_tab.
append '20240220PUPIL' to god_tab.
append '20240221EXCEL' to god_tab.
append '20240222STONY' to god_tab.
append '20240223CABIN' to god_tab.
append '20240224UNZIP' to god_tab.
append '20240225QUEEN' to god_tab.
append '20240226TROUT' to god_tab.
append '20240227POLYP' to god_tab.
append '20240228EARTH' to god_tab.
append '20240229STORM' to god_tab.
append '20240301UNTIL' to god_tab.
append '20240302TAPER' to god_tab.
append '20240303ENTER' to god_tab.
append '20240304CHILD' to god_tab.
append '20240305ADOPT' to god_tab.
append '20240306MINOR' to god_tab.
append '20240307FATTY' to god_tab.
append '20240308HUSKY' to god_tab.
append '20240309BRAVE' to god_tab.
append '20240310FILET' to god_tab.
append '20240311SLIME' to god_tab.
append '20240312GLINT' to god_tab.
append '20240313TREAD' to god_tab.
append '20240314STEAL' to god_tab.
append '20240315REGAL' to god_tab.
append '20240316GUEST' to god_tab.
append '20240317EVERY' to god_tab.
append '20240318MURKY' to god_tab.
append '20240319SHARE' to god_tab.
append '20240320SPORE' to god_tab.
append '20240321HOIST' to god_tab.
append '20240322BUXOM' to god_tab.
append '20240323INNER' to god_tab.
append '20240324OTTER' to god_tab.
append '20240325DIMLY' to god_tab.
append '20240326LEVEL' to god_tab.
append '20240327SUMAC' to god_tab.
append '20240328DONUT' to god_tab.
append '20240329STILT' to god_tab.
append '20240330ARENA' to god_tab.
append '20240331SHEET' to god_tab.
append '20240401SCRUB' to god_tab.
append '20240402FANCY' to god_tab.
append '20240403SLIMY' to god_tab.
append '20240404PEARL' to god_tab.
append '20240405SILLY' to god_tab.
append '20240406PORCH' to god_tab.
append '20240407DINGO' to god_tab.
append '20240408SEPIA' to god_tab.
append '20240409AMBLE' to god_tab.
append '20240410SHADY' to god_tab.
append '20240411BREAD' to god_tab.
append '20240412FRIAR' to god_tab.
append '20240413REIGN' to god_tab.
append '20240414DAIRY' to god_tab.
append '20240415QUILL' to god_tab.
append '20240416CROSS' to god_tab.
append '20240417BROOD' to god_tab.
append '20240418TUBER' to god_tab.
append '20240419SHEAR' to god_tab.
append '20240420POSIT' to god_tab.
append '20240421BLANK' to god_tab.
append '20240422VILLA' to god_tab.
append '20240423SHANK' to god_tab.
append '20240424PIGGY' to god_tab.
append '20240425FREAK' to god_tab.
append '20240426WHICH' to god_tab.
append '20240427AMONG' to god_tab.
append '20240428FECAL' to god_tab.
append '20240429SHELL' to god_tab.
append '20240430WOULD' to god_tab.
append '20240501ALGAE' to god_tab.
append '20240502LARGE' to god_tab.
append '20240503RABBI' to god_tab.
append '20240504AGONY' to god_tab.
append '20240505AMUSE' to god_tab.
append '20240506BUSHY' to god_tab.
append '20240507COPSE' to god_tab.
append '20240508SWOON' to god_tab.
append '20240509KNIFE' to god_tab.
append '20240510POUCH' to god_tab.
append '20240511ASCOT' to god_tab.
append '20240512PLANE' to god_tab.
append '20240513CROWN' to god_tab.
append '20240514URBAN' to god_tab.
append '20240515SNIDE' to god_tab.
append '20240516RELAY' to god_tab.
append '20240517ABIDE' to god_tab.
append '20240518VIOLA' to god_tab.
append '20240519RAJAH' to god_tab.
append '20240520STRAW' to god_tab.
append '20240521DILLY' to god_tab.
append '20240522CRASH' to god_tab.
append '20240523AMASS' to god_tab.
append '20240524THIRD' to god_tab.
append '20240525TRICK' to god_tab.
append '20240526TUTOR' to god_tab.
append '20240527WOODY' to god_tab.
append '20240528BLURB' to god_tab.
append '20240529GRIEF' to god_tab.
append '20240530DISCO' to god_tab.
append '20240531WHERE' to god_tab.
append '20240601SASSY' to god_tab.
append '20240602BEACH' to god_tab.
append '20240603SAUNA' to god_tab.
append '20240604COMIC' to god_tab.
append '20240605CLUED' to god_tab.
append '20240606CREEP' to god_tab.
append '20240607CASTE' to god_tab.
append '20240608GRAZE' to god_tab.
append '20240609SNUFF' to god_tab.
append '20240610FROCK' to god_tab.
append '20240611GONAD' to god_tab.
append '20240612DRUNK' to god_tab.
append '20240613PRONG' to god_tab.
append '20240614LURID' to god_tab.
append '20240615STEEL' to god_tab.
append '20240616HALVE' to god_tab.
append '20240617BUYER' to god_tab.
append '20240618VINYL' to god_tab.
append '20240619UTILE' to god_tab.
append '20240620SMELL' to god_tab.
append '20240621ADAGE' to god_tab.
append '20240622WORRY' to god_tab.
append '20240623TASTY' to god_tab.
append '20240624LOCAL' to god_tab.
append '20240625TRADE' to god_tab.
append '20240626FINCH' to god_tab.
append '20240627ASHEN' to god_tab.
append '20240628MODAL' to god_tab.
append '20240629GAUNT' to god_tab.
append '20240630CLOVE' to god_tab.
append '20240701ENACT' to god_tab.
append '20240702ADORN' to god_tab.
append '20240703ROAST' to god_tab.
append '20240704SPECK' to god_tab.
append '20240705SHEIK' to god_tab.
append '20240706MISSY' to god_tab.
append '20240707GRUNT' to god_tab.
append '20240708SNOOP' to god_tab.
append '20240709PARTY' to god_tab.
append '20240710TOUCH' to god_tab.
append '20240711MAFIA' to god_tab.
append '20240712EMCEE' to god_tab.
append '20240713ARRAY' to god_tab.
append '20240714SOUTH' to god_tab.
append '20240715VAPID' to god_tab.
append '20240716JELLY' to god_tab.
append '20240717SKULK' to god_tab.
append '20240718ANGST' to god_tab.
append '20240719TUBAL' to god_tab.
append '20240720LOWER' to god_tab.
append '20240721CREST' to god_tab.
append '20240722SWEAT' to god_tab.
append '20240723CYBER' to god_tab.
append '20240724ADORE' to god_tab.
append '20240725TARDY' to god_tab.
append '20240726SWAMI' to god_tab.
append '20240727NOTCH' to god_tab.
append '20240728GROOM' to god_tab.
append '20240729ROACH' to god_tab.
append '20240730HITCH' to god_tab.
append '20240731YOUNG' to god_tab.
append '20240801ALIGN' to god_tab.
append '20240802READY' to god_tab.
append '20240803FROND' to god_tab.
append '20240804STRAP' to god_tab.
append '20240805PUREE' to god_tab.
append '20240806REALM' to god_tab.
append '20240807VENUE' to god_tab.
append '20240808SWARM' to god_tab.
append '20240809OFFER' to god_tab.
append '20240810SEVEN' to god_tab.
append '20240811DRYER' to god_tab.
append '20240812DIARY' to god_tab.
append '20240813DRYLY' to god_tab.
append '20240814DRANK' to god_tab.
append '20240815ACRID' to god_tab.
append '20240816HEADY' to god_tab.
append '20240817THETA' to god_tab.
append '20240818JUNTO' to god_tab.
append '20240819PIXIE' to god_tab.
append '20240820QUOTH' to god_tab.
append '20240821BONUS' to god_tab.
append '20240822SHALT' to god_tab.
append '20240823PENNE' to god_tab.
append '20240824AMEND' to god_tab.
append '20240825DATUM' to god_tab.
append '20240826BUILD' to god_tab.
append '20240827PIANO' to god_tab.
append '20240828SHELF' to god_tab.
append '20240829LODGE' to god_tab.
append '20240830SUING' to god_tab.
append '20240831REARM' to god_tab.
append '20240901CORAL' to god_tab.
append '20240902RAMEN' to god_tab.
append '20240903WORTH' to god_tab.
append '20240904PSALM' to god_tab.
append '20240905INFER' to god_tab.
append '20240906OVERT' to god_tab.
append '20240907MAYOR' to god_tab.
append '20240908OVOID' to god_tab.
append '20240909GLIDE' to god_tab.
append '20240910USAGE' to god_tab.
append '20240911POISE' to god_tab.
append '20240912RANDY' to god_tab.
append '20240913CHUCK' to god_tab.
append '20240914PRANK' to god_tab.
append '20240915FISHY' to god_tab.
append '20240916TOOTH' to god_tab.
append '20240917ETHER' to god_tab.
append '20240918DROVE' to god_tab.
append '20240919IDLER' to god_tab.
append '20240920SWATH' to god_tab.
append '20240921STINT' to god_tab.
append '20240922WHILE' to god_tab.
append '20240923BEGAT' to god_tab.
append '20240924APPLY' to god_tab.
append '20240925SLANG' to god_tab.
append '20240926TAROT' to god_tab.
append '20240927RADAR' to god_tab.
append '20240928CREDO' to god_tab.
append '20240929AWARE' to god_tab.
append '20240930CANON' to god_tab.
append '20241001SHIFT' to god_tab.
append '20241002TIMER' to god_tab.
append '20241003BYLAW' to god_tab.
append '20241004SERUM' to god_tab.
append '20241005THREE' to god_tab.
append '20241006STEAK' to god_tab.
append '20241007ILIAC' to god_tab.
append '20241008SHIRK' to god_tab.
append '20241009BLUNT' to god_tab.
append '20241010PUPPY' to god_tab.
append '20241011PENAL' to god_tab.
append '20241012JOIST' to god_tab.
append '20241013BUNNY' to god_tab.
append '20241014SHAPE' to god_tab.
append '20241015BEGET' to god_tab.
append '20241016WHEEL' to god_tab.
append '20241017ADEPT' to god_tab.
append '20241018STUNT' to god_tab.
append '20241019STOLE' to god_tab.
append '20241020TOPAZ' to god_tab.
append '20241021CHORE' to god_tab.
append '20241022FLUKE' to god_tab.
append '20241023AFOOT' to god_tab.
append '20241024BLOAT' to god_tab.
append '20241025BULLY' to god_tab.
append '20241026DENSE' to god_tab.
append '20241027CAPER' to god_tab.
append '20241028SNEER' to god_tab.
append '20241029BOXER' to god_tab.
append '20241030JUMBO' to god_tab.
append '20241031LUNGE' to god_tab.
append '20241101SPACE' to god_tab.
append '20241102AVAIL' to god_tab.
append '20241103SHORT' to god_tab.
append '20241104SLURP' to god_tab.
append '20241105LOYAL' to god_tab.
append '20241106FLIRT' to god_tab.
append '20241107PIZZA' to god_tab.
append '20241108CONCH' to god_tab.
append '20241109TEMPO' to god_tab.
append '20241110DROOP' to god_tab.
append '20241111PLATE' to god_tab.
append '20241112BIBLE' to god_tab.
append '20241113PLUNK' to god_tab.
append '20241114AFOUL' to god_tab.
append '20241115SAVOY' to god_tab.
append '20241116STEEP' to god_tab.
append '20241117AGILE' to god_tab.
append '20241118STAKE' to god_tab.
append '20241119DWELL' to god_tab.
append '20241120KNAVE' to god_tab.
append '20241121BEARD' to god_tab.
append '20241122AROSE' to god_tab.
append '20241123MOTIF' to god_tab.
append '20241124SMASH' to god_tab.
append '20241125BROIL' to god_tab.
append '20241126GLARE' to god_tab.
append '20241127SHOVE' to god_tab.
append '20241128BAGGY' to god_tab.
append '20241129MAMMY' to god_tab.
append '20241130SWAMP' to god_tab.
append '20241201ALONG' to god_tab.
append '20241202RUGBY' to god_tab.
append '20241203WAGER' to god_tab.
append '20241204QUACK' to god_tab.
append '20241205SQUAT' to god_tab.
append '20241206SNAKY' to god_tab.
append '20241207DEBIT' to god_tab.
append '20241208MANGE' to god_tab.
append '20241209SKATE' to god_tab.
append '20241210NINTH' to god_tab.
append '20241211JOUST' to god_tab.
append '20241212TRAMP' to god_tab.
append '20241213SPURN' to god_tab.
append '20241214MEDAL' to god_tab.
append '20241215MICRO' to god_tab.
append '20241216REBEL' to god_tab.
append '20241217FLANK' to god_tab.
append '20241218LEARN' to god_tab.
append '20241219NADIR' to god_tab.
append '20241220MAPLE' to god_tab.
append '20241221COMFY' to god_tab.
append '20241222REMIT' to god_tab.
append '20241223GRUFF' to god_tab.
append '20241224ESTER' to god_tab.
append '20241225LEAST' to god_tab.
append '20241226MOGUL' to god_tab.
append '20241227FETCH' to god_tab.
append '20241228CAUSE' to god_tab.
append '20241229OAKEN' to god_tab.
append '20241230AGLOW' to god_tab.
append '20241231MEATY' to god_tab.
append '20250101GAFFE' to god_tab.
append '20250102SHYLY' to god_tab.
append '20250103RACER' to god_tab.
append '20250104PROWL' to god_tab.
append '20250105THIEF' to god_tab.
append '20250106STERN' to god_tab.
append '20250107POESY' to god_tab.
append '20250108ROCKY' to god_tab.
append '20250109TWEET' to god_tab.
append '20250110WAIST' to god_tab.
append '20250111SPIRE' to god_tab.
append '20250112GROPE' to god_tab.
append '20250113HAVOC' to god_tab.
append '20250114PATSY' to god_tab.
append '20250115TRULY' to god_tab.
append '20250116FORTY' to god_tab.
append '20250117DEITY' to god_tab.
append '20250118UNCLE' to god_tab.
append '20250119SWISH' to god_tab.
append '20250120GIVER' to god_tab.
append '20250121PREEN' to god_tab.
append '20250122BEVEL' to god_tab.
append '20250123LEMUR' to god_tab.
append '20250124DRAFT' to god_tab.
append '20250125SLOPE' to god_tab.
append '20250126ANNOY' to god_tab.
append '20250127LINGO' to god_tab.
append '20250128BLEAK' to god_tab.
append '20250129DITTY' to god_tab.
append '20250130CURLY' to god_tab.
append '20250131CEDAR' to god_tab.
append '20250201DIRGE' to god_tab.
append '20250202GROWN' to god_tab.
append '20250203HORDE' to god_tab.
append '20250204DROOL' to god_tab.
append '20250205SHUCK' to god_tab.
append '20250206CRYPT' to god_tab.
append '20250207CUMIN' to god_tab.
append '20250208STOCK' to god_tab.
append '20250209GRAVY' to god_tab.
append '20250210LOCUS' to god_tab.
append '20250211WIDER' to god_tab.
append '20250212BREED' to god_tab.
append '20250213QUITE' to god_tab.
append '20250214CHAFE' to god_tab.
append '20250215CACHE' to god_tab.
append '20250216BLIMP' to god_tab.
append '20250217DEIGN' to god_tab.
append '20250218FIEND' to god_tab.
append '20250219LOGIC' to god_tab.
append '20250220CHEAP' to god_tab.
append '20250221ELIDE' to god_tab.
append '20250222RIGID' to god_tab.
append '20250223FALSE' to god_tab.
append '20250224RENAL' to god_tab.
append '20250225PENCE' to god_tab.
append '20250226ROWDY' to god_tab.
append '20250227SHOOT' to god_tab.
append '20250228BLAZE' to god_tab.
append '20250301ENVOY' to god_tab.
append '20250302POSSE' to god_tab.
append '20250303BRIEF' to god_tab.
append '20250304NEVER' to god_tab.
append '20250305ABORT' to god_tab.
append '20250306MOUSE' to god_tab.
append '20250307MUCKY' to god_tab.
append '20250308SULKY' to god_tab.
append '20250309FIERY' to god_tab.
append '20250310MEDIA' to god_tab.
append '20250311TRUNK' to god_tab.
append '20250312YEAST' to god_tab.
append '20250313CLEAR' to god_tab.
append '20250314SKUNK' to god_tab.
append '20250315SCALP' to god_tab.
append '20250316BITTY' to god_tab.
append '20250317CIDER' to god_tab.
append '20250318KOALA' to god_tab.
append '20250319DUVET' to god_tab.
append '20250320SEGUE' to god_tab.
append '20250321CREME' to god_tab.
append '20250322SUPER' to god_tab.
append '20250323GRILL' to god_tab.
append '20250324AFTER' to god_tab.
append '20250325OWNER' to god_tab.
append '20250326EMBER' to god_tab.
append '20250327REACH' to god_tab.
append '20250328NOBLY' to god_tab.
append '20250329EMPTY' to god_tab.
append '20250330SPEED' to god_tab.
append '20250331GIPSY' to god_tab.
append '20250401RECUR' to god_tab.
append '20250402SMOCK' to god_tab.
append '20250403DREAD' to god_tab.
append '20250404MERGE' to god_tab.
append '20250405BURST' to god_tab.
append '20250406KAPPA' to god_tab.
append '20250407AMITY' to god_tab.
append '20250408SHAKY' to god_tab.
append '20250409HOVER' to god_tab.
append '20250410CAROL' to god_tab.
append '20250411SNORT' to god_tab.
append '20250412SYNOD' to god_tab.
append '20250413FAINT' to god_tab.
append '20250414HAUNT' to god_tab.
append '20250415FLOUR' to god_tab.
append '20250416CHAIR' to god_tab.
append '20250417DETOX' to god_tab.
append '20250418SHREW' to god_tab.
append '20250419TENSE' to god_tab.
append '20250420PLIED' to god_tab.
append '20250421QUARK' to god_tab.
append '20250422BURLY' to god_tab.
append '20250423NOVEL' to god_tab.
append '20250424WAXEN' to god_tab.
append '20250425STOIC' to god_tab.
append '20250426JERKY' to god_tab.
append '20250427BLITZ' to god_tab.
append '20250428BEEFY' to god_tab.
append '20250429LYRIC' to god_tab.
append '20250430HUSSY' to god_tab.
append '20250501TOWEL' to god_tab.
append '20250502QUILT' to god_tab.
append '20250503BELOW' to god_tab.
append '20250504BINGO' to god_tab.
append '20250505WISPY' to god_tab.
append '20250506BRASH' to god_tab.
append '20250507SCONE' to god_tab.
append '20250508TOAST' to god_tab.
append '20250509EASEL' to god_tab.
append '20250510SAUCY' to god_tab.
append '20250511VALUE' to god_tab.
append '20250512SPICE' to god_tab.
append '20250513HONOR' to god_tab.
append '20250514ROUTE' to god_tab.
append '20250515SHARP' to god_tab.
append '20250516BAWDY' to god_tab.
append '20250517RADII' to god_tab.
append '20250518SKULL' to god_tab.
append '20250519PHONY' to god_tab.
append '20250520ISSUE' to god_tab.
append '20250521LAGER' to god_tab.
append '20250522SWELL' to god_tab.
append '20250523URINE' to god_tab.
append '20250524GASSY' to god_tab.
append '20250525TRIAL' to god_tab.
append '20250526FLORA' to god_tab.
append '20250527UPPER' to god_tab.
append '20250528LATCH' to god_tab.
append '20250529WIGHT' to god_tab.
append '20250530BRICK' to god_tab.
append '20250531RETRY' to god_tab.
append '20250601HOLLY' to god_tab.
append '20250602DECAL' to god_tab.
append '20250603GRASS' to god_tab.
append '20250604SHACK' to god_tab.
append '20250605DOGMA' to god_tab.
append '20250606MOVER' to god_tab.
append '20250607DEFER' to god_tab.
append '20250608SOBER' to god_tab.
append '20250609OPTIC' to god_tab.
append '20250610CRIER' to god_tab.
append '20250611VYING' to god_tab.
append '20250612NOMAD' to god_tab.
append '20250613FLUTE' to god_tab.
append '20250614HIPPO' to god_tab.
append '20250615SHARK' to god_tab.
append '20250616DRIER' to god_tab.
append '20250617OBESE' to god_tab.
append '20250618BUGLE' to god_tab.
append '20250619TAWNY' to god_tab.
append '20250620CHALK' to god_tab.
append '20250621FEAST' to god_tab.
append '20250622RUDDY' to god_tab.
append '20250623PEDAL' to god_tab.
append '20250624SCARF' to god_tab.
append '20250625CRUEL' to god_tab.
append '20250626BLEAT' to god_tab.
append '20250627TIDAL' to god_tab.
append '20250628SLUSH' to god_tab.
append '20250629SEMEN' to god_tab.
append '20250630WINDY' to god_tab.
append '20250701DUSTY' to god_tab.
append '20250702SALLY' to god_tab.
append '20250703IGLOO' to god_tab.
append '20250704NERDY' to god_tab.
append '20250705JEWEL' to god_tab.
append '20250706SHONE' to god_tab.
append '20250707WHALE' to god_tab.
append '20250708HYMEN' to god_tab.
append '20250709ABUSE' to god_tab.
append '20250710FUGUE' to god_tab.
append '20250711ELBOW' to god_tab.
append '20250712CRUMB' to god_tab.
append '20250713PANSY' to god_tab.
append '20250714WELSH' to god_tab.
append '20250715SYRUP' to god_tab.
append '20250716TERSE' to god_tab.
append '20250717SUAVE' to god_tab.
append '20250718GAMUT' to god_tab.
append '20250719SWUNG' to god_tab.
append '20250720DRAKE' to god_tab.
append '20250721FREED' to god_tab.
append '20250722AFIRE' to god_tab.
append '20250723SHIRT' to god_tab.
append '20250724GROUT' to god_tab.
append '20250725ODDLY' to god_tab.
append '20250726TITHE' to god_tab.
append '20250727PLAID' to god_tab.
append '20250728DUMMY' to god_tab.
append '20250729BROOM' to god_tab.
append '20250730BLIND' to god_tab.
append '20250731TORCH' to god_tab.
append '20250801ENEMY' to god_tab.
append '20250802AGAIN' to god_tab.
append '20250803TYING' to god_tab.
append '20250804PESKY' to god_tab.
append '20250805ALTER' to god_tab.
append '20250806GAZER' to god_tab.
append '20250807NOBLE' to god_tab.
append '20250808ETHOS' to god_tab.
append '20250809BRIDE' to god_tab.
append '20250810EXTOL' to god_tab.
append '20250811DECOR' to god_tab.
append '20250812HOBBY' to god_tab.
append '20250813BEAST' to god_tab.
append '20250814IDIOM' to god_tab.
append '20250815UTTER' to god_tab.
append '20250816THESE' to god_tab.
append '20250817SIXTH' to god_tab.
append '20250818ALARM' to god_tab.
append '20250819ERASE' to god_tab.
append '20250820ELEGY' to god_tab.
append '20250821SPUNK' to god_tab.
append '20250822PIPER' to god_tab.
append '20250823SCALY' to god_tab.
append '20250824SCOLD' to god_tab.
append '20250825HEFTY' to god_tab.
append '20250826CHICK' to god_tab.
append '20250827SOOTY' to god_tab.
append '20250828CANAL' to god_tab.
append '20250829WHINY' to god_tab.
append '20250830SLASH' to god_tab.
append '20250831QUAKE' to god_tab.
append '20250901JOINT' to god_tab.
append '20250902SWEPT' to god_tab.
append '20250903PRUDE' to god_tab.
append '20250904HEAVY' to god_tab.
append '20250905WIELD' to god_tab.
append '20250906FEMME' to god_tab.
append '20250907LASSO' to god_tab.
append '20250908MAIZE' to god_tab.
append '20250909SHALE' to god_tab.
append '20250910SCREW' to god_tab.
append '20250911SPREE' to god_tab.
append '20250912SMOKY' to god_tab.
append '20250913WHIFF' to god_tab.
append '20250914SCENT' to god_tab.
append '20250915GLADE' to god_tab.
append '20250916SPENT' to god_tab.
append '20250917PRISM' to god_tab.
append '20250918STOKE' to god_tab.
append '20250919RIPER' to god_tab.
append '20250920ORBIT' to god_tab.
append '20250921COCOA' to god_tab.
append '20250922GUILT' to god_tab.
append '20250923HUMUS' to god_tab.
append '20250924SHUSH' to god_tab.
append '20250925TABLE' to god_tab.
append '20250926SMIRK' to god_tab.
append '20250927WRONG' to god_tab.
append '20250928NOISY' to god_tab.
append '20250929ALERT' to god_tab.
append '20250930SHINY' to god_tab.
append '20251001ELATE' to god_tab.
append '20251002RESIN' to god_tab.
append '20251003WHOLE' to god_tab.
append '20251004HUNCH' to god_tab.
append '20251005PIXEL' to god_tab.
append '20251006POLAR' to god_tab.
append '20251007HOTEL' to god_tab.
append '20251008SWORD' to god_tab.
append '20251009CLEAT' to god_tab.
append '20251010MANGO' to god_tab.
append '20251011RUMBA' to god_tab.
append '20251012PUFFY' to god_tab.
append '20251013FILLY' to god_tab.
append '20251014BILLY' to god_tab.
append '20251015LEASH' to god_tab.
append '20251016CLOUT' to god_tab.
append '20251017DANCE' to god_tab.
append '20251018OVATE' to god_tab.
append '20251019FACET' to god_tab.
append '20251020CHILI' to god_tab.
append '20251021PAINT' to god_tab.
append '20251022LINER' to god_tab.
append '20251023CURIO' to god_tab.
append '20251024SALTY' to god_tab.
append '20251025AUDIO' to god_tab.
append '20251026SNAKE' to god_tab.
append '20251027FABLE' to god_tab.
append '20251028CLOAK' to god_tab.
append '20251029NAVEL' to god_tab.
append '20251030SPURT' to god_tab.
append '20251031PESTO' to god_tab.
append '20251101BALMY' to god_tab.
append '20251102FLASH' to god_tab.
append '20251103UNWED' to god_tab.
append '20251104EARLY' to god_tab.
append '20251105CHURN' to god_tab.
append '20251106WEEDY' to god_tab.
append '20251107STUMP' to god_tab.
append '20251108LEASE' to god_tab.
append '20251109WITTY' to god_tab.
append '20251110WIMPY' to god_tab.
append '20251111SPOOF' to god_tab.
append '20251112SANER' to god_tab.
append '20251113BLEND' to god_tab.
append '20251114SALSA' to god_tab.
append '20251115THICK' to god_tab.
append '20251116WARTY' to god_tab.
append '20251117MANIC' to god_tab.
append '20251118BLARE' to god_tab.
append '20251119SQUIB' to god_tab.
append '20251120SPOON' to god_tab.
append '20251121PROBE' to god_tab.
append '20251122CREPE' to god_tab.
append '20251123KNACK' to god_tab.
append '20251124FORCE' to god_tab.
append '20251125DEBUT' to god_tab.
append '20251126ORDER' to god_tab.
append '20251127HASTE' to god_tab.
append '20251128TEETH' to god_tab.
append '20251129AGENT' to god_tab.
append '20251130WIDEN' to god_tab.
append '20251201ICILY' to god_tab.
append '20251202SLICE' to god_tab.
append '20251203INGOT' to god_tab.
append '20251204CLASH' to god_tab.
append '20251205JUROR' to god_tab.
append '20251206BLOOD' to god_tab.
append '20251207ABODE' to god_tab.
append '20251208THROW' to god_tab.
append '20251209UNITY' to god_tab.
append '20251210PIVOT' to god_tab.
append '20251211SLEPT' to god_tab.
append '20251212TROOP' to god_tab.
append '20251213SPARE' to god_tab.
append '20251214SEWER' to god_tab.
append '20251215PARSE' to god_tab.
append '20251216MORPH' to god_tab.
append '20251217CACTI' to god_tab.
append '20251218TACKY' to god_tab.
append '20251219SPOOL' to god_tab.
append '20251220DEMON' to god_tab.
append '20251221MOODY' to god_tab.
append '20251222ANNEX' to god_tab.
append '20251223BEGIN' to god_tab.
append '20251224FUZZY' to god_tab.
append '20251225PATCH' to god_tab.
append '20251226WATER' to god_tab.
append '20251227LUMPY' to god_tab.
append '20251228ADMIN' to god_tab.
append '20251229OMEGA' to god_tab.
append '20251230LIMIT' to god_tab.
append '20251231TABBY' to god_tab.
append '20260101MACHO' to god_tab.
append '20260102AISLE' to god_tab.
append '20260103SKIFF' to god_tab.
append '20260104BASIS' to god_tab.
append '20260105PLANK' to god_tab.
append '20260106VERGE' to god_tab.
append '20260107BOTCH' to god_tab.
append '20260108CRAWL' to god_tab.
append '20260109LOUSY' to god_tab.
append '20260110SLAIN' to god_tab.
append '20260111CUBIC' to god_tab.
append '20260112RAISE' to god_tab.
append '20260113WRACK' to god_tab.
append '20260114GUIDE' to god_tab.
append '20260115FOIST' to god_tab.
append '20260116CAMEO' to god_tab.
append '20260117UNDER' to god_tab.
append '20260118ACTOR' to god_tab.
append '20260119REVUE' to god_tab.
append '20260120FRAUD' to god_tab.
append '20260121HARPY' to god_tab.
append '20260122SCOOP' to god_tab.
append '20260123CLIMB' to god_tab.
append '20260124REFER' to god_tab.
append '20260125OLDEN' to god_tab.
append '20260126CLERK' to god_tab.
append '20260127DEBAR' to god_tab.
append '20260128TALLY' to god_tab.
append '20260129ETHIC' to god_tab.
append '20260130CAIRN' to god_tab.
append '20260131TULLE' to god_tab.
append '20260201GHOUL' to god_tab.
append '20260202HILLY' to god_tab.
append '20260203CRUDE' to god_tab.
append '20260204APART' to god_tab.
append '20260205SCALE' to god_tab.
append '20260206OLDER' to god_tab.
append '20260207PLAIN' to god_tab.
append '20260208SPERM' to god_tab.
append '20260209BRINY' to god_tab.
append '20260210ABBOT' to god_tab.
append '20260211RERUN' to god_tab.
append '20260212QUEST' to god_tab.
append '20260213CRISP' to god_tab.
append '20260214BOUND' to god_tab.
append '20260215BEFIT' to god_tab.
append '20260216DRAWN' to god_tab.
append '20260217SUITE' to god_tab.
append '20260218ITCHY' to god_tab.
append '20260219CHEER' to god_tab.
append '20260220BAGEL' to god_tab.
append '20260221GUESS' to god_tab.
append '20260222BROAD' to god_tab.
append '20260223AXIOM' to god_tab.
append '20260224CHARD' to god_tab.
append '20260225CAPUT' to god_tab.
append '20260226LEANT' to god_tab.
append '20260227HARSH' to god_tab.
append '20260228CURSE' to god_tab.
append '20260301PROUD' to god_tab.
append '20260302SWING' to god_tab.
append '20260303OPINE' to god_tab.
append '20260304TASTE' to god_tab.
append '20260305LUPUS' to god_tab.
append '20260306GUMBO' to god_tab.
append '20260307MINER' to god_tab.
append '20260308GREEN' to god_tab.
append '20260309CHASM' to god_tab.
append '20260310LIPID' to god_tab.
append '20260311TOPIC' to god_tab.
append '20260312ARMOR' to god_tab.
append '20260313BRUSH' to god_tab.
append '20260314CRANE' to god_tab.
append '20260315MURAL' to god_tab.
append '20260316ABLED' to god_tab.
append '20260317HABIT' to god_tab.
append '20260318BOSSY' to god_tab.
append '20260319MAKER' to god_tab.
append '20260320DUSKY' to god_tab.
append '20260321DIZZY' to god_tab.
append '20260322LITHE' to god_tab.
append '20260323BROOK' to god_tab.
append '20260324JAZZY' to god_tab.
append '20260325FIFTY' to god_tab.
append '20260326SENSE' to god_tab.
append '20260327GIANT' to god_tab.
append '20260328SURLY' to god_tab.
append '20260329LEGAL' to god_tab.
append '20260330FATAL' to god_tab.
append '20260331FLUNK' to god_tab.
append '20260401BEGAN' to god_tab.
append '20260402PRUNE' to god_tab.
append '20260403SMALL' to god_tab.
append '20260404SLANT' to god_tab.
append '20260405SCOFF' to god_tab.
append '20260406TORUS' to god_tab.
append '20260407NINNY' to god_tab.
append '20260408COVEY' to god_tab.
append '20260409VIPER' to god_tab.
append '20260410TAKEN' to god_tab.
append '20260411MORAL' to god_tab.
append '20260412VOGUE' to god_tab.
append '20260413OWING' to god_tab.
append '20260414TOKEN' to god_tab.
append '20260415ENTRY' to god_tab.
append '20260416BOOTH' to god_tab.
append '20260417VOTER' to god_tab.
append '20260418CHIDE' to god_tab.
append '20260419ELFIN' to god_tab.
append '20260420EBONY' to god_tab.
append '20260421NEIGH' to god_tab.
append '20260422MINIM' to god_tab.
append '20260423MELON' to god_tab.
append '20260424KNEED' to god_tab.
append '20260425DECOY' to god_tab.
append '20260426VOILA' to god_tab.
append '20260427ANKLE' to god_tab.
append '20260428ARROW' to god_tab.
append '20260429MUSHY' to god_tab.
append '20260430TRIBE' to god_tab.
append '20260501CEASE' to god_tab.
append '20260502EAGER' to god_tab.
append '20260503BIRTH' to god_tab.
append '20260504GRAPH' to god_tab.
append '20260505ODDER' to god_tab.
append '20260506TERRA' to god_tab.
append '20260507WEIRD' to god_tab.
append '20260508TRIED' to god_tab.
append '20260509CLACK' to god_tab.
append '20260510COLOR' to god_tab.
append '20260511ROUGH' to god_tab.
append '20260512WEIGH' to god_tab.
append '20260513UNCUT' to god_tab.
append '20260514LADLE' to god_tab.
append '20260515STRIP' to god_tab.
append '20260516CRAFT' to god_tab.
append '20260517MINUS' to god_tab.
append '20260518DICEY' to god_tab.
append '20260519TITAN' to god_tab.
append '20260520LUCID' to god_tab.
append '20260521VICAR' to god_tab.
append '20260522DRESS' to god_tab.
append '20260523DITCH' to god_tab.
append '20260524GYPSY' to god_tab.
append '20260525PASTA' to god_tab.
append '20260526TAFFY' to god_tab.
append '20260527FLAME' to god_tab.
append '20260528SWOOP' to god_tab.
append '20260529ALOOF' to god_tab.
append '20260530SIGHT' to god_tab.
append '20260531BROKE' to god_tab.
append '20260601TEARY' to god_tab.
append '20260602CHART' to god_tab.
append '20260603SIXTY' to god_tab.
append '20260604WORDY' to god_tab.
append '20260605SHEER' to god_tab.
append '20260606LEPER' to god_tab.
append '20260607NOSEY' to god_tab.
append '20260608BULGE' to god_tab.
append '20260609SAVOR' to god_tab.
append '20260610CLAMP' to god_tab.
append '20260611FUNKY' to god_tab.
append '20260612FOAMY' to god_tab.
append '20260613TOXIC' to god_tab.
append '20260614BRAND' to god_tab.
append '20260615PLUMB' to god_tab.
append '20260616DINGY' to god_tab.
append '20260617BUTTE' to god_tab.
append '20260618DRILL' to god_tab.
append '20260619TRIPE' to god_tab.
append '20260620BICEP' to god_tab.
append '20260621TENOR' to god_tab.
append '20260622KRILL' to god_tab.
append '20260623WORSE' to god_tab.
append '20260624DRAMA' to god_tab.
append '20260625HYENA' to god_tab.
append '20260626THINK' to god_tab.
append '20260627RATIO' to god_tab.
append '20260628COBRA' to god_tab.
append '20260629BASIL' to god_tab.
append '20260630SCRUM' to god_tab.
append '20260701BUSED' to god_tab.
append '20260702PHONE' to god_tab.
append '20260703COURT' to god_tab.
append '20260704CAMEL' to god_tab.
append '20260705PROOF' to god_tab.
append '20260706HEARD' to god_tab.
append '20260707ANGEL' to god_tab.
append '20260708PETAL' to god_tab.
append '20260709POUTY' to god_tab.
append '20260710THROB' to god_tab.
append '20260711MAYBE' to god_tab.
append '20260712FETAL' to god_tab.
append '20260713SPRIG' to god_tab.
append '20260714SPINE' to god_tab.
append '20260715SHOUT' to god_tab.
append '20260716CADET' to god_tab.
append '20260717MACRO' to god_tab.
append '20260718DODGY' to god_tab.
append '20260719SATYR' to god_tab.
append '20260720RARER' to god_tab.
append '20260721BINGE' to god_tab.
append '20260722TREND' to god_tab.
append '20260723NUTTY' to god_tab.
append '20260724LEAPT' to god_tab.
append '20260725AMISS' to god_tab.
append '20260726SPLIT' to god_tab.
append '20260727MYRRH' to god_tab.
append '20260728WIDTH' to god_tab.
append '20260729SONAR' to god_tab.
append '20260730TOWER' to god_tab.
append '20260731BARON' to god_tab.
append '20260801FEVER' to god_tab.
append '20260802WAVER' to god_tab.
append '20260803SPARK' to god_tab.
append '20260804BELIE' to god_tab.
append '20260805SLOOP' to god_tab.
append '20260806EXPEL' to god_tab.
append '20260807SMOTE' to god_tab.
append '20260808BALER' to god_tab.
append '20260809ABOVE' to god_tab.
append '20260810NORTH' to god_tab.
append '20260811WAFER' to god_tab.
append '20260812SCANT' to god_tab.
append '20260813FRILL' to god_tab.
append '20260814AWASH' to god_tab.
append '20260815SNACK' to god_tab.
append '20260816SCOWL' to god_tab.
append '20260817FRAIL' to god_tab.
append '20260818DRIFT' to god_tab.
append '20260819LIMBO' to god_tab.
append '20260820FENCE' to god_tab.
append '20260821MOTEL' to god_tab.
append '20260822OUNCE' to god_tab.
append '20260823WREAK' to god_tab.
append '20260824REVEL' to god_tab.
append '20260825TALON' to god_tab.
append '20260826PRIOR' to god_tab.
append '20260827KNELT' to god_tab.
append '20260828CELLO' to god_tab.
append '20260829FLAKE' to god_tab.
append '20260830DEBUG' to god_tab.
append '20260831ANODE' to god_tab.
append '20260901CRIME' to god_tab.
append '20260902SALVE' to god_tab.
append '20260903SCOUT' to god_tab.
append '20260904IMBUE' to god_tab.
append '20260905PINKY' to god_tab.
append '20260906STAVE' to god_tab.
append '20260907VAGUE' to god_tab.
append '20260908CHOCK' to god_tab.
append '20260909FIGHT' to god_tab.
append '20260910VIDEO' to god_tab.
append '20260911STONE' to god_tab.
append '20260912TEACH' to god_tab.
append '20260913CLEFT' to god_tab.
append '20260914FROST' to god_tab.
append '20260915PRAWN' to god_tab.
append '20260916BOOTY' to god_tab.
append '20260917TWIST' to god_tab.
append '20260918APNEA' to god_tab.
append '20260919STIFF' to god_tab.
append '20260920PLAZA' to god_tab.
append '20260921LEDGE' to god_tab.
append '20260922TWEAK' to god_tab.
append '20260923BOARD' to god_tab.
append '20260924GRANT' to god_tab.
append '20260925MEDIC' to god_tab.
append '20260926BACON' to god_tab.
append '20260927CABLE' to god_tab.
append '20260928BRAWL' to god_tab.
append '20260929SLUNK' to god_tab.
append '20260930RASPY' to god_tab.
append '20261001FORUM' to god_tab.
append '20261002DRONE' to god_tab.
append '20261003WOMEN' to god_tab.
append '20261004MUCUS' to god_tab.
append '20261005BOAST' to god_tab.
append '20261006TODDY' to god_tab.
append '20261007COVEN' to god_tab.
append '20261008TUMOR' to god_tab.
append '20261009TRUER' to god_tab.
append '20261010WRATH' to god_tab.
append '20261011STALL' to god_tab.
append '20261012STEAM' to god_tab.
append '20261013AXIAL' to god_tab.
append '20261014PURER' to god_tab.
append '20261015DAILY' to god_tab.
append '20261016TRAIL' to god_tab.
append '20261017NICHE' to god_tab.
append '20261018MEALY' to god_tab.
append '20261019JUICE' to god_tab.
append '20261020NYLON' to god_tab.
append '20261021PLUMP' to god_tab.
append '20261022MERRY' to god_tab.
append '20261023FLAIL' to god_tab.
append '20261024PAPAL' to god_tab.
append '20261025WHEAT' to god_tab.
append '20261026BERRY' to god_tab.
append '20261027COWER' to god_tab.
append '20261028ERECT' to god_tab.
append '20261029BRUTE' to god_tab.
append '20261030LEGGY' to god_tab.
append '20261031SNIPE' to god_tab.
append '20261101SINEW' to god_tab.
append '20261102SKIER' to god_tab.
append '20261103PENNY' to god_tab.
append '20261104JUMPY' to god_tab.
append '20261105RALLY' to god_tab.
append '20261106UMBRA' to god_tab.
append '20261107SCARY' to god_tab.
append '20261108MODEM' to god_tab.
append '20261109GROSS' to god_tab.
append '20261110AVIAN' to god_tab.
append '20261111GREED' to god_tab.
append '20261112SATIN' to god_tab.
append '20261113TONIC' to god_tab.
append '20261114PARKA' to god_tab.
append '20261115SNIFF' to god_tab.
append '20261116LIVID' to god_tab.
append '20261117STARK' to god_tab.
append '20261118TRUMP' to god_tab.
append '20261119GIDDY' to god_tab.
append '20261120REUSE' to god_tab.
append '20261121TABOO' to god_tab.
append '20261122AVOID' to god_tab.
append '20261123QUOTE' to god_tab.
append '20261124DEVIL' to god_tab.
append '20261125LIKEN' to god_tab.
append '20261126GLOSS' to god_tab.
append '20261127GAYER' to god_tab.
append '20261128BERET' to god_tab.
append '20261129NOISE' to god_tab.
append '20261130GLAND' to god_tab.
append '20261201DEALT' to god_tab.
append '20261202SLING' to god_tab.
append '20261203RUMOR' to god_tab.
append '20261204OPERA' to god_tab.
append '20261205THIGH' to god_tab.
append '20261206TONGA' to god_tab.
append '20261207FLARE' to god_tab.
append '20261208WOUND' to god_tab.
append '20261209WHITE' to god_tab.
append '20261210BULKY' to god_tab.
append '20261211ETUDE' to god_tab.
append '20261212HORSE' to god_tab.
append '20261213CIRCA' to god_tab.
append '20261214PADDY' to god_tab.
append '20261215INBOX' to god_tab.
append '20261216FIZZY' to god_tab.
append '20261217GRAIN' to god_tab.
append '20261218EXERT' to god_tab.
append '20261219SURGE' to god_tab.
append '20261220GLEAM' to god_tab.
append '20261221BELLE' to god_tab.
append '20261222SALVO' to god_tab.
append '20261223CRUSH' to god_tab.
append '20261224FRUIT' to god_tab.
append '20261225SAPPY' to god_tab.
append '20261226TAKER' to god_tab.
append '20261227TRACT' to god_tab.
append '20261228OVINE' to god_tab.
append '20261229SPIKY' to god_tab.
append '20261230FRANK' to god_tab.
append '20261231REEDY' to god_tab.
append '20270101FILTH' to god_tab.
append '20270102SPASM' to god_tab.
append '20270103HEAVE' to god_tab.
append '20270104MAMBO' to god_tab.
append '20270105RIGHT' to god_tab.
append '20270106CLANK' to god_tab.
append '20270107TRUST' to god_tab.
append '20270108LUMEN' to god_tab.
append '20270109BORNE' to god_tab.
append '20270110SPOOK' to god_tab.
append '20270111SAUCE' to god_tab.
append '20270112AMBER' to god_tab.
append '20270113LATHE' to god_tab.
append '20270114CARAT' to god_tab.
append '20270115CORER' to god_tab.
append '20270116DIRTY' to god_tab.
append '20270117SLYLY' to god_tab.
append '20270118AFFIX' to god_tab.
append '20270119ALLOY' to god_tab.
append '20270120TAINT' to god_tab.
append '20270121SHEEP' to god_tab.
append '20270122KINKY' to god_tab.
append '20270123WOOLY' to god_tab.
append '20270124MAUVE' to god_tab.
append '20270125FLUNG' to god_tab.
append '20270126YACHT' to god_tab.
append '20270127FRIED' to god_tab.
append '20270128QUAIL' to god_tab.
append '20270129BRUNT' to god_tab.
append '20270130GRIMY' to god_tab.
append '20270131CURVY' to god_tab.
append '20270201CAGEY' to god_tab.
append '20270202RINSE' to god_tab.
append '20270203DEUCE' to god_tab.
append '20270204STATE' to god_tab.
append '20270205GRASP' to god_tab.
append '20270206MILKY' to god_tab.
append '20270207BISON' to god_tab.
append '20270208GRAFT' to god_tab.
append '20270209SANDY' to god_tab.
append '20270210BASTE' to god_tab.
append '20270211FLASK' to god_tab.
append '20270212HEDGE' to god_tab.
append '20270213GIRLY' to god_tab.
append '20270214SWASH' to god_tab.
append '20270215BONEY' to god_tab.
append '20270216COUPE' to god_tab.
append '20270217ENDOW' to god_tab.
append '20270218ABHOR' to god_tab.
append '20270219WELCH' to god_tab.
append '20270220BLADE' to god_tab.
append '20270221TIGHT' to god_tab.
append '20270222GEESE' to god_tab.
append '20270223MISER' to god_tab.
append '20270224MIRTH' to god_tab.
append '20270225CLOUD' to god_tab.
append '20270226CABAL' to god_tab.
append '20270227LEECH' to god_tab.
append '20270228CLOSE' to god_tab.
append '20270301TENTH' to god_tab.
append '20270302PECAN' to god_tab.
append '20270303DROIT' to god_tab.
append '20270304GRAIL' to god_tab.
append '20270305CLONE' to god_tab.
append '20270306GUISE' to god_tab.
append '20270307RALPH' to god_tab.
append '20270308TANGO' to god_tab.
append '20270309BIDDY' to god_tab.
append '20270310SMITH' to god_tab.
append '20270311MOWER' to god_tab.
append '20270312PAYEE' to god_tab.
append '20270313SERIF' to god_tab.
append '20270314DRAPE' to god_tab.
append '20270315FIFTH' to god_tab.
append '20270316SPANK' to god_tab.
append '20270317GLAZE' to god_tab.
append '20270318ALLOT' to god_tab.
append '20270319TRUCK' to god_tab.
append '20270320KAYAK' to god_tab.
append '20270321VIRUS' to god_tab.
append '20270322TESTY' to god_tab.
append '20270323TEPEE' to god_tab.
append '20270324FULLY' to god_tab.
append '20270325ZONAL' to god_tab.
append '20270326METRO' to god_tab.
append '20270327CURRY' to god_tab.
append '20270328GRAND' to god_tab.
append '20270329BANJO' to god_tab.
append '20270330AXION' to god_tab.
append '20270331BEZEL' to god_tab.
append '20270401OCCUR' to god_tab.
append '20270402CHAIN' to god_tab.
append '20270403NASAL' to god_tab.
append '20270404GOOEY' to god_tab.
append '20270405FILER' to god_tab.
append '20270406BRACE' to god_tab.
append '20270407ALLAY' to god_tab.
append '20270408PUBIC' to god_tab.
append '20270409RAVEN' to god_tab.
append '20270410PLEAD' to god_tab.
append '20270411GNASH' to god_tab.
append '20270412FLAKY' to god_tab.
append '20270413MUNCH' to god_tab.
append '20270414DULLY' to god_tab.
append '20270415EKING' to god_tab.
append '20270416THING' to god_tab.
append '20270417SLINK' to god_tab.
append '20270418HURRY' to god_tab.
append '20270419THEFT' to god_tab.
append '20270420SHORN' to god_tab.
append '20270421PYGMY' to god_tab.
append '20270422RANCH' to god_tab.
append '20270423WRING' to god_tab.
append '20270424LEMON' to god_tab.
append '20270425SHORE' to god_tab.
append '20270426MAMMA' to god_tab.
append '20270427FROZE' to god_tab.
append '20270428NEWER' to god_tab.
append '20270429STYLE' to god_tab.
append '20270430MOOSE' to god_tab.
append '20270501ANTIC' to god_tab.
append '20270502DROWN' to god_tab.
append '20270503VEGAN' to god_tab.
append '20270504CHESS' to god_tab.
append '20270505GUPPY' to god_tab.
append '20270506UNION' to god_tab.
append '20270507LEVER' to god_tab.
append '20270508LORRY' to god_tab.
append '20270509IMAGE' to god_tab.
append '20270510CABBY' to god_tab.
append '20270511DRUID' to god_tab.
append '20270512EXACT' to god_tab.
append '20270513TRUTH' to god_tab.
append '20270514DOPEY' to god_tab.
append '20270515SPEAR' to god_tab.
append '20270516CRIED' to god_tab.
append '20270517CHIME' to god_tab.
append '20270518CRONY' to god_tab.
append '20270519STUNK' to god_tab.
append '20270520TIMID' to god_tab.
append '20270521BATCH' to god_tab.
append '20270522GAUGE' to god_tab.
append '20270523ROTOR' to god_tab.
append '20270524CRACK' to god_tab.
append '20270525CURVE' to god_tab.
append '20270526LATTE' to god_tab.
append '20270527WITCH' to god_tab.
append '20270528BUNCH' to god_tab.
append '20270529REPEL' to god_tab.
append '20270530ANVIL' to god_tab.
append '20270531SOAPY' to god_tab.
append '20270601METER' to god_tab.
append '20270602BROTH' to god_tab.
append '20270603MADLY' to god_tab.
append '20270604DRIED' to god_tab.
append '20270605SCENE' to god_tab.
append '20270606KNOWN' to god_tab.
append '20270607MAGMA' to god_tab.
append '20270608ROOST' to god_tab.
append '20270609WOMAN' to god_tab.
append '20270610THONG' to god_tab.
append '20270611PUNCH' to god_tab.
append '20270612PASTY' to god_tab.
append '20270613DOWNY' to god_tab.
append '20270614KNEAD' to god_tab.
append '20270615WHIRL' to god_tab.
append '20270616RAPID' to god_tab.
append '20270617CLANG' to god_tab.
append '20270618ANGER' to god_tab.
append '20270619DRIVE' to god_tab.
append '20270620GOOFY' to god_tab.
append '20270621EMAIL' to god_tab.
append '20270622MUSIC' to god_tab.
append '20270623STUFF' to god_tab.
append '20270624BLEEP' to god_tab.
append '20270625RIDER' to god_tab.
append '20270626MECCA' to god_tab.
append '20270627FOLIO' to god_tab.
append '20270628SETUP' to god_tab.
append '20270629VERSO' to god_tab.
append '20270630QUASH' to god_tab.
append '20270701FAUNA' to god_tab.
append '20270702GUMMY' to god_tab.
append '20270703HAPPY' to god_tab.
append '20270704NEWLY' to god_tab.
append '20270705FUSSY' to god_tab.
append '20270706RELIC' to god_tab.
append '20270707GUAVA' to god_tab.
append '20270708RATTY' to god_tab.
append '20270709FUDGE' to god_tab.
append '20270710FEMUR' to god_tab.
append '20270711CHIRP' to god_tab.
append '20270712FORTE' to god_tab.
append '20270713ALIBI' to god_tab.
append '20270714WHINE' to god_tab.
append '20270715PETTY' to god_tab.
append '20270716GOLLY' to god_tab.
append '20270717PLAIT' to god_tab.
append '20270718FLECK' to god_tab.
append '20270719FELON' to god_tab.
append '20270720GOURD' to god_tab.
append '20270721BROWN' to god_tab.
append '20270722THRUM' to god_tab.
append '20270723FICUS' to god_tab.
append '20270724STASH' to god_tab.
append '20270725DECRY' to god_tab.
append '20270726WISER' to god_tab.
append '20270727JUNTA' to god_tab.
append '20270728VISOR' to god_tab.
append '20270729DAUNT' to god_tab.
append '20270730SCREE' to god_tab.
append '20270731IMPEL' to god_tab.
append '20270801AWAIT' to god_tab.
append '20270802PRESS' to god_tab.
append '20270803WHOSE' to god_tab.
append '20270804TURBO' to god_tab.
append '20270805STOOP' to god_tab.
append '20270806SPEAK' to god_tab.
append '20270807MANGY' to god_tab.
append '20270808EYING' to god_tab.
append '20270809INLET' to god_tab.
append '20270810CRONE' to god_tab.
append '20270811PULSE' to god_tab.
append '20270812MOSSY' to god_tab.
append '20270813STAID' to god_tab.
append '20270814HENCE' to god_tab.
append '20270815PINCH' to god_tab.
append '20270816TEDDY' to god_tab.
append '20270817SULLY' to god_tab.
append '20270818SNORE' to god_tab.
append '20270819RIPEN' to god_tab.
append '20270820SNOWY' to god_tab.
append '20270821ATTIC' to god_tab.
append '20270822GOING' to god_tab.
append '20270823LEACH' to god_tab.
append '20270824MOUTH' to god_tab.
append '20270825HOUND' to god_tab.
append '20270826CLUMP' to god_tab.
append '20270827TONAL' to god_tab.
append '20270828BIGOT' to god_tab.
append '20270829PERIL' to god_tab.
append '20270830PIECE' to god_tab.
append '20270831BLAME' to god_tab.
append '20270901HAUTE' to god_tab.
append '20270902SPIED' to god_tab.
append '20270903UNDID' to god_tab.
append '20270904INTRO' to god_tab.
append '20270905BASAL' to god_tab.
append '20270906SHINE' to god_tab.
append '20270907GECKO' to god_tab.
append '20270908RODEO' to god_tab.
append '20270909GUARD' to god_tab.
append '20270910STEER' to god_tab.
append '20270911LOAMY' to god_tab.
append '20270912SCAMP' to god_tab.
append '20270913SCRAM' to god_tab.
append '20270914MANLY' to god_tab.
append '20270915HELLO' to god_tab.
append '20270916VAUNT' to god_tab.
append '20270917ORGAN' to god_tab.
append '20270918FERAL' to god_tab.
append '20270919KNOCK' to god_tab.
append '20270920EXTRA' to god_tab.
append '20270921CONDO' to god_tab.
append '20270922ADAPT' to god_tab.
append '20270923WILLY' to god_tab.
append '20270924POLKA' to god_tab.
append '20270925RAYON' to god_tab.
append '20270926SKIRT' to god_tab.
append '20270927FAITH' to god_tab.
append '20270928TORSO' to god_tab.
append '20270929MATCH' to god_tab.
append '20270930MERCY' to god_tab.
append '20271001TEPID' to god_tab.
append '20271002SLEEK' to god_tab.
append '20271003RISER' to god_tab.
append '20271004TWIXT' to god_tab.
append '20271005PEACE' to god_tab.
append '20271006FLUSH' to god_tab.
append '20271007CATTY' to god_tab.
append '20271008LOGIN' to god_tab.
append '20271009EJECT' to god_tab.
append '20271010ROGER' to god_tab.
append '20271011RIVAL' to god_tab.
append '20271012UNTIE' to god_tab.
append '20271013REFIT' to god_tab.
append '20271014AORTA' to god_tab.
append '20271015ADULT' to god_tab.
append '20271016JUDGE' to god_tab.
append '20271017ROWER' to god_tab.
append '20271018ARTSY' to god_tab.
append '20271019RURAL' to god_tab.
append '20271020SHAVE' to god_tab.
endmethod.
method build_word_tab_v2.
append 'AAHED' to word_tab.
append 'AALII' to word_tab.
append 'AARGH' to word_tab.
append 'AARTI' to word_tab.
append 'ABACA' to word_tab.
append 'ABACI' to word_tab.
append 'ABACK' to word_tab.
append 'ABACS' to word_tab.
append 'ABAFT' to word_tab.
append 'ABAKA' to word_tab.
append 'ABAMP' to word_tab.
append 'ABAND' to word_tab.
append 'ABASE' to word_tab.
append 'ABASH' to word_tab.
append 'ABASK' to word_tab.
append 'ABATE' to word_tab.
append 'ABAYA' to word_tab.
append 'ABBAS' to word_tab.
append 'ABBED' to word_tab.
append 'ABBES' to word_tab.
append 'ABBEY' to word_tab.
append 'ABBOT' to word_tab.
append 'ABCEE' to word_tab.
append 'ABEAM' to word_tab.
append 'ABEAR' to word_tab.
append 'ABELE' to word_tab.
append 'ABERS' to word_tab.
append 'ABETS' to word_tab.
append 'ABHOR' to word_tab.
append 'ABIDE' to word_tab.
append 'ABIES' to word_tab.
append 'ABLED' to word_tab.
append 'ABLER' to word_tab.
append 'ABLES' to word_tab.
append 'ABLET' to word_tab.
append 'ABLOW' to word_tab.
append 'ABMHO' to word_tab.
append 'ABODE' to word_tab.
append 'ABOHM' to word_tab.
append 'ABOIL' to word_tab.
append 'ABOMA' to word_tab.
append 'ABOON' to word_tab.
append 'ABORD' to word_tab.
append 'ABORE' to word_tab.
append 'ABORT' to word_tab.
append 'ABOUT' to word_tab.
append 'ABOVE' to word_tab.
append 'ABRAM' to word_tab.
append 'ABRAY' to word_tab.
append 'ABRIM' to word_tab.
append 'ABRIN' to word_tab.
append 'ABRIS' to word_tab.
append 'ABSEY' to word_tab.
append 'ABSIT' to word_tab.
append 'ABUNA' to word_tab.
append 'ABUNE' to word_tab.
append 'ABUSE' to word_tab.
append 'ABUTS' to word_tab.
append 'ABUZZ' to word_tab.
append 'ABYES' to word_tab.
append 'ABYSM' to word_tab.
append 'ABYSS' to word_tab.
append 'ACAIS' to word_tab.
append 'ACARI' to word_tab.
append 'ACCAS' to word_tab.
append 'ACCOY' to word_tab.
append 'ACERB' to word_tab.
append 'ACERS' to word_tab.
append 'ACETA' to word_tab.
append 'ACHAR' to word_tab.
append 'ACHED' to word_tab.
append 'ACHES' to word_tab.
append 'ACHOO' to word_tab.
append 'ACIDS' to word_tab.
append 'ACIDY' to word_tab.
append 'ACING' to word_tab.
append 'ACINI' to word_tab.
append 'ACKEE' to word_tab.
append 'ACKER' to word_tab.
append 'ACMES' to word_tab.
append 'ACMIC' to word_tab.
append 'ACNED' to word_tab.
append 'ACNES' to word_tab.
append 'ACOCK' to word_tab.
append 'ACOLD' to word_tab.
append 'ACORN' to word_tab.
append 'ACRED' to word_tab.
append 'ACRES' to word_tab.
append 'ACRID' to word_tab.
append 'ACROS' to word_tab.
append 'ACTED' to word_tab.
append 'ACTIN' to word_tab.
append 'ACTON' to word_tab.
append 'ACTOR' to word_tab.
append 'ACUTE' to word_tab.
append 'ACYLS' to word_tab.
append 'ADAGE' to word_tab.
append 'ADAPT' to word_tab.
append 'ADAWS' to word_tab.
append 'ADAYS' to word_tab.
append 'ADBOT' to word_tab.
append 'ADDAX' to word_tab.
append 'ADDED' to word_tab.
append 'ADDER' to word_tab.
append 'ADDIO' to word_tab.
append 'ADDLE' to word_tab.
append 'ADEEM' to word_tab.
append 'ADEPT' to word_tab.
append 'ADHAN' to word_tab.
append 'ADIEU' to word_tab.
append 'ADIOS' to word_tab.
append 'ADITS' to word_tab.
append 'ADMAN' to word_tab.
append 'ADMEN' to word_tab.
append 'ADMIN' to word_tab.
append 'ADMIT' to word_tab.
append 'ADMIX' to word_tab.
append 'ADOBE' to word_tab.
append 'ADOBO' to word_tab.
append 'ADOPT' to word_tab.
append 'ADORE' to word_tab.
append 'ADORN' to word_tab.
append 'ADOWN' to word_tab.
append 'ADOZE' to word_tab.
append 'ADRAD' to word_tab.
append 'ADRED' to word_tab.
append 'ADSUM' to word_tab.
append 'ADUKI' to word_tab.
append 'ADULT' to word_tab.
append 'ADUNC' to word_tab.
append 'ADUST' to word_tab.
append 'ADVEW' to word_tab.
append 'ADYTA' to word_tab.
append 'ADZED' to word_tab.
append 'ADZES' to word_tab.
append 'AECIA' to word_tab.
append 'AEDES' to word_tab.
append 'AEGIS' to word_tab.
append 'AEONS' to word_tab.
append 'AERIE' to word_tab.
append 'AEROS' to word_tab.
append 'AESIR' to word_tab.
append 'AFALD' to word_tab.
append 'AFARA' to word_tab.
append 'AFARS' to word_tab.
append 'AFEAR' to word_tab.
append 'AFFIX' to word_tab.
append 'AFIRE' to word_tab.
append 'AFLAJ' to word_tab.
append 'AFOOT' to word_tab.
append 'AFORE' to word_tab.
append 'AFOUL' to word_tab.
append 'AFRIT' to word_tab.
append 'AFROS' to word_tab.
append 'AFTER' to word_tab.
append 'AGAIN' to word_tab.
append 'AGAMA' to word_tab.
append 'AGAMI' to word_tab.
append 'AGAPE' to word_tab.
append 'AGARS' to word_tab.
append 'AGAST' to word_tab.
append 'AGATE' to word_tab.
append 'AGAVE' to word_tab.
append 'AGAZE' to word_tab.
append 'AGENE' to word_tab.
append 'AGENT' to word_tab.
append 'AGERS' to word_tab.
append 'AGGER' to word_tab.
append 'AGGIE' to word_tab.
append 'AGGRI' to word_tab.
append 'AGGRO' to word_tab.
append 'AGGRY' to word_tab.
append 'AGHAS' to word_tab.
append 'AGILA' to word_tab.
append 'AGILE' to word_tab.
append 'AGING' to word_tab.
append 'AGIOS' to word_tab.
append 'AGISM' to word_tab.
append 'AGIST' to word_tab.
append 'AGITA' to word_tab.
append 'AGLEE' to word_tab.
append 'AGLET' to word_tab.
append 'AGLEY' to word_tab.
append 'AGLOO' to word_tab.
append 'AGLOW' to word_tab.
append 'AGLUS' to word_tab.
append 'AGMAS' to word_tab.
append 'AGOGE' to word_tab.
append 'AGONE' to word_tab.
append 'AGONS' to word_tab.
append 'AGONY' to word_tab.
append 'AGOOD' to word_tab.
append 'AGORA' to word_tab.
append 'AGREE' to word_tab.
append 'AGRIA' to word_tab.
append 'AGRIN' to word_tab.
append 'AGROS' to word_tab.
append 'AGUED' to word_tab.
append 'AGUES' to word_tab.
append 'AGUNA' to word_tab.
append 'AGUTI' to word_tab.
append 'AHEAD' to word_tab.
append 'AHEAP' to word_tab.
append 'AHENT' to word_tab.
append 'AHIGH' to word_tab.
append 'AHIND' to word_tab.
append 'AHING' to word_tab.
append 'AHINT' to word_tab.
append 'AHOLD' to word_tab.
append 'AHULL' to word_tab.
append 'AHURU' to word_tab.
append 'AIDAS' to word_tab.
append 'AIDED' to word_tab.
append 'AIDER' to word_tab.
append 'AIDES' to word_tab.
append 'AIDOI' to word_tab.
append 'AIDOS' to word_tab.
append 'AIERY' to word_tab.
append 'AIGAS' to word_tab.
append 'AIGHT' to word_tab.
append 'AILED' to word_tab.
append 'AIMED' to word_tab.
append 'AIMER' to word_tab.
append 'AINEE' to word_tab.
append 'AINGA' to word_tab.
append 'AIOLI' to word_tab.
append 'AIRED' to word_tab.
append 'AIRER' to word_tab.
append 'AIRNS' to word_tab.
append 'AIRTH' to word_tab.
append 'AIRTS' to word_tab.
append 'AISLE' to word_tab.
append 'AITCH' to word_tab.
append 'AITUS' to word_tab.
append 'AIVER' to word_tab.
append 'AIYEE' to word_tab.
append 'AIZLE' to word_tab.
append 'AJIES' to word_tab.
append 'AJIVA' to word_tab.
append 'AJUGA' to word_tab.
append 'AJWAN' to word_tab.
append 'AKEES' to word_tab.
append 'AKELA' to word_tab.
append 'AKENE' to word_tab.
append 'AKING' to word_tab.
append 'AKITA' to word_tab.
append 'AKKAS' to word_tab.
append 'ALAAP' to word_tab.
append 'ALACK' to word_tab.
append 'ALAMO' to word_tab.
append 'ALAND' to word_tab.
append 'ALANE' to word_tab.
append 'ALANG' to word_tab.
append 'ALANS' to word_tab.
append 'ALANT' to word_tab.
append 'ALAPA' to word_tab.
append 'ALAPS' to word_tab.
append 'ALARM' to word_tab.
append 'ALARY' to word_tab.
append 'ALATE' to word_tab.
append 'ALAYS' to word_tab.
append 'ALBAS' to word_tab.
append 'ALBEE' to word_tab.
append 'ALBUM' to word_tab.
append 'ALCID' to word_tab.
append 'ALCOS' to word_tab.
append 'ALDEA' to word_tab.
append 'ALDER' to word_tab.
append 'ALDOL' to word_tab.
append 'ALECK' to word_tab.
append 'ALECS' to word_tab.
append 'ALEFS' to word_tab.
append 'ALEFT' to word_tab.
append 'ALEPH' to word_tab.
append 'ALERT' to word_tab.
append 'ALEWS' to word_tab.
append 'ALEYE' to word_tab.
append 'ALFAS' to word_tab.
append 'ALGAE' to word_tab.
append 'ALGAL' to word_tab.
append 'ALGAS' to word_tab.
append 'ALGID' to word_tab.
append 'ALGIN' to word_tab.
append 'ALGOR' to word_tab.
append 'ALGUM' to word_tab.
append 'ALIAS' to word_tab.
append 'ALIBI' to word_tab.
append 'ALIEN' to word_tab.
append 'ALIFS' to word_tab.
append 'ALIGN' to word_tab.
append 'ALIKE' to word_tab.
append 'ALINE' to word_tab.
append 'ALIST' to word_tab.
append 'ALIVE' to word_tab.
append 'ALIYA' to word_tab.
append 'ALKIE' to word_tab.
append 'ALKOS' to word_tab.
append 'ALKYD' to word_tab.
append 'ALKYL' to word_tab.
append 'ALLAY' to word_tab.
append 'ALLEE' to word_tab.
append 'ALLEL' to word_tab.
append 'ALLEY' to word_tab.
append 'ALLIS' to word_tab.
append 'ALLOD' to word_tab.
append 'ALLOT' to word_tab.
append 'ALLOW' to word_tab.
append 'ALLOY' to word_tab.
append 'ALLYL' to word_tab.
append 'ALMAH' to word_tab.
append 'ALMAS' to word_tab.
append 'ALMEH' to word_tab.
append 'ALMES' to word_tab.
append 'ALMUD' to word_tab.
append 'ALMUG' to word_tab.
append 'ALODS' to word_tab.
append 'ALOED' to word_tab.
append 'ALOES' to word_tab.
append 'ALOFT' to word_tab.
append 'ALOHA' to word_tab.
append 'ALOIN' to word_tab.
append 'ALONE' to word_tab.
append 'ALONG' to word_tab.
append 'ALOOF' to word_tab.
append 'ALOOS' to word_tab.
append 'ALOUD' to word_tab.
append 'ALOWE' to word_tab.
append 'ALPHA' to word_tab.
append 'ALTAR' to word_tab.
append 'ALTER' to word_tab.
append 'ALTHO' to word_tab.
append 'ALTOS' to word_tab.
append 'ALULA' to word_tab.
append 'ALUMS' to word_tab.
append 'ALURE' to word_tab.
append 'ALVAR' to word_tab.
append 'ALWAY' to word_tab.
append 'AMAHS' to word_tab.
append 'AMAIN' to word_tab.
append 'AMASS' to word_tab.
append 'AMATE' to word_tab.
append 'AMAUT' to word_tab.
append 'AMAZE' to word_tab.
append 'AMBAN' to word_tab.
append 'AMBER' to word_tab.
append 'AMBIT' to word_tab.
append 'AMBLE' to word_tab.
append 'AMBOS' to word_tab.
append 'AMBRY' to word_tab.
append 'AMEBA' to word_tab.
append 'AMEER' to word_tab.
append 'AMEND' to word_tab.
append 'AMENE' to word_tab.
append 'AMENS' to word_tab.
append 'AMENT' to word_tab.
append 'AMIAS' to word_tab.
append 'AMICE' to word_tab.
append 'AMICI' to word_tab.
append 'AMIDE' to word_tab.
append 'AMIDO' to word_tab.
append 'AMIDS' to word_tab.
append 'AMIES' to word_tab.
append 'AMIGA' to word_tab.
append 'AMIGO' to word_tab.
append 'AMINE' to word_tab.
append 'AMINO' to word_tab.
append 'AMINS' to word_tab.
append 'AMIRS' to word_tab.
append 'AMISS' to word_tab.
append 'AMITY' to word_tab.
append 'AMLAS' to word_tab.
append 'AMMAN' to word_tab.
append 'AMMON' to word_tab.
append 'AMMOS' to word_tab.
append 'AMNIA' to word_tab.
append 'AMNIC' to word_tab.
append 'AMNIO' to word_tab.
append 'AMOKS' to word_tab.
append 'AMOLE' to word_tab.
append 'AMONG' to word_tab.
append 'AMORT' to word_tab.
append 'AMOUR' to word_tab.
append 'AMOVE' to word_tab.
append 'AMOWT' to word_tab.
append 'AMPED' to word_tab.
append 'AMPLE' to word_tab.
append 'AMPLY' to word_tab.
append 'AMPUL' to word_tab.
append 'AMRIT' to word_tab.
append 'AMUCK' to word_tab.
append 'AMUSE' to word_tab.
append 'AMYLS' to word_tab.
append 'ANANA' to word_tab.
append 'ANATA' to word_tab.
append 'ANCHO' to word_tab.
append 'ANCLE' to word_tab.
append 'ANCON' to word_tab.
append 'ANDRO' to word_tab.
append 'ANEAR' to word_tab.
append 'ANELE' to word_tab.
append 'ANENT' to word_tab.
append 'ANGAS' to word_tab.
append 'ANGEL' to word_tab.
append 'ANGER' to word_tab.
append 'ANGLE' to word_tab.
append 'ANGLO' to word_tab.
append 'ANGRY' to word_tab.
append 'ANGST' to word_tab.
append 'ANIGH' to word_tab.
append 'ANILE' to word_tab.
append 'ANILS' to word_tab.
append 'ANIMA' to word_tab.
append 'ANIME' to word_tab.
append 'ANIMI' to word_tab.
append 'ANION' to word_tab.
append 'ANISE' to word_tab.
append 'ANKER' to word_tab.
append 'ANKHS' to word_tab.
append 'ANKLE' to word_tab.
append 'ANKUS' to word_tab.
append 'ANLAS' to word_tab.
append 'ANNAL' to word_tab.
append 'ANNAS' to word_tab.
append 'ANNAT' to word_tab.
append 'ANNEX' to word_tab.
append 'ANNOY' to word_tab.
append 'ANNUL' to word_tab.
append 'ANOAS' to word_tab.
append 'ANODE' to word_tab.
append 'ANOLE' to word_tab.
append 'ANOMY' to word_tab.
append 'ANSAE' to word_tab.
append 'ANTAE' to word_tab.
append 'ANTAR' to word_tab.
append 'ANTAS' to word_tab.
append 'ANTED' to word_tab.
append 'ANTES' to word_tab.
append 'ANTIC' to word_tab.
append 'ANTIS' to word_tab.
append 'ANTRA' to word_tab.
append 'ANTRE' to word_tab.
append 'ANTSY' to word_tab.
append 'ANURA' to word_tab.
append 'ANVIL' to word_tab.
append 'ANYON' to word_tab.
append 'AORTA' to word_tab.
append 'APACE' to word_tab.
append 'APAGE' to word_tab.
append 'APAID' to word_tab.
append 'APART' to word_tab.
append 'APAYD' to word_tab.
append 'APAYS' to word_tab.
append 'APEAK' to word_tab.
append 'APEEK' to word_tab.
append 'APERS' to word_tab.
append 'APERT' to word_tab.
append 'APERY' to word_tab.
append 'APGAR' to word_tab.
append 'APHID' to word_tab.
append 'APHIS' to word_tab.
append 'APIAN' to word_tab.
append 'APING' to word_tab.
append 'APIOL' to word_tab.
append 'APISH' to word_tab.
append 'APISM' to word_tab.
append 'APNEA' to word_tab.
append 'APODE' to word_tab.
append 'APODS' to word_tab.
append 'APOOP' to word_tab.
append 'APORT' to word_tab.
append 'APPAL' to word_tab.
append 'APPAY' to word_tab.
append 'APPEL' to word_tab.
append 'APPLE' to word_tab.
append 'APPLY' to word_tab.
append 'APPRO' to word_tab.
append 'APPUI' to word_tab.
append 'APPUY' to word_tab.
append 'APRES' to word_tab.
append 'APRON' to word_tab.
append 'APSES' to word_tab.
append 'APSIS' to word_tab.
append 'APSOS' to word_tab.
append 'APTED' to word_tab.
append 'APTER' to word_tab.
append 'APTLY' to word_tab.
append 'AQUAE' to word_tab.
append 'AQUAS' to word_tab.
append 'ARABA' to word_tab.
append 'ARAKS' to word_tab.
append 'ARAME' to word_tab.
append 'ARARS' to word_tab.
append 'ARBAS' to word_tab.
append 'ARBOR' to word_tab.
append 'ARCED' to word_tab.
append 'ARCHI' to word_tab.
append 'ARCOS' to word_tab.
append 'ARCUS' to word_tab.
append 'ARDEB' to word_tab.
append 'ARDOR' to word_tab.
append 'ARDRI' to word_tab.
append 'AREAD' to word_tab.
append 'AREAE' to word_tab.
append 'AREAL' to word_tab.
append 'AREAR' to word_tab.
append 'AREAS' to word_tab.
append 'ARECA' to word_tab.
append 'AREDD' to word_tab.
append 'AREDE' to word_tab.
append 'AREFY' to word_tab.
append 'AREIC' to word_tab.
append 'ARENA' to word_tab.
append 'ARENE' to word_tab.
append 'AREPA' to word_tab.
append 'ARERE' to word_tab.
append 'ARETE' to word_tab.
append 'ARETS' to word_tab.
append 'ARETT' to word_tab.
append 'ARGAL' to word_tab.
append 'ARGAN' to word_tab.
append 'ARGIL' to word_tab.
append 'ARGLE' to word_tab.
append 'ARGOL' to word_tab.
append 'ARGON' to word_tab.
append 'ARGOT' to word_tab.
append 'ARGUE' to word_tab.
append 'ARGUS' to word_tab.
append 'ARHAT' to word_tab.
append 'ARIAS' to word_tab.
append 'ARIEL' to word_tab.
append 'ARIKI' to word_tab.
append 'ARILS' to word_tab.
append 'ARIOT' to word_tab.
append 'ARISE' to word_tab.
append 'ARISH' to word_tab.
append 'ARKED' to word_tab.
append 'ARLED' to word_tab.
append 'ARLES' to word_tab.
append 'ARMED' to word_tab.
append 'ARMER' to word_tab.
append 'ARMET' to word_tab.
append 'ARMIL' to word_tab.
append 'ARMOR' to word_tab.
append 'ARNAS' to word_tab.
append 'ARNUT' to word_tab.
append 'AROBA' to word_tab.
append 'AROHA' to word_tab.
append 'AROID' to word_tab.
append 'AROMA' to word_tab.
append 'AROSE' to word_tab.
append 'ARPAS' to word_tab.
append 'ARPEN' to word_tab.
append 'ARRAH' to word_tab.
append 'ARRAS' to word_tab.
append 'ARRAY' to word_tab.
append 'ARRET' to word_tab.
append 'ARRIS' to word_tab.
append 'ARROW' to word_tab.
append 'ARROZ' to word_tab.
append 'ARSED' to word_tab.
append 'ARSES' to word_tab.
append 'ARSEY' to word_tab.
append 'ARSIS' to word_tab.
append 'ARSON' to word_tab.
append 'ARTAL' to word_tab.
append 'ARTEL' to word_tab.
append 'ARTIC' to word_tab.
append 'ARTIS' to word_tab.
append 'ARTSY' to word_tab.
append 'ARUHE' to word_tab.
append 'ARUMS' to word_tab.
append 'ARVAL' to word_tab.
append 'ARVEE' to word_tab.
append 'ARVOS' to word_tab.
append 'ARYLS' to word_tab.
append 'ASANA' to word_tab.
append 'ASCON' to word_tab.
append 'ASCOT' to word_tab.
append 'ASCUS' to word_tab.
append 'ASDIC' to word_tab.
append 'ASHED' to word_tab.
append 'ASHEN' to word_tab.
append 'ASHES' to word_tab.
append 'ASHET' to word_tab.
append 'ASIDE' to word_tab.
append 'ASKED' to word_tab.
append 'ASKER' to word_tab.
append 'ASKEW' to word_tab.
append 'ASKOI' to word_tab.
append 'ASKOS' to word_tab.
append 'ASPEN' to word_tab.
append 'ASPER' to word_tab.
append 'ASPIC' to word_tab.
append 'ASPIS' to word_tab.
append 'ASPRO' to word_tab.
append 'ASSAI' to word_tab.
append 'ASSAM' to word_tab.
append 'ASSAY' to word_tab.
append 'ASSES' to word_tab.
append 'ASSET' to word_tab.
append 'ASSEZ' to word_tab.
append 'ASSOT' to word_tab.
append 'ASTER' to word_tab.
append 'ASTIR' to word_tab.
append 'ASTUN' to word_tab.
append 'ASURA' to word_tab.
append 'ASWAY' to word_tab.
append 'ASWIM' to word_tab.
append 'ASYLA' to word_tab.
append 'ATAPS' to word_tab.
append 'ATAXY' to word_tab.
append 'ATIGI' to word_tab.
append 'ATILT' to word_tab.
append 'ATIMY' to word_tab.
append 'ATLAS' to word_tab.
append 'ATMAN' to word_tab.
append 'ATMAS' to word_tab.
append 'ATMOS' to word_tab.
append 'ATOCS' to word_tab.
append 'ATOKE' to word_tab.
append 'ATOKS' to word_tab.
append 'ATOLL' to word_tab.
append 'ATOMS' to word_tab.
append 'ATOMY' to word_tab.
append 'ATONE' to word_tab.
append 'ATONY' to word_tab.
append 'ATOPY' to word_tab.
append 'ATRIA' to word_tab.
append 'ATRIP' to word_tab.
append 'ATTAP' to word_tab.
append 'ATTAR' to word_tab.
append 'ATTIC' to word_tab.
append 'ATUAS' to word_tab.
append 'AUDAD' to word_tab.
append 'AUDIO' to word_tab.
append 'AUDIT' to word_tab.
append 'AUGER' to word_tab.
append 'AUGHT' to word_tab.
append 'AUGUR' to word_tab.
append 'AULAS' to word_tab.
append 'AULIC' to word_tab.
append 'AULOI' to word_tab.
append 'AULOS' to word_tab.
append 'AUMIL' to word_tab.
append 'AUNES' to word_tab.
append 'AUNTS' to word_tab.
append 'AUNTY' to word_tab.
append 'AURAE' to word_tab.
append 'AURAL' to word_tab.
append 'AURAR' to word_tab.
append 'AURAS' to word_tab.
append 'AUREI' to word_tab.
append 'AURES' to word_tab.
append 'AURIC' to word_tab.
append 'AURIS' to word_tab.
append 'AURUM' to word_tab.
append 'AUTOS' to word_tab.
append 'AUXIN' to word_tab.
append 'AVAIL' to word_tab.
append 'AVALE' to word_tab.
append 'AVANT' to word_tab.
append 'AVAST' to word_tab.
append 'AVELS' to word_tab.
append 'AVENS' to word_tab.
append 'AVERS' to word_tab.
append 'AVERT' to word_tab.
append 'AVGAS' to word_tab.
append 'AVIAN' to word_tab.
append 'AVINE' to word_tab.
append 'AVION' to word_tab.
append 'AVISE' to word_tab.
append 'AVISO' to word_tab.
append 'AVIZE' to word_tab.
append 'AVOID' to word_tab.
append 'AVOWS' to word_tab.
append 'AVYZE' to word_tab.
append 'AWAIT' to word_tab.
append 'AWAKE' to word_tab.
append 'AWARD' to word_tab.
append 'AWARE' to word_tab.
append 'AWARN' to word_tab.
append 'AWASH' to word_tab.
append 'AWATO' to word_tab.
append 'AWAVE' to word_tab.
append 'AWAYS' to word_tab.
append 'AWDLS' to word_tab.
append 'AWEEL' to word_tab.
append 'AWETO' to word_tab.
append 'AWFUL' to word_tab.
append 'AWING' to word_tab.
append 'AWMRY' to word_tab.
append 'AWNED' to word_tab.
append 'AWNER' to word_tab.
append 'AWOKE' to word_tab.
append 'AWOLS' to word_tab.
append 'AWORK' to word_tab.
append 'AXELS' to word_tab.
append 'AXIAL' to word_tab.
append 'AXILE' to word_tab.
append 'AXILS' to word_tab.
append 'AXING' to word_tab.
append 'AXIOM' to word_tab.
append 'AXION' to word_tab.
append 'AXITE' to word_tab.
append 'AXLED' to word_tab.
append 'AXLES' to word_tab.
append 'AXMAN' to word_tab.
append 'AXMEN' to word_tab.
append 'AXOID' to word_tab.
append 'AXONE' to word_tab.
append 'AXONS' to word_tab.
append 'AYAHS' to word_tab.
append 'AYAYA' to word_tab.
append 'AYELP' to word_tab.
append 'AYGRE' to word_tab.
append 'AYINS' to word_tab.
append 'AYONT' to word_tab.
append 'AYRES' to word_tab.
append 'AYRIE' to word_tab.
append 'AZANS' to word_tab.
append 'AZIDE' to word_tab.
append 'AZIDO' to word_tab.
append 'AZINE' to word_tab.
append 'AZLON' to word_tab.
append 'AZOIC' to word_tab.
append 'AZOLE' to word_tab.
append 'AZONS' to word_tab.
append 'AZOTE' to word_tab.
append 'AZOTH' to word_tab.
append 'AZUKI' to word_tab.
append 'AZURE' to word_tab.
append 'AZURN' to word_tab.
append 'AZURY' to word_tab.
append 'AZYGY' to word_tab.
append 'AZYME' to word_tab.
append 'AZYMS' to word_tab.
append 'BAAED' to word_tab.
append 'BAALS' to word_tab.
append 'BABAS' to word_tab.
append 'BABEL' to word_tab.
append 'BABES' to word_tab.
append 'BABKA' to word_tab.
append 'BABOO' to word_tab.
append 'BABUL' to word_tab.
append 'BABUS' to word_tab.
append 'BACCA' to word_tab.
append 'BACCO' to word_tab.
append 'BACCY' to word_tab.
append 'BACHA' to word_tab.
append 'BACHS' to word_tab.
append 'BACKS' to word_tab.
append 'BACON' to word_tab.
append 'BADDY' to word_tab.
append 'BADGE' to word_tab.
append 'BADLY' to word_tab.
append 'BAELS' to word_tab.
append 'BAFFS' to word_tab.
append 'BAFFY' to word_tab.
append 'BAFTS' to word_tab.
append 'BAGEL' to word_tab.
append 'BAGGY' to word_tab.
append 'BAGHS' to word_tab.
append 'BAGIE' to word_tab.
append 'BAHTS' to word_tab.
append 'BAHUS' to word_tab.
append 'BAHUT' to word_tab.
append 'BAILS' to word_tab.
append 'BAIRN' to word_tab.
append 'BAISA' to word_tab.
append 'BAITH' to word_tab.
append 'BAITS' to word_tab.
append 'BAIZA' to word_tab.
append 'BAIZE' to word_tab.
append 'BAJAN' to word_tab.
append 'BAJRA' to word_tab.
append 'BAJRI' to word_tab.
append 'BAJUS' to word_tab.
append 'BAKED' to word_tab.
append 'BAKEN' to word_tab.
append 'BAKER' to word_tab.
append 'BAKES' to word_tab.
append 'BALAS' to word_tab.
append 'BALDS' to word_tab.
append 'BALDY' to word_tab.
append 'BALED' to word_tab.
append 'BALER' to word_tab.
append 'BALES' to word_tab.
append 'BALKS' to word_tab.
append 'BALKY' to word_tab.
append 'BALLS' to word_tab.
append 'BALLY' to word_tab.
append 'BALMS' to word_tab.
append 'BALMY' to word_tab.
append 'BALOO' to word_tab.
append 'BALSA' to word_tab.
append 'BALTI' to word_tab.
append 'BALUN' to word_tab.
append 'BALUS' to word_tab.
append 'BAMBI' to word_tab.
append 'BANAK' to word_tab.
append 'BANAL' to word_tab.
append 'BANCO' to word_tab.
append 'BANCS' to word_tab.
append 'BANDA' to word_tab.
append 'BANDH' to word_tab.
append 'BANDS' to word_tab.
append 'BANDY' to word_tab.
append 'BANED' to word_tab.
append 'BANES' to word_tab.
append 'BANGS' to word_tab.
append 'BANIA' to word_tab.
append 'BANJO' to word_tab.
append 'BANKS' to word_tab.
append 'BANNS' to word_tab.
append 'BANTS' to word_tab.
append 'BANTY' to word_tab.
append 'BANYA' to word_tab.
append 'BAPUS' to word_tab.
append 'BARBE' to word_tab.
append 'BARBS' to word_tab.
append 'BARBY' to word_tab.
append 'BARCA' to word_tab.
append 'BARDE' to word_tab.
append 'BARDO' to word_tab.
append 'BARDS' to word_tab.
append 'BARDY' to word_tab.
append 'BARED' to word_tab.
append 'BARER' to word_tab.
append 'BARES' to word_tab.
append 'BARFI' to word_tab.
append 'BARFS' to word_tab.
append 'BARGE' to word_tab.
append 'BARIC' to word_tab.
append 'BARKS' to word_tab.
append 'BARKY' to word_tab.
append 'BARMS' to word_tab.
append 'BARMY' to word_tab.
append 'BARNS' to word_tab.
append 'BARNY' to word_tab.
append 'BARON' to word_tab.
append 'BARPS' to word_tab.
append 'BARRA' to word_tab.
append 'BARRE' to word_tab.
append 'BARRO' to word_tab.
append 'BARRY' to word_tab.
append 'BARYE' to word_tab.
append 'BASAL' to word_tab.
append 'BASAN' to word_tab.
append 'BASED' to word_tab.
append 'BASEN' to word_tab.
append 'BASER' to word_tab.
append 'BASES' to word_tab.
append 'BASHO' to word_tab.
append 'BASIC' to word_tab.
append 'BASIJ' to word_tab.
append 'BASIL' to word_tab.
append 'BASIN' to word_tab.
append 'BASIS' to word_tab.
append 'BASKS' to word_tab.
append 'BASON' to word_tab.
append 'BASSE' to word_tab.
append 'BASSI' to word_tab.
append 'BASSO' to word_tab.
append 'BASSY' to word_tab.
append 'BASTA' to word_tab.
append 'BASTE' to word_tab.
append 'BASTI' to word_tab.
append 'BASTO' to word_tab.
append 'BASTS' to word_tab.
append 'BATCH' to word_tab.
append 'BATED' to word_tab.
append 'BATES' to word_tab.
append 'BATHE' to word_tab.
append 'BATHS' to word_tab.
append 'BATIK' to word_tab.
append 'BATON' to word_tab.
append 'BATTA' to word_tab.
append 'BATTS' to word_tab.
append 'BATTU' to word_tab.
append 'BATTY' to word_tab.
append 'BAUDS' to word_tab.
append 'BAUKS' to word_tab.
append 'BAULK' to word_tab.
append 'BAURS' to word_tab.
append 'BAVIN' to word_tab.
append 'BAWDS' to word_tab.
append 'BAWDY' to word_tab.
append 'BAWKS' to word_tab.
append 'BAWLS' to word_tab.
append 'BAWNS' to word_tab.
append 'BAWRS' to word_tab.
append 'BAWTY' to word_tab.
append 'BAYED' to word_tab.
append 'BAYER' to word_tab.
append 'BAYES' to word_tab.
append 'BAYLE' to word_tab.
append 'BAYOU' to word_tab.
append 'BAYTS' to word_tab.
append 'BAZAR' to word_tab.
append 'BAZOO' to word_tab.
append 'BEACH' to word_tab.
append 'BEADS' to word_tab.
append 'BEADY' to word_tab.
append 'BEAKS' to word_tab.
append 'BEAKY' to word_tab.
append 'BEALS' to word_tab.
append 'BEAMS' to word_tab.
append 'BEAMY' to word_tab.
append 'BEANO' to word_tab.
append 'BEANS' to word_tab.
append 'BEANY' to word_tab.
append 'BEARD' to word_tab.
append 'BEARE' to word_tab.
append 'BEARS' to word_tab.
append 'BEAST' to word_tab.
append 'BEATH' to word_tab.
append 'BEATS' to word_tab.
append 'BEATY' to word_tab.
append 'BEAUS' to word_tab.
append 'BEAUT' to word_tab.
append 'BEAUX' to word_tab.
append 'BEBOP' to word_tab.
append 'BECAP' to word_tab.
append 'BECKE' to word_tab.
append 'BECKS' to word_tab.
append 'BEDAD' to word_tab.
append 'BEDEL' to word_tab.
append 'BEDES' to word_tab.
append 'BEDEW' to word_tab.
append 'BEDIM' to word_tab.
append 'BEDYE' to word_tab.
append 'BEECH' to word_tab.
append 'BEEDI' to word_tab.
append 'BEEFS' to word_tab.
append 'BEEFY' to word_tab.
append 'BEEPS' to word_tab.
append 'BEERS' to word_tab.
append 'BEERY' to word_tab.
append 'BEETS' to word_tab.
append 'BEFIT' to word_tab.
append 'BEFOG' to word_tab.
append 'BEGAD' to word_tab.
append 'BEGAN' to word_tab.
append 'BEGAR' to word_tab.
append 'BEGAT' to word_tab.
append 'BEGEM' to word_tab.
append 'BEGET' to word_tab.
append 'BEGIN' to word_tab.
append 'BEGOT' to word_tab.
append 'BEGUM' to word_tab.
append 'BEGUN' to word_tab.
append 'BEIGE' to word_tab.
append 'BEIGY' to word_tab.
append 'BEING' to word_tab.
append 'BEINS' to word_tab.
append 'BEKAH' to word_tab.
append 'BELAH' to word_tab.
append 'BELAR' to word_tab.
append 'BELAY' to word_tab.
append 'BELCH' to word_tab.
append 'BELEE' to word_tab.
append 'BELGA' to word_tab.
append 'BELIE' to word_tab.
append 'BELLE' to word_tab.
append 'BELLS' to word_tab.
append 'BELLY' to word_tab.
append 'BELON' to word_tab.
append 'BELOW' to word_tab.
append 'BELTS' to word_tab.
append 'BEMAD' to word_tab.
append 'BEMAS' to word_tab.
append 'BEMIX' to word_tab.
append 'BEMUD' to word_tab.
append 'BENCH' to word_tab.
append 'BENDS' to word_tab.
append 'BENDY' to word_tab.
append 'BENES' to word_tab.
append 'BENET' to word_tab.
append 'BENGA' to word_tab.
append 'BENIS' to word_tab.
append 'BENNE' to word_tab.
append 'BENNI' to word_tab.
append 'BENNY' to word_tab.
append 'BENTO' to word_tab.
append 'BENTS' to word_tab.
append 'BENTY' to word_tab.
append 'BEPAT' to word_tab.
append 'BERAY' to word_tab.
append 'BERES' to word_tab.
append 'BERET' to word_tab.
append 'BERGS' to word_tab.
append 'BERKO' to word_tab.
append 'BERKS' to word_tab.
append 'BERME' to word_tab.
append 'BERMS' to word_tab.
append 'BEROB' to word_tab.
append 'BERRY' to word_tab.
append 'BERTH' to word_tab.
append 'BERYL' to word_tab.
append 'BESAT' to word_tab.
append 'BESAW' to word_tab.
append 'BESEE' to word_tab.
append 'BESES' to word_tab.
append 'BESET' to word_tab.
append 'BESIT' to word_tab.
append 'BESOM' to word_tab.
append 'BESOT' to word_tab.
append 'BESTI' to word_tab.
append 'BESTS' to word_tab.
append 'BETAS' to word_tab.
append 'BETED' to word_tab.
append 'BETEL' to word_tab.
append 'BETES' to word_tab.
append 'BETHS' to word_tab.
append 'BETID' to word_tab.
append 'BETON' to word_tab.
append 'BETTA' to word_tab.
append 'BETTY' to word_tab.
append 'BEVEL' to word_tab.
append 'BEVER' to word_tab.
append 'BEVOR' to word_tab.
append 'BEVUE' to word_tab.
append 'BEVVY' to word_tab.
append 'BEWET' to word_tab.
append 'BEWIG' to word_tab.
append 'BEZEL' to word_tab.
append 'BEZES' to word_tab.
append 'BEZIL' to word_tab.
append 'BEZZY' to word_tab.
append 'BHAIS' to word_tab.
append 'BHAJI' to word_tab.
append 'BHANG' to word_tab.
append 'BHATS' to word_tab.
append 'BHELS' to word_tab.
append 'BHOOT' to word_tab.
append 'BHUNA' to word_tab.
append 'BHUTS' to word_tab.
append 'BIACH' to word_tab.
append 'BIALI' to word_tab.
append 'BIALY' to word_tab.
append 'BIBBS' to word_tab.
append 'BIBES' to word_tab.
append 'BIBLE' to word_tab.
append 'BICCY' to word_tab.
append 'BICEP' to word_tab.
append 'BICES' to word_tab.
append 'BIDDY' to word_tab.
append 'BIDED' to word_tab.
append 'BIDER' to word_tab.
append 'BIDES' to word_tab.
append 'BIDET' to word_tab.
append 'BIDIS' to word_tab.
append 'BIDON' to word_tab.
append 'BIELD' to word_tab.
append 'BIERS' to word_tab.
append 'BIFFO' to word_tab.
append 'BIFFS' to word_tab.
append 'BIFFY' to word_tab.
append 'BIFID' to word_tab.
append 'BIGAE' to word_tab.
append 'BIGGS' to word_tab.
append 'BIGGY' to word_tab.
append 'BIGHA' to word_tab.
append 'BIGHT' to word_tab.
append 'BIGLY' to word_tab.
append 'BIGOS' to word_tab.
append 'BIGOT' to word_tab.
append 'BIJOU' to word_tab.
append 'BIKED' to word_tab.
append 'BIKER' to word_tab.
append 'BIKES' to word_tab.
append 'BIKIE' to word_tab.
append 'BILBO' to word_tab.
append 'BILBY' to word_tab.
append 'BILED' to word_tab.
append 'BILES' to word_tab.
append 'BILGE' to word_tab.
append 'BILGY' to word_tab.
append 'BILKS' to word_tab.
append 'BILLS' to word_tab.
append 'BILLY' to word_tab.
append 'BIMAH' to word_tab.
append 'BIMAS' to word_tab.
append 'BIMBO' to word_tab.
append 'BINAL' to word_tab.
append 'BINDI' to word_tab.
append 'BINDS' to word_tab.
append 'BINER' to word_tab.
append 'BINES' to word_tab.
append 'BINGE' to word_tab.
append 'BINGO' to word_tab.
append 'BINGS' to word_tab.
append 'BINGY' to word_tab.
append 'BINIT' to word_tab.
append 'BINKS' to word_tab.
append 'BIOGS' to word_tab.
append 'BIOME' to word_tab.
append 'BIONT' to word_tab.
append 'BIOTA' to word_tab.
append 'BIPED' to word_tab.
append 'BIPOD' to word_tab.
append 'BIRCH' to word_tab.
append 'BIRDS' to word_tab.
append 'BIRKS' to word_tab.
append 'BIRLE' to word_tab.
append 'BIRLS' to word_tab.
append 'BIROS' to word_tab.
append 'BIRRS' to word_tab.
append 'BIRSE' to word_tab.
append 'BIRSY' to word_tab.
append 'BIRTH' to word_tab.
append 'BISES' to word_tab.
append 'BISKS' to word_tab.
append 'BISOM' to word_tab.
append 'BISON' to word_tab.
append 'BITCH' to word_tab.
append 'BITER' to word_tab.
append 'BITES' to word_tab.
append 'BITOS' to word_tab.
append 'BITOU' to word_tab.
append 'BITSY' to word_tab.
append 'BITTE' to word_tab.
append 'BITTS' to word_tab.
append 'BITTY' to word_tab.
append 'BIVIA' to word_tab.
append 'BIVVY' to word_tab.
append 'BIZES' to word_tab.
append 'BIZZO' to word_tab.
append 'BIZZY' to word_tab.
append 'BLABS' to word_tab.
append 'BLACK' to word_tab.
append 'BLADE' to word_tab.
append 'BLADS' to word_tab.
append 'BLADY' to word_tab.
append 'BLAER' to word_tab.
append 'BLAES' to word_tab.
append 'BLAFF' to word_tab.
append 'BLAGS' to word_tab.
append 'BLAHS' to word_tab.
append 'BLAIN' to word_tab.
append 'BLAME' to word_tab.
append 'BLAMS' to word_tab.
append 'BLAND' to word_tab.
append 'BLANK' to word_tab.
append 'BLARE' to word_tab.
append 'BLART' to word_tab.
append 'BLASE' to word_tab.
append 'BLASH' to word_tab.
append 'BLAST' to word_tab.
append 'BLATE' to word_tab.
append 'BLATS' to word_tab.
append 'BLATT' to word_tab.
append 'BLAUD' to word_tab.
append 'BLAWN' to word_tab.
append 'BLAWS' to word_tab.
append 'BLAYS' to word_tab.
append 'BLAZE' to word_tab.
append 'BLEAK' to word_tab.
append 'BLEAR' to word_tab.
append 'BLEAT' to word_tab.
append 'BLEBS' to word_tab.
append 'BLECH' to word_tab.
append 'BLEED' to word_tab.
append 'BLEEP' to word_tab.
append 'BLEES' to word_tab.
append 'BLEND' to word_tab.
append 'BLENT' to word_tab.
append 'BLERT' to word_tab.
append 'BLESS' to word_tab.
append 'BLEST' to word_tab.
append 'BLETS' to word_tab.
append 'BLEYS' to word_tab.
append 'BLIMP' to word_tab.
append 'BLIMY' to word_tab.
append 'BLIND' to word_tab.
append 'BLING' to word_tab.
append 'BLINI' to word_tab.
append 'BLINK' to word_tab.
append 'BLINS' to word_tab.
append 'BLINY' to word_tab.
append 'BLIPS' to word_tab.
append 'BLISS' to word_tab.
append 'BLIST' to word_tab.
append 'BLITE' to word_tab.
append 'BLITS' to word_tab.
append 'BLITZ' to word_tab.
append 'BLIVE' to word_tab.
append 'BLOAT' to word_tab.
append 'BLOBS' to word_tab.
append 'BLOCK' to word_tab.
append 'BLOCS' to word_tab.
append 'BLOGS' to word_tab.
append 'BLOKE' to word_tab.
append 'BLOND' to word_tab.
append 'BLOOD' to word_tab.
append 'BLOOK' to word_tab.
append 'BLOOM' to word_tab.
append 'BLOOP' to word_tab.
append 'BLORE' to word_tab.
append 'BLOTS' to word_tab.
append 'BLOWN' to word_tab.
append 'BLOWS' to word_tab.
append 'BLOWY' to word_tab.
append 'BLUBS' to word_tab.
append 'BLUDE' to word_tab.
append 'BLUDS' to word_tab.
append 'BLUDY' to word_tab.
append 'BLUED' to word_tab.
append 'BLUER' to word_tab.
append 'BLUES' to word_tab.
append 'BLUET' to word_tab.
append 'BLUEY' to word_tab.
append 'BLUFF' to word_tab.
append 'BLUID' to word_tab.
append 'BLUME' to word_tab.
append 'BLUNK' to word_tab.
append 'BLUNT' to word_tab.
append 'BLURB' to word_tab.
append 'BLURS' to word_tab.
append 'BLURT' to word_tab.
append 'BLUSH' to word_tab.
append 'BLYPE' to word_tab.
append 'BOABS' to word_tab.
append 'BOAKS' to word_tab.
append 'BOARD' to word_tab.
append 'BOARS' to word_tab.
append 'BOART' to word_tab.
append 'BOAST' to word_tab.
append 'BOATS' to word_tab.
append 'BOBAC' to word_tab.
append 'BOBAK' to word_tab.
append 'BOBAS' to word_tab.
append 'BOBBY' to word_tab.
append 'BOBOL' to word_tab.
append 'BOBOS' to word_tab.
append 'BOCCA' to word_tab.
append 'BOCCE' to word_tab.
append 'BOCCI' to word_tab.
append 'BOCKS' to word_tab.
append 'BODED' to word_tab.
append 'BODES' to word_tab.
append 'BODGE' to word_tab.
append 'BODHI' to word_tab.
append 'BODLE' to word_tab.
append 'BOEPS' to word_tab.
append 'BOETS' to word_tab.
append 'BOEUF' to word_tab.
append 'BOFFO' to word_tab.
append 'BOFFS' to word_tab.
append 'BOGAN' to word_tab.
append 'BOGEY' to word_tab.
append 'BOGGY' to word_tab.
append 'BOGIE' to word_tab.
append 'BOGLE' to word_tab.
append 'BOGUE' to word_tab.
append 'BOGUS' to word_tab.
append 'BOHEA' to word_tab.
append 'BOHOS' to word_tab.
append 'BOILS' to word_tab.
append 'BOING' to word_tab.
append 'BOINK' to word_tab.
append 'BOITE' to word_tab.
append 'BOKED' to word_tab.
append 'BOKEH' to word_tab.
append 'BOKES' to word_tab.
append 'BOKOS' to word_tab.
append 'BOLAR' to word_tab.
append 'BOLAS' to word_tab.
append 'BOLDS' to word_tab.
append 'BOLES' to word_tab.
append 'BOLIX' to word_tab.
append 'BOLLS' to word_tab.
append 'BOLOS' to word_tab.
append 'BOLTS' to word_tab.
append 'BOLUS' to word_tab.
append 'BOMAS' to word_tab.
append 'BOMBE' to word_tab.
append 'BOMBO' to word_tab.
append 'BOMBS' to word_tab.
append 'BONCE' to word_tab.
append 'BONDS' to word_tab.
append 'BONED' to word_tab.
append 'BONER' to word_tab.
append 'BONES' to word_tab.
append 'BONEY' to word_tab.
append 'BONGO' to word_tab.
append 'BONGS' to word_tab.
append 'BONIE' to word_tab.
append 'BONKS' to word_tab.
append 'BONNE' to word_tab.
append 'BONNY' to word_tab.
append 'BONUS' to word_tab.
append 'BONZA' to word_tab.
append 'BONZE' to word_tab.
append 'BOOAI' to word_tab.
append 'BOOAY' to word_tab.
append 'BOOBS' to word_tab.
append 'BOOBY' to word_tab.
append 'BOODY' to word_tab.
append 'BOOED' to word_tab.
append 'BOOFY' to word_tab.
append 'BOOGY' to word_tab.
append 'BOOHS' to word_tab.
append 'BOOKS' to word_tab.
append 'BOOKY' to word_tab.
append 'BOOLS' to word_tab.
append 'BOOMS' to word_tab.
append 'BOOMY' to word_tab.
append 'BOONS' to word_tab.
append 'BOORD' to word_tab.
append 'BOORS' to word_tab.
append 'BOOSE' to word_tab.
append 'BOOST' to word_tab.
append 'BOOTH' to word_tab.
append 'BOOTS' to word_tab.
append 'BOOTY' to word_tab.
append 'BOOZE' to word_tab.
append 'BOOZY' to word_tab.
append 'BOPPY' to word_tab.
append 'BORAK' to word_tab.
append 'BORAL' to word_tab.
append 'BORAS' to word_tab.
append 'BORAX' to word_tab.
append 'BORDE' to word_tab.
append 'BORDS' to word_tab.
append 'BORED' to word_tab.
append 'BOREE' to word_tab.
append 'BOREL' to word_tab.
append 'BORER' to word_tab.
append 'BORES' to word_tab.
append 'BORGO' to word_tab.
append 'BORIC' to word_tab.
append 'BORKS' to word_tab.
append 'BORMS' to word_tab.
append 'BORNA' to word_tab.
append 'BORNE' to word_tab.
append 'BORON' to word_tab.
append 'BORTS' to word_tab.
append 'BORTY' to word_tab.
append 'BORTZ' to word_tab.
append 'BOSIE' to word_tab.
append 'BOSKS' to word_tab.
append 'BOSKY' to word_tab.
append 'BOSOM' to word_tab.
append 'BOSON' to word_tab.
append 'BOSSY' to word_tab.
append 'BOSUN' to word_tab.
append 'BOTAS' to word_tab.
append 'BOTCH' to word_tab.
append 'BOTEL' to word_tab.
append 'BOTES' to word_tab.
append 'BOTHY' to word_tab.
append 'BOTTE' to word_tab.
append 'BOTTS' to word_tab.
append 'BOTTY' to word_tab.
append 'BOUGE' to word_tab.
append 'BOUGH' to word_tab.
append 'BOUKS' to word_tab.
append 'BOULE' to word_tab.
append 'BOULT' to word_tab.
append 'BOUND' to word_tab.
append 'BOUNS' to word_tab.
append 'BOURD' to word_tab.
append 'BOURG' to word_tab.
append 'BOURN' to word_tab.
append 'BOUSE' to word_tab.
append 'BOUSY' to word_tab.
append 'BOUTS' to word_tab.
append 'BOVID' to word_tab.
append 'BOWAT' to word_tab.
append 'BOWED' to word_tab.
append 'BOWEL' to word_tab.
append 'BOWER' to word_tab.
append 'BOWES' to word_tab.
append 'BOWET' to word_tab.
append 'BOWIE' to word_tab.
append 'BOWLS' to word_tab.
append 'BOWNE' to word_tab.
append 'BOWRS' to word_tab.
append 'BOWSE' to word_tab.
append 'BOXED' to word_tab.
append 'BOXEN' to word_tab.
append 'BOXER' to word_tab.
append 'BOXES' to word_tab.
append 'BOXLA' to word_tab.
append 'BOXTY' to word_tab.
append 'BOYAR' to word_tab.
append 'BOYAU' to word_tab.
append 'BOYED' to word_tab.
append 'BOYFS' to word_tab.
append 'BOYGS' to word_tab.
append 'BOYLA' to word_tab.
append 'BOYOS' to word_tab.
append 'BOYSY' to word_tab.
append 'BOZOS' to word_tab.
append 'BRAAI' to word_tab.
append 'BRACE' to word_tab.
append 'BRACH' to word_tab.
append 'BRACK' to word_tab.
append 'BRACT' to word_tab.
append 'BRADS' to word_tab.
append 'BRAES' to word_tab.
append 'BRAGS' to word_tab.
append 'BRAID' to word_tab.
append 'BRAIL' to word_tab.
append 'BRAIN' to word_tab.
append 'BRAKE' to word_tab.
append 'BRAKS' to word_tab.
append 'BRAKY' to word_tab.
append 'BRAME' to word_tab.
append 'BRAND' to word_tab.
append 'BRANE' to word_tab.
append 'BRANK' to word_tab.
append 'BRANS' to word_tab.
append 'BRANT' to word_tab.
append 'BRASH' to word_tab.
append 'BRASS' to word_tab.
append 'BRAST' to word_tab.
append 'BRATS' to word_tab.
append 'BRAVA' to word_tab.
append 'BRAVE' to word_tab.
append 'BRAVI' to word_tab.
append 'BRAVO' to word_tab.
append 'BRAWL' to word_tab.
append 'BRAWN' to word_tab.
append 'BRAWS' to word_tab.
append 'BRAXY' to word_tab.
append 'BRAYS' to word_tab.
append 'BRAZA' to word_tab.
append 'BRAZE' to word_tab.
append 'BREAD' to word_tab.
append 'BREAK' to word_tab.
append 'BREAM' to word_tab.
append 'BREDE' to word_tab.
append 'BREDS' to word_tab.
append 'BREED' to word_tab.
append 'BREEM' to word_tab.
append 'BREER' to word_tab.
append 'BREES' to word_tab.
append 'BREID' to word_tab.
append 'BREIS' to word_tab.
append 'BREME' to word_tab.
append 'BRENS' to word_tab.
append 'BRENT' to word_tab.
append 'BRERE' to word_tab.
append 'BRERS' to word_tab.
append 'BREVE' to word_tab.
append 'BREWS' to word_tab.
append 'BREYS' to word_tab.
append 'BRIAR' to word_tab.
append 'BRIBE' to word_tab.
append 'BRICK' to word_tab.
append 'BRIDE' to word_tab.
append 'BRIEF' to word_tab.
append 'BRIER' to word_tab.
append 'BRIES' to word_tab.
append 'BRIGS' to word_tab.
append 'BRIKI' to word_tab.
append 'BRIKS' to word_tab.
append 'BRILL' to word_tab.
append 'BRIMS' to word_tab.
append 'BRINE' to word_tab.
append 'BRING' to word_tab.
append 'BRINK' to word_tab.
append 'BRINS' to word_tab.
append 'BRINY' to word_tab.
append 'BRIOS' to word_tab.
append 'BRISE' to word_tab.
append 'BRISK' to word_tab.
append 'BRISS' to word_tab.
append 'BRITH' to word_tab.
append 'BRITS' to word_tab.
append 'BRITT' to word_tab.
append 'BRIZE' to word_tab.
append 'BROAD' to word_tab.
append 'BROCH' to word_tab.
append 'BROCK' to word_tab.
append 'BRODS' to word_tab.
append 'BROGH' to word_tab.
append 'BROGS' to word_tab.
append 'BROIL' to word_tab.
append 'BROKE' to word_tab.
append 'BROME' to word_tab.
append 'BROMO' to word_tab.
append 'BRONC' to word_tab.
append 'BROND' to word_tab.
append 'BROOD' to word_tab.
append 'BROOK' to word_tab.
append 'BROOL' to word_tab.
append 'BROOM' to word_tab.
append 'BROOS' to word_tab.
append 'BROSE' to word_tab.
append 'BROSY' to word_tab.
append 'BROTH' to word_tab.
append 'BROWN' to word_tab.
append 'BROWS' to word_tab.
append 'BRUGH' to word_tab.
append 'BRUIN' to word_tab.
append 'BRUIT' to word_tab.
append 'BRULE' to word_tab.
append 'BRUME' to word_tab.
append 'BRUNG' to word_tab.
append 'BRUNT' to word_tab.
append 'BRUSH' to word_tab.
append 'BRUSK' to word_tab.
append 'BRUST' to word_tab.
append 'BRUTE' to word_tab.
append 'BRUTS' to word_tab.
append 'BUATS' to word_tab.
append 'BUAZE' to word_tab.
append 'BUBAL' to word_tab.
append 'BUBAS' to word_tab.
append 'BUBBE' to word_tab.
append 'BUBBY' to word_tab.
append 'BUBUS' to word_tab.
append 'BUCHU' to word_tab.
append 'BUCKO' to word_tab.
append 'BUCKS' to word_tab.
append 'BUCKU' to word_tab.
append 'BUDAS' to word_tab.
append 'BUDDY' to word_tab.
append 'BUDGE' to word_tab.
append 'BUDIS' to word_tab.
append 'BUDOS' to word_tab.
append 'BUFFA' to word_tab.
append 'BUFFE' to word_tab.
append 'BUFFI' to word_tab.
append 'BUFFO' to word_tab.
append 'BUFFS' to word_tab.
append 'BUFFY' to word_tab.
append 'BUFOS' to word_tab.
append 'BUGGY' to word_tab.
append 'BUGLE' to word_tab.
append 'BUHLS' to word_tab.
append 'BUHRS' to word_tab.
append 'BUIKS' to word_tab.
append 'BUILD' to word_tab.
append 'BUILT' to word_tab.
append 'BUIST' to word_tab.
append 'BUKES' to word_tab.
append 'BULBS' to word_tab.
append 'BULGE' to word_tab.
append 'BULGY' to word_tab.
append 'BULKS' to word_tab.
append 'BULKY' to word_tab.
append 'BULLA' to word_tab.
append 'BULLS' to word_tab.
append 'BULLY' to word_tab.
append 'BULSE' to word_tab.
append 'BUMBO' to word_tab.
append 'BUMFS' to word_tab.
append 'BUMPH' to word_tab.
append 'BUMPS' to word_tab.
append 'BUMPY' to word_tab.
append 'BUNAS' to word_tab.
append 'BUNCE' to word_tab.
append 'BUNCH' to word_tab.
append 'BUNCO' to word_tab.
append 'BUNDE' to word_tab.
append 'BUNDH' to word_tab.
append 'BUNDS' to word_tab.
append 'BUNDT' to word_tab.
append 'BUNDU' to word_tab.
append 'BUNDY' to word_tab.
append 'BUNGS' to word_tab.
append 'BUNGY' to word_tab.
append 'BUNIA' to word_tab.
append 'BUNJE' to word_tab.
append 'BUNJY' to word_tab.
append 'BUNKO' to word_tab.
append 'BUNKS' to word_tab.
append 'BUNNS' to word_tab.
append 'BUNNY' to word_tab.
append 'BUNTS' to word_tab.
append 'BUNTY' to word_tab.
append 'BUNYA' to word_tab.
append 'BUOYS' to word_tab.
append 'BUPPY' to word_tab.
append 'BURAN' to word_tab.
append 'BURAS' to word_tab.
append 'BURBS' to word_tab.
append 'BURDS' to word_tab.
append 'BURET' to word_tab.
append 'BURFI' to word_tab.
append 'BURGH' to word_tab.
append 'BURGS' to word_tab.
append 'BURIN' to word_tab.
append 'BURKA' to word_tab.
append 'BURKE' to word_tab.
append 'BURKS' to word_tab.
append 'BURLS' to word_tab.
append 'BURLY' to word_tab.
append 'BURNS' to word_tab.
append 'BURNT' to word_tab.
append 'BUROO' to word_tab.
append 'BURPS' to word_tab.
append 'BURQA' to word_tab.
append 'BURRO' to word_tab.
append 'BURRS' to word_tab.
append 'BURRY' to word_tab.
append 'BURSA' to word_tab.
append 'BURSE' to word_tab.
append 'BURST' to word_tab.
append 'BUSBY' to word_tab.
append 'BUSED' to word_tab.
append 'BUSES' to word_tab.
append 'BUSHY' to word_tab.
append 'BUSKS' to word_tab.
append 'BUSKY' to word_tab.
append 'BUSSU' to word_tab.
append 'BUSTI' to word_tab.
append 'BUSTS' to word_tab.
append 'BUSTY' to word_tab.
append 'BUTCH' to word_tab.
append 'BUTEO' to word_tab.
append 'BUTES' to word_tab.
append 'BUTLE' to word_tab.
append 'BUTOH' to word_tab.
append 'BUTTE' to word_tab.
append 'BUTTS' to word_tab.
append 'BUTTY' to word_tab.
append 'BUTUT' to word_tab.
append 'BUTYL' to word_tab.
append 'BUXOM' to word_tab.
append 'BUYER' to word_tab.
append 'BUZZY' to word_tab.
append 'BWANA' to word_tab.
append 'BWAZI' to word_tab.
append 'BYDED' to word_tab.
append 'BYDES' to word_tab.
append 'BYKED' to word_tab.
append 'BYKES' to word_tab.
append 'BYLAW' to word_tab.
append 'BYRES' to word_tab.
append 'BYRLS' to word_tab.
append 'BYSSI' to word_tab.
append 'BYTES' to word_tab.
append 'BYWAY' to word_tab.
append 'CAAED' to word_tab.
append 'CABAL' to word_tab.
append 'CABAS' to word_tab.
append 'CABBY' to word_tab.
append 'CABER' to word_tab.
append 'CABIN' to word_tab.
append 'CABLE' to word_tab.
append 'CABOB' to word_tab.
append 'CABOC' to word_tab.
append 'CABRE' to word_tab.
append 'CACAO' to word_tab.
append 'CACAS' to word_tab.
append 'CACHE' to word_tab.
append 'CACKS' to word_tab.
append 'CACKY' to word_tab.
append 'CACTI' to word_tab.
append 'CADDY' to word_tab.
append 'CADEE' to word_tab.
append 'CADES' to word_tab.
append 'CADET' to word_tab.
append 'CADGE' to word_tab.
append 'CADGY' to word_tab.
append 'CADIE' to word_tab.
append 'CADIS' to word_tab.
append 'CADRE' to word_tab.
append 'CAECA' to word_tab.
append 'CAESE' to word_tab.
append 'CAFES' to word_tab.
append 'CAFFS' to word_tab.
append 'CAGED' to word_tab.
append 'CAGER' to word_tab.
append 'CAGES' to word_tab.
append 'CAGEY' to word_tab.
append 'CAGOT' to word_tab.
append 'CAHOW' to word_tab.
append 'CAIDS' to word_tab.
append 'CAINS' to word_tab.
append 'CAIRD' to word_tab.
append 'CAIRN' to word_tab.
append 'CAJON' to word_tab.
append 'CAJUN' to word_tab.
append 'CAKED' to word_tab.
append 'CAKES' to word_tab.
append 'CAKEY' to word_tab.
append 'CALFS' to word_tab.
append 'CALID' to word_tab.
append 'CALIF' to word_tab.
append 'CALIX' to word_tab.
append 'CALKS' to word_tab.
append 'CALLA' to word_tab.
append 'CALLS' to word_tab.
append 'CALMS' to word_tab.
append 'CALMY' to word_tab.
append 'CALOS' to word_tab.
append 'CALPA' to word_tab.
append 'CALPS' to word_tab.
append 'CALVE' to word_tab.
append 'CALYX' to word_tab.
append 'CAMAN' to word_tab.
append 'CAMAS' to word_tab.
append 'CAMEL' to word_tab.
append 'CAMEO' to word_tab.
append 'CAMES' to word_tab.
append 'CAMIS' to word_tab.
append 'CAMOS' to word_tab.
append 'CAMPI' to word_tab.
append 'CAMPO' to word_tab.
append 'CAMPS' to word_tab.
append 'CAMPY' to word_tab.
append 'CAMUS' to word_tab.
append 'CANAL' to word_tab.
append 'CANDY' to word_tab.
append 'CANED' to word_tab.
append 'CANEH' to word_tab.
append 'CANER' to word_tab.
append 'CANES' to word_tab.
append 'CANGS' to word_tab.
append 'CANID' to word_tab.
append 'CANNA' to word_tab.
append 'CANNS' to word_tab.
append 'CANNY' to word_tab.
append 'CANOE' to word_tab.
append 'CANON' to word_tab.
append 'CANSO' to word_tab.
append 'CANST' to word_tab.
append 'CANTO' to word_tab.
append 'CANTS' to word_tab.
append 'CANTY' to word_tab.
append 'CAPAS' to word_tab.
append 'CAPED' to word_tab.
append 'CAPER' to word_tab.
append 'CAPES' to word_tab.
append 'CAPEX' to word_tab.
append 'CAPHS' to word_tab.
append 'CAPIZ' to word_tab.
append 'CAPLE' to word_tab.
append 'CAPON' to word_tab.
append 'CAPOS' to word_tab.
append 'CAPOT' to word_tab.
append 'CAPRI' to word_tab.
append 'CAPUL' to word_tab.
append 'CAPUT' to word_tab.
append 'CARAP' to word_tab.
append 'CARAT' to word_tab.
append 'CARBO' to word_tab.
append 'CARBS' to word_tab.
append 'CARBY' to word_tab.
append 'CARDI' to word_tab.
append 'CARDS' to word_tab.
append 'CARDY' to word_tab.
append 'CARED' to word_tab.
append 'CARER' to word_tab.
append 'CARES' to word_tab.
append 'CARET' to word_tab.
append 'CAREX' to word_tab.
append 'CARGO' to word_tab.
append 'CARKS' to word_tab.
append 'CARLE' to word_tab.
append 'CARLS' to word_tab.
append 'CARNS' to word_tab.
append 'CARNY' to word_tab.
append 'CAROB' to word_tab.
append 'CAROL' to word_tab.
append 'CAROM' to word_tab.
append 'CARON' to word_tab.
append 'CARPI' to word_tab.
append 'CARPS' to word_tab.
append 'CARRS' to word_tab.
append 'CARRY' to word_tab.
append 'CARSE' to word_tab.
append 'CARTA' to word_tab.
append 'CARTE' to word_tab.
append 'CARTS' to word_tab.
append 'CARVE' to word_tab.
append 'CARVY' to word_tab.
append 'CASAS' to word_tab.
append 'CASCO' to word_tab.
append 'CASED' to word_tab.
append 'CASES' to word_tab.
append 'CASKS' to word_tab.
append 'CASKY' to word_tab.
append 'CASTE' to word_tab.
append 'CASTS' to word_tab.
append 'CASUS' to word_tab.
append 'CATCH' to word_tab.
append 'CATER' to word_tab.
append 'CATES' to word_tab.
append 'CATTY' to word_tab.
append 'CAUDA' to word_tab.
append 'CAUKS' to word_tab.
append 'CAULD' to word_tab.
append 'CAULK' to word_tab.
append 'CAULS' to word_tab.
append 'CAUMS' to word_tab.
append 'CAUPS' to word_tab.
append 'CAURI' to word_tab.
append 'CAUSA' to word_tab.
append 'CAUSE' to word_tab.
append 'CAVAS' to word_tab.
append 'CAVED' to word_tab.
append 'CAVEL' to word_tab.
append 'CAVER' to word_tab.
append 'CAVES' to word_tab.
append 'CAVIE' to word_tab.
append 'CAVIL' to word_tab.
append 'CAWED' to word_tab.
append 'CAWKS' to word_tab.
append 'CAXON' to word_tab.
append 'CEASE' to word_tab.
append 'CEAZE' to word_tab.
append 'CEBID' to word_tab.
append 'CECAL' to word_tab.
append 'CECUM' to word_tab.
append 'CEDAR' to word_tab.
append 'CEDED' to word_tab.
append 'CEDER' to word_tab.
append 'CEDES' to word_tab.
append 'CEDIS' to word_tab.
append 'CEIBA' to word_tab.
append 'CEILI' to word_tab.
append 'CEILS' to word_tab.
append 'CELEB' to word_tab.
append 'CELLA' to word_tab.
append 'CELLI' to word_tab.
append 'CELLO' to word_tab.
append 'CELLS' to word_tab.
append 'CELOM' to word_tab.
append 'CELTS' to word_tab.
append 'CENSE' to word_tab.
append 'CENTO' to word_tab.
append 'CENTS' to word_tab.
append 'CENTU' to word_tab.
append 'CEORL' to word_tab.
append 'CEPES' to word_tab.
append 'CERCI' to word_tab.
append 'CERED' to word_tab.
append 'CERES' to word_tab.
append 'CERGE' to word_tab.
append 'CERIA' to word_tab.
append 'CERIC' to word_tab.
append 'CERNE' to word_tab.
append 'CEROC' to word_tab.
append 'CEROS' to word_tab.
append 'CERTS' to word_tab.
append 'CERTY' to word_tab.
append 'CESSE' to word_tab.
append 'CESTA' to word_tab.
append 'CESTI' to word_tab.
append 'CETES' to word_tab.
append 'CETYL' to word_tab.
append 'CEZVE' to word_tab.
append 'CHACE' to word_tab.
append 'CHACK' to word_tab.
append 'CHACO' to word_tab.
append 'CHADO' to word_tab.
append 'CHADS' to word_tab.
append 'CHAFE' to word_tab.
append 'CHAFF' to word_tab.
append 'CHAFT' to word_tab.
append 'CHAIN' to word_tab.
append 'CHAIR' to word_tab.
append 'CHAIS' to word_tab.
append 'CHALK' to word_tab.
append 'CHALS' to word_tab.
append 'CHAMP' to word_tab.
append 'CHAMS' to word_tab.
append 'CHANA' to word_tab.
append 'CHANG' to word_tab.
append 'CHANK' to word_tab.
append 'CHANT' to word_tab.
append 'CHAOS' to word_tab.
append 'CHAPE' to word_tab.
append 'CHAPS' to word_tab.
append 'CHAPT' to word_tab.
append 'CHARA' to word_tab.
append 'CHARD' to word_tab.
append 'CHARE' to word_tab.
append 'CHARK' to word_tab.
append 'CHARM' to word_tab.
append 'CHARR' to word_tab.
append 'CHARS' to word_tab.
append 'CHART' to word_tab.
append 'CHARY' to word_tab.
append 'CHASE' to word_tab.
append 'CHASM' to word_tab.
append 'CHATS' to word_tab.
append 'CHAVE' to word_tab.
append 'CHAVS' to word_tab.
append 'CHAWK' to word_tab.
append 'CHAWS' to word_tab.
append 'CHAYA' to word_tab.
append 'CHAYS' to word_tab.
append 'CHEAP' to word_tab.
append 'CHEAT' to word_tab.
append 'CHECK' to word_tab.
append 'CHEEK' to word_tab.
append 'CHEEP' to word_tab.
append 'CHEER' to word_tab.
append 'CHEFS' to word_tab.
append 'CHEKA' to word_tab.
append 'CHELA' to word_tab.
append 'CHELP' to word_tab.
append 'CHEMO' to word_tab.
append 'CHEMS' to word_tab.
append 'CHERE' to word_tab.
append 'CHERT' to word_tab.
append 'CHESS' to word_tab.
append 'CHEST' to word_tab.
append 'CHETH' to word_tab.
append 'CHEVY' to word_tab.
append 'CHEWS' to word_tab.
append 'CHEWY' to word_tab.
append 'CHIAO' to word_tab.
append 'CHIAS' to word_tab.
append 'CHIBS' to word_tab.
append 'CHICA' to word_tab.
append 'CHICH' to word_tab.
append 'CHICK' to word_tab.
append 'CHICO' to word_tab.
append 'CHICS' to word_tab.
append 'CHIDE' to word_tab.
append 'CHIEF' to word_tab.
append 'CHIEL' to word_tab.
append 'CHIKS' to word_tab.
append 'CHILD' to word_tab.
append 'CHILE' to word_tab.
append 'CHILI' to word_tab.
append 'CHILL' to word_tab.
append 'CHIMB' to word_tab.
append 'CHIME' to word_tab.
append 'CHIMO' to word_tab.
append 'CHIMP' to word_tab.
append 'CHINA' to word_tab.
append 'CHINE' to word_tab.
append 'CHING' to word_tab.
append 'CHINK' to word_tab.
append 'CHINO' to word_tab.
append 'CHINS' to word_tab.
append 'CHIPS' to word_tab.
append 'CHIRK' to word_tab.
append 'CHIRL' to word_tab.
append 'CHIRM' to word_tab.
append 'CHIRO' to word_tab.
append 'CHIRP' to word_tab.
append 'CHIRR' to word_tab.
append 'CHIRT' to word_tab.
append 'CHIRU' to word_tab.
append 'CHITS' to word_tab.
append 'CHIVE' to word_tab.
append 'CHIVS' to word_tab.
append 'CHIVY' to word_tab.
append 'CHIZZ' to word_tab.
append 'CHOCK' to word_tab.
append 'CHOCO' to word_tab.
append 'CHOCS' to word_tab.
append 'CHODE' to word_tab.
append 'CHOGS' to word_tab.
append 'CHOIL' to word_tab.
append 'CHOIR' to word_tab.
append 'CHOKE' to word_tab.
append 'CHOKO' to word_tab.
append 'CHOKY' to word_tab.
append 'CHOLA' to word_tab.
append 'CHOLI' to word_tab.
append 'CHOMP' to word_tab.
append 'CHONS' to word_tab.
append 'CHOOF' to word_tab.
append 'CHOOK' to word_tab.
append 'CHOOM' to word_tab.
append 'CHOON' to word_tab.
append 'CHOPS' to word_tab.
append 'CHORD' to word_tab.
append 'CHORE' to word_tab.
append 'CHOSE' to word_tab.
append 'CHOTA' to word_tab.
append 'CHOTT' to word_tab.
append 'CHOUT' to word_tab.
append 'CHOUX' to word_tab.
append 'CHOWK' to word_tab.
append 'CHOWS' to word_tab.
append 'CHUBS' to word_tab.
append 'CHUCK' to word_tab.
append 'CHUFA' to word_tab.
append 'CHUFF' to word_tab.
append 'CHUGS' to word_tab.
append 'CHUMP' to word_tab.
append 'CHUMS' to word_tab.
append 'CHUNK' to word_tab.
append 'CHURL' to word_tab.
append 'CHURN' to word_tab.
append 'CHURR' to word_tab.
append 'CHUSE' to word_tab.
append 'CHUTE' to word_tab.
append 'CHUTS' to word_tab.
append 'CHYLE' to word_tab.
append 'CHYME' to word_tab.
append 'CHYND' to word_tab.
append 'CIBOL' to word_tab.
append 'CIDED' to word_tab.
append 'CIDER' to word_tab.
append 'CIDES' to word_tab.
append 'CIELS' to word_tab.
append 'CIGAR' to word_tab.
append 'CIGGY' to word_tab.
append 'CILIA' to word_tab.
append 'CILLS' to word_tab.
append 'CIMAR' to word_tab.
append 'CIMEX' to word_tab.
append 'CINCH' to word_tab.
append 'CINCT' to word_tab.
append 'CINES' to word_tab.
append 'CINQS' to word_tab.
append 'CIONS' to word_tab.
append 'CIPPI' to word_tab.
append 'CIRCA' to word_tab.
append 'CIRCS' to word_tab.
append 'CIRES' to word_tab.
append 'CIRLS' to word_tab.
append 'CIRRI' to word_tab.
append 'CISCO' to word_tab.
append 'CISSY' to word_tab.
append 'CISTS' to word_tab.
append 'CITAL' to word_tab.
append 'CITED' to word_tab.
append 'CITER' to word_tab.
append 'CITES' to word_tab.
append 'CIVES' to word_tab.
append 'CIVET' to word_tab.
append 'CIVIC' to word_tab.
append 'CIVIE' to word_tab.
append 'CIVIL' to word_tab.
append 'CIVVY' to word_tab.
append 'CLACH' to word_tab.
append 'CLACK' to word_tab.
append 'CLADE' to word_tab.
append 'CLADS' to word_tab.
append 'CLAES' to word_tab.
append 'CLAGS' to word_tab.
append 'CLAIM' to word_tab.
append 'CLAME' to word_tab.
append 'CLAMP' to word_tab.
append 'CLAMS' to word_tab.
append 'CLANG' to word_tab.
append 'CLANK' to word_tab.
append 'CLANS' to word_tab.
append 'CLAPS' to word_tab.
append 'CLAPT' to word_tab.
append 'CLARO' to word_tab.
append 'CLART' to word_tab.
append 'CLARY' to word_tab.
append 'CLASH' to word_tab.
append 'CLASP' to word_tab.
append 'CLASS' to word_tab.
append 'CLAST' to word_tab.
append 'CLATS' to word_tab.
append 'CLAUT' to word_tab.
append 'CLAVE' to word_tab.
append 'CLAVI' to word_tab.
append 'CLAWS' to word_tab.
append 'CLAYS' to word_tab.
append 'CLEAN' to word_tab.
append 'CLEAR' to word_tab.
append 'CLEAT' to word_tab.
append 'CLECK' to word_tab.
append 'CLEEK' to word_tab.
append 'CLEEP' to word_tab.
append 'CLEFS' to word_tab.
append 'CLEFT' to word_tab.
append 'CLEGS' to word_tab.
append 'CLEIK' to word_tab.
append 'CLEMS' to word_tab.
append 'CLEPE' to word_tab.
append 'CLEPT' to word_tab.
append 'CLERK' to word_tab.
append 'CLEVE' to word_tab.
append 'CLEWS' to word_tab.
append 'CLICK' to word_tab.
append 'CLIED' to word_tab.
append 'CLIES' to word_tab.
append 'CLIFF' to word_tab.
append 'CLIFT' to word_tab.
append 'CLIMB' to word_tab.
append 'CLIME' to word_tab.
append 'CLINE' to word_tab.
append 'CLING' to word_tab.
append 'CLINK' to word_tab.
append 'CLINT' to word_tab.
append 'CLIPE' to word_tab.
append 'CLIPS' to word_tab.
append 'CLIPT' to word_tab.
append 'CLITS' to word_tab.
append 'CLOAK' to word_tab.
append 'CLOAM' to word_tab.
append 'CLOCK' to word_tab.
append 'CLODS' to word_tab.
append 'CLOFF' to word_tab.
append 'CLOGS' to word_tab.
append 'CLOKE' to word_tab.
append 'CLOMB' to word_tab.
append 'CLOMP' to word_tab.
append 'CLONE' to word_tab.
append 'CLONK' to word_tab.
append 'CLONS' to word_tab.
append 'CLOOP' to word_tab.
append 'CLOOT' to word_tab.
append 'CLOPS' to word_tab.
append 'CLOSE' to word_tab.
append 'CLOTE' to word_tab.
append 'CLOTH' to word_tab.
append 'CLOTS' to word_tab.
append 'CLOUD' to word_tab.
append 'CLOUR' to word_tab.
append 'CLOUS' to word_tab.
append 'CLOUT' to word_tab.
append 'CLOVE' to word_tab.
append 'CLOWN' to word_tab.
append 'CLOWS' to word_tab.
append 'CLOYE' to word_tab.
append 'CLOYS' to word_tab.
append 'CLOZE' to word_tab.
append 'CLUBS' to word_tab.
append 'CLUCK' to word_tab.
append 'CLUED' to word_tab.
append 'CLUES' to word_tab.
append 'CLUEY' to word_tab.
append 'CLUMP' to word_tab.
append 'CLUNG' to word_tab.
append 'CLUNK' to word_tab.
append 'CLYPE' to word_tab.
append 'CNIDA' to word_tab.
append 'COACH' to word_tab.
append 'COACT' to word_tab.
append 'COADY' to word_tab.
append 'COALA' to word_tab.
append 'COALS' to word_tab.
append 'COALY' to word_tab.
append 'COAPT' to word_tab.
append 'COARB' to word_tab.
append 'COAST' to word_tab.
append 'COATE' to word_tab.
append 'COATI' to word_tab.
append 'COATS' to word_tab.
append 'COBBS' to word_tab.
append 'COBBY' to word_tab.
append 'COBIA' to word_tab.
append 'COBLE' to word_tab.
append 'COBRA' to word_tab.
append 'COBZA' to word_tab.
append 'COCAS' to word_tab.
append 'COCCI' to word_tab.
append 'COCCO' to word_tab.
append 'COCKS' to word_tab.
append 'COCKY' to word_tab.
append 'COCOA' to word_tab.
append 'COCOS' to word_tab.
append 'CODAS' to word_tab.
append 'CODEC' to word_tab.
append 'CODED' to word_tab.
append 'CODEN' to word_tab.
append 'CODER' to word_tab.
append 'CODES' to word_tab.
append 'CODEX' to word_tab.
append 'CODON' to word_tab.
append 'COEDS' to word_tab.
append 'COFFS' to word_tab.
append 'COGIE' to word_tab.
append 'COGON' to word_tab.
append 'COGUE' to word_tab.
append 'COHAB' to word_tab.
append 'COHEN' to word_tab.
append 'COHOE' to word_tab.
append 'COHOG' to word_tab.
append 'COHOS' to word_tab.
append 'COIFS' to word_tab.
append 'COIGN' to word_tab.
append 'COILS' to word_tab.
append 'COINS' to word_tab.
append 'COIRS' to word_tab.
append 'COITS' to word_tab.
append 'COKED' to word_tab.
append 'COKES' to word_tab.
append 'COLAS' to word_tab.
append 'COLBY' to word_tab.
append 'COLDS' to word_tab.
append 'COLED' to word_tab.
append 'COLES' to word_tab.
append 'COLEY' to word_tab.
append 'COLIC' to word_tab.
append 'COLIN' to word_tab.
append 'COLLS' to word_tab.
append 'COLLY' to word_tab.
append 'COLOG' to word_tab.
append 'COLON' to word_tab.
append 'COLOR' to word_tab.
append 'COLTS' to word_tab.
append 'COLZA' to word_tab.
append 'COMAE' to word_tab.
append 'COMAL' to word_tab.
append 'COMAS' to word_tab.
append 'COMBE' to word_tab.
append 'COMBI' to word_tab.
append 'COMBO' to word_tab.
append 'COMBS' to word_tab.
append 'COMBY' to word_tab.
append 'COMER' to word_tab.
append 'COMES' to word_tab.
append 'COMET' to word_tab.
append 'COMFY' to word_tab.
append 'COMIC' to word_tab.
append 'COMIX' to word_tab.
append 'COMMA' to word_tab.
append 'COMMO' to word_tab.
append 'COMMS' to word_tab.
append 'COMMY' to word_tab.
append 'COMPO' to word_tab.
append 'COMPS' to word_tab.
append 'COMPT' to word_tab.
append 'COMTE' to word_tab.
append 'COMUS' to word_tab.
append 'CONCH' to word_tab.
append 'CONDO' to word_tab.
append 'CONED' to word_tab.
append 'CONES' to word_tab.
append 'CONEY' to word_tab.
append 'CONFS' to word_tab.
append 'CONGA' to word_tab.
append 'CONGE' to word_tab.
append 'CONGO' to word_tab.
append 'CONIA' to word_tab.
append 'CONIC' to word_tab.
append 'CONIN' to word_tab.
append 'CONKS' to word_tab.
append 'CONKY' to word_tab.
append 'CONNE' to word_tab.
append 'CONNS' to word_tab.
append 'CONTE' to word_tab.
append 'CONTO' to word_tab.
append 'CONUS' to word_tab.
append 'CONVO' to word_tab.
append 'COOCH' to word_tab.
append 'COOED' to word_tab.
append 'COOEE' to word_tab.
append 'COOER' to word_tab.
append 'COOEY' to word_tab.
append 'COOFS' to word_tab.
append 'COOKS' to word_tab.
append 'COOKY' to word_tab.
append 'COOLS' to word_tab.
append 'COOMB' to word_tab.
append 'COOMS' to word_tab.
append 'COOMY' to word_tab.
append 'COONS' to word_tab.
append 'COOPS' to word_tab.
append 'COOPT' to word_tab.
append 'COOST' to word_tab.
append 'COOTS' to word_tab.
append 'COOZE' to word_tab.
append 'COPAL' to word_tab.
append 'COPAY' to word_tab.
append 'COPED' to word_tab.
append 'COPEN' to word_tab.
append 'COPER' to word_tab.
append 'COPES' to word_tab.
append 'COPPY' to word_tab.
append 'COPRA' to word_tab.
append 'COPSE' to word_tab.
append 'COPSY' to word_tab.
append 'COQUI' to word_tab.
append 'CORAL' to word_tab.
append 'CORAM' to word_tab.
append 'CORBE' to word_tab.
append 'CORBY' to word_tab.
append 'CORDS' to word_tab.
append 'CORED' to word_tab.
append 'CORER' to word_tab.
append 'CORES' to word_tab.
append 'COREY' to word_tab.
append 'CORGI' to word_tab.
append 'CORIA' to word_tab.
append 'CORKS' to word_tab.
append 'CORKY' to word_tab.
append 'CORMS' to word_tab.
append 'CORNI' to word_tab.
append 'CORNO' to word_tab.
append 'CORNS' to word_tab.
append 'CORNU' to word_tab.
append 'CORNY' to word_tab.
append 'CORPS' to word_tab.
append 'CORSE' to word_tab.
append 'CORSO' to word_tab.
append 'COSEC' to word_tab.
append 'COSED' to word_tab.
append 'COSES' to word_tab.
append 'COSET' to word_tab.
append 'COSEY' to word_tab.
append 'COSIE' to word_tab.
append 'COSTA' to word_tab.
append 'COSTE' to word_tab.
append 'COSTS' to word_tab.
append 'COTAN' to word_tab.
append 'COTED' to word_tab.
append 'COTES' to word_tab.
append 'COTHS' to word_tab.
append 'COTTA' to word_tab.
append 'COTTS' to word_tab.
append 'COUCH' to word_tab.
append 'COUDE' to word_tab.
append 'COUGH' to word_tab.
append 'COULD' to word_tab.
append 'COUNT' to word_tab.
append 'COUPE' to word_tab.
append 'COUPS' to word_tab.
append 'COURB' to word_tab.
append 'COURD' to word_tab.
append 'COURE' to word_tab.
append 'COURS' to word_tab.
append 'COURT' to word_tab.
append 'COUTA' to word_tab.
append 'COUTH' to word_tab.
append 'COVED' to word_tab.
append 'COVEN' to word_tab.
append 'COVER' to word_tab.
append 'COVES' to word_tab.
append 'COVET' to word_tab.
append 'COVEY' to word_tab.
append 'COVIN' to word_tab.
append 'COWAL' to word_tab.
append 'COWAN' to word_tab.
append 'COWED' to word_tab.
append 'COWER' to word_tab.
append 'COWKS' to word_tab.
append 'COWLS' to word_tab.
append 'COWPS' to word_tab.
append 'COWRY' to word_tab.
append 'COXAE' to word_tab.
append 'COXAL' to word_tab.
append 'COXED' to word_tab.
append 'COXES' to word_tab.
append 'COXIB' to word_tab.
append 'COYAU' to word_tab.
append 'COYED' to word_tab.
append 'COYER' to word_tab.
append 'COYLY' to word_tab.
append 'COYPU' to word_tab.
append 'COZED' to word_tab.
append 'COZEN' to word_tab.
append 'COZES' to word_tab.
append 'COZEY' to word_tab.
append 'COZIE' to word_tab.
append 'CRAAL' to word_tab.
append 'CRABS' to word_tab.
append 'CRACK' to word_tab.
append 'CRAFT' to word_tab.
append 'CRAGS' to word_tab.
append 'CRAIC' to word_tab.
append 'CRAIG' to word_tab.
append 'CRAKE' to word_tab.
append 'CRAME' to word_tab.
append 'CRAMP' to word_tab.
append 'CRAMS' to word_tab.
append 'CRANE' to word_tab.
append 'CRANK' to word_tab.
append 'CRANS' to word_tab.
append 'CRAPE' to word_tab.
append 'CRAPS' to word_tab.
append 'CRAPY' to word_tab.
append 'CRARE' to word_tab.
append 'CRASH' to word_tab.
append 'CRASS' to word_tab.
append 'CRATE' to word_tab.
append 'CRAVE' to word_tab.
append 'CRAWL' to word_tab.
append 'CRAWS' to word_tab.
append 'CRAYS' to word_tab.
append 'CRAZE' to word_tab.
append 'CRAZY' to word_tab.
append 'CREAK' to word_tab.
append 'CREAM' to word_tab.
append 'CREDO' to word_tab.
append 'CREDS' to word_tab.
append 'CREED' to word_tab.
append 'CREEK' to word_tab.
append 'CREEL' to word_tab.
append 'CREEP' to word_tab.
append 'CREES' to word_tab.
append 'CREME' to word_tab.
append 'CREMS' to word_tab.
append 'CRENA' to word_tab.
append 'CREPE' to word_tab.
append 'CREPS' to word_tab.
append 'CREPT' to word_tab.
append 'CREPY' to word_tab.
append 'CRESS' to word_tab.
append 'CREST' to word_tab.
append 'CREWE' to word_tab.
append 'CREWS' to word_tab.
append 'CRIAS' to word_tab.
append 'CRIBS' to word_tab.
append 'CRICK' to word_tab.
append 'CRIED' to word_tab.
append 'CRIER' to word_tab.
append 'CRIES' to word_tab.
append 'CRIME' to word_tab.
append 'CRIMP' to word_tab.
append 'CRIMS' to word_tab.
append 'CRINE' to word_tab.
append 'CRIOS' to word_tab.
append 'CRIPE' to word_tab.
append 'CRISE' to word_tab.
append 'CRISP' to word_tab.
append 'CRITH' to word_tab.
append 'CRITS' to word_tab.
append 'CROAK' to word_tab.
append 'CROCI' to word_tab.
append 'CROCK' to word_tab.
append 'CROCS' to word_tab.
append 'CROFT' to word_tab.
append 'CROGS' to word_tab.
append 'CROMB' to word_tab.
append 'CROME' to word_tab.
append 'CRONE' to word_tab.
append 'CRONK' to word_tab.
append 'CRONS' to word_tab.
append 'CRONY' to word_tab.
append 'CROOK' to word_tab.
append 'CROOL' to word_tab.
append 'CROON' to word_tab.
append 'CROPS' to word_tab.
append 'CRORE' to word_tab.
append 'CROSS' to word_tab.
append 'CROST' to word_tab.
append 'CROUP' to word_tab.
append 'CROUT' to word_tab.
append 'CROWD' to word_tab.
append 'CROWN' to word_tab.
append 'CROWS' to word_tab.
append 'CROZE' to word_tab.
append 'CRUCK' to word_tab.
append 'CRUDE' to word_tab.
append 'CRUDO' to word_tab.
append 'CRUDS' to word_tab.
append 'CRUDY' to word_tab.
append 'CRUEL' to word_tab.
append 'CRUES' to word_tab.
append 'CRUET' to word_tab.
append 'CRUFT' to word_tab.
append 'CRUMB' to word_tab.
append 'CRUMP' to word_tab.
append 'CRUNK' to word_tab.
append 'CRUOR' to word_tab.
append 'CRURA' to word_tab.
append 'CRUSE' to word_tab.
append 'CRUSH' to word_tab.
append 'CRUST' to word_tab.
append 'CRUSY' to word_tab.
append 'CRUVE' to word_tab.
append 'CRWTH' to word_tab.
append 'CRYER' to word_tab.
append 'CRYPT' to word_tab.
append 'CTENE' to word_tab.
append 'CUBBY' to word_tab.
append 'CUBEB' to word_tab.
append 'CUBED' to word_tab.
append 'CUBER' to word_tab.
append 'CUBES' to word_tab.
append 'CUBIC' to word_tab.
append 'CUBIT' to word_tab.
append 'CUDDY' to word_tab.
append 'CUFFO' to word_tab.
append 'CUFFS' to word_tab.
append 'CUIFS' to word_tab.
append 'CUING' to word_tab.
append 'CUISH' to word_tab.
append 'CUITS' to word_tab.
append 'CUKES' to word_tab.
append 'CULCH' to word_tab.
append 'CULET' to word_tab.
append 'CULEX' to word_tab.
append 'CULLS' to word_tab.
append 'CULLY' to word_tab.
append 'CULMS' to word_tab.
append 'CULPA' to word_tab.
append 'CULTI' to word_tab.
append 'CULTS' to word_tab.
append 'CULTY' to word_tab.
append 'CUMEC' to word_tab.
append 'CUMIN' to word_tab.
append 'CUNDY' to word_tab.
append 'CUNEI' to word_tab.
append 'CUNIT' to word_tab.
append 'CUNTS' to word_tab.
append 'CUPEL' to word_tab.
append 'CUPID' to word_tab.
append 'CUPPA' to word_tab.
append 'CUPPY' to word_tab.
append 'CURAT' to word_tab.
append 'CURBS' to word_tab.
append 'CURCH' to word_tab.
append 'CURDS' to word_tab.
append 'CURDY' to word_tab.
append 'CURED' to word_tab.
append 'CURER' to word_tab.
append 'CURES' to word_tab.
append 'CURET' to word_tab.
append 'CURFS' to word_tab.
append 'CURIA' to word_tab.
append 'CURIE' to word_tab.
append 'CURIO' to word_tab.
append 'CURLI' to word_tab.
append 'CURLS' to word_tab.
append 'CURLY' to word_tab.
append 'CURNS' to word_tab.
append 'CURNY' to word_tab.
append 'CURRS' to word_tab.
append 'CURRY' to word_tab.
append 'CURSE' to word_tab.
append 'CURSI' to word_tab.
append 'CURST' to word_tab.
append 'CURVE' to word_tab.
append 'CURVY' to word_tab.
append 'CUSEC' to word_tab.
append 'CUSHY' to word_tab.
append 'CUSKS' to word_tab.
append 'CUSPS' to word_tab.
append 'CUSPY' to word_tab.
append 'CUSSO' to word_tab.
append 'CUSUM' to word_tab.
append 'CUTCH' to word_tab.
append 'CUTER' to word_tab.
append 'CUTES' to word_tab.
append 'CUTEY' to word_tab.
append 'CUTIE' to word_tab.
append 'CUTIN' to word_tab.
append 'CUTIS' to word_tab.
append 'CUTTO' to word_tab.
append 'CUTTY' to word_tab.
append 'CUTUP' to word_tab.
append 'CUVEE' to word_tab.
append 'CUZES' to word_tab.
append 'CWTCH' to word_tab.
append 'CYANO' to word_tab.
append 'CYANS' to word_tab.
append 'CYBER' to word_tab.
append 'CYCAD' to word_tab.
append 'CYCAS' to word_tab.
append 'CYCLE' to word_tab.
append 'CYCLO' to word_tab.
append 'CYDER' to word_tab.
append 'CYLIX' to word_tab.
append 'CYMAE' to word_tab.
append 'CYMAR' to word_tab.
append 'CYMAS' to word_tab.
append 'CYMES' to word_tab.
append 'CYMOL' to word_tab.
append 'CYNIC' to word_tab.
append 'CYSTS' to word_tab.
append 'CYTES' to word_tab.
append 'CYTON' to word_tab.
append 'CZARS' to word_tab.
append 'DAALS' to word_tab.
append 'DABBA' to word_tab.
append 'DACES' to word_tab.
append 'DACHA' to word_tab.
append 'DACKS' to word_tab.
append 'DADAH' to word_tab.
append 'DADAS' to word_tab.
append 'DADDY' to word_tab.
append 'DADOS' to word_tab.
append 'DAFFS' to word_tab.
append 'DAFFY' to word_tab.
append 'DAGGA' to word_tab.
append 'DAGGY' to word_tab.
append 'DAHLS' to word_tab.
append 'DAIKO' to word_tab.
append 'DAILY' to word_tab.
append 'DAINE' to word_tab.
append 'DAINT' to word_tab.
append 'DAIRY' to word_tab.
append 'DAISY' to word_tab.
append 'DAKER' to word_tab.
append 'DALED' to word_tab.
append 'DALES' to word_tab.
append 'DALIS' to word_tab.
append 'DALLE' to word_tab.
append 'DALLY' to word_tab.
append 'DALTS' to word_tab.
append 'DAMAN' to word_tab.
append 'DAMAR' to word_tab.
append 'DAMES' to word_tab.
append 'DAMME' to word_tab.
append 'DAMNS' to word_tab.
append 'DAMPS' to word_tab.
append 'DAMPY' to word_tab.
append 'DANCE' to word_tab.
append 'DANCY' to word_tab.
append 'DANDY' to word_tab.
append 'DANGS' to word_tab.
append 'DANIO' to word_tab.
append 'DANKS' to word_tab.
append 'DANNY' to word_tab.
append 'DANTS' to word_tab.
append 'DARAF' to word_tab.
append 'DARBS' to word_tab.
append 'DARCY' to word_tab.
append 'DARED' to word_tab.
append 'DARER' to word_tab.
append 'DARES' to word_tab.
append 'DARGA' to word_tab.
append 'DARGS' to word_tab.
append 'DARIC' to word_tab.
append 'DARIS' to word_tab.
append 'DARKS' to word_tab.
append 'DARNS' to word_tab.
append 'DARRE' to word_tab.
append 'DARTS' to word_tab.
append 'DARZI' to word_tab.
append 'DASHI' to word_tab.
append 'DASHY' to word_tab.
append 'DATAL' to word_tab.
append 'DATED' to word_tab.
append 'DATER' to word_tab.
append 'DATES' to word_tab.
append 'DATOS' to word_tab.
append 'DATTO' to word_tab.
append 'DATUM' to word_tab.
append 'DAUBE' to word_tab.
append 'DAUBS' to word_tab.
append 'DAUBY' to word_tab.
append 'DAUDS' to word_tab.
append 'DAULT' to word_tab.
append 'DAUNT' to word_tab.
append 'DAURS' to word_tab.
append 'DAUTS' to word_tab.
append 'DAVEN' to word_tab.
append 'DAVIT' to word_tab.
append 'DAWAH' to word_tab.
append 'DAWDS' to word_tab.
append 'DAWED' to word_tab.
append 'DAWEN' to word_tab.
append 'DAWKS' to word_tab.
append 'DAWNS' to word_tab.
append 'DAWTS' to word_tab.
append 'DAYAN' to word_tab.
append 'DAYCH' to word_tab.
append 'DAYNT' to word_tab.
append 'DAZED' to word_tab.
append 'DAZER' to word_tab.
append 'DAZES' to word_tab.
append 'DEADS' to word_tab.
append 'DEAIR' to word_tab.
append 'DEALS' to word_tab.
append 'DEALT' to word_tab.
append 'DEANS' to word_tab.
append 'DEARE' to word_tab.
append 'DEARN' to word_tab.
append 'DEARS' to word_tab.
append 'DEARY' to word_tab.
append 'DEASH' to word_tab.
append 'DEATH' to word_tab.
append 'DEAVE' to word_tab.
append 'DEAWS' to word_tab.
append 'DEAWY' to word_tab.
append 'DEBAG' to word_tab.
append 'DEBAR' to word_tab.
append 'DEBBY' to word_tab.
append 'DEBEL' to word_tab.
append 'DEBES' to word_tab.
append 'DEBIT' to word_tab.
append 'DEBTS' to word_tab.
append 'DEBUD' to word_tab.
append 'DEBUG' to word_tab.
append 'DEBUR' to word_tab.
append 'DEBUS' to word_tab.
append 'DEBUT' to word_tab.
append 'DEBYE' to word_tab.
append 'DECAD' to word_tab.
append 'DECAF' to word_tab.
append 'DECAL' to word_tab.
append 'DECAN' to word_tab.
append 'DECAY' to word_tab.
append 'DECKO' to word_tab.
append 'DECKS' to word_tab.
append 'DECOR' to word_tab.
append 'DECOS' to word_tab.
append 'DECOY' to word_tab.
append 'DECRY' to word_tab.
append 'DEDAL' to word_tab.
append 'DEEDS' to word_tab.
append 'DEEDY' to word_tab.
append 'DEELY' to word_tab.
append 'DEEMS' to word_tab.
append 'DEENS' to word_tab.
append 'DEEPS' to word_tab.
append 'DEERE' to word_tab.
append 'DEERS' to word_tab.
append 'DEETS' to word_tab.
append 'DEEVE' to word_tab.
append 'DEEVS' to word_tab.
append 'DEFAT' to word_tab.
append 'DEFER' to word_tab.
append 'DEFFO' to word_tab.
append 'DEFIS' to word_tab.
append 'DEFOG' to word_tab.
append 'DEGAS' to word_tab.
append 'DEGUM' to word_tab.
append 'DEGUS' to word_tab.
append 'DEICE' to word_tab.
append 'DEIDS' to word_tab.
append 'DEIFY' to word_tab.
append 'DEIGN' to word_tab.
append 'DEILS' to word_tab.
append 'DEISM' to word_tab.
append 'DEIST' to word_tab.
append 'DEITY' to word_tab.
append 'DEKED' to word_tab.
append 'DEKES' to word_tab.
append 'DEKKO' to word_tab.
append 'DELAY' to word_tab.
append 'DELED' to word_tab.
append 'DELES' to word_tab.
append 'DELFS' to word_tab.
append 'DELFT' to word_tab.
append 'DELIS' to word_tab.
append 'DELLS' to word_tab.
append 'DELLY' to word_tab.
append 'DELOS' to word_tab.
append 'DELPH' to word_tab.
append 'DELTA' to word_tab.
append 'DELTS' to word_tab.
append 'DELVE' to word_tab.
append 'DEMAN' to word_tab.
append 'DEMES' to word_tab.
append 'DEMIC' to word_tab.
append 'DEMIT' to word_tab.
append 'DEMOB' to word_tab.
append 'DEMOI' to word_tab.
append 'DEMON' to word_tab.
append 'DEMOS' to word_tab.
append 'DEMPT' to word_tab.
append 'DEMUR' to word_tab.
append 'DENAR' to word_tab.
append 'DENAY' to word_tab.
append 'DENCH' to word_tab.
append 'DENES' to word_tab.
append 'DENET' to word_tab.
append 'DENIM' to word_tab.
append 'DENIS' to word_tab.
append 'DENSE' to word_tab.
append 'DENTS' to word_tab.
append 'DEOXY' to word_tab.
append 'DEPOT' to word_tab.
append 'DEPTH' to word_tab.
append 'DERAT' to word_tab.
append 'DERAY' to word_tab.
append 'DERBY' to word_tab.
append 'DERED' to word_tab.
append 'DERES' to word_tab.
append 'DERIG' to word_tab.
append 'DERMA' to word_tab.
append 'DERMS' to word_tab.
append 'DERNS' to word_tab.
append 'DERNY' to word_tab.
append 'DEROS' to word_tab.
append 'DERRO' to word_tab.
append 'DERRY' to word_tab.
append 'DERTH' to word_tab.
append 'DERVS' to word_tab.
append 'DESEX' to word_tab.
append 'DESHI' to word_tab.
append 'DESIS' to word_tab.
append 'DESKS' to word_tab.
append 'DESSE' to word_tab.
append 'DETER' to word_tab.
append 'DETOX' to word_tab.
append 'DEUCE' to word_tab.
append 'DEVAS' to word_tab.
append 'DEVEL' to word_tab.
append 'DEVIL' to word_tab.
append 'DEVIS' to word_tab.
append 'DEVON' to word_tab.
append 'DEVOS' to word_tab.
append 'DEVOT' to word_tab.
append 'DEWAN' to word_tab.
append 'DEWAR' to word_tab.
append 'DEWAX' to word_tab.
append 'DEWED' to word_tab.
append 'DEXES' to word_tab.
append 'DEXIE' to word_tab.
append 'DHABA' to word_tab.
append 'DHAKS' to word_tab.
append 'DHALS' to word_tab.
append 'DHIKR' to word_tab.
append 'DHOBI' to word_tab.
append 'DHOLE' to word_tab.
append 'DHOLL' to word_tab.
append 'DHOLS' to word_tab.
append 'DHOTI' to word_tab.
append 'DHOWS' to word_tab.
append 'DHUTI' to word_tab.
append 'DIACT' to word_tab.
append 'DIALS' to word_tab.
append 'DIANE' to word_tab.
append 'DIARY' to word_tab.
append 'DIAZO' to word_tab.
append 'DIBBS' to word_tab.
append 'DICED' to word_tab.
append 'DICER' to word_tab.
append 'DICES' to word_tab.
append 'DICEY' to word_tab.
append 'DICHT' to word_tab.
append 'DICKS' to word_tab.
append 'DICKY' to word_tab.
append 'DICOT' to word_tab.
append 'DICTA' to word_tab.
append 'DICTS' to word_tab.
append 'DICTY' to word_tab.
append 'DIDDY' to word_tab.
append 'DIDIE' to word_tab.
append 'DIDOS' to word_tab.
append 'DIDST' to word_tab.
append 'DIEBS' to word_tab.
append 'DIELS' to word_tab.
append 'DIENE' to word_tab.
append 'DIETS' to word_tab.
append 'DIFFS' to word_tab.
append 'DIGHT' to word_tab.
append 'DIGIT' to word_tab.
append 'DIKAS' to word_tab.
append 'DIKED' to word_tab.
append 'DIKER' to word_tab.
append 'DIKES' to word_tab.
append 'DILDO' to word_tab.
append 'DILLI' to word_tab.
append 'DILLS' to word_tab.
append 'DILLY' to word_tab.
append 'DIMBO' to word_tab.
append 'DIMER' to word_tab.
append 'DIMES' to word_tab.
append 'DIMLY' to word_tab.
append 'DIMPS' to word_tab.
append 'DINAR' to word_tab.
append 'DINED' to word_tab.
append 'DINER' to word_tab.
append 'DINES' to word_tab.
append 'DINGE' to word_tab.
append 'DINGO' to word_tab.
append 'DINGS' to word_tab.
append 'DINGY' to word_tab.
append 'DINIC' to word_tab.
append 'DINKS' to word_tab.
append 'DINKY' to word_tab.
append 'DINNA' to word_tab.
append 'DINOS' to word_tab.
append 'DINTS' to word_tab.
append 'DIODE' to word_tab.
append 'DIOLS' to word_tab.
append 'DIOTA' to word_tab.
append 'DIPPY' to word_tab.
append 'DIPSO' to word_tab.
append 'DIRAM' to word_tab.
append 'DIRER' to word_tab.
append 'DIRGE' to word_tab.
append 'DIRKE' to word_tab.
append 'DIRKS' to word_tab.
append 'DIRLS' to word_tab.
append 'DIRTS' to word_tab.
append 'DIRTY' to word_tab.
append 'DISAS' to word_tab.
append 'DISCI' to word_tab.
append 'DISCO' to word_tab.
append 'DISCS' to word_tab.
append 'DISHY' to word_tab.
append 'DISKS' to word_tab.
append 'DISME' to word_tab.
append 'DITAL' to word_tab.
append 'DITAS' to word_tab.
append 'DITCH' to word_tab.
append 'DITED' to word_tab.
append 'DITES' to word_tab.
append 'DITSY' to word_tab.
append 'DITTO' to word_tab.
append 'DITTS' to word_tab.
append 'DITTY' to word_tab.
append 'DITZY' to word_tab.
append 'DIVAN' to word_tab.
append 'DIVAS' to word_tab.
append 'DIVED' to word_tab.
append 'DIVER' to word_tab.
append 'DIVES' to word_tab.
append 'DIVIS' to word_tab.
append 'DIVNA' to word_tab.
append 'DIVOS' to word_tab.
append 'DIVOT' to word_tab.
append 'DIVVY' to word_tab.
append 'DIWAN' to word_tab.
append 'DIXIE' to word_tab.
append 'DIXIT' to word_tab.
append 'DIYAS' to word_tab.
append 'DIZEN' to word_tab.
append 'DIZZY' to word_tab.
append 'DJINN' to word_tab.
append 'DJINS' to word_tab.
append 'DOABS' to word_tab.
append 'DOATS' to word_tab.
append 'DOBBY' to word_tab.
append 'DOBES' to word_tab.
append 'DOBIE' to word_tab.
append 'DOBLA' to word_tab.
append 'DOBRA' to word_tab.
append 'DOBRO' to word_tab.
append 'DOCHT' to word_tab.
append 'DOCKS' to word_tab.
append 'DOCOS' to word_tab.
append 'DOCUS' to word_tab.
append 'DODDY' to word_tab.
append 'DODGE' to word_tab.
append 'DODGY' to word_tab.
append 'DODOS' to word_tab.
append 'DOEKS' to word_tab.
append 'DOERS' to word_tab.
append 'DOEST' to word_tab.
append 'DOETH' to word_tab.
append 'DOFFS' to word_tab.
append 'DOGES' to word_tab.
append 'DOGEY' to word_tab.
append 'DOGGO' to word_tab.
append 'DOGGY' to word_tab.
append 'DOGIE' to word_tab.
append 'DOGMA' to word_tab.
append 'DOHYO' to word_tab.
append 'DOILT' to word_tab.
append 'DOILY' to word_tab.
append 'DOING' to word_tab.
append 'DOITS' to word_tab.
append 'DOJOS' to word_tab.
append 'DOLCE' to word_tab.
append 'DOLCI' to word_tab.
append 'DOLED' to word_tab.
append 'DOLES' to word_tab.
append 'DOLIA' to word_tab.
append 'DOLLS' to word_tab.
append 'DOLLY' to word_tab.
append 'DOLMA' to word_tab.
append 'DOLOR' to word_tab.
append 'DOLOS' to word_tab.
append 'DOLTS' to word_tab.
append 'DOMAL' to word_tab.
append 'DOMED' to word_tab.
append 'DOMES' to word_tab.
append 'DOMIC' to word_tab.
append 'DONAH' to word_tab.
append 'DONAS' to word_tab.
append 'DONEE' to word_tab.
append 'DONER' to word_tab.
append 'DONGA' to word_tab.
append 'DONGS' to word_tab.
append 'DONKO' to word_tab.
append 'DONNA' to word_tab.
append 'DONNE' to word_tab.
append 'DONNY' to word_tab.
append 'DONOR' to word_tab.
append 'DONSY' to word_tab.
append 'DONUT' to word_tab.
append 'DOOBS' to word_tab.
append 'DOOCE' to word_tab.
append 'DOODY' to word_tab.
append 'DOOKS' to word_tab.
append 'DOOLE' to word_tab.
append 'DOOLS' to word_tab.
append 'DOOLY' to word_tab.
append 'DOOMS' to word_tab.
append 'DOOMY' to word_tab.
append 'DOONA' to word_tab.
append 'DOORN' to word_tab.
append 'DOORS' to word_tab.
append 'DOOZY' to word_tab.
append 'DOPAS' to word_tab.
append 'DOPED' to word_tab.
append 'DOPER' to word_tab.
append 'DOPES' to word_tab.
append 'DOPEY' to word_tab.
append 'DORAD' to word_tab.
append 'DORBA' to word_tab.
append 'DORBS' to word_tab.
append 'DOREE' to word_tab.
append 'DORES' to word_tab.
append 'DORIC' to word_tab.
append 'DORIS' to word_tab.
append 'DORKS' to word_tab.
append 'DORKY' to word_tab.
append 'DORMS' to word_tab.
append 'DORMY' to word_tab.
append 'DORPS' to word_tab.
append 'DORRS' to word_tab.
append 'DORSA' to word_tab.
append 'DORSE' to word_tab.
append 'DORTS' to word_tab.
append 'DORTY' to word_tab.
append 'DOSAI' to word_tab.
append 'DOSAS' to word_tab.
append 'DOSED' to word_tab.
append 'DOSEH' to word_tab.
append 'DOSER' to word_tab.
append 'DOSES' to word_tab.
append 'DOSHA' to word_tab.
append 'DOTAL' to word_tab.
append 'DOTED' to word_tab.
append 'DOTER' to word_tab.
append 'DOTES' to word_tab.
append 'DOTTY' to word_tab.
append 'DOUAR' to word_tab.
append 'DOUBT' to word_tab.
append 'DOUCE' to word_tab.
append 'DOUCS' to word_tab.
append 'DOUGH' to word_tab.
append 'DOUKS' to word_tab.
append 'DOULA' to word_tab.
append 'DOUMA' to word_tab.
append 'DOUMS' to word_tab.
append 'DOUPS' to word_tab.
append 'DOURA' to word_tab.
append 'DOUSE' to word_tab.
append 'DOUTS' to word_tab.
append 'DOVED' to word_tab.
append 'DOVEN' to word_tab.
append 'DOVER' to word_tab.
append 'DOVES' to word_tab.
append 'DOVIE' to word_tab.
append 'DOWAR' to word_tab.
append 'DOWDS' to word_tab.
append 'DOWDY' to word_tab.
append 'DOWED' to word_tab.
append 'DOWEL' to word_tab.
append 'DOWER' to word_tab.
append 'DOWIE' to word_tab.
append 'DOWLE' to word_tab.
append 'DOWLS' to word_tab.
append 'DOWLY' to word_tab.
append 'DOWNA' to word_tab.
append 'DOWNS' to word_tab.
append 'DOWNY' to word_tab.
append 'DOWPS' to word_tab.
append 'DOWRY' to word_tab.
append 'DOWSE' to word_tab.
append 'DOWTS' to word_tab.
append 'DOXED' to word_tab.
append 'DOXES' to word_tab.
append 'DOXIE' to word_tab.
append 'DOYEN' to word_tab.
append 'DOYLY' to word_tab.
append 'DOZED' to word_tab.
append 'DOZEN' to word_tab.
append 'DOZER' to word_tab.
append 'DOZES' to word_tab.
append 'DRABS' to word_tab.
append 'DRACK' to word_tab.
append 'DRACO' to word_tab.
append 'DRAFF' to word_tab.
append 'DRAFT' to word_tab.
append 'DRAGS' to word_tab.
append 'DRAIL' to word_tab.
append 'DRAIN' to word_tab.
append 'DRAKE' to word_tab.
append 'DRAMA' to word_tab.
append 'DRAMS' to word_tab.
append 'DRANK' to word_tab.
append 'DRANT' to word_tab.
append 'DRAPE' to word_tab.
append 'DRAPS' to word_tab.
append 'DRATS' to word_tab.
append 'DRAVE' to word_tab.
append 'DRAWL' to word_tab.
append 'DRAWN' to word_tab.
append 'DRAWS' to word_tab.
append 'DRAYS' to word_tab.
append 'DREAD' to word_tab.
append 'DREAM' to word_tab.
append 'DREAR' to word_tab.
append 'DRECK' to word_tab.
append 'DREED' to word_tab.
append 'DREER' to word_tab.
append 'DREES' to word_tab.
append 'DREGS' to word_tab.
append 'DREKS' to word_tab.
append 'DRENT' to word_tab.
append 'DRERE' to word_tab.
append 'DRESS' to word_tab.
append 'DREST' to word_tab.
append 'DREYS' to word_tab.
append 'DRIBS' to word_tab.
append 'DRICE' to word_tab.
append 'DRIED' to word_tab.
append 'DRIER' to word_tab.
append 'DRIES' to word_tab.
append 'DRIFT' to word_tab.
append 'DRILL' to word_tab.
append 'DRILY' to word_tab.
append 'DRINK' to word_tab.
append 'DRIPS' to word_tab.
append 'DRIPT' to word_tab.
append 'DRIVE' to word_tab.
append 'DROID' to word_tab.
append 'DROIL' to word_tab.
append 'DROIT' to word_tab.
append 'DROKE' to word_tab.
append 'DROLE' to word_tab.
append 'DROLL' to word_tab.
append 'DROME' to word_tab.
append 'DRONE' to word_tab.
append 'DRONY' to word_tab.
append 'DROOB' to word_tab.
append 'DROOG' to word_tab.
append 'DROOK' to word_tab.
append 'DROOL' to word_tab.
append 'DROOP' to word_tab.
append 'DROPS' to word_tab.
append 'DROPT' to word_tab.
append 'DROSS' to word_tab.
append 'DROUK' to word_tab.
append 'DROVE' to word_tab.
append 'DROWN' to word_tab.
append 'DROWS' to word_tab.
append 'DRUBS' to word_tab.
append 'DRUGS' to word_tab.
append 'DRUID' to word_tab.
append 'DRUMS' to word_tab.
append 'DRUNK' to word_tab.
append 'DRUPE' to word_tab.
append 'DRUSE' to word_tab.
append 'DRUSY' to word_tab.
append 'DRUXY' to word_tab.
append 'DRYAD' to word_tab.
append 'DRYAS' to word_tab.
append 'DRYER' to word_tab.
append 'DRYLY' to word_tab.
append 'DSOBO' to word_tab.
append 'DSOMO' to word_tab.
append 'DUADS' to word_tab.
append 'DUALS' to word_tab.
append 'DUANS' to word_tab.
append 'DUARS' to word_tab.
append 'DUBBO' to word_tab.
append 'DUCAL' to word_tab.
append 'DUCAT' to word_tab.
append 'DUCES' to word_tab.
append 'DUCHY' to word_tab.
append 'DUCKS' to word_tab.
append 'DUCKY' to word_tab.
append 'DUCTS' to word_tab.
append 'DUDDY' to word_tab.
append 'DUDED' to word_tab.
append 'DUDES' to word_tab.
append 'DUELS' to word_tab.
append 'DUETS' to word_tab.
append 'DUETT' to word_tab.
append 'DUFFS' to word_tab.
append 'DUFUS' to word_tab.
append 'DUING' to word_tab.
append 'DUITS' to word_tab.
append 'DUKAS' to word_tab.
append 'DUKED' to word_tab.
append 'DUKES' to word_tab.
append 'DUKKA' to word_tab.
append 'DULCE' to word_tab.
append 'DULES' to word_tab.
append 'DULIA' to word_tab.
append 'DULLS' to word_tab.
append 'DULLY' to word_tab.
append 'DULSE' to word_tab.
append 'DUMAS' to word_tab.
append 'DUMBO' to word_tab.
append 'DUMBS' to word_tab.
append 'DUMKA' to word_tab.
append 'DUMKY' to word_tab.
append 'DUMMY' to word_tab.
append 'DUMPS' to word_tab.
append 'DUMPY' to word_tab.
append 'DUNAM' to word_tab.
append 'DUNCE' to word_tab.
append 'DUNCH' to word_tab.
append 'DUNES' to word_tab.
append 'DUNGS' to word_tab.
append 'DUNGY' to word_tab.
append 'DUNKS' to word_tab.
append 'DUNNO' to word_tab.
append 'DUNNY' to word_tab.
append 'DUNSH' to word_tab.
append 'DUNTS' to word_tab.
append 'DUOMI' to word_tab.
append 'DUOMO' to word_tab.
append 'DUPED' to word_tab.
append 'DUPER' to word_tab.
append 'DUPES' to word_tab.
append 'DUPLE' to word_tab.
append 'DUPLY' to word_tab.
append 'DUPPY' to word_tab.
append 'DURAL' to word_tab.
append 'DURAS' to word_tab.
append 'DURED' to word_tab.
append 'DURES' to word_tab.
append 'DURGY' to word_tab.
append 'DURNS' to word_tab.
append 'DUROC' to word_tab.
append 'DUROS' to word_tab.
append 'DUROY' to word_tab.
append 'DURRA' to word_tab.
append 'DURRS' to word_tab.
append 'DURRY' to word_tab.
append 'DURST' to word_tab.
append 'DURUM' to word_tab.
append 'DURZI' to word_tab.
append 'DUSKS' to word_tab.
append 'DUSKY' to word_tab.
append 'DUSTS' to word_tab.
append 'DUSTY' to word_tab.
append 'DUTCH' to word_tab.
append 'DUVET' to word_tab.
append 'DUXES' to word_tab.
append 'DWAAL' to word_tab.
append 'DWALE' to word_tab.
append 'DWALM' to word_tab.
append 'DWAMS' to word_tab.
append 'DWANG' to word_tab.
append 'DWARF' to word_tab.
append 'DWAUM' to word_tab.
append 'DWEEB' to word_tab.
append 'DWELL' to word_tab.
append 'DWELT' to word_tab.
append 'DWILE' to word_tab.
append 'DWINE' to word_tab.
append 'DYADS' to word_tab.
append 'DYERS' to word_tab.
append 'DYING' to word_tab.
append 'DYKED' to word_tab.
append 'DYKES' to word_tab.
append 'DYKON' to word_tab.
append 'DYNEL' to word_tab.
append 'DYNES' to word_tab.
append 'DZHOS' to word_tab.
append 'EAGER' to word_tab.
append 'EAGLE' to word_tab.
append 'EAGRE' to word_tab.
append 'EALED' to word_tab.
append 'EALES' to word_tab.
append 'EANED' to word_tab.
append 'EARDS' to word_tab.
append 'EARED' to word_tab.
append 'EARLS' to word_tab.
append 'EARLY' to word_tab.
append 'EARNS' to word_tab.
append 'EARNT' to word_tab.
append 'EARST' to word_tab.
append 'EARTH' to word_tab.
append 'EASED' to word_tab.
append 'EASEL' to word_tab.
append 'EASER' to word_tab.
append 'EASES' to word_tab.
append 'EASLE' to word_tab.
append 'EASTS' to word_tab.
append 'EATEN' to word_tab.
append 'EATER' to word_tab.
append 'EATHE' to word_tab.
append 'EAVED' to word_tab.
append 'EAVES' to word_tab.
append 'EBBED' to word_tab.
append 'EBBET' to word_tab.
append 'EBONS' to word_tab.
append 'EBONY' to word_tab.
append 'EBOOK' to word_tab.
append 'ECADS' to word_tab.
append 'ECHED' to word_tab.
append 'ECHES' to word_tab.
append 'ECHOS' to word_tab.
append 'ECLAT' to word_tab.
append 'ECRUS' to word_tab.
append 'EDEMA' to word_tab.
append 'EDGED' to word_tab.
append 'EDGER' to word_tab.
append 'EDGES' to word_tab.
append 'EDICT' to word_tab.
append 'EDIFY' to word_tab.
append 'EDILE' to word_tab.
append 'EDITS' to word_tab.
append 'EDUCE' to word_tab.
append 'EDUCT' to word_tab.
append 'EEJIT' to word_tab.
append 'EENSY' to word_tab.
append 'EERIE' to word_tab.
append 'EEVEN' to word_tab.
append 'EEVNS' to word_tab.
append 'EFFED' to word_tab.
append 'EGADS' to word_tab.
append 'EGERS' to word_tab.
append 'EGEST' to word_tab.
append 'EGGAR' to word_tab.
append 'EGGED' to word_tab.
append 'EGGER' to word_tab.
append 'EGMAS' to word_tab.
append 'EGRET' to word_tab.
append 'EHING' to word_tab.
append 'EIDER' to word_tab.
append 'EIDOS' to word_tab.
append 'EIGHT' to word_tab.
append 'EIGNE' to word_tab.
append 'EIKED' to word_tab.
append 'EIKON' to word_tab.
append 'EILDS' to word_tab.
append 'EISEL' to word_tab.
append 'EJECT' to word_tab.
append 'EJIDO' to word_tab.
append 'EKING' to word_tab.
append 'EKKAS' to word_tab.
append 'ELAIN' to word_tab.
append 'ELAND' to word_tab.
append 'ELANS' to word_tab.
append 'ELATE' to word_tab.
append 'ELBOW' to word_tab.
append 'ELCHI' to word_tab.
append 'ELDER' to word_tab.
append 'ELDIN' to word_tab.
append 'ELECT' to word_tab.
append 'ELEGY' to word_tab.
append 'ELEMI' to word_tab.
append 'ELFED' to word_tab.
append 'ELFIN' to word_tab.
append 'ELIAD' to word_tab.
append 'ELIDE' to word_tab.
append 'ELINT' to word_tab.
append 'ELITE' to word_tab.
append 'ELMEN' to word_tab.
append 'ELOGE' to word_tab.
append 'ELOGY' to word_tab.
append 'ELOIN' to word_tab.
append 'ELOPE' to word_tab.
append 'ELOPS' to word_tab.
append 'ELPEE' to word_tab.
append 'ELSIN' to word_tab.
append 'ELUDE' to word_tab.
append 'ELUTE' to word_tab.
append 'ELVAN' to word_tab.
append 'ELVEN' to word_tab.
append 'ELVER' to word_tab.
append 'ELVES' to word_tab.
append 'EMACS' to word_tab.
append 'EMAIL' to word_tab.
append 'EMBAR' to word_tab.
append 'EMBAY' to word_tab.
append 'EMBED' to word_tab.
append 'EMBER' to word_tab.
append 'EMBOG' to word_tab.
append 'EMBOW' to word_tab.
append 'EMBOX' to word_tab.
append 'EMBUS' to word_tab.
append 'EMCEE' to word_tab.
append 'EMEER' to word_tab.
append 'EMEND' to word_tab.
append 'EMERG' to word_tab.
append 'EMERY' to word_tab.
append 'EMEUS' to word_tab.
append 'EMICS' to word_tab.
append 'EMIRS' to word_tab.
append 'EMITS' to word_tab.
append 'EMMAS' to word_tab.
append 'EMMER' to word_tab.
append 'EMMET' to word_tab.
append 'EMMEW' to word_tab.
append 'EMMYS' to word_tab.
append 'EMOJI' to word_tab.
append 'EMONG' to word_tab.
append 'EMOTE' to word_tab.
append 'EMOVE' to word_tab.
append 'EMPTS' to word_tab.
append 'EMPTY' to word_tab.
append 'EMULE' to word_tab.
append 'EMURE' to word_tab.
append 'EMYDE' to word_tab.
append 'EMYDS' to word_tab.
append 'ENACT' to word_tab.
append 'ENARM' to word_tab.
append 'ENATE' to word_tab.
append 'ENDED' to word_tab.
append 'ENDER' to word_tab.
append 'ENDEW' to word_tab.
append 'ENDOW' to word_tab.
append 'ENDUE' to word_tab.
append 'ENEMA' to word_tab.
append 'ENEMY' to word_tab.
append 'ENEWS' to word_tab.
append 'ENFIX' to word_tab.
append 'ENIAC' to word_tab.
append 'ENJOY' to word_tab.
append 'ENLIT' to word_tab.
append 'ENMEW' to word_tab.
append 'ENNOG' to word_tab.
append 'ENNUI' to word_tab.
append 'ENOKI' to word_tab.
append 'ENOLS' to word_tab.
append 'ENORM' to word_tab.
append 'ENOWS' to word_tab.
append 'ENROL' to word_tab.
append 'ENSEW' to word_tab.
append 'ENSKY' to word_tab.
append 'ENSUE' to word_tab.
append 'ENTER' to word_tab.
append 'ENTIA' to word_tab.
append 'ENTRY' to word_tab.
append 'ENURE' to word_tab.
append 'ENURN' to word_tab.
append 'ENVOI' to word_tab.
append 'ENVOY' to word_tab.
append 'ENZYM' to word_tab.
append 'EORLS' to word_tab.
append 'EOSIN' to word_tab.
append 'EPACT' to word_tab.
append 'EPEES' to word_tab.
append 'EPHAH' to word_tab.
append 'EPHAS' to word_tab.
append 'EPHOD' to word_tab.
append 'EPHOR' to word_tab.
append 'EPICS' to word_tab.
append 'EPOCH' to word_tab.
append 'EPODE' to word_tab.
append 'EPOPT' to word_tab.
append 'EPOXY' to word_tab.
append 'EPRIS' to word_tab.
append 'EQUAL' to word_tab.
append 'EQUES' to word_tab.
append 'EQUID' to word_tab.
append 'EQUIP' to word_tab.
append 'ERASE' to word_tab.
append 'ERBIA' to word_tab.
append 'ERECT' to word_tab.
append 'EREVS' to word_tab.
append 'ERGON' to word_tab.
append 'ERGOS' to word_tab.
append 'ERGOT' to word_tab.
append 'ERHUS' to word_tab.
append 'ERICA' to word_tab.
append 'ERICK' to word_tab.
append 'ERICS' to word_tab.
append 'ERING' to word_tab.
append 'ERNED' to word_tab.
append 'ERNES' to word_tab.
append 'ERODE' to word_tab.
append 'EROSE' to word_tab.
append 'ERRED' to word_tab.
append 'ERROR' to word_tab.
append 'ERSES' to word_tab.
append 'ERUCT' to word_tab.
append 'ERUGO' to word_tab.
append 'ERUPT' to word_tab.
append 'ERUVS' to word_tab.
append 'ERVEN' to word_tab.
append 'ERVIL' to word_tab.
append 'ESCAR' to word_tab.
append 'ESCOT' to word_tab.
append 'ESILE' to word_tab.
append 'ESKAR' to word_tab.
append 'ESKER' to word_tab.
append 'ESNES' to word_tab.
append 'ESSAY' to word_tab.
append 'ESSES' to word_tab.
append 'ESTER' to word_tab.
append 'ESTOC' to word_tab.
append 'ESTOP' to word_tab.
append 'ESTRO' to word_tab.
append 'ETAGE' to word_tab.
append 'ETAPE' to word_tab.
append 'ETATS' to word_tab.
append 'ETENS' to word_tab.
append 'ETHAL' to word_tab.
append 'ETHER' to word_tab.
append 'ETHIC' to word_tab.
append 'ETHNE' to word_tab.
append 'ETHOS' to word_tab.
append 'ETHYL' to word_tab.
append 'ETICS' to word_tab.
append 'ETNAS' to word_tab.
append 'ETTIN' to word_tab.
append 'ETTLE' to word_tab.
append 'ETUDE' to word_tab.
append 'ETUIS' to word_tab.
append 'ETWEE' to word_tab.
append 'ETYMA' to word_tab.
append 'EUGHS' to word_tab.
append 'EUKED' to word_tab.
append 'EUPAD' to word_tab.
append 'EUROS' to word_tab.
append 'EUSOL' to word_tab.
append 'EVADE' to word_tab.
append 'EVENS' to word_tab.
append 'EVENT' to word_tab.
append 'EVERT' to word_tab.
append 'EVERY' to word_tab.
append 'EVETS' to word_tab.
append 'EVHOE' to word_tab.
append 'EVICT' to word_tab.
append 'EVILS' to word_tab.
append 'EVITE' to word_tab.
append 'EVOHE' to word_tab.
append 'EVOKE' to word_tab.
append 'EWERS' to word_tab.
append 'EWEST' to word_tab.
append 'EWHOW' to word_tab.
append 'EWKED' to word_tab.
append 'EXACT' to word_tab.
append 'EXALT' to word_tab.
append 'EXAMS' to word_tab.
append 'EXCEL' to word_tab.
append 'EXEAT' to word_tab.
append 'EXECS' to word_tab.
append 'EXEEM' to word_tab.
append 'EXEME' to word_tab.
append 'EXERT' to word_tab.
append 'EXFIL' to word_tab.
append 'EXIES' to word_tab.
append 'EXILE' to word_tab.
append 'EXINE' to word_tab.
append 'EXING' to word_tab.
append 'EXIST' to word_tab.
append 'EXITS' to word_tab.
append 'EXODE' to word_tab.
append 'EXOME' to word_tab.
append 'EXONS' to word_tab.
append 'EXPAT' to word_tab.
append 'EXPEL' to word_tab.
append 'EXPOS' to word_tab.
append 'EXTOL' to word_tab.
append 'EXTRA' to word_tab.
append 'EXUDE' to word_tab.
append 'EXULS' to word_tab.
append 'EXULT' to word_tab.
append 'EXURB' to word_tab.
append 'EYASS' to word_tab.
append 'EYERS' to word_tab.
append 'EYING' to word_tab.
append 'EYOTS' to word_tab.
append 'EYRAS' to word_tab.
append 'EYRES' to word_tab.
append 'EYRIE' to word_tab.
append 'EYRIR' to word_tab.
append 'EZINE' to word_tab.
append 'FABBY' to word_tab.
append 'FABLE' to word_tab.
append 'FACED' to word_tab.
append 'FACER' to word_tab.
append 'FACES' to word_tab.
append 'FACET' to word_tab.
append 'FACIA' to word_tab.
append 'FACTA' to word_tab.
append 'FACTS' to word_tab.
append 'FADDY' to word_tab.
append 'FADED' to word_tab.
append 'FADER' to word_tab.
append 'FADES' to word_tab.
append 'FADGE' to word_tab.
append 'FADOS' to word_tab.
append 'FAENA' to word_tab.
append 'FAERY' to word_tab.
append 'FAFFS' to word_tab.
append 'FAFFY' to word_tab.
append 'FAGIN' to word_tab.
append 'FAGOT' to word_tab.
append 'FAIKS' to word_tab.
append 'FAILS' to word_tab.
append 'FAINE' to word_tab.
append 'FAINS' to word_tab.
append 'FAINT' to word_tab.
append 'FAIRS' to word_tab.
append 'FAIRY' to word_tab.
append 'FAITH' to word_tab.
append 'FAKED' to word_tab.
append 'FAKER' to word_tab.
append 'FAKES' to word_tab.
append 'FAKEY' to word_tab.
append 'FAKIE' to word_tab.
append 'FAKIR' to word_tab.
append 'FALAJ' to word_tab.
append 'FALLS' to word_tab.
append 'FALSE' to word_tab.
append 'FAMED' to word_tab.
append 'FAMES' to word_tab.
append 'FANAL' to word_tab.
append 'FANCY' to word_tab.
append 'FANDS' to word_tab.
append 'FANES' to word_tab.
append 'FANGA' to word_tab.
append 'FANGO' to word_tab.
append 'FANGS' to word_tab.
append 'FANKS' to word_tab.
append 'FANNY' to word_tab.
append 'FANON' to word_tab.
append 'FANOS' to word_tab.
append 'FANUM' to word_tab.
append 'FAQIR' to word_tab.
append 'FARAD' to word_tab.
append 'FARCE' to word_tab.
append 'FARCI' to word_tab.
append 'FARCY' to word_tab.
append 'FARDS' to word_tab.
append 'FARED' to word_tab.
append 'FARER' to word_tab.
append 'FARES' to word_tab.
append 'FARLE' to word_tab.
append 'FARLS' to word_tab.
append 'FARMS' to word_tab.
append 'FAROS' to word_tab.
append 'FARRO' to word_tab.
append 'FARSE' to word_tab.
append 'FARTS' to word_tab.
append 'FASCI' to word_tab.
append 'FASTI' to word_tab.
append 'FASTS' to word_tab.
append 'FATAL' to word_tab.
append 'FATED' to word_tab.
append 'FATES' to word_tab.
append 'FATLY' to word_tab.
append 'FATSO' to word_tab.
append 'FATTY' to word_tab.
append 'FATWA' to word_tab.
append 'FAUGH' to word_tab.
append 'FAULD' to word_tab.
append 'FAULT' to word_tab.
append 'FAUNA' to word_tab.
append 'FAUNS' to word_tab.
append 'FAURD' to word_tab.
append 'FAUTS' to word_tab.
append 'FAUVE' to word_tab.
append 'FAVAS' to word_tab.
append 'FAVEL' to word_tab.
append 'FAVER' to word_tab.
append 'FAVES' to word_tab.
append 'FAVOR' to word_tab.
append 'FAVUS' to word_tab.
append 'FAWNS' to word_tab.
append 'FAWNY' to word_tab.
append 'FAXED' to word_tab.
append 'FAXES' to word_tab.
append 'FAYED' to word_tab.
append 'FAYER' to word_tab.
append 'FAYNE' to word_tab.
append 'FAYRE' to word_tab.
append 'FAZED' to word_tab.
append 'FAZES' to word_tab.
append 'FEALS' to word_tab.
append 'FEARE' to word_tab.
append 'FEARS' to word_tab.
append 'FEART' to word_tab.
append 'FEASE' to word_tab.
append 'FEAST' to word_tab.
append 'FEATS' to word_tab.
append 'FEAZE' to word_tab.
append 'FECAL' to word_tab.
append 'FECES' to word_tab.
append 'FECHT' to word_tab.
append 'FECIT' to word_tab.
append 'FECKS' to word_tab.
append 'FEDEX' to word_tab.
append 'FEEBS' to word_tab.
append 'FEEDS' to word_tab.
append 'FEELS' to word_tab.
append 'FEENS' to word_tab.
append 'FEERS' to word_tab.
append 'FEESE' to word_tab.
append 'FEEZE' to word_tab.
append 'FEHME' to word_tab.
append 'FEIGN' to word_tab.
append 'FEINT' to word_tab.
append 'FEIST' to word_tab.
append 'FELCH' to word_tab.
append 'FELID' to word_tab.
append 'FELLA' to word_tab.
append 'FELLS' to word_tab.
append 'FELLY' to word_tab.
append 'FELON' to word_tab.
append 'FELTS' to word_tab.
append 'FELTY' to word_tab.
append 'FEMAL' to word_tab.
append 'FEMES' to word_tab.
append 'FEMME' to word_tab.
append 'FEMMY' to word_tab.
append 'FEMUR' to word_tab.
append 'FENCE' to word_tab.
append 'FENDS' to word_tab.
append 'FENDY' to word_tab.
append 'FENIS' to word_tab.
append 'FENKS' to word_tab.
append 'FENNY' to word_tab.
append 'FENTS' to word_tab.
append 'FEODS' to word_tab.
append 'FEOFF' to word_tab.
append 'FERAL' to word_tab.
append 'FERER' to word_tab.
append 'FERES' to word_tab.
append 'FERIA' to word_tab.
append 'FERLY' to word_tab.
append 'FERMI' to word_tab.
append 'FERMS' to word_tab.
append 'FERNS' to word_tab.
append 'FERNY' to word_tab.
append 'FERRY' to word_tab.
append 'FESSE' to word_tab.
append 'FESTA' to word_tab.
append 'FESTS' to word_tab.
append 'FESTY' to word_tab.
append 'FETAL' to word_tab.
append 'FETAS' to word_tab.
append 'FETCH' to word_tab.
append 'FETED' to word_tab.
append 'FETES' to word_tab.
append 'FETID' to word_tab.
append 'FETOR' to word_tab.
append 'FETTA' to word_tab.
append 'FETTS' to word_tab.
append 'FETUS' to word_tab.
append 'FETWA' to word_tab.
append 'FEUAR' to word_tab.
append 'FEUDS' to word_tab.
append 'FEUED' to word_tab.
append 'FEVER' to word_tab.
append 'FEWER' to word_tab.
append 'FEYED' to word_tab.
append 'FEYER' to word_tab.
append 'FEYLY' to word_tab.
append 'FEZES' to word_tab.
append 'FEZZY' to word_tab.
append 'FIARS' to word_tab.
append 'FIATS' to word_tab.
append 'FIBER' to word_tab.
append 'FIBRE' to word_tab.
append 'FIBRO' to word_tab.
append 'FICES' to word_tab.
append 'FICHE' to word_tab.
append 'FICHU' to word_tab.
append 'FICIN' to word_tab.
append 'FICOS' to word_tab.
append 'FICUS' to word_tab.
append 'FIDES' to word_tab.
append 'FIDGE' to word_tab.
append 'FIDOS' to word_tab.
append 'FIEFS' to word_tab.
append 'FIELD' to word_tab.
append 'FIEND' to word_tab.
append 'FIENT' to word_tab.
append 'FIERE' to word_tab.
append 'FIERS' to word_tab.
append 'FIERY' to word_tab.
append 'FIEST' to word_tab.
append 'FIFED' to word_tab.
append 'FIFER' to word_tab.
append 'FIFES' to word_tab.
append 'FIFIS' to word_tab.
append 'FIFTH' to word_tab.
append 'FIFTY' to word_tab.
append 'FIGGY' to word_tab.
append 'FIGHT' to word_tab.
append 'FIGOS' to word_tab.
append 'FIKED' to word_tab.
append 'FIKES' to word_tab.
append 'FILAR' to word_tab.
append 'FILCH' to word_tab.
append 'FILED' to word_tab.
append 'FILER' to word_tab.
append 'FILES' to word_tab.
append 'FILET' to word_tab.
append 'FILII' to word_tab.
append 'FILKS' to word_tab.
append 'FILLE' to word_tab.
append 'FILLO' to word_tab.
append 'FILLS' to word_tab.
append 'FILLY' to word_tab.
append 'FILMI' to word_tab.
append 'FILMS' to word_tab.
append 'FILMY' to word_tab.
append 'FILOS' to word_tab.
append 'FILTH' to word_tab.
append 'FILUM' to word_tab.
append 'FINAL' to word_tab.
append 'FINCA' to word_tab.
append 'FINCH' to word_tab.
append 'FINDS' to word_tab.
append 'FINED' to word_tab.
append 'FINER' to word_tab.
append 'FINES' to word_tab.
append 'FINIS' to word_tab.
append 'FINKS' to word_tab.
append 'FINNY' to word_tab.
append 'FINOS' to word_tab.
append 'FIORD' to word_tab.
append 'FIQHS' to word_tab.
append 'FIQUE' to word_tab.
append 'FIRED' to word_tab.
append 'FIRER' to word_tab.
append 'FIRES' to word_tab.
append 'FIRIE' to word_tab.
append 'FIRKS' to word_tab.
append 'FIRMS' to word_tab.
append 'FIRNS' to word_tab.
append 'FIRRY' to word_tab.
append 'FIRST' to word_tab.
append 'FIRTH' to word_tab.
append 'FISCS' to word_tab.
append 'FISHY' to word_tab.
append 'FISKS' to word_tab.
append 'FISTS' to word_tab.
append 'FISTY' to word_tab.
append 'FITCH' to word_tab.
append 'FITLY' to word_tab.
append 'FITNA' to word_tab.
append 'FITTE' to word_tab.
append 'FITTS' to word_tab.
append 'FIVER' to word_tab.
append 'FIVES' to word_tab.
append 'FIXED' to word_tab.
append 'FIXER' to word_tab.
append 'FIXES' to word_tab.
append 'FIXIT' to word_tab.
append 'FIZZY' to word_tab.
append 'FJELD' to word_tab.
append 'FJORD' to word_tab.
append 'FLABS' to word_tab.
append 'FLACK' to word_tab.
append 'FLAFF' to word_tab.
append 'FLAGS' to word_tab.
append 'FLAIL' to word_tab.
append 'FLAIR' to word_tab.
append 'FLAKE' to word_tab.
append 'FLAKS' to word_tab.
append 'FLAKY' to word_tab.
append 'FLAME' to word_tab.
append 'FLAMM' to word_tab.
append 'FLAMS' to word_tab.
append 'FLAMY' to word_tab.
append 'FLANE' to word_tab.
append 'FLANK' to word_tab.
append 'FLANS' to word_tab.
append 'FLAPS' to word_tab.
append 'FLARE' to word_tab.
append 'FLARY' to word_tab.
append 'FLASH' to word_tab.
append 'FLASK' to word_tab.
append 'FLATS' to word_tab.
append 'FLAVA' to word_tab.
append 'FLAWN' to word_tab.
append 'FLAWS' to word_tab.
append 'FLAWY' to word_tab.
append 'FLAXY' to word_tab.
append 'FLAYS' to word_tab.
append 'FLEAM' to word_tab.
append 'FLEAS' to word_tab.
append 'FLECK' to word_tab.
append 'FLEEK' to word_tab.
append 'FLEER' to word_tab.
append 'FLEES' to word_tab.
append 'FLEET' to word_tab.
append 'FLEGS' to word_tab.
append 'FLEME' to word_tab.
append 'FLESH' to word_tab.
append 'FLEUR' to word_tab.
append 'FLEWS' to word_tab.
append 'FLEXI' to word_tab.
append 'FLEXO' to word_tab.
append 'FLEYS' to word_tab.
append 'FLICK' to word_tab.
append 'FLICS' to word_tab.
append 'FLIED' to word_tab.
append 'FLIER' to word_tab.
append 'FLIES' to word_tab.
append 'FLIMP' to word_tab.
append 'FLIMS' to word_tab.
append 'FLING' to word_tab.
append 'FLINT' to word_tab.
append 'FLIPS' to word_tab.
append 'FLIRS' to word_tab.
append 'FLIRT' to word_tab.
append 'FLISK' to word_tab.
append 'FLITE' to word_tab.
append 'FLITS' to word_tab.
append 'FLITT' to word_tab.
append 'FLOAT' to word_tab.
append 'FLOBS' to word_tab.
append 'FLOCK' to word_tab.
append 'FLOCS' to word_tab.
append 'FLOES' to word_tab.
append 'FLOGS' to word_tab.
append 'FLONG' to word_tab.
append 'FLOOD' to word_tab.
append 'FLOOR' to word_tab.
append 'FLOPS' to word_tab.
append 'FLORA' to word_tab.
append 'FLORS' to word_tab.
append 'FLORY' to word_tab.
append 'FLOSH' to word_tab.
append 'FLOSS' to word_tab.
append 'FLOTA' to word_tab.
append 'FLOTE' to word_tab.
append 'FLOUR' to word_tab.
append 'FLOUT' to word_tab.
append 'FLOWN' to word_tab.
append 'FLOWS' to word_tab.
append 'FLUBS' to word_tab.
append 'FLUED' to word_tab.
append 'FLUES' to word_tab.
append 'FLUEY' to word_tab.
append 'FLUFF' to word_tab.
append 'FLUID' to word_tab.
append 'FLUKE' to word_tab.
append 'FLUKY' to word_tab.
append 'FLUME' to word_tab.
append 'FLUMP' to word_tab.
append 'FLUNG' to word_tab.
append 'FLUNK' to word_tab.
append 'FLUOR' to word_tab.
append 'FLURR' to word_tab.
append 'FLUSH' to word_tab.
append 'FLUTE' to word_tab.
append 'FLUTY' to word_tab.
append 'FLUYT' to word_tab.
append 'FLYBY' to word_tab.
append 'FLYER' to word_tab.
append 'FLYPE' to word_tab.
append 'FLYTE' to word_tab.
append 'FOALS' to word_tab.
append 'FOAMS' to word_tab.
append 'FOAMY' to word_tab.
append 'FOCAL' to word_tab.
append 'FOCUS' to word_tab.
append 'FOEHN' to word_tab.
append 'FOGEY' to word_tab.
append 'FOGGY' to word_tab.
append 'FOGIE' to word_tab.
append 'FOGLE' to word_tab.
append 'FOGOU' to word_tab.
append 'FOHNS' to word_tab.
append 'FOIDS' to word_tab.
append 'FOILS' to word_tab.
append 'FOINS' to word_tab.
append 'FOIST' to word_tab.
append 'FOLDS' to word_tab.
append 'FOLEY' to word_tab.
append 'FOLIA' to word_tab.
append 'FOLIC' to word_tab.
append 'FOLIE' to word_tab.
append 'FOLIO' to word_tab.
append 'FOLKS' to word_tab.
append 'FOLKY' to word_tab.
append 'FOLLY' to word_tab.
append 'FOMES' to word_tab.
append 'FONDA' to word_tab.
append 'FONDS' to word_tab.
append 'FONDU' to word_tab.
append 'FONES' to word_tab.
append 'FONLY' to word_tab.
append 'FONTS' to word_tab.
append 'FOODS' to word_tab.
append 'FOODY' to word_tab.
append 'FOOLS' to word_tab.
append 'FOOTS' to word_tab.
append 'FOOTY' to word_tab.
append 'FORAM' to word_tab.
append 'FORAY' to word_tab.
append 'FORBS' to word_tab.
append 'FORBY' to word_tab.
append 'FORCE' to word_tab.
append 'FORDO' to word_tab.
append 'FORDS' to word_tab.
append 'FOREL' to word_tab.
append 'FORES' to word_tab.
append 'FOREX' to word_tab.
append 'FORGE' to word_tab.
append 'FORGO' to word_tab.
append 'FORKS' to word_tab.
append 'FORKY' to word_tab.
append 'FORME' to word_tab.
append 'FORMS' to word_tab.
append 'FORTE' to word_tab.
append 'FORTH' to word_tab.
append 'FORTS' to word_tab.
append 'FORTY' to word_tab.
append 'FORUM' to word_tab.
append 'FORZA' to word_tab.
append 'FORZE' to word_tab.
append 'FOSSA' to word_tab.
append 'FOSSE' to word_tab.
append 'FOUAT' to word_tab.
append 'FOUDS' to word_tab.
append 'FOUER' to word_tab.
append 'FOUET' to word_tab.
append 'FOULE' to word_tab.
append 'FOULS' to word_tab.
append 'FOUND' to word_tab.
append 'FOUNT' to word_tab.
append 'FOURS' to word_tab.
append 'FOUTH' to word_tab.
append 'FOVEA' to word_tab.
append 'FOWLS' to word_tab.
append 'FOWTH' to word_tab.
append 'FOXED' to word_tab.
append 'FOXES' to word_tab.
append 'FOXIE' to word_tab.
append 'FOYER' to word_tab.
append 'FOYLE' to word_tab.
append 'FOYNE' to word_tab.
append 'FRABS' to word_tab.
append 'FRACK' to word_tab.
append 'FRACT' to word_tab.
append 'FRAGS' to word_tab.
append 'FRAIL' to word_tab.
append 'FRAIM' to word_tab.
append 'FRAME' to word_tab.
append 'FRANC' to word_tab.
append 'FRANK' to word_tab.
append 'FRAPE' to word_tab.
append 'FRAPS' to word_tab.
append 'FRASS' to word_tab.
append 'FRATE' to word_tab.
append 'FRATI' to word_tab.
append 'FRATS' to word_tab.
append 'FRAUD' to word_tab.
append 'FRAUS' to word_tab.
append 'FRAYS' to word_tab.
append 'FREAK' to word_tab.
append 'FREED' to word_tab.
append 'FREER' to word_tab.
append 'FREES' to word_tab.
append 'FREET' to word_tab.
append 'FREIT' to word_tab.
append 'FREMD' to word_tab.
append 'FRENA' to word_tab.
append 'FREON' to word_tab.
append 'FRERE' to word_tab.
append 'FRESH' to word_tab.
append 'FRETS' to word_tab.
append 'FRIAR' to word_tab.
append 'FRIBS' to word_tab.
append 'FRIED' to word_tab.
append 'FRIER' to word_tab.
append 'FRIES' to word_tab.
append 'FRIGS' to word_tab.
append 'FRILL' to word_tab.
append 'FRISE' to word_tab.
append 'FRISK' to word_tab.
append 'FRIST' to word_tab.
append 'FRITH' to word_tab.
append 'FRITS' to word_tab.
append 'FRITT' to word_tab.
append 'FRITZ' to word_tab.
append 'FRIZE' to word_tab.
append 'FRIZZ' to word_tab.
append 'FROCK' to word_tab.
append 'FROES' to word_tab.
append 'FROGS' to word_tab.
append 'FROND' to word_tab.
append 'FRONS' to word_tab.
append 'FRONT' to word_tab.
append 'FRORE' to word_tab.
append 'FRORN' to word_tab.
append 'FRORY' to word_tab.
append 'FROSH' to word_tab.
append 'FROST' to word_tab.
append 'FROTH' to word_tab.
append 'FROWN' to word_tab.
append 'FROWS' to word_tab.
append 'FROWY' to word_tab.
append 'FROZE' to word_tab.
append 'FRUGS' to word_tab.
append 'FRUIT' to word_tab.
append 'FRUMP' to word_tab.
append 'FRUSH' to word_tab.
append 'FRUST' to word_tab.
append 'FRYER' to word_tab.
append 'FUBAR' to word_tab.
append 'FUBBY' to word_tab.
append 'FUBSY' to word_tab.
append 'FUCKS' to word_tab.
append 'FUCUS' to word_tab.
append 'FUDDY' to word_tab.
append 'FUDGE' to word_tab.
append 'FUDGY' to word_tab.
append 'FUELS' to word_tab.
append 'FUERO' to word_tab.
append 'FUFFS' to word_tab.
append 'FUFFY' to word_tab.
append 'FUGAL' to word_tab.
append 'FUGGY' to word_tab.
append 'FUGIE' to word_tab.
append 'FUGIO' to word_tab.
append 'FUGLE' to word_tab.
append 'FUGLY' to word_tab.
append 'FUGUE' to word_tab.
append 'FUGUS' to word_tab.
append 'FUJIS' to word_tab.
append 'FULLS' to word_tab.
append 'FULLY' to word_tab.
append 'FUMED' to word_tab.
append 'FUMER' to word_tab.
append 'FUMES' to word_tab.
append 'FUMET' to word_tab.
append 'FUNDI' to word_tab.
append 'FUNDS' to word_tab.
append 'FUNDY' to word_tab.
append 'FUNGI' to word_tab.
append 'FUNGO' to word_tab.
append 'FUNGS' to word_tab.
append 'FUNKS' to word_tab.
append 'FUNKY' to word_tab.
append 'FUNNY' to word_tab.
append 'FURAL' to word_tab.
append 'FURAN' to word_tab.
append 'FURCA' to word_tab.
append 'FURLS' to word_tab.
append 'FUROL' to word_tab.
append 'FUROR' to word_tab.
append 'FURRS' to word_tab.
append 'FURRY' to word_tab.
append 'FURTH' to word_tab.
append 'FURZE' to word_tab.
append 'FURZY' to word_tab.
append 'FUSED' to word_tab.
append 'FUSEE' to word_tab.
append 'FUSEL' to word_tab.
append 'FUSES' to word_tab.
append 'FUSIL' to word_tab.
append 'FUSKS' to word_tab.
append 'FUSSY' to word_tab.
append 'FUSTS' to word_tab.
append 'FUSTY' to word_tab.
append 'FUTON' to word_tab.
append 'FUZED' to word_tab.
append 'FUZEE' to word_tab.
append 'FUZES' to word_tab.
append 'FUZIL' to word_tab.
append 'FUZZY' to word_tab.
append 'FYCES' to word_tab.
append 'FYKED' to word_tab.
append 'FYKES' to word_tab.
append 'FYLES' to word_tab.
append 'FYRDS' to word_tab.
append 'FYTTE' to word_tab.
append 'GABBA' to word_tab.
append 'GABBY' to word_tab.
append 'GABLE' to word_tab.
append 'GADDI' to word_tab.
append 'GADES' to word_tab.
append 'GADGE' to word_tab.
append 'GADID' to word_tab.
append 'GADIS' to word_tab.
append 'GADJE' to word_tab.
append 'GADJO' to word_tab.
append 'GADSO' to word_tab.
append 'GAFFE' to word_tab.
append 'GAFFS' to word_tab.
append 'GAGED' to word_tab.
append 'GAGER' to word_tab.
append 'GAGES' to word_tab.
append 'GAIDS' to word_tab.
append 'GAILY' to word_tab.
append 'GAINS' to word_tab.
append 'GAIRS' to word_tab.
append 'GAITA' to word_tab.
append 'GAITS' to word_tab.
append 'GAITT' to word_tab.
append 'GAJOS' to word_tab.
append 'GALAH' to word_tab.
append 'GALAS' to word_tab.
append 'GALAX' to word_tab.
append 'GALEA' to word_tab.
append 'GALED' to word_tab.
append 'GALES' to word_tab.
append 'GALLS' to word_tab.
append 'GALLY' to word_tab.
append 'GALOP' to word_tab.
append 'GALUT' to word_tab.
append 'GALVO' to word_tab.
append 'GAMAS' to word_tab.
append 'GAMAY' to word_tab.
append 'GAMBA' to word_tab.
append 'GAMBE' to word_tab.
append 'GAMBO' to word_tab.
append 'GAMBS' to word_tab.
append 'GAMED' to word_tab.
append 'GAMER' to word_tab.
append 'GAMES' to word_tab.
append 'GAMEY' to word_tab.
append 'GAMIC' to word_tab.
append 'GAMIN' to word_tab.
append 'GAMMA' to word_tab.
append 'GAMME' to word_tab.
append 'GAMMY' to word_tab.
append 'GAMPS' to word_tab.
append 'GAMUT' to word_tab.
append 'GANCH' to word_tab.
append 'GANDY' to word_tab.
append 'GANEF' to word_tab.
append 'GANEV' to word_tab.
append 'GANGS' to word_tab.
append 'GANJA' to word_tab.
append 'GANOF' to word_tab.
append 'GANTS' to word_tab.
append 'GAOLS' to word_tab.
append 'GAPED' to word_tab.
append 'GAPER' to word_tab.
append 'GAPES' to word_tab.
append 'GAPOS' to word_tab.
append 'GAPPY' to word_tab.
append 'GARBE' to word_tab.
append 'GARBO' to word_tab.
append 'GARBS' to word_tab.
append 'GARDA' to word_tab.
append 'GARES' to word_tab.
append 'GARIS' to word_tab.
append 'GARMS' to word_tab.
append 'GARNI' to word_tab.
append 'GARRE' to word_tab.
append 'GARTH' to word_tab.
append 'GARUM' to word_tab.
append 'GASES' to word_tab.
append 'GASPS' to word_tab.
append 'GASPY' to word_tab.
append 'GASSY' to word_tab.
append 'GASTS' to word_tab.
append 'GATCH' to word_tab.
append 'GATED' to word_tab.
append 'GATER' to word_tab.
append 'GATES' to word_tab.
append 'GATHS' to word_tab.
append 'GATOR' to word_tab.
append 'GAUCH' to word_tab.
append 'GAUCY' to word_tab.
append 'GAUDS' to word_tab.
append 'GAUDY' to word_tab.
append 'GAUGE' to word_tab.
append 'GAUJE' to word_tab.
append 'GAULT' to word_tab.
append 'GAUMS' to word_tab.
append 'GAUMY' to word_tab.
append 'GAUNT' to word_tab.
append 'GAUPS' to word_tab.
append 'GAURS' to word_tab.
append 'GAUSS' to word_tab.
append 'GAUZE' to word_tab.
append 'GAUZY' to word_tab.
append 'GAVEL' to word_tab.
append 'GAVOT' to word_tab.
append 'GAWCY' to word_tab.
append 'GAWDS' to word_tab.
append 'GAWKS' to word_tab.
append 'GAWKY' to word_tab.
append 'GAWPS' to word_tab.
append 'GAWSY' to word_tab.
append 'GAYAL' to word_tab.
append 'GAYER' to word_tab.
append 'GAYLY' to word_tab.
append 'GAZAL' to word_tab.
append 'GAZAR' to word_tab.
append 'GAZED' to word_tab.
append 'GAZER' to word_tab.
append 'GAZES' to word_tab.
append 'GAZON' to word_tab.
append 'GAZOO' to word_tab.
append 'GEALS' to word_tab.
append 'GEANS' to word_tab.
append 'GEARE' to word_tab.
append 'GEARS' to word_tab.
append 'GEATS' to word_tab.
append 'GEBUR' to word_tab.
append 'GECKO' to word_tab.
append 'GECKS' to word_tab.
append 'GEEKS' to word_tab.
append 'GEEKY' to word_tab.
append 'GEEPS' to word_tab.
append 'GEESE' to word_tab.
append 'GEEST' to word_tab.
append 'GEIST' to word_tab.
append 'GEITS' to word_tab.
append 'GELDS' to word_tab.
append 'GELEE' to word_tab.
append 'GELID' to word_tab.
append 'GELLY' to word_tab.
append 'GELTS' to word_tab.
append 'GEMEL' to word_tab.
append 'GEMMA' to word_tab.
append 'GEMMY' to word_tab.
append 'GEMOT' to word_tab.
append 'GENAL' to word_tab.
append 'GENAS' to word_tab.
append 'GENES' to word_tab.
append 'GENET' to word_tab.
append 'GENIC' to word_tab.
append 'GENIE' to word_tab.
append 'GENII' to word_tab.
append 'GENIP' to word_tab.
append 'GENNY' to word_tab.
append 'GENOA' to word_tab.
append 'GENOM' to word_tab.
append 'GENRE' to word_tab.
append 'GENRO' to word_tab.
append 'GENTS' to word_tab.
append 'GENTY' to word_tab.
append 'GENUA' to word_tab.
append 'GENUS' to word_tab.
append 'GEODE' to word_tab.
append 'GEOID' to word_tab.
append 'GERAH' to word_tab.
append 'GERBE' to word_tab.
append 'GERES' to word_tab.
append 'GERLE' to word_tab.
append 'GERMS' to word_tab.
append 'GERMY' to word_tab.
append 'GERNE' to word_tab.
append 'GESSE' to word_tab.
append 'GESSO' to word_tab.
append 'GESTE' to word_tab.
append 'GESTS' to word_tab.
append 'GETAS' to word_tab.
append 'GETUP' to word_tab.
append 'GEUMS' to word_tab.
append 'GEYAN' to word_tab.
append 'GEYER' to word_tab.
append 'GHAST' to word_tab.
append 'GHATS' to word_tab.
append 'GHAUT' to word_tab.
append 'GHAZI' to word_tab.
append 'GHEES' to word_tab.
append 'GHEST' to word_tab.
append 'GHOST' to word_tab.
append 'GHOUL' to word_tab.
append 'GHYLL' to word_tab.
append 'GIANT' to word_tab.
append 'GIBED' to word_tab.
append 'GIBEL' to word_tab.
append 'GIBER' to word_tab.
append 'GIBES' to word_tab.
append 'GIBLI' to word_tab.
append 'GIBUS' to word_tab.
append 'GIDDY' to word_tab.
append 'GIFTS' to word_tab.
append 'GIGAS' to word_tab.
append 'GIGHE' to word_tab.
append 'GIGOT' to word_tab.
append 'GIGUE' to word_tab.
append 'GILAS' to word_tab.
append 'GILDS' to word_tab.
append 'GILET' to word_tab.
append 'GILLS' to word_tab.
append 'GILLY' to word_tab.
append 'GILPY' to word_tab.
append 'GILTS' to word_tab.
append 'GIMEL' to word_tab.
append 'GIMME' to word_tab.
append 'GIMPS' to word_tab.
append 'GIMPY' to word_tab.
append 'GINCH' to word_tab.
append 'GINGE' to word_tab.
append 'GINGS' to word_tab.
append 'GINKS' to word_tab.
append 'GINNY' to word_tab.
append 'GIPON' to word_tab.
append 'GIPPY' to word_tab.
append 'GIPSY' to word_tab.
append 'GIRDS' to word_tab.
append 'GIRLS' to word_tab.
append 'GIRLY' to word_tab.
append 'GIRNS' to word_tab.
append 'GIRON' to word_tab.
append 'GIROS' to word_tab.
append 'GIRRS' to word_tab.
append 'GIRSH' to word_tab.
append 'GIRTH' to word_tab.
append 'GIRTS' to word_tab.
append 'GISMO' to word_tab.
append 'GISMS' to word_tab.
append 'GISTS' to word_tab.
append 'GITCH' to word_tab.
append 'GITES' to word_tab.
append 'GIUST' to word_tab.
append 'GIVED' to word_tab.
append 'GIVEN' to word_tab.
append 'GIVER' to word_tab.
append 'GIVES' to word_tab.
append 'GIZMO' to word_tab.
append 'GLACE' to word_tab.
append 'GLADE' to word_tab.
append 'GLADS' to word_tab.
append 'GLADY' to word_tab.
append 'GLAIK' to word_tab.
append 'GLAIR' to word_tab.
append 'GLAMS' to word_tab.
append 'GLAND' to word_tab.
append 'GLANS' to word_tab.
append 'GLARE' to word_tab.
append 'GLARY' to word_tab.
append 'GLASS' to word_tab.
append 'GLAUM' to word_tab.
append 'GLAUR' to word_tab.
append 'GLAZE' to word_tab.
append 'GLAZY' to word_tab.
append 'GLEAM' to word_tab.
append 'GLEAN' to word_tab.
append 'GLEBA' to word_tab.
append 'GLEBE' to word_tab.
append 'GLEBY' to word_tab.
append 'GLEDE' to word_tab.
append 'GLEDS' to word_tab.
append 'GLEED' to word_tab.
append 'GLEEK' to word_tab.
append 'GLEES' to word_tab.
append 'GLEET' to word_tab.
append 'GLEIS' to word_tab.
append 'GLENS' to word_tab.
append 'GLENT' to word_tab.
append 'GLEYS' to word_tab.
append 'GLIAL' to word_tab.
append 'GLIAS' to word_tab.
append 'GLIBS' to word_tab.
append 'GLIDE' to word_tab.
append 'GLIFF' to word_tab.
append 'GLIFT' to word_tab.
append 'GLIKE' to word_tab.
append 'GLIME' to word_tab.
append 'GLIMS' to word_tab.
append 'GLINT' to word_tab.
append 'GLISK' to word_tab.
append 'GLITS' to word_tab.
append 'GLITZ' to word_tab.
append 'GLOAM' to word_tab.
append 'GLOAT' to word_tab.
append 'GLOBE' to word_tab.
append 'GLOBI' to word_tab.
append 'GLOBS' to word_tab.
append 'GLOBY' to word_tab.
append 'GLODE' to word_tab.
append 'GLOGG' to word_tab.
append 'GLOMS' to word_tab.
append 'GLOOM' to word_tab.
append 'GLOOP' to word_tab.
append 'GLOPS' to word_tab.
append 'GLORY' to word_tab.
append 'GLOSS' to word_tab.
append 'GLOST' to word_tab.
append 'GLOUT' to word_tab.
append 'GLOVE' to word_tab.
append 'GLOWS' to word_tab.
append 'GLOZE' to word_tab.
append 'GLUED' to word_tab.
append 'GLUER' to word_tab.
append 'GLUES' to word_tab.
append 'GLUEY' to word_tab.
append 'GLUGS' to word_tab.
append 'GLUME' to word_tab.
append 'GLUMS' to word_tab.
append 'GLUON' to word_tab.
append 'GLUTE' to word_tab.
append 'GLUTS' to word_tab.
append 'GLYPH' to word_tab.
append 'GNARL' to word_tab.
append 'GNARR' to word_tab.
append 'GNARS' to word_tab.
append 'GNASH' to word_tab.
append 'GNATS' to word_tab.
append 'GNAWN' to word_tab.
append 'GNAWS' to word_tab.
append 'GNOME' to word_tab.
append 'GNOWS' to word_tab.
append 'GOADS' to word_tab.
append 'GOAFS' to word_tab.
append 'GOALS' to word_tab.
append 'GOARY' to word_tab.
append 'GOATS' to word_tab.
append 'GOATY' to word_tab.
append 'GOBAN' to word_tab.
append 'GOBAR' to word_tab.
append 'GOBBI' to word_tab.
append 'GOBBO' to word_tab.
append 'GOBBY' to word_tab.
append 'GOBIS' to word_tab.
append 'GOBOS' to word_tab.
append 'GODET' to word_tab.
append 'GODLY' to word_tab.
append 'GODSO' to word_tab.
append 'GOELS' to word_tab.
append 'GOERS' to word_tab.
append 'GOEST' to word_tab.
append 'GOETH' to word_tab.
append 'GOETY' to word_tab.
append 'GOFER' to word_tab.
append 'GOFFS' to word_tab.
append 'GOGGA' to word_tab.
append 'GOGOS' to word_tab.
append 'GOIER' to word_tab.
append 'GOING' to word_tab.
append 'GOJIS' to word_tab.
append 'GOLDS' to word_tab.
append 'GOLDY' to word_tab.
append 'GOLEM' to word_tab.
append 'GOLES' to word_tab.
append 'GOLFS' to word_tab.
append 'GOLLY' to word_tab.
append 'GOLPE' to word_tab.
append 'GOLPS' to word_tab.
append 'GOMBO' to word_tab.
append 'GOMER' to word_tab.
append 'GOMPA' to word_tab.
append 'GONAD' to word_tab.
append 'GONCH' to word_tab.
append 'GONEF' to word_tab.
append 'GONER' to word_tab.
append 'GONGS' to word_tab.
append 'GONIA' to word_tab.
append 'GONIF' to word_tab.
append 'GONKS' to word_tab.
append 'GONNA' to word_tab.
append 'GONOF' to word_tab.
append 'GONYS' to word_tab.
append 'GONZO' to word_tab.
append 'GOOBY' to word_tab.
append 'GOODS' to word_tab.
append 'GOODY' to word_tab.
append 'GOOEY' to word_tab.
append 'GOOFS' to word_tab.
append 'GOOFY' to word_tab.
append 'GOOGS' to word_tab.
append 'GOOKS' to word_tab.
append 'GOOKY' to word_tab.
append 'GOOLD' to word_tab.
append 'GOOLS' to word_tab.
append 'GOOLY' to word_tab.
append 'GOONS' to word_tab.
append 'GOONY' to word_tab.
append 'GOOPS' to word_tab.
append 'GOOPY' to word_tab.
append 'GOORS' to word_tab.
append 'GOORY' to word_tab.
append 'GOOSE' to word_tab.
append 'GOOSY' to word_tab.
append 'GOPAK' to word_tab.
append 'GOPIK' to word_tab.
append 'GORAL' to word_tab.
append 'GORAS' to word_tab.
append 'GORED' to word_tab.
append 'GORES' to word_tab.
append 'GORGE' to word_tab.
append 'GORIS' to word_tab.
append 'GORMS' to word_tab.
append 'GORMY' to word_tab.
append 'GORPS' to word_tab.
append 'GORSE' to word_tab.
append 'GORSY' to word_tab.
append 'GOSHT' to word_tab.
append 'GOSSE' to word_tab.
append 'GOTCH' to word_tab.
append 'GOTHS' to word_tab.
append 'GOTHY' to word_tab.
append 'GOTTA' to word_tab.
append 'GOUCH' to word_tab.
append 'GOUGE' to word_tab.
append 'GOUKS' to word_tab.
append 'GOURA' to word_tab.
append 'GOURD' to word_tab.
append 'GOUTS' to word_tab.
append 'GOUTY' to word_tab.
append 'GOWAN' to word_tab.
append 'GOWDS' to word_tab.
append 'GOWFS' to word_tab.
append 'GOWKS' to word_tab.
append 'GOWLS' to word_tab.
append 'GOWNS' to word_tab.
append 'GOXES' to word_tab.
append 'GOYLE' to word_tab.
append 'GRAAL' to word_tab.
append 'GRABS' to word_tab.
append 'GRACE' to word_tab.
append 'GRADE' to word_tab.
append 'GRADS' to word_tab.
append 'GRAFF' to word_tab.
append 'GRAFT' to word_tab.
append 'GRAIL' to word_tab.
append 'GRAIN' to word_tab.
append 'GRAIP' to word_tab.
append 'GRAMA' to word_tab.
append 'GRAME' to word_tab.
append 'GRAMP' to word_tab.
append 'GRAMS' to word_tab.
append 'GRANA' to word_tab.
append 'GRAND' to word_tab.
append 'GRANS' to word_tab.
append 'GRANT' to word_tab.
append 'GRAPE' to word_tab.
append 'GRAPH' to word_tab.
append 'GRAPY' to word_tab.
append 'GRASP' to word_tab.
append 'GRASS' to word_tab.
append 'GRATE' to word_tab.
append 'GRAVE' to word_tab.
append 'GRAVS' to word_tab.
append 'GRAVY' to word_tab.
append 'GRAYS' to word_tab.
append 'GRAZE' to word_tab.
append 'GREAT' to word_tab.
append 'GREBE' to word_tab.
append 'GREBO' to word_tab.
append 'GRECE' to word_tab.
append 'GREED' to word_tab.
append 'GREEK' to word_tab.
append 'GREEN' to word_tab.
append 'GREES' to word_tab.
append 'GREET' to word_tab.
append 'GREGE' to word_tab.
append 'GREGO' to word_tab.
append 'GREIN' to word_tab.
append 'GRENS' to word_tab.
append 'GRESE' to word_tab.
append 'GREVE' to word_tab.
append 'GREWS' to word_tab.
append 'GREYS' to word_tab.
append 'GRICE' to word_tab.
append 'GRIDE' to word_tab.
append 'GRIDS' to word_tab.
append 'GRIEF' to word_tab.
append 'GRIFF' to word_tab.
append 'GRIFT' to word_tab.
append 'GRIGS' to word_tab.
append 'GRIKE' to word_tab.
append 'GRILL' to word_tab.
append 'GRIME' to word_tab.
append 'GRIMY' to word_tab.
append 'GRIND' to word_tab.
append 'GRINS' to word_tab.
append 'GRIOT' to word_tab.
append 'GRIPE' to word_tab.
append 'GRIPS' to word_tab.
append 'GRIPT' to word_tab.
append 'GRIPY' to word_tab.
append 'GRISE' to word_tab.
append 'GRIST' to word_tab.
append 'GRISY' to word_tab.
append 'GRITH' to word_tab.
append 'GRITS' to word_tab.
append 'GRIZE' to word_tab.
append 'GROAN' to word_tab.
append 'GROAT' to word_tab.
append 'GRODY' to word_tab.
append 'GROGS' to word_tab.
append 'GROIN' to word_tab.
append 'GROKS' to word_tab.
append 'GROMA' to word_tab.
append 'GRONE' to word_tab.
append 'GROOF' to word_tab.
append 'GROOM' to word_tab.
append 'GROPE' to word_tab.
append 'GROSS' to word_tab.
append 'GROSZ' to word_tab.
append 'GROTS' to word_tab.
append 'GROUF' to word_tab.
append 'GROUP' to word_tab.
append 'GROUT' to word_tab.
append 'GROVE' to word_tab.
append 'GROVY' to word_tab.
append 'GROWL' to word_tab.
append 'GROWN' to word_tab.
append 'GROWS' to word_tab.
append 'GRRLS' to word_tab.
append 'GRRRL' to word_tab.
append 'GRUBS' to word_tab.
append 'GRUED' to word_tab.
append 'GRUEL' to word_tab.
append 'GRUES' to word_tab.
append 'GRUFE' to word_tab.
append 'GRUFF' to word_tab.
append 'GRUME' to word_tab.
append 'GRUMP' to word_tab.
append 'GRUND' to word_tab.
append 'GRUNT' to word_tab.
append 'GRYCE' to word_tab.
append 'GRYDE' to word_tab.
append 'GRYKE' to word_tab.
append 'GRYPE' to word_tab.
append 'GRYPT' to word_tab.
append 'GUACO' to word_tab.
append 'GUANA' to word_tab.
append 'GUANO' to word_tab.
append 'GUANS' to word_tab.
append 'GUARD' to word_tab.
append 'GUARS' to word_tab.
append 'GUAVA' to word_tab.
append 'GUCKS' to word_tab.
append 'GUCKY' to word_tab.
append 'GUDES' to word_tab.
append 'GUESS' to word_tab.
append 'GUEST' to word_tab.
append 'GUFFS' to word_tab.
append 'GUGAS' to word_tab.
append 'GUIDE' to word_tab.
append 'GUIDS' to word_tab.
append 'GUILD' to word_tab.
append 'GUILE' to word_tab.
append 'GUILT' to word_tab.
append 'GUIMP' to word_tab.
append 'GUIRO' to word_tab.
append 'GUISE' to word_tab.
append 'GULAG' to word_tab.
append 'GULAR' to word_tab.
append 'GULAS' to word_tab.
append 'GULCH' to word_tab.
append 'GULES' to word_tab.
append 'GULET' to word_tab.
append 'GULFS' to word_tab.
append 'GULFY' to word_tab.
append 'GULLS' to word_tab.
append 'GULLY' to word_tab.
append 'GULPH' to word_tab.
append 'GULPS' to word_tab.
append 'GULPY' to word_tab.
append 'GUMBO' to word_tab.
append 'GUMMA' to word_tab.
append 'GUMMI' to word_tab.
append 'GUMMY' to word_tab.
append 'GUMPS' to word_tab.
append 'GUNDY' to word_tab.
append 'GUNGE' to word_tab.
append 'GUNGY' to word_tab.
append 'GUNKS' to word_tab.
append 'GUNKY' to word_tab.
append 'GUNNY' to word_tab.
append 'GUPPY' to word_tab.
append 'GUQIN' to word_tab.
append 'GURDY' to word_tab.
append 'GURGE' to word_tab.
append 'GURLS' to word_tab.
append 'GURLY' to word_tab.
append 'GURNS' to word_tab.
append 'GURRY' to word_tab.
append 'GURSH' to word_tab.
append 'GURUS' to word_tab.
append 'GUSHY' to word_tab.
append 'GUSLA' to word_tab.
append 'GUSLE' to word_tab.
append 'GUSLI' to word_tab.
append 'GUSSY' to word_tab.
append 'GUSTO' to word_tab.
append 'GUSTS' to word_tab.
append 'GUSTY' to word_tab.
append 'GUTSY' to word_tab.
append 'GUTTA' to word_tab.
append 'GUTTY' to word_tab.
append 'GUYED' to word_tab.
append 'GUYLE' to word_tab.
append 'GUYOT' to word_tab.
append 'GUYSE' to word_tab.
append 'GWINE' to word_tab.
append 'GYALS' to word_tab.
append 'GYANS' to word_tab.
append 'GYBED' to word_tab.
append 'GYBES' to word_tab.
append 'GYELD' to word_tab.
append 'GYMPS' to word_tab.
append 'GYNAE' to word_tab.
append 'GYNIE' to word_tab.
append 'GYNNY' to word_tab.
append 'GYNOS' to word_tab.
append 'GYOZA' to word_tab.
append 'GYPOS' to word_tab.
append 'GYPPY' to word_tab.
append 'GYPSY' to word_tab.
append 'GYRAL' to word_tab.
append 'GYRED' to word_tab.
append 'GYRES' to word_tab.
append 'GYRON' to word_tab.
append 'GYROS' to word_tab.
append 'GYRUS' to word_tab.
append 'GYTES' to word_tab.
append 'GYVED' to word_tab.
append 'GYVES' to word_tab.
append 'HAAFS' to word_tab.
append 'HAARS' to word_tab.
append 'HABIT' to word_tab.
append 'HABLE' to word_tab.
append 'HABUS' to word_tab.
append 'HACEK' to word_tab.
append 'HACKS' to word_tab.
append 'HADAL' to word_tab.
append 'HADED' to word_tab.
append 'HADES' to word_tab.
append 'HADJI' to word_tab.
append 'HADST' to word_tab.
append 'HAEMS' to word_tab.
append 'HAETS' to word_tab.
append 'HAFFS' to word_tab.
append 'HAFIZ' to word_tab.
append 'HAFTS' to word_tab.
append 'HAGGS' to word_tab.
append 'HAHAS' to word_tab.
append 'HAICK' to word_tab.
append 'HAIKA' to word_tab.
append 'HAIKS' to word_tab.
append 'HAIKU' to word_tab.
append 'HAILS' to word_tab.
append 'HAILY' to word_tab.
append 'HAINS' to word_tab.
append 'HAINT' to word_tab.
append 'HAIRS' to word_tab.
append 'HAIRY' to word_tab.
append 'HAITH' to word_tab.
append 'HAJES' to word_tab.
append 'HAJIS' to word_tab.
append 'HAJJI' to word_tab.
append 'HAKAM' to word_tab.
append 'HAKAS' to word_tab.
append 'HAKEA' to word_tab.
append 'HAKES' to word_tab.
append 'HAKIM' to word_tab.
append 'HAKUS' to word_tab.
append 'HALAL' to word_tab.
append 'HALED' to word_tab.
append 'HALER' to word_tab.
append 'HALES' to word_tab.
append 'HALFA' to word_tab.
append 'HALFS' to word_tab.
append 'HALID' to word_tab.
append 'HALLO' to word_tab.
append 'HALLS' to word_tab.
append 'HALMA' to word_tab.
append 'HALMS' to word_tab.
append 'HALON' to word_tab.
append 'HALOS' to word_tab.
append 'HALSE' to word_tab.
append 'HALTS' to word_tab.
append 'HALVA' to word_tab.
append 'HALVE' to word_tab.
append 'HALWA' to word_tab.
append 'HAMAL' to word_tab.
append 'HAMBA' to word_tab.
append 'HAMED' to word_tab.
append 'HAMES' to word_tab.
append 'HAMMY' to word_tab.
append 'HAMZA' to word_tab.
append 'HANAP' to word_tab.
append 'HANCE' to word_tab.
append 'HANCH' to word_tab.
append 'HANDS' to word_tab.
append 'HANDY' to word_tab.
append 'HANGI' to word_tab.
append 'HANGS' to word_tab.
append 'HANKS' to word_tab.
append 'HANKY' to word_tab.
append 'HANSA' to word_tab.
append 'HANSE' to word_tab.
append 'HANTS' to word_tab.
append 'HAOMA' to word_tab.
append 'HAPAX' to word_tab.
append 'HAPLY' to word_tab.
append 'HAPPI' to word_tab.
append 'HAPPY' to word_tab.
append 'HAPUS' to word_tab.
append 'HARAM' to word_tab.
append 'HARDS' to word_tab.
append 'HARDY' to word_tab.
append 'HARED' to word_tab.
append 'HAREM' to word_tab.
append 'HARES' to word_tab.
append 'HARIM' to word_tab.
append 'HARKS' to word_tab.
append 'HARLS' to word_tab.
append 'HARMS' to word_tab.
append 'HARNS' to word_tab.
append 'HAROS' to word_tab.
append 'HARPS' to word_tab.
append 'HARPY' to word_tab.
append 'HARRY' to word_tab.
append 'HARSH' to word_tab.
append 'HARTS' to word_tab.
append 'HASHY' to word_tab.
append 'HASKS' to word_tab.
append 'HASPS' to word_tab.
append 'HASTA' to word_tab.
append 'HASTE' to word_tab.
append 'HASTY' to word_tab.
append 'HATCH' to word_tab.
append 'HATED' to word_tab.
append 'HATER' to word_tab.
append 'HATES' to word_tab.
append 'HATHA' to word_tab.
append 'HAUDS' to word_tab.
append 'HAUFS' to word_tab.
append 'HAUGH' to word_tab.
append 'HAULD' to word_tab.
append 'HAULM' to word_tab.
append 'HAULS' to word_tab.
append 'HAULT' to word_tab.
append 'HAUNS' to word_tab.
append 'HAUNT' to word_tab.
append 'HAUSE' to word_tab.
append 'HAUTE' to word_tab.
append 'HAVEN' to word_tab.
append 'HAVER' to word_tab.
append 'HAVES' to word_tab.
append 'HAVOC' to word_tab.
append 'HAWED' to word_tab.
append 'HAWKS' to word_tab.
append 'HAWMS' to word_tab.
append 'HAWSE' to word_tab.
append 'HAYED' to word_tab.
append 'HAYER' to word_tab.
append 'HAYEY' to word_tab.
append 'HAYLE' to word_tab.
append 'HAZAN' to word_tab.
append 'HAZED' to word_tab.
append 'HAZEL' to word_tab.
append 'HAZER' to word_tab.
append 'HAZES' to word_tab.
append 'HEADS' to word_tab.
append 'HEADY' to word_tab.
append 'HEALD' to word_tab.
append 'HEALS' to word_tab.
append 'HEAME' to word_tab.
append 'HEAPS' to word_tab.
append 'HEAPY' to word_tab.
append 'HEARD' to word_tab.
append 'HEARE' to word_tab.
append 'HEARS' to word_tab.
append 'HEART' to word_tab.
append 'HEAST' to word_tab.
append 'HEATH' to word_tab.
append 'HEATS' to word_tab.
append 'HEAVE' to word_tab.
append 'HEAVY' to word_tab.
append 'HEBEN' to word_tab.
append 'HEBES' to word_tab.
append 'HECHT' to word_tab.
append 'HECKS' to word_tab.
append 'HEDER' to word_tab.
append 'HEDGE' to word_tab.
append 'HEDGY' to word_tab.
append 'HEEDS' to word_tab.
append 'HEEDY' to word_tab.
append 'HEELS' to word_tab.
append 'HEEZE' to word_tab.
append 'HEFTE' to word_tab.
append 'HEFTS' to word_tab.
append 'HEFTY' to word_tab.
append 'HEIDS' to word_tab.
append 'HEIGH' to word_tab.
append 'HEILS' to word_tab.
append 'HEIRS' to word_tab.
append 'HEIST' to word_tab.
append 'HEJAB' to word_tab.
append 'HEJRA' to word_tab.
append 'HELED' to word_tab.
append 'HELES' to word_tab.
append 'HELIO' to word_tab.
append 'HELIX' to word_tab.
append 'HELLO' to word_tab.
append 'HELLS' to word_tab.
append 'HELMS' to word_tab.
append 'HELOS' to word_tab.
append 'HELOT' to word_tab.
append 'HELPS' to word_tab.
append 'HELVE' to word_tab.
append 'HEMAL' to word_tab.
append 'HEMES' to word_tab.
append 'HEMIC' to word_tab.
append 'HEMIN' to word_tab.
append 'HEMPS' to word_tab.
append 'HEMPY' to word_tab.
append 'HENCE' to word_tab.
append 'HENCH' to word_tab.
append 'HENDS' to word_tab.
append 'HENGE' to word_tab.
append 'HENNA' to word_tab.
append 'HENNY' to word_tab.
append 'HENRY' to word_tab.
append 'HENTS' to word_tab.
append 'HEPAR' to word_tab.
append 'HERBS' to word_tab.
append 'HERBY' to word_tab.
append 'HERDS' to word_tab.
append 'HERES' to word_tab.
append 'HERLS' to word_tab.
append 'HERMA' to word_tab.
append 'HERMS' to word_tab.
append 'HERNS' to word_tab.
append 'HERON' to word_tab.
append 'HEROS' to word_tab.
append 'HERRY' to word_tab.
append 'HERSE' to word_tab.
append 'HERTZ' to word_tab.
append 'HERYE' to word_tab.
append 'HESPS' to word_tab.
append 'HESTS' to word_tab.
append 'HETES' to word_tab.
append 'HETHS' to word_tab.
append 'HEUCH' to word_tab.
append 'HEUGH' to word_tab.
append 'HEVEA' to word_tab.
append 'HEWED' to word_tab.
append 'HEWER' to word_tab.
append 'HEWGH' to word_tab.
append 'HEXAD' to word_tab.
append 'HEXED' to word_tab.
append 'HEXER' to word_tab.
append 'HEXES' to word_tab.
append 'HEXYL' to word_tab.
append 'HEYED' to word_tab.
append 'HIANT' to word_tab.
append 'HICKS' to word_tab.
append 'HIDED' to word_tab.
append 'HIDER' to word_tab.
append 'HIDES' to word_tab.
append 'HIEMS' to word_tab.
append 'HIGHS' to word_tab.
append 'HIGHT' to word_tab.
append 'HIJAB' to word_tab.
append 'HIJRA' to word_tab.
append 'HIKED' to word_tab.
append 'HIKER' to word_tab.
append 'HIKES' to word_tab.
append 'HIKOI' to word_tab.
append 'HILAR' to word_tab.
append 'HILCH' to word_tab.
append 'HILLO' to word_tab.
append 'HILLS' to word_tab.
append 'HILLY' to word_tab.
append 'HILTS' to word_tab.
append 'HILUM' to word_tab.
append 'HILUS' to word_tab.
append 'HIMBO' to word_tab.
append 'HINAU' to word_tab.
append 'HINDS' to word_tab.
append 'HINGE' to word_tab.
append 'HINGS' to word_tab.
append 'HINKY' to word_tab.
append 'HINNY' to word_tab.
append 'HINTS' to word_tab.
append 'HIOIS' to word_tab.
append 'HIPLY' to word_tab.
append 'HIPPO' to word_tab.
append 'HIPPY' to word_tab.
append 'HIRED' to word_tab.
append 'HIREE' to word_tab.
append 'HIRER' to word_tab.
append 'HIRES' to word_tab.
append 'HISSY' to word_tab.
append 'HISTS' to word_tab.
append 'HITCH' to word_tab.
append 'HITHE' to word_tab.
append 'HIVED' to word_tab.
append 'HIVER' to word_tab.
append 'HIVES' to word_tab.
append 'HIZEN' to word_tab.
append 'HOAED' to word_tab.
append 'HOAGY' to word_tab.
append 'HOARD' to word_tab.
append 'HOARS' to word_tab.
append 'HOARY' to word_tab.
append 'HOAST' to word_tab.
append 'HOBBY' to word_tab.
append 'HOBOS' to word_tab.
append 'HOCKS' to word_tab.
append 'HOCUS' to word_tab.
append 'HODAD' to word_tab.
append 'HODJA' to word_tab.
append 'HOERS' to word_tab.
append 'HOGAN' to word_tab.
append 'HOGEN' to word_tab.
append 'HOGGS' to word_tab.
append 'HOGHS' to word_tab.
append 'HOHED' to word_tab.
append 'HOICK' to word_tab.
append 'HOIED' to word_tab.
append 'HOIKS' to word_tab.
append 'HOING' to word_tab.
append 'HOISE' to word_tab.
append 'HOIST' to word_tab.
append 'HOKAS' to word_tab.
append 'HOKED' to word_tab.
append 'HOKES' to word_tab.
append 'HOKEY' to word_tab.
append 'HOKIS' to word_tab.
append 'HOKKU' to word_tab.
append 'HOKUM' to word_tab.
append 'HOLDS' to word_tab.
append 'HOLED' to word_tab.
append 'HOLES' to word_tab.
append 'HOLEY' to word_tab.
append 'HOLKS' to word_tab.
append 'HOLLA' to word_tab.
append 'HOLLO' to word_tab.
append 'HOLLY' to word_tab.
append 'HOLME' to word_tab.
append 'HOLMS' to word_tab.
append 'HOLON' to word_tab.
append 'HOLOS' to word_tab.
append 'HOLTS' to word_tab.
append 'HOMAS' to word_tab.
append 'HOMED' to word_tab.
append 'HOMER' to word_tab.
append 'HOMES' to word_tab.
append 'HOMEY' to word_tab.
append 'HOMIE' to word_tab.
append 'HOMME' to word_tab.
append 'HOMOS' to word_tab.
append 'HONAN' to word_tab.
append 'HONDA' to word_tab.
append 'HONDS' to word_tab.
append 'HONED' to word_tab.
append 'HONER' to word_tab.
append 'HONES' to word_tab.
append 'HONEY' to word_tab.
append 'HONGI' to word_tab.
append 'HONGS' to word_tab.
append 'HONKS' to word_tab.
append 'HONOR' to word_tab.
append 'HOOCH' to word_tab.
append 'HOODS' to word_tab.
append 'HOODY' to word_tab.
append 'HOOEY' to word_tab.
append 'HOOFS' to word_tab.
append 'HOOKA' to word_tab.
append 'HOOKS' to word_tab.
append 'HOOKY' to word_tab.
append 'HOOLY' to word_tab.
append 'HOONS' to word_tab.
append 'HOOPS' to word_tab.
append 'HOORD' to word_tab.
append 'HOORS' to word_tab.
append 'HOOSH' to word_tab.
append 'HOOTS' to word_tab.
append 'HOOTY' to word_tab.
append 'HOOVE' to word_tab.
append 'HOPAK' to word_tab.
append 'HOPED' to word_tab.
append 'HOPER' to word_tab.
append 'HOPES' to word_tab.
append 'HOPPY' to word_tab.
append 'HORAH' to word_tab.
append 'HORAL' to word_tab.
append 'HORAS' to word_tab.
append 'HORDE' to word_tab.
append 'HORKS' to word_tab.
append 'HORME' to word_tab.
append 'HORNS' to word_tab.
append 'HORNY' to word_tab.
append 'HORSE' to word_tab.
append 'HORST' to word_tab.
append 'HORSY' to word_tab.
append 'HOSED' to word_tab.
append 'HOSEL' to word_tab.
append 'HOSEN' to word_tab.
append 'HOSER' to word_tab.
append 'HOSES' to word_tab.
append 'HOSEY' to word_tab.
append 'HOSTA' to word_tab.
append 'HOSTS' to word_tab.
append 'HOTCH' to word_tab.
append 'HOTEL' to word_tab.
append 'HOTEN' to word_tab.
append 'HOTLY' to word_tab.
append 'HOTTY' to word_tab.
append 'HOUFF' to word_tab.
append 'HOUFS' to word_tab.
append 'HOUGH' to word_tab.
append 'HOUND' to word_tab.
append 'HOURI' to word_tab.
append 'HOURS' to word_tab.
append 'HOUSE' to word_tab.
append 'HOUTS' to word_tab.
append 'HOVEA' to word_tab.
append 'HOVED' to word_tab.
append 'HOVEL' to word_tab.
append 'HOVEN' to word_tab.
append 'HOVER' to word_tab.
append 'HOVES' to word_tab.
append 'HOWBE' to word_tab.
append 'HOWDY' to word_tab.
append 'HOWES' to word_tab.
append 'HOWFF' to word_tab.
append 'HOWFS' to word_tab.
append 'HOWKS' to word_tab.
append 'HOWLS' to word_tab.
append 'HOWRE' to word_tab.
append 'HOWSO' to word_tab.
append 'HOXED' to word_tab.
append 'HOXES' to word_tab.
append 'HOYAS' to word_tab.
append 'HOYED' to word_tab.
append 'HOYLE' to word_tab.
append 'HUBBY' to word_tab.
append 'HUCKS' to word_tab.
append 'HUDNA' to word_tab.
append 'HUDUD' to word_tab.
append 'HUERS' to word_tab.
append 'HUFFS' to word_tab.
append 'HUFFY' to word_tab.
append 'HUGER' to word_tab.
append 'HUGGY' to word_tab.
append 'HUHUS' to word_tab.
append 'HUIAS' to word_tab.
append 'HULAS' to word_tab.
append 'HULES' to word_tab.
append 'HULKS' to word_tab.
append 'HULKY' to word_tab.
append 'HULLO' to word_tab.
append 'HULLS' to word_tab.
append 'HULLY' to word_tab.
append 'HUMAN' to word_tab.
append 'HUMAS' to word_tab.
append 'HUMFS' to word_tab.
append 'HUMIC' to word_tab.
append 'HUMID' to word_tab.
append 'HUMOR' to word_tab.
append 'HUMPH' to word_tab.
append 'HUMPS' to word_tab.
append 'HUMPY' to word_tab.
append 'HUMUS' to word_tab.
append 'HUNCH' to word_tab.
append 'HUNKS' to word_tab.
append 'HUNKY' to word_tab.
append 'HUNTS' to word_tab.
append 'HURDS' to word_tab.
append 'HURLS' to word_tab.
append 'HURLY' to word_tab.
append 'HURRA' to word_tab.
append 'HURRY' to word_tab.
append 'HURST' to word_tab.
append 'HURTS' to word_tab.
append 'HUSHY' to word_tab.
append 'HUSKS' to word_tab.
append 'HUSKY' to word_tab.
append 'HUSOS' to word_tab.
append 'HUSSY' to word_tab.
append 'HUTCH' to word_tab.
append 'HUTIA' to word_tab.
append 'HUZZA' to word_tab.
append 'HUZZY' to word_tab.
append 'HWYLS' to word_tab.
append 'HYDRA' to word_tab.
append 'HYDRO' to word_tab.
append 'HYENA' to word_tab.
append 'HYENS' to word_tab.
append 'HYGGE' to word_tab.
append 'HYING' to word_tab.
append 'HYKES' to word_tab.
append 'HYLAS' to word_tab.
append 'HYLEG' to word_tab.
append 'HYLES' to word_tab.
append 'HYLIC' to word_tab.
append 'HYMEN' to word_tab.
append 'HYMNS' to word_tab.
append 'HYNDE' to word_tab.
append 'HYOID' to word_tab.
append 'HYPED' to word_tab.
append 'HYPER' to word_tab.
append 'HYPES' to word_tab.
append 'HYPHA' to word_tab.
append 'HYPHY' to word_tab.
append 'HYPOS' to word_tab.
append 'HYRAX' to word_tab.
append 'HYSON' to word_tab.
append 'HYTHE' to word_tab.
append 'IAMBI' to word_tab.
append 'IAMBS' to word_tab.
append 'IBRIK' to word_tab.
append 'ICERS' to word_tab.
append 'ICHED' to word_tab.
append 'ICHES' to word_tab.
append 'ICHOR' to word_tab.
append 'ICIER' to word_tab.
append 'ICILY' to word_tab.
append 'ICING' to word_tab.
append 'ICKER' to word_tab.
append 'ICKLE' to word_tab.
append 'ICONS' to word_tab.
append 'ICTAL' to word_tab.
append 'ICTIC' to word_tab.
append 'ICTUS' to word_tab.
append 'IDANT' to word_tab.
append 'IDEAL' to word_tab.
append 'IDEAS' to word_tab.
append 'IDEES' to word_tab.
append 'IDENT' to word_tab.
append 'IDIOM' to word_tab.
append 'IDIOT' to word_tab.
append 'IDLED' to word_tab.
append 'IDLER' to word_tab.
append 'IDLES' to word_tab.
append 'IDOLA' to word_tab.
append 'IDOLS' to word_tab.
append 'IDYLL' to word_tab.
append 'IDYLS' to word_tab.
append 'IFTAR' to word_tab.
append 'IGAPO' to word_tab.
append 'IGGED' to word_tab.
append 'IGLOO' to word_tab.
append 'IGLUS' to word_tab.
append 'IHRAM' to word_tab.
append 'IKANS' to word_tab.
append 'IKATS' to word_tab.
append 'IKONS' to word_tab.
append 'ILEAC' to word_tab.
append 'ILEAL' to word_tab.
append 'ILEUM' to word_tab.
append 'ILEUS' to word_tab.
append 'ILIAC' to word_tab.
append 'ILIAD' to word_tab.
append 'ILIAL' to word_tab.
append 'ILIUM' to word_tab.
append 'ILLER' to word_tab.
append 'ILLTH' to word_tab.
append 'IMAGE' to word_tab.
append 'IMAGO' to word_tab.
append 'IMAMS' to word_tab.
append 'IMARI' to word_tab.
append 'IMAUM' to word_tab.
append 'IMBAR' to word_tab.
append 'IMBED' to word_tab.
append 'IMBUE' to word_tab.
append 'IMIDE' to word_tab.
append 'IMIDO' to word_tab.
append 'IMIDS' to word_tab.
append 'IMINE' to word_tab.
append 'IMINO' to word_tab.
append 'IMMEW' to word_tab.
append 'IMMIT' to word_tab.
append 'IMMIX' to word_tab.
append 'IMPED' to word_tab.
append 'IMPEL' to word_tab.
append 'IMPIS' to word_tab.
append 'IMPLY' to word_tab.
append 'IMPOT' to word_tab.
append 'IMPRO' to word_tab.
append 'IMSHI' to word_tab.
append 'IMSHY' to word_tab.
append 'INANE' to word_tab.
append 'INAPT' to word_tab.
append 'INARM' to word_tab.
append 'INBOX' to word_tab.
append 'INBYE' to word_tab.
append 'INCEL' to word_tab.
append 'INCLE' to word_tab.
append 'INCOG' to word_tab.
append 'INCUR' to word_tab.
append 'INCUS' to word_tab.
append 'INCUT' to word_tab.
append 'INDEW' to word_tab.
append 'INDEX' to word_tab.
append 'INDIA' to word_tab.
append 'INDIE' to word_tab.
append 'INDOL' to word_tab.
append 'INDOW' to word_tab.
append 'INDRI' to word_tab.
append 'INDUE' to word_tab.
append 'INEPT' to word_tab.
append 'INERM' to word_tab.
append 'INERT' to word_tab.
append 'INFER' to word_tab.
append 'INFIX' to word_tab.
append 'INFOS' to word_tab.
append 'INFRA' to word_tab.
append 'INGAN' to word_tab.
append 'INGLE' to word_tab.
append 'INGOT' to word_tab.
append 'INION' to word_tab.
append 'INKED' to word_tab.
append 'INKER' to word_tab.
append 'INKLE' to word_tab.
append 'INLAY' to word_tab.
append 'INLET' to word_tab.
append 'INNED' to word_tab.
append 'INNER' to word_tab.
append 'INNIT' to word_tab.
append 'INORB' to word_tab.
append 'INPUT' to word_tab.
append 'INRUN' to word_tab.
append 'INSET' to word_tab.
append 'INSPO' to word_tab.
append 'INTEL' to word_tab.
append 'INTER' to word_tab.
append 'INTIL' to word_tab.
append 'INTIS' to word_tab.
append 'INTRA' to word_tab.
append 'INTRO' to word_tab.
append 'INULA' to word_tab.
append 'INURE' to word_tab.
append 'INURN' to word_tab.
append 'INUST' to word_tab.
append 'INVAR' to word_tab.
append 'INWIT' to word_tab.
append 'IODIC' to word_tab.
append 'IODID' to word_tab.
append 'IODIN' to word_tab.
append 'IONIC' to word_tab.
append 'IOTAS' to word_tab.
append 'IPPON' to word_tab.
append 'IRADE' to word_tab.
append 'IRATE' to word_tab.
append 'IRIDS' to word_tab.
append 'IRING' to word_tab.
append 'IRKED' to word_tab.
append 'IROKO' to word_tab.
append 'IRONE' to word_tab.
append 'IRONS' to word_tab.
append 'IRONY' to word_tab.
append 'ISBAS' to word_tab.
append 'ISHES' to word_tab.
append 'ISLED' to word_tab.
append 'ISLES' to word_tab.
append 'ISLET' to word_tab.
append 'ISNAE' to word_tab.
append 'ISSEI' to word_tab.
append 'ISSUE' to word_tab.
append 'ISTLE' to word_tab.
append 'ITCHY' to word_tab.
append 'ITEMS' to word_tab.
append 'ITHER' to word_tab.
append 'IVIED' to word_tab.
append 'IVIES' to word_tab.
append 'IVORY' to word_tab.
append 'IXIAS' to word_tab.
append 'IXNAY' to word_tab.
append 'IXORA' to word_tab.
append 'IXTLE' to word_tab.
append 'IZARD' to word_tab.
append 'IZARS' to word_tab.
append 'IZZAT' to word_tab.
append 'JAAPS' to word_tab.
append 'JABOT' to word_tab.
append 'JACAL' to word_tab.
append 'JACKS' to word_tab.
append 'JACKY' to word_tab.
append 'JADED' to word_tab.
append 'JADES' to word_tab.
append 'JAFAS' to word_tab.
append 'JAFFA' to word_tab.
append 'JAGAS' to word_tab.
append 'JAGER' to word_tab.
append 'JAGGS' to word_tab.
append 'JAGGY' to word_tab.
append 'JAGIR' to word_tab.
append 'JAGRA' to word_tab.
append 'JAILS' to word_tab.
append 'JAKER' to word_tab.
append 'JAKES' to word_tab.
append 'JAKEY' to word_tab.
append 'JALAP' to word_tab.
append 'JALOP' to word_tab.
append 'JAMBE' to word_tab.
append 'JAMBO' to word_tab.
append 'JAMBS' to word_tab.
append 'JAMBU' to word_tab.
append 'JAMES' to word_tab.
append 'JAMMY' to word_tab.
append 'JAMON' to word_tab.
append 'JANES' to word_tab.
append 'JANNS' to word_tab.
append 'JANNY' to word_tab.
append 'JANTY' to word_tab.
append 'JAPAN' to word_tab.
append 'JAPED' to word_tab.
append 'JAPER' to word_tab.
append 'JAPES' to word_tab.
append 'JARKS' to word_tab.
append 'JARLS' to word_tab.
append 'JARPS' to word_tab.
append 'JARTA' to word_tab.
append 'JARUL' to word_tab.
append 'JASEY' to word_tab.
append 'JASPE' to word_tab.
append 'JASPS' to word_tab.
append 'JATOS' to word_tab.
append 'JAUKS' to word_tab.
append 'JAUNT' to word_tab.
append 'JAUPS' to word_tab.
append 'JAVAS' to word_tab.
append 'JAVEL' to word_tab.
append 'JAWAN' to word_tab.
append 'JAWED' to word_tab.
append 'JAXIE' to word_tab.
append 'JAZZY' to word_tab.
append 'JEANS' to word_tab.
append 'JEATS' to word_tab.
append 'JEBEL' to word_tab.
append 'JEDIS' to word_tab.
append 'JEELS' to word_tab.
append 'JEELY' to word_tab.
append 'JEEPS' to word_tab.
append 'JEERS' to word_tab.
append 'JEEZE' to word_tab.
append 'JEFES' to word_tab.
append 'JEFFS' to word_tab.
append 'JEHAD' to word_tab.
append 'JEHUS' to word_tab.
append 'JELAB' to word_tab.
append 'JELLO' to word_tab.
append 'JELLS' to word_tab.
append 'JELLY' to word_tab.
append 'JEMBE' to word_tab.
append 'JEMMY' to word_tab.
append 'JENNY' to word_tab.
append 'JEONS' to word_tab.
append 'JERID' to word_tab.
append 'JERKS' to word_tab.
append 'JERKY' to word_tab.
append 'JERRY' to word_tab.
append 'JESSE' to word_tab.
append 'JESTS' to word_tab.
append 'JESUS' to word_tab.
append 'JETES' to word_tab.
append 'JETON' to word_tab.
append 'JETTY' to word_tab.
append 'JEUNE' to word_tab.
append 'JEWEL' to word_tab.
append 'JEWIE' to word_tab.
append 'JHALA' to word_tab.
append 'JIAOS' to word_tab.
append 'JIBBA' to word_tab.
append 'JIBBS' to word_tab.
append 'JIBED' to word_tab.
append 'JIBER' to word_tab.
append 'JIBES' to word_tab.
append 'JIFFS' to word_tab.
append 'JIFFY' to word_tab.
append 'JIGGY' to word_tab.
append 'JIGOT' to word_tab.
append 'JIHAD' to word_tab.
append 'JILLS' to word_tab.
append 'JILTS' to word_tab.
append 'JIMMY' to word_tab.
append 'JIMPY' to word_tab.
append 'JINGO' to word_tab.
append 'JINKS' to word_tab.
append 'JINNE' to word_tab.
append 'JINNI' to word_tab.
append 'JINNS' to word_tab.
append 'JIRDS' to word_tab.
append 'JIRGA' to word_tab.
append 'JIRRE' to word_tab.
append 'JISMS' to word_tab.
append 'JIVED' to word_tab.
append 'JIVER' to word_tab.
append 'JIVES' to word_tab.
append 'JIVEY' to word_tab.
append 'JNANA' to word_tab.
append 'JOBED' to word_tab.
append 'JOBES' to word_tab.
append 'JOCKO' to word_tab.
append 'JOCKS' to word_tab.
append 'JOCKY' to word_tab.
append 'JOCOS' to word_tab.
append 'JODEL' to word_tab.
append 'JOEYS' to word_tab.
append 'JOHNS' to word_tab.
append 'JOINS' to word_tab.
append 'JOINT' to word_tab.
append 'JOIST' to word_tab.
append 'JOKED' to word_tab.
append 'JOKER' to word_tab.
append 'JOKES' to word_tab.
append 'JOKEY' to word_tab.
append 'JOKOL' to word_tab.
append 'JOLED' to word_tab.
append 'JOLES' to word_tab.
append 'JOLLS' to word_tab.
append 'JOLLY' to word_tab.
append 'JOLTS' to word_tab.
append 'JOLTY' to word_tab.
append 'JOMON' to word_tab.
append 'JOMOS' to word_tab.
append 'JONES' to word_tab.
append 'JONGS' to word_tab.
append 'JONTY' to word_tab.
append 'JOOKS' to word_tab.
append 'JORAM' to word_tab.
append 'JORUM' to word_tab.
append 'JOTAS' to word_tab.
append 'JOTTY' to word_tab.
append 'JOTUN' to word_tab.
append 'JOUAL' to word_tab.
append 'JOUGS' to word_tab.
append 'JOUKS' to word_tab.
append 'JOULE' to word_tab.
append 'JOURS' to word_tab.
append 'JOUST' to word_tab.
append 'JOWAR' to word_tab.
append 'JOWED' to word_tab.
append 'JOWLS' to word_tab.
append 'JOWLY' to word_tab.
append 'JOYED' to word_tab.
append 'JUBAS' to word_tab.
append 'JUBES' to word_tab.
append 'JUCOS' to word_tab.
append 'JUDAS' to word_tab.
append 'JUDGE' to word_tab.
append 'JUDGY' to word_tab.
append 'JUDOS' to word_tab.
append 'JUGAL' to word_tab.
append 'JUGUM' to word_tab.
append 'JUICE' to word_tab.
append 'JUICY' to word_tab.
append 'JUJUS' to word_tab.
append 'JUKED' to word_tab.
append 'JUKES' to word_tab.
append 'JUKUS' to word_tab.
append 'JULEP' to word_tab.
append 'JUMAR' to word_tab.
append 'JUMBO' to word_tab.
append 'JUMBY' to word_tab.
append 'JUMPS' to word_tab.
append 'JUMPY' to word_tab.
append 'JUNCO' to word_tab.
append 'JUNKS' to word_tab.
append 'JUNKY' to word_tab.
append 'JUNTA' to word_tab.
append 'JUNTO' to word_tab.
append 'JUPES' to word_tab.
append 'JUPON' to word_tab.
append 'JURAL' to word_tab.
append 'JURAT' to word_tab.
append 'JUREL' to word_tab.
append 'JURES' to word_tab.
append 'JUROR' to word_tab.
append 'JUSTS' to word_tab.
append 'JUTES' to word_tab.
append 'JUTTY' to word_tab.
append 'JUVES' to word_tab.
append 'JUVIE' to word_tab.
append 'KAAMA' to word_tab.
append 'KABAB' to word_tab.
append 'KABAR' to word_tab.
append 'KABOB' to word_tab.
append 'KACHA' to word_tab.
append 'KACKS' to word_tab.
append 'KADAI' to word_tab.
append 'KADES' to word_tab.
append 'KADIS' to word_tab.
append 'KAGOS' to word_tab.
append 'KAGUS' to word_tab.
append 'KAHAL' to word_tab.
append 'KAIAK' to word_tab.
append 'KAIDS' to word_tab.
append 'KAIES' to word_tab.
append 'KAIFS' to word_tab.
append 'KAIKA' to word_tab.
append 'KAIKS' to word_tab.
append 'KAILS' to word_tab.
append 'KAIMS' to word_tab.
append 'KAING' to word_tab.
append 'KAINS' to word_tab.
append 'KAKAS' to word_tab.
append 'KAKIS' to word_tab.
append 'KALAM' to word_tab.
append 'KALES' to word_tab.
append 'KALIF' to word_tab.
append 'KALIS' to word_tab.
append 'KALPA' to word_tab.
append 'KAMAS' to word_tab.
append 'KAMES' to word_tab.
append 'KAMIK' to word_tab.
append 'KAMIS' to word_tab.
append 'KAMME' to word_tab.
append 'KANAE' to word_tab.
append 'KANAS' to word_tab.
append 'KANDY' to word_tab.
append 'KANEH' to word_tab.
append 'KANES' to word_tab.
append 'KANGA' to word_tab.
append 'KANGS' to word_tab.
append 'KANJI' to word_tab.
append 'KANTS' to word_tab.
append 'KANZU' to word_tab.
append 'KAONS' to word_tab.
append 'KAPAS' to word_tab.
append 'KAPHS' to word_tab.
append 'KAPOK' to word_tab.
append 'KAPOW' to word_tab.
append 'KAPPA' to word_tab.
append 'KAPUS' to word_tab.
append 'KAPUT' to word_tab.
append 'KARAS' to word_tab.
append 'KARAT' to word_tab.
append 'KARKS' to word_tab.
append 'KARMA' to word_tab.
append 'KARNS' to word_tab.
append 'KAROO' to word_tab.
append 'KAROS' to word_tab.
append 'KARRI' to word_tab.
append 'KARST' to word_tab.
append 'KARSY' to word_tab.
append 'KARTS' to word_tab.
append 'KARZY' to word_tab.
append 'KASHA' to word_tab.
append 'KASME' to word_tab.
append 'KATAL' to word_tab.
append 'KATAS' to word_tab.
append 'KATIS' to word_tab.
append 'KATTI' to word_tab.
append 'KAUGH' to word_tab.
append 'KAURI' to word_tab.
append 'KAURU' to word_tab.
append 'KAURY' to word_tab.
append 'KAVAL' to word_tab.
append 'KAVAS' to word_tab.
append 'KAWAS' to word_tab.
append 'KAWAU' to word_tab.
append 'KAWED' to word_tab.
append 'KAYAK' to word_tab.
append 'KAYLE' to word_tab.
append 'KAYOS' to word_tab.
append 'KAZIS' to word_tab.
append 'KAZOO' to word_tab.
append 'KBARS' to word_tab.
append 'KEBAB' to word_tab.
append 'KEBAR' to word_tab.
append 'KEBOB' to word_tab.
append 'KECKS' to word_tab.
append 'KEDGE' to word_tab.
append 'KEDGY' to word_tab.
append 'KEECH' to word_tab.
append 'KEEFS' to word_tab.
append 'KEEKS' to word_tab.
append 'KEELS' to word_tab.
append 'KEEMA' to word_tab.
append 'KEENO' to word_tab.
append 'KEENS' to word_tab.
append 'KEEPS' to word_tab.
append 'KEETS' to word_tab.
append 'KEEVE' to word_tab.
append 'KEFIR' to word_tab.
append 'KEHUA' to word_tab.
append 'KEIRS' to word_tab.
append 'KELEP' to word_tab.
append 'KELIM' to word_tab.
append 'KELLS' to word_tab.
append 'KELLY' to word_tab.
append 'KELPS' to word_tab.
append 'KELPY' to word_tab.
append 'KELTS' to word_tab.
append 'KELTY' to word_tab.
append 'KEMBO' to word_tab.
append 'KEMBS' to word_tab.
append 'KEMPS' to word_tab.
append 'KEMPT' to word_tab.
append 'KEMPY' to word_tab.
append 'KENAF' to word_tab.
append 'KENCH' to word_tab.
append 'KENDO' to word_tab.
append 'KENOS' to word_tab.
append 'KENTE' to word_tab.
append 'KENTS' to word_tab.
append 'KEPIS' to word_tab.
append 'KERBS' to word_tab.
append 'KEREL' to word_tab.
append 'KERFS' to word_tab.
append 'KERKY' to word_tab.
append 'KERMA' to word_tab.
append 'KERNE' to word_tab.
append 'KERNS' to word_tab.
append 'KEROS' to word_tab.
append 'KERRY' to word_tab.
append 'KERVE' to word_tab.
append 'KESAR' to word_tab.
append 'KESTS' to word_tab.
append 'KETAS' to word_tab.
append 'KETCH' to word_tab.
append 'KETES' to word_tab.
append 'KETOL' to word_tab.
append 'KEVEL' to word_tab.
append 'KEVIL' to word_tab.
append 'KEXES' to word_tab.
append 'KEYED' to word_tab.
append 'KEYER' to word_tab.
append 'KHADI' to word_tab.
append 'KHAFS' to word_tab.
append 'KHAKI' to word_tab.
append 'KHANS' to word_tab.
append 'KHAPH' to word_tab.
append 'KHATS' to word_tab.
append 'KHAYA' to word_tab.
append 'KHAZI' to word_tab.
append 'KHEDA' to word_tab.
append 'KHETH' to word_tab.
append 'KHETS' to word_tab.
append 'KHOJA' to word_tab.
append 'KHORS' to word_tab.
append 'KHOUM' to word_tab.
append 'KHUDS' to word_tab.
append 'KIAAT' to word_tab.
append 'KIACK' to word_tab.
append 'KIANG' to word_tab.
append 'KIBBE' to word_tab.
append 'KIBBI' to word_tab.
append 'KIBEI' to word_tab.
append 'KIBES' to word_tab.
append 'KIBLA' to word_tab.
append 'KICKS' to word_tab.
append 'KICKY' to word_tab.
append 'KIDDO' to word_tab.
append 'KIDDY' to word_tab.
append 'KIDEL' to word_tab.
append 'KIDGE' to word_tab.
append 'KIEFS' to word_tab.
append 'KIERS' to word_tab.
append 'KIEVE' to word_tab.
append 'KIEVS' to word_tab.
append 'KIGHT' to word_tab.
append 'KIKOI' to word_tab.
append 'KILEY' to word_tab.
append 'KILIM' to word_tab.
append 'KILLS' to word_tab.
append 'KILNS' to word_tab.
append 'KILOS' to word_tab.
append 'KILPS' to word_tab.
append 'KILTS' to word_tab.
append 'KILTY' to word_tab.
append 'KIMBO' to word_tab.
append 'KINAS' to word_tab.
append 'KINDA' to word_tab.
append 'KINDS' to word_tab.
append 'KINDY' to word_tab.
append 'KINES' to word_tab.
append 'KINGS' to word_tab.
append 'KININ' to word_tab.
append 'KINKS' to word_tab.
append 'KINKY' to word_tab.
append 'KINOS' to word_tab.
append 'KIORE' to word_tab.
append 'KIOSK' to word_tab.
append 'KIPES' to word_tab.
append 'KIPPA' to word_tab.
append 'KIPPS' to word_tab.
append 'KIRBY' to word_tab.
append 'KIRKS' to word_tab.
append 'KIRNS' to word_tab.
append 'KIRRI' to word_tab.
append 'KISAN' to word_tab.
append 'KISSY' to word_tab.
append 'KISTS' to word_tab.
append 'KITED' to word_tab.
append 'KITER' to word_tab.
append 'KITES' to word_tab.
append 'KITHE' to word_tab.
append 'KITHS' to word_tab.
append 'KITTY' to word_tab.
append 'KITUL' to word_tab.
append 'KIVAS' to word_tab.
append 'KIWIS' to word_tab.
append 'KLANG' to word_tab.
append 'KLAPS' to word_tab.
append 'KLETT' to word_tab.
append 'KLICK' to word_tab.
append 'KLIEG' to word_tab.
append 'KLIKS' to word_tab.
append 'KLONG' to word_tab.
append 'KLOOF' to word_tab.
append 'KLUGE' to word_tab.
append 'KLUTZ' to word_tab.
append 'KNACK' to word_tab.
append 'KNAGS' to word_tab.
append 'KNAPS' to word_tab.
append 'KNARL' to word_tab.
append 'KNARS' to word_tab.
append 'KNAUR' to word_tab.
append 'KNAVE' to word_tab.
append 'KNAWE' to word_tab.
append 'KNEAD' to word_tab.
append 'KNEED' to word_tab.
append 'KNEEL' to word_tab.
append 'KNEES' to word_tab.
append 'KNELL' to word_tab.
append 'KNELT' to word_tab.
append 'KNIFE' to word_tab.
append 'KNISH' to word_tab.
append 'KNITS' to word_tab.
append 'KNIVE' to word_tab.
append 'KNOBS' to word_tab.
append 'KNOCK' to word_tab.
append 'KNOLL' to word_tab.
append 'KNOPS' to word_tab.
append 'KNOSP' to word_tab.
append 'KNOTS' to word_tab.
append 'KNOUT' to word_tab.
append 'KNOWE' to word_tab.
append 'KNOWN' to word_tab.
append 'KNOWS' to word_tab.
append 'KNUBS' to word_tab.
append 'KNURL' to word_tab.
append 'KNURR' to word_tab.
append 'KNURS' to word_tab.
append 'KNUTS' to word_tab.
append 'KOALA' to word_tab.
append 'KOANS' to word_tab.
append 'KOAPS' to word_tab.
append 'KOBAN' to word_tab.
append 'KOBOS' to word_tab.
append 'KOELS' to word_tab.
append 'KOFFS' to word_tab.
append 'KOFTA' to word_tab.
append 'KOGAL' to word_tab.
append 'KOHAS' to word_tab.
append 'KOHEN' to word_tab.
append 'KOHLS' to word_tab.
append 'KOINE' to word_tab.
append 'KOJIS' to word_tab.
append 'KOKAM' to word_tab.
append 'KOKAS' to word_tab.
append 'KOKER' to word_tab.
append 'KOKRA' to word_tab.
append 'KOKUM' to word_tab.
append 'KOLAS' to word_tab.
append 'KOLOS' to word_tab.
append 'KOMBU' to word_tab.
append 'KONBU' to word_tab.
append 'KONDO' to word_tab.
append 'KONKS' to word_tab.
append 'KOOKS' to word_tab.
append 'KOOKY' to word_tab.
append 'KOORI' to word_tab.
append 'KOPEK' to word_tab.
append 'KOPHS' to word_tab.
append 'KOPJE' to word_tab.
append 'KOPPA' to word_tab.
append 'KORAI' to word_tab.
append 'KORAS' to word_tab.
append 'KORAT' to word_tab.
append 'KORES' to word_tab.
append 'KORMA' to word_tab.
append 'KOROS' to word_tab.
append 'KORUN' to word_tab.
append 'KORUS' to word_tab.
append 'KOSES' to word_tab.
append 'KOTCH' to word_tab.
append 'KOTOS' to word_tab.
append 'KOTOW' to word_tab.
append 'KOURA' to word_tab.
append 'KRAAL' to word_tab.
append 'KRABS' to word_tab.
append 'KRAFT' to word_tab.
append 'KRAIS' to word_tab.
append 'KRAIT' to word_tab.
append 'KRANG' to word_tab.
append 'KRANS' to word_tab.
append 'KRANZ' to word_tab.
append 'KRAUT' to word_tab.
append 'KRAYS' to word_tab.
append 'KREEP' to word_tab.
append 'KRENG' to word_tab.
append 'KREWE' to word_tab.
append 'KRILL' to word_tab.
append 'KRONA' to word_tab.
append 'KRONE' to word_tab.
append 'KROON' to word_tab.
append 'KRUBI' to word_tab.
append 'KRUNK' to word_tab.
append 'KSARS' to word_tab.
append 'KUBIE' to word_tab.
append 'KUDOS' to word_tab.
append 'KUDUS' to word_tab.
append 'KUDZU' to word_tab.
append 'KUFIS' to word_tab.
append 'KUGEL' to word_tab.
append 'KUIAS' to word_tab.
append 'KUKRI' to word_tab.
append 'KUKUS' to word_tab.
append 'KULAK' to word_tab.
append 'KULAN' to word_tab.
append 'KULAS' to word_tab.
append 'KULFI' to word_tab.
append 'KUMIS' to word_tab.
append 'KUMYS' to word_tab.
append 'KURIS' to word_tab.
append 'KURRE' to word_tab.
append 'KURTA' to word_tab.
append 'KURUS' to word_tab.
append 'KUSSO' to word_tab.
append 'KUTAS' to word_tab.
append 'KUTCH' to word_tab.
append 'KUTIS' to word_tab.
append 'KUTUS' to word_tab.
append 'KUZUS' to word_tab.
append 'KVASS' to word_tab.
append 'KVELL' to word_tab.
append 'KWELA' to word_tab.
append 'KYACK' to word_tab.
append 'KYAKS' to word_tab.
append 'KYANG' to word_tab.
append 'KYARS' to word_tab.
append 'KYATS' to word_tab.
append 'KYBOS' to word_tab.
append 'KYDST' to word_tab.
append 'KYLES' to word_tab.
append 'KYLIE' to word_tab.
append 'KYLIN' to word_tab.
append 'KYLIX' to word_tab.
append 'KYLOE' to word_tab.
append 'KYNDE' to word_tab.
append 'KYNDS' to word_tab.
append 'KYPES' to word_tab.
append 'KYRIE' to word_tab.
append 'KYTES' to word_tab.
append 'KYTHE' to word_tab.
append 'LAARI' to word_tab.
append 'LABDA' to word_tab.
append 'LABEL' to word_tab.
append 'LABIA' to word_tab.
append 'LABIS' to word_tab.
append 'LABOR' to word_tab.
append 'LABRA' to word_tab.
append 'LACED' to word_tab.
append 'LACER' to word_tab.
append 'LACES' to word_tab.
append 'LACET' to word_tab.
append 'LACEY' to word_tab.
append 'LACKS' to word_tab.
append 'LADDY' to word_tab.
append 'LADED' to word_tab.
append 'LADEN' to word_tab.
append 'LADER' to word_tab.
append 'LADES' to word_tab.
append 'LADLE' to word_tab.
append 'LAERS' to word_tab.
append 'LAEVO' to word_tab.
append 'LAGAN' to word_tab.
append 'LAGER' to word_tab.
append 'LAHAL' to word_tab.
append 'LAHAR' to word_tab.
append 'LAICH' to word_tab.
append 'LAICS' to word_tab.
append 'LAIDS' to word_tab.
append 'LAIGH' to word_tab.
append 'LAIKA' to word_tab.
append 'LAIKS' to word_tab.
append 'LAIRD' to word_tab.
append 'LAIRS' to word_tab.
append 'LAIRY' to word_tab.
append 'LAITH' to word_tab.
append 'LAITY' to word_tab.
append 'LAKED' to word_tab.
append 'LAKER' to word_tab.
append 'LAKES' to word_tab.
append 'LAKHS' to word_tab.
append 'LAKIN' to word_tab.
append 'LAKSA' to word_tab.
append 'LALDY' to word_tab.
append 'LALLS' to word_tab.
append 'LAMAS' to word_tab.
append 'LAMBS' to word_tab.
append 'LAMBY' to word_tab.
append 'LAMED' to word_tab.
append 'LAMER' to word_tab.
append 'LAMES' to word_tab.
append 'LAMIA' to word_tab.
append 'LAMMY' to word_tab.
append 'LAMPS' to word_tab.
append 'LANAI' to word_tab.
append 'LANAS' to word_tab.
append 'LANCE' to word_tab.
append 'LANCH' to word_tab.
append 'LANDE' to word_tab.
append 'LANDS' to word_tab.
append 'LANES' to word_tab.
append 'LANKS' to word_tab.
append 'LANKY' to word_tab.
append 'LANTS' to word_tab.
append 'LAPEL' to word_tab.
append 'LAPIN' to word_tab.
append 'LAPIS' to word_tab.
append 'LAPJE' to word_tab.
append 'LAPSE' to word_tab.
append 'LARCH' to word_tab.
append 'LARDS' to word_tab.
append 'LARDY' to word_tab.
append 'LAREE' to word_tab.
append 'LARES' to word_tab.
append 'LARGE' to word_tab.
append 'LARGO' to word_tab.
append 'LARIS' to word_tab.
append 'LARKS' to word_tab.
append 'LARKY' to word_tab.
append 'LARNS' to word_tab.
append 'LARNT' to word_tab.
append 'LARUM' to word_tab.
append 'LARVA' to word_tab.
append 'LASED' to word_tab.
append 'LASER' to word_tab.
append 'LASES' to word_tab.
append 'LASSI' to word_tab.
append 'LASSO' to word_tab.
append 'LASSU' to word_tab.
append 'LASSY' to word_tab.
append 'LASTS' to word_tab.
append 'LATAH' to word_tab.
append 'LATCH' to word_tab.
append 'LATED' to word_tab.
append 'LATEN' to word_tab.
append 'LATER' to word_tab.
append 'LATEX' to word_tab.
append 'LATHE' to word_tab.
append 'LATHI' to word_tab.
append 'LATHS' to word_tab.
append 'LATHY' to word_tab.
append 'LATKE' to word_tab.
append 'LATTE' to word_tab.
append 'LATUS' to word_tab.
append 'LAUAN' to word_tab.
append 'LAUCH' to word_tab.
append 'LAUDS' to word_tab.
append 'LAUFS' to word_tab.
append 'LAUGH' to word_tab.
append 'LAUND' to word_tab.
append 'LAURA' to word_tab.
append 'LAVAL' to word_tab.
append 'LAVAS' to word_tab.
append 'LAVED' to word_tab.
append 'LAVER' to word_tab.
append 'LAVES' to word_tab.
append 'LAVRA' to word_tab.
append 'LAVVY' to word_tab.
append 'LAWED' to word_tab.
append 'LAWER' to word_tab.
append 'LAWIN' to word_tab.
append 'LAWKS' to word_tab.
append 'LAWNS' to word_tab.
append 'LAWNY' to word_tab.
append 'LAXED' to word_tab.
append 'LAXER' to word_tab.
append 'LAXES' to word_tab.
append 'LAXLY' to word_tab.
append 'LAYED' to word_tab.
append 'LAYER' to word_tab.
append 'LAYIN' to word_tab.
append 'LAYUP' to word_tab.
append 'LAZAR' to word_tab.
append 'LAZED' to word_tab.
append 'LAZES' to word_tab.
append 'LAZOS' to word_tab.
append 'LAZZI' to word_tab.
append 'LAZZO' to word_tab.
append 'LEACH' to word_tab.
append 'LEADS' to word_tab.
append 'LEADY' to word_tab.
append 'LEAFS' to word_tab.
append 'LEAFY' to word_tab.
append 'LEAKS' to word_tab.
append 'LEAKY' to word_tab.
append 'LEAMS' to word_tab.
append 'LEANS' to word_tab.
append 'LEANT' to word_tab.
append 'LEANY' to word_tab.
append 'LEAPS' to word_tab.
append 'LEAPT' to word_tab.
append 'LEARE' to word_tab.
append 'LEARN' to word_tab.
append 'LEARS' to word_tab.
append 'LEARY' to word_tab.
append 'LEASE' to word_tab.
append 'LEASH' to word_tab.
append 'LEAST' to word_tab.
append 'LEATS' to word_tab.
append 'LEAVE' to word_tab.
append 'LEAVY' to word_tab.
append 'LEAZE' to word_tab.
append 'LEBEN' to word_tab.
append 'LECCY' to word_tab.
append 'LEDES' to word_tab.
append 'LEDGE' to word_tab.
append 'LEDGY' to word_tab.
append 'LEDUM' to word_tab.
append 'LEEAR' to word_tab.
append 'LEECH' to word_tab.
append 'LEEKS' to word_tab.
append 'LEEPS' to word_tab.
append 'LEERS' to word_tab.
append 'LEERY' to word_tab.
append 'LEESE' to word_tab.
append 'LEETS' to word_tab.
append 'LEEZE' to word_tab.
append 'LEFTE' to word_tab.
append 'LEFTS' to word_tab.
append 'LEFTY' to word_tab.
append 'LEGAL' to word_tab.
append 'LEGER' to word_tab.
append 'LEGES' to word_tab.
append 'LEGGE' to word_tab.
append 'LEGGO' to word_tab.
append 'LEGGY' to word_tab.
append 'LEGIT' to word_tab.
append 'LEHRS' to word_tab.
append 'LEHUA' to word_tab.
append 'LEIRS' to word_tab.
append 'LEISH' to word_tab.
append 'LEMAN' to word_tab.
append 'LEMED' to word_tab.
append 'LEMEL' to word_tab.
append 'LEMES' to word_tab.
append 'LEMMA' to word_tab.
append 'LEMME' to word_tab.
append 'LEMON' to word_tab.
append 'LEMUR' to word_tab.
append 'LENDS' to word_tab.
append 'LENES' to word_tab.
append 'LENGS' to word_tab.
append 'LENIS' to word_tab.
append 'LENOS' to word_tab.
append 'LENSE' to word_tab.
append 'LENTI' to word_tab.
append 'LENTO' to word_tab.
append 'LEONE' to word_tab.
append 'LEPER' to word_tab.
append 'LEPID' to word_tab.
append 'LEPRA' to word_tab.
append 'LEPTA' to word_tab.
append 'LERED' to word_tab.
append 'LERES' to word_tab.
append 'LERPS' to word_tab.
append 'LESTS' to word_tab.
append 'LETCH' to word_tab.
append 'LETHE' to word_tab.
append 'LETUP' to word_tab.
append 'LEUCH' to word_tab.
append 'LEUCO' to word_tab.
append 'LEUDS' to word_tab.
append 'LEUGH' to word_tab.
append 'LEVAS' to word_tab.
append 'LEVEE' to word_tab.
append 'LEVEL' to word_tab.
append 'LEVER' to word_tab.
append 'LEVES' to word_tab.
append 'LEVIN' to word_tab.
append 'LEVIS' to word_tab.
append 'LEWIS' to word_tab.
append 'LEXES' to word_tab.
append 'LEXIS' to word_tab.
append 'LIANA' to word_tab.
append 'LIANE' to word_tab.
append 'LIANG' to word_tab.
append 'LIARD' to word_tab.
append 'LIARS' to word_tab.
append 'LIART' to word_tab.
append 'LIBEL' to word_tab.
append 'LIBER' to word_tab.
append 'LIBRA' to word_tab.
append 'LIBRI' to word_tab.
append 'LICHI' to word_tab.
append 'LICHT' to word_tab.
append 'LICIT' to word_tab.
append 'LICKS' to word_tab.
append 'LIDAR' to word_tab.
append 'LIDOS' to word_tab.
append 'LIEFS' to word_tab.
append 'LIEGE' to word_tab.
append 'LIENS' to word_tab.
append 'LIERS' to word_tab.
append 'LIEUS' to word_tab.
append 'LIEVE' to word_tab.
append 'LIFER' to word_tab.
append 'LIFES' to word_tab.
append 'LIFTS' to word_tab.
append 'LIGAN' to word_tab.
append 'LIGER' to word_tab.
append 'LIGGE' to word_tab.
append 'LIGHT' to word_tab.
append 'LIGNE' to word_tab.
append 'LIKED' to word_tab.
append 'LIKEN' to word_tab.
append 'LIKER' to word_tab.
append 'LIKES' to word_tab.
append 'LIKIN' to word_tab.
append 'LILAC' to word_tab.
append 'LILLS' to word_tab.
append 'LILOS' to word_tab.
append 'LILTS' to word_tab.
append 'LIMAN' to word_tab.
append 'LIMAS' to word_tab.
append 'LIMAX' to word_tab.
append 'LIMBA' to word_tab.
append 'LIMBI' to word_tab.
append 'LIMBO' to word_tab.
append 'LIMBS' to word_tab.
append 'LIMBY' to word_tab.
append 'LIMED' to word_tab.
append 'LIMEN' to word_tab.
append 'LIMES' to word_tab.
append 'LIMEY' to word_tab.
append 'LIMIT' to word_tab.
append 'LIMMA' to word_tab.
append 'LIMNS' to word_tab.
append 'LIMOS' to word_tab.
append 'LIMPA' to word_tab.
append 'LIMPS' to word_tab.
append 'LINAC' to word_tab.
append 'LINCH' to word_tab.
append 'LINDS' to word_tab.
append 'LINDY' to word_tab.
append 'LINED' to word_tab.
append 'LINEN' to word_tab.
append 'LINER' to word_tab.
append 'LINES' to word_tab.
append 'LINEY' to word_tab.
append 'LINGA' to word_tab.
append 'LINGO' to word_tab.
append 'LINGS' to word_tab.
append 'LINGY' to word_tab.
append 'LININ' to word_tab.
append 'LINKS' to word_tab.
append 'LINKY' to word_tab.
append 'LINNS' to word_tab.
append 'LINNY' to word_tab.
append 'LINOS' to word_tab.
append 'LINTS' to word_tab.
append 'LINTY' to word_tab.
append 'LINUM' to word_tab.
append 'LINUX' to word_tab.
append 'LIONS' to word_tab.
append 'LIPAS' to word_tab.
append 'LIPES' to word_tab.
append 'LIPID' to word_tab.
append 'LIPIN' to word_tab.
append 'LIPOS' to word_tab.
append 'LIPPY' to word_tab.
append 'LIRAS' to word_tab.
append 'LIRKS' to word_tab.
append 'LIROT' to word_tab.
append 'LISKS' to word_tab.
append 'LISLE' to word_tab.
append 'LISPS' to word_tab.
append 'LISTS' to word_tab.
append 'LITAI' to word_tab.
append 'LITAS' to word_tab.
append 'LITED' to word_tab.
append 'LITER' to word_tab.
append 'LITES' to word_tab.
append 'LITHE' to word_tab.
append 'LITHO' to word_tab.
append 'LITHS' to word_tab.
append 'LITRE' to word_tab.
append 'LIVED' to word_tab.
append 'LIVEN' to word_tab.
append 'LIVER' to word_tab.
append 'LIVES' to word_tab.
append 'LIVID' to word_tab.
append 'LIVOR' to word_tab.
append 'LIVRE' to word_tab.
append 'LLAMA' to word_tab.
append 'LLANO' to word_tab.
append 'LOACH' to word_tab.
append 'LOADS' to word_tab.
append 'LOAFS' to word_tab.
append 'LOAMS' to word_tab.
append 'LOAMY' to word_tab.
append 'LOANS' to word_tab.
append 'LOAST' to word_tab.
append 'LOATH' to word_tab.
append 'LOAVE' to word_tab.
append 'LOBAR' to word_tab.
append 'LOBBY' to word_tab.
append 'LOBED' to word_tab.
append 'LOBES' to word_tab.
append 'LOBOS' to word_tab.
append 'LOBUS' to word_tab.
append 'LOCAL' to word_tab.
append 'LOCHE' to word_tab.
append 'LOCHS' to word_tab.
append 'LOCIE' to word_tab.
append 'LOCIS' to word_tab.
append 'LOCKS' to word_tab.
append 'LOCOS' to word_tab.
append 'LOCUM' to word_tab.
append 'LOCUS' to word_tab.
append 'LODEN' to word_tab.
append 'LODES' to word_tab.
append 'LODGE' to word_tab.
append 'LOESS' to word_tab.
append 'LOFTS' to word_tab.
append 'LOFTY' to word_tab.
append 'LOGAN' to word_tab.
append 'LOGES' to word_tab.
append 'LOGGY' to word_tab.
append 'LOGIA' to word_tab.
append 'LOGIC' to word_tab.
append 'LOGIE' to word_tab.
append 'LOGIN' to word_tab.
append 'LOGOI' to word_tab.
append 'LOGON' to word_tab.
append 'LOGOS' to word_tab.
append 'LOHAN' to word_tab.
append 'LOIDS' to word_tab.
append 'LOINS' to word_tab.
append 'LOIPE' to word_tab.
append 'LOIRS' to word_tab.
append 'LOKES' to word_tab.
append 'LOLLS' to word_tab.
append 'LOLLY' to word_tab.
append 'LOLOG' to word_tab.
append 'LOMAS' to word_tab.
append 'LOMED' to word_tab.
append 'LOMES' to word_tab.
append 'LONER' to word_tab.
append 'LONGA' to word_tab.
append 'LONGE' to word_tab.
append 'LONGS' to word_tab.
append 'LOOBY' to word_tab.
append 'LOOED' to word_tab.
append 'LOOEY' to word_tab.
append 'LOOFA' to word_tab.
append 'LOOFS' to word_tab.
append 'LOOIE' to word_tab.
append 'LOOKS' to word_tab.
append 'LOOKY' to word_tab.
append 'LOOMS' to word_tab.
append 'LOONS' to word_tab.
append 'LOONY' to word_tab.
append 'LOOPS' to word_tab.
append 'LOOPY' to word_tab.
append 'LOORD' to word_tab.
append 'LOOSE' to word_tab.
append 'LOOTS' to word_tab.
append 'LOPED' to word_tab.
append 'LOPER' to word_tab.
append 'LOPES' to word_tab.
append 'LOPPY' to word_tab.
append 'LORAL' to word_tab.
append 'LORAN' to word_tab.
append 'LORDS' to word_tab.
append 'LORDY' to word_tab.
append 'LOREL' to word_tab.
append 'LORES' to word_tab.
append 'LORIC' to word_tab.
append 'LORIS' to word_tab.
append 'LORRY' to word_tab.
append 'LOSED' to word_tab.
append 'LOSEL' to word_tab.
append 'LOSEN' to word_tab.
append 'LOSER' to word_tab.
append 'LOSES' to word_tab.
append 'LOSSY' to word_tab.
append 'LOTAH' to word_tab.
append 'LOTAS' to word_tab.
append 'LOTES' to word_tab.
append 'LOTIC' to word_tab.
append 'LOTOS' to word_tab.
append 'LOTSA' to word_tab.
append 'LOTTA' to word_tab.
append 'LOTTE' to word_tab.
append 'LOTTO' to word_tab.
append 'LOTUS' to word_tab.
append 'LOUED' to word_tab.
append 'LOUGH' to word_tab.
append 'LOUIE' to word_tab.
append 'LOUIS' to word_tab.
append 'LOUMA' to word_tab.
append 'LOUND' to word_tab.
append 'LOUNS' to word_tab.
append 'LOUPE' to word_tab.
append 'LOUPS' to word_tab.
append 'LOURE' to word_tab.
append 'LOURS' to word_tab.
append 'LOURY' to word_tab.
append 'LOUSE' to word_tab.
append 'LOUSY' to word_tab.
append 'LOUTS' to word_tab.
append 'LOVAT' to word_tab.
append 'LOVED' to word_tab.
append 'LOVER' to word_tab.
append 'LOVES' to word_tab.
append 'LOVEY' to word_tab.
append 'LOVIE' to word_tab.
append 'LOWAN' to word_tab.
append 'LOWED' to word_tab.
append 'LOWER' to word_tab.
append 'LOWES' to word_tab.
append 'LOWLY' to word_tab.
append 'LOWND' to word_tab.
append 'LOWNE' to word_tab.
append 'LOWNS' to word_tab.
append 'LOWPS' to word_tab.
append 'LOWRY' to word_tab.
append 'LOWSE' to word_tab.
append 'LOWTS' to word_tab.
append 'LOXED' to word_tab.
append 'LOXES' to word_tab.
append 'LOYAL' to word_tab.
append 'LOZEN' to word_tab.
append 'LUACH' to word_tab.
append 'LUAUS' to word_tab.
append 'LUBED' to word_tab.
append 'LUBES' to word_tab.
append 'LUCES' to word_tab.
append 'LUCID' to word_tab.
append 'LUCKS' to word_tab.
append 'LUCKY' to word_tab.
append 'LUCRE' to word_tab.
append 'LUDES' to word_tab.
append 'LUDIC' to word_tab.
append 'LUDOS' to word_tab.
append 'LUFFA' to word_tab.
append 'LUFFS' to word_tab.
append 'LUGED' to word_tab.
append 'LUGER' to word_tab.
append 'LUGES' to word_tab.
append 'LULLS' to word_tab.
append 'LULUS' to word_tab.
append 'LUMAS' to word_tab.
append 'LUMBI' to word_tab.
append 'LUMEN' to word_tab.
append 'LUMME' to word_tab.
append 'LUMMY' to word_tab.
append 'LUMPS' to word_tab.
append 'LUMPY' to word_tab.
append 'LUNAR' to word_tab.
append 'LUNAS' to word_tab.
append 'LUNCH' to word_tab.
append 'LUNES' to word_tab.
append 'LUNET' to word_tab.
append 'LUNGE' to word_tab.
append 'LUNGI' to word_tab.
append 'LUNGS' to word_tab.
append 'LUNKS' to word_tab.
append 'LUNTS' to word_tab.
append 'LUPIN' to word_tab.
append 'LUPUS' to word_tab.
append 'LURCH' to word_tab.
append 'LURED' to word_tab.
append 'LURER' to word_tab.
append 'LURES' to word_tab.
append 'LUREX' to word_tab.
append 'LURGI' to word_tab.
append 'LURGY' to word_tab.
append 'LURID' to word_tab.
append 'LURKS' to word_tab.
append 'LURRY' to word_tab.
append 'LURVE' to word_tab.
append 'LUSER' to word_tab.
append 'LUSHY' to word_tab.
append 'LUSKS' to word_tab.
append 'LUSTS' to word_tab.
append 'LUSTY' to word_tab.
append 'LUSUS' to word_tab.
append 'LUTEA' to word_tab.
append 'LUTED' to word_tab.
append 'LUTER' to word_tab.
append 'LUTES' to word_tab.
append 'LUVVY' to word_tab.
append 'LUXED' to word_tab.
append 'LUXER' to word_tab.
append 'LUXES' to word_tab.
append 'LWEIS' to word_tab.
append 'LYAMS' to word_tab.
append 'LYARD' to word_tab.
append 'LYART' to word_tab.
append 'LYASE' to word_tab.
append 'LYCEA' to word_tab.
append 'LYCEE' to word_tab.
append 'LYCRA' to word_tab.
append 'LYING' to word_tab.
append 'LYMES' to word_tab.
append 'LYMPH' to word_tab.
append 'LYNCH' to word_tab.
append 'LYNES' to word_tab.
append 'LYRES' to word_tab.
append 'LYRIC' to word_tab.
append 'LYSED' to word_tab.
append 'LYSES' to word_tab.
append 'LYSIN' to word_tab.
append 'LYSIS' to word_tab.
append 'LYSOL' to word_tab.
append 'LYSSA' to word_tab.
append 'LYTED' to word_tab.
append 'LYTES' to word_tab.
append 'LYTHE' to word_tab.
append 'LYTIC' to word_tab.
append 'LYTTA' to word_tab.
append 'MAAED' to word_tab.
append 'MAARE' to word_tab.
append 'MAARS' to word_tab.
append 'MABES' to word_tab.
append 'MACAS' to word_tab.
append 'MACAW' to word_tab.
append 'MACED' to word_tab.
append 'MACER' to word_tab.
append 'MACES' to word_tab.
append 'MACHE' to word_tab.
append 'MACHI' to word_tab.
append 'MACHO' to word_tab.
append 'MACHS' to word_tab.
append 'MACKS' to word_tab.
append 'MACLE' to word_tab.
append 'MACON' to word_tab.
append 'MACRO' to word_tab.
append 'MADAM' to word_tab.
append 'MADGE' to word_tab.
append 'MADID' to word_tab.
append 'MADLY' to word_tab.
append 'MADRE' to word_tab.
append 'MAERL' to word_tab.
append 'MAFIA' to word_tab.
append 'MAFIC' to word_tab.
append 'MAGES' to word_tab.
append 'MAGGS' to word_tab.
append 'MAGIC' to word_tab.
append 'MAGMA' to word_tab.
append 'MAGOT' to word_tab.
append 'MAGUS' to word_tab.
append 'MAHOE' to word_tab.
append 'MAHUA' to word_tab.
append 'MAHWA' to word_tab.
append 'MAIDS' to word_tab.
append 'MAIKO' to word_tab.
append 'MAIKS' to word_tab.
append 'MAILE' to word_tab.
append 'MAILL' to word_tab.
append 'MAILS' to word_tab.
append 'MAIMS' to word_tab.
append 'MAINS' to word_tab.
append 'MAIRE' to word_tab.
append 'MAIRS' to word_tab.
append 'MAISE' to word_tab.
append 'MAIST' to word_tab.
append 'MAIZE' to word_tab.
append 'MAJOR' to word_tab.
append 'MAKAR' to word_tab.
append 'MAKER' to word_tab.
append 'MAKES' to word_tab.
append 'MAKIS' to word_tab.
append 'MAKOS' to word_tab.
append 'MALAM' to word_tab.
append 'MALAR' to word_tab.
append 'MALAS' to word_tab.
append 'MALAX' to word_tab.
append 'MALES' to word_tab.
append 'MALIC' to word_tab.
append 'MALIK' to word_tab.
append 'MALIS' to word_tab.
append 'MALLS' to word_tab.
append 'MALMS' to word_tab.
append 'MALMY' to word_tab.
append 'MALTS' to word_tab.
append 'MALTY' to word_tab.
append 'MALUS' to word_tab.
append 'MALVA' to word_tab.
append 'MALWA' to word_tab.
append 'MAMAS' to word_tab.
append 'MAMBA' to word_tab.
append 'MAMBO' to word_tab.
append 'MAMEE' to word_tab.
append 'MAMEY' to word_tab.
append 'MAMIE' to word_tab.
append 'MAMMA' to word_tab.
append 'MAMMY' to word_tab.
append 'MANAS' to word_tab.
append 'MANAT' to word_tab.
append 'MANDI' to word_tab.
append 'MANEB' to word_tab.
append 'MANED' to word_tab.
append 'MANEH' to word_tab.
append 'MANES' to word_tab.
append 'MANET' to word_tab.
append 'MANGA' to word_tab.
append 'MANGE' to word_tab.
append 'MANGO' to word_tab.
append 'MANGS' to word_tab.
append 'MANGY' to word_tab.
append 'MANIA' to word_tab.
append 'MANIC' to word_tab.
append 'MANIS' to word_tab.
append 'MANKY' to word_tab.
append 'MANLY' to word_tab.
append 'MANNA' to word_tab.
append 'MANOR' to word_tab.
append 'MANOS' to word_tab.
append 'MANSE' to word_tab.
append 'MANTA' to word_tab.
append 'MANTO' to word_tab.
append 'MANTY' to word_tab.
append 'MANUL' to word_tab.
append 'MANUS' to word_tab.
append 'MAPAU' to word_tab.
append 'MAPLE' to word_tab.
append 'MAQUI' to word_tab.
append 'MARAE' to word_tab.
append 'MARAH' to word_tab.
append 'MARAS' to word_tab.
append 'MARCH' to word_tab.
append 'MARCS' to word_tab.
append 'MARDY' to word_tab.
append 'MARES' to word_tab.
append 'MARGE' to word_tab.
append 'MARGS' to word_tab.
append 'MARIA' to word_tab.
append 'MARID' to word_tab.
append 'MARKA' to word_tab.
append 'MARKS' to word_tab.
append 'MARLE' to word_tab.
append 'MARLS' to word_tab.
append 'MARLY' to word_tab.
append 'MARMS' to word_tab.
append 'MARON' to word_tab.
append 'MAROR' to word_tab.
append 'MARRA' to word_tab.
append 'MARRI' to word_tab.
append 'MARRY' to word_tab.
append 'MARSE' to word_tab.
append 'MARSH' to word_tab.
append 'MARTS' to word_tab.
append 'MARVY' to word_tab.
append 'MASAS' to word_tab.
append 'MASED' to word_tab.
append 'MASER' to word_tab.
append 'MASES' to word_tab.
append 'MASHY' to word_tab.
append 'MASKS' to word_tab.
append 'MASON' to word_tab.
append 'MASSA' to word_tab.
append 'MASSE' to word_tab.
append 'MASSY' to word_tab.
append 'MASTS' to word_tab.
append 'MASTY' to word_tab.
append 'MASUS' to word_tab.
append 'MATAI' to word_tab.
append 'MATCH' to word_tab.
append 'MATED' to word_tab.
append 'MATER' to word_tab.
append 'MATES' to word_tab.
append 'MATEY' to word_tab.
append 'MATHS' to word_tab.
append 'MATIN' to word_tab.
append 'MATLO' to word_tab.
append 'MATTE' to word_tab.
append 'MATTS' to word_tab.
append 'MATZA' to word_tab.
append 'MATZO' to word_tab.
append 'MAUBY' to word_tab.
append 'MAUDS' to word_tab.
append 'MAULS' to word_tab.
append 'MAUND' to word_tab.
append 'MAURI' to word_tab.
append 'MAUSY' to word_tab.
append 'MAUTS' to word_tab.
append 'MAUVE' to word_tab.
append 'MAUZY' to word_tab.
append 'MAVEN' to word_tab.
append 'MAVIE' to word_tab.
append 'MAVIN' to word_tab.
append 'MAVIS' to word_tab.
append 'MAWED' to word_tab.
append 'MAWKS' to word_tab.
append 'MAWKY' to word_tab.
append 'MAWNS' to word_tab.
append 'MAWRS' to word_tab.
append 'MAXED' to word_tab.
append 'MAXES' to word_tab.
append 'MAXIM' to word_tab.
append 'MAXIS' to word_tab.
append 'MAYAN' to word_tab.
append 'MAYAS' to word_tab.
append 'MAYBE' to word_tab.
append 'MAYED' to word_tab.
append 'MAYOR' to word_tab.
append 'MAYOS' to word_tab.
append 'MAYST' to word_tab.
append 'MAZED' to word_tab.
append 'MAZER' to word_tab.
append 'MAZES' to word_tab.
append 'MAZEY' to word_tab.
append 'MAZUT' to word_tab.
append 'MBIRA' to word_tab.
append 'MEADS' to word_tab.
append 'MEALS' to word_tab.
append 'MEALY' to word_tab.
append 'MEANE' to word_tab.
append 'MEANS' to word_tab.
append 'MEANT' to word_tab.
append 'MEANY' to word_tab.
append 'MEARE' to word_tab.
append 'MEASE' to word_tab.
append 'MEATH' to word_tab.
append 'MEATS' to word_tab.
append 'MEATY' to word_tab.
append 'MEBOS' to word_tab.
append 'MECCA' to word_tab.
append 'MECHS' to word_tab.
append 'MECKS' to word_tab.
append 'MEDAL' to word_tab.
append 'MEDIA' to word_tab.
append 'MEDIC' to word_tab.
append 'MEDII' to word_tab.
append 'MEDLE' to word_tab.
append 'MEEDS' to word_tab.
append 'MEERS' to word_tab.
append 'MEETS' to word_tab.
append 'MEFFS' to word_tab.
append 'MEINS' to word_tab.
append 'MEINT' to word_tab.
append 'MEINY' to word_tab.
append 'MEITH' to word_tab.
append 'MEKKA' to word_tab.
append 'MELAS' to word_tab.
append 'MELBA' to word_tab.
append 'MELDS' to word_tab.
append 'MELEE' to word_tab.
append 'MELIC' to word_tab.
append 'MELIK' to word_tab.
append 'MELLS' to word_tab.
append 'MELON' to word_tab.
append 'MELTS' to word_tab.
append 'MELTY' to word_tab.
append 'MEMES' to word_tab.
append 'MEMOS' to word_tab.
append 'MENAD' to word_tab.
append 'MENDS' to word_tab.
append 'MENED' to word_tab.
append 'MENES' to word_tab.
append 'MENGE' to word_tab.
append 'MENGS' to word_tab.
append 'MENSA' to word_tab.
append 'MENSE' to word_tab.
append 'MENSH' to word_tab.
append 'MENTA' to word_tab.
append 'MENTO' to word_tab.
append 'MENUS' to word_tab.
append 'MEOUS' to word_tab.
append 'MEOWS' to word_tab.
append 'MERCH' to word_tab.
append 'MERCS' to word_tab.
append 'MERCY' to word_tab.
append 'MERDE' to word_tab.
append 'MERED' to word_tab.
append 'MEREL' to word_tab.
append 'MERER' to word_tab.
append 'MERES' to word_tab.
append 'MERGE' to word_tab.
append 'MERIL' to word_tab.
append 'MERIS' to word_tab.
append 'MERIT' to word_tab.
append 'MERKS' to word_tab.
append 'MERLE' to word_tab.
append 'MERLS' to word_tab.
append 'MERRY' to word_tab.
append 'MERSE' to word_tab.
append 'MESAL' to word_tab.
append 'MESAS' to word_tab.
append 'MESEL' to word_tab.
append 'MESES' to word_tab.
append 'MESHY' to word_tab.
append 'MESIC' to word_tab.
append 'MESNE' to word_tab.
append 'MESON' to word_tab.
append 'MESSY' to word_tab.
append 'MESTO' to word_tab.
append 'METAL' to word_tab.
append 'METED' to word_tab.
append 'METER' to word_tab.
append 'METES' to word_tab.
append 'METHO' to word_tab.
append 'METHS' to word_tab.
append 'METIC' to word_tab.
append 'METIF' to word_tab.
append 'METIS' to word_tab.
append 'METOL' to word_tab.
append 'METRE' to word_tab.
append 'METRO' to word_tab.
append 'MEUSE' to word_tab.
append 'MEVED' to word_tab.
append 'MEVES' to word_tab.
append 'MEWED' to word_tab.
append 'MEWLS' to word_tab.
append 'MEYNT' to word_tab.
append 'MEZES' to word_tab.
append 'MEZZE' to word_tab.
append 'MEZZO' to word_tab.
append 'MHORR' to word_tab.
append 'MIAOU' to word_tab.
append 'MIAOW' to word_tab.
append 'MIASM' to word_tab.
append 'MIAUL' to word_tab.
append 'MICAS' to word_tab.
append 'MICHE' to word_tab.
append 'MICHT' to word_tab.
append 'MICKY' to word_tab.
append 'MICOS' to word_tab.
append 'MICRA' to word_tab.
append 'MICRO' to word_tab.
append 'MIDDY' to word_tab.
append 'MIDGE' to word_tab.
append 'MIDGY' to word_tab.
append 'MIDIS' to word_tab.
append 'MIDST' to word_tab.
append 'MIENS' to word_tab.
append 'MIEVE' to word_tab.
append 'MIFFS' to word_tab.
append 'MIFFY' to word_tab.
append 'MIFTY' to word_tab.
append 'MIGGS' to word_tab.
append 'MIGHT' to word_tab.
append 'MIHAS' to word_tab.
append 'MIHIS' to word_tab.
append 'MIKED' to word_tab.
append 'MIKES' to word_tab.
append 'MIKRA' to word_tab.
append 'MIKVA' to word_tab.
append 'MILCH' to word_tab.
append 'MILDS' to word_tab.
append 'MILER' to word_tab.
append 'MILES' to word_tab.
append 'MILFS' to word_tab.
append 'MILIA' to word_tab.
append 'MILKO' to word_tab.
append 'MILKS' to word_tab.
append 'MILKY' to word_tab.
append 'MILLE' to word_tab.
append 'MILLS' to word_tab.
append 'MILOR' to word_tab.
append 'MILOS' to word_tab.
append 'MILPA' to word_tab.
append 'MILTS' to word_tab.
append 'MILTY' to word_tab.
append 'MILTZ' to word_tab.
append 'MIMED' to word_tab.
append 'MIMEO' to word_tab.
append 'MIMER' to word_tab.
append 'MIMES' to word_tab.
append 'MIMIC' to word_tab.
append 'MIMSY' to word_tab.
append 'MINAE' to word_tab.
append 'MINAR' to word_tab.
append 'MINAS' to word_tab.
append 'MINCE' to word_tab.
append 'MINCY' to word_tab.
append 'MINDS' to word_tab.
append 'MINED' to word_tab.
append 'MINER' to word_tab.
append 'MINES' to word_tab.
append 'MINGE' to word_tab.
append 'MINGS' to word_tab.
append 'MINGY' to word_tab.
append 'MINIM' to word_tab.
append 'MINIS' to word_tab.
append 'MINKE' to word_tab.
append 'MINKS' to word_tab.
append 'MINNY' to word_tab.
append 'MINOR' to word_tab.
append 'MINOS' to word_tab.
append 'MINTS' to word_tab.
append 'MINTY' to word_tab.
append 'MINUS' to word_tab.
append 'MIRED' to word_tab.
append 'MIRES' to word_tab.
append 'MIREX' to word_tab.
append 'MIRID' to word_tab.
append 'MIRIN' to word_tab.
append 'MIRKS' to word_tab.
append 'MIRKY' to word_tab.
append 'MIRLY' to word_tab.
append 'MIROS' to word_tab.
append 'MIRTH' to word_tab.
append 'MIRVS' to word_tab.
append 'MIRZA' to word_tab.
append 'MISCH' to word_tab.
append 'MISDO' to word_tab.
append 'MISER' to word_tab.
append 'MISES' to word_tab.
append 'MISGO' to word_tab.
append 'MISOS' to word_tab.
append 'MISSA' to word_tab.
append 'MISSY' to word_tab.
append 'MISTS' to word_tab.
append 'MISTY' to word_tab.
append 'MITCH' to word_tab.
append 'MITER' to word_tab.
append 'MITES' to word_tab.
append 'MITIS' to word_tab.
append 'MITRE' to word_tab.
append 'MITTS' to word_tab.
append 'MIXED' to word_tab.
append 'MIXEN' to word_tab.
append 'MIXER' to word_tab.
append 'MIXES' to word_tab.
append 'MIXTE' to word_tab.
append 'MIXUP' to word_tab.
append 'MIZEN' to word_tab.
append 'MIZZY' to word_tab.
append 'MNEME' to word_tab.
append 'MOANS' to word_tab.
append 'MOATS' to word_tab.
append 'MOBBY' to word_tab.
append 'MOBES' to word_tab.
append 'MOBEY' to word_tab.
append 'MOBIE' to word_tab.
append 'MOBLE' to word_tab.
append 'MOCHA' to word_tab.
append 'MOCHI' to word_tab.
append 'MOCHS' to word_tab.
append 'MOCHY' to word_tab.
append 'MOCKS' to word_tab.
append 'MODAL' to word_tab.
append 'MODEL' to word_tab.
append 'MODEM' to word_tab.
append 'MODER' to word_tab.
append 'MODES' to word_tab.
append 'MODGE' to word_tab.
append 'MODII' to word_tab.
append 'MODUS' to word_tab.
append 'MOERS' to word_tab.
append 'MOFOS' to word_tab.
append 'MOGGY' to word_tab.
append 'MOGUL' to word_tab.
append 'MOHEL' to word_tab.
append 'MOHOS' to word_tab.
append 'MOHRS' to word_tab.
append 'MOHUA' to word_tab.
append 'MOHUR' to word_tab.
append 'MOILE' to word_tab.
append 'MOILS' to word_tab.
append 'MOIRA' to word_tab.
append 'MOIRE' to word_tab.
append 'MOIST' to word_tab.
append 'MOITS' to word_tab.
append 'MOJOS' to word_tab.
append 'MOKES' to word_tab.
append 'MOKIS' to word_tab.
append 'MOKOS' to word_tab.
append 'MOLAL' to word_tab.
append 'MOLAR' to word_tab.
append 'MOLAS' to word_tab.
append 'MOLDS' to word_tab.
append 'MOLDY' to word_tab.
append 'MOLED' to word_tab.
append 'MOLES' to word_tab.
append 'MOLLA' to word_tab.
append 'MOLLS' to word_tab.
append 'MOLLY' to word_tab.
append 'MOLTO' to word_tab.
append 'MOLTS' to word_tab.
append 'MOLYS' to word_tab.
append 'MOMES' to word_tab.
append 'MOMMA' to word_tab.
append 'MOMMY' to word_tab.
append 'MOMUS' to word_tab.
append 'MONAD' to word_tab.
append 'MONAL' to word_tab.
append 'MONAS' to word_tab.
append 'MONDE' to word_tab.
append 'MONDO' to word_tab.
append 'MONER' to word_tab.
append 'MONEY' to word_tab.
append 'MONGO' to word_tab.
append 'MONGS' to word_tab.
append 'MONIC' to word_tab.
append 'MONIE' to word_tab.
append 'MONKS' to word_tab.
append 'MONOS' to word_tab.
append 'MONTE' to word_tab.
append 'MONTH' to word_tab.
append 'MONTY' to word_tab.
append 'MOOBS' to word_tab.
append 'MOOCH' to word_tab.
append 'MOODS' to word_tab.
append 'MOODY' to word_tab.
append 'MOOED' to word_tab.
append 'MOOKS' to word_tab.
append 'MOOLA' to word_tab.
append 'MOOLI' to word_tab.
append 'MOOLS' to word_tab.
append 'MOOLY' to word_tab.
append 'MOONG' to word_tab.
append 'MOONS' to word_tab.
append 'MOONY' to word_tab.
append 'MOOPS' to word_tab.
append 'MOORS' to word_tab.
append 'MOORY' to word_tab.
append 'MOOSE' to word_tab.
append 'MOOTS' to word_tab.
append 'MOOVE' to word_tab.
append 'MOPED' to word_tab.
append 'MOPER' to word_tab.
append 'MOPES' to word_tab.
append 'MOPEY' to word_tab.
append 'MOPPY' to word_tab.
append 'MOPSY' to word_tab.
append 'MOPUS' to word_tab.
append 'MORAE' to word_tab.
append 'MORAL' to word_tab.
append 'MORAS' to word_tab.
append 'MORAT' to word_tab.
append 'MORAY' to word_tab.
append 'MOREL' to word_tab.
append 'MORES' to word_tab.
append 'MORIA' to word_tab.
append 'MORNE' to word_tab.
append 'MORNS' to word_tab.
append 'MORON' to word_tab.
append 'MORPH' to word_tab.
append 'MORRA' to word_tab.
append 'MORRO' to word_tab.
append 'MORSE' to word_tab.
append 'MORTS' to word_tab.
append 'MOSED' to word_tab.
append 'MOSES' to word_tab.
append 'MOSEY' to word_tab.
append 'MOSKS' to word_tab.
append 'MOSSO' to word_tab.
append 'MOSSY' to word_tab.
append 'MOSTE' to word_tab.
append 'MOSTS' to word_tab.
append 'MOTED' to word_tab.
append 'MOTEL' to word_tab.
append 'MOTEN' to word_tab.
append 'MOTES' to word_tab.
append 'MOTET' to word_tab.
append 'MOTEY' to word_tab.
append 'MOTHS' to word_tab.
append 'MOTHY' to word_tab.
append 'MOTIF' to word_tab.
append 'MOTIS' to word_tab.
append 'MOTOR' to word_tab.
append 'MOTTE' to word_tab.
append 'MOTTO' to word_tab.
append 'MOTTS' to word_tab.
append 'MOTTY' to word_tab.
append 'MOTUS' to word_tab.
append 'MOTZA' to word_tab.
append 'MOUCH' to word_tab.
append 'MOUES' to word_tab.
append 'MOULD' to word_tab.
append 'MOULS' to word_tab.
append 'MOULT' to word_tab.
append 'MOUND' to word_tab.
append 'MOUNT' to word_tab.
append 'MOUPS' to word_tab.
append 'MOURN' to word_tab.
append 'MOUSE' to word_tab.
append 'MOUST' to word_tab.
append 'MOUSY' to word_tab.
append 'MOUTH' to word_tab.
append 'MOVED' to word_tab.
append 'MOVER' to word_tab.
append 'MOVES' to word_tab.
append 'MOVIE' to word_tab.
append 'MOWAS' to word_tab.
append 'MOWED' to word_tab.
append 'MOWER' to word_tab.
append 'MOWRA' to word_tab.
append 'MOXAS' to word_tab.
append 'MOXIE' to word_tab.
append 'MOYAS' to word_tab.
append 'MOYLE' to word_tab.
append 'MOYLS' to word_tab.
append 'MOZED' to word_tab.
append 'MOZES' to word_tab.
append 'MOZOS' to word_tab.
append 'MPRET' to word_tab.
append 'MUCHO' to word_tab.
append 'MUCIC' to word_tab.
append 'MUCID' to word_tab.
append 'MUCIN' to word_tab.
append 'MUCKS' to word_tab.
append 'MUCKY' to word_tab.
append 'MUCOR' to word_tab.
append 'MUCRO' to word_tab.
append 'MUCUS' to word_tab.
append 'MUDDY' to word_tab.
append 'MUDGE' to word_tab.
append 'MUDIR' to word_tab.
append 'MUDRA' to word_tab.
append 'MUFFS' to word_tab.
append 'MUFTI' to word_tab.
append 'MUGGA' to word_tab.
append 'MUGGS' to word_tab.
append 'MUGGY' to word_tab.
append 'MUHLY' to word_tab.
append 'MUIDS' to word_tab.
append 'MUILS' to word_tab.
append 'MUIRS' to word_tab.
append 'MUIST' to word_tab.
append 'MUJIK' to word_tab.
append 'MULCH' to word_tab.
append 'MULCT' to word_tab.
append 'MULED' to word_tab.
append 'MULES' to word_tab.
append 'MULEY' to word_tab.
append 'MULGA' to word_tab.
append 'MULIE' to word_tab.
append 'MULLA' to word_tab.
append 'MULLS' to word_tab.
append 'MULSE' to word_tab.
append 'MULSH' to word_tab.
append 'MUMMS' to word_tab.
append 'MUMMY' to word_tab.
append 'MUMPS' to word_tab.
append 'MUMSY' to word_tab.
append 'MUMUS' to word_tab.
append 'MUNCH' to word_tab.
append 'MUNGA' to word_tab.
append 'MUNGE' to word_tab.
append 'MUNGO' to word_tab.
append 'MUNGS' to word_tab.
append 'MUNIS' to word_tab.
append 'MUONS' to word_tab.
append 'MURAL' to word_tab.
append 'MURAS' to word_tab.
append 'MURED' to word_tab.
append 'MURES' to word_tab.
append 'MUREX' to word_tab.
append 'MURID' to word_tab.
append 'MURKS' to word_tab.
append 'MURKY' to word_tab.
append 'MURLS' to word_tab.
append 'MURLY' to word_tab.
append 'MURRA' to word_tab.
append 'MURRE' to word_tab.
append 'MURRI' to word_tab.
append 'MURRS' to word_tab.
append 'MURRY' to word_tab.
append 'MURTI' to word_tab.
append 'MURVA' to word_tab.
append 'MUSAR' to word_tab.
append 'MUSCA' to word_tab.
append 'MUSED' to word_tab.
append 'MUSER' to word_tab.
append 'MUSES' to word_tab.
append 'MUSET' to word_tab.
append 'MUSHA' to word_tab.
append 'MUSHY' to word_tab.
append 'MUSIC' to word_tab.
append 'MUSIT' to word_tab.
append 'MUSKS' to word_tab.
append 'MUSKY' to word_tab.
append 'MUSOS' to word_tab.
append 'MUSSE' to word_tab.
append 'MUSSY' to word_tab.
append 'MUSTH' to word_tab.
append 'MUSTS' to word_tab.
append 'MUSTY' to word_tab.
append 'MUTCH' to word_tab.
append 'MUTED' to word_tab.
append 'MUTER' to word_tab.
append 'MUTES' to word_tab.
append 'MUTHA' to word_tab.
append 'MUTIS' to word_tab.
append 'MUTON' to word_tab.
append 'MUTTS' to word_tab.
append 'MUXED' to word_tab.
append 'MUXES' to word_tab.
append 'MUZAK' to word_tab.
append 'MUZZY' to word_tab.
append 'MVULE' to word_tab.
append 'MYALL' to word_tab.
append 'MYLAR' to word_tab.
append 'MYNAH' to word_tab.
append 'MYNAS' to word_tab.
append 'MYOID' to word_tab.
append 'MYOMA' to word_tab.
append 'MYOPE' to word_tab.
append 'MYOPS' to word_tab.
append 'MYOPY' to word_tab.
append 'MYRRH' to word_tab.
append 'MYSID' to word_tab.
append 'MYTHI' to word_tab.
append 'MYTHS' to word_tab.
append 'MYTHY' to word_tab.
append 'MYXOS' to word_tab.
append 'MZEES' to word_tab.
append 'NAAMS' to word_tab.
append 'NAANS' to word_tab.
append 'NABES' to word_tab.
append 'NABIS' to word_tab.
append 'NABKS' to word_tab.
append 'NABLA' to word_tab.
append 'NABOB' to word_tab.
append 'NACHE' to word_tab.
append 'NACHO' to word_tab.
append 'NACRE' to word_tab.
append 'NADAS' to word_tab.
append 'NADIR' to word_tab.
append 'NAEVE' to word_tab.
append 'NAEVI' to word_tab.
append 'NAFFS' to word_tab.
append 'NAGAS' to word_tab.
append 'NAGGY' to word_tab.
append 'NAGOR' to word_tab.
append 'NAHAL' to word_tab.
append 'NAIAD' to word_tab.
append 'NAIFS' to word_tab.
append 'NAIKS' to word_tab.
append 'NAILS' to word_tab.
append 'NAIRA' to word_tab.
append 'NAIRU' to word_tab.
append 'NAIVE' to word_tab.
append 'NAKED' to word_tab.
append 'NAKER' to word_tab.
append 'NAKFA' to word_tab.
append 'NALAS' to word_tab.
append 'NALED' to word_tab.
append 'NALLA' to word_tab.
append 'NAMED' to word_tab.
append 'NAMER' to word_tab.
append 'NAMES' to word_tab.
append 'NAMMA' to word_tab.
append 'NAMUS' to word_tab.
append 'NANAS' to word_tab.
append 'NANDU' to word_tab.
append 'NANNA' to word_tab.
append 'NANNY' to word_tab.
append 'NANOS' to word_tab.
append 'NANUA' to word_tab.
append 'NAPAS' to word_tab.
append 'NAPED' to word_tab.
append 'NAPES' to word_tab.
append 'NAPOO' to word_tab.
append 'NAPPA' to word_tab.
append 'NAPPE' to word_tab.
append 'NAPPY' to word_tab.
append 'NARAS' to word_tab.
append 'NARCO' to word_tab.
append 'NARCS' to word_tab.
append 'NARDS' to word_tab.
append 'NARES' to word_tab.
append 'NARIC' to word_tab.
append 'NARIS' to word_tab.
append 'NARKS' to word_tab.
append 'NARKY' to word_tab.
append 'NARRE' to word_tab.
append 'NASAL' to word_tab.
append 'NASHI' to word_tab.
append 'NASTY' to word_tab.
append 'NATAL' to word_tab.
append 'NATCH' to word_tab.
append 'NATES' to word_tab.
append 'NATIS' to word_tab.
append 'NATTY' to word_tab.
append 'NAUCH' to word_tab.
append 'NAUNT' to word_tab.
append 'NAVAL' to word_tab.
append 'NAVAR' to word_tab.
append 'NAVEL' to word_tab.
append 'NAVES' to word_tab.
append 'NAVEW' to word_tab.
append 'NAVVY' to word_tab.
append 'NAWAB' to word_tab.
append 'NAZES' to word_tab.
append 'NAZIR' to word_tab.
append 'NAZIS' to word_tab.
append 'NDUJA' to word_tab.
append 'NEAFE' to word_tab.
append 'NEALS' to word_tab.
append 'NEAPS' to word_tab.
append 'NEARS' to word_tab.
append 'NEATH' to word_tab.
append 'NEATS' to word_tab.
append 'NEBEK' to word_tab.
append 'NEBEL' to word_tab.
append 'NECKS' to word_tab.
append 'NEDDY' to word_tab.
append 'NEEDS' to word_tab.
append 'NEEDY' to word_tab.
append 'NEELD' to word_tab.
append 'NEELE' to word_tab.
append 'NEEMB' to word_tab.
append 'NEEMS' to word_tab.
append 'NEEPS' to word_tab.
append 'NEESE' to word_tab.
append 'NEEZE' to word_tab.
append 'NEGUS' to word_tab.
append 'NEIFS' to word_tab.
append 'NEIGH' to word_tab.
append 'NEIST' to word_tab.
append 'NEIVE' to word_tab.
append 'NELIS' to word_tab.
append 'NELLY' to word_tab.
append 'NEMAS' to word_tab.
append 'NEMNS' to word_tab.
append 'NEMPT' to word_tab.
append 'NENES' to word_tab.
append 'NEONS' to word_tab.
append 'NEPER' to word_tab.
append 'NEPIT' to word_tab.
append 'NERAL' to word_tab.
append 'NERDS' to word_tab.
append 'NERDY' to word_tab.
append 'NERKA' to word_tab.
append 'NERKS' to word_tab.
append 'NEROL' to word_tab.
append 'NERTS' to word_tab.
append 'NERTZ' to word_tab.
append 'NERVE' to word_tab.
append 'NERVY' to word_tab.
append 'NESTS' to word_tab.
append 'NETES' to word_tab.
append 'NETOP' to word_tab.
append 'NETTS' to word_tab.
append 'NETTY' to word_tab.
append 'NEUKS' to word_tab.
append 'NEUME' to word_tab.
append 'NEUMS' to word_tab.
append 'NEVEL' to word_tab.
append 'NEVER' to word_tab.
append 'NEVES' to word_tab.
append 'NEVUS' to word_tab.
append 'NEWBS' to word_tab.
append 'NEWED' to word_tab.
append 'NEWEL' to word_tab.
append 'NEWER' to word_tab.
append 'NEWIE' to word_tab.
append 'NEWLY' to word_tab.
append 'NEWSY' to word_tab.
append 'NEWTS' to word_tab.
append 'NEXTS' to word_tab.
append 'NEXUS' to word_tab.
append 'NGAIO' to word_tab.
append 'NGANA' to word_tab.
append 'NGATI' to word_tab.
append 'NGOMA' to word_tab.
append 'NGWEE' to word_tab.
append 'NICAD' to word_tab.
append 'NICER' to word_tab.
append 'NICHE' to word_tab.
append 'NICHT' to word_tab.
append 'NICKS' to word_tab.
append 'NICOL' to word_tab.
append 'NIDAL' to word_tab.
append 'NIDED' to word_tab.
append 'NIDES' to word_tab.
append 'NIDOR' to word_tab.
append 'NIDUS' to word_tab.
append 'NIECE' to word_tab.
append 'NIEFS' to word_tab.
append 'NIEVE' to word_tab.
append 'NIFES' to word_tab.
append 'NIFFS' to word_tab.
append 'NIFFY' to word_tab.
append 'NIFTY' to word_tab.
append 'NIGHS' to word_tab.
append 'NIGHT' to word_tab.
append 'NIHIL' to word_tab.
append 'NIKAB' to word_tab.
append 'NIKAH' to word_tab.
append 'NIKAU' to word_tab.
append 'NILLS' to word_tab.
append 'NIMBI' to word_tab.
append 'NIMBS' to word_tab.
append 'NIMPS' to word_tab.
append 'NINER' to word_tab.
append 'NINES' to word_tab.
append 'NINJA' to word_tab.
append 'NINNY' to word_tab.
append 'NINON' to word_tab.
append 'NINTH' to word_tab.
append 'NIPAS' to word_tab.
append 'NIPPY' to word_tab.
append 'NIQAB' to word_tab.
append 'NIRLS' to word_tab.
append 'NIRLY' to word_tab.
append 'NISEI' to word_tab.
append 'NISSE' to word_tab.
append 'NISUS' to word_tab.
append 'NITER' to word_tab.
append 'NITES' to word_tab.
append 'NITID' to word_tab.
append 'NITON' to word_tab.
append 'NITRE' to word_tab.
append 'NITRO' to word_tab.
append 'NITRY' to word_tab.
append 'NITTY' to word_tab.
append 'NIVAL' to word_tab.
append 'NIXED' to word_tab.
append 'NIXER' to word_tab.
append 'NIXES' to word_tab.
append 'NIXIE' to word_tab.
append 'NIZAM' to word_tab.
append 'NKOSI' to word_tab.
append 'NOAHS' to word_tab.
append 'NOBBY' to word_tab.
append 'NOBLE' to word_tab.
append 'NOBLY' to word_tab.
append 'NOCKS' to word_tab.
append 'NODAL' to word_tab.
append 'NODDY' to word_tab.
append 'NODES' to word_tab.
append 'NODUS' to word_tab.
append 'NOELS' to word_tab.
append 'NOGGS' to word_tab.
append 'NOHOW' to word_tab.
append 'NOILS' to word_tab.
append 'NOILY' to word_tab.
append 'NOINT' to word_tab.
append 'NOIRS' to word_tab.
append 'NOISE' to word_tab.
append 'NOISY' to word_tab.
append 'NOLES' to word_tab.
append 'NOLLS' to word_tab.
append 'NOLOS' to word_tab.
append 'NOMAD' to word_tab.
append 'NOMAS' to word_tab.
append 'NOMEN' to word_tab.
append 'NOMES' to word_tab.
append 'NOMIC' to word_tab.
append 'NOMOI' to word_tab.
append 'NOMOS' to word_tab.
append 'NONAS' to word_tab.
append 'NONCE' to word_tab.
append 'NONES' to word_tab.
append 'NONET' to word_tab.
append 'NONGS' to word_tab.
append 'NONIS' to word_tab.
append 'NONNY' to word_tab.
append 'NONYL' to word_tab.
append 'NOOBS' to word_tab.
append 'NOOIT' to word_tab.
append 'NOOKS' to word_tab.
append 'NOOKY' to word_tab.
append 'NOONS' to word_tab.
append 'NOOPS' to word_tab.
append 'NOOSE' to word_tab.
append 'NOPAL' to word_tab.
append 'NORIA' to word_tab.
append 'NORIS' to word_tab.
append 'NORKS' to word_tab.
append 'NORMA' to word_tab.
append 'NORMS' to word_tab.
append 'NORTH' to word_tab.
append 'NOSED' to word_tab.
append 'NOSER' to word_tab.
append 'NOSES' to word_tab.
append 'NOSEY' to word_tab.
append 'NOTAL' to word_tab.
append 'NOTCH' to word_tab.
append 'NOTED' to word_tab.
append 'NOTER' to word_tab.
append 'NOTES' to word_tab.
append 'NOTUM' to word_tab.
append 'NOULD' to word_tab.
append 'NOULE' to word_tab.
append 'NOULS' to word_tab.
append 'NOUNS' to word_tab.
append 'NOUNY' to word_tab.
append 'NOUPS' to word_tab.
append 'NOVAE' to word_tab.
append 'NOVAS' to word_tab.
append 'NOVEL' to word_tab.
append 'NOVUM' to word_tab.
append 'NOWAY' to word_tab.
append 'NOWED' to word_tab.
append 'NOWLS' to word_tab.
append 'NOWTS' to word_tab.
append 'NOWTY' to word_tab.
append 'NOXAL' to word_tab.
append 'NOXES' to word_tab.
append 'NOYAU' to word_tab.
append 'NOYED' to word_tab.
append 'NOYES' to word_tab.
append 'NUBBY' to word_tab.
append 'NUBIA' to word_tab.
append 'NUCHA' to word_tab.
append 'NUDDY' to word_tab.
append 'NUDER' to word_tab.
append 'NUDES' to word_tab.
append 'NUDGE' to word_tab.
append 'NUDIE' to word_tab.
append 'NUDZH' to word_tab.
append 'NUFFS' to word_tab.
append 'NUGAE' to word_tab.
append 'NUKED' to word_tab.
append 'NUKES' to word_tab.
append 'NULLA' to word_tab.
append 'NULLS' to word_tab.
append 'NUMBS' to word_tab.
append 'NUMEN' to word_tab.
append 'NUMMY' to word_tab.
append 'NUNNY' to word_tab.
append 'NURDS' to word_tab.
append 'NURDY' to word_tab.
append 'NURLS' to word_tab.
append 'NURRS' to word_tab.
append 'NURSE' to word_tab.
append 'NUTSO' to word_tab.
append 'NUTSY' to word_tab.
append 'NUTTY' to word_tab.
append 'NYAFF' to word_tab.
append 'NYALA' to word_tab.
append 'NYING' to word_tab.
append 'NYLON' to word_tab.
append 'NYMPH' to word_tab.
append 'NYSSA' to word_tab.
append 'OAKED' to word_tab.
append 'OAKEN' to word_tab.
append 'OAKER' to word_tab.
append 'OAKUM' to word_tab.
append 'OARED' to word_tab.
append 'OASES' to word_tab.
append 'OASIS' to word_tab.
append 'OASTS' to word_tab.
append 'OATEN' to word_tab.
append 'OATER' to word_tab.
append 'OATHS' to word_tab.
append 'OAVES' to word_tab.
append 'OBANG' to word_tab.
append 'OBEAH' to word_tab.
append 'OBELI' to word_tab.
append 'OBESE' to word_tab.
append 'OBEYS' to word_tab.
append 'OBIAS' to word_tab.
append 'OBIED' to word_tab.
append 'OBIIT' to word_tab.
append 'OBITS' to word_tab.
append 'OBJET' to word_tab.
append 'OBOES' to word_tab.
append 'OBOLE' to word_tab.
append 'OBOLI' to word_tab.
append 'OBOLS' to word_tab.
append 'OCCAM' to word_tab.
append 'OCCUR' to word_tab.
append 'OCEAN' to word_tab.
append 'OCHER' to word_tab.
append 'OCHES' to word_tab.
append 'OCHRE' to word_tab.
append 'OCHRY' to word_tab.
append 'OCKER' to word_tab.
append 'OCREA' to word_tab.
append 'OCTAD' to word_tab.
append 'OCTAL' to word_tab.
append 'OCTAN' to word_tab.
append 'OCTAS' to word_tab.
append 'OCTET' to word_tab.
append 'OCTYL' to word_tab.
append 'OCULI' to word_tab.
append 'ODAHS' to word_tab.
append 'ODALS' to word_tab.
append 'ODDER' to word_tab.
append 'ODDLY' to word_tab.
append 'ODEON' to word_tab.
append 'ODEUM' to word_tab.
append 'ODISM' to word_tab.
append 'ODIST' to word_tab.
append 'ODIUM' to word_tab.
append 'ODORS' to word_tab.
append 'ODOUR' to word_tab.
append 'ODYLE' to word_tab.
append 'ODYLS' to word_tab.
append 'OFFAL' to word_tab.
append 'OFFED' to word_tab.
append 'OFFER' to word_tab.
append 'OFFIE' to word_tab.
append 'OFLAG' to word_tab.
append 'OFTEN' to word_tab.
append 'OFTER' to word_tab.
append 'OGAMS' to word_tab.
append 'OGEED' to word_tab.
append 'OGEES' to word_tab.
append 'OGGIN' to word_tab.
append 'OGHAM' to word_tab.
append 'OGIVE' to word_tab.
append 'OGLED' to word_tab.
append 'OGLER' to word_tab.
append 'OGLES' to word_tab.
append 'OGMIC' to word_tab.
append 'OGRES' to word_tab.
append 'OHIAS' to word_tab.
append 'OHING' to word_tab.
append 'OHMIC' to word_tab.
append 'OHONE' to word_tab.
append 'OIDIA' to word_tab.
append 'OILED' to word_tab.
append 'OILER' to word_tab.
append 'OINKS' to word_tab.
append 'OINTS' to word_tab.
append 'OJIME' to word_tab.
append 'OKAPI' to word_tab.
append 'OKAYS' to word_tab.
append 'OKEHS' to word_tab.
append 'OKRAS' to word_tab.
append 'OKTAS' to word_tab.
append 'OLDEN' to word_tab.
append 'OLDER' to word_tab.
append 'OLDIE' to word_tab.
append 'OLEIC' to word_tab.
append 'OLEIN' to word_tab.
append 'OLENT' to word_tab.
append 'OLEOS' to word_tab.
append 'OLEUM' to word_tab.
append 'OLIOS' to word_tab.
append 'OLIVE' to word_tab.
append 'OLLAS' to word_tab.
append 'OLLAV' to word_tab.
append 'OLLER' to word_tab.
append 'OLLIE' to word_tab.
append 'OLOGY' to word_tab.
append 'OLPAE' to word_tab.
append 'OLPES' to word_tab.
append 'OMASA' to word_tab.
append 'OMBER' to word_tab.
append 'OMBRE' to word_tab.
append 'OMBUS' to word_tab.
append 'OMEGA' to word_tab.
append 'OMENS' to word_tab.
append 'OMERS' to word_tab.
append 'OMITS' to word_tab.
append 'OMLAH' to word_tab.
append 'OMOVS' to word_tab.
append 'OMRAH' to word_tab.
append 'ONCER' to word_tab.
append 'ONCES' to word_tab.
append 'ONCET' to word_tab.
append 'ONCUS' to word_tab.
append 'ONELY' to word_tab.
append 'ONERS' to word_tab.
append 'ONERY' to word_tab.
append 'ONION' to word_tab.
append 'ONIUM' to word_tab.
append 'ONKUS' to word_tab.
append 'ONLAY' to word_tab.
append 'ONNED' to word_tab.
append 'ONSET' to word_tab.
append 'ONTIC' to word_tab.
append 'OOBIT' to word_tab.
append 'OOHED' to word_tab.
append 'OOMPH' to word_tab.
append 'OONTS' to word_tab.
append 'OOPED' to word_tab.
append 'OORIE' to word_tab.
append 'OOSES' to word_tab.
append 'OOTID' to word_tab.
append 'OOZED' to word_tab.
append 'OOZES' to word_tab.
append 'OPAHS' to word_tab.
append 'OPALS' to word_tab.
append 'OPENS' to word_tab.
append 'OPEPE' to word_tab.
append 'OPERA' to word_tab.
append 'OPINE' to word_tab.
append 'OPING' to word_tab.
append 'OPIUM' to word_tab.
append 'OPPOS' to word_tab.
append 'OPSIN' to word_tab.
append 'OPTED' to word_tab.
append 'OPTER' to word_tab.
append 'OPTIC' to word_tab.
append 'ORACH' to word_tab.
append 'ORACY' to word_tab.
append 'ORALS' to word_tab.
append 'ORANG' to word_tab.
append 'ORANT' to word_tab.
append 'ORATE' to word_tab.
append 'ORBED' to word_tab.
append 'ORBIT' to word_tab.
append 'ORCAS' to word_tab.
append 'ORCIN' to word_tab.
append 'ORDER' to word_tab.
append 'ORDOS' to word_tab.
append 'OREAD' to word_tab.
append 'ORFES' to word_tab.
append 'ORGAN' to word_tab.
append 'ORGIA' to word_tab.
append 'ORGIC' to word_tab.
append 'ORGUE' to word_tab.
append 'ORIBI' to word_tab.
append 'ORIEL' to word_tab.
append 'ORIXA' to word_tab.
append 'ORLES' to word_tab.
append 'ORLON' to word_tab.
append 'ORLOP' to word_tab.
append 'ORMER' to word_tab.
append 'ORNIS' to word_tab.
append 'ORPIN' to word_tab.
append 'ORRIS' to word_tab.
append 'ORTHO' to word_tab.
append 'ORVAL' to word_tab.
append 'ORZOS' to word_tab.
append 'OSCAR' to word_tab.
append 'OSHAC' to word_tab.
append 'OSIER' to word_tab.
append 'OSMIC' to word_tab.
append 'OSMOL' to word_tab.
append 'OSSIA' to word_tab.
append 'OSTIA' to word_tab.
append 'OTAKU' to word_tab.
append 'OTARY' to word_tab.
append 'OTHER' to word_tab.
append 'OTTAR' to word_tab.
append 'OTTER' to word_tab.
append 'OTTOS' to word_tab.
append 'OUBIT' to word_tab.
append 'OUCHT' to word_tab.
append 'OUENS' to word_tab.
append 'OUGHT' to word_tab.
append 'OUIJA' to word_tab.
append 'OULKS' to word_tab.
append 'OUMAS' to word_tab.
append 'OUNCE' to word_tab.
append 'OUNDY' to word_tab.
append 'OUPAS' to word_tab.
append 'OUPED' to word_tab.
append 'OUPHE' to word_tab.
append 'OUPHS' to word_tab.
append 'OURIE' to word_tab.
append 'OUSEL' to word_tab.
append 'OUSTS' to word_tab.
append 'OUTBY' to word_tab.
append 'OUTDO' to word_tab.
append 'OUTED' to word_tab.
append 'OUTER' to word_tab.
append 'OUTGO' to word_tab.
append 'OUTRE' to word_tab.
append 'OUTRO' to word_tab.
append 'OUTTA' to word_tab.
append 'OUZEL' to word_tab.
append 'OUZOS' to word_tab.
append 'OVALS' to word_tab.
append 'OVARY' to word_tab.
append 'OVATE' to word_tab.
append 'OVELS' to word_tab.
append 'OVENS' to word_tab.
append 'OVERS' to word_tab.
append 'OVERT' to word_tab.
append 'OVINE' to word_tab.
append 'OVIST' to word_tab.
append 'OVOID' to word_tab.
append 'OVOLI' to word_tab.
append 'OVOLO' to word_tab.
append 'OVULE' to word_tab.
append 'OWCHE' to word_tab.
append 'OWIES' to word_tab.
append 'OWING' to word_tab.
append 'OWLED' to word_tab.
append 'OWLER' to word_tab.
append 'OWLET' to word_tab.
append 'OWNED' to word_tab.
append 'OWNER' to word_tab.
append 'OWRES' to word_tab.
append 'OWRIE' to word_tab.
append 'OWSEN' to word_tab.
append 'OXBOW' to word_tab.
append 'OXERS' to word_tab.
append 'OXEYE' to word_tab.
append 'OXIDE' to word_tab.
append 'OXIDS' to word_tab.
append 'OXIES' to word_tab.
append 'OXIME' to word_tab.
append 'OXIMS' to word_tab.
append 'OXLIP' to word_tab.
append 'OXTER' to word_tab.
append 'OYERS' to word_tab.
append 'OZEKI' to word_tab.
append 'OZONE' to word_tab.
append 'OZZIE' to word_tab.
append 'PAALS' to word_tab.
append 'PAANS' to word_tab.
append 'PACAS' to word_tab.
append 'PACED' to word_tab.
append 'PACER' to word_tab.
append 'PACES' to word_tab.
append 'PACEY' to word_tab.
append 'PACHA' to word_tab.
append 'PACKS' to word_tab.
append 'PACOS' to word_tab.
append 'PACTA' to word_tab.
append 'PACTS' to word_tab.
append 'PADDY' to word_tab.
append 'PADIS' to word_tab.
append 'PADLE' to word_tab.
append 'PADMA' to word_tab.
append 'PADRE' to word_tab.
append 'PADRI' to word_tab.
append 'PAEAN' to word_tab.
append 'PAEDO' to word_tab.
append 'PAEON' to word_tab.
append 'PAGAN' to word_tab.
append 'PAGED' to word_tab.
append 'PAGER' to word_tab.
append 'PAGES' to word_tab.
append 'PAGLE' to word_tab.
append 'PAGOD' to word_tab.
append 'PAGRI' to word_tab.
append 'PAIKS' to word_tab.
append 'PAILS' to word_tab.
append 'PAINS' to word_tab.
append 'PAINT' to word_tab.
append 'PAIRE' to word_tab.
append 'PAIRS' to word_tab.
append 'PAISA' to word_tab.
append 'PAISE' to word_tab.
append 'PAKKA' to word_tab.
append 'PALAS' to word_tab.
append 'PALAY' to word_tab.
append 'PALEA' to word_tab.
append 'PALED' to word_tab.
append 'PALER' to word_tab.
append 'PALES' to word_tab.
append 'PALET' to word_tab.
append 'PALIS' to word_tab.
append 'PALKI' to word_tab.
append 'PALLA' to word_tab.
append 'PALLS' to word_tab.
append 'PALLY' to word_tab.
append 'PALMS' to word_tab.
append 'PALMY' to word_tab.
append 'PALPI' to word_tab.
append 'PALPS' to word_tab.
append 'PALSA' to word_tab.
append 'PALSY' to word_tab.
append 'PAMPA' to word_tab.
append 'PANAX' to word_tab.
append 'PANCE' to word_tab.
append 'PANDA' to word_tab.
append 'PANDS' to word_tab.
append 'PANDY' to word_tab.
append 'PANED' to word_tab.
append 'PANEL' to word_tab.
append 'PANES' to word_tab.
append 'PANGA' to word_tab.
append 'PANGS' to word_tab.
append 'PANIC' to word_tab.
append 'PANIM' to word_tab.
append 'PANKO' to word_tab.
append 'PANNE' to word_tab.
append 'PANNI' to word_tab.
append 'PANSY' to word_tab.
append 'PANTO' to word_tab.
append 'PANTS' to word_tab.
append 'PANTY' to word_tab.
append 'PAOLI' to word_tab.
append 'PAOLO' to word_tab.
append 'PAPAL' to word_tab.
append 'PAPAS' to word_tab.
append 'PAPAW' to word_tab.
append 'PAPER' to word_tab.
append 'PAPES' to word_tab.
append 'PAPPI' to word_tab.
append 'PAPPY' to word_tab.
append 'PARAE' to word_tab.
append 'PARAS' to word_tab.
append 'PARCH' to word_tab.
append 'PARDI' to word_tab.
append 'PARDS' to word_tab.
append 'PARDY' to word_tab.
append 'PARED' to word_tab.
append 'PAREN' to word_tab.
append 'PAREO' to word_tab.
append 'PARER' to word_tab.
append 'PARES' to word_tab.
append 'PAREU' to word_tab.
append 'PAREV' to word_tab.
append 'PARGE' to word_tab.
append 'PARGO' to word_tab.
append 'PARIS' to word_tab.
append 'PARKA' to word_tab.
append 'PARKI' to word_tab.
append 'PARKS' to word_tab.
append 'PARKY' to word_tab.
append 'PARLE' to word_tab.
append 'PARLY' to word_tab.
append 'PARMA' to word_tab.
append 'PAROL' to word_tab.
append 'PARPS' to word_tab.
append 'PARRA' to word_tab.
append 'PARRS' to word_tab.
append 'PARRY' to word_tab.
append 'PARSE' to word_tab.
append 'PARTI' to word_tab.
append 'PARTS' to word_tab.
append 'PARTY' to word_tab.
append 'PARVE' to word_tab.
append 'PARVO' to word_tab.
append 'PASEO' to word_tab.
append 'PASES' to word_tab.
append 'PASHA' to word_tab.
append 'PASHM' to word_tab.
append 'PASKA' to word_tab.
append 'PASPY' to word_tab.
append 'PASSE' to word_tab.
append 'PASTA' to word_tab.
append 'PASTE' to word_tab.
append 'PASTS' to word_tab.
append 'PASTY' to word_tab.
append 'PATCH' to word_tab.
append 'PATED' to word_tab.
append 'PATEN' to word_tab.
append 'PATER' to word_tab.
append 'PATES' to word_tab.
append 'PATHS' to word_tab.
append 'PATIN' to word_tab.
append 'PATIO' to word_tab.
append 'PATKA' to word_tab.
append 'PATLY' to word_tab.
append 'PATSY' to word_tab.
append 'PATTE' to word_tab.
append 'PATTY' to word_tab.
append 'PATUS' to word_tab.
append 'PAUAS' to word_tab.
append 'PAULS' to word_tab.
append 'PAUSE' to word_tab.
append 'PAVAN' to word_tab.
append 'PAVED' to word_tab.
append 'PAVEN' to word_tab.
append 'PAVER' to word_tab.
append 'PAVES' to word_tab.
append 'PAVID' to word_tab.
append 'PAVIN' to word_tab.
append 'PAVIS' to word_tab.
append 'PAWAS' to word_tab.
append 'PAWAW' to word_tab.
append 'PAWED' to word_tab.
append 'PAWER' to word_tab.
append 'PAWKS' to word_tab.
append 'PAWKY' to word_tab.
append 'PAWLS' to word_tab.
append 'PAWNS' to word_tab.
append 'PAXES' to word_tab.
append 'PAYED' to word_tab.
append 'PAYEE' to word_tab.
append 'PAYER' to word_tab.
append 'PAYOR' to word_tab.
append 'PAYSD' to word_tab.
append 'PEACE' to word_tab.
append 'PEACH' to word_tab.
append 'PEAGE' to word_tab.
append 'PEAGS' to word_tab.
append 'PEAKS' to word_tab.
append 'PEAKY' to word_tab.
append 'PEALS' to word_tab.
append 'PEANS' to word_tab.
append 'PEARE' to word_tab.
append 'PEARL' to word_tab.
append 'PEARS' to word_tab.
append 'PEART' to word_tab.
append 'PEASE' to word_tab.
append 'PEATS' to word_tab.
append 'PEATY' to word_tab.
append 'PEAVY' to word_tab.
append 'PEAZE' to word_tab.
append 'PEBAS' to word_tab.
append 'PECAN' to word_tab.
append 'PECHS' to word_tab.
append 'PECKE' to word_tab.
append 'PECKS' to word_tab.
append 'PECKY' to word_tab.
append 'PEDAL' to word_tab.
append 'PEDES' to word_tab.
append 'PEDIS' to word_tab.
append 'PEDRO' to word_tab.
append 'PEECE' to word_tab.
append 'PEEKS' to word_tab.
append 'PEELS' to word_tab.
append 'PEENS' to word_tab.
append 'PEEOY' to word_tab.
append 'PEEPE' to word_tab.
append 'PEEPS' to word_tab.
append 'PEERS' to word_tab.
append 'PEERY' to word_tab.
append 'PEEVE' to word_tab.
append 'PEGGY' to word_tab.
append 'PEGHS' to word_tab.
append 'PEINS' to word_tab.
append 'PEISE' to word_tab.
append 'PEIZE' to word_tab.
append 'PEKAN' to word_tab.
append 'PEKES' to word_tab.
append 'PEKIN' to word_tab.
append 'PEKOE' to word_tab.
append 'PELAS' to word_tab.
append 'PELAU' to word_tab.
append 'PELES' to word_tab.
append 'PELFS' to word_tab.
append 'PELLS' to word_tab.
append 'PELMA' to word_tab.
append 'PELON' to word_tab.
append 'PELTA' to word_tab.
append 'PELTS' to word_tab.
append 'PENAL' to word_tab.
append 'PENCE' to word_tab.
append 'PENDS' to word_tab.
append 'PENDU' to word_tab.
append 'PENED' to word_tab.
append 'PENES' to word_tab.
append 'PENGO' to word_tab.
append 'PENIE' to word_tab.
append 'PENIS' to word_tab.
append 'PENKS' to word_tab.
append 'PENNA' to word_tab.
append 'PENNE' to word_tab.
append 'PENNI' to word_tab.
append 'PENNY' to word_tab.
append 'PENTS' to word_tab.
append 'PEONS' to word_tab.
append 'PEONY' to word_tab.
append 'PEPLA' to word_tab.
append 'PEPOS' to word_tab.
append 'PEPPY' to word_tab.
append 'PEPSI' to word_tab.
append 'PERAI' to word_tab.
append 'PERCE' to word_tab.
append 'PERCH' to word_tab.
append 'PERCS' to word_tab.
append 'PERDU' to word_tab.
append 'PERDY' to word_tab.
append 'PEREA' to word_tab.
append 'PERES' to word_tab.
append 'PERIL' to word_tab.
append 'PERIS' to word_tab.
append 'PERKS' to word_tab.
append 'PERKY' to word_tab.
append 'PERMS' to word_tab.
append 'PERNS' to word_tab.
append 'PEROG' to word_tab.
append 'PERPS' to word_tab.
append 'PERRY' to word_tab.
append 'PERSE' to word_tab.
append 'PERST' to word_tab.
append 'PERTS' to word_tab.
append 'PERVE' to word_tab.
append 'PERVO' to word_tab.
append 'PERVS' to word_tab.
append 'PERVY' to word_tab.
append 'PESKY' to word_tab.
append 'PESOS' to word_tab.
append 'PESTO' to word_tab.
append 'PESTS' to word_tab.
append 'PESTY' to word_tab.
append 'PETAL' to word_tab.
append 'PETAR' to word_tab.
append 'PETER' to word_tab.
append 'PETIT' to word_tab.
append 'PETRE' to word_tab.
append 'PETRI' to word_tab.
append 'PETTI' to word_tab.
append 'PETTO' to word_tab.
append 'PETTY' to word_tab.
append 'PEWEE' to word_tab.
append 'PEWIT' to word_tab.
append 'PEYSE' to word_tab.
append 'PHAGE' to word_tab.
append 'PHANG' to word_tab.
append 'PHARE' to word_tab.
append 'PHARM' to word_tab.
append 'PHASE' to word_tab.
append 'PHEER' to word_tab.
append 'PHENE' to word_tab.
append 'PHEON' to word_tab.
append 'PHESE' to word_tab.
append 'PHIAL' to word_tab.
append 'PHISH' to word_tab.
append 'PHIZZ' to word_tab.
append 'PHLOX' to word_tab.
append 'PHOCA' to word_tab.
append 'PHONE' to word_tab.
append 'PHONO' to word_tab.
append 'PHONS' to word_tab.
append 'PHONY' to word_tab.
append 'PHOTO' to word_tab.
append 'PHOTS' to word_tab.
append 'PHPHT' to word_tab.
append 'PHUTS' to word_tab.
append 'PHYLA' to word_tab.
append 'PHYLE' to word_tab.
append 'PIANI' to word_tab.
append 'PIANO' to word_tab.
append 'PIANS' to word_tab.
append 'PIBAL' to word_tab.
append 'PICAL' to word_tab.
append 'PICAS' to word_tab.
append 'PICCY' to word_tab.
append 'PICKS' to word_tab.
append 'PICKY' to word_tab.
append 'PICOT' to word_tab.
append 'PICRA' to word_tab.
append 'PICUL' to word_tab.
append 'PIECE' to word_tab.
append 'PIEND' to word_tab.
append 'PIERS' to word_tab.
append 'PIERT' to word_tab.
append 'PIETA' to word_tab.
append 'PIETS' to word_tab.
append 'PIETY' to word_tab.
append 'PIEZO' to word_tab.
append 'PIGGY' to word_tab.
append 'PIGHT' to word_tab.
append 'PIGMY' to word_tab.
append 'PIING' to word_tab.
append 'PIKAS' to word_tab.
append 'PIKAU' to word_tab.
append 'PIKED' to word_tab.
append 'PIKER' to word_tab.
append 'PIKES' to word_tab.
append 'PIKIS' to word_tab.
append 'PIKUL' to word_tab.
append 'PILAE' to word_tab.
append 'PILAF' to word_tab.
append 'PILAO' to word_tab.
append 'PILAR' to word_tab.
append 'PILAU' to word_tab.
append 'PILAW' to word_tab.
append 'PILCH' to word_tab.
append 'PILEA' to word_tab.
append 'PILED' to word_tab.
append 'PILEI' to word_tab.
append 'PILER' to word_tab.
append 'PILES' to word_tab.
append 'PILIS' to word_tab.
append 'PILLS' to word_tab.
append 'PILOT' to word_tab.
append 'PILOW' to word_tab.
append 'PILUM' to word_tab.
append 'PILUS' to word_tab.
append 'PIMAS' to word_tab.
append 'PIMPS' to word_tab.
append 'PINAS' to word_tab.
append 'PINCH' to word_tab.
append 'PINED' to word_tab.
append 'PINES' to word_tab.
append 'PINEY' to word_tab.
append 'PINGO' to word_tab.
append 'PINGS' to word_tab.
append 'PINKO' to word_tab.
append 'PINKS' to word_tab.
append 'PINKY' to word_tab.
append 'PINNA' to word_tab.
append 'PINNY' to word_tab.
append 'PINON' to word_tab.
append 'PINOT' to word_tab.
append 'PINTA' to word_tab.
append 'PINTO' to word_tab.
append 'PINTS' to word_tab.
append 'PINUP' to word_tab.
append 'PIONS' to word_tab.
append 'PIONY' to word_tab.
append 'PIOUS' to word_tab.
append 'PIOYE' to word_tab.
append 'PIOYS' to word_tab.
append 'PIPAL' to word_tab.
append 'PIPAS' to word_tab.
append 'PIPED' to word_tab.
append 'PIPER' to word_tab.
append 'PIPES' to word_tab.
append 'PIPET' to word_tab.
append 'PIPIS' to word_tab.
append 'PIPIT' to word_tab.
append 'PIPPY' to word_tab.
append 'PIPUL' to word_tab.
append 'PIQUE' to word_tab.
append 'PIRAI' to word_tab.
append 'PIRLS' to word_tab.
append 'PIRNS' to word_tab.
append 'PIROG' to word_tab.
append 'PISCO' to word_tab.
append 'PISES' to word_tab.
append 'PISKY' to word_tab.
append 'PISOS' to word_tab.
append 'PISSY' to word_tab.
append 'PISTE' to word_tab.
append 'PITAS' to word_tab.
append 'PITCH' to word_tab.
append 'PITHS' to word_tab.
append 'PITHY' to word_tab.
append 'PITON' to word_tab.
append 'PITOT' to word_tab.
append 'PITTA' to word_tab.
append 'PIUMS' to word_tab.
append 'PIVOT' to word_tab.
append 'PIXEL' to word_tab.
append 'PIXES' to word_tab.
append 'PIXIE' to word_tab.
append 'PIZED' to word_tab.
append 'PIZES' to word_tab.
append 'PIZZA' to word_tab.
append 'PLAAS' to word_tab.
append 'PLACE' to word_tab.
append 'PLACK' to word_tab.
append 'PLAGE' to word_tab.
append 'PLAID' to word_tab.
append 'PLAIN' to word_tab.
append 'PLAIT' to word_tab.
append 'PLANE' to word_tab.
append 'PLANK' to word_tab.
append 'PLANS' to word_tab.
append 'PLANT' to word_tab.
append 'PLAPS' to word_tab.
append 'PLASH' to word_tab.
append 'PLASM' to word_tab.
append 'PLAST' to word_tab.
append 'PLATE' to word_tab.
append 'PLATS' to word_tab.
append 'PLATT' to word_tab.
append 'PLATY' to word_tab.
append 'PLAYA' to word_tab.
append 'PLAYS' to word_tab.
append 'PLAZA' to word_tab.
append 'PLEAD' to word_tab.
append 'PLEAS' to word_tab.
append 'PLEAT' to word_tab.
append 'PLEBE' to word_tab.
append 'PLEBS' to word_tab.
append 'PLENA' to word_tab.
append 'PLEON' to word_tab.
append 'PLESH' to word_tab.
append 'PLEWS' to word_tab.
append 'PLICA' to word_tab.
append 'PLIED' to word_tab.
append 'PLIER' to word_tab.
append 'PLIES' to word_tab.
append 'PLIMS' to word_tab.
append 'PLING' to word_tab.
append 'PLINK' to word_tab.
append 'PLOAT' to word_tab.
append 'PLODS' to word_tab.
append 'PLONG' to word_tab.
append 'PLONK' to word_tab.
append 'PLOOK' to word_tab.
append 'PLOPS' to word_tab.
append 'PLOTS' to word_tab.
append 'PLOTZ' to word_tab.
append 'PLOUK' to word_tab.
append 'PLOWS' to word_tab.
append 'PLOYE' to word_tab.
append 'PLOYS' to word_tab.
append 'PLUCK' to word_tab.
append 'PLUES' to word_tab.
append 'PLUFF' to word_tab.
append 'PLUGS' to word_tab.
append 'PLUMB' to word_tab.
append 'PLUME' to word_tab.
append 'PLUMP' to word_tab.
append 'PLUMS' to word_tab.
append 'PLUMY' to word_tab.
append 'PLUNK' to word_tab.
append 'PLUOT' to word_tab.
append 'PLUSH' to word_tab.
append 'PLUTO' to word_tab.
append 'PLYER' to word_tab.
append 'POACH' to word_tab.
append 'POAKA' to word_tab.
append 'POAKE' to word_tab.
append 'POBOY' to word_tab.
append 'POCKS' to word_tab.
append 'POCKY' to word_tab.
append 'PODAL' to word_tab.
append 'PODDY' to word_tab.
append 'PODEX' to word_tab.
append 'PODGE' to word_tab.
append 'PODGY' to word_tab.
append 'PODIA' to word_tab.
append 'POEMS' to word_tab.
append 'POEPS' to word_tab.
append 'POESY' to word_tab.
append 'POETS' to word_tab.
append 'POGEY' to word_tab.
append 'POGGE' to word_tab.
append 'POGOS' to word_tab.
append 'POHED' to word_tab.
append 'POILU' to word_tab.
append 'POIND' to word_tab.
append 'POINT' to word_tab.
append 'POISE' to word_tab.
append 'POKAL' to word_tab.
append 'POKED' to word_tab.
append 'POKER' to word_tab.
append 'POKES' to word_tab.
append 'POKEY' to word_tab.
append 'POKIE' to word_tab.
append 'POLAR' to word_tab.
append 'POLED' to word_tab.
append 'POLER' to word_tab.
append 'POLES' to word_tab.
append 'POLEY' to word_tab.
append 'POLIO' to word_tab.
append 'POLIS' to word_tab.
append 'POLJE' to word_tab.
append 'POLKA' to word_tab.
append 'POLKS' to word_tab.
append 'POLLS' to word_tab.
append 'POLLY' to word_tab.
append 'POLOS' to word_tab.
append 'POLTS' to word_tab.
append 'POLYP' to word_tab.
append 'POLYS' to word_tab.
append 'POMBE' to word_tab.
append 'POMES' to word_tab.
append 'POMMY' to word_tab.
append 'POMOS' to word_tab.
append 'POMPS' to word_tab.
append 'PONCE' to word_tab.
append 'PONCY' to word_tab.
append 'PONDS' to word_tab.
append 'PONES' to word_tab.
append 'PONEY' to word_tab.
append 'PONGA' to word_tab.
append 'PONGO' to word_tab.
append 'PONGS' to word_tab.
append 'PONGY' to word_tab.
append 'PONKS' to word_tab.
append 'PONTS' to word_tab.
append 'PONTY' to word_tab.
append 'PONZU' to word_tab.
append 'POOCH' to word_tab.
append 'POODS' to word_tab.
append 'POOED' to word_tab.
append 'POOHS' to word_tab.
append 'POOJA' to word_tab.
append 'POOKA' to word_tab.
append 'POOKS' to word_tab.
append 'POOLS' to word_tab.
append 'POONS' to word_tab.
append 'POOPS' to word_tab.
append 'POOPY' to word_tab.
append 'POORI' to word_tab.
append 'POORT' to word_tab.
append 'POOTS' to word_tab.
append 'POPES' to word_tab.
append 'POPPA' to word_tab.
append 'POPPY' to word_tab.
append 'POPSY' to word_tab.
append 'PORAE' to word_tab.
append 'PORAL' to word_tab.
append 'PORCH' to word_tab.
append 'PORED' to word_tab.
append 'PORER' to word_tab.
append 'PORES' to word_tab.
append 'PORGE' to word_tab.
append 'PORGY' to word_tab.
append 'PORIN' to word_tab.
append 'PORKS' to word_tab.
append 'PORKY' to word_tab.
append 'PORNO' to word_tab.
append 'PORNS' to word_tab.
append 'PORNY' to word_tab.
append 'PORTA' to word_tab.
append 'PORTS' to word_tab.
append 'PORTY' to word_tab.
append 'POSED' to word_tab.
append 'POSER' to word_tab.
append 'POSES' to word_tab.
append 'POSEY' to word_tab.
append 'POSHO' to word_tab.
append 'POSIT' to word_tab.
append 'POSSE' to word_tab.
append 'POSTS' to word_tab.
append 'POTAE' to word_tab.
append 'POTCH' to word_tab.
append 'POTED' to word_tab.
append 'POTES' to word_tab.
append 'POTIN' to word_tab.
append 'POTOO' to word_tab.
append 'POTSY' to word_tab.
append 'POTTO' to word_tab.
append 'POTTS' to word_tab.
append 'POTTY' to word_tab.
append 'POUCH' to word_tab.
append 'POUFF' to word_tab.
append 'POUFS' to word_tab.
append 'POUKE' to word_tab.
append 'POUKS' to word_tab.
append 'POULE' to word_tab.
append 'POULP' to word_tab.
append 'POULT' to word_tab.
append 'POUND' to word_tab.
append 'POUPE' to word_tab.
append 'POUPT' to word_tab.
append 'POURS' to word_tab.
append 'POUTS' to word_tab.
append 'POUTY' to word_tab.
append 'POWAN' to word_tab.
append 'POWER' to word_tab.
append 'POWIN' to word_tab.
append 'POWND' to word_tab.
append 'POWNS' to word_tab.
append 'POWNY' to word_tab.
append 'POWRE' to word_tab.
append 'POXED' to word_tab.
append 'POXES' to word_tab.
append 'POYNT' to word_tab.
append 'POYOU' to word_tab.
append 'POYSE' to word_tab.
append 'POZZY' to word_tab.
append 'PRAAM' to word_tab.
append 'PRADS' to word_tab.
append 'PRAHU' to word_tab.
append 'PRAMS' to word_tab.
append 'PRANA' to word_tab.
append 'PRANG' to word_tab.
append 'PRANK' to word_tab.
append 'PRAOS' to word_tab.
append 'PRASE' to word_tab.
append 'PRATE' to word_tab.
append 'PRATS' to word_tab.
append 'PRATT' to word_tab.
append 'PRATY' to word_tab.
append 'PRAUS' to word_tab.
append 'PRAWN' to word_tab.
append 'PRAYS' to word_tab.
append 'PREDY' to word_tab.
append 'PREED' to word_tab.
append 'PREEN' to word_tab.
append 'PREES' to word_tab.
append 'PREIF' to word_tab.
append 'PREMS' to word_tab.
append 'PREMY' to word_tab.
append 'PRENT' to word_tab.
append 'PREON' to word_tab.
append 'PREOP' to word_tab.
append 'PREPS' to word_tab.
append 'PRESA' to word_tab.
append 'PRESE' to word_tab.
append 'PRESS' to word_tab.
append 'PREST' to word_tab.
append 'PREVE' to word_tab.
append 'PREXY' to word_tab.
append 'PREYS' to word_tab.
append 'PRIAL' to word_tab.
append 'PRICE' to word_tab.
append 'PRICK' to word_tab.
append 'PRICY' to word_tab.
append 'PRIDE' to word_tab.
append 'PRIED' to word_tab.
append 'PRIEF' to word_tab.
append 'PRIER' to word_tab.
append 'PRIES' to word_tab.
append 'PRIGS' to word_tab.
append 'PRILL' to word_tab.
append 'PRIMA' to word_tab.
append 'PRIME' to word_tab.
append 'PRIMI' to word_tab.
append 'PRIMO' to word_tab.
append 'PRIMP' to word_tab.
append 'PRIMS' to word_tab.
append 'PRIMY' to word_tab.
append 'PRINK' to word_tab.
append 'PRINT' to word_tab.
append 'PRION' to word_tab.
append 'PRIOR' to word_tab.
append 'PRISE' to word_tab.
append 'PRISM' to word_tab.
append 'PRISS' to word_tab.
append 'PRIVY' to word_tab.
append 'PRIZE' to word_tab.
append 'PROAS' to word_tab.
append 'PROBE' to word_tab.
append 'PROBS' to word_tab.
append 'PRODS' to word_tab.
append 'PROEM' to word_tab.
append 'PROFS' to word_tab.
append 'PROGS' to word_tab.
append 'PROIN' to word_tab.
append 'PROKE' to word_tab.
append 'PROLE' to word_tab.
append 'PROLL' to word_tab.
append 'PROMO' to word_tab.
append 'PROMS' to word_tab.
append 'PRONE' to word_tab.
append 'PRONG' to word_tab.
append 'PRONK' to word_tab.
append 'PROOF' to word_tab.
append 'PROPS' to word_tab.
append 'PRORE' to word_tab.
append 'PROSE' to word_tab.
append 'PROSO' to word_tab.
append 'PROSS' to word_tab.
append 'PROST' to word_tab.
append 'PROSY' to word_tab.
append 'PROTO' to word_tab.
append 'PROUD' to word_tab.
append 'PROUL' to word_tab.
append 'PROVE' to word_tab.
append 'PROWL' to word_tab.
append 'PROWS' to word_tab.
append 'PROXY' to word_tab.
append 'PROYN' to word_tab.
append 'PRUDE' to word_tab.
append 'PRUNE' to word_tab.
append 'PRUNT' to word_tab.
append 'PRUTA' to word_tab.
append 'PRYER' to word_tab.
append 'PRYSE' to word_tab.
append 'PSALM' to word_tab.
append 'PSEUD' to word_tab.
append 'PSHAW' to word_tab.
append 'PSION' to word_tab.
append 'PSOAE' to word_tab.
append 'PSOAI' to word_tab.
append 'PSOAS' to word_tab.
append 'PSORA' to word_tab.
append 'PSYCH' to word_tab.
append 'PSYOP' to word_tab.
append 'PUBCO' to word_tab.
append 'PUBES' to word_tab.
append 'PUBIC' to word_tab.
append 'PUBIS' to word_tab.
append 'PUCAN' to word_tab.
append 'PUCER' to word_tab.
append 'PUCES' to word_tab.
append 'PUCKA' to word_tab.
append 'PUCKS' to word_tab.
append 'PUDDY' to word_tab.
append 'PUDGE' to word_tab.
append 'PUDGY' to word_tab.
append 'PUDIC' to word_tab.
append 'PUDOR' to word_tab.
append 'PUDSY' to word_tab.
append 'PUDUS' to word_tab.
append 'PUERS' to word_tab.
append 'PUFFA' to word_tab.
append 'PUFFS' to word_tab.
append 'PUFFY' to word_tab.
append 'PUGGY' to word_tab.
append 'PUGIL' to word_tab.
append 'PUHAS' to word_tab.
append 'PUJAH' to word_tab.
append 'PUJAS' to word_tab.
append 'PUKAS' to word_tab.
append 'PUKED' to word_tab.
append 'PUKER' to word_tab.
append 'PUKES' to word_tab.
append 'PUKEY' to word_tab.
append 'PUKKA' to word_tab.
append 'PUKUS' to word_tab.
append 'PULAO' to word_tab.
append 'PULAS' to word_tab.
append 'PULED' to word_tab.
append 'PULER' to word_tab.
append 'PULES' to word_tab.
append 'PULIK' to word_tab.
append 'PULIS' to word_tab.
append 'PULKA' to word_tab.
append 'PULKS' to word_tab.
append 'PULLI' to word_tab.
append 'PULLS' to word_tab.
append 'PULLY' to word_tab.
append 'PULMO' to word_tab.
append 'PULPS' to word_tab.
append 'PULPY' to word_tab.
append 'PULSE' to word_tab.
append 'PULUS' to word_tab.
append 'PUMAS' to word_tab.
append 'PUMIE' to word_tab.
append 'PUMPS' to word_tab.
append 'PUNAS' to word_tab.
append 'PUNCE' to word_tab.
append 'PUNCH' to word_tab.
append 'PUNGA' to word_tab.
append 'PUNGS' to word_tab.
append 'PUNJI' to word_tab.
append 'PUNKA' to word_tab.
append 'PUNKS' to word_tab.
append 'PUNKY' to word_tab.
append 'PUNNY' to word_tab.
append 'PUNTO' to word_tab.
append 'PUNTS' to word_tab.
append 'PUNTY' to word_tab.
append 'PUPAE' to word_tab.
append 'PUPAL' to word_tab.
append 'PUPAS' to word_tab.
append 'PUPIL' to word_tab.
append 'PUPPY' to word_tab.
append 'PUPUS' to word_tab.
append 'PURDA' to word_tab.
append 'PURED' to word_tab.
append 'PUREE' to word_tab.
append 'PURER' to word_tab.
append 'PURES' to word_tab.
append 'PURGE' to word_tab.
append 'PURIN' to word_tab.
append 'PURIS' to word_tab.
append 'PURLS' to word_tab.
append 'PURPY' to word_tab.
append 'PURRS' to word_tab.
append 'PURSE' to word_tab.
append 'PURSY' to word_tab.
append 'PURTY' to word_tab.
append 'PUSES' to word_tab.
append 'PUSHY' to word_tab.
append 'PUSLE' to word_tab.
append 'PUSSY' to word_tab.
append 'PUTID' to word_tab.
append 'PUTON' to word_tab.
append 'PUTTI' to word_tab.
append 'PUTTO' to word_tab.
append 'PUTTS' to word_tab.
append 'PUTTY' to word_tab.
append 'PUZEL' to word_tab.
append 'PWNED' to word_tab.
append 'PYATS' to word_tab.
append 'PYETS' to word_tab.
append 'PYGAL' to word_tab.
append 'PYGMY' to word_tab.
append 'PYINS' to word_tab.
append 'PYLON' to word_tab.
append 'PYNED' to word_tab.
append 'PYNES' to word_tab.
append 'PYOID' to word_tab.
append 'PYOTS' to word_tab.
append 'PYRAL' to word_tab.
append 'PYRAN' to word_tab.
append 'PYRES' to word_tab.
append 'PYREX' to word_tab.
append 'PYRIC' to word_tab.
append 'PYROS' to word_tab.
append 'PYXED' to word_tab.
append 'PYXES' to word_tab.
append 'PYXIE' to word_tab.
append 'PYXIS' to word_tab.
append 'PZAZZ' to word_tab.
append 'QADIS' to word_tab.
append 'QAIDS' to word_tab.
append 'QAJAQ' to word_tab.
append 'QANAT' to word_tab.
append 'QAPIK' to word_tab.
append 'QIBLA' to word_tab.
append 'QOPHS' to word_tab.
append 'QORMA' to word_tab.
append 'QUACK' to word_tab.
append 'QUADS' to word_tab.
append 'QUAFF' to word_tab.
append 'QUAGS' to word_tab.
append 'QUAIL' to word_tab.
append 'QUAIR' to word_tab.
append 'QUAIS' to word_tab.
append 'QUAKE' to word_tab.
append 'QUAKY' to word_tab.
append 'QUALE' to word_tab.
append 'QUALM' to word_tab.
append 'QUANT' to word_tab.
append 'QUARE' to word_tab.
append 'QUARK' to word_tab.
append 'QUART' to word_tab.
append 'QUASH' to word_tab.
append 'QUASI' to word_tab.
append 'QUASS' to word_tab.
append 'QUATE' to word_tab.
append 'QUATS' to word_tab.
append 'QUAYD' to word_tab.
append 'QUAYS' to word_tab.
append 'QUBIT' to word_tab.
append 'QUEAN' to word_tab.
append 'QUEEN' to word_tab.
append 'QUEER' to word_tab.
append 'QUELL' to word_tab.
append 'QUEME' to word_tab.
append 'QUENA' to word_tab.
append 'QUERN' to word_tab.
append 'QUERY' to word_tab.
append 'QUEST' to word_tab.
append 'QUEUE' to word_tab.
append 'QUEYN' to word_tab.
append 'QUEYS' to word_tab.
append 'QUICH' to word_tab.
append 'QUICK' to word_tab.
append 'QUIDS' to word_tab.
append 'QUIET' to word_tab.
append 'QUIFF' to word_tab.
append 'QUILL' to word_tab.
append 'QUILT' to word_tab.
append 'QUIMS' to word_tab.
append 'QUINA' to word_tab.
append 'QUINE' to word_tab.
append 'QUINO' to word_tab.
append 'QUINS' to word_tab.
append 'QUINT' to word_tab.
append 'QUIPO' to word_tab.
append 'QUIPS' to word_tab.
append 'QUIPU' to word_tab.
append 'QUIRE' to word_tab.
append 'QUIRK' to word_tab.
append 'QUIRT' to word_tab.
append 'QUIST' to word_tab.
append 'QUITE' to word_tab.
append 'QUITS' to word_tab.
append 'QUOAD' to word_tab.
append 'QUODS' to word_tab.
append 'QUOIF' to word_tab.
append 'QUOIN' to word_tab.
append 'QUOIT' to word_tab.
append 'QUOLL' to word_tab.
append 'QUONK' to word_tab.
append 'QUOPS' to word_tab.
append 'QUOTA' to word_tab.
append 'QUOTE' to word_tab.
append 'QUOTH' to word_tab.
append 'QURSH' to word_tab.
append 'QUYTE' to word_tab.
append 'RABAT' to word_tab.
append 'RABBI' to word_tab.
append 'RABIC' to word_tab.
append 'RABID' to word_tab.
append 'RABIS' to word_tab.
append 'RACED' to word_tab.
append 'RACER' to word_tab.
append 'RACES' to word_tab.
append 'RACHE' to word_tab.
append 'RACKS' to word_tab.
append 'RACON' to word_tab.
append 'RADAR' to word_tab.
append 'RADGE' to word_tab.
append 'RADII' to word_tab.
append 'RADIO' to word_tab.
append 'RADIX' to word_tab.
append 'RADON' to word_tab.
append 'RAFFS' to word_tab.
append 'RAFTS' to word_tab.
append 'RAGAS' to word_tab.
append 'RAGDE' to word_tab.
append 'RAGED' to word_tab.
append 'RAGEE' to word_tab.
append 'RAGER' to word_tab.
append 'RAGES' to word_tab.
append 'RAGGA' to word_tab.
append 'RAGGS' to word_tab.
append 'RAGGY' to word_tab.
append 'RAGIS' to word_tab.
append 'RAGUS' to word_tab.
append 'RAHED' to word_tab.
append 'RAHUI' to word_tab.
append 'RAIAS' to word_tab.
append 'RAIDS' to word_tab.
append 'RAIKS' to word_tab.
append 'RAILE' to word_tab.
append 'RAILS' to word_tab.
append 'RAINE' to word_tab.
append 'RAINS' to word_tab.
append 'RAINY' to word_tab.
append 'RAIRD' to word_tab.
append 'RAISE' to word_tab.
append 'RAITA' to word_tab.
append 'RAITS' to word_tab.
append 'RAJAH' to word_tab.
append 'RAJAS' to word_tab.
append 'RAJES' to word_tab.
append 'RAKED' to word_tab.
append 'RAKEE' to word_tab.
append 'RAKER' to word_tab.
append 'RAKES' to word_tab.
append 'RAKIA' to word_tab.
append 'RAKIS' to word_tab.
append 'RAKUS' to word_tab.
append 'RALES' to word_tab.
append 'RALLY' to word_tab.
append 'RALPH' to word_tab.
append 'RAMAL' to word_tab.
append 'RAMEE' to word_tab.
append 'RAMEN' to word_tab.
append 'RAMET' to word_tab.
append 'RAMIE' to word_tab.
append 'RAMIN' to word_tab.
append 'RAMIS' to word_tab.
append 'RAMMY' to word_tab.
append 'RAMPS' to word_tab.
append 'RAMUS' to word_tab.
append 'RANAS' to word_tab.
append 'RANCE' to word_tab.
append 'RANCH' to word_tab.
append 'RANDS' to word_tab.
append 'RANDY' to word_tab.
append 'RANEE' to word_tab.
append 'RANGA' to word_tab.
append 'RANGE' to word_tab.
append 'RANGI' to word_tab.
append 'RANGS' to word_tab.
append 'RANGY' to word_tab.
append 'RANID' to word_tab.
append 'RANIS' to word_tab.
append 'RANKE' to word_tab.
append 'RANKS' to word_tab.
append 'RANTS' to word_tab.
append 'RAPED' to word_tab.
append 'RAPER' to word_tab.
append 'RAPES' to word_tab.
append 'RAPHE' to word_tab.
append 'RAPID' to word_tab.
append 'RAPPE' to word_tab.
append 'RARED' to word_tab.
append 'RAREE' to word_tab.
append 'RARER' to word_tab.
append 'RARES' to word_tab.
append 'RARKS' to word_tab.
append 'RASED' to word_tab.
append 'RASER' to word_tab.
append 'RASES' to word_tab.
append 'RASPS' to word_tab.
append 'RASPY' to word_tab.
append 'RASSE' to word_tab.
append 'RASTA' to word_tab.
append 'RATAL' to word_tab.
append 'RATAN' to word_tab.
append 'RATAS' to word_tab.
append 'RATCH' to word_tab.
append 'RATED' to word_tab.
append 'RATEL' to word_tab.
append 'RATER' to word_tab.
append 'RATES' to word_tab.
append 'RATHA' to word_tab.
append 'RATHE' to word_tab.
append 'RATHS' to word_tab.
append 'RATIO' to word_tab.
append 'RATOO' to word_tab.
append 'RATOS' to word_tab.
append 'RATTY' to word_tab.
append 'RATUS' to word_tab.
append 'RAUNS' to word_tab.
append 'RAUPO' to word_tab.
append 'RAVED' to word_tab.
append 'RAVEL' to word_tab.
append 'RAVEN' to word_tab.
append 'RAVER' to word_tab.
append 'RAVES' to word_tab.
append 'RAVEY' to word_tab.
append 'RAVIN' to word_tab.
append 'RAWER' to word_tab.
append 'RAWIN' to word_tab.
append 'RAWLY' to word_tab.
append 'RAWNS' to word_tab.
append 'RAXED' to word_tab.
append 'RAXES' to word_tab.
append 'RAYAH' to word_tab.
append 'RAYAS' to word_tab.
append 'RAYED' to word_tab.
append 'RAYLE' to word_tab.
append 'RAYNE' to word_tab.
append 'RAYON' to word_tab.
append 'RAZED' to word_tab.
append 'RAZEE' to word_tab.
append 'RAZER' to word_tab.
append 'RAZES' to word_tab.
append 'RAZOO' to word_tab.
append 'RAZOR' to word_tab.
append 'REACH' to word_tab.
append 'REACT' to word_tab.
append 'READD' to word_tab.
append 'READS' to word_tab.
append 'READY' to word_tab.
append 'REAIS' to word_tab.
append 'REAKS' to word_tab.
append 'REALM' to word_tab.
append 'REALO' to word_tab.
append 'REALS' to word_tab.
append 'REAME' to word_tab.
append 'REAMS' to word_tab.
append 'REAMY' to word_tab.
append 'REANS' to word_tab.
append 'REAPS' to word_tab.
append 'REARM' to word_tab.
append 'REARS' to word_tab.
append 'REAST' to word_tab.
append 'REATA' to word_tab.
append 'REATE' to word_tab.
append 'REAVE' to word_tab.
append 'REBAR' to word_tab.
append 'REBBE' to word_tab.
append 'REBEC' to word_tab.
append 'REBEL' to word_tab.
append 'REBID' to word_tab.
append 'REBIT' to word_tab.
append 'REBOP' to word_tab.
append 'REBUS' to word_tab.
append 'REBUT' to word_tab.
append 'REBUY' to word_tab.
append 'RECAL' to word_tab.
append 'RECAP' to word_tab.
append 'RECCE' to word_tab.
append 'RECCO' to word_tab.
append 'RECCY' to word_tab.
append 'RECIT' to word_tab.
append 'RECKS' to word_tab.
append 'RECON' to word_tab.
append 'RECTA' to word_tab.
append 'RECTI' to word_tab.
append 'RECTO' to word_tab.
append 'RECUR' to word_tab.
append 'RECUT' to word_tab.
append 'REDAN' to word_tab.
append 'REDDS' to word_tab.
append 'REDDY' to word_tab.
append 'REDED' to word_tab.
append 'REDES' to word_tab.
append 'REDIA' to word_tab.
append 'REDID' to word_tab.
append 'REDIP' to word_tab.
append 'REDLY' to word_tab.
append 'REDON' to word_tab.
append 'REDOS' to word_tab.
append 'REDOX' to word_tab.
append 'REDRY' to word_tab.
append 'REDUB' to word_tab.
append 'REDUX' to word_tab.
append 'REDYE' to word_tab.
append 'REECH' to word_tab.
append 'REEDE' to word_tab.
append 'REEDS' to word_tab.
append 'REEDY' to word_tab.
append 'REEFS' to word_tab.
append 'REEFY' to word_tab.
append 'REEKS' to word_tab.
append 'REEKY' to word_tab.
append 'REELS' to word_tab.
append 'REENS' to word_tab.
append 'REEST' to word_tab.
append 'REEVE' to word_tab.
append 'REFED' to word_tab.
append 'REFEL' to word_tab.
append 'REFER' to word_tab.
append 'REFIS' to word_tab.
append 'REFIT' to word_tab.
append 'REFIX' to word_tab.
append 'REFLY' to word_tab.
append 'REFRY' to word_tab.
append 'REGAL' to word_tab.
append 'REGAR' to word_tab.
append 'REGES' to word_tab.
append 'REGGO' to word_tab.
append 'REGIE' to word_tab.
append 'REGMA' to word_tab.
append 'REGNA' to word_tab.
append 'REGOS' to word_tab.
append 'REGUR' to word_tab.
append 'REHAB' to word_tab.
append 'REHEM' to word_tab.
append 'REIFS' to word_tab.
append 'REIFY' to word_tab.
append 'REIGN' to word_tab.
append 'REIKI' to word_tab.
append 'REIKS' to word_tab.
append 'REINK' to word_tab.
append 'REINS' to word_tab.
append 'REIRD' to word_tab.
append 'REIST' to word_tab.
append 'REIVE' to word_tab.
append 'REJIG' to word_tab.
append 'REJON' to word_tab.
append 'REKED' to word_tab.
append 'REKES' to word_tab.
append 'REKEY' to word_tab.
append 'RELAX' to word_tab.
append 'RELAY' to word_tab.
append 'RELET' to word_tab.
append 'RELIC' to word_tab.
append 'RELIE' to word_tab.
append 'RELIT' to word_tab.
append 'RELLO' to word_tab.
append 'REMAN' to word_tab.
append 'REMAP' to word_tab.
append 'REMEN' to word_tab.
append 'REMET' to word_tab.
append 'REMEX' to word_tab.
append 'REMIT' to word_tab.
append 'REMIX' to word_tab.
append 'RENAL' to word_tab.
append 'RENAY' to word_tab.
append 'RENDS' to word_tab.
append 'RENEW' to word_tab.
append 'RENEY' to word_tab.
append 'RENGA' to word_tab.
append 'RENIG' to word_tab.
append 'RENIN' to word_tab.
append 'RENNE' to word_tab.
append 'RENOS' to word_tab.
append 'RENTE' to word_tab.
append 'RENTS' to word_tab.
append 'REOIL' to word_tab.
append 'REORG' to word_tab.
append 'REPAY' to word_tab.
append 'REPEG' to word_tab.
append 'REPEL' to word_tab.
append 'REPIN' to word_tab.
append 'REPLA' to word_tab.
append 'REPLY' to word_tab.
append 'REPOS' to word_tab.
append 'REPOT' to word_tab.
append 'REPPS' to word_tab.
append 'REPRO' to word_tab.
append 'RERAN' to word_tab.
append 'RERIG' to word_tab.
append 'RERUN' to word_tab.
append 'RESAT' to word_tab.
append 'RESAW' to word_tab.
append 'RESAY' to word_tab.
append 'RESEE' to word_tab.
append 'RESES' to word_tab.
append 'RESET' to word_tab.
append 'RESEW' to word_tab.
append 'RESID' to word_tab.
append 'RESIN' to word_tab.
append 'RESIT' to word_tab.
append 'RESOD' to word_tab.
append 'RESOW' to word_tab.
append 'RESTO' to word_tab.
append 'RESTS' to word_tab.
append 'RESTY' to word_tab.
append 'RESUS' to word_tab.
append 'RETAG' to word_tab.
append 'RETAX' to word_tab.
append 'RETCH' to word_tab.
append 'RETEM' to word_tab.
append 'RETIA' to word_tab.
append 'RETIE' to word_tab.
append 'RETOX' to word_tab.
append 'RETRO' to word_tab.
append 'RETRY' to word_tab.
append 'REUSE' to word_tab.
append 'REVEL' to word_tab.
append 'REVET' to word_tab.
append 'REVIE' to word_tab.
append 'REVUE' to word_tab.
append 'REWAN' to word_tab.
append 'REWAX' to word_tab.
append 'REWED' to word_tab.
append 'REWET' to word_tab.
append 'REWIN' to word_tab.
append 'REWON' to word_tab.
append 'REWTH' to word_tab.
append 'REXES' to word_tab.
append 'REZES' to word_tab.
append 'RHEAS' to word_tab.
append 'RHEME' to word_tab.
append 'RHEUM' to word_tab.
append 'RHIES' to word_tab.
append 'RHIME' to word_tab.
append 'RHINE' to word_tab.
append 'RHINO' to word_tab.
append 'RHODY' to word_tab.
append 'RHOMB' to word_tab.
append 'RHONE' to word_tab.
append 'RHUMB' to word_tab.
append 'RHYME' to word_tab.
append 'RHYNE' to word_tab.
append 'RHYTA' to word_tab.
append 'RIADS' to word_tab.
append 'RIALS' to word_tab.
append 'RIANT' to word_tab.
append 'RIATA' to word_tab.
append 'RIBAS' to word_tab.
append 'RIBBY' to word_tab.
append 'RIBES' to word_tab.
append 'RICED' to word_tab.
append 'RICER' to word_tab.
append 'RICES' to word_tab.
append 'RICEY' to word_tab.
append 'RICHT' to word_tab.
append 'RICIN' to word_tab.
append 'RICKS' to word_tab.
append 'RIDER' to word_tab.
append 'RIDES' to word_tab.
append 'RIDGE' to word_tab.
append 'RIDGY' to word_tab.
append 'RIDIC' to word_tab.
append 'RIELS' to word_tab.
append 'RIEMS' to word_tab.
append 'RIEVE' to word_tab.
append 'RIFER' to word_tab.
append 'RIFFS' to word_tab.
append 'RIFLE' to word_tab.
append 'RIFTE' to word_tab.
append 'RIFTS' to word_tab.
append 'RIFTY' to word_tab.
append 'RIGGS' to word_tab.
append 'RIGHT' to word_tab.
append 'RIGID' to word_tab.
append 'RIGOL' to word_tab.
append 'RIGOR' to word_tab.
append 'RILED' to word_tab.
append 'RILES' to word_tab.
append 'RILEY' to word_tab.
append 'RILLE' to word_tab.
append 'RILLS' to word_tab.
append 'RIMAE' to word_tab.
append 'RIMED' to word_tab.
append 'RIMER' to word_tab.
append 'RIMES' to word_tab.
append 'RIMUS' to word_tab.
append 'RINDS' to word_tab.
append 'RINDY' to word_tab.
append 'RINES' to word_tab.
append 'RINGS' to word_tab.
append 'RINKS' to word_tab.
append 'RINSE' to word_tab.
append 'RIOJA' to word_tab.
append 'RIOTS' to word_tab.
append 'RIPED' to word_tab.
append 'RIPEN' to word_tab.
append 'RIPER' to word_tab.
append 'RIPES' to word_tab.
append 'RIPPS' to word_tab.
append 'RISEN' to word_tab.
append 'RISER' to word_tab.
append 'RISES' to word_tab.
append 'RISHI' to word_tab.
append 'RISKS' to word_tab.
append 'RISKY' to word_tab.
append 'RISPS' to word_tab.
append 'RISUS' to word_tab.
append 'RITES' to word_tab.
append 'RITTS' to word_tab.
append 'RITZY' to word_tab.
append 'RIVAL' to word_tab.
append 'RIVAS' to word_tab.
append 'RIVED' to word_tab.
append 'RIVEL' to word_tab.
append 'RIVEN' to word_tab.
append 'RIVER' to word_tab.
append 'RIVES' to word_tab.
append 'RIVET' to word_tab.
append 'RIYAL' to word_tab.
append 'RIZAS' to word_tab.
append 'ROACH' to word_tab.
append 'ROADS' to word_tab.
append 'ROAMS' to word_tab.
append 'ROANS' to word_tab.
append 'ROARS' to word_tab.
append 'ROARY' to word_tab.
append 'ROAST' to word_tab.
append 'ROATE' to word_tab.
append 'ROBED' to word_tab.
append 'ROBES' to word_tab.
append 'ROBIN' to word_tab.
append 'ROBLE' to word_tab.
append 'ROBOT' to word_tab.
append 'ROCKS' to word_tab.
append 'ROCKY' to word_tab.
append 'RODED' to word_tab.
append 'RODEO' to word_tab.
append 'RODES' to word_tab.
append 'ROGER' to word_tab.
append 'ROGUE' to word_tab.
append 'ROGUY' to word_tab.
append 'ROHES' to word_tab.
append 'ROIDS' to word_tab.
append 'ROILS' to word_tab.
append 'ROILY' to word_tab.
append 'ROINS' to word_tab.
append 'ROIST' to word_tab.
append 'ROJAK' to word_tab.
append 'ROJIS' to word_tab.
append 'ROKED' to word_tab.
append 'ROKER' to word_tab.
append 'ROKES' to word_tab.
append 'ROLAG' to word_tab.
append 'ROLES' to word_tab.
append 'ROLFS' to word_tab.
append 'ROLLS' to word_tab.
append 'ROMAL' to word_tab.
append 'ROMAN' to word_tab.
append 'ROMEO' to word_tab.
append 'ROMPS' to word_tab.
append 'RONDE' to word_tab.
append 'RONDO' to word_tab.
append 'RONEO' to word_tab.
append 'RONES' to word_tab.
append 'RONIN' to word_tab.
append 'RONNE' to word_tab.
append 'RONTE' to word_tab.
append 'RONTS' to word_tab.
append 'ROODS' to word_tab.
append 'ROOFS' to word_tab.
append 'ROOFY' to word_tab.
append 'ROOKS' to word_tab.
append 'ROOKY' to word_tab.
append 'ROOMS' to word_tab.
append 'ROOMY' to word_tab.
append 'ROONS' to word_tab.
append 'ROOPS' to word_tab.
append 'ROOPY' to word_tab.
append 'ROOSA' to word_tab.
append 'ROOSE' to word_tab.
append 'ROOST' to word_tab.
append 'ROOTS' to word_tab.
append 'ROOTY' to word_tab.
append 'ROPED' to word_tab.
append 'ROPER' to word_tab.
append 'ROPES' to word_tab.
append 'ROPEY' to word_tab.
append 'ROQUE' to word_tab.
append 'RORAL' to word_tab.
append 'RORES' to word_tab.
append 'RORIC' to word_tab.
append 'RORID' to word_tab.
append 'RORIE' to word_tab.
append 'RORTS' to word_tab.
append 'RORTY' to word_tab.
append 'ROSED' to word_tab.
append 'ROSES' to word_tab.
append 'ROSET' to word_tab.
append 'ROSHI' to word_tab.
append 'ROSIN' to word_tab.
append 'ROSIT' to word_tab.
append 'ROSTI' to word_tab.
append 'ROSTS' to word_tab.
append 'ROTAL' to word_tab.
append 'ROTAN' to word_tab.
append 'ROTAS' to word_tab.
append 'ROTCH' to word_tab.
append 'ROTED' to word_tab.
append 'ROTES' to word_tab.
append 'ROTIS' to word_tab.
append 'ROTLS' to word_tab.
append 'ROTON' to word_tab.
append 'ROTOR' to word_tab.
append 'ROTOS' to word_tab.
append 'ROTTE' to word_tab.
append 'ROUEN' to word_tab.
append 'ROUES' to word_tab.
append 'ROUGE' to word_tab.
append 'ROUGH' to word_tab.
append 'ROULE' to word_tab.
append 'ROULS' to word_tab.
append 'ROUMS' to word_tab.
append 'ROUND' to word_tab.
append 'ROUPS' to word_tab.
append 'ROUPY' to word_tab.
append 'ROUSE' to word_tab.
append 'ROUST' to word_tab.
append 'ROUTE' to word_tab.
append 'ROUTH' to word_tab.
append 'ROUTS' to word_tab.
append 'ROVED' to word_tab.
append 'ROVEN' to word_tab.
append 'ROVER' to word_tab.
append 'ROVES' to word_tab.
append 'ROWAN' to word_tab.
append 'ROWDY' to word_tab.
append 'ROWED' to word_tab.
append 'ROWEL' to word_tab.
append 'ROWEN' to word_tab.
append 'ROWER' to word_tab.
append 'ROWIE' to word_tab.
append 'ROWME' to word_tab.
append 'ROWND' to word_tab.
append 'ROWTH' to word_tab.
append 'ROWTS' to word_tab.
append 'ROYAL' to word_tab.
append 'ROYNE' to word_tab.
append 'ROYST' to word_tab.
append 'ROZET' to word_tab.
append 'ROZIT' to word_tab.
append 'RUANA' to word_tab.
append 'RUBAI' to word_tab.
append 'RUBBY' to word_tab.
append 'RUBEL' to word_tab.
append 'RUBES' to word_tab.
append 'RUBIN' to word_tab.
append 'RUBLE' to word_tab.
append 'RUBLI' to word_tab.
append 'RUBUS' to word_tab.
append 'RUCHE' to word_tab.
append 'RUCKS' to word_tab.
append 'RUDAS' to word_tab.
append 'RUDDS' to word_tab.
append 'RUDDY' to word_tab.
append 'RUDER' to word_tab.
append 'RUDES' to word_tab.
append 'RUDIE' to word_tab.
append 'RUDIS' to word_tab.
append 'RUEDA' to word_tab.
append 'RUERS' to word_tab.
append 'RUFFE' to word_tab.
append 'RUFFS' to word_tab.
append 'RUGAE' to word_tab.
append 'RUGAL' to word_tab.
append 'RUGBY' to word_tab.
append 'RUGGY' to word_tab.
append 'RUING' to word_tab.
append 'RUINS' to word_tab.
append 'RUKHS' to word_tab.
append 'RULED' to word_tab.
append 'RULER' to word_tab.
append 'RULES' to word_tab.
append 'RUMAL' to word_tab.
append 'RUMBA' to word_tab.
append 'RUMBO' to word_tab.
append 'RUMEN' to word_tab.
append 'RUMES' to word_tab.
append 'RUMLY' to word_tab.
append 'RUMMY' to word_tab.
append 'RUMOR' to word_tab.
append 'RUMPO' to word_tab.
append 'RUMPS' to word_tab.
append 'RUMPY' to word_tab.
append 'RUNCH' to word_tab.
append 'RUNDS' to word_tab.
append 'RUNED' to word_tab.
append 'RUNES' to word_tab.
append 'RUNGS' to word_tab.
append 'RUNIC' to word_tab.
append 'RUNNY' to word_tab.
append 'RUNTS' to word_tab.
append 'RUNTY' to word_tab.
append 'RUPEE' to word_tab.
append 'RUPIA' to word_tab.
append 'RURAL' to word_tab.
append 'RURPS' to word_tab.
append 'RURUS' to word_tab.
append 'RUSAS' to word_tab.
append 'RUSES' to word_tab.
append 'RUSHY' to word_tab.
append 'RUSKS' to word_tab.
append 'RUSMA' to word_tab.
append 'RUSSE' to word_tab.
append 'RUSTS' to word_tab.
append 'RUSTY' to word_tab.
append 'RUTHS' to word_tab.
append 'RUTIN' to word_tab.
append 'RUTTY' to word_tab.
append 'RYALS' to word_tab.
append 'RYBAT' to word_tab.
append 'RYKED' to word_tab.
append 'RYKES' to word_tab.
append 'RYMME' to word_tab.
append 'RYNDS' to word_tab.
append 'RYOTS' to word_tab.
append 'RYPER' to word_tab.
append 'SAAGS' to word_tab.
append 'SABAL' to word_tab.
append 'SABED' to word_tab.
append 'SABER' to word_tab.
append 'SABES' to word_tab.
append 'SABHA' to word_tab.
append 'SABIN' to word_tab.
append 'SABIR' to word_tab.
append 'SABLE' to word_tab.
append 'SABOT' to word_tab.
append 'SABRA' to word_tab.
append 'SABRE' to word_tab.
append 'SACKS' to word_tab.
append 'SACRA' to word_tab.
append 'SADDO' to word_tab.
append 'SADES' to word_tab.
append 'SADHE' to word_tab.
append 'SADHU' to word_tab.
append 'SADIS' to word_tab.
append 'SADLY' to word_tab.
append 'SADOS' to word_tab.
append 'SADZA' to word_tab.
append 'SAFED' to word_tab.
append 'SAFER' to word_tab.
append 'SAFES' to word_tab.
append 'SAGAS' to word_tab.
append 'SAGER' to word_tab.
append 'SAGES' to word_tab.
append 'SAGGY' to word_tab.
append 'SAGOS' to word_tab.
append 'SAGUM' to word_tab.
append 'SAHEB' to word_tab.
append 'SAHIB' to word_tab.
append 'SAICE' to word_tab.
append 'SAICK' to word_tab.
append 'SAICS' to word_tab.
append 'SAIDS' to word_tab.
append 'SAIGA' to word_tab.
append 'SAILS' to word_tab.
append 'SAIMS' to word_tab.
append 'SAINE' to word_tab.
append 'SAINS' to word_tab.
append 'SAINT' to word_tab.
append 'SAIRS' to word_tab.
append 'SAIST' to word_tab.
append 'SAITH' to word_tab.
append 'SAJOU' to word_tab.
append 'SAKER' to word_tab.
append 'SAKES' to word_tab.
append 'SAKIA' to word_tab.
append 'SAKIS' to word_tab.
append 'SAKTI' to word_tab.
append 'SALAD' to word_tab.
append 'SALAL' to word_tab.
append 'SALAT' to word_tab.
append 'SALEP' to word_tab.
append 'SALES' to word_tab.
append 'SALET' to word_tab.
append 'SALIC' to word_tab.
append 'SALIX' to word_tab.
append 'SALLE' to word_tab.
append 'SALLY' to word_tab.
append 'SALMI' to word_tab.
append 'SALOL' to word_tab.
append 'SALON' to word_tab.
append 'SALOP' to word_tab.
append 'SALPA' to word_tab.
append 'SALPS' to word_tab.
append 'SALSA' to word_tab.
append 'SALSE' to word_tab.
append 'SALTO' to word_tab.
append 'SALTS' to word_tab.
append 'SALTY' to word_tab.
append 'SALUE' to word_tab.
append 'SALUT' to word_tab.
append 'SALVE' to word_tab.
append 'SALVO' to word_tab.
append 'SAMAN' to word_tab.
append 'SAMAS' to word_tab.
append 'SAMBA' to word_tab.
append 'SAMBO' to word_tab.
append 'SAMEK' to word_tab.
append 'SAMEL' to word_tab.
append 'SAMEN' to word_tab.
append 'SAMES' to word_tab.
append 'SAMEY' to word_tab.
append 'SAMFU' to word_tab.
append 'SAMMY' to word_tab.
append 'SAMPI' to word_tab.
append 'SAMPS' to word_tab.
append 'SANDS' to word_tab.
append 'SANDY' to word_tab.
append 'SANED' to word_tab.
append 'SANER' to word_tab.
append 'SANES' to word_tab.
append 'SANGA' to word_tab.
append 'SANGH' to word_tab.
append 'SANGO' to word_tab.
append 'SANGS' to word_tab.
append 'SANKO' to word_tab.
append 'SANSA' to word_tab.
append 'SANTO' to word_tab.
append 'SANTS' to word_tab.
append 'SAOLA' to word_tab.
append 'SAPAN' to word_tab.
append 'SAPID' to word_tab.
append 'SAPOR' to word_tab.
append 'SAPPY' to word_tab.
append 'SARAN' to word_tab.
append 'SARDS' to word_tab.
append 'SARED' to word_tab.
append 'SAREE' to word_tab.
append 'SARGE' to word_tab.
append 'SARGO' to word_tab.
append 'SARIN' to word_tab.
append 'SARIS' to word_tab.
append 'SARKS' to word_tab.
append 'SARKY' to word_tab.
append 'SAROD' to word_tab.
append 'SAROS' to word_tab.
append 'SARUS' to word_tab.
append 'SASER' to word_tab.
append 'SASIN' to word_tab.
append 'SASSE' to word_tab.
append 'SASSY' to word_tab.
append 'SATAI' to word_tab.
append 'SATAY' to word_tab.
append 'SATED' to word_tab.
append 'SATEM' to word_tab.
append 'SATES' to word_tab.
append 'SATIN' to word_tab.
append 'SATIS' to word_tab.
append 'SATYR' to word_tab.
append 'SAUBA' to word_tab.
append 'SAUCE' to word_tab.
append 'SAUCH' to word_tab.
append 'SAUCY' to word_tab.
append 'SAUGH' to word_tab.
append 'SAULS' to word_tab.
append 'SAULT' to word_tab.
append 'SAUNA' to word_tab.
append 'SAUNT' to word_tab.
append 'SAURY' to word_tab.
append 'SAUTE' to word_tab.
append 'SAUTS' to word_tab.
append 'SAVED' to word_tab.
append 'SAVER' to word_tab.
append 'SAVES' to word_tab.
append 'SAVEY' to word_tab.
append 'SAVIN' to word_tab.
append 'SAVOR' to word_tab.
append 'SAVOY' to word_tab.
append 'SAVVY' to word_tab.
append 'SAWAH' to word_tab.
append 'SAWED' to word_tab.
append 'SAWER' to word_tab.
append 'SAXES' to word_tab.
append 'SAYED' to word_tab.
append 'SAYER' to word_tab.
append 'SAYID' to word_tab.
append 'SAYNE' to word_tab.
append 'SAYON' to word_tab.
append 'SAYST' to word_tab.
append 'SAZES' to word_tab.
append 'SCABS' to word_tab.
append 'SCADS' to word_tab.
append 'SCAFF' to word_tab.
append 'SCAGS' to word_tab.
append 'SCAIL' to word_tab.
append 'SCALA' to word_tab.
append 'SCALD' to word_tab.
append 'SCALE' to word_tab.
append 'SCALL' to word_tab.
append 'SCALP' to word_tab.
append 'SCALY' to word_tab.
append 'SCAMP' to word_tab.
append 'SCAMS' to word_tab.
append 'SCAND' to word_tab.
append 'SCANS' to word_tab.
append 'SCANT' to word_tab.
append 'SCAPA' to word_tab.
append 'SCAPE' to word_tab.
append 'SCAPI' to word_tab.
append 'SCARE' to word_tab.
append 'SCARF' to word_tab.
append 'SCARP' to word_tab.
append 'SCARS' to word_tab.
append 'SCART' to word_tab.
append 'SCARY' to word_tab.
append 'SCATH' to word_tab.
append 'SCATS' to word_tab.
append 'SCATT' to word_tab.
append 'SCAUD' to word_tab.
append 'SCAUP' to word_tab.
append 'SCAUR' to word_tab.
append 'SCAWS' to word_tab.
append 'SCEAT' to word_tab.
append 'SCENA' to word_tab.
append 'SCEND' to word_tab.
append 'SCENE' to word_tab.
append 'SCENT' to word_tab.
append 'SCHAV' to word_tab.
append 'SCHMO' to word_tab.
append 'SCHUL' to word_tab.
append 'SCHWA' to word_tab.
append 'SCION' to word_tab.
append 'SCLIM' to word_tab.
append 'SCODY' to word_tab.
append 'SCOFF' to word_tab.
append 'SCOGS' to word_tab.
append 'SCOLD' to word_tab.
append 'SCONE' to word_tab.
append 'SCOOG' to word_tab.
append 'SCOOP' to word_tab.
append 'SCOOT' to word_tab.
append 'SCOPA' to word_tab.
append 'SCOPE' to word_tab.
append 'SCOPS' to word_tab.
append 'SCORE' to word_tab.
append 'SCORN' to word_tab.
append 'SCOTS' to word_tab.
append 'SCOUG' to word_tab.
append 'SCOUP' to word_tab.
append 'SCOUR' to word_tab.
append 'SCOUT' to word_tab.
append 'SCOWL' to word_tab.
append 'SCOWP' to word_tab.
append 'SCOWS' to word_tab.
append 'SCRAB' to word_tab.
append 'SCRAE' to word_tab.
append 'SCRAG' to word_tab.
append 'SCRAM' to word_tab.
append 'SCRAN' to word_tab.
append 'SCRAP' to word_tab.
append 'SCRAT' to word_tab.
append 'SCRAW' to word_tab.
append 'SCRAY' to word_tab.
append 'SCREE' to word_tab.
append 'SCREW' to word_tab.
append 'SCRIM' to word_tab.
append 'SCRIP' to word_tab.
append 'SCROB' to word_tab.
append 'SCROD' to word_tab.
append 'SCROG' to word_tab.
append 'SCROW' to word_tab.
append 'SCRUB' to word_tab.
append 'SCRUM' to word_tab.
append 'SCUBA' to word_tab.
append 'SCUDI' to word_tab.
append 'SCUDO' to word_tab.
append 'SCUDS' to word_tab.
append 'SCUFF' to word_tab.
append 'SCUFT' to word_tab.
append 'SCUGS' to word_tab.
append 'SCULK' to word_tab.
append 'SCULL' to word_tab.
append 'SCULP' to word_tab.
append 'SCULS' to word_tab.
append 'SCUMS' to word_tab.
append 'SCUPS' to word_tab.
append 'SCURF' to word_tab.
append 'SCURS' to word_tab.
append 'SCUSE' to word_tab.
append 'SCUTA' to word_tab.
append 'SCUTE' to word_tab.
append 'SCUTS' to word_tab.
append 'SCUZZ' to word_tab.
append 'SCYES' to word_tab.
append 'SDAYN' to word_tab.
append 'SDEIN' to word_tab.
append 'SEALS' to word_tab.
append 'SEAME' to word_tab.
append 'SEAMS' to word_tab.
append 'SEAMY' to word_tab.
append 'SEANS' to word_tab.
append 'SEARE' to word_tab.
append 'SEARS' to word_tab.
append 'SEASE' to word_tab.
append 'SEATS' to word_tab.
append 'SEAZE' to word_tab.
append 'SEBUM' to word_tab.
append 'SECCO' to word_tab.
append 'SECHS' to word_tab.
append 'SECTS' to word_tab.
append 'SEDAN' to word_tab.
append 'SEDER' to word_tab.
append 'SEDES' to word_tab.
append 'SEDGE' to word_tab.
append 'SEDGY' to word_tab.
append 'SEDUM' to word_tab.
append 'SEEDS' to word_tab.
append 'SEEDY' to word_tab.
append 'SEEKS' to word_tab.
append 'SEELD' to word_tab.
append 'SEELS' to word_tab.
append 'SEELY' to word_tab.
append 'SEEMS' to word_tab.
append 'SEEPS' to word_tab.
append 'SEEPY' to word_tab.
append 'SEERS' to word_tab.
append 'SEFER' to word_tab.
append 'SEGAR' to word_tab.
append 'SEGNI' to word_tab.
append 'SEGNO' to word_tab.
append 'SEGOL' to word_tab.
append 'SEGOS' to word_tab.
append 'SEGUE' to word_tab.
append 'SEHRI' to word_tab.
append 'SEIFS' to word_tab.
append 'SEILS' to word_tab.
append 'SEINE' to word_tab.
append 'SEIRS' to word_tab.
append 'SEISE' to word_tab.
append 'SEISM' to word_tab.
append 'SEITY' to word_tab.
append 'SEIZA' to word_tab.
append 'SEIZE' to word_tab.
append 'SEKOS' to word_tab.
append 'SEKTS' to word_tab.
append 'SELAH' to word_tab.
append 'SELES' to word_tab.
append 'SELFS' to word_tab.
append 'SELLA' to word_tab.
append 'SELLE' to word_tab.
append 'SELLS' to word_tab.
append 'SELVA' to word_tab.
append 'SEMEE' to word_tab.
append 'SEMEN' to word_tab.
append 'SEMES' to word_tab.
append 'SEMIE' to word_tab.
append 'SEMIS' to word_tab.
append 'SENAS' to word_tab.
append 'SENDS' to word_tab.
append 'SENES' to word_tab.
append 'SENGI' to word_tab.
append 'SENNA' to word_tab.
append 'SENOR' to word_tab.
append 'SENSA' to word_tab.
append 'SENSE' to word_tab.
append 'SENSI' to word_tab.
append 'SENTE' to word_tab.
append 'SENTI' to word_tab.
append 'SENTS' to word_tab.
append 'SENVY' to word_tab.
append 'SENZA' to word_tab.
append 'SEPAD' to word_tab.
append 'SEPAL' to word_tab.
append 'SEPIA' to word_tab.
append 'SEPIC' to word_tab.
append 'SEPOY' to word_tab.
append 'SEPTA' to word_tab.
append 'SEPTS' to word_tab.
append 'SERAC' to word_tab.
append 'SERAI' to word_tab.
append 'SERAL' to word_tab.
append 'SERED' to word_tab.
append 'SERER' to word_tab.
append 'SERES' to word_tab.
append 'SERFS' to word_tab.
append 'SERGE' to word_tab.
append 'SERIC' to word_tab.
append 'SERIF' to word_tab.
append 'SERIN' to word_tab.
append 'SERKS' to word_tab.
append 'SERON' to word_tab.
append 'SEROW' to word_tab.
append 'SERRA' to word_tab.
append 'SERRE' to word_tab.
append 'SERRS' to word_tab.
append 'SERRY' to word_tab.
append 'SERUM' to word_tab.
append 'SERVE' to word_tab.
append 'SERVO' to word_tab.
append 'SESEY' to word_tab.
append 'SESSA' to word_tab.
append 'SETAE' to word_tab.
append 'SETAL' to word_tab.
append 'SETON' to word_tab.
append 'SETTS' to word_tab.
append 'SETUP' to word_tab.
append 'SEVEN' to word_tab.
append 'SEVER' to word_tab.
append 'SEWAN' to word_tab.
append 'SEWAR' to word_tab.
append 'SEWED' to word_tab.
append 'SEWEL' to word_tab.
append 'SEWEN' to word_tab.
append 'SEWER' to word_tab.
append 'SEWIN' to word_tab.
append 'SEXED' to word_tab.
append 'SEXER' to word_tab.
append 'SEXES' to word_tab.
append 'SEXTO' to word_tab.
append 'SEXTS' to word_tab.
append 'SEYEN' to word_tab.
append 'SHACK' to word_tab.
append 'SHADE' to word_tab.
append 'SHADS' to word_tab.
append 'SHADY' to word_tab.
append 'SHAFT' to word_tab.
append 'SHAGS' to word_tab.
append 'SHAHS' to word_tab.
append 'SHAKE' to word_tab.
append 'SHAKO' to word_tab.
append 'SHAKT' to word_tab.
append 'SHAKY' to word_tab.
append 'SHALE' to word_tab.
append 'SHALL' to word_tab.
append 'SHALM' to word_tab.
append 'SHALT' to word_tab.
append 'SHALY' to word_tab.
append 'SHAMA' to word_tab.
append 'SHAME' to word_tab.
append 'SHAMS' to word_tab.
append 'SHAND' to word_tab.
append 'SHANK' to word_tab.
append 'SHANS' to word_tab.
append 'SHAPE' to word_tab.
append 'SHAPS' to word_tab.
append 'SHARD' to word_tab.
append 'SHARE' to word_tab.
append 'SHARK' to word_tab.
append 'SHARN' to word_tab.
append 'SHARP' to word_tab.
append 'SHASH' to word_tab.
append 'SHAUL' to word_tab.
append 'SHAVE' to word_tab.
append 'SHAWL' to word_tab.
append 'SHAWM' to word_tab.
append 'SHAWN' to word_tab.
append 'SHAWS' to word_tab.
append 'SHAYA' to word_tab.
append 'SHAYS' to word_tab.
append 'SHCHI' to word_tab.
append 'SHEAF' to word_tab.
append 'SHEAL' to word_tab.
append 'SHEAR' to word_tab.
append 'SHEAS' to word_tab.
append 'SHEDS' to word_tab.
append 'SHEEL' to word_tab.
append 'SHEEN' to word_tab.
append 'SHEEP' to word_tab.
append 'SHEER' to word_tab.
append 'SHEET' to word_tab.
append 'SHEIK' to word_tab.
append 'SHELF' to word_tab.
append 'SHELL' to word_tab.
append 'SHEND' to word_tab.
append 'SHENT' to word_tab.
append 'SHEOL' to word_tab.
append 'SHERD' to word_tab.
append 'SHERE' to word_tab.
append 'SHERO' to word_tab.
append 'SHETS' to word_tab.
append 'SHEVA' to word_tab.
append 'SHEWN' to word_tab.
append 'SHEWS' to word_tab.
append 'SHIAI' to word_tab.
append 'SHIED' to word_tab.
append 'SHIEL' to word_tab.
append 'SHIER' to word_tab.
append 'SHIES' to word_tab.
append 'SHIFT' to word_tab.
append 'SHILL' to word_tab.
append 'SHILY' to word_tab.
append 'SHIMS' to word_tab.
append 'SHINE' to word_tab.
append 'SHINS' to word_tab.
append 'SHINY' to word_tab.
append 'SHIPS' to word_tab.
append 'SHIRE' to word_tab.
append 'SHIRK' to word_tab.
append 'SHIRR' to word_tab.
append 'SHIRS' to word_tab.
append 'SHIRT' to word_tab.
append 'SHISH' to word_tab.
append 'SHISO' to word_tab.
append 'SHIST' to word_tab.
append 'SHITE' to word_tab.
append 'SHITS' to word_tab.
append 'SHIUR' to word_tab.
append 'SHIVA' to word_tab.
append 'SHIVE' to word_tab.
append 'SHIVS' to word_tab.
append 'SHLEP' to word_tab.
append 'SHLUB' to word_tab.
append 'SHMEK' to word_tab.
append 'SHMOE' to word_tab.
append 'SHOAL' to word_tab.
append 'SHOAT' to word_tab.
append 'SHOCK' to word_tab.
append 'SHOED' to word_tab.
append 'SHOER' to word_tab.
append 'SHOES' to word_tab.
append 'SHOGI' to word_tab.
append 'SHOGS' to word_tab.
append 'SHOJI' to word_tab.
append 'SHOJO' to word_tab.
append 'SHOLA' to word_tab.
append 'SHONE' to word_tab.
append 'SHOOK' to word_tab.
append 'SHOOL' to word_tab.
append 'SHOON' to word_tab.
append 'SHOOS' to word_tab.
append 'SHOOT' to word_tab.
append 'SHOPE' to word_tab.
append 'SHOPS' to word_tab.
append 'SHORE' to word_tab.
append 'SHORL' to word_tab.
append 'SHORN' to word_tab.
append 'SHORT' to word_tab.
append 'SHOTE' to word_tab.
append 'SHOTS' to word_tab.
append 'SHOTT' to word_tab.
append 'SHOUT' to word_tab.
append 'SHOVE' to word_tab.
append 'SHOWD' to word_tab.
append 'SHOWN' to word_tab.
append 'SHOWS' to word_tab.
append 'SHOWY' to word_tab.
append 'SHOYU' to word_tab.
append 'SHRED' to word_tab.
append 'SHREW' to word_tab.
append 'SHRIS' to word_tab.
append 'SHROW' to word_tab.
append 'SHRUB' to word_tab.
append 'SHRUG' to word_tab.
append 'SHTIK' to word_tab.
append 'SHTUM' to word_tab.
append 'SHTUP' to word_tab.
append 'SHUCK' to word_tab.
append 'SHULE' to word_tab.
append 'SHULN' to word_tab.
append 'SHULS' to word_tab.
append 'SHUNS' to word_tab.
append 'SHUNT' to word_tab.
append 'SHURA' to word_tab.
append 'SHUSH' to word_tab.
append 'SHUTE' to word_tab.
append 'SHUTS' to word_tab.
append 'SHWAS' to word_tab.
append 'SHYER' to word_tab.
append 'SHYLY' to word_tab.
append 'SIALS' to word_tab.
append 'SIBBS' to word_tab.
append 'SIBYL' to word_tab.
append 'SICES' to word_tab.
append 'SICHT' to word_tab.
append 'SICKO' to word_tab.
append 'SICKS' to word_tab.
append 'SICKY' to word_tab.
append 'SIDAS' to word_tab.
append 'SIDED' to word_tab.
append 'SIDER' to word_tab.
append 'SIDES' to word_tab.
append 'SIDHA' to word_tab.
append 'SIDHE' to word_tab.
append 'SIDLE' to word_tab.
append 'SIEGE' to word_tab.
append 'SIELD' to word_tab.
append 'SIENS' to word_tab.
append 'SIENT' to word_tab.
append 'SIETH' to word_tab.
append 'SIEUR' to word_tab.
append 'SIEVE' to word_tab.
append 'SIFTS' to word_tab.
append 'SIGHS' to word_tab.
append 'SIGHT' to word_tab.
append 'SIGIL' to word_tab.
append 'SIGLA' to word_tab.
append 'SIGMA' to word_tab.
append 'SIGNA' to word_tab.
append 'SIGNS' to word_tab.
append 'SIJOS' to word_tab.
append 'SIKAS' to word_tab.
append 'SIKER' to word_tab.
append 'SIKES' to word_tab.
append 'SILDS' to word_tab.
append 'SILED' to word_tab.
append 'SILEN' to word_tab.
append 'SILER' to word_tab.
append 'SILES' to word_tab.
append 'SILEX' to word_tab.
append 'SILKS' to word_tab.
append 'SILKY' to word_tab.
append 'SILLS' to word_tab.
append 'SILLY' to word_tab.
append 'SILOS' to word_tab.
append 'SILTS' to word_tab.
append 'SILTY' to word_tab.
append 'SILVA' to word_tab.
append 'SIMAR' to word_tab.
append 'SIMAS' to word_tab.
append 'SIMBA' to word_tab.
append 'SIMIS' to word_tab.
append 'SIMPS' to word_tab.
append 'SIMUL' to word_tab.
append 'SINCE' to word_tab.
append 'SINDS' to word_tab.
append 'SINED' to word_tab.
append 'SINES' to word_tab.
append 'SINEW' to word_tab.
append 'SINGE' to word_tab.
append 'SINGS' to word_tab.
append 'SINHS' to word_tab.
append 'SINKS' to word_tab.
append 'SINKY' to word_tab.
append 'SINUS' to word_tab.
append 'SIPED' to word_tab.
append 'SIPES' to word_tab.
append 'SIPPY' to word_tab.
append 'SIRED' to word_tab.
append 'SIREE' to word_tab.
append 'SIREN' to word_tab.
append 'SIRES' to word_tab.
append 'SIRIH' to word_tab.
append 'SIRIS' to word_tab.
append 'SIROC' to word_tab.
append 'SIRRA' to word_tab.
append 'SIRUP' to word_tab.
append 'SISAL' to word_tab.
append 'SISES' to word_tab.
append 'SISSY' to word_tab.
append 'SISTA' to word_tab.
append 'SISTS' to word_tab.
append 'SITAR' to word_tab.
append 'SITED' to word_tab.
append 'SITES' to word_tab.
append 'SITHE' to word_tab.
append 'SITKA' to word_tab.
append 'SITUP' to word_tab.
append 'SITUS' to word_tab.
append 'SIVER' to word_tab.
append 'SIXER' to word_tab.
append 'SIXES' to word_tab.
append 'SIXMO' to word_tab.
append 'SIXTE' to word_tab.
append 'SIXTH' to word_tab.
append 'SIXTY' to word_tab.
append 'SIZAR' to word_tab.
append 'SIZED' to word_tab.
append 'SIZEL' to word_tab.
append 'SIZER' to word_tab.
append 'SIZES' to word_tab.
append 'SKAGS' to word_tab.
append 'SKAIL' to word_tab.
append 'SKALD' to word_tab.
append 'SKANK' to word_tab.
append 'SKART' to word_tab.
append 'SKATE' to word_tab.
append 'SKATS' to word_tab.
append 'SKATT' to word_tab.
append 'SKAWS' to word_tab.
append 'SKEAN' to word_tab.
append 'SKEAR' to word_tab.
append 'SKEDS' to word_tab.
append 'SKEED' to word_tab.
append 'SKEEF' to word_tab.
append 'SKEEN' to word_tab.
append 'SKEER' to word_tab.
append 'SKEES' to word_tab.
append 'SKEET' to word_tab.
append 'SKEGG' to word_tab.
append 'SKEGS' to word_tab.
append 'SKEIN' to word_tab.
append 'SKELF' to word_tab.
append 'SKELL' to word_tab.
append 'SKELM' to word_tab.
append 'SKELP' to word_tab.
append 'SKENE' to word_tab.
append 'SKENS' to word_tab.
append 'SKEOS' to word_tab.
append 'SKEPS' to word_tab.
append 'SKERS' to word_tab.
append 'SKETS' to word_tab.
append 'SKEWS' to word_tab.
append 'SKIDS' to word_tab.
append 'SKIED' to word_tab.
append 'SKIER' to word_tab.
append 'SKIES' to word_tab.
append 'SKIEY' to word_tab.
append 'SKIFF' to word_tab.
append 'SKILL' to word_tab.
append 'SKIMP' to word_tab.
append 'SKIMS' to word_tab.
append 'SKINK' to word_tab.
append 'SKINS' to word_tab.
append 'SKINT' to word_tab.
append 'SKIOS' to word_tab.
append 'SKIPS' to word_tab.
append 'SKIRL' to word_tab.
append 'SKIRR' to word_tab.
append 'SKIRT' to word_tab.
append 'SKITE' to word_tab.
append 'SKITS' to word_tab.
append 'SKIVE' to word_tab.
append 'SKIVY' to word_tab.
append 'SKLIM' to word_tab.
append 'SKOAL' to word_tab.
append 'SKODY' to word_tab.
append 'SKOFF' to word_tab.
append 'SKOGS' to word_tab.
append 'SKOLS' to word_tab.
append 'SKOOL' to word_tab.
append 'SKORT' to word_tab.
append 'SKOSH' to word_tab.
append 'SKRAN' to word_tab.
append 'SKRIK' to word_tab.
append 'SKUAS' to word_tab.
append 'SKUGS' to word_tab.
append 'SKULK' to word_tab.
append 'SKULL' to word_tab.
append 'SKUNK' to word_tab.
append 'SKYED' to word_tab.
append 'SKYER' to word_tab.
append 'SKYEY' to word_tab.
append 'SKYFS' to word_tab.
append 'SKYRE' to word_tab.
append 'SKYRS' to word_tab.
append 'SKYTE' to word_tab.
append 'SLABS' to word_tab.
append 'SLACK' to word_tab.
append 'SLADE' to word_tab.
append 'SLAES' to word_tab.
append 'SLAGS' to word_tab.
append 'SLAID' to word_tab.
append 'SLAIN' to word_tab.
append 'SLAKE' to word_tab.
append 'SLAMS' to word_tab.
append 'SLANE' to word_tab.
append 'SLANG' to word_tab.
append 'SLANK' to word_tab.
append 'SLANT' to word_tab.
append 'SLAPS' to word_tab.
append 'SLART' to word_tab.
append 'SLASH' to word_tab.
append 'SLATE' to word_tab.
append 'SLATS' to word_tab.
append 'SLATY' to word_tab.
append 'SLAVE' to word_tab.
append 'SLAWS' to word_tab.
append 'SLAYS' to word_tab.
append 'SLEBS' to word_tab.
append 'SLEDS' to word_tab.
append 'SLEEK' to word_tab.
append 'SLEEP' to word_tab.
append 'SLEER' to word_tab.
append 'SLEET' to word_tab.
append 'SLEPT' to word_tab.
append 'SLEWS' to word_tab.
append 'SLEYS' to word_tab.
append 'SLICE' to word_tab.
append 'SLICK' to word_tab.
append 'SLIDE' to word_tab.
append 'SLIER' to word_tab.
append 'SLILY' to word_tab.
append 'SLIME' to word_tab.
append 'SLIMS' to word_tab.
append 'SLIMY' to word_tab.
append 'SLING' to word_tab.
append 'SLINK' to word_tab.
append 'SLIPE' to word_tab.
append 'SLIPS' to word_tab.
append 'SLIPT' to word_tab.
append 'SLISH' to word_tab.
append 'SLITS' to word_tab.
append 'SLIVE' to word_tab.
append 'SLOAN' to word_tab.
append 'SLOBS' to word_tab.
append 'SLOES' to word_tab.
append 'SLOGS' to word_tab.
append 'SLOID' to word_tab.
append 'SLOJD' to word_tab.
append 'SLOMO' to word_tab.
append 'SLOOM' to word_tab.
append 'SLOOP' to word_tab.
append 'SLOOT' to word_tab.
append 'SLOPE' to word_tab.
append 'SLOPS' to word_tab.
append 'SLOPY' to word_tab.
append 'SLORM' to word_tab.
append 'SLOSH' to word_tab.
append 'SLOTH' to word_tab.
append 'SLOTS' to word_tab.
append 'SLOVE' to word_tab.
append 'SLOWS' to word_tab.
append 'SLOYD' to word_tab.
append 'SLUBB' to word_tab.
append 'SLUBS' to word_tab.
append 'SLUED' to word_tab.
append 'SLUES' to word_tab.
append 'SLUFF' to word_tab.
append 'SLUGS' to word_tab.
append 'SLUIT' to word_tab.
append 'SLUMP' to word_tab.
append 'SLUMS' to word_tab.
append 'SLUNG' to word_tab.
append 'SLUNK' to word_tab.
append 'SLURB' to word_tab.
append 'SLURP' to word_tab.
append 'SLURS' to word_tab.
append 'SLUSE' to word_tab.
append 'SLUSH' to word_tab.
append 'SLUTS' to word_tab.
append 'SLYER' to word_tab.
append 'SLYLY' to word_tab.
append 'SLYPE' to word_tab.
append 'SMAAK' to word_tab.
append 'SMACK' to word_tab.
append 'SMAIK' to word_tab.
append 'SMALL' to word_tab.
append 'SMALM' to word_tab.
append 'SMALT' to word_tab.
append 'SMARM' to word_tab.
append 'SMART' to word_tab.
append 'SMASH' to word_tab.
append 'SMAZE' to word_tab.
append 'SMEAR' to word_tab.
append 'SMEEK' to word_tab.
append 'SMEES' to word_tab.
append 'SMEIK' to word_tab.
append 'SMEKE' to word_tab.
append 'SMELL' to word_tab.
append 'SMELT' to word_tab.
append 'SMERK' to word_tab.
append 'SMEWS' to word_tab.
append 'SMILE' to word_tab.
append 'SMIRK' to word_tab.
append 'SMIRR' to word_tab.
append 'SMIRS' to word_tab.
append 'SMITE' to word_tab.
append 'SMITH' to word_tab.
append 'SMITS' to word_tab.
append 'SMOCK' to word_tab.
append 'SMOGS' to word_tab.
append 'SMOKE' to word_tab.
append 'SMOKO' to word_tab.
append 'SMOKY' to word_tab.
append 'SMOLT' to word_tab.
append 'SMOOR' to word_tab.
append 'SMOOT' to word_tab.
append 'SMORE' to word_tab.
append 'SMORG' to word_tab.
append 'SMOTE' to word_tab.
append 'SMOUT' to word_tab.
append 'SMOWT' to word_tab.
append 'SMUGS' to word_tab.
append 'SMURS' to word_tab.
append 'SMUSH' to word_tab.
append 'SMUTS' to word_tab.
append 'SNABS' to word_tab.
append 'SNACK' to word_tab.
append 'SNAFU' to word_tab.
append 'SNAGS' to word_tab.
append 'SNAIL' to word_tab.
append 'SNAKE' to word_tab.
append 'SNAKY' to word_tab.
append 'SNAPS' to word_tab.
append 'SNARE' to word_tab.
append 'SNARF' to word_tab.
append 'SNARK' to word_tab.
append 'SNARL' to word_tab.
append 'SNARS' to word_tab.
append 'SNARY' to word_tab.
append 'SNASH' to word_tab.
append 'SNATH' to word_tab.
append 'SNAWS' to word_tab.
append 'SNEAD' to word_tab.
append 'SNEAK' to word_tab.
append 'SNEAP' to word_tab.
append 'SNEBS' to word_tab.
append 'SNECK' to word_tab.
append 'SNEDS' to word_tab.
append 'SNEED' to word_tab.
append 'SNEER' to word_tab.
append 'SNEES' to word_tab.
append 'SNELL' to word_tab.
append 'SNIBS' to word_tab.
append 'SNICK' to word_tab.
append 'SNIDE' to word_tab.
append 'SNIES' to word_tab.
append 'SNIFF' to word_tab.
append 'SNIFT' to word_tab.
append 'SNIGS' to word_tab.
append 'SNIPE' to word_tab.
append 'SNIPS' to word_tab.
append 'SNIPY' to word_tab.
append 'SNIRT' to word_tab.
append 'SNITS' to word_tab.
append 'SNOBS' to word_tab.
append 'SNODS' to word_tab.
append 'SNOEK' to word_tab.
append 'SNOEP' to word_tab.
append 'SNOGS' to word_tab.
append 'SNOKE' to word_tab.
append 'SNOOD' to word_tab.
append 'SNOOK' to word_tab.
append 'SNOOL' to word_tab.
append 'SNOOP' to word_tab.
append 'SNOOT' to word_tab.
append 'SNORE' to word_tab.
append 'SNORT' to word_tab.
append 'SNOTS' to word_tab.
append 'SNOUT' to word_tab.
append 'SNOWK' to word_tab.
append 'SNOWS' to word_tab.
append 'SNOWY' to word_tab.
append 'SNUBS' to word_tab.
append 'SNUCK' to word_tab.
append 'SNUFF' to word_tab.
append 'SNUGS' to word_tab.
append 'SNUSH' to word_tab.
append 'SNYES' to word_tab.
append 'SOAKS' to word_tab.
append 'SOAPS' to word_tab.
append 'SOAPY' to word_tab.
append 'SOARE' to word_tab.
append 'SOARS' to word_tab.
append 'SOAVE' to word_tab.
append 'SOBAS' to word_tab.
append 'SOBER' to word_tab.
append 'SOCAS' to word_tab.
append 'SOCES' to word_tab.
append 'SOCKO' to word_tab.
append 'SOCKS' to word_tab.
append 'SOCLE' to word_tab.
append 'SODAS' to word_tab.
append 'SODDY' to word_tab.
append 'SODIC' to word_tab.
append 'SODOM' to word_tab.
append 'SOFAR' to word_tab.
append 'SOFAS' to word_tab.
append 'SOFTA' to word_tab.
append 'SOFTS' to word_tab.
append 'SOFTY' to word_tab.
append 'SOGER' to word_tab.
append 'SOGGY' to word_tab.
append 'SOHUR' to word_tab.
append 'SOILS' to word_tab.
append 'SOILY' to word_tab.
append 'SOJAS' to word_tab.
append 'SOJUS' to word_tab.
append 'SOKAH' to word_tab.
append 'SOKEN' to word_tab.
append 'SOKES' to word_tab.
append 'SOKOL' to word_tab.
append 'SOLAH' to word_tab.
append 'SOLAN' to word_tab.
append 'SOLAR' to word_tab.
append 'SOLAS' to word_tab.
append 'SOLDE' to word_tab.
append 'SOLDI' to word_tab.
append 'SOLDO' to word_tab.
append 'SOLDS' to word_tab.
append 'SOLED' to word_tab.
append 'SOLEI' to word_tab.
append 'SOLER' to word_tab.
append 'SOLES' to word_tab.
append 'SOLID' to word_tab.
append 'SOLON' to word_tab.
append 'SOLOS' to word_tab.
append 'SOLUM' to word_tab.
append 'SOLUS' to word_tab.
append 'SOLVE' to word_tab.
append 'SOMAN' to word_tab.
append 'SOMAS' to word_tab.
append 'SONAR' to word_tab.
append 'SONCE' to word_tab.
append 'SONDE' to word_tab.
append 'SONES' to word_tab.
append 'SONGS' to word_tab.
append 'SONIC' to word_tab.
append 'SONLY' to word_tab.
append 'SONNE' to word_tab.
append 'SONNY' to word_tab.
append 'SONSE' to word_tab.
append 'SONSY' to word_tab.
append 'SOOEY' to word_tab.
append 'SOOKS' to word_tab.
append 'SOOKY' to word_tab.
append 'SOOLE' to word_tab.
append 'SOOLS' to word_tab.
append 'SOOMS' to word_tab.
append 'SOOPS' to word_tab.
append 'SOOTE' to word_tab.
append 'SOOTH' to word_tab.
append 'SOOTS' to word_tab.
append 'SOOTY' to word_tab.
append 'SOPHS' to word_tab.
append 'SOPHY' to word_tab.
append 'SOPOR' to word_tab.
append 'SOPPY' to word_tab.
append 'SOPRA' to word_tab.
append 'SORAL' to word_tab.
append 'SORAS' to word_tab.
append 'SORBO' to word_tab.
append 'SORBS' to word_tab.
append 'SORDA' to word_tab.
append 'SORDO' to word_tab.
append 'SORDS' to word_tab.
append 'SORED' to word_tab.
append 'SOREE' to word_tab.
append 'SOREL' to word_tab.
append 'SORER' to word_tab.
append 'SORES' to word_tab.
append 'SOREX' to word_tab.
append 'SORGO' to word_tab.
append 'SORNS' to word_tab.
append 'SORRA' to word_tab.
append 'SORRY' to word_tab.
append 'SORTA' to word_tab.
append 'SORTS' to word_tab.
append 'SORUS' to word_tab.
append 'SOTHS' to word_tab.
append 'SOTOL' to word_tab.
append 'SOUCE' to word_tab.
append 'SOUCT' to word_tab.
append 'SOUGH' to word_tab.
append 'SOUKS' to word_tab.
append 'SOULS' to word_tab.
append 'SOUMS' to word_tab.
append 'SOUND' to word_tab.
append 'SOUPS' to word_tab.
append 'SOUPY' to word_tab.
append 'SOURS' to word_tab.
append 'SOUSE' to word_tab.
append 'SOUTH' to word_tab.
append 'SOUTS' to word_tab.
append 'SOWAR' to word_tab.
append 'SOWCE' to word_tab.
append 'SOWED' to word_tab.
append 'SOWER' to word_tab.
append 'SOWFF' to word_tab.
append 'SOWFS' to word_tab.
append 'SOWLE' to word_tab.
append 'SOWLS' to word_tab.
append 'SOWMS' to word_tab.
append 'SOWND' to word_tab.
append 'SOWNE' to word_tab.
append 'SOWPS' to word_tab.
append 'SOWSE' to word_tab.
append 'SOWTH' to word_tab.
append 'SOYAS' to word_tab.
append 'SOYLE' to word_tab.
append 'SOYUZ' to word_tab.
append 'SOZIN' to word_tab.
append 'SPACE' to word_tab.
append 'SPACY' to word_tab.
append 'SPADE' to word_tab.
append 'SPADO' to word_tab.
append 'SPAED' to word_tab.
append 'SPAER' to word_tab.
append 'SPAES' to word_tab.
append 'SPAGS' to word_tab.
append 'SPAHI' to word_tab.
append 'SPAIL' to word_tab.
append 'SPAIN' to word_tab.
append 'SPAIT' to word_tab.
append 'SPAKE' to word_tab.
append 'SPALD' to word_tab.
append 'SPALE' to word_tab.
append 'SPALL' to word_tab.
append 'SPALT' to word_tab.
append 'SPAMS' to word_tab.
append 'SPANE' to word_tab.
append 'SPANG' to word_tab.
append 'SPANK' to word_tab.
append 'SPANS' to word_tab.
append 'SPARD' to word_tab.
append 'SPARE' to word_tab.
append 'SPARK' to word_tab.
append 'SPARS' to word_tab.
append 'SPART' to word_tab.
append 'SPASM' to word_tab.
append 'SPATE' to word_tab.
append 'SPATS' to word_tab.
append 'SPAUL' to word_tab.
append 'SPAWL' to word_tab.
append 'SPAWN' to word_tab.
append 'SPAWS' to word_tab.
append 'SPAYD' to word_tab.
append 'SPAYS' to word_tab.
append 'SPAZA' to word_tab.
append 'SPEAK' to word_tab.
append 'SPEAL' to word_tab.
append 'SPEAN' to word_tab.
append 'SPEAR' to word_tab.
append 'SPEAT' to word_tab.
append 'SPECK' to word_tab.
append 'SPECS' to word_tab.
append 'SPECT' to word_tab.
append 'SPEED' to word_tab.
append 'SPEEL' to word_tab.
append 'SPEER' to word_tab.
append 'SPEIL' to word_tab.
append 'SPEIR' to word_tab.
append 'SPEKS' to word_tab.
append 'SPELD' to word_tab.
append 'SPELK' to word_tab.
append 'SPELL' to word_tab.
append 'SPELT' to word_tab.
append 'SPEND' to word_tab.
append 'SPENT' to word_tab.
append 'SPEOS' to word_tab.
append 'SPERM' to word_tab.
append 'SPETS' to word_tab.
append 'SPEUG' to word_tab.
append 'SPEWS' to word_tab.
append 'SPEWY' to word_tab.
append 'SPIAL' to word_tab.
append 'SPICA' to word_tab.
append 'SPICE' to word_tab.
append 'SPICK' to word_tab.
append 'SPICY' to word_tab.
append 'SPIDE' to word_tab.
append 'SPIED' to word_tab.
append 'SPIEL' to word_tab.
append 'SPIER' to word_tab.
append 'SPIES' to word_tab.
append 'SPIFF' to word_tab.
append 'SPIFS' to word_tab.
append 'SPIKE' to word_tab.
append 'SPIKY' to word_tab.
append 'SPILE' to word_tab.
append 'SPILL' to word_tab.
append 'SPILT' to word_tab.
append 'SPIMS' to word_tab.
append 'SPINA' to word_tab.
append 'SPINE' to word_tab.
append 'SPINK' to word_tab.
append 'SPINS' to word_tab.
append 'SPINY' to word_tab.
append 'SPIRE' to word_tab.
append 'SPIRT' to word_tab.
append 'SPIRY' to word_tab.
append 'SPITE' to word_tab.
append 'SPITS' to word_tab.
append 'SPITZ' to word_tab.
append 'SPIVS' to word_tab.
append 'SPLAT' to word_tab.
append 'SPLAY' to word_tab.
append 'SPLIT' to word_tab.
append 'SPLOG' to word_tab.
append 'SPODE' to word_tab.
append 'SPODS' to word_tab.
append 'SPOIL' to word_tab.
append 'SPOKE' to word_tab.
append 'SPOOF' to word_tab.
append 'SPOOK' to word_tab.
append 'SPOOL' to word_tab.
append 'SPOOM' to word_tab.
append 'SPOON' to word_tab.
append 'SPOOR' to word_tab.
append 'SPOOT' to word_tab.
append 'SPORE' to word_tab.
append 'SPORK' to word_tab.
append 'SPORT' to word_tab.
append 'SPOSH' to word_tab.
append 'SPOTS' to word_tab.
append 'SPOUT' to word_tab.
append 'SPRAD' to word_tab.
append 'SPRAG' to word_tab.
append 'SPRAT' to word_tab.
append 'SPRAY' to word_tab.
append 'SPRED' to word_tab.
append 'SPREE' to word_tab.
append 'SPREW' to word_tab.
append 'SPRIG' to word_tab.
append 'SPRIT' to word_tab.
append 'SPROD' to word_tab.
append 'SPROG' to word_tab.
append 'SPRUE' to word_tab.
append 'SPRUG' to word_tab.
append 'SPUDS' to word_tab.
append 'SPUED' to word_tab.
append 'SPUER' to word_tab.
append 'SPUES' to word_tab.
append 'SPUGS' to word_tab.
append 'SPULE' to word_tab.
append 'SPUME' to word_tab.
append 'SPUMY' to word_tab.
append 'SPUNK' to word_tab.
append 'SPURN' to word_tab.
append 'SPURS' to word_tab.
append 'SPURT' to word_tab.
append 'SPUTA' to word_tab.
append 'SPYAL' to word_tab.
append 'SPYRE' to word_tab.
append 'SQUAB' to word_tab.
append 'SQUAD' to word_tab.
append 'SQUAT' to word_tab.
append 'SQUEG' to word_tab.
append 'SQUIB' to word_tab.
append 'SQUID' to word_tab.
append 'SQUIT' to word_tab.
append 'SQUIZ' to word_tab.
append 'STABS' to word_tab.
append 'STACK' to word_tab.
append 'STADE' to word_tab.
append 'STAFF' to word_tab.
append 'STAGE' to word_tab.
append 'STAGS' to word_tab.
append 'STAGY' to word_tab.
append 'STAID' to word_tab.
append 'STAIG' to word_tab.
append 'STAIN' to word_tab.
append 'STAIR' to word_tab.
append 'STAKE' to word_tab.
append 'STALE' to word_tab.
append 'STALK' to word_tab.
append 'STALL' to word_tab.
append 'STAMP' to word_tab.
append 'STAND' to word_tab.
append 'STANE' to word_tab.
append 'STANG' to word_tab.
append 'STANK' to word_tab.
append 'STAPH' to word_tab.
append 'STAPS' to word_tab.
append 'STARE' to word_tab.
append 'STARK' to word_tab.
append 'STARN' to word_tab.
append 'STARR' to word_tab.
append 'STARS' to word_tab.
append 'START' to word_tab.
append 'STASH' to word_tab.
append 'STATE' to word_tab.
append 'STATS' to word_tab.
append 'STAUN' to word_tab.
append 'STAVE' to word_tab.
append 'STAWS' to word_tab.
append 'STAYS' to word_tab.
append 'STEAD' to word_tab.
append 'STEAK' to word_tab.
append 'STEAL' to word_tab.
append 'STEAM' to word_tab.
append 'STEAN' to word_tab.
append 'STEAR' to word_tab.
append 'STEDD' to word_tab.
append 'STEDE' to word_tab.
append 'STEDS' to word_tab.
append 'STEED' to word_tab.
append 'STEEK' to word_tab.
append 'STEEL' to word_tab.
append 'STEEM' to word_tab.
append 'STEEN' to word_tab.
append 'STEEP' to word_tab.
append 'STEER' to word_tab.
append 'STEIL' to word_tab.
append 'STEIN' to word_tab.
append 'STELA' to word_tab.
append 'STELE' to word_tab.
append 'STELL' to word_tab.
append 'STEME' to word_tab.
append 'STEMS' to word_tab.
append 'STEND' to word_tab.
append 'STENO' to word_tab.
append 'STENS' to word_tab.
append 'STENT' to word_tab.
append 'STEPS' to word_tab.
append 'STEPT' to word_tab.
append 'STERE' to word_tab.
append 'STERN' to word_tab.
append 'STETS' to word_tab.
append 'STEWS' to word_tab.
append 'STEWY' to word_tab.
append 'STEYS' to word_tab.
append 'STICH' to word_tab.
append 'STICK' to word_tab.
append 'STIED' to word_tab.
append 'STIES' to word_tab.
append 'STIFF' to word_tab.
append 'STILB' to word_tab.
append 'STILE' to word_tab.
append 'STILL' to word_tab.
append 'STILT' to word_tab.
append 'STIME' to word_tab.
append 'STIMS' to word_tab.
append 'STIMY' to word_tab.
append 'STING' to word_tab.
append 'STINK' to word_tab.
append 'STINT' to word_tab.
append 'STIPA' to word_tab.
append 'STIPE' to word_tab.
append 'STIRE' to word_tab.
append 'STIRK' to word_tab.
append 'STIRP' to word_tab.
append 'STIRS' to word_tab.
append 'STIVE' to word_tab.
append 'STIVY' to word_tab.
append 'STOAE' to word_tab.
append 'STOAI' to word_tab.
append 'STOAS' to word_tab.
append 'STOAT' to word_tab.
append 'STOBS' to word_tab.
append 'STOCK' to word_tab.
append 'STOEP' to word_tab.
append 'STOGY' to word_tab.
append 'STOIC' to word_tab.
append 'STOIT' to word_tab.
append 'STOKE' to word_tab.
append 'STOLE' to word_tab.
append 'STOLN' to word_tab.
append 'STOMA' to word_tab.
append 'STOMP' to word_tab.
append 'STOND' to word_tab.
append 'STONE' to word_tab.
append 'STONG' to word_tab.
append 'STONK' to word_tab.
append 'STONN' to word_tab.
append 'STONY' to word_tab.
append 'STOOD' to word_tab.
append 'STOOK' to word_tab.
append 'STOOL' to word_tab.
append 'STOOP' to word_tab.
append 'STOOR' to word_tab.
append 'STOPE' to word_tab.
append 'STOPS' to word_tab.
append 'STOPT' to word_tab.
append 'STORE' to word_tab.
append 'STORK' to word_tab.
append 'STORM' to word_tab.
append 'STORY' to word_tab.
append 'STOSS' to word_tab.
append 'STOTS' to word_tab.
append 'STOTT' to word_tab.
append 'STOUN' to word_tab.
append 'STOUP' to word_tab.
append 'STOUR' to word_tab.
append 'STOUT' to word_tab.
append 'STOVE' to word_tab.
append 'STOWN' to word_tab.
append 'STOWP' to word_tab.
append 'STOWS' to word_tab.
append 'STRAD' to word_tab.
append 'STRAE' to word_tab.
append 'STRAG' to word_tab.
append 'STRAK' to word_tab.
append 'STRAP' to word_tab.
append 'STRAW' to word_tab.
append 'STRAY' to word_tab.
append 'STREP' to word_tab.
append 'STREW' to word_tab.
append 'STRIA' to word_tab.
append 'STRIG' to word_tab.
append 'STRIM' to word_tab.
append 'STRIP' to word_tab.
append 'STROP' to word_tab.
append 'STROW' to word_tab.
append 'STROY' to word_tab.
append 'STRUM' to word_tab.
append 'STRUT' to word_tab.
append 'STUBS' to word_tab.
append 'STUCK' to word_tab.
append 'STUDE' to word_tab.
append 'STUDS' to word_tab.
append 'STUDY' to word_tab.
append 'STUFF' to word_tab.
append 'STULL' to word_tab.
append 'STULM' to word_tab.
append 'STUMM' to word_tab.
append 'STUMP' to word_tab.
append 'STUMS' to word_tab.
append 'STUNG' to word_tab.
append 'STUNK' to word_tab.
append 'STUNS' to word_tab.
append 'STUNT' to word_tab.
append 'STUPA' to word_tab.
append 'STUPE' to word_tab.
append 'STURE' to word_tab.
append 'STURT' to word_tab.
append 'STYED' to word_tab.
append 'STYES' to word_tab.
append 'STYLE' to word_tab.
append 'STYLI' to word_tab.
append 'STYLO' to word_tab.
append 'STYME' to word_tab.
append 'STYMY' to word_tab.
append 'STYRE' to word_tab.
append 'STYTE' to word_tab.
append 'SUAVE' to word_tab.
append 'SUBAH' to word_tab.
append 'SUBAS' to word_tab.
append 'SUBBY' to word_tab.
append 'SUBER' to word_tab.
append 'SUBHA' to word_tab.
append 'SUCCI' to word_tab.
append 'SUCKS' to word_tab.
append 'SUCKY' to word_tab.
append 'SUCRE' to word_tab.
append 'SUDDS' to word_tab.
append 'SUDOR' to word_tab.
append 'SUDSY' to word_tab.
append 'SUEDE' to word_tab.
append 'SUENT' to word_tab.
append 'SUERS' to word_tab.
append 'SUETE' to word_tab.
append 'SUETS' to word_tab.
append 'SUETY' to word_tab.
append 'SUGAN' to word_tab.
append 'SUGAR' to word_tab.
append 'SUGHS' to word_tab.
append 'SUGOS' to word_tab.
append 'SUHUR' to word_tab.
append 'SUIDS' to word_tab.
append 'SUING' to word_tab.
append 'SUINT' to word_tab.
append 'SUITE' to word_tab.
append 'SUITS' to word_tab.
append 'SUJEE' to word_tab.
append 'SUKHS' to word_tab.
append 'SUKUK' to word_tab.
append 'SULCI' to word_tab.
append 'SULFA' to word_tab.
append 'SULFO' to word_tab.
append 'SULKS' to word_tab.
append 'SULKY' to word_tab.
append 'SULLY' to word_tab.
append 'SULPH' to word_tab.
append 'SULUS' to word_tab.
append 'SUMAC' to word_tab.
append 'SUMIS' to word_tab.
append 'SUMMA' to word_tab.
append 'SUMOS' to word_tab.
append 'SUMPH' to word_tab.
append 'SUMPS' to word_tab.
append 'SUNIS' to word_tab.
append 'SUNKS' to word_tab.
append 'SUNNA' to word_tab.
append 'SUNNS' to word_tab.
append 'SUNNY' to word_tab.
append 'SUNUP' to word_tab.
append 'SUPER' to word_tab.
append 'SUPES' to word_tab.
append 'SUPRA' to word_tab.
append 'SURAH' to word_tab.
append 'SURAL' to word_tab.
append 'SURAS' to word_tab.
append 'SURAT' to word_tab.
append 'SURDS' to word_tab.
append 'SURED' to word_tab.
append 'SURER' to word_tab.
append 'SURES' to word_tab.
append 'SURFS' to word_tab.
append 'SURFY' to word_tab.
append 'SURGE' to word_tab.
append 'SURGY' to word_tab.
append 'SURLY' to word_tab.
append 'SURRA' to word_tab.
append 'SUSED' to word_tab.
append 'SUSES' to word_tab.
append 'SUSHI' to word_tab.
append 'SUSUS' to word_tab.
append 'SUTOR' to word_tab.
append 'SUTRA' to word_tab.
append 'SUTTA' to word_tab.
append 'SWABS' to word_tab.
append 'SWACK' to word_tab.
append 'SWADS' to word_tab.
append 'SWAGE' to word_tab.
append 'SWAGS' to word_tab.
append 'SWAIL' to word_tab.
append 'SWAIN' to word_tab.
append 'SWALE' to word_tab.
append 'SWALY' to word_tab.
append 'SWAMI' to word_tab.
append 'SWAMP' to word_tab.
append 'SWAMY' to word_tab.
append 'SWANG' to word_tab.
append 'SWANK' to word_tab.
append 'SWANS' to word_tab.
append 'SWAPS' to word_tab.
append 'SWAPT' to word_tab.
append 'SWARD' to word_tab.
append 'SWARE' to word_tab.
append 'SWARF' to word_tab.
append 'SWARM' to word_tab.
append 'SWART' to word_tab.
append 'SWASH' to word_tab.
append 'SWATH' to word_tab.
append 'SWATS' to word_tab.
append 'SWAYL' to word_tab.
append 'SWAYS' to word_tab.
append 'SWEAL' to word_tab.
append 'SWEAR' to word_tab.
append 'SWEAT' to word_tab.
append 'SWEDE' to word_tab.
append 'SWEED' to word_tab.
append 'SWEEL' to word_tab.
append 'SWEEP' to word_tab.
append 'SWEER' to word_tab.
append 'SWEES' to word_tab.
append 'SWEET' to word_tab.
append 'SWEIR' to word_tab.
append 'SWELL' to word_tab.
append 'SWELT' to word_tab.
append 'SWEPT' to word_tab.
append 'SWERF' to word_tab.
append 'SWEYS' to word_tab.
append 'SWIES' to word_tab.
append 'SWIFT' to word_tab.
append 'SWIGS' to word_tab.
append 'SWILE' to word_tab.
append 'SWILL' to word_tab.
append 'SWIMS' to word_tab.
append 'SWINE' to word_tab.
append 'SWING' to word_tab.
append 'SWINK' to word_tab.
append 'SWIPE' to word_tab.
append 'SWIRE' to word_tab.
append 'SWIRL' to word_tab.
append 'SWISH' to word_tab.
append 'SWISS' to word_tab.
append 'SWITH' to word_tab.
append 'SWITS' to word_tab.
append 'SWIVE' to word_tab.
append 'SWIZZ' to word_tab.
append 'SWOBS' to word_tab.
append 'SWOLE' to word_tab.
append 'SWOLN' to word_tab.
append 'SWOON' to word_tab.
append 'SWOOP' to word_tab.
append 'SWOPS' to word_tab.
append 'SWOPT' to word_tab.
append 'SWORD' to word_tab.
append 'SWORE' to word_tab.
append 'SWORN' to word_tab.
append 'SWOTS' to word_tab.
append 'SWOUN' to word_tab.
append 'SWUNG' to word_tab.
append 'SYBBE' to word_tab.
append 'SYBIL' to word_tab.
append 'SYBOE' to word_tab.
append 'SYBOW' to word_tab.
append 'SYCEE' to word_tab.
append 'SYCES' to word_tab.
append 'SYCON' to word_tab.
append 'SYENS' to word_tab.
append 'SYKER' to word_tab.
append 'SYKES' to word_tab.
append 'SYLIS' to word_tab.
append 'SYLPH' to word_tab.
append 'SYLVA' to word_tab.
append 'SYMAR' to word_tab.
append 'SYNCH' to word_tab.
append 'SYNCS' to word_tab.
append 'SYNDS' to word_tab.
append 'SYNED' to word_tab.
append 'SYNES' to word_tab.
append 'SYNOD' to word_tab.
append 'SYNTH' to word_tab.
append 'SYPED' to word_tab.
append 'SYPES' to word_tab.
append 'SYPHS' to word_tab.
append 'SYRAH' to word_tab.
append 'SYREN' to word_tab.
append 'SYRUP' to word_tab.
append 'SYSOP' to word_tab.
append 'SYTHE' to word_tab.
append 'SYVER' to word_tab.
append 'TAALS' to word_tab.
append 'TAATA' to word_tab.
append 'TABBY' to word_tab.
append 'TABER' to word_tab.
append 'TABES' to word_tab.
append 'TABID' to word_tab.
append 'TABIS' to word_tab.
append 'TABLA' to word_tab.
append 'TABLE' to word_tab.
append 'TABOO' to word_tab.
append 'TABOR' to word_tab.
append 'TABUN' to word_tab.
append 'TABUS' to word_tab.
append 'TACAN' to word_tab.
append 'TACES' to word_tab.
append 'TACET' to word_tab.
append 'TACHE' to word_tab.
append 'TACHO' to word_tab.
append 'TACHS' to word_tab.
append 'TACIT' to word_tab.
append 'TACKS' to word_tab.
append 'TACKY' to word_tab.
append 'TACOS' to word_tab.
append 'TACTS' to word_tab.
append 'TAELS' to word_tab.
append 'TAFFY' to word_tab.
append 'TAFIA' to word_tab.
append 'TAGGY' to word_tab.
append 'TAGMA' to word_tab.
append 'TAHAS' to word_tab.
append 'TAHRS' to word_tab.
append 'TAIGA' to word_tab.
append 'TAIKO' to word_tab.
append 'TAILS' to word_tab.
append 'TAINS' to word_tab.
append 'TAINT' to word_tab.
append 'TAIRA' to word_tab.
append 'TAISH' to word_tab.
append 'TAITS' to word_tab.
append 'TAJES' to word_tab.
append 'TAKAS' to word_tab.
append 'TAKEN' to word_tab.
append 'TAKER' to word_tab.
append 'TAKES' to word_tab.
append 'TAKHI' to word_tab.
append 'TAKIN' to word_tab.
append 'TAKIS' to word_tab.
append 'TAKKY' to word_tab.
append 'TALAK' to word_tab.
append 'TALAQ' to word_tab.
append 'TALAR' to word_tab.
append 'TALAS' to word_tab.
append 'TALCS' to word_tab.
append 'TALCY' to word_tab.
append 'TALEA' to word_tab.
append 'TALER' to word_tab.
append 'TALES' to word_tab.
append 'TALKS' to word_tab.
append 'TALKY' to word_tab.
append 'TALLS' to word_tab.
append 'TALLY' to word_tab.
append 'TALMA' to word_tab.
append 'TALON' to word_tab.
append 'TALPA' to word_tab.
append 'TALUK' to word_tab.
append 'TALUS' to word_tab.
append 'TAMAL' to word_tab.
append 'TAMED' to word_tab.
append 'TAMER' to word_tab.
append 'TAMES' to word_tab.
append 'TAMIN' to word_tab.
append 'TAMIS' to word_tab.
append 'TAMMY' to word_tab.
append 'TAMPS' to word_tab.
append 'TANAS' to word_tab.
append 'TANGA' to word_tab.
append 'TANGI' to word_tab.
append 'TANGO' to word_tab.
append 'TANGS' to word_tab.
append 'TANGY' to word_tab.
append 'TANHS' to word_tab.
append 'TANKA' to word_tab.
append 'TANKS' to word_tab.
append 'TANKY' to word_tab.
append 'TANNA' to word_tab.
append 'TANSY' to word_tab.
append 'TANTI' to word_tab.
append 'TANTO' to word_tab.
append 'TANTY' to word_tab.
append 'TAPAS' to word_tab.
append 'TAPED' to word_tab.
append 'TAPEN' to word_tab.
append 'TAPER' to word_tab.
append 'TAPES' to word_tab.
append 'TAPET' to word_tab.
append 'TAPIR' to word_tab.
append 'TAPIS' to word_tab.
append 'TAPPA' to word_tab.
append 'TAPUS' to word_tab.
append 'TARAS' to word_tab.
append 'TARDO' to word_tab.
append 'TARDY' to word_tab.
append 'TARED' to word_tab.
append 'TARES' to word_tab.
append 'TARGA' to word_tab.
append 'TARGE' to word_tab.
append 'TARNS' to word_tab.
append 'TAROC' to word_tab.
append 'TAROK' to word_tab.
append 'TAROS' to word_tab.
append 'TAROT' to word_tab.
append 'TARPS' to word_tab.
append 'TARRE' to word_tab.
append 'TARRY' to word_tab.
append 'TARSI' to word_tab.
append 'TARTS' to word_tab.
append 'TARTY' to word_tab.
append 'TASAR' to word_tab.
append 'TASED' to word_tab.
append 'TASER' to word_tab.
append 'TASES' to word_tab.
append 'TASKS' to word_tab.
append 'TASSA' to word_tab.
append 'TASSE' to word_tab.
append 'TASSO' to word_tab.
append 'TASTE' to word_tab.
append 'TASTY' to word_tab.
append 'TATAR' to word_tab.
append 'TATER' to word_tab.
append 'TATES' to word_tab.
append 'TATHS' to word_tab.
append 'TATIE' to word_tab.
append 'TATOU' to word_tab.
append 'TATTS' to word_tab.
append 'TATTY' to word_tab.
append 'TATUS' to word_tab.
append 'TAUBE' to word_tab.
append 'TAULD' to word_tab.
append 'TAUNT' to word_tab.
append 'TAUON' to word_tab.
append 'TAUPE' to word_tab.
append 'TAUTS' to word_tab.
append 'TAVAH' to word_tab.
append 'TAVAS' to word_tab.
append 'TAVER' to word_tab.
append 'TAWAI' to word_tab.
append 'TAWAS' to word_tab.
append 'TAWED' to word_tab.
append 'TAWER' to word_tab.
append 'TAWIE' to word_tab.
append 'TAWNY' to word_tab.
append 'TAWSE' to word_tab.
append 'TAWTS' to word_tab.
append 'TAXED' to word_tab.
append 'TAXER' to word_tab.
append 'TAXES' to word_tab.
append 'TAXIS' to word_tab.
append 'TAXOL' to word_tab.
append 'TAXON' to word_tab.
append 'TAXOR' to word_tab.
append 'TAXUS' to word_tab.
append 'TAYRA' to word_tab.
append 'TAZZA' to word_tab.
append 'TAZZE' to word_tab.
append 'TEACH' to word_tab.
append 'TEADE' to word_tab.
append 'TEADS' to word_tab.
append 'TEAED' to word_tab.
append 'TEAKS' to word_tab.
append 'TEALS' to word_tab.
append 'TEAMS' to word_tab.
append 'TEARS' to word_tab.
append 'TEARY' to word_tab.
append 'TEASE' to word_tab.
append 'TEATS' to word_tab.
append 'TEAZE' to word_tab.
append 'TECHS' to word_tab.
append 'TECHY' to word_tab.
append 'TECTA' to word_tab.
append 'TEDDY' to word_tab.
append 'TEELS' to word_tab.
append 'TEEMS' to word_tab.
append 'TEEND' to word_tab.
append 'TEENE' to word_tab.
append 'TEENS' to word_tab.
append 'TEENY' to word_tab.
append 'TEERS' to word_tab.
append 'TEETH' to word_tab.
append 'TEFFS' to word_tab.
append 'TEGGS' to word_tab.
append 'TEGUA' to word_tab.
append 'TEGUS' to word_tab.
append 'TEHRS' to word_tab.
append 'TEIID' to word_tab.
append 'TEILS' to word_tab.
append 'TEIND' to word_tab.
append 'TEINS' to word_tab.
append 'TELAE' to word_tab.
append 'TELCO' to word_tab.
append 'TELES' to word_tab.
append 'TELEX' to word_tab.
append 'TELIA' to word_tab.
append 'TELIC' to word_tab.
append 'TELLS' to word_tab.
append 'TELLY' to word_tab.
append 'TELOI' to word_tab.
append 'TELOS' to word_tab.
append 'TEMED' to word_tab.
append 'TEMES' to word_tab.
append 'TEMPI' to word_tab.
append 'TEMPO' to word_tab.
append 'TEMPS' to word_tab.
append 'TEMPT' to word_tab.
append 'TEMSE' to word_tab.
append 'TENCH' to word_tab.
append 'TENDS' to word_tab.
append 'TENDU' to word_tab.
append 'TENES' to word_tab.
append 'TENET' to word_tab.
append 'TENGE' to word_tab.
append 'TENIA' to word_tab.
append 'TENNE' to word_tab.
append 'TENNO' to word_tab.
append 'TENNY' to word_tab.
append 'TENON' to word_tab.
append 'TENOR' to word_tab.
append 'TENSE' to word_tab.
append 'TENTH' to word_tab.
append 'TENTS' to word_tab.
append 'TENTY' to word_tab.
append 'TENUE' to word_tab.
append 'TEPAL' to word_tab.
append 'TEPAS' to word_tab.
append 'TEPEE' to word_tab.
append 'TEPID' to word_tab.
append 'TEPOY' to word_tab.
append 'TERAI' to word_tab.
append 'TERAS' to word_tab.
append 'TERCE' to word_tab.
append 'TEREK' to word_tab.
append 'TERES' to word_tab.
append 'TERFE' to word_tab.
append 'TERFS' to word_tab.
append 'TERGA' to word_tab.
append 'TERMS' to word_tab.
append 'TERNE' to word_tab.
append 'TERNS' to word_tab.
append 'TERRA' to word_tab.
append 'TERRY' to word_tab.
append 'TERSE' to word_tab.
append 'TERTS' to word_tab.
append 'TESLA' to word_tab.
append 'TESTA' to word_tab.
append 'TESTE' to word_tab.
append 'TESTS' to word_tab.
append 'TESTY' to word_tab.
append 'TETES' to word_tab.
append 'TETHS' to word_tab.
append 'TETRA' to word_tab.
append 'TETRI' to word_tab.
append 'TEUCH' to word_tab.
append 'TEUGH' to word_tab.
append 'TEWED' to word_tab.
append 'TEWEL' to word_tab.
append 'TEWIT' to word_tab.
append 'TEXAS' to word_tab.
append 'TEXES' to word_tab.
append 'TEXTS' to word_tab.
append 'THACK' to word_tab.
append 'THAGI' to word_tab.
append 'THAIM' to word_tab.
append 'THALE' to word_tab.
append 'THALI' to word_tab.
append 'THANA' to word_tab.
append 'THANE' to word_tab.
append 'THANG' to word_tab.
append 'THANK' to word_tab.
append 'THANS' to word_tab.
append 'THANX' to word_tab.
append 'THARM' to word_tab.
append 'THARS' to word_tab.
append 'THAWS' to word_tab.
append 'THAWY' to word_tab.
append 'THEBE' to word_tab.
append 'THECA' to word_tab.
append 'THEED' to word_tab.
append 'THEEK' to word_tab.
append 'THEES' to word_tab.
append 'THEFT' to word_tab.
append 'THEGN' to word_tab.
append 'THEIC' to word_tab.
append 'THEIN' to word_tab.
append 'THEIR' to word_tab.
append 'THELF' to word_tab.
append 'THEMA' to word_tab.
append 'THEME' to word_tab.
append 'THENS' to word_tab.
append 'THEOW' to word_tab.
append 'THERE' to word_tab.
append 'THERM' to word_tab.
append 'THESE' to word_tab.
append 'THESP' to word_tab.
append 'THETA' to word_tab.
append 'THETE' to word_tab.
append 'THEWS' to word_tab.
append 'THEWY' to word_tab.
append 'THICK' to word_tab.
append 'THIEF' to word_tab.
append 'THIGH' to word_tab.
append 'THIGS' to word_tab.
append 'THILK' to word_tab.
append 'THILL' to word_tab.
append 'THINE' to word_tab.
append 'THING' to word_tab.
append 'THINK' to word_tab.
append 'THINS' to word_tab.
append 'THIOL' to word_tab.
append 'THIRD' to word_tab.
append 'THIRL' to word_tab.
append 'THOFT' to word_tab.
append 'THOLE' to word_tab.
append 'THOLI' to word_tab.
append 'THONG' to word_tab.
append 'THORN' to word_tab.
append 'THORO' to word_tab.
append 'THORP' to word_tab.
append 'THOSE' to word_tab.
append 'THOUS' to word_tab.
append 'THOWL' to word_tab.
append 'THRAE' to word_tab.
append 'THRAW' to word_tab.
append 'THREE' to word_tab.
append 'THREW' to word_tab.
append 'THRID' to word_tab.
append 'THRIP' to word_tab.
append 'THROB' to word_tab.
append 'THROE' to word_tab.
append 'THROW' to word_tab.
append 'THRUM' to word_tab.
append 'THUDS' to word_tab.
append 'THUGS' to word_tab.
append 'THUJA' to word_tab.
append 'THUMB' to word_tab.
append 'THUMP' to word_tab.
append 'THUNK' to word_tab.
append 'THURL' to word_tab.
append 'THUYA' to word_tab.
append 'THYME' to word_tab.
append 'THYMI' to word_tab.
append 'THYMY' to word_tab.
append 'TIANS' to word_tab.
append 'TIARA' to word_tab.
append 'TIARS' to word_tab.
append 'TIBIA' to word_tab.
append 'TICAL' to word_tab.
append 'TICCA' to word_tab.
append 'TICED' to word_tab.
append 'TICES' to word_tab.
append 'TICHY' to word_tab.
append 'TICKS' to word_tab.
append 'TICKY' to word_tab.
append 'TIDAL' to word_tab.
append 'TIDDY' to word_tab.
append 'TIDED' to word_tab.
append 'TIDES' to word_tab.
append 'TIERS' to word_tab.
append 'TIFFS' to word_tab.
append 'TIFOS' to word_tab.
append 'TIFTS' to word_tab.
append 'TIGER' to word_tab.
append 'TIGES' to word_tab.
append 'TIGHT' to word_tab.
append 'TIGON' to word_tab.
append 'TIKAS' to word_tab.
append 'TIKES' to word_tab.
append 'TIKIS' to word_tab.
append 'TIKKA' to word_tab.
append 'TILAK' to word_tab.
append 'TILDE' to word_tab.
append 'TILED' to word_tab.
append 'TILER' to word_tab.
append 'TILES' to word_tab.
append 'TILLS' to word_tab.
append 'TILLY' to word_tab.
append 'TILTH' to word_tab.
append 'TILTS' to word_tab.
append 'TIMBO' to word_tab.
append 'TIMED' to word_tab.
append 'TIMER' to word_tab.
append 'TIMES' to word_tab.
append 'TIMID' to word_tab.
append 'TIMON' to word_tab.
append 'TIMPS' to word_tab.
append 'TINAS' to word_tab.
append 'TINCT' to word_tab.
append 'TINDS' to word_tab.
append 'TINEA' to word_tab.
append 'TINED' to word_tab.
append 'TINES' to word_tab.
append 'TINGE' to word_tab.
append 'TINGS' to word_tab.
append 'TINKS' to word_tab.
append 'TINNY' to word_tab.
append 'TINTS' to word_tab.
append 'TINTY' to word_tab.
append 'TIPIS' to word_tab.
append 'TIPPY' to word_tab.
append 'TIPSY' to word_tab.
append 'TIRED' to word_tab.
append 'TIRES' to word_tab.
append 'TIRLS' to word_tab.
append 'TIROS' to word_tab.
append 'TIRRS' to word_tab.
append 'TITAN' to word_tab.
append 'TITCH' to word_tab.
append 'TITER' to word_tab.
append 'TITHE' to word_tab.
append 'TITIS' to word_tab.
append 'TITLE' to word_tab.
append 'TITRE' to word_tab.
append 'TITTY' to word_tab.
append 'TITUP' to word_tab.
append 'TIYIN' to word_tab.
append 'TIYNS' to word_tab.
append 'TIZES' to word_tab.
append 'TIZZY' to word_tab.
append 'TOADS' to word_tab.
append 'TOADY' to word_tab.
append 'TOAST' to word_tab.
append 'TOAZE' to word_tab.
append 'TOCKS' to word_tab.
append 'TOCKY' to word_tab.
append 'TOCOS' to word_tab.
append 'TODAY' to word_tab.
append 'TODDE' to word_tab.
append 'TODDY' to word_tab.
append 'TOEAS' to word_tab.
append 'TOFFS' to word_tab.
append 'TOFFY' to word_tab.
append 'TOFTS' to word_tab.
append 'TOFUS' to word_tab.
append 'TOGAE' to word_tab.
append 'TOGAS' to word_tab.
append 'TOGED' to word_tab.
append 'TOGES' to word_tab.
append 'TOGUE' to word_tab.
append 'TOHOS' to word_tab.
append 'TOILE' to word_tab.
append 'TOILS' to word_tab.
append 'TOING' to word_tab.
append 'TOISE' to word_tab.
append 'TOITS' to word_tab.
append 'TOKAY' to word_tab.
append 'TOKED' to word_tab.
append 'TOKEN' to word_tab.
append 'TOKER' to word_tab.
append 'TOKES' to word_tab.
append 'TOKOS' to word_tab.
append 'TOLAN' to word_tab.
append 'TOLAR' to word_tab.
append 'TOLAS' to word_tab.
append 'TOLED' to word_tab.
append 'TOLES' to word_tab.
append 'TOLLS' to word_tab.
append 'TOLLY' to word_tab.
append 'TOLTS' to word_tab.
append 'TOLUS' to word_tab.
append 'TOLYL' to word_tab.
append 'TOMAN' to word_tab.
append 'TOMBS' to word_tab.
append 'TOMES' to word_tab.
append 'TOMIA' to word_tab.
append 'TOMMY' to word_tab.
append 'TOMOS' to word_tab.
append 'TONAL' to word_tab.
append 'TONDI' to word_tab.
append 'TONDO' to word_tab.
append 'TONED' to word_tab.
append 'TONER' to word_tab.
append 'TONES' to word_tab.
append 'TONEY' to word_tab.
append 'TONGA' to word_tab.
append 'TONGS' to word_tab.
append 'TONIC' to word_tab.
append 'TONKA' to word_tab.
append 'TONKS' to word_tab.
append 'TONNE' to word_tab.
append 'TONUS' to word_tab.
append 'TOOLS' to word_tab.
append 'TOOMS' to word_tab.
append 'TOONS' to word_tab.
append 'TOOTH' to word_tab.
append 'TOOTS' to word_tab.
append 'TOPAZ' to word_tab.
append 'TOPED' to word_tab.
append 'TOPEE' to word_tab.
append 'TOPEK' to word_tab.
append 'TOPER' to word_tab.
append 'TOPES' to word_tab.
append 'TOPHE' to word_tab.
append 'TOPHI' to word_tab.
append 'TOPHS' to word_tab.
append 'TOPIC' to word_tab.
append 'TOPIS' to word_tab.
append 'TOPOI' to word_tab.
append 'TOPOS' to word_tab.
append 'TOPPY' to word_tab.
append 'TOQUE' to word_tab.
append 'TORAH' to word_tab.
append 'TORAN' to word_tab.
append 'TORAS' to word_tab.
append 'TORCH' to word_tab.
append 'TORCS' to word_tab.
append 'TORES' to word_tab.
append 'TORIC' to word_tab.
append 'TORII' to word_tab.
append 'TOROS' to word_tab.
append 'TOROT' to word_tab.
append 'TORRS' to word_tab.
append 'TORSE' to word_tab.
append 'TORSI' to word_tab.
append 'TORSK' to word_tab.
append 'TORSO' to word_tab.
append 'TORTA' to word_tab.
append 'TORTE' to word_tab.
append 'TORTS' to word_tab.
append 'TORUS' to word_tab.
append 'TOSAS' to word_tab.
append 'TOSED' to word_tab.
append 'TOSES' to word_tab.
append 'TOSHY' to word_tab.
append 'TOSSY' to word_tab.
append 'TOTAL' to word_tab.
append 'TOTED' to word_tab.
append 'TOTEM' to word_tab.
append 'TOTER' to word_tab.
append 'TOTES' to word_tab.
append 'TOTTY' to word_tab.
append 'TOUCH' to word_tab.
append 'TOUGH' to word_tab.
append 'TOUKS' to word_tab.
append 'TOUNS' to word_tab.
append 'TOURS' to word_tab.
append 'TOUSE' to word_tab.
append 'TOUSY' to word_tab.
append 'TOUTS' to word_tab.
append 'TOUZE' to word_tab.
append 'TOUZY' to word_tab.
append 'TOWED' to word_tab.
append 'TOWEL' to word_tab.
append 'TOWER' to word_tab.
append 'TOWIE' to word_tab.
append 'TOWNS' to word_tab.
append 'TOWNY' to word_tab.
append 'TOWSE' to word_tab.
append 'TOWSY' to word_tab.
append 'TOWTS' to word_tab.
append 'TOWZE' to word_tab.
append 'TOWZY' to word_tab.
append 'TOXIC' to word_tab.
append 'TOXIN' to word_tab.
append 'TOYED' to word_tab.
append 'TOYER' to word_tab.
append 'TOYON' to word_tab.
append 'TOYOS' to word_tab.
append 'TOZED' to word_tab.
append 'TOZES' to word_tab.
append 'TOZIE' to word_tab.
append 'TRABS' to word_tab.
append 'TRACE' to word_tab.
append 'TRACK' to word_tab.
append 'TRACT' to word_tab.
append 'TRADE' to word_tab.
append 'TRADS' to word_tab.
append 'TRAGI' to word_tab.
append 'TRAIK' to word_tab.
append 'TRAIL' to word_tab.
append 'TRAIN' to word_tab.
append 'TRAIT' to word_tab.
append 'TRAMP' to word_tab.
append 'TRAMS' to word_tab.
append 'TRANK' to word_tab.
append 'TRANQ' to word_tab.
append 'TRANS' to word_tab.
append 'TRANT' to word_tab.
append 'TRAPE' to word_tab.
append 'TRAPS' to word_tab.
append 'TRAPT' to word_tab.
append 'TRASH' to word_tab.
append 'TRASS' to word_tab.
append 'TRATS' to word_tab.
append 'TRATT' to word_tab.
append 'TRAVE' to word_tab.
append 'TRAWL' to word_tab.
append 'TRAYF' to word_tab.
append 'TRAYS' to word_tab.
append 'TREAD' to word_tab.
append 'TREAT' to word_tab.
append 'TRECK' to word_tab.
append 'TREED' to word_tab.
append 'TREEN' to word_tab.
append 'TREES' to word_tab.
append 'TREFA' to word_tab.
append 'TREIF' to word_tab.
append 'TREKS' to word_tab.
append 'TREMA' to word_tab.
append 'TREMS' to word_tab.
append 'TREND' to word_tab.
append 'TRESS' to word_tab.
append 'TREST' to word_tab.
append 'TRETS' to word_tab.
append 'TREWS' to word_tab.
append 'TREYF' to word_tab.
append 'TREYS' to word_tab.
append 'TRIAC' to word_tab.
append 'TRIAD' to word_tab.
append 'TRIAL' to word_tab.
append 'TRIBE' to word_tab.
append 'TRICE' to word_tab.
append 'TRICK' to word_tab.
append 'TRIDE' to word_tab.
append 'TRIED' to word_tab.
append 'TRIER' to word_tab.
append 'TRIES' to word_tab.
append 'TRIFF' to word_tab.
append 'TRIGO' to word_tab.
append 'TRIGS' to word_tab.
append 'TRIKE' to word_tab.
append 'TRILD' to word_tab.
append 'TRILL' to word_tab.
append 'TRIMS' to word_tab.
append 'TRINE' to word_tab.
append 'TRINS' to word_tab.
append 'TRIOL' to word_tab.
append 'TRIOR' to word_tab.
append 'TRIOS' to word_tab.
append 'TRIPE' to word_tab.
append 'TRIPS' to word_tab.
append 'TRIPY' to word_tab.
append 'TRIST' to word_tab.
append 'TRITE' to word_tab.
append 'TROAD' to word_tab.
append 'TROAK' to word_tab.
append 'TROAT' to word_tab.
append 'TROCK' to word_tab.
append 'TRODE' to word_tab.
append 'TRODS' to word_tab.
append 'TROGS' to word_tab.
append 'TROIS' to word_tab.
append 'TROKE' to word_tab.
append 'TROLL' to word_tab.
append 'TROMP' to word_tab.
append 'TRONA' to word_tab.
append 'TRONC' to word_tab.
append 'TRONE' to word_tab.
append 'TRONK' to word_tab.
append 'TRONS' to word_tab.
append 'TROOP' to word_tab.
append 'TROOZ' to word_tab.
append 'TROPE' to word_tab.
append 'TROTH' to word_tab.
append 'TROTS' to word_tab.
append 'TROUT' to word_tab.
append 'TROVE' to word_tab.
append 'TROWS' to word_tab.
append 'TROYS' to word_tab.
append 'TRUCE' to word_tab.
append 'TRUCK' to word_tab.
append 'TRUED' to word_tab.
append 'TRUER' to word_tab.
append 'TRUES' to word_tab.
append 'TRUGO' to word_tab.
append 'TRUGS' to word_tab.
append 'TRULL' to word_tab.
append 'TRULY' to word_tab.
append 'TRUMP' to word_tab.
append 'TRUNK' to word_tab.
append 'TRUSS' to word_tab.
append 'TRUST' to word_tab.
append 'TRUTH' to word_tab.
append 'TRYER' to word_tab.
append 'TRYKE' to word_tab.
append 'TRYMA' to word_tab.
append 'TRYPS' to word_tab.
append 'TRYST' to word_tab.
append 'TSADE' to word_tab.
append 'TSADI' to word_tab.
append 'TSARS' to word_tab.
append 'TSKED' to word_tab.
append 'TSUBA' to word_tab.
append 'TSUBO' to word_tab.
append 'TUANS' to word_tab.
append 'TUART' to word_tab.
append 'TUATH' to word_tab.
append 'TUBAE' to word_tab.
append 'TUBAL' to word_tab.
append 'TUBAR' to word_tab.
append 'TUBAS' to word_tab.
append 'TUBBY' to word_tab.
append 'TUBED' to word_tab.
append 'TUBER' to word_tab.
append 'TUBES' to word_tab.
append 'TUCKS' to word_tab.
append 'TUFAS' to word_tab.
append 'TUFFE' to word_tab.
append 'TUFFS' to word_tab.
append 'TUFTS' to word_tab.
append 'TUFTY' to word_tab.
append 'TUGRA' to word_tab.
append 'TUILE' to word_tab.
append 'TUINA' to word_tab.
append 'TUISM' to word_tab.
append 'TUKTU' to word_tab.
append 'TULES' to word_tab.
append 'TULIP' to word_tab.
append 'TULLE' to word_tab.
append 'TULPA' to word_tab.
append 'TULSI' to word_tab.
append 'TUMID' to word_tab.
append 'TUMMY' to word_tab.
append 'TUMOR' to word_tab.
append 'TUMPS' to word_tab.
append 'TUMPY' to word_tab.
append 'TUNAS' to word_tab.
append 'TUNDS' to word_tab.
append 'TUNED' to word_tab.
append 'TUNER' to word_tab.
append 'TUNES' to word_tab.
append 'TUNGS' to word_tab.
append 'TUNIC' to word_tab.
append 'TUNNY' to word_tab.
append 'TUPEK' to word_tab.
append 'TUPIK' to word_tab.
append 'TUPLE' to word_tab.
append 'TUQUE' to word_tab.
append 'TURBO' to word_tab.
append 'TURDS' to word_tab.
append 'TURFS' to word_tab.
append 'TURFY' to word_tab.
append 'TURKS' to word_tab.
append 'TURME' to word_tab.
append 'TURMS' to word_tab.
append 'TURNS' to word_tab.
append 'TURNT' to word_tab.
append 'TURPS' to word_tab.
append 'TURRS' to word_tab.
append 'TUSHY' to word_tab.
append 'TUSKS' to word_tab.
append 'TUSKY' to word_tab.
append 'TUTEE' to word_tab.
append 'TUTOR' to word_tab.
append 'TUTTI' to word_tab.
append 'TUTTY' to word_tab.
append 'TUTUS' to word_tab.
append 'TUXES' to word_tab.
append 'TUYER' to word_tab.
append 'TWAES' to word_tab.
append 'TWAIN' to word_tab.
append 'TWALS' to word_tab.
append 'TWANG' to word_tab.
append 'TWANK' to word_tab.
append 'TWATS' to word_tab.
append 'TWAYS' to word_tab.
append 'TWEAK' to word_tab.
append 'TWEED' to word_tab.
append 'TWEEL' to word_tab.
append 'TWEEN' to word_tab.
append 'TWEEP' to word_tab.
append 'TWEER' to word_tab.
append 'TWEET' to word_tab.
append 'TWERK' to word_tab.
append 'TWERP' to word_tab.
append 'TWICE' to word_tab.
append 'TWIER' to word_tab.
append 'TWIGS' to word_tab.
append 'TWILL' to word_tab.
append 'TWILT' to word_tab.
append 'TWINE' to word_tab.
append 'TWINK' to word_tab.
append 'TWINS' to word_tab.
append 'TWINY' to word_tab.
append 'TWIRE' to word_tab.
append 'TWIRL' to word_tab.
append 'TWIRP' to word_tab.
append 'TWIST' to word_tab.
append 'TWITE' to word_tab.
append 'TWITS' to word_tab.
append 'TWIXT' to word_tab.
append 'TWOER' to word_tab.
append 'TWYER' to word_tab.
append 'TYEES' to word_tab.
append 'TYERS' to word_tab.
append 'TYING' to word_tab.
append 'TYIYN' to word_tab.
append 'TYKES' to word_tab.
append 'TYLER' to word_tab.
append 'TYMPS' to word_tab.
append 'TYNDE' to word_tab.
append 'TYNED' to word_tab.
append 'TYNES' to word_tab.
append 'TYPAL' to word_tab.
append 'TYPED' to word_tab.
append 'TYPES' to word_tab.
append 'TYPEY' to word_tab.
append 'TYPIC' to word_tab.
append 'TYPOS' to word_tab.
append 'TYPPS' to word_tab.
append 'TYPTO' to word_tab.
append 'TYRAN' to word_tab.
append 'TYRED' to word_tab.
append 'TYRES' to word_tab.
append 'TYROS' to word_tab.
append 'TYTHE' to word_tab.
append 'TZARS' to word_tab.
append 'UDALS' to word_tab.
append 'UDDER' to word_tab.
append 'UDONS' to word_tab.
append 'UGALI' to word_tab.
append 'UGGED' to word_tab.
append 'UHLAN' to word_tab.
append 'UHURU' to word_tab.
append 'UKASE' to word_tab.
append 'ULAMA' to word_tab.
append 'ULANS' to word_tab.
append 'ULCER' to word_tab.
append 'ULEMA' to word_tab.
append 'ULMIN' to word_tab.
append 'ULNAD' to word_tab.
append 'ULNAE' to word_tab.
append 'ULNAR' to word_tab.
append 'ULNAS' to word_tab.
append 'ULPAN' to word_tab.
append 'ULTRA' to word_tab.
append 'ULVAS' to word_tab.
append 'ULYIE' to word_tab.
append 'ULZIE' to word_tab.
append 'UMAMI' to word_tab.
append 'UMBEL' to word_tab.
append 'UMBER' to word_tab.
append 'UMBLE' to word_tab.
append 'UMBOS' to word_tab.
append 'UMBRA' to word_tab.
append 'UMBRE' to word_tab.
append 'UMIAC' to word_tab.
append 'UMIAK' to word_tab.
append 'UMIAQ' to word_tab.
append 'UMMAH' to word_tab.
append 'UMMAS' to word_tab.
append 'UMMED' to word_tab.
append 'UMPED' to word_tab.
append 'UMPHS' to word_tab.
append 'UMPIE' to word_tab.
append 'UMPTY' to word_tab.
append 'UMRAH' to word_tab.
append 'UMRAS' to word_tab.
append 'UNAIS' to word_tab.
append 'UNAPT' to word_tab.
append 'UNARM' to word_tab.
append 'UNARY' to word_tab.
append 'UNAUS' to word_tab.
append 'UNBAG' to word_tab.
append 'UNBAN' to word_tab.
append 'UNBAR' to word_tab.
append 'UNBED' to word_tab.
append 'UNBID' to word_tab.
append 'UNBOX' to word_tab.
append 'UNCAP' to word_tab.
append 'UNCES' to word_tab.
append 'UNCIA' to word_tab.
append 'UNCLE' to word_tab.
append 'UNCOS' to word_tab.
append 'UNCOY' to word_tab.
append 'UNCUS' to word_tab.
append 'UNCUT' to word_tab.
append 'UNDAM' to word_tab.
append 'UNDEE' to word_tab.
append 'UNDER' to word_tab.
append 'UNDID' to word_tab.
append 'UNDOS' to word_tab.
append 'UNDUE' to word_tab.
append 'UNDUG' to word_tab.
append 'UNETH' to word_tab.
append 'UNFED' to word_tab.
append 'UNFIT' to word_tab.
append 'UNFIX' to word_tab.
append 'UNGAG' to word_tab.
append 'UNGET' to word_tab.
append 'UNGOD' to word_tab.
append 'UNGOT' to word_tab.
append 'UNGUM' to word_tab.
append 'UNHAT' to word_tab.
append 'UNHIP' to word_tab.
append 'UNICA' to word_tab.
append 'UNIFY' to word_tab.
append 'UNION' to word_tab.
append 'UNITE' to word_tab.
append 'UNITS' to word_tab.
append 'UNITY' to word_tab.
append 'UNJAM' to word_tab.
append 'UNKED' to word_tab.
append 'UNKET' to word_tab.
append 'UNKID' to word_tab.
append 'UNLAW' to word_tab.
append 'UNLAY' to word_tab.
append 'UNLED' to word_tab.
append 'UNLET' to word_tab.
append 'UNLID' to word_tab.
append 'UNLIT' to word_tab.
append 'UNMAN' to word_tab.
append 'UNMET' to word_tab.
append 'UNMEW' to word_tab.
append 'UNMIX' to word_tab.
append 'UNPAY' to word_tab.
append 'UNPEG' to word_tab.
append 'UNPEN' to word_tab.
append 'UNPIN' to word_tab.
append 'UNRED' to word_tab.
append 'UNRID' to word_tab.
append 'UNRIG' to word_tab.
append 'UNRIP' to word_tab.
append 'UNSAW' to word_tab.
append 'UNSAY' to word_tab.
append 'UNSEE' to word_tab.
append 'UNSET' to word_tab.
append 'UNSEW' to word_tab.
append 'UNSEX' to word_tab.
append 'UNSOD' to word_tab.
append 'UNTAX' to word_tab.
append 'UNTIE' to word_tab.
append 'UNTIL' to word_tab.
append 'UNTIN' to word_tab.
append 'UNWED' to word_tab.
append 'UNWET' to word_tab.
append 'UNWIT' to word_tab.
append 'UNWON' to word_tab.
append 'UNZIP' to word_tab.
append 'UPBOW' to word_tab.
append 'UPBYE' to word_tab.
append 'UPDOS' to word_tab.
append 'UPDRY' to word_tab.
append 'UPEND' to word_tab.
append 'UPJET' to word_tab.
append 'UPLAY' to word_tab.
append 'UPLED' to word_tab.
append 'UPLIT' to word_tab.
append 'UPPED' to word_tab.
append 'UPPER' to word_tab.
append 'UPRAN' to word_tab.
append 'UPRUN' to word_tab.
append 'UPSEE' to word_tab.
append 'UPSET' to word_tab.
append 'UPSEY' to word_tab.
append 'UPTAK' to word_tab.
append 'UPTER' to word_tab.
append 'UPTIE' to word_tab.
append 'URAEI' to word_tab.
append 'URALI' to word_tab.
append 'URAOS' to word_tab.
append 'URARE' to word_tab.
append 'URARI' to word_tab.
append 'URASE' to word_tab.
append 'URATE' to word_tab.
append 'URBAN' to word_tab.
append 'URBEX' to word_tab.
append 'URBIA' to word_tab.
append 'URDEE' to word_tab.
append 'UREAL' to word_tab.
append 'UREAS' to word_tab.
append 'UREDO' to word_tab.
append 'UREIC' to word_tab.
append 'URENA' to word_tab.
append 'URENT' to word_tab.
append 'URGED' to word_tab.
append 'URGER' to word_tab.
append 'URGES' to word_tab.
append 'URIAL' to word_tab.
append 'URINE' to word_tab.
append 'URITE' to word_tab.
append 'URMAN' to word_tab.
append 'URNAL' to word_tab.
append 'URNED' to word_tab.
append 'URPED' to word_tab.
append 'URSAE' to word_tab.
append 'URSID' to word_tab.
append 'URSON' to word_tab.
append 'URUBU' to word_tab.
append 'URVAS' to word_tab.
append 'USAGE' to word_tab.
append 'USERS' to word_tab.
append 'USHER' to word_tab.
append 'USING' to word_tab.
append 'USNEA' to word_tab.
append 'USQUE' to word_tab.
append 'USUAL' to word_tab.
append 'USURE' to word_tab.
append 'USURP' to word_tab.
append 'USURY' to word_tab.
append 'UTERI' to word_tab.
append 'UTILE' to word_tab.
append 'UTTER' to word_tab.
append 'UVEAL' to word_tab.
append 'UVEAS' to word_tab.
append 'UVULA' to word_tab.
append 'VACUA' to word_tab.
append 'VADED' to word_tab.
append 'VADES' to word_tab.
append 'VAGAL' to word_tab.
append 'VAGUE' to word_tab.
append 'VAGUS' to word_tab.
append 'VAILS' to word_tab.
append 'VAIRE' to word_tab.
append 'VAIRS' to word_tab.
append 'VAIRY' to word_tab.
append 'VAKAS' to word_tab.
append 'VAKIL' to word_tab.
append 'VALES' to word_tab.
append 'VALET' to word_tab.
append 'VALID' to word_tab.
append 'VALIS' to word_tab.
append 'VALOR' to word_tab.
append 'VALSE' to word_tab.
append 'VALUE' to word_tab.
append 'VALVE' to word_tab.
append 'VAMPS' to word_tab.
append 'VAMPY' to word_tab.
append 'VANDA' to word_tab.
append 'VANED' to word_tab.
append 'VANES' to word_tab.
append 'VANGS' to word_tab.
append 'VANTS' to word_tab.
append 'VAPED' to word_tab.
append 'VAPER' to word_tab.
append 'VAPES' to word_tab.
append 'VAPID' to word_tab.
append 'VAPOR' to word_tab.
append 'VARAN' to word_tab.
append 'VARAS' to word_tab.
append 'VARDY' to word_tab.
append 'VAREC' to word_tab.
append 'VARES' to word_tab.
append 'VARIA' to word_tab.
append 'VARIX' to word_tab.
append 'VARNA' to word_tab.
append 'VARUS' to word_tab.
append 'VARVE' to word_tab.
append 'VASAL' to word_tab.
append 'VASES' to word_tab.
append 'VASTS' to word_tab.
append 'VASTY' to word_tab.
append 'VATIC' to word_tab.
append 'VATUS' to word_tab.
append 'VAUCH' to word_tab.
append 'VAULT' to word_tab.
append 'VAUNT' to word_tab.
append 'VAUTE' to word_tab.
append 'VAUTS' to word_tab.
append 'VAWTE' to word_tab.
append 'VAXES' to word_tab.
append 'VEALE' to word_tab.
append 'VEALS' to word_tab.
append 'VEALY' to word_tab.
append 'VEENA' to word_tab.
append 'VEEPS' to word_tab.
append 'VEERS' to word_tab.
append 'VEERY' to word_tab.
append 'VEGAN' to word_tab.
append 'VEGAS' to word_tab.
append 'VEGES' to word_tab.
append 'VEGIE' to word_tab.
append 'VEGOS' to word_tab.
append 'VEHME' to word_tab.
append 'VEILS' to word_tab.
append 'VEILY' to word_tab.
append 'VEINS' to word_tab.
append 'VEINY' to word_tab.
append 'VELAR' to word_tab.
append 'VELDS' to word_tab.
append 'VELDT' to word_tab.
append 'VELES' to word_tab.
append 'VELLS' to word_tab.
append 'VELUM' to word_tab.
append 'VENAE' to word_tab.
append 'VENAL' to word_tab.
append 'VENDS' to word_tab.
append 'VENEY' to word_tab.
append 'VENGE' to word_tab.
append 'VENIN' to word_tab.
append 'VENOM' to word_tab.
append 'VENTS' to word_tab.
append 'VENUE' to word_tab.
append 'VENUS' to word_tab.
append 'VERBS' to word_tab.
append 'VERGE' to word_tab.
append 'VERRA' to word_tab.
append 'VERRY' to word_tab.
append 'VERSE' to word_tab.
append 'VERSO' to word_tab.
append 'VERST' to word_tab.
append 'VERTS' to word_tab.
append 'VERTU' to word_tab.
append 'VERVE' to word_tab.
append 'VESPA' to word_tab.
append 'VESTA' to word_tab.
append 'VESTS' to word_tab.
append 'VETCH' to word_tab.
append 'VEXED' to word_tab.
append 'VEXER' to word_tab.
append 'VEXES' to word_tab.
append 'VEXIL' to word_tab.
append 'VEZIR' to word_tab.
append 'VIALS' to word_tab.
append 'VIAND' to word_tab.
append 'VIBES' to word_tab.
append 'VIBEX' to word_tab.
append 'VIBEY' to word_tab.
append 'VICAR' to word_tab.
append 'VICED' to word_tab.
append 'VICES' to word_tab.
append 'VICHY' to word_tab.
append 'VIDEO' to word_tab.
append 'VIERS' to word_tab.
append 'VIEWS' to word_tab.
append 'VIEWY' to word_tab.
append 'VIFDA' to word_tab.
append 'VIFFS' to word_tab.
append 'VIGAS' to word_tab.
append 'VIGIA' to word_tab.
append 'VIGIL' to word_tab.
append 'VIGOR' to word_tab.
append 'VILDE' to word_tab.
append 'VILER' to word_tab.
append 'VILLA' to word_tab.
append 'VILLI' to word_tab.
append 'VILLS' to word_tab.
append 'VIMEN' to word_tab.
append 'VINAL' to word_tab.
append 'VINAS' to word_tab.
append 'VINCA' to word_tab.
append 'VINED' to word_tab.
append 'VINER' to word_tab.
append 'VINES' to word_tab.
append 'VINEW' to word_tab.
append 'VINIC' to word_tab.
append 'VINOS' to word_tab.
append 'VINTS' to word_tab.
append 'VINYL' to word_tab.
append 'VIOLA' to word_tab.
append 'VIOLD' to word_tab.
append 'VIOLS' to word_tab.
append 'VIPER' to word_tab.
append 'VIRAL' to word_tab.
append 'VIRED' to word_tab.
append 'VIREO' to word_tab.
append 'VIRES' to word_tab.
append 'VIRGA' to word_tab.
append 'VIRGE' to word_tab.
append 'VIRID' to word_tab.
append 'VIRLS' to word_tab.
append 'VIRTU' to word_tab.
append 'VIRUS' to word_tab.
append 'VISAS' to word_tab.
append 'VISED' to word_tab.
append 'VISES' to word_tab.
append 'VISIE' to word_tab.
append 'VISIT' to word_tab.
append 'VISNE' to word_tab.
append 'VISON' to word_tab.
append 'VISOR' to word_tab.
append 'VISTA' to word_tab.
append 'VISTO' to word_tab.
append 'VITAE' to word_tab.
append 'VITAL' to word_tab.
append 'VITAS' to word_tab.
append 'VITEX' to word_tab.
append 'VITRO' to word_tab.
append 'VITTA' to word_tab.
append 'VIVAS' to word_tab.
append 'VIVAT' to word_tab.
append 'VIVDA' to word_tab.
append 'VIVER' to word_tab.
append 'VIVES' to word_tab.
append 'VIVID' to word_tab.
append 'VIXEN' to word_tab.
append 'VIZIR' to word_tab.
append 'VIZOR' to word_tab.
append 'VLEIS' to word_tab.
append 'VLIES' to word_tab.
append 'VLOGS' to word_tab.
append 'VOARS' to word_tab.
append 'VOCAB' to word_tab.
append 'VOCAL' to word_tab.
append 'VOCES' to word_tab.
append 'VODDY' to word_tab.
append 'VODKA' to word_tab.
append 'VODOU' to word_tab.
append 'VODUN' to word_tab.
append 'VOEMA' to word_tab.
append 'VOGIE' to word_tab.
append 'VOGUE' to word_tab.
append 'VOICE' to word_tab.
append 'VOIDS' to word_tab.
append 'VOILA' to word_tab.
append 'VOILE' to word_tab.
append 'VOIPS' to word_tab.
append 'VOLAE' to word_tab.
append 'VOLAR' to word_tab.
append 'VOLED' to word_tab.
append 'VOLES' to word_tab.
append 'VOLET' to word_tab.
append 'VOLKS' to word_tab.
append 'VOLTA' to word_tab.
append 'VOLTE' to word_tab.
append 'VOLTI' to word_tab.
append 'VOLTS' to word_tab.
append 'VOLVA' to word_tab.
append 'VOLVE' to word_tab.
append 'VOMER' to word_tab.
append 'VOMIT' to word_tab.
append 'VOTED' to word_tab.
append 'VOTER' to word_tab.
append 'VOTES' to word_tab.
append 'VOUCH' to word_tab.
append 'VOUGE' to word_tab.
append 'VOULU' to word_tab.
append 'VOWED' to word_tab.
append 'VOWEL' to word_tab.
append 'VOWER' to word_tab.
append 'VOXEL' to word_tab.
append 'VOZHD' to word_tab.
append 'VRAIC' to word_tab.
append 'VRILS' to word_tab.
append 'VROOM' to word_tab.
append 'VROUS' to word_tab.
append 'VROUW' to word_tab.
append 'VROWS' to word_tab.
append 'VUGGS' to word_tab.
append 'VUGGY' to word_tab.
append 'VUGHS' to word_tab.
append 'VUGHY' to word_tab.
append 'VULGO' to word_tab.
append 'VULNS' to word_tab.
append 'VULVA' to word_tab.
append 'VUTTY' to word_tab.
append 'VYING' to word_tab.
append 'WAACS' to word_tab.
append 'WACKE' to word_tab.
append 'WACKO' to word_tab.
append 'WACKS' to word_tab.
append 'WACKY' to word_tab.
append 'WADDS' to word_tab.
append 'WADDY' to word_tab.
append 'WADED' to word_tab.
append 'WADER' to word_tab.
append 'WADES' to word_tab.
append 'WADGE' to word_tab.
append 'WADIS' to word_tab.
append 'WADTS' to word_tab.
append 'WAFER' to word_tab.
append 'WAFFS' to word_tab.
append 'WAFTS' to word_tab.
append 'WAGED' to word_tab.
append 'WAGER' to word_tab.
append 'WAGES' to word_tab.
append 'WAGGA' to word_tab.
append 'WAGON' to word_tab.
append 'WAGYU' to word_tab.
append 'WAHOO' to word_tab.
append 'WAIDE' to word_tab.
append 'WAIFS' to word_tab.
append 'WAIFT' to word_tab.
append 'WAILS' to word_tab.
append 'WAINS' to word_tab.
append 'WAIRS' to word_tab.
append 'WAIST' to word_tab.
append 'WAITE' to word_tab.
append 'WAITS' to word_tab.
append 'WAIVE' to word_tab.
append 'WAKAS' to word_tab.
append 'WAKED' to word_tab.
append 'WAKEN' to word_tab.
append 'WAKER' to word_tab.
append 'WAKES' to word_tab.
append 'WAKFS' to word_tab.
append 'WALDO' to word_tab.
append 'WALDS' to word_tab.
append 'WALED' to word_tab.
append 'WALER' to word_tab.
append 'WALES' to word_tab.
append 'WALIE' to word_tab.
append 'WALIS' to word_tab.
append 'WALKS' to word_tab.
append 'WALLA' to word_tab.
append 'WALLS' to word_tab.
append 'WALLY' to word_tab.
append 'WALTY' to word_tab.
append 'WALTZ' to word_tab.
append 'WAMED' to word_tab.
append 'WAMES' to word_tab.
append 'WAMUS' to word_tab.
append 'WANDS' to word_tab.
append 'WANED' to word_tab.
append 'WANES' to word_tab.
append 'WANEY' to word_tab.
append 'WANGS' to word_tab.
append 'WANKS' to word_tab.
append 'WANKY' to word_tab.
append 'WANLE' to word_tab.
append 'WANLY' to word_tab.
append 'WANNA' to word_tab.
append 'WANTS' to word_tab.
append 'WANTY' to word_tab.
append 'WANZE' to word_tab.
append 'WAQFS' to word_tab.
append 'WARBS' to word_tab.
append 'WARBY' to word_tab.
append 'WARDS' to word_tab.
append 'WARED' to word_tab.
append 'WARES' to word_tab.
append 'WAREZ' to word_tab.
append 'WARKS' to word_tab.
append 'WARMS' to word_tab.
append 'WARNS' to word_tab.
append 'WARPS' to word_tab.
append 'WARRE' to word_tab.
append 'WARST' to word_tab.
append 'WARTS' to word_tab.
append 'WARTY' to word_tab.
append 'WASES' to word_tab.
append 'WASHY' to word_tab.
append 'WASMS' to word_tab.
append 'WASPS' to word_tab.
append 'WASPY' to word_tab.
append 'WASTE' to word_tab.
append 'WASTS' to word_tab.
append 'WATAP' to word_tab.
append 'WATCH' to word_tab.
append 'WATER' to word_tab.
append 'WATTS' to word_tab.
append 'WAUFF' to word_tab.
append 'WAUGH' to word_tab.
append 'WAUKS' to word_tab.
append 'WAULK' to word_tab.
append 'WAULS' to word_tab.
append 'WAURS' to word_tab.
append 'WAVED' to word_tab.
append 'WAVER' to word_tab.
append 'WAVES' to word_tab.
append 'WAVEY' to word_tab.
append 'WAWAS' to word_tab.
append 'WAWES' to word_tab.
append 'WAWLS' to word_tab.
append 'WAXED' to word_tab.
append 'WAXEN' to word_tab.
append 'WAXER' to word_tab.
append 'WAXES' to word_tab.
append 'WAYED' to word_tab.
append 'WAZIR' to word_tab.
append 'WAZOO' to word_tab.
append 'WEALD' to word_tab.
append 'WEALS' to word_tab.
append 'WEAMB' to word_tab.
append 'WEANS' to word_tab.
append 'WEARS' to word_tab.
append 'WEARY' to word_tab.
append 'WEAVE' to word_tab.
append 'WEBBY' to word_tab.
append 'WEBER' to word_tab.
append 'WECHT' to word_tab.
append 'WEDEL' to word_tab.
append 'WEDGE' to word_tab.
append 'WEDGY' to word_tab.
append 'WEEDS' to word_tab.
append 'WEEDY' to word_tab.
append 'WEEKE' to word_tab.
append 'WEEKS' to word_tab.
append 'WEELS' to word_tab.
append 'WEEMS' to word_tab.
append 'WEENS' to word_tab.
append 'WEENY' to word_tab.
append 'WEEPS' to word_tab.
append 'WEEPY' to word_tab.
append 'WEEST' to word_tab.
append 'WEETE' to word_tab.
append 'WEETS' to word_tab.
append 'WEFTE' to word_tab.
append 'WEFTS' to word_tab.
append 'WEIDS' to word_tab.
append 'WEIGH' to word_tab.
append 'WEILS' to word_tab.
append 'WEIRD' to word_tab.
append 'WEIRS' to word_tab.
append 'WEISE' to word_tab.
append 'WEIZE' to word_tab.
append 'WEKAS' to word_tab.
append 'WELCH' to word_tab.
append 'WELDS' to word_tab.
append 'WELKE' to word_tab.
append 'WELKS' to word_tab.
append 'WELKT' to word_tab.
append 'WELLS' to word_tab.
append 'WELLY' to word_tab.
append 'WELSH' to word_tab.
append 'WELTS' to word_tab.
append 'WEMBS' to word_tab.
append 'WENCH' to word_tab.
append 'WENDS' to word_tab.
append 'WENGE' to word_tab.
append 'WENNY' to word_tab.
append 'WENTS' to word_tab.
append 'WEROS' to word_tab.
append 'WERSH' to word_tab.
append 'WESTS' to word_tab.
append 'WETAS' to word_tab.
append 'WETLY' to word_tab.
append 'WEXED' to word_tab.
append 'WEXES' to word_tab.
append 'WHACK' to word_tab.
append 'WHALE' to word_tab.
append 'WHAMO' to word_tab.
append 'WHAMS' to word_tab.
append 'WHANG' to word_tab.
append 'WHAPS' to word_tab.
append 'WHARE' to word_tab.
append 'WHARF' to word_tab.
append 'WHATA' to word_tab.
append 'WHATS' to word_tab.
append 'WHAUP' to word_tab.
append 'WHAUR' to word_tab.
append 'WHEAL' to word_tab.
append 'WHEAR' to word_tab.
append 'WHEAT' to word_tab.
append 'WHEEL' to word_tab.
append 'WHEEN' to word_tab.
append 'WHEEP' to word_tab.
append 'WHEFT' to word_tab.
append 'WHELK' to word_tab.
append 'WHELM' to word_tab.
append 'WHELP' to word_tab.
append 'WHENS' to word_tab.
append 'WHERE' to word_tab.
append 'WHETS' to word_tab.
append 'WHEWS' to word_tab.
append 'WHEYS' to word_tab.
append 'WHICH' to word_tab.
append 'WHIDS' to word_tab.
append 'WHIFF' to word_tab.
append 'WHIFT' to word_tab.
append 'WHIGS' to word_tab.
append 'WHILE' to word_tab.
append 'WHILK' to word_tab.
append 'WHIMS' to word_tab.
append 'WHINE' to word_tab.
append 'WHINS' to word_tab.
append 'WHINY' to word_tab.
append 'WHIOS' to word_tab.
append 'WHIPS' to word_tab.
append 'WHIPT' to word_tab.
append 'WHIRL' to word_tab.
append 'WHIRR' to word_tab.
append 'WHIRS' to word_tab.
append 'WHISH' to word_tab.
append 'WHISK' to word_tab.
append 'WHISS' to word_tab.
append 'WHIST' to word_tab.
append 'WHITE' to word_tab.
append 'WHITS' to word_tab.
append 'WHITY' to word_tab.
append 'WHIZZ' to word_tab.
append 'WHOLE' to word_tab.
append 'WHOMP' to word_tab.
append 'WHOOF' to word_tab.
append 'WHOOP' to word_tab.
append 'WHOOT' to word_tab.
append 'WHOPS' to word_tab.
append 'WHORE' to word_tab.
append 'WHORL' to word_tab.
append 'WHORT' to word_tab.
append 'WHOSE' to word_tab.
append 'WHOSO' to word_tab.
append 'WHOWS' to word_tab.
append 'WHUMP' to word_tab.
append 'WHUPS' to word_tab.
append 'WHYDA' to word_tab.
append 'WICCA' to word_tab.
append 'WICKS' to word_tab.
append 'WICKY' to word_tab.
append 'WIDDY' to word_tab.
append 'WIDEN' to word_tab.
append 'WIDER' to word_tab.
append 'WIDES' to word_tab.
append 'WIDOW' to word_tab.
append 'WIDTH' to word_tab.
append 'WIELD' to word_tab.
append 'WIELS' to word_tab.
append 'WIFED' to word_tab.
append 'WIFES' to word_tab.
append 'WIFEY' to word_tab.
append 'WIFIE' to word_tab.
append 'WIFTY' to word_tab.
append 'WIGAN' to word_tab.
append 'WIGGY' to word_tab.
append 'WIGHT' to word_tab.
append 'WIKIS' to word_tab.
append 'WILCO' to word_tab.
append 'WILDS' to word_tab.
append 'WILED' to word_tab.
append 'WILES' to word_tab.
append 'WILGA' to word_tab.
append 'WILIS' to word_tab.
append 'WILJA' to word_tab.
append 'WILLS' to word_tab.
append 'WILLY' to word_tab.
append 'WILTS' to word_tab.
append 'WIMPS' to word_tab.
append 'WIMPY' to word_tab.
append 'WINCE' to word_tab.
append 'WINCH' to word_tab.
append 'WINDS' to word_tab.
append 'WINDY' to word_tab.
append 'WINED' to word_tab.
append 'WINES' to word_tab.
append 'WINEY' to word_tab.
append 'WINGE' to word_tab.
append 'WINGS' to word_tab.
append 'WINGY' to word_tab.
append 'WINKS' to word_tab.
append 'WINNA' to word_tab.
append 'WINNS' to word_tab.
append 'WINOS' to word_tab.
append 'WINZE' to word_tab.
append 'WIPED' to word_tab.
append 'WIPER' to word_tab.
append 'WIPES' to word_tab.
append 'WIRED' to word_tab.
append 'WIRER' to word_tab.
append 'WIRES' to word_tab.
append 'WIRRA' to word_tab.
append 'WISED' to word_tab.
append 'WISER' to word_tab.
append 'WISES' to word_tab.
append 'WISHA' to word_tab.
append 'WISHT' to word_tab.
append 'WISPS' to word_tab.
append 'WISPY' to word_tab.
append 'WISTS' to word_tab.
append 'WITAN' to word_tab.
append 'WITCH' to word_tab.
append 'WITED' to word_tab.
append 'WITES' to word_tab.
append 'WITHE' to word_tab.
append 'WITHS' to word_tab.
append 'WITHY' to word_tab.
append 'WITTY' to word_tab.
append 'WIVED' to word_tab.
append 'WIVER' to word_tab.
append 'WIVES' to word_tab.
append 'WIZEN' to word_tab.
append 'WIZES' to word_tab.
append 'WOADS' to word_tab.
append 'WOALD' to word_tab.
append 'WOCKS' to word_tab.
append 'WODGE' to word_tab.
append 'WOFUL' to word_tab.
append 'WOJUS' to word_tab.
append 'WOKEN' to word_tab.
append 'WOKER' to word_tab.
append 'WOKKA' to word_tab.
append 'WOLDS' to word_tab.
append 'WOLFS' to word_tab.
append 'WOLLY' to word_tab.
append 'WOLVE' to word_tab.
append 'WOMAN' to word_tab.
append 'WOMBS' to word_tab.
append 'WOMBY' to word_tab.
append 'WOMEN' to word_tab.
append 'WOMYN' to word_tab.
append 'WONGA' to word_tab.
append 'WONGI' to word_tab.
append 'WONKS' to word_tab.
append 'WONKY' to word_tab.
append 'WONTS' to word_tab.
append 'WOODS' to word_tab.
append 'WOODY' to word_tab.
append 'WOOED' to word_tab.
append 'WOOER' to word_tab.
append 'WOOFS' to word_tab.
append 'WOOFY' to word_tab.
append 'WOOLD' to word_tab.
append 'WOOLS' to word_tab.
append 'WOOLY' to word_tab.
append 'WOONS' to word_tab.
append 'WOOPS' to word_tab.
append 'WOOPY' to word_tab.
append 'WOOSE' to word_tab.
append 'WOOSH' to word_tab.
append 'WOOTZ' to word_tab.
append 'WOOZY' to word_tab.
append 'WORDS' to word_tab.
append 'WORDY' to word_tab.
append 'WORKS' to word_tab.
append 'WORLD' to word_tab.
append 'WORMS' to word_tab.
append 'WORMY' to word_tab.
append 'WORRY' to word_tab.
append 'WORSE' to word_tab.
append 'WORST' to word_tab.
append 'WORTH' to word_tab.
append 'WORTS' to word_tab.
append 'WOULD' to word_tab.
append 'WOUND' to word_tab.
append 'WOVEN' to word_tab.
append 'WOWED' to word_tab.
append 'WOWEE' to word_tab.
append 'WOXEN' to word_tab.
append 'WRACK' to word_tab.
append 'WRANG' to word_tab.
append 'WRAPS' to word_tab.
append 'WRAPT' to word_tab.
append 'WRAST' to word_tab.
append 'WRATE' to word_tab.
append 'WRATH' to word_tab.
append 'WRAWL' to word_tab.
append 'WREAK' to word_tab.
append 'WRECK' to word_tab.
append 'WRENS' to word_tab.
append 'WREST' to word_tab.
append 'WRICK' to word_tab.
append 'WRIED' to word_tab.
append 'WRIER' to word_tab.
append 'WRIES' to word_tab.
append 'WRING' to word_tab.
append 'WRIST' to word_tab.
append 'WRITE' to word_tab.
append 'WRITS' to word_tab.
append 'WROKE' to word_tab.
append 'WRONG' to word_tab.
append 'WROOT' to word_tab.
append 'WROTE' to word_tab.
append 'WROTH' to word_tab.
append 'WRUNG' to word_tab.
append 'WRYER' to word_tab.
append 'WRYLY' to word_tab.
append 'WUDDY' to word_tab.
append 'WUDUS' to word_tab.
append 'WULLS' to word_tab.
append 'WURST' to word_tab.
append 'WUSES' to word_tab.
append 'WUSHU' to word_tab.
append 'WUSSY' to word_tab.
append 'WUXIA' to word_tab.
append 'WYLED' to word_tab.
append 'WYLES' to word_tab.
append 'WYNDS' to word_tab.
append 'WYNNS' to word_tab.
append 'WYTED' to word_tab.
append 'WYTES' to word_tab.
append 'XEBEC' to word_tab.
append 'XENIA' to word_tab.
append 'XENIC' to word_tab.
append 'XENON' to word_tab.
append 'XERIC' to word_tab.
append 'XEROX' to word_tab.
append 'XERUS' to word_tab.
append 'XOANA' to word_tab.
append 'XRAYS' to word_tab.
append 'XYLAN' to word_tab.
append 'XYLEM' to word_tab.
append 'XYLIC' to word_tab.
append 'XYLOL' to word_tab.
append 'XYLYL' to word_tab.
append 'XYSTI' to word_tab.
append 'XYSTS' to word_tab.
append 'YAARS' to word_tab.
append 'YABAS' to word_tab.
append 'YABBA' to word_tab.
append 'YABBY' to word_tab.
append 'YACCA' to word_tab.
append 'YACHT' to word_tab.
append 'YACKA' to word_tab.
append 'YACKS' to word_tab.
append 'YAFFS' to word_tab.
append 'YAGER' to word_tab.
append 'YAGES' to word_tab.
append 'YAGIS' to word_tab.
append 'YAHOO' to word_tab.
append 'YAIRD' to word_tab.
append 'YAKKA' to word_tab.
append 'YAKOW' to word_tab.
append 'YALES' to word_tab.
append 'YAMEN' to word_tab.
append 'YAMPY' to word_tab.
append 'YAMUN' to word_tab.
append 'YANGS' to word_tab.
append 'YANKS' to word_tab.
append 'YAPOK' to word_tab.
append 'YAPON' to word_tab.
append 'YAPPS' to word_tab.
append 'YAPPY' to word_tab.
append 'YARAK' to word_tab.
append 'YARCO' to word_tab.
append 'YARDS' to word_tab.
append 'YARER' to word_tab.
append 'YARFA' to word_tab.
append 'YARKS' to word_tab.
append 'YARNS' to word_tab.
append 'YARRS' to word_tab.
append 'YARTA' to word_tab.
append 'YARTO' to word_tab.
append 'YATES' to word_tab.
append 'YAUDS' to word_tab.
append 'YAULD' to word_tab.
append 'YAUPS' to word_tab.
append 'YAWED' to word_tab.
append 'YAWEY' to word_tab.
append 'YAWLS' to word_tab.
append 'YAWNS' to word_tab.
append 'YAWNY' to word_tab.
append 'YAWPS' to word_tab.
append 'YBORE' to word_tab.
append 'YCLAD' to word_tab.
append 'YCLED' to word_tab.
append 'YCOND' to word_tab.
append 'YDRAD' to word_tab.
append 'YDRED' to word_tab.
append 'YEADS' to word_tab.
append 'YEAHS' to word_tab.
append 'YEALM' to word_tab.
append 'YEANS' to word_tab.
append 'YEARD' to word_tab.
append 'YEARN' to word_tab.
append 'YEARS' to word_tab.
append 'YEAST' to word_tab.
append 'YECCH' to word_tab.
append 'YECHS' to word_tab.
append 'YECHY' to word_tab.
append 'YEDES' to word_tab.
append 'YEEDS' to word_tab.
append 'YEESH' to word_tab.
append 'YEGGS' to word_tab.
append 'YELKS' to word_tab.
append 'YELLS' to word_tab.
append 'YELMS' to word_tab.
append 'YELPS' to word_tab.
append 'YELTS' to word_tab.
append 'YENTA' to word_tab.
append 'YENTE' to word_tab.
append 'YERBA' to word_tab.
append 'YERDS' to word_tab.
append 'YERKS' to word_tab.
append 'YESES' to word_tab.
append 'YESKS' to word_tab.
append 'YESTS' to word_tab.
append 'YESTY' to word_tab.
append 'YETIS' to word_tab.
append 'YETTS' to word_tab.
append 'YEUKS' to word_tab.
append 'YEUKY' to word_tab.
append 'YEVEN' to word_tab.
append 'YEVES' to word_tab.
append 'YEWEN' to word_tab.
append 'YEXED' to word_tab.
append 'YEXES' to word_tab.
append 'YFERE' to word_tab.
append 'YIELD' to word_tab.
append 'YIKED' to word_tab.
append 'YIKES' to word_tab.
append 'YILLS' to word_tab.
append 'YINCE' to word_tab.
append 'YIPES' to word_tab.
append 'YIPPY' to word_tab.
append 'YIRDS' to word_tab.
append 'YIRKS' to word_tab.
append 'YIRRS' to word_tab.
append 'YIRTH' to word_tab.
append 'YITES' to word_tab.
append 'YITIE' to word_tab.
append 'YLEMS' to word_tab.
append 'YLIKE' to word_tab.
append 'YLKES' to word_tab.
append 'YMOLT' to word_tab.
append 'YMPES' to word_tab.
append 'YOBBO' to word_tab.
append 'YOBBY' to word_tab.
append 'YOCKS' to word_tab.
append 'YODEL' to word_tab.
append 'YODHS' to word_tab.
append 'YODLE' to word_tab.
append 'YOGAS' to word_tab.
append 'YOGEE' to word_tab.
append 'YOGHS' to word_tab.
append 'YOGIC' to word_tab.
append 'YOGIN' to word_tab.
append 'YOGIS' to word_tab.
append 'YOICK' to word_tab.
append 'YOJAN' to word_tab.
append 'YOKED' to word_tab.
append 'YOKEL' to word_tab.
append 'YOKER' to word_tab.
append 'YOKES' to word_tab.
append 'YOKUL' to word_tab.
append 'YOLKS' to word_tab.
append 'YOLKY' to word_tab.
append 'YOMIM' to word_tab.
append 'YOMPS' to word_tab.
append 'YONIC' to word_tab.
append 'YONIS' to word_tab.
append 'YONKS' to word_tab.
append 'YOOFS' to word_tab.
append 'YOOPS' to word_tab.
append 'YORES' to word_tab.
append 'YORKS' to word_tab.
append 'YORPS' to word_tab.
append 'YOUKS' to word_tab.
append 'YOUNG' to word_tab.
append 'YOURN' to word_tab.
append 'YOURS' to word_tab.
append 'YOURT' to word_tab.
append 'YOUSE' to word_tab.
append 'YOUTH' to word_tab.
append 'YOWED' to word_tab.
append 'YOWES' to word_tab.
append 'YOWIE' to word_tab.
append 'YOWLS' to word_tab.
append 'YOWZA' to word_tab.
append 'YRAPT' to word_tab.
append 'YRENT' to word_tab.
append 'YRIVD' to word_tab.
append 'YRNEH' to word_tab.
append 'YSAME' to word_tab.
append 'YTOST' to word_tab.
append 'YUANS' to word_tab.
append 'YUCAS' to word_tab.
append 'YUCCA' to word_tab.
append 'YUCCH' to word_tab.
append 'YUCKO' to word_tab.
append 'YUCKS' to word_tab.
append 'YUCKY' to word_tab.
append 'YUFTS' to word_tab.
append 'YUGAS' to word_tab.
append 'YUKED' to word_tab.
append 'YUKES' to word_tab.
append 'YUKKY' to word_tab.
append 'YUKOS' to word_tab.
append 'YULAN' to word_tab.
append 'YULES' to word_tab.
append 'YUMMO' to word_tab.
append 'YUMMY' to word_tab.
append 'YUMPS' to word_tab.
append 'YUPON' to word_tab.
append 'YUPPY' to word_tab.
append 'YURTA' to word_tab.
append 'YURTS' to word_tab.
append 'YUZUS' to word_tab.
append 'ZABRA' to word_tab.
append 'ZACKS' to word_tab.
append 'ZAIDA' to word_tab.
append 'ZAIDY' to word_tab.
append 'ZAIRE' to word_tab.
append 'ZAKAT' to word_tab.
append 'ZAMAN' to word_tab.
append 'ZAMIA' to word_tab.
append 'ZANJA' to word_tab.
append 'ZANTE' to word_tab.
append 'ZANZA' to word_tab.
append 'ZANZE' to word_tab.
append 'ZAPPY' to word_tab.
append 'ZARFS' to word_tab.
append 'ZARIS' to word_tab.
append 'ZATIS' to word_tab.
append 'ZAXES' to word_tab.
append 'ZAYIN' to word_tab.
append 'ZAZEN' to word_tab.
append 'ZEALS' to word_tab.
append 'ZEBEC' to word_tab.
append 'ZEBRA' to word_tab.
append 'ZEBUB' to word_tab.
append 'ZEBUS' to word_tab.
append 'ZEDAS' to word_tab.
append 'ZEINS' to word_tab.
append 'ZENDO' to word_tab.
append 'ZERDA' to word_tab.
append 'ZERKS' to word_tab.
append 'ZEROS' to word_tab.
append 'ZESTS' to word_tab.
append 'ZESTY' to word_tab.
append 'ZETAS' to word_tab.
append 'ZEXES' to word_tab.
append 'ZEZES' to word_tab.
append 'ZHOMO' to word_tab.
append 'ZIBET' to word_tab.
append 'ZIFFS' to word_tab.
append 'ZIGAN' to word_tab.
append 'ZILAS' to word_tab.
append 'ZILCH' to word_tab.
append 'ZILLA' to word_tab.
append 'ZILLS' to word_tab.
append 'ZIMBI' to word_tab.
append 'ZIMBS' to word_tab.
append 'ZINCO' to word_tab.
append 'ZINCS' to word_tab.
append 'ZINCY' to word_tab.
append 'ZINEB' to word_tab.
append 'ZINES' to word_tab.
append 'ZINGS' to word_tab.
append 'ZINGY' to word_tab.
append 'ZINKE' to word_tab.
append 'ZINKY' to word_tab.
append 'ZIPPO' to word_tab.
append 'ZIPPY' to word_tab.
append 'ZIRAM' to word_tab.
append 'ZITIS' to word_tab.
append 'ZIZEL' to word_tab.
append 'ZIZIT' to word_tab.
append 'ZLOTE' to word_tab.
append 'ZLOTY' to word_tab.
append 'ZOAEA' to word_tab.
append 'ZOBOS' to word_tab.
append 'ZOBUS' to word_tab.
append 'ZOCCO' to word_tab.
append 'ZOEAE' to word_tab.
append 'ZOEAL' to word_tab.
append 'ZOEAS' to word_tab.
append 'ZOISM' to word_tab.
append 'ZOIST' to word_tab.
append 'ZOMBI' to word_tab.
append 'ZONAE' to word_tab.
append 'ZONAL' to word_tab.
append 'ZONDA' to word_tab.
append 'ZONED' to word_tab.
append 'ZONER' to word_tab.
append 'ZONES' to word_tab.
append 'ZONKS' to word_tab.
append 'ZOOEA' to word_tab.
append 'ZOOEY' to word_tab.
append 'ZOOID' to word_tab.
append 'ZOOKS' to word_tab.
append 'ZOOMS' to word_tab.
append 'ZOONS' to word_tab.
append 'ZOOTY' to word_tab.
append 'ZOPPA' to word_tab.
append 'ZOPPO' to word_tab.
append 'ZORIL' to word_tab.
append 'ZORIS' to word_tab.
append 'ZORRO' to word_tab.
append 'ZOUKS' to word_tab.
append 'ZOWEE' to word_tab.
append 'ZOWIE' to word_tab.
append 'ZULUS' to word_tab.
append 'ZUPAN' to word_tab.
append 'ZUPAS' to word_tab.
append 'ZUPPA' to word_tab.
append 'ZURFS' to word_tab.
append 'ZUZIM' to word_tab.
append 'ZYGAL' to word_tab.
append 'ZYGON' to word_tab.
append 'ZYMES' to word_tab.
append 'ZYMIC' to word_tab.
endmethod.
endclass.
| [
13116,
1976,
4775,
293,
13,
198,
198,
9,
198,
9,
6434,
25,
25930,
390,
10299,
313,
198,
9,
198,
9,
10628,
25,
513,
13,
15,
198,
9,
198,
9,
1675,
1833,
1430,
5202,
11,
1061,
2446,
406,
5097,
3784,
5673,
1268,
22446,
198,
9,
770,
2446,
318,
24399,
379,
262,
33303,
12,
19238,
12,
46506,
2849,
1785,
13,
198,
9,
198,
198,
9,
10097,
26171,
198,
4871,
300,
565,
62,
4775,
293,
6770,
13,
628,
220,
1171,
2665,
13,
628,
220,
220,
220,
1398,
12,
7890,
25,
198,
220,
220,
220,
220,
220,
5770,
62,
14171,
220,
220,
220,
220,
220,
220,
2099,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
3850,
16,
220,
220,
220,
220,
220,
220,
220,
2099,
1149,
2075,
11,
198,
220,
220,
220,
220,
220,
3850,
17,
220,
220,
220,
220,
220,
220,
220,
2099,
1149,
2075,
11,
198,
220,
220,
220,
220,
220,
3850,
18,
220,
220,
220,
220,
220,
220,
220,
2099,
1149,
2075,
11,
198,
220,
220,
220,
220,
220,
3850,
19,
220,
220,
220,
220,
220,
220,
220,
2099,
1149,
2075,
11,
198,
220,
220,
220,
220,
220,
3850,
20,
220,
220,
220,
220,
220,
220,
220,
2099,
1149,
2075,
11,
198,
220,
220,
220,
220,
220,
2042,
62,
15653,
220,
2099,
1149,
2075,
11,
198,
220,
220,
220,
220,
220,
10912,
62,
15653,
2099,
1149,
2075,
13,
628,
220,
220,
220,
1398,
12,
24396,
82,
25,
198,
220,
220,
220,
220,
220,
4781,
62,
13424,
62,
15653,
13,
628,
220,
220,
220,
5050,
25,
198,
220,
220,
220,
220,
220,
1388,
13,
628,
198,
220,
2839,
2665,
13,
628,
220,
220,
220,
3858,
25,
628,
220,
220,
220,
220,
220,
1259,
62,
4775,
62,
26675,
2099,
279,
4129,
718,
875,
320,
874,
352,
11,
628,
220,
220,
220,
220,
220,
2221,
286,
1259,
62,
31409,
62,
4775,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1573,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
1149,
20,
11,
198,
220,
220,
220,
220,
220,
220,
220,
48617,
62,
9127,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
1312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
44278,
415,
62,
9127,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
1312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
4909,
62,
439,
62,
43745,
62,
15653,
2099,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1573,
62,
26675,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
1259,
62,
4775,
62,
26675,
11,
198,
220,
220,
220,
220,
220,
886,
286,
1259,
62,
31409,
62,
4775,
11,
628,
220,
220,
220,
220,
220,
1259,
62,
31409,
62,
4775,
62,
8658,
2099,
3210,
3084,
286,
1259,
62,
31409,
62,
4775,
351,
4277,
1994,
11,
628,
220,
220,
220,
220,
220,
1259,
62,
43762,
62,
35324,
2099,
279,
4129,
718,
875,
320,
874,
604,
11,
628,
220,
220,
220,
220,
220,
2221,
286,
1259,
62,
9291,
62,
35324,
11,
198,
220,
220,
220,
220,
220,
220,
220,
717,
62,
9291,
220,
2099,
1259,
62,
43762,
62,
35324,
11,
198,
220,
220,
220,
220,
220,
220,
220,
584,
62,
15653,
2099,
1259,
62,
43762,
62,
35324,
11,
198,
220,
220,
220,
220,
220,
886,
286,
1259,
62,
9291,
62,
35324,
11,
628,
220,
220,
220,
220,
220,
1259,
62,
9291,
62,
35324,
62,
8658,
2099,
3210,
3084,
286,
1259,
62,
9291,
62,
35324,
351,
4277,
1994,
11,
628,
220,
220,
220,
220,
220,
2221,
286,
1259,
62,
25344,
11,
198,
220,
220,
220,
220,
220,
220,
220,
3128,
2099,
288,
1381,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1573,
2099,
1149,
20,
11,
198,
220,
220,
220,
220,
220,
886,
286,
1259,
62,
25344,
11,
628,
220,
220,
220,
220,
220,
1259,
62,
25344,
62,
8658,
2099,
23243,
3084,
286,
1259,
62,
25344,
351,
3748,
1994,
3128,
13,
628,
198,
220,
220,
220,
1366,
25,
198,
220,
220,
220,
220,
220,
1573,
62,
8658,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
4731,
62,
11487,
11,
198,
220,
220,
220,
220,
220,
3850,
62,
35324,
62,
8658,
2099,
1259,
62,
9291,
62,
35324,
62,
8658,
11,
198,
220,
220,
220,
220,
220,
5770,
62,
8658,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
1259,
62,
25344,
62,
8658,
11,
198,
220,
220,
220,
220,
220,
40364,
62,
8841,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
4731,
11,
198,
220,
220,
220,
220,
220,
14451,
62,
4775,
62,
8658,
220,
220,
220,
220,
2099,
1259,
62,
31409,
62,
4775,
62,
8658,
13,
628,
220,
220,
220,
5050,
25,
198,
220,
220,
220,
220,
220,
1382,
62,
4775,
62,
8658,
11,
220,
220,
220,
220,
366,
8053,
286,
642,
12,
9291,
2456,
13,
8090,
25,
3740,
1378,
2503,
12,
6359,
12,
38942,
10672,
13,
14192,
3841,
13,
15532,
14,
93,
15418,
1071,
14,
82,
22296,
12,
10879,
13,
14116,
198,
220,
220,
220,
220,
220,
1382,
62,
4775,
62,
8658,
62,
85,
17,
11,
220,
366,
8053,
286,
642,
12,
9291,
2456,
13,
8090,
25,
14006,
1446,
25619,
903,
23087,
4280,
33448,
198,
220,
220,
220,
220,
220,
1382,
62,
9291,
62,
35324,
62,
8658,
11,
366,
45708,
31902,
329,
3594,
28261,
23087,
198,
220,
220,
220,
220,
220,
1382,
62,
25344,
62,
8658,
11,
198,
220,
220,
220,
220,
220,
1382,
62,
260,
25636,
62,
8841,
11,
198,
220,
220,
220,
220,
220,
651,
62,
31409,
62,
10879,
11,
198,
220,
220,
220,
220,
220,
3359,
62,
22915,
62,
282,
85,
11,
628,
220,
220,
220,
220,
220,
651,
62,
85,
322,
417,
62,
9127,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33332,
1312,
62,
4775,
2099,
1149,
20,
8024,
1988,
7,
81,
62,
9127,
8,
2099,
1312,
11,
198,
220,
220,
220,
220,
220,
4909,
62,
439,
62,
43745,
62
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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FINAL
CREATE PUBLIC .
PUBLIC SECTION.
INTERFACES zif_adtcon.
"! <p class="shorttext synchronized" lang ="en"></p>
"!
"! @parameter out | <p class="shorttext synchronized" lang="en"></p>
CLASS-METHODS wrap
IMPORTING
out TYPE REF TO if_oo_adt_intrnl_classrun
RETURNING
VALUE(result) TYPE REF TO zif_adtcon.
METHODS constructor
IMPORTING
out TYPE REF TO if_oo_adt_intrnl_classrun.
PROTECTED SECTION.
PRIVATE SECTION.
DATA: out TYPE REF TO if_oo_adt_intrnl_classrun.
CONSTANTS: c_column_space TYPE string VALUE ` `.
TYPES: tt_width TYPE STANDARD TABLE OF i WITH EMPTY KEY.
METHODS:
write_data
IMPORTING
data TYPE data
name TYPE string OPTIONAL
name_output TYPE abap_bool DEFAULT abap_false
RETURNING
VALUE(result) TYPE string_table
RAISING
lcx_error,
write_primitive
IMPORTING
simple TYPE simple
name TYPE string OPTIONAL
name_output TYPE abap_bool DEFAULT abap_false
RETURNING
VALUE(result) TYPE string_table,
write_structure
IMPORTING
structure TYPE any
name TYPE string OPTIONAL
name_output TYPE abap_bool DEFAULT abap_false
RETURNING
VALUE(result) TYPE string_table
RAISING
lcx_error,
write_component_names
IMPORTING
rtti TYPE REF TO cl_abap_structdescr
widths TYPE tt_width OPTIONAL
RETURNING
VALUE(result) TYPE string,
write_table
IMPORTING
table TYPE ANY TABLE
name TYPE string OPTIONAL
name_output TYPE abap_bool DEFAULT abap_false
RETURNING
VALUE(result) TYPE string_table
RAISING
lcx_error,
write_structured_line
IMPORTING
structure TYPE any
widths TYPE tt_width
RETURNING
VALUE(result) TYPE string_table
RAISING
lcx_error,
write_reference
IMPORTING
reference TYPE REF TO data
name TYPE string OPTIONAL
name_output TYPE abap_bool DEFAULT abap_false
RETURNING
VALUE(result) TYPE string_table,
get_widths_of_component_values
IMPORTING
structure TYPE any OPTIONAL
RETURNING
VALUE(widths) TYPE tt_width
RAISING
lcx_error,
get_width_data
IMPORTING
data TYPE data
RETURNING
VALUE(result) TYPE i
RAISING
lcx_error,
get_max_widths
IMPORTING
widths_1 TYPE tt_width
widths_2 TYPE tt_width
RETURNING
VALUE(widths) TYPE tt_width
RAISING
lcx_error,
get_widths_of_component_names
IMPORTING
rtti TYPE REF TO cl_abap_structdescr
RETURNING
VALUE(widths) TYPE tt_width,
get_longest_string_width
IMPORTING
string_table TYPE string_table
RETURNING
VALUE(result) TYPE i.
ENDCLASS.
CLASS zcl_adtcon IMPLEMENTATION.
METHOD wrap.
* result = NEW lcl_delegate( out ).
result = NEW zcl_adtcon( out ).
ENDMETHOD.
METHOD if_oo_adt_intrnl_classrun~begin_section.
out->begin_section(
title = title
).
ENDMETHOD.
METHOD if_oo_adt_intrnl_classrun~display.
out->display(
EXPORTING
data = data
name = name
RECEIVING
output = output
).
ENDMETHOD.
METHOD if_oo_adt_intrnl_classrun~end_section.
out->end_section( ).
ENDMETHOD.
METHOD if_oo_adt_intrnl_classrun~get.
IF data IS NOT SUPPLIED.
output = out->get( name = name ).
ELSE.
output = out->get( data = data name = name ).
ENDIF.
ENDMETHOD.
METHOD if_oo_adt_intrnl_classrun~line.
out->line( ).
ENDMETHOD.
METHOD if_oo_adt_intrnl_classrun~next_section.
out->next_section( title = title ).
ENDMETHOD.
METHOD if_oo_adt_intrnl_classrun~write.
TRY.
DATA(result) = write_data( data = data name = name name_output = abap_true ).
out->write_text( concat_lines_of( table = result sep = |\n| ) ). " && |\n\n|
CATCH lcx_error.
out->write_text( 'Data type not yet supported ...' ).
ENDTRY.
output = me.
ENDMETHOD.
METHOD if_oo_adt_intrnl_classrun~write_data.
TRY.
DATA(result) = write_data( data = value name = name name_output = abap_true ).
out->write_text( concat_lines_of( table = result sep = |\n| ) ).
CATCH lcx_error.
out->write_text( 'Data type not yet supported ...' ).
ENDTRY.
output = me.
ENDMETHOD.
METHOD if_oo_adt_intrnl_classrun~write_text.
TRY.
DATA(result) = write_data( data = text name_output = abap_false ).
out->write_text( concat_lines_of( table = result sep = |\n| ) ).
CATCH lcx_error.
out->write_text( 'Data type not yet supported ...' ).
ENDTRY.
output = me.
ENDMETHOD.
METHOD constructor.
me->out = out.
ENDMETHOD.
METHOD write_data.
DATA(a) = cl_abap_typedescr=>describe_by_data( p_data = data ).
CASE a->kind.
WHEN a->kind_elem.
result = write_primitive( simple = data name = name name_output = name_output ).
WHEN a->kind_struct.
result = write_structure( structure = data name = name name_output = name_output ).
WHEN a->kind_table.
result = write_table( table = data name = name name_output = name_output ).
WHEN a->kind_ref.
result = write_reference( reference = data name = name name_output = name_output ).
WHEN OTHERS.
RAISE EXCEPTION TYPE lcx_error.
ENDCASE.
ENDMETHOD.
METHOD write_primitive.
DATA: string TYPE string.
DATA(rtti) = cl_abap_typedescr=>describe_by_data( simple ).
IF name_output = abap_true.
CASE rtti->type_kind.
WHEN rtti->typekind_char OR rtti->typekind_string.
result = VALUE #( ).
WHEN OTHERS.
result = VALUE #( ( |Field{ c_column_space }| ) ).
ENDCASE.
ENDIF.
CASE rtti->type_kind.
WHEN rtti->typekind_date.
FIELD-SYMBOLS <date> TYPE d.
ASSIGN simple TO <date> CASTING.
result = VALUE #( BASE result ( |{ <date> DATE = ISO }{ c_column_space }| ) ).
WHEN rtti->typekind_time.
FIELD-SYMBOLS <time> TYPE t.
ASSIGN simple TO <time> CASTING.
result = VALUE #( BASE result ( |{ <time> TIME = ISO }{ c_column_space }| ) ).
WHEN rtti->typekind_packed.
FIELD-SYMBOLS <packed> TYPE p.
ASSIGN simple TO <packed> CASTING.
" 0.00 -> 0.0
" 3.140 -> 3.14
" 3 -> 3
string = |{ <packed> }{ c_column_space }|.
IF string CA '.'.
string = substring_before( val = string sub = '.' )
&& replace( val = substring_from( val = string sub = '.' ) regex = '^([.]0)0+(-? *)$|0+(-? *)$' with = '$1$2$3' ).
ENDIF.
result = VALUE #( BASE result ( string ) ).
WHEN rtti->typekind_float.
FIELD-SYMBOLS <float> TYPE f.
ASSIGN simple TO <float> CASTING.
IF <float> IS INITIAL.
" 0E? -> 0
string = |0{ c_column_space }|.
ELSE.
" E+00 -> E0
" E+02 -> E2
" E+10 -> E10
" E-02 -> E-2
string = replace( val = |{ <float> STYLE = SCIENTIFIC }{ c_column_space }| regex = '(E-?)[+]?0*([^0]*\d +)$' with = '$1$2' ).
" 1E-2 -> 1.0E-2
IF substring_before( val = string sub = 'E' ) NA '.'.
string = insert( val = string sub = '.0' off = find( val = string sub = 'E' ) ).
ENDIF.
ENDIF.
result = VALUE #( BASE result ( string ) ).
WHEN rtti->typekind_char OR rtti->typekind_string.
result = VALUE #( BASE result ( |{ simple }| ) ).
WHEN OTHERS.
result = VALUE #( BASE result ( |{ simple }{ c_column_space }| ) ).
ENDCASE.
ENDMETHOD.
METHOD write_structured_line.
DATA: comp_result_line TYPE REF TO string.
FIELD-SYMBOLS: <widths> TYPE tt_width,
<component> TYPE any.
DATA(rtti) = CAST cl_abap_structdescr( cl_abap_typedescr=>describe_by_data( p_data = structure ) ).
result = VALUE #( ( ) ).
ASSIGN result[ 1 ] TO FIELD-SYMBOL(<first_line>).
DO lines( rtti->components ) TIMES.
ASSIGN COMPONENT sy-index OF STRUCTURE structure TO <component>.
ASSERT sy-subrc = 0.
DATA(comp_result) = write_data( data = <component> ).
CASE lines( comp_result ).
WHEN 0.
RAISE EXCEPTION TYPE lcx_error.
WHEN 1.
<first_line> = COND #(
WHEN <first_line> IS INITIAL
THEN comp_result[ 1 ]
ELSE |{ <first_line> }{ comp_result[ 1 ] }| ).
WHEN OTHERS.
" determine width of longest line of component
DATA(longest_width) = get_longest_string_width( comp_result ).
" Add empty lines to RESULT so that to make it easier the transfer of COMP_RESULT to RESULT.
WHILE lines( result ) < lines( comp_result ).
APPEND INITIAL LINE TO result.
ENDWHILE.
" calculate column where each line of COMP_RESULT must start.
DATA(start_column) = COND #( WHEN result[ 1 ] IS INITIAL THEN 0 ELSE strlen( result[ 1 ] ) )."+ strlen( c_column_space ) ).
" Transfer COMP_RESULT to RESULT
LOOP AT comp_result REFERENCE INTO comp_result_line.
" determine number of spaces to add so that each line of COMP_RESULT starts at position START_COLUMN in RESULT.
DATA(spaces_to_add) = COND i( LET i = start_column - strlen( result[ sy-tabix ] ) IN WHEN i < 0 THEN 0 ELSE i ).
result[ sy-tabix ] = result[ sy-tabix ] && repeat( val = ` ` occ = spaces_to_add ) && comp_result_line->*.
ENDLOOP.
ENDCASE.
ENDDO.
ENDMETHOD.
METHOD write_structure.
FIELD-SYMBOLS: <widths> TYPE tt_width,
<component> TYPE any.
DATA(rtti) = CAST cl_abap_structdescr( cl_abap_typedescr=>describe_by_data( p_data = structure ) ).
DATA(widths) = get_max_widths(
widths_1 = get_widths_of_component_names( rtti )
widths_2 = get_widths_of_component_values( structure = structure ) ).
result = VALUE #(
( |Structure{ c_column_space }| )
" COLUMN HEADERS
( write_component_names( rtti = rtti widths = widths ) )
" VALUES OF STRUCTURE COMPONENTS
( LINES OF write_structured_line( structure = structure widths = widths ) ) ).
ENDMETHOD.
METHOD write_component_names.
FIELD-SYMBOLS: <widths> TYPE tt_width,
<component> TYPE any.
IF widths IS NOT INITIAL.
LOOP AT widths INTO DATA(width).
result = |{ result }{ rtti->components[ sy-tabix ]-name WIDTH = width }|.
ENDLOOP.
ELSE.
LOOP AT rtti->components REFERENCE INTO DATA(component).
result = |{ result }{ component->name }|.
ENDLOOP.
ENDIF.
ENDMETHOD.
METHOD write_table.
FIELD-SYMBOLS: <line> TYPE any.
DATA(rtti) = CAST cl_abap_tabledescr( cl_abap_typedescr=>describe_by_data( p_data = table ) ).
IF rtti->get_table_line_type( )->kind = cl_abap_typedescr=>kind_struct.
DATA(rtti_line) = CAST cl_abap_structdescr( rtti->get_table_line_type( ) ).
" Calculate widths of each column - The whole table must be parsed.
DATA(widths) = get_widths_of_component_names( rtti = rtti_line ).
LOOP AT table ASSIGNING <line>.
widths = get_max_widths( widths_1 = widths widths_2 = get_widths_of_component_values( structure = <line> ) ).
ENDLOOP.
" STRUCTURED LINES
result = VALUE #(
( |Table{ c_column_space }| )
" HEADER LINE
( write_component_names( rtti = rtti_line widths = widths ) )
" LINES
( LINES OF VALUE #(
FOR <line2> IN table
( LINES OF write_structured_line( structure = <line> widths = widths ) ) ) ) ).
ELSE.
" LINES NOT STRUCTURED
result = VALUE #(
( |Table{ c_column_space }| )
( LINES OF VALUE #(
FOR <line2> IN table
( LINES OF write_data( <line> ) ) ) ) ).
ENDIF.
ENDMETHOD.
METHOD write_reference.
* ASSIGN reference->* TO FIELD-SYMBOL(<data>).
* IF sy-subrc = 0.
* result = |->{ write_data( <data> ) }|.
* ELSE.
* result = '->'.
* ENDIF.
ENDMETHOD.
METHOD get_max_widths.
IF lines( widths_1 ) <> lines( widths_2 ).
RAISE EXCEPTION TYPE lcx_error.
ENDIF.
LOOP AT widths_1 REFERENCE INTO DATA(width).
APPEND nmax( val1 = width->* val2 = widths_2[ sy-tabix ] ) TO widths.
ENDLOOP.
ENDMETHOD.
METHOD get_widths_of_component_names.
LOOP AT rtti->components REFERENCE INTO DATA(component).
APPEND strlen( component->name ) + strlen( c_column_space ) TO widths.
ENDLOOP.
ENDMETHOD.
METHOD get_widths_of_component_values.
DO.
ASSIGN COMPONENT sy-index OF STRUCTURE structure TO FIELD-SYMBOL(<component>).
IF sy-subrc <> 0.
EXIT.
ENDIF.
APPEND get_width_data( <component> ) TO widths.
ENDDO.
ENDMETHOD.
METHOD get_width_data.
result = get_longest_string_width( write_data( data = data ) ).
ENDMETHOD.
METHOD get_longest_string_width.
result = REDUCE i(
INIT i = 0
FOR <string> IN string_table
NEXT i = nmax( val1 = i val2 = strlen( <string> ) ) ).
ENDMETHOD.
ENDCLASS.
| [
40484,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
26410,
597,
7885,
284,
8624,
3556,
79,
29,
198,
31631,
1976,
565,
62,
324,
83,
1102,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
324,
83,
1102,
13,
628,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
796,
1,
268,
23984,
79,
29,
198,
220,
220,
220,
366,
0,
198,
220,
220,
220,
366,
0,
2488,
17143,
2357,
503,
930,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
23984,
79,
29,
198,
220,
220,
220,
42715,
12,
49273,
50,
14441,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
503,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
611,
62,
2238,
62,
324,
83,
62,
600,
81,
21283,
62,
4871,
5143,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
20274,
8,
41876,
4526,
37,
5390,
1976,
361,
62,
324,
83,
1102,
13,
628,
220,
220,
220,
337,
36252,
50,
23772,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
503,
41876,
4526,
37,
5390,
611,
62,
2238,
62,
324,
83,
62,
600,
81,
21283,
62,
4871,
5143,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
42865,
25,
503,
41876,
4526,
37,
5390,
611,
62,
2238,
62,
324,
83,
62,
600,
81,
21283,
62,
4871,
5143,
13,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
269,
62,
28665,
62,
13200,
41876,
4731,
26173,
8924,
4600,
220,
4600,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
256,
83,
62,
10394,
41876,
49053,
9795,
43679,
3963,
1312,
13315,
38144,
9936,
35374,
13,
628,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
3551,
62,
7890,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1366,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1366,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
62,
22915,
220,
220,
41876,
450,
499,
62,
30388,
5550,
38865,
450,
499,
62,
9562,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
20274,
8,
41876,
4731,
62,
11487,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
66,
87,
62,
18224,
11,
198,
220,
220,
220,
220,
220,
3551,
62,
19795,
1800,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2829,
220,
220,
220,
220,
220,
220,
220,
41876,
2829,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
62,
22915,
220,
220,
41876,
450,
499,
62,
30388,
5550,
38865,
450,
499,
62,
9562,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
20274,
8,
41876,
4731,
62,
11487,
11,
198,
220,
220,
220,
220,
220,
3551,
62,
301,
5620,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4645,
220,
220,
220,
220,
41876,
597,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
62,
22915,
220,
220,
41876,
450,
499,
62,
30388,
5550,
38865,
450,
499,
62,
9562,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
20274,
8,
41876,
4731,
62,
11487,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
66,
87,
62,
18224,
11,
198,
220,
220,
220,
220,
220,
3551,
62,
42895,
62,
14933,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
374,
35671,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
537,
62,
397,
499,
62,
7249,
20147,
81,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9647,
82,
220,
220,
220,
220,
220,
220,
220,
41876,
256,
83,
62,
10394,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
20274,
8,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
3551,
62,
11487,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3084,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
15529,
43679,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
62,
22915,
220,
220,
41876,
450,
499,
62,
30388,
5550,
38865,
450,
499,
62,
9562,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
20274,
8,
41876,
4731,
62,
11487,
198,
220,
220,
220,
220,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
INTERFACE y_if_alv_tree_control
PUBLIC .
METHODS list_control
RETURNING
VALUE(result) TYPE REF TO y_if_list.
METHODS set_field_visibility
IMPORTING
!fieldname TYPE tabname
!is_visible TYPE abap_bool DEFAULT abap_true.
METHODS set_field_header_text
IMPORTING
fieldname TYPE tabname
header_text TYPE lvc_s_fcat-coltext.
METHODS refresh_display.
METHODS init_display.
METHODS to_focus.
METHODS get_selected_line
RETURNING VALUE(result) TYPE REF TO data
RAISING ycx_entry_not_found.
METHODS get_selected_index
RETURNING VALUE(result) TYPE i
RAISING ycx_entry_not_found.
METHODS set_selected_index
IMPORTING index TYPE i.
METHODS toolbar_control
RETURNING VALUE(result) TYPE REF TO cl_gui_toolbar
RAISING cx_failed.
ENDINTERFACE.
| [
41358,
49836,
331,
62,
361,
62,
282,
85,
62,
21048,
62,
13716,
198,
220,
44731,
764,
198,
220,
337,
36252,
50,
1351,
62,
13716,
198,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
26173,
8924,
7,
20274,
8,
41876,
4526,
37,
5390,
331,
62,
361,
62,
4868,
13,
628,
220,
337,
36252,
50,
900,
62,
3245,
62,
4703,
2247,
198,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
5145,
3245,
3672,
220,
41876,
7400,
3672,
198,
220,
220,
220,
220,
220,
5145,
271,
62,
23504,
41876,
450,
499,
62,
30388,
5550,
38865,
450,
499,
62,
7942,
13,
628,
220,
337,
36252,
50,
900,
62,
3245,
62,
25677,
62,
5239,
198,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
2214,
3672,
220,
220,
41876,
7400,
3672,
198,
220,
220,
220,
220,
220,
13639,
62,
5239,
41876,
300,
28435,
62,
82,
62,
69,
9246,
12,
4033,
5239,
13,
628,
220,
337,
36252,
50,
14976,
62,
13812,
13,
628,
220,
337,
36252,
50,
2315,
62,
13812,
13,
628,
220,
337,
36252,
50,
284,
62,
37635,
13,
628,
220,
337,
36252,
50,
651,
62,
34213,
62,
1370,
198,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
20274,
8,
41876,
4526,
37,
5390,
1366,
198,
220,
220,
220,
17926,
1797,
2751,
331,
66,
87,
62,
13000,
62,
1662,
62,
9275,
13,
628,
220,
337,
36252,
50,
651,
62,
34213,
62,
9630,
198,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
20274,
8,
41876,
1312,
198,
220,
220,
220,
17926,
1797,
2751,
331,
66,
87,
62,
13000,
62,
1662,
62,
9275,
13,
628,
220,
337,
36252,
50,
900,
62,
34213,
62,
9630,
198,
220,
220,
220,
30023,
9863,
2751,
6376,
41876,
1312,
13,
628,
220,
337,
36252,
50,
50149,
62,
13716,
198,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
20274,
8,
41876,
4526,
37,
5390,
537,
62,
48317,
62,
25981,
5657,
198,
220,
220,
220,
17926,
1797,
2751,
220,
220,
43213,
62,
47904,
13,
198,
10619,
41358,
49836,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
"! <p class="shorttext synchronized" lang="en">WB Object Utility</p>
CLASS zcl_advoat_wb_object_util DEFINITION
PUBLIC
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
CLASS-METHODS:
"! <p class="shorttext synchronized" lang="en">Resolve Include to WB object</p>
"! Resolves a given Include to a workbench object<br/>
"! Possible values are:
"! <ul>
"! <li>FUGR/I - Function Group Include</li>
"! <li>FUGR/FF - Function Module</li>
"! <li>PROG/I - Program Include
"! </ul>
resolve_include_to_wb_object
IMPORTING
include_name TYPE progname
RETURNING
VALUE(wb_object) TYPE zif_advoat_ty_global=>ty_wb_object,
"! <p class="shorttext synchronized" lang="en">Retrieves full workbench type for given type</p>
get_full_wb_object_type
IMPORTING
type TYPE seu_obj
RETURNING
VALUE(result) TYPE wbobjtype.
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS zcl_advoat_wb_object_util IMPLEMENTATION.
METHOD get_full_wb_object_type.
"TODO: check behavior for certain types like DOCT
cl_wb_object_type=>create_from_exttype(
EXPORTING p_external_id = type
RECEIVING p_wb_object_type = DATA(wb_object_type)
EXCEPTIONS OTHERS = 1 ).
CHECK sy-subrc = 0.
result = VALUE #(
objtype_tr = wb_object_type->get_r3tr_type( )
subtype_wb = wb_object_type->internal_id ).
" Some types like BOBF do not have a sub type
IF result-subtype_wb = cl_wb_registry=>c_generated.
CLEAR result-subtype_wb.
ENDIF.
ENDMETHOD.
METHOD resolve_include_to_wb_object.
DATA: is_fugr_include TYPE abap_bool,
is_functionmodule TYPE abap_bool,
function_group TYPE rs38l_area.
CALL FUNCTION 'RS_PROGNAME_SPLIT'
EXPORTING
progname_with_namespace = include_name
IMPORTING
fugr_is_include_name = is_fugr_include
fugr_is_functionmodule_name = is_functionmodule
fugr_group = function_group
EXCEPTIONS
delimiter_error = 0.
IF is_fugr_include = abap_true.
wb_object-type = zif_advoat_c_tadir_type=>function_group.
ELSE.
wb_object-type = zif_advoat_c_tadir_type=>program.
ENDIF.
IF is_functionmodule = abap_true.
TRY.
DATA(function_info) = zcl_advoat_func_util=>get_func_module_by_include( include_name ).
CATCH zcx_advoat_not_exists ##NO_HANDLER.
ENDTRY.
wb_object-sub_type = swbm_c_type_function.
wb_object-name = function_info-group.
wb_object-display_name = function_info-name.
ELSEIF is_fugr_include = abap_true.
wb_object-sub_type = swbm_c_type_prg_include.
wb_object-name = function_group.
wb_object-display_name = include_name.
ELSE.
wb_object-sub_type = swbm_c_type_prg_include.
wb_object-name = include_name.
wb_object-display_name = include_name.
ENDIF.
ENDMETHOD.
ENDCLASS.
| [
40484,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
45607,
9515,
34030,
3556,
79,
29,
198,
31631,
1976,
565,
62,
324,
13038,
265,
62,
39346,
62,
15252,
62,
22602,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
42715,
12,
49273,
50,
25,
198,
220,
220,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
4965,
6442,
40348,
284,
36245,
2134,
3556,
79,
29,
198,
220,
220,
220,
220,
220,
366,
0,
1874,
9010,
257,
1813,
40348,
284,
257,
670,
26968,
2134,
27,
1671,
15913,
198,
220,
220,
220,
220,
220,
366,
0,
33671,
3815,
389,
25,
198,
220,
220,
220,
220,
220,
366,
0,
1279,
377,
29,
198,
220,
220,
220,
220,
220,
366,
0,
1279,
4528,
29,
37,
7340,
49,
14,
40,
532,
15553,
4912,
40348,
3556,
4528,
29,
198,
220,
220,
220,
220,
220,
366,
0,
1279,
4528,
29,
37,
7340,
49,
14,
5777,
532,
15553,
19937,
3556,
4528,
29,
198,
220,
220,
220,
220,
220,
366,
0,
1279,
4528,
29,
4805,
7730,
14,
40,
532,
6118,
40348,
198,
220,
220,
220,
220,
220,
366,
0,
7359,
377,
29,
198,
220,
220,
220,
220,
220,
10568,
62,
17256,
62,
1462,
62,
39346,
62,
15252,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2291,
62,
3672,
220,
220,
220,
220,
41876,
1172,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
39346,
62,
15252,
8,
41876,
1976,
361,
62,
324,
13038,
265,
62,
774,
62,
20541,
14804,
774,
62,
39346,
62,
15252,
11,
198,
220,
220,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
9781,
5034,
1158,
1336,
670,
26968,
2099,
329,
1813,
2099,
3556,
79,
29,
198,
220,
220,
220,
220,
220,
651,
62,
12853,
62,
39346,
62,
15252,
62,
4906,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
384,
84,
62,
26801,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
20274,
8,
41876,
266,
65,
26801,
4906,
13,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
565,
62,
324,
13038,
265,
62,
39346,
62,
15252,
62,
22602,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
651,
62,
12853,
62,
39346,
62,
15252,
62,
4906,
13,
628,
220,
220,
220,
366,
51,
3727,
46,
25,
2198,
4069,
329,
1728,
3858,
588,
8410,
4177,
198,
220,
220,
220,
537,
62,
39346,
62,
15252,
62,
4906,
14804,
17953,
62,
6738,
62,
2302,
4906,
7,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
220,
279,
62,
22615,
62,
312,
220,
220,
220,
796,
2099,
198,
220,
220,
220,
220,
220,
19644,
36,
3824,
2751,
220,
279,
62,
39346,
62,
15252,
62,
4906,
796,
42865,
7,
39346,
62,
15252,
62,
4906,
8,
198,
220,
220,
220,
220,
220,
7788,
42006,
11053,
440,
4221,
4877,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
352,
6739,
198,
220,
220,
220,
5870,
25171,
827,
12,
7266,
6015,
796,
657,
13,
628,
220,
220,
220,
1255,
796,
26173,
8924,
1303,
7,
198,
220,
220,
220,
220,
220,
26181,
4906,
62,
2213,
796,
266,
65,
62,
15252,
62,
4906,
3784,
1136,
62,
81,
18,
2213,
62,
4906,
7,
1267,
198,
220,
220,
220,
220,
220,
850,
4906,
62,
39346,
796,
266,
65,
62,
15252,
62,
4906,
3784,
32538,
62,
312,
6739,
628,
220,
220,
220,
366,
2773,
3858,
588,
347,
9864,
37,
466,
407,
423,
257,
850,
2099,
198,
220,
220,
220,
16876,
1255,
12,
7266,
4906,
62,
39346,
796,
537,
62,
39346,
62,
2301,
4592,
14804,
66,
62,
27568,
13,
198,
220,
220,
220,
220,
220,
30301,
1503,
1255,
12,
7266,
4906,
62,
39346,
13,
198,
220,
220,
220,
23578,
5064,
13,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
10568,
62,
17256,
62,
1462,
62,
39346,
62,
15252,
13,
198,
220,
220,
220,
42865,
25,
318,
62,
69,
1018,
81,
62,
17256,
220,
220,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
62,
8818,
21412,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2163,
62,
8094,
220,
220,
220,
41876,
44608,
2548,
75,
62,
20337,
13,
628,
220,
220,
220,
42815,
29397,
4177,
2849,
705,
6998,
62,
4805,
7730,
20608,
62,
4303,
43,
2043,
6,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1172,
3672,
62,
4480,
62,
14933,
10223,
220,
220,
220,
220,
796,
2291,
62,
3672,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
31497,
81,
62,
271,
62,
17256,
62,
3672,
220,
220,
220,
220,
220,
220,
220,
796,
318,
62,
69,
1018,
81,
62,
17256,
198,
220,
220,
220,
220,
220,
220,
220,
31497,
81,
62,
271,
62,
8818,
21412,
62,
3672,
796,
318,
62,
8818,
21412,
198,
220,
220,
220,
220,
220,
220,
220,
31497,
81,
62,
8094,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
2163,
62,
8094,
198,
220,
220,
220,
220,
220,
7788,
42006,
11053,
198,
220,
220,
220,
220,
220,
220,
220,
46728,
2676,
62,
18224,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
657,
13,
628,
220,
220,
220,
16876,
318,
62,
69,
1018,
81,
62,
17256,
796,
450,
499,
62,
7942,
13,
198,
220,
220,
220,
220,
220,
266,
65,
62,
15252,
12,
4906,
796,
1976,
361,
62,
324,
13038,
265,
62,
66,
62,
83,
324,
343,
62,
4906,
14804
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
INTERFACE zif_abapgit_frontend_services PUBLIC.
TYPES ty_char1 TYPE c LENGTH 1.
METHODS file_upload
IMPORTING
!iv_path TYPE string
RETURNING
VALUE(rv_xstr) TYPE xstring
RAISING
zcx_abapgit_exception .
METHODS file_download
IMPORTING
!iv_path TYPE string
!iv_xstr TYPE xstring
RAISING
zcx_abapgit_exception .
METHODS show_file_save_dialog
IMPORTING
!iv_title TYPE string
!iv_extension TYPE string
!iv_default_filename TYPE string
RETURNING
VALUE(rv_path) TYPE string
RAISING
zcx_abapgit_exception .
METHODS show_file_open_dialog
IMPORTING
!iv_title TYPE string
!iv_extension TYPE string
!iv_default_filename TYPE string
RETURNING
VALUE(rv_path) TYPE string
RAISING
zcx_abapgit_exception .
METHODS clipboard_export
IMPORTING
iv_no_auth_check TYPE abap_bool DEFAULT abap_false
VALUE(it_data) TYPE STANDARD TABLE
RAISING
zcx_abapgit_exception.
METHODS execute
IMPORTING
!iv_document TYPE string OPTIONAL
!iv_application TYPE string OPTIONAL
!iv_parameter TYPE string OPTIONAL
!iv_default_directory TYPE string OPTIONAL
!iv_maximized TYPE string OPTIONAL
!iv_minimized TYPE string OPTIONAL
!iv_synchronous TYPE string OPTIONAL
!iv_operation TYPE string DEFAULT 'OPEN'
RAISING
zcx_abapgit_exception.
METHODS get_system_directory
CHANGING
!cv_system_directory TYPE string
RAISING
zcx_abapgit_exception.
METHODS directory_browse
IMPORTING
iv_window_title TYPE string OPTIONAL
iv_initial_folder TYPE string OPTIONAL
CHANGING
cv_selected_folder TYPE string
RAISING
zcx_abapgit_exception.
METHODS get_file_separator
CHANGING
cv_file_separator TYPE ty_char1
RAISING
zcx_abapgit_exception.
METHODS get_gui_version
CHANGING
ct_version_table TYPE filetable
cv_rc TYPE i
RAISING
zcx_abapgit_exception.
ENDINTERFACE.
| [
41358,
49836,
1976,
361,
62,
397,
499,
18300,
62,
8534,
437,
62,
30416,
44731,
13,
628,
220,
24412,
47,
1546,
1259,
62,
10641,
16,
41876,
269,
406,
49494,
352,
13,
628,
220,
337,
36252,
50,
2393,
62,
25850,
198,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
5145,
452,
62,
6978,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
87,
2536,
8,
41876,
2124,
8841,
198,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
337,
36252,
50,
2393,
62,
15002,
198,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
5145,
452,
62,
6978,
41876,
4731,
198,
220,
220,
220,
220,
220,
5145,
452,
62,
87,
2536,
41876,
2124,
8841,
198,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
337,
36252,
50,
905,
62,
7753,
62,
21928,
62,
38969,
519,
198,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
5145,
452,
62,
7839,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
5145,
452,
62,
2302,
3004,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
5145,
452,
62,
12286,
62,
34345,
41876,
4731,
198,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
6978,
8,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
337,
36252,
50,
905,
62,
7753,
62,
9654,
62,
38969,
519,
198,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
5145,
452,
62,
7839,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
5145,
452,
62,
2302,
3004,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
5145,
452,
62,
12286,
62,
34345,
41876,
4731,
198,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
6978,
8,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
628,
220,
337,
36252,
50,
47999,
62,
39344,
198,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
21628,
62,
3919,
62,
18439,
62,
9122,
41876,
450,
499,
62,
30388,
5550,
38865,
450,
499,
62,
9562,
198,
220,
220,
220,
220,
220,
26173,
8924,
7,
270,
62,
7890,
8,
220,
220,
41876,
49053,
9795,
43679,
198,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
628,
220,
337,
36252,
50,
12260,
198,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
5145,
452,
62,
22897,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
5145,
452,
62,
31438,
220,
220,
220,
220,
220,
220,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
5145,
452,
62,
17143,
2357,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
5145,
452,
62,
12286,
62,
34945,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
5145,
452,
62,
9806,
320,
1143,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
5145,
452,
62,
1084,
320,
1143,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
5145,
452,
62,
28869,
11413,
516,
220,
220,
220,
220,
220,
220,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
5145,
452,
62,
27184,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
5550,
38865,
705,
3185,
1677,
6,
198,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
628,
220,
337,
36252,
50,
651,
62,
10057,
62,
34945,
198,
220,
220,
220,
5870,
15567,
2751,
198,
220,
220,
220,
220,
220,
5145,
33967,
62,
10057,
62,
34945,
41876,
4731,
198,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
628,
220,
337,
36252,
50,
8619,
62,
25367,
325,
198,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
21628,
62,
17497,
62,
7839,
220,
220,
220,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
21628,
62,
36733,
62,
43551,
220,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
5870,
15567,
2751,
198,
220,
220,
220,
220,
220,
269,
85,
62,
34213,
62,
43551,
41876,
4731,
198,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
628,
220,
337,
36252,
50,
651,
62,
7753,
62,
25512,
1352,
198,
220,
220,
220,
5870,
15567,
2751,
198,
220,
220,
220,
220,
220,
269,
85,
62,
7753,
62,
25512,
1352,
41876,
1259,
62,
10641,
16,
198,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
628,
220,
337,
36252,
50,
651,
62,
48317,
62,
9641,
198,
220,
220,
220,
5870,
15567,
2751,
198,
220,
220,
220,
220,
220,
269,
83,
62,
9641,
62,
11487,
41876,
2393,
11487,
198,
220,
220,
220,
220,
220,
269,
85,
62,
6015,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1312,
198,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
1976,
66,
87
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS ltd_clean_code_manager DEFINITION FOR TESTING.
PUBLIC SECTION.
INTERFACES: y_if_clean_code_manager.
ENDCLASS.
CLASS ltd_clean_code_manager IMPLEMENTATION.
METHOD y_if_clean_code_manager~read_check_customizing.
result = VALUE #( ( apply_on_testcode = abap_true apply_on_productive_code = abap_true prio = 'N' threshold = 2 )
( apply_on_testcode = abap_true apply_on_productive_code = abap_true prio = 'E' threshold = 2 ) ).
ENDMETHOD.
METHOD y_if_clean_code_manager~calculate_obj_creation_date.
result = '20190101'.
ENDMETHOD.
ENDCLASS.
CLASS ltd_ref_scan_manager DEFINITION INHERITING FROM y_scan_manager_double FOR TESTING.
PUBLIC SECTION.
METHODS set_data_for_ok.
METHODS set_data_for_error.
METHODS set_pseudo_comment_ok.
PRIVATE SECTION.
ENDCLASS.
CLASS ltd_ref_scan_manager IMPLEMENTATION.
METHOD set_data_for_ok.
convert_code( VALUE #(
( 'REPORT y_example. ' )
( ' CLASS y_example_one DEFINITION. ' )
( ' PUBLIC SECTION. ' )
( ' DATA one TYPE i VALUE 1. ' )
( ' PROTECTED SECTION. ' )
( ' CLASS-DATA two TYPE i VALUE 2. ' )
( ' PRIVATE SECTION. ' )
( ' ENDCLASS. ' )
( ' CLASS y_example_one IMPLEMENTATION. ' )
( ' ENDCLASS. ' )
( ' CLASS y_example_two DEFINITION. ' )
( ' PUBLIC SECTION. ' )
( ' DATA: BEGIN OF one, ' )
( ' index TYPE i, ' )
( ' spfli_wa TYPE spfli, ' )
( ' END OF one. ' )
( ' PROTECTED SECTION. ' )
( ' CLASS-DATA two TYPE i VALUE 2. ' )
( ' PRIVATE SECTION. ' )
( ' ENDCLASS. ' )
( ' CLASS y_example_two IMPLEMENTATION. ' )
( ' ENDCLASS. ' )
) ).
ENDMETHOD.
METHOD set_data_for_error.
convert_code( VALUE #(
( 'REPORT y_example. ' )
( ' CLASS y_example_one DEFINITION. ' )
( ' PUBLIC SECTION. ' )
( ' DATA one TYPE i VALUE 1. ' )
( ' PROTECTED SECTION. ' )
( ' DATA two TYPE i VALUE 2. ' )
( ' DATA three TYPE i VALUE 3. ' )
( ' PRIVATE SECTION. ' )
( ' ENDCLASS. ' )
( ' CLASS y_example_one IMPLEMENTATION. ' )
( ' ENDCLASS. ' )
( ' CLASS y_example_two DEFINITION. ' )
( ' PUBLIC SECTION. ' )
( ' DATA one TYPE i VALUE 1. ' )
( ' CLASS-DATA two TYPE i VALUE 2. ' )
( ' CLASS-DATA three TYPE i VALUE 3. ' )
( ' PROTECTED SECTION. ' )
( ' PRIVATE SECTION. ' )
( ' ENDCLASS. ' )
( ' CLASS y_example_two IMPLEMENTATION. ' )
( ' ENDCLASS. ' )
( ' CLASS y_example_three DEFINITION. ' )
( ' PUBLIC SECTION. ' )
( ' DATA one TYPE i VALUE 1. ' )
( ' CLASS-DATA two TYPE i VALUE 2. ' )
( ' PROTECTED SECTION. ' )
( ' DATA four TYPE i VALUE 4. ' )
( ' PRIVATE SECTION. ' )
( ' ENDCLASS. ' )
( ' CLASS y_example_three IMPLEMENTATION. ' )
( ' ENDCLASS. ' )
) ).
ENDMETHOD.
METHOD set_pseudo_comment_ok.
convert_code( VALUE #(
( 'REPORT y_example. ' )
( ' CLASS y_example_one DEFINITION. ' )
( ' PUBLIC SECTION. ' )
( ' DATA one TYPE i VALUE 1. ' )
( ' PROTECTED SECTION. ' )
( ' DATA two TYPE i VALUE 2. ' )
( ' DATA three TYPE i VALUE 3. ' )
( ' PRIVATE SECTION. ' )
( ' ENDCLASS. ' )
( ' CLASS y_example_one IMPLEMENTATION. ' )
( ' ENDCLASS. ' )
( ' CLASS y_example_two DEFINITION. "#EC NUMBER_ATTR ' )
( ' PUBLIC SECTION. ' )
( ' DATA one TYPE i VALUE 1. ' )
( ' CLASS-DATA two TYPE i VALUE 2. ' )
( ' CLASS-DATA three TYPE i VALUE 3. ' )
( ' PROTECTED SECTION. ' )
( ' PRIVATE SECTION. ' )
( ' ENDCLASS. ' )
( ' CLASS y_example_two IMPLEMENTATION. ' )
( ' ENDCLASS. ' )
( ' CLASS y_example_three DEFINITION. "#EC NUMBER_ATTR ' )
( ' PUBLIC SECTION. ' )
( ' DATA one TYPE i VALUE 1. ' )
( ' CLASS-DATA two TYPE i VALUE 2. ' )
( ' PROTECTED SECTION. ' )
( ' DATA four TYPE i VALUE 4. ' )
( ' PRIVATE SECTION. ' )
( ' DATA five TYPE i VALUE 5. ' )
( ' ENDCLASS. ' )
( ' CLASS y_example_three IMPLEMENTATION. ' )
( ' ENDCLASS. ' )
) ).
ENDMETHOD.
ENDCLASS.
CLASS ltd_clean_code_exemption_no DEFINITION FOR TESTING
INHERITING FROM y_exemption_handler.
PUBLIC SECTION.
METHODS: is_object_exempted REDEFINITION.
ENDCLASS.
CLASS ltd_clean_code_exemption_no IMPLEMENTATION.
METHOD is_object_exempted.
RETURN.
ENDMETHOD.
ENDCLASS.
CLASS local_test_class DEFINITION FOR TESTING
RISK LEVEL HARMLESS
DURATION SHORT.
PRIVATE SECTION.
DATA: cut TYPE REF TO y_check_number_attributes,
ref_scan_manager_double TYPE REF TO ltd_ref_scan_manager.
METHODS:
setup,
assert_errors IMPORTING err_cnt TYPE i,
assert_pseudo_comments IMPORTING pc_cnt TYPE i,
is_bound FOR TESTING,
cut_ok FOR TESTING,
cut_error FOR TESTING,
pseudo_comment_ok FOR TESTING.
ENDCLASS.
CLASS y_check_number_attributes DEFINITION LOCAL FRIENDS local_test_class.
CLASS local_test_class IMPLEMENTATION.
METHOD setup.
cut = NEW y_check_number_attributes( ).
ref_scan_manager_double = NEW ltd_ref_scan_manager( ).
cut->ref_scan_manager ?= ref_scan_manager_double.
cut->clean_code_manager = NEW ltd_clean_code_manager( ).
cut->clean_code_exemption_handler = NEW ltd_clean_code_exemption_no( ).
cut->attributes_maintained = abap_true.
ENDMETHOD.
METHOD is_bound.
cl_abap_unit_assert=>assert_bound(
EXPORTING
act = cut ).
ENDMETHOD.
METHOD cut_ok.
ref_scan_manager_double->set_data_for_ok( ).
cut->run( ).
assert_errors( 0 ).
assert_pseudo_comments( 0 ).
ENDMETHOD.
METHOD cut_error.
ref_scan_manager_double->set_data_for_error( ).
cut->run( ).
assert_errors( 3 ).
assert_pseudo_comments( 0 ).
ENDMETHOD.
METHOD pseudo_comment_ok.
ref_scan_manager_double->set_pseudo_comment_ok( ).
cut->run( ).
assert_errors( 1 ).
assert_pseudo_comments( 2 ).
ENDMETHOD.
METHOD assert_errors.
cl_abap_unit_assert=>assert_equals(
EXPORTING
act = cut->statistics->get_number_errors( )
exp = err_cnt ).
ENDMETHOD.
METHOD assert_pseudo_comments.
cl_abap_unit_assert=>assert_equals(
EXPORTING
act = cut->statistics->get_number_pseudo_comments( )
exp = pc_cnt ).
ENDMETHOD.
ENDCLASS.
| [
31631,
300,
8671,
62,
27773,
62,
8189,
62,
37153,
5550,
20032,
17941,
7473,
43001,
2751,
13,
198,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
25,
331,
62,
361,
62,
27773,
62,
8189,
62,
37153,
13,
198,
10619,
31631,
13,
198,
198,
31631,
300,
8671,
62,
27773,
62,
8189,
62,
37153,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
331,
62,
361,
62,
27773,
62,
8189,
62,
37153,
93,
961,
62,
9122,
62,
23144,
2890,
13,
198,
220,
220,
220,
1255,
796,
26173,
8924,
1303,
7,
357,
4174,
62,
261,
62,
9288,
8189,
796,
450,
499,
62,
7942,
4174,
62,
261,
62,
27781,
62,
8189,
796,
450,
499,
62,
7942,
1293,
78,
796,
705,
45,
6,
11387,
796,
362,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
4174,
62,
261,
62,
9288,
8189,
796,
450,
499,
62,
7942,
4174,
62,
261,
62,
27781,
62,
8189,
796,
450,
499,
62,
7942,
1293,
78,
796,
705,
36,
6,
11387,
796,
362,
1267,
6739,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
331,
62,
361,
62,
27773,
62,
8189,
62,
37153,
93,
9948,
3129,
378,
62,
26801,
62,
38793,
62,
4475,
13,
198,
220,
220,
220,
1255,
796,
705,
23344,
486,
486,
4458,
198,
220,
23578,
49273,
13,
198,
10619,
31631,
13,
198,
198,
31631,
300,
8671,
62,
5420,
62,
35836,
62,
37153,
5550,
20032,
17941,
3268,
16879,
2043,
2751,
16034,
331,
62,
35836,
62,
37153,
62,
23352,
7473,
43001,
2751,
13,
198,
220,
44731,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
900,
62,
7890,
62,
1640,
62,
482,
13,
198,
220,
220,
220,
337,
36252,
50,
900,
62,
7890,
62,
1640,
62,
18224,
13,
198,
220,
220,
220,
337,
36252,
50,
900,
62,
7752,
12003,
62,
23893,
62,
482,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
198,
198,
31631,
300,
8671,
62,
5420,
62,
35836,
62,
37153,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
900,
62,
7890,
62,
1640,
62,
482,
13,
198,
220,
220,
220,
10385,
62,
8189,
7,
26173,
8924,
1303,
7,
198,
220,
220,
220,
220,
220,
357,
705,
2200,
15490,
331,
62,
20688,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
42715,
331,
62,
20688,
62,
505,
5550,
20032,
17941,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
44731,
44513,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
220,
220,
42865,
530,
41876,
1312,
26173,
8924,
352,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
48006,
9782,
1961,
44513,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
220,
220,
42715,
12,
26947,
734,
41876,
1312,
26173,
8924,
362,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
4810,
3824,
6158,
44513,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
23578,
31631,
13,
705,
1267,
628,
220,
220,
220,
220,
220,
357,
705,
42715,
331,
62,
20688,
62,
505,
30023,
2538,
10979,
6234,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
23578,
31631,
13,
705,
1267,
628,
220,
220,
220,
220,
220,
357,
705,
42715,
331,
62,
20688,
62,
11545,
5550,
20032,
17941,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
44731,
44513,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
220,
220,
42865,
25,
347,
43312,
3963,
530,
11,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6376,
220,
41876,
1312,
11,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
599,
2704,
72,
62,
10247,
41876,
599,
2704,
72,
11,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
530,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
48006,
9782,
1961,
44513,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
220,
220,
42715,
12,
26947,
734,
41876,
1312,
26173,
8924,
362,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
4810,
3824,
6158,
44513,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
23578,
31631,
13,
705,
1267,
628,
220,
220,
220,
220,
220,
357,
705,
42715,
331,
62,
20688,
62,
11545,
30023,
2538,
10979,
6234,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
23578,
31631,
13,
705,
1267,
198,
220,
220,
220,
1267,
6739,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
900,
62,
7890,
62,
1640,
62,
18224,
13,
198,
220,
220,
220,
10385,
62,
8189,
7,
26173,
8924,
1303,
7,
198,
220,
220,
220,
220,
220,
357,
705,
2200,
15490,
331,
62,
20688,
13,
705,
1267,
628,
220,
220,
220,
220,
220,
357,
705,
42715,
331,
62,
20688,
62,
505,
5550,
20032,
17941,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
44731,
44513,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
220,
220,
42865,
530,
41876,
1312,
26173,
8924,
352,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
48006,
9782,
1961,
44513,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
220,
220,
42865,
734,
41876,
1312,
26173,
8924,
362,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
220,
220,
42865,
1115,
41876,
1312,
26173,
8924,
513,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
220,
220,
4810,
3824,
6158,
44513,
13,
705,
1267,
198,
220,
220,
220,
220,
220,
357,
705,
23578,
31631,
13,
705,
1267,
198,
220,
220,
220,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_pwned_passwords_manifest DEFINITION
PUBLIC
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
INTERFACES zif_apack_manifest.
methods constructor.
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS zcl_pwned_passwords_manifest IMPLEMENTATION.
METHOD constructor.
me->zif_apack_manifest~descriptor = value #(
group_id = 'github.com/atudor2'
artifact_id = 'abap-pwnedpasswords'
version = '0.3'
git_url = 'https://github.com/atudor2/abap-pwnedpasswords.git'
).
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
79,
675,
276,
62,
6603,
10879,
62,
805,
8409,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
499,
441,
62,
805,
8409,
13,
198,
220,
220,
220,
5050,
23772,
13,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
198,
198,
31631,
1976,
565,
62,
79,
675,
276,
62,
6603,
10879,
62,
805,
8409,
30023,
2538,
10979,
6234,
13,
198,
220,
337,
36252,
23772,
13,
198,
220,
220,
220,
502,
3784,
89,
361,
62,
499,
441,
62,
805,
8409,
93,
20147,
1968,
273,
796,
1988,
1303,
7,
198,
220,
220,
220,
220,
220,
220,
220,
1448,
62,
312,
220,
220,
220,
796,
705,
12567,
13,
785,
14,
265,
463,
273,
17,
6,
198,
220,
220,
220,
220,
220,
220,
220,
24127,
62,
312,
796,
705,
397,
499,
12,
79,
675,
276,
6603,
10879,
6,
198,
220,
220,
220,
220,
220,
220,
220,
2196,
220,
220,
220,
220,
796,
705,
15,
13,
18,
6,
198,
220,
220,
220,
220,
220,
220,
220,
17606,
62,
6371,
220,
220,
220,
220,
796,
705,
5450,
1378,
12567,
13,
785,
14,
265,
463,
273,
17,
14,
397,
499,
12,
79,
675,
276,
6603,
10879,
13,
18300,
6,
198,
220,
220,
220,
6739,
198,
220,
23578,
49273,
13,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
*&---------------------------------------------------------------------*
*& Include ZABAPGIT_PAGE_MERGE
*&---------------------------------------------------------------------*
CLASS lcl_merge DEFINITION FINAL.
PUBLIC SECTION.
TYPES: BEGIN OF ty_ancestor,
commit TYPE ty_sha1,
tree TYPE ty_sha1,
time TYPE string,
body TYPE string,
END OF ty_ancestor.
TYPES: BEGIN OF ty_merge,
repo TYPE REF TO lcl_repo_online,
source TYPE lcl_git_branch_list=>ty_git_branch,
target TYPE lcl_git_branch_list=>ty_git_branch,
common TYPE ty_ancestor,
stree TYPE lcl_git_porcelain=>ty_expanded_tt,
ttree TYPE lcl_git_porcelain=>ty_expanded_tt,
ctree TYPE lcl_git_porcelain=>ty_expanded_tt,
result TYPE lcl_git_porcelain=>ty_expanded_tt,
stage TYPE REF TO lcl_stage,
conflict TYPE string,
END OF ty_merge.
CLASS-METHODS:
run
IMPORTING io_repo TYPE REF TO lcl_repo_online
iv_source TYPE string
iv_target TYPE string
RETURNING VALUE(rs_merge) TYPE ty_merge
RAISING lcx_exception.
PRIVATE SECTION.
CLASS-DATA: gs_merge TYPE ty_merge,
gt_objects TYPE ty_objects_tt.
TYPES: ty_ancestor_tt TYPE STANDARD TABLE OF ty_ancestor WITH DEFAULT KEY.
CLASS-METHODS:
all_files
RETURNING VALUE(rt_files) TYPE lcl_git_porcelain=>ty_expanded_tt,
calculate_result
RAISING lcx_exception,
find_ancestors
IMPORTING iv_commit TYPE ty_sha1
RETURNING VALUE(rt_ancestors) TYPE ty_ancestor_tt
RAISING lcx_exception,
find_first_common
IMPORTING it_list1 TYPE ty_ancestor_tt
it_list2 TYPE ty_ancestor_tt
RETURNING VALUE(rs_common) TYPE ty_ancestor
RAISING lcx_exception,
fetch_git
IMPORTING iv_source TYPE string
iv_target TYPE string
RAISING lcx_exception.
ENDCLASS.
CLASS lcl_merge IMPLEMENTATION.
METHOD run.
DATA: lt_asource TYPE ty_ancestor_tt,
lt_atarget TYPE ty_ancestor_tt.
IF iv_source = iv_target.
lcx_exception=>raise( 'source = target' ).
ENDIF.
CLEAR gs_merge.
gs_merge-repo = io_repo.
fetch_git( iv_source = iv_source
iv_target = iv_target ).
lt_asource = find_ancestors( gs_merge-source-sha1 ).
lt_atarget = find_ancestors( gs_merge-target-sha1 ).
gs_merge-common = find_first_common( it_list1 = lt_asource
it_list2 = lt_atarget ).
gs_merge-stree = lcl_git_porcelain=>full_tree(
it_objects = gt_objects
iv_branch = gs_merge-source-sha1 ).
gs_merge-ttree = lcl_git_porcelain=>full_tree(
it_objects = gt_objects
iv_branch = gs_merge-target-sha1 ).
gs_merge-ctree = lcl_git_porcelain=>full_tree(
it_objects = gt_objects
iv_branch = gs_merge-common-commit ).
calculate_result( ).
rs_merge = gs_merge.
ENDMETHOD.
METHOD all_files.
APPEND LINES OF gs_merge-stree TO rt_files.
APPEND LINES OF gs_merge-ttree TO rt_files.
APPEND LINES OF gs_merge-ctree TO rt_files.
SORT rt_files BY path DESCENDING name ASCENDING.
DELETE ADJACENT DUPLICATES FROM rt_files COMPARING path name.
ENDMETHOD.
METHOD calculate_result.
DEFINE _from_source.
READ TABLE gt_objects ASSIGNING <ls_object>
WITH KEY type = gc_type-blob
sha1 = <ls_source>-sha1.
ASSERT sy-subrc = 0.
gs_merge-stage->add( iv_path = <ls_file>-path
iv_filename = <ls_file>-name
iv_data = <ls_object>-data ).
END-OF-DEFINITION.
DATA: lt_files TYPE lcl_git_porcelain=>ty_expanded_tt,
lv_found_source TYPE abap_bool,
lv_found_target TYPE abap_bool,
lv_found_common TYPE abap_bool.
FIELD-SYMBOLS: <ls_source> LIKE LINE OF lt_files,
<ls_target> LIKE LINE OF lt_files,
<ls_common> LIKE LINE OF lt_files,
<ls_file> LIKE LINE OF lt_files,
<ls_result> LIKE LINE OF gs_merge-result,
<ls_object> LIKE LINE OF gt_objects.
lt_files = all_files( ).
CREATE OBJECT gs_merge-stage
EXPORTING
iv_branch_name = gs_merge-target-name
iv_branch_sha1 = gs_merge-target-sha1
iv_merge_source = gs_merge-source-sha1.
LOOP AT lt_files ASSIGNING <ls_file>.
UNASSIGN <ls_source>.
UNASSIGN <ls_target>.
UNASSIGN <ls_common>.
READ TABLE gs_merge-stree ASSIGNING <ls_source>
WITH KEY path = <ls_file>-path name = <ls_file>-name. "#EC CI_SUBRC
READ TABLE gs_merge-ttree ASSIGNING <ls_target>
WITH KEY path = <ls_file>-path name = <ls_file>-name. "#EC CI_SUBRC
READ TABLE gs_merge-ctree ASSIGNING <ls_common>
WITH KEY path = <ls_file>-path name = <ls_file>-name. "#EC CI_SUBRC
lv_found_source = boolc( <ls_source> IS ASSIGNED ).
lv_found_target = boolc( <ls_target> IS ASSIGNED ).
lv_found_common = boolc( <ls_common> IS ASSIGNED ).
IF lv_found_source = abap_false
AND lv_found_target = abap_false.
* deleted in source and target, skip
CONTINUE.
ELSEIF lv_found_source = abap_false
AND lv_found_common = abap_true
AND <ls_target>-sha1 = <ls_common>-sha1.
* deleted in source, skip
gs_merge-stage->rm( iv_path = <ls_file>-path
iv_filename = <ls_file>-name ).
CONTINUE.
ELSEIF lv_found_target = abap_false
AND lv_found_common = abap_true
AND <ls_source>-sha1 = <ls_common>-sha1.
* deleted in target, skip
CONTINUE.
ENDIF.
APPEND INITIAL LINE TO gs_merge-result ASSIGNING <ls_result>.
<ls_result>-path = <ls_file>-path.
<ls_result>-name = <ls_file>-name.
IF lv_found_target = abap_false.
* added in source
_from_source.
<ls_result>-sha1 = <ls_source>-sha1.
CONTINUE.
ELSEIF lv_found_source = abap_false.
* added in target
<ls_result>-sha1 = <ls_target>-sha1.
ELSEIF lv_found_common = abap_false
AND <ls_target>-sha1 = <ls_source>-sha1.
* added in source and target
<ls_result>-sha1 = <ls_source>-sha1.
ENDIF.
IF lv_found_source = abap_false
OR lv_found_target = abap_false
OR lv_found_common = abap_false.
CLEAR gs_merge-result.
gs_merge-conflict = |{ <ls_file>-name
} merge conflict, not found anywhere|.
RETURN.
ENDIF.
IF <ls_target>-sha1 = <ls_source>-sha1.
* target and source match
<ls_result>-sha1 = <ls_source>-sha1.
ELSEIF <ls_target>-sha1 = <ls_common>-sha1.
* changed in source
_from_source.
<ls_result>-sha1 = <ls_source>-sha1.
ELSEIF <ls_source>-sha1 = <ls_common>-sha1.
* changed in target
<ls_result>-sha1 = <ls_target>-sha1.
ELSE.
* changed in source and target, conflict
CLEAR gs_merge-result.
gs_merge-conflict = |{ <ls_file>-name
} merge conflict, changed in source and target branch|.
RETURN.
ENDIF.
ENDLOOP.
ENDMETHOD.
METHOD find_first_common.
FIELD-SYMBOLS: <ls_list1> LIKE LINE OF it_list1,
<ls_list2> LIKE LINE OF it_list2.
LOOP AT it_list1 ASSIGNING <ls_list1>.
LOOP AT it_list2 ASSIGNING <ls_list2>.
IF <ls_list1>-tree = <ls_list2>-tree.
rs_common = <ls_list1>.
RETURN.
ENDIF.
ENDLOOP.
ENDLOOP.
lcx_exception=>raise( 'error finding common ancestor' ).
ENDMETHOD.
METHOD find_ancestors.
DEFINE _visit.
IF NOT &1 IS INITIAL.
READ TABLE lt_visit FROM &1 TRANSPORTING NO FIELDS.
IF sy-subrc <> 0.
APPEND &1 TO lt_visit.
ENDIF.
ENDIF.
END-OF-DEFINITION.
DATA: ls_commit TYPE lcl_git_pack=>ty_commit,
lt_visit TYPE STANDARD TABLE OF ty_sha1,
lv_commit LIKE LINE OF lt_visit.
FIELD-SYMBOLS: <ls_ancestor> LIKE LINE OF rt_ancestors,
<ls_object> LIKE LINE OF gt_objects.
APPEND iv_commit TO lt_visit.
LOOP AT lt_visit INTO lv_commit.
READ TABLE gt_objects ASSIGNING <ls_object>
WITH KEY type = gc_type-commit sha1 = lv_commit.
ASSERT sy-subrc = 0.
ls_commit = lcl_git_pack=>decode_commit( <ls_object>-data ).
_visit ls_commit-parent.
_visit ls_commit-parent2.
APPEND INITIAL LINE TO rt_ancestors ASSIGNING <ls_ancestor>.
<ls_ancestor>-commit = lv_commit.
<ls_ancestor>-tree = ls_commit-tree.
<ls_ancestor>-body = ls_commit-body.
FIND REGEX gc_author_regex IN ls_commit-author
SUBMATCHES <ls_ancestor>-time ##NO_TEXT.
ASSERT sy-subrc = 0.
ENDLOOP.
SORT rt_ancestors BY time DESCENDING.
ENDMETHOD.
METHOD fetch_git.
DATA: lo_branch_list TYPE REF TO lcl_git_branch_list,
lt_upload TYPE lcl_git_branch_list=>ty_git_branch_list_tt.
lo_branch_list = lcl_git_transport=>branches( gs_merge-repo->get_url( ) ).
gs_merge-source = lo_branch_list->find_by_name( lcl_git_branch_list=>complete_heads_branch_name( iv_source ) ).
gs_merge-target = lo_branch_list->find_by_name( lcl_git_branch_list=>complete_heads_branch_name( iv_target ) ).
APPEND gs_merge-source TO lt_upload.
APPEND gs_merge-target TO lt_upload.
lcl_git_transport=>upload_pack( EXPORTING io_repo = gs_merge-repo
iv_deepen = abap_false
it_branches = lt_upload
IMPORTING et_objects = gt_objects ).
ENDMETHOD.
ENDCLASS.
*********************************
CLASS lcl_gui_page_merge DEFINITION FINAL INHERITING FROM lcl_gui_page.
PUBLIC SECTION.
METHODS:
constructor
IMPORTING io_repo TYPE REF TO lcl_repo_online
iv_source TYPE string
iv_target TYPE string
RAISING lcx_exception,
lif_gui_page~on_event REDEFINITION.
PROTECTED SECTION.
METHODS render_content REDEFINITION.
PRIVATE SECTION.
DATA: mo_repo TYPE REF TO lcl_repo_online,
ms_merge TYPE lcl_merge=>ty_merge.
CONSTANTS: BEGIN OF c_actions,
merge TYPE string VALUE 'merge' ##NO_TEXT,
END OF c_actions.
METHODS:
build_menu
RETURNING VALUE(ro_menu) TYPE REF TO lcl_html_toolbar.
ENDCLASS. "lcl_gui_page_merge DEFINITION
CLASS lcl_gui_page_merge IMPLEMENTATION.
METHOD constructor.
super->constructor( ).
ms_control-page_title = 'MERGE'.
ms_control-page_menu = build_menu( ).
mo_repo = io_repo.
ms_merge = lcl_merge=>run(
io_repo = io_repo
iv_source = iv_source
iv_target = iv_target ).
ENDMETHOD.
METHOD lif_gui_page~on_event.
CASE iv_action.
WHEN c_actions-merge.
IF ms_merge-stage->count( ) = 0.
lcx_exception=>raise( 'nothing to merge' ).
ENDIF.
CREATE OBJECT ei_page TYPE lcl_gui_page_commit
EXPORTING
io_repo = mo_repo
io_stage = ms_merge-stage.
ev_state = gc_event_state-new_page.
ENDCASE.
ENDMETHOD.
METHOD build_menu.
CREATE OBJECT ro_menu.
ro_menu->add( iv_txt = 'Merge' iv_act = c_actions-merge ) ##NO_TEXT.
ENDMETHOD.
METHOD render_content.
DEFINE _show_file.
READ TABLE &1 ASSIGNING <ls_show>
WITH KEY path = <ls_file>-path name = <ls_file>-name.
IF sy-subrc = 0.
IF <ls_show>-sha1 = ls_result-sha1.
ro_html->add( |<td>{
<ls_show>-path }{ <ls_show>-name }</td><td><b>{
<ls_show>-sha1(7) }</b></td>| ).
ELSE.
ro_html->add( |<td>{
<ls_show>-path }{ <ls_show>-name }</td><td>{
<ls_show>-sha1(7) }</td>| ).
ENDIF.
ELSE.
ro_html->add( '<td></td><td></td>' ).
ENDIF.
END-OF-DEFINITION.
DATA: lt_files LIKE ms_merge-stree,
ls_result LIKE LINE OF ms_merge-result.
FIELD-SYMBOLS: <ls_show> LIKE LINE OF lt_files,
<ls_file> LIKE LINE OF lt_files.
CREATE OBJECT ro_html.
ro_html->add( '<div id="toc">' ).
ro_html->add( lcl_gui_chunk_lib=>render_repo_top(
io_repo = mo_repo
iv_show_package = abap_false
iv_show_branch = abap_false ) ).
_add '<table>'.
_add '<tr>'.
_add '<td>Source:</td>'.
_add '<td>'.
_add ms_merge-source-name.
_add '</td></tr>'.
_add '<tr>'.
_add '<td>Target:</td>'.
_add '<td>'.
_add ms_merge-target-name.
_add '</td></tr>'.
_add '<tr>'.
_add '<td>Ancestor:</td>'.
_add '<td>'.
_add ms_merge-common-commit.
_add '</td></tr>'.
_add '</table>'.
_add '<br>'.
APPEND LINES OF ms_merge-stree TO lt_files.
APPEND LINES OF ms_merge-ttree TO lt_files.
APPEND LINES OF ms_merge-ctree TO lt_files.
SORT lt_files BY path DESCENDING name ASCENDING.
DELETE ADJACENT DUPLICATES FROM lt_files COMPARING path name.
ro_html->add( '<table>' ).
ro_html->add( '<tr>' ).
ro_html->add( '<td><u>Source</u></td>' ).
ro_html->add( '<td></td>' ).
ro_html->add( '<td><u>Target</u></td>' ).
ro_html->add( '<td></td>' ).
ro_html->add( '<td><u>Ancestor</u></td>' ).
ro_html->add( '<td></td>' ).
ro_html->add( '<td><u>Result</u></td>' ).
ro_html->add( '<td></td>' ).
ro_html->add( '</tr>' ).
LOOP AT lt_files ASSIGNING <ls_file>.
CLEAR ls_result.
READ TABLE ms_merge-result INTO ls_result
WITH KEY path = <ls_file>-path name = <ls_file>-name.
ro_html->add( '<tr>' ).
_show_file ms_merge-stree.
_show_file ms_merge-ttree.
_show_file ms_merge-ctree.
_show_file ms_merge-result.
ro_html->add( '</tr>' ).
ENDLOOP.
ro_html->add( '</table>' ).
ro_html->add( '<br>' ).
ro_html->add( '<b>' ).
ro_html->add( ms_merge-conflict ).
ro_html->add( '</b>' ).
ro_html->add( '</div>' ).
ENDMETHOD. "render_content
ENDCLASS.
| [
9,
5,
10097,
30934,
9,
198,
9,
5,
220,
40348,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1168,
6242,
2969,
38,
2043,
62,
4537,
8264,
62,
29296,
8264,
198,
9,
5,
10097,
30934,
9,
198,
198,
31631,
300,
565,
62,
647,
469,
5550,
20032,
17941,
25261,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
24412,
47,
1546,
25,
347,
43312,
3963,
1259,
62,
1192,
395,
273,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4589,
41876,
1259,
62,
26270,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5509,
220,
220,
41876,
1259,
62,
26270,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
640,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1767,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
1192,
395,
273,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
347,
43312,
3963,
1259,
62,
647,
469,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
29924,
220,
220,
220,
220,
41876,
4526,
37,
5390,
300,
565,
62,
260,
7501,
62,
25119,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2723,
220,
220,
41876,
300,
565,
62,
18300,
62,
1671,
3702,
62,
4868,
14804,
774,
62,
18300,
62,
1671,
3702,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2496,
220,
220,
41876,
300,
565,
62,
18300,
62,
1671,
3702,
62,
4868,
14804,
774,
62,
18300,
62,
1671,
3702,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2219,
220,
220,
41876,
1259,
62,
1192,
395,
273,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
336,
631,
220,
220,
220,
41876,
300,
565,
62,
18300,
62,
1819,
5276,
391,
14804,
774,
62,
11201,
12249,
62,
926,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
256,
21048,
220,
220,
220,
41876,
300,
565,
62,
18300,
62,
1819,
5276,
391,
14804,
774,
62,
11201,
12249,
62,
926,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
21048,
220,
220,
220,
41876,
300,
565,
62,
18300,
62,
1819,
5276,
391,
14804,
774,
62,
11201,
12249,
62,
926,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1255,
220,
220,
41876,
300,
565,
62,
18300,
62,
1819,
5276,
391,
14804,
774,
62,
11201,
12249,
62,
926,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3800,
220,
220,
220,
41876,
4526,
37,
5390,
300,
565,
62,
14247,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5358,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
647,
469,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
25,
198,
220,
220,
220,
220,
220,
1057,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
33245,
62,
260,
7501,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
300,
565,
62,
260,
7501,
62,
25119,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
10459,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
16793,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
3808,
62,
647,
469,
8,
41876,
1259,
62,
647,
469,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
300,
66,
87,
62,
1069,
4516,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42715,
12,
26947,
25,
308,
82,
62,
647,
469,
220,
220,
41876,
1259,
62,
647,
469,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
308,
83,
62,
48205,
41876,
1259,
62,
48205,
62,
926,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
1259,
62,
1192,
395,
273,
62,
926,
41876,
49053,
9795,
43679,
3963,
1259,
62,
1192,
395,
273,
13315,
5550,
38865,
35374,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
25,
198,
220,
220,
220,
220,
220,
477,
62,
16624,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
17034,
62,
16624,
8,
41876,
300,
565,
62,
18300,
62,
1819,
5276,
391,
14804,
774,
62,
11201,
12249,
62,
926,
11,
198,
220,
220,
220,
220,
220,
15284,
62,
20274,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
300,
66,
87,
62,
1069,
4516,
11,
198,
220,
220,
220,
220,
220,
1064,
62,
1192,
395,
669,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
21628,
62,
41509,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1259,
62,
26270,
16,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
17034,
62,
1192,
395,
669,
8,
41876,
1259,
62,
1192,
395,
273,
62,
926,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
300,
66,
87,
62,
1069,
4516,
11,
198,
220,
220,
220,
220,
220,
1064,
62,
11085,
62,
11321,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
340,
62,
4868,
16,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1259,
62,
1192,
395,
273,
62,
926,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
340,
62,
4868,
17,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1259,
62,
1192,
395,
273,
62,
926,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
3808,
62,
11321,
8,
41876,
1259,
62,
1192,
395,
273,
198,
220,
220,
220,
220,
220,
220,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
class zcl_aps_parameterset_func definition
public
final
create private
global friends zcl_aps_parameterset_factory.
public section.
interfaces:
zif_aps_parameterSet_func.
methods:
constructor
importing
i_settings type ref to zif_aps_settings
raising
zcx_aps_unknown_executable.
protected section.
private section.
" all other parameters tables have a subset of the changing parameters structure.
" so, we use this one for all of them as a common structure
data:
settings type ref to zif_aps_settings,
functionUnitParameters type abap_func_parmbind_tab,
funcExportingparameters type rsfb_cha,
funcImportingparameters type rsfb_cha,
funcChangingparameters type rsfb_cha,
funcExceptions type rsfb_exc,
funcTableparameters type rsfb_cha.
methods:
loadFunctionUnitParams
raising
zcx_aps_unknown_executable,
createDataRefForParameter
importing
i_parameterTypedefinition type rscha
i_parmbindEntry type ref to abap_func_parmbind
raising
zcx_aps_unknown_parameter,
createDataRefDDICReference
importing
i_parameterTypedefinition type rscha
i_parmbindEntry type ref to abap_func_parmbind
raising
zcx_aps_unknown_parameter,
createDataRefObject
importing
i_parameterTypedefinition type rscha
i_parmbindEntry type ref to abap_func_parmbind
raising
zcx_aps_unknown_parameter,
createDataRefInternal
importing
i_parameterTypedefinition type rscha
i_parmbindEntry type ref to abap_func_parmbind
raising
zcx_aps_unknown_parameter,
copyContentOfDataRef
importing
i_source type ref to data
i_target type ref to data.
endclass.
class zcl_aps_parameterset_func implementation.
method zif_aps_parameterSet_func~addchanging.
try.
data(parameterTypeDefinition) = funcChangingParameters[ parameter = i_parametername ].
catch cx_sy_itab_line_not_found.
raise exception
type zcx_aps_unknown_parameter
exporting
i_parametername = conv #( i_parametername ).
endtry.
insert value #(
name = i_parametername
kind = abap_func_changing
)
into table functionUnitParameters
reference into data(currentParameter).
if sy-subrc ne 0.
"duplicate key for example?
raise exception
type zcx_aps_unknown_parameter
exporting
i_parametername = conv #( i_parametername ).
endif.
createDataRefForParameter(
i_parametertypedefinition = parameterTypeDefinition
i_parmbindentry = currentParameter
).
copyContentOfDataRef(
i_source = i_parameterValue
i_target = currentParameter->value
).
endmethod.
method zif_aps_parameterSet_func~addexporting.
try.
data(parameterTypeDefinition) = funcExportingParameters[ parameter = i_parametername ].
catch cx_sy_itab_line_not_found.
raise exception
type zcx_aps_unknown_parameter
exporting
i_parametername = conv #( i_parametername ).
endtry.
" exporting of func unit is importing for caller
insert value #(
name = i_parametername
kind = abap_func_importing
)
into table functionUnitParameters
reference into data(currentParameter).
if sy-subrc ne 0.
"duplicate key for example?
raise exception
type zcx_aps_unknown_parameter
exporting
i_parametername = conv #( i_parametername ).
endif.
createDataRefForParameter(
i_parametertypedefinition = parameterTypeDefinition
i_parmbindentry = currentParameter
).
endmethod.
method zif_aps_parameterSet_func~addimporting.
try.
data(parameterTypeDefinition) = funcImportingParameters[ parameter = i_parametername ].
catch cx_sy_itab_line_not_found.
raise exception
type zcx_aps_unknown_parameter
exporting
i_parametername = conv #( i_parametername ).
endtry.
" importing of func unit is exporting for caller
insert value #(
name = i_parametername
kind = abap_func_exporting
)
into table functionUnitParameters
reference into data(currentParameter).
if sy-subrc ne 0.
"duplicate key for example?
raise exception
type zcx_aps_unknown_parameter
exporting
i_parametername = conv #( i_parametername ).
endif.
createDataRefForParameter(
i_parametertypedefinition = parameterTypeDefinition
i_parmbindentry = currentParameter
).
copyContentOfDataRef(
i_source = i_parameterValue
i_target = currentParameter->value
).
endmethod.
method zif_aps_parameterSet_func~addtables.
try.
data(parameterTypeDefinition) = funcTableParameters[ parameter = i_parametername ].
catch cx_sy_itab_line_not_found.
raise exception
type zcx_aps_unknown_parameter
exporting
i_parametername = conv #( i_parametername ).
endtry.
insert value #(
name = i_parametername
kind = abap_func_tables
)
into table functionUnitParameters
reference into data(currentParameter).
if sy-subrc ne 0.
"duplicate key for example?
raise exception
type zcx_aps_unknown_parameter
exporting
i_parametername = conv #( i_parametername ).
endif.
createDataRefForParameter(
i_parametertypedefinition = parameterTypeDefinition
i_parmbindentry = currentParameter
).
copyContentOfDataRef(
i_source = i_parameterValue
i_target = currentParameter->value
).
endmethod.
method zif_aps_parameterSet_func~getchangingvalue.
try.
result = functionUnitParameters[
name = i_parametername
]-value.
catch cx_sy_itab_line_not_found.
raise exception
type zcx_aps_unknown_parameter
exporting
i_parametername = conv #( i_parametername ).
endtry.
endmethod.
method zif_aps_parameterSet_func~getexportingvalue.
try.
result = functionUnitParameters[
name = i_parametername
]-value.
catch cx_sy_itab_line_not_found.
raise exception
type zcx_aps_unknown_parameter
exporting
i_parametername = conv #( i_parametername ).
endtry.
endmethod.
method zif_aps_parameterSet_func~gettablesvalue.
try.
result = functionUnitParameters[
name = i_parametername
]-value.
catch cx_sy_itab_line_not_found.
raise exception
type zcx_aps_unknown_parameter
exporting
i_parametername = conv #( i_parametername ).
endtry.
endmethod.
method zif_aps_parameterSet_func~setchangingvalue.
try.
data(currentParameter) = functionUnitParameters[
name = i_parametername
]-value.
catch cx_sy_itab_line_not_found.
raise exception
type zcx_aps_unknown_parameter
exporting
i_parametername = conv #( i_parametername ).
endtry.
copyContentOfDataRef(
i_source = i_parameterValue
i_target = currentParameter
).
endmethod.
method zif_aps_parameterSet_func~setexportingvalue.
try.
data(currentParameter) = functionUnitParameters[
name = i_parametername
]-value.
catch cx_sy_itab_line_not_found.
raise exception
type zcx_aps_unknown_parameter
exporting
i_parametername = conv #( i_parametername ).
endtry.
copyContentOfDataRef(
i_source = i_parameterValue
i_target = currentParameter
).
endmethod.
method zif_aps_parameterSet_func~settablesvalue.
try.
data(currentParameter) = functionUnitParameters[
name = i_parametername
]-value.
catch cx_sy_itab_line_not_found.
raise exception
type zcx_aps_unknown_parameter
exporting
i_parametername = conv #( i_parametername ).
endtry.
copyContentOfDataRef(
i_source = i_parameterValue
i_target = currentParameter
).
endmethod.
method constructor.
settings = i_settings.
loadFunctionUnitParams( ).
endmethod.
method loadFunctionUnitParams.
data:
exportingParameters type rsfb_exp,
importingParameters type rsfb_imp,
tablesParameters type rsfb_tbl.
call function 'FUNCTION_IMPORT_INTERFACE'
exporting
funcname = conv rs38l_fnam( settings->getNameOfExecutable( ) )
tables
exception_list = funcExceptions
export_parameter = exportingParameters
import_parameter = importingParameters
changing_parameter = funcChangingparameters
tables_parameter = tablesParameters
exceptions
error_message = 1
function_not_found = 2
invalid_name = 3
others = 4.
if sy-subrc <> 0.
raise exception
type zcx_aps_unknown_executable
exporting
i_executablename = settings->getNameOfExecutable( ).
endif.
" all other parameters tables have a subset of the changing parameters structure.
" so, we use this one for all of them
funcExportingparameters = corresponding #(
exportingParameters
).
funcImportingparameters = corresponding #(
importingParameters
).
" correction:
" the tables parrameters have a field dbstruct but table_of = abap_false
" as this is impicitely clear that this is a table of.
" We want to use a common structure and therefor need table_of = abap_true set explicitely.
funcTableParameters = value #(
for tableParameter in tablesParameters
(
value rscha(
base tableParameter
dbfield = tableParameter-dbstruct
table_of = abap_true
)
)
).
endmethod.
method zif_aps_parameterset_func~getexceptionstab.
loop at funcExceptions
reference into data(exception).
data(desiredSubRc) = sy-tabix.
insert value #(
name = exception->exception
value = desiredSubRc
)
into table result.
endloop.
insert value #(
name = 'OTHERS'
value = lines( funcExceptions ) + 1
)
into table result.
endmethod.
method zif_aps_parameterset_func~getparameterstab.
result = functionUnitParameters.
endmethod.
method createDataRefForParameter.
if not i_parameterTypeDefinition-dbfield is initial.
createDataRefDDICReference(
i_parameterTypeDefinition = i_parameterTypeDefinition
i_parmbindEntry = i_parmbindEntry
).
elseif not i_parameterTypeDefinition-ref_class is initial.
createDataRefObject(
i_parameterTypeDefinition = i_parameterTypeDefinition
i_parmbindEntry = i_parmbindEntry
).
else.
createDataRefInternal(
i_parameterTypeDefinition = i_parameterTypeDefinition
i_parmbindEntry = i_parmbindEntry
).
endif.
endmethod.
method createDataRefDDICReference.
try.
data(DDICName) = cond #(
when not i_parameterTypeDefinition-dbfield is initial
then i_parameterTypeDefinition-dbfield
when not i_parameterTypeDefinition-line_of is initial
then i_parameterTypeDefinition-line_of
else space
).
cl_abap_typedescr=>describe_by_name(
exporting
p_name = DDICName
receiving
p_descr_ref = data(datatypeDescriptor)
exceptions
type_not_found = 1
others = 2
).
if sy-subrc ne 0.
raise exception
type zcx_aps_unknown_parameter
exporting
i_parametername = conv #( i_parameterTypeDefinition-parameter ).
endif.
data(dataDescriptor) = cast cl_abap_datadescr( dataTypeDescriptor ).
if i_parameterTypeDefinition-table_of = abap_true.
dataDescriptor = cast cl_abap_datadescr( cl_abap_tabledescr=>create( dataDescriptor ) ).
endif.
create data i_parmbindEntry->value
type handle dataDescriptor.
catch cx_sy_itab_line_not_found
cx_sy_move_cast_error
cx_sy_create_data_error.
raise exception
type zcx_aps_unknown_parameter
exporting
i_parametername = conv #( i_parameterTypeDefinition-parameter ).
endtry.
endmethod.
method createDataRefObject.
" that's a hard one. object references are global in memory and if you copy them
" they don't get freed as long as there is still a reference somewhere
" so here we don't need to create a new data area and copy the contents.
" Copying the reference is enough.
endmethod.
method createDataRefInternal.
try.
create data i_parmbindEntry->value
type (i_parameterTypeDefinition-typ).
catch cx_sy_create_data_error.
raise exception
type zcx_aps_unknown_parameter
exporting
i_parametername = conv #( i_parameterTypeDefinition-parameter ).
endtry.
endmethod.
method copyContentOfDataRef.
if i_source is bound
and i_target is bound.
assign i_target->*
to field-symbol(<parameter>).
if sy-subrc ne 0.
return.
endif.
assign i_source->*
to field-symbol(<input>).
if sy-subrc ne 0.
return.
endif.
<parameter> = <input>.
endif.
endmethod.
endclass.
| [
4871,
1976,
565,
62,
1686,
62,
17143,
7307,
316,
62,
20786,
6770,
198,
220,
1171,
198,
220,
2457,
198,
220,
2251,
2839,
198,
220,
3298,
2460,
1976,
565,
62,
1686,
62,
17143,
7307,
316,
62,
69,
9548,
13,
628,
220,
1171,
2665,
13,
198,
220,
220,
220,
20314,
25,
198,
220,
220,
220,
220,
220,
1976,
361,
62,
1686,
62,
17143,
2357,
7248,
62,
20786,
13,
628,
220,
220,
220,
5050,
25,
198,
220,
220,
220,
220,
220,
23772,
198,
220,
220,
220,
220,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
62,
33692,
220,
220,
220,
220,
220,
2099,
1006,
284,
1976,
361,
62,
1686,
62,
33692,
198,
220,
220,
220,
220,
220,
220,
220,
8620,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
1686,
62,
34680,
62,
18558,
18187,
13,
628,
220,
6861,
2665,
13,
198,
220,
2839,
2665,
13,
198,
220,
220,
220,
366,
477,
584,
10007,
8893,
423,
257,
24637,
286,
262,
5609,
10007,
4645,
13,
198,
220,
220,
220,
366,
523,
11,
356,
779,
428,
530,
329,
477,
286,
606,
355,
257,
2219,
4645,
198,
220,
220,
220,
1366,
25,
198,
220,
220,
220,
220,
220,
6460,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
1006,
284,
1976,
361,
62,
1686,
62,
33692,
11,
198,
220,
220,
220,
220,
220,
2163,
26453,
48944,
220,
220,
220,
2099,
450,
499,
62,
20786,
62,
79,
1670,
21653,
62,
8658,
11,
198,
220,
220,
220,
220,
220,
25439,
3109,
26527,
17143,
7307,
220,
220,
2099,
44608,
21855,
62,
11693,
11,
198,
220,
220,
220,
220,
220,
25439,
20939,
278,
17143,
7307,
220,
220,
2099,
44608,
21855,
62,
11693,
11,
198,
220,
220,
220,
220,
220,
25439,
48333,
17143,
7307,
220,
220,
220,
2099,
44608,
21855,
62,
11693,
11,
198,
220,
220,
220,
220,
220,
25439,
3109,
11755,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
44608,
21855,
62,
41194,
11,
198,
220,
220,
220,
220,
220,
25439,
10962,
17143,
7307,
220,
220,
220,
220,
220,
220,
2099,
44608,
21855,
62,
11693,
13,
628,
220,
220,
220,
5050,
25,
198,
220,
220,
220,
220,
220,
3440,
22203,
26453,
10044,
4105,
198,
220,
220,
220,
220,
220,
220,
220,
8620,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
1686,
62,
34680,
62,
18558,
18187,
11,
628,
220,
220,
220,
220,
220,
2251,
6601,
8134,
1890,
36301,
198,
220,
220,
220,
220,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
62,
17143,
2357,
31467,
276,
891,
17750,
2099,
44608,
11693,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
62,
79,
1670,
21653,
30150,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
1006,
284,
450,
499,
62,
20786,
62,
79,
1670,
21653,
198,
220,
220,
220,
220,
220,
220,
220,
8620,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
1686,
62,
34680,
62,
17143,
2357,
11,
628,
220,
220,
220,
220,
220,
2251,
6601,
8134,
16458,
2149,
26687,
198,
220,
220,
220,
220,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
62,
17143,
2357,
31467,
276,
891,
17750,
2099,
44608,
11693,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
62,
79,
1670,
21653,
30150,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
1006,
284,
450,
499,
62,
20786,
62,
79,
1670,
21653,
198,
220,
220,
220,
220,
220,
220,
220,
8620,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
1686,
62,
34680,
62,
17143,
2357,
11,
628,
220,
220,
220,
220,
220,
2251,
6601,
8134,
10267,
198,
220,
220,
220,
220,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
62,
17143,
2357,
31467,
276,
891,
17750,
2099,
44608,
11693,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
62,
79,
1670,
21653,
30150,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
1006,
284,
450,
499,
62,
20786,
62,
79,
1670,
21653,
198,
220,
220,
220,
220,
220,
220,
220,
8620,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
1686,
62,
34680,
62,
17143,
2357,
11,
628,
220,
220,
220,
220,
220,
2251,
6601,
8134,
37693,
198,
220,
220,
220,
220,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
62,
17143,
2357,
31467,
276,
891,
17750,
2099,
44608,
11693,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
62,
79,
1670,
21653,
30150,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
1006,
284,
450,
499,
62,
20786,
62,
79,
1670,
21653,
198,
220,
220,
220,
220,
220,
220,
220,
8620,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
1686,
62,
34680,
62,
17143,
2357,
11,
628,
220,
220,
220,
220,
220,
4866,
19746,
5189,
6601,
8134,
198,
220,
220,
220,
220,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
62,
10459,
220,
220,
220,
220,
220,
220,
220,
2099,
1006,
284,
1366,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
62,
16793,
220,
220,
220,
220,
220,
220,
220,
2099,
1006,
284,
1366,
13,
628,
198,
437,
4871,
13,
628,
198,
198,
4871,
1976,
565,
62,
1686,
62,
17143,
7307,
316,
62,
20786,
7822,
13,
198,
220,
2446,
1976,
361,
62,
1686,
62,
17143,
2357,
7248,
62,
20786,
93,
2860,
22954,
13,
198,
220,
220,
220,
1949,
13,
198,
220,
220,
220,
220,
220,
1366,
7,
17143,
2357,
6030,
36621,
8,
796,
25439,
48333,
48944,
58,
11507,
796,
1312,
62,
17143,
316,
13292,
20740,
198,
220,
220,
220,
4929,
43213,
62,
1837,
62,
270,
397,
62,
1370,
62,
1662,
62,
9275,
13,
198,
220,
220,
220,
220,
220,
5298,
6631,
198,
220,
220,
220,
220,
220,
220,
220,
2099,
1976,
66,
87,
62,
1686,
62,
34680,
62,
17143,
2357,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_advent2020_day10_gw DEFINITION
PUBLIC
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
INTERFACES zif_advent2020_gw .
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS zcl_advent2020_day10_gw IMPLEMENTATION.
METHOD zif_advent2020_gw~solve.
output = 'todo'.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
324,
1151,
42334,
62,
820,
940,
62,
70,
86,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
324,
1151,
42334,
62,
70,
86,
764,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
565,
62,
324,
1151,
42334,
62,
820,
940,
62,
70,
86,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
324,
1151,
42334,
62,
70,
86,
93,
82,
6442,
13,
628,
220,
220,
220,
5072,
796,
705,
83,
24313,
4458,
628,
220,
23578,
49273,
13,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
"! <h1>API for Updating a Travel</h1>
"!
"! <p>
"! Function module to update a single Travel instance with the possibility to update related Bookings and
"! Booking Supplements in the same call.
"! </p>
"!
"! <p>
"! For an operation only on a Booking or Booking Supplement the Travel Data Change Flag structure still must be applied.
"! It then contains only the <em>travel_id</em> and all flags set to <em>false</em> respectively left <em>initial</em>.
"! </p>
"!
"!
"! @parameter is_travel | Travel Data
"! @parameter is_travelx | Travel Data Change Flags
"! @parameter it_booking | Table of predefined Booking Key <em>booking_id</em> and Booking Data
"! @parameter it_bookingx | Change Flag Table of Booking Data with predefined Booking Key <em>booking_id</em>
"! @parameter it_booking_supplement | Table of predefined Booking Supplement Key <em>booking_id</em>, <em>booking_supplement_id</em> and Booking Supplement Data
"! @parameter it_booking_supplementx | Change Flag Table of Booking Supplement Data with predefined Booking Supplement Key <em>booking_id</em>, <em>booking_supplement_id</em>
"! @parameter es_travel | Evaluated Travel Data like /DMO/TRAVEL29
"! @parameter et_booking | Table of evaluated Bookings like /DMO/BOOKING29
"! @parameter et_booking_supplement | Table of evaluated Booking Supplements like /DMO/BOOK_SUP_29
"! @parameter et_messages | Table of occurred messages
"!
FUNCTION /DMO/FLIGHT_TRAVEL_UPDATE29.
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" REFERENCE(IS_TRAVEL) TYPE /DMO/IF_FLIGHT_LEGACY29=>TS_TRAVEL_IN
*" REFERENCE(IS_TRAVELX) TYPE /DMO/IF_FLIGHT_LEGACY29=>TS_TRAVEL_INX
*" REFERENCE(IT_BOOKING) TYPE /DMO/IF_FLIGHT_LEGACY29=>TT_BOOKING_IN
*" OPTIONAL
*" REFERENCE(IT_BOOKINGX) TYPE
*" /DMO/IF_FLIGHT_LEGACY29=>TT_BOOKING_INX OPTIONAL
*" REFERENCE(IT_BOOKING_SUPPLEMENT) TYPE
*" /DMO/IF_FLIGHT_LEGACY29=>TT_BOOKING_SUPPLEMENT_IN OPTIONAL
*" REFERENCE(IT_BOOKING_SUPPLEMENTX) TYPE
*" /DMO/IF_FLIGHT_LEGACY29=>TT_BOOKING_SUPPLEMENT_INX OPTIONAL
*" EXPORTING
*" REFERENCE(ES_TRAVEL) TYPE /DMO/TRAVEL29
*" REFERENCE(ET_BOOKING) TYPE /DMO/IF_FLIGHT_LEGACY29=>TT_BOOKING
*" REFERENCE(ET_BOOKING_SUPPLEMENT) TYPE
*" /DMO/IF_FLIGHT_LEGACY29=>TT_BOOKING_SUPPLEMENT
*" REFERENCE(ET_MESSAGES) TYPE /DMO/IF_FLIGHT_LEGACY29=>TT_MESSAGE
*"----------------------------------------------------------------------
CLEAR es_travel.
CLEAR et_booking.
CLEAR et_booking_supplement.
CLEAR et_messages.
/dmo/cl_flight_legacy29=>get_instance( )->update_travel( EXPORTING is_travel = is_travel
it_booking = it_booking
it_booking_supplement = it_booking_supplement
is_travelx = is_travelx
it_bookingx = it_bookingx
it_booking_supplementx = it_booking_supplementx
IMPORTING es_travel = es_travel
et_booking = et_booking
et_booking_supplement = et_booking_supplement
et_messages = DATA(lt_messages) ).
/dmo/cl_flight_legacy29=>get_instance( )->convert_messages( EXPORTING it_messages = lt_messages
IMPORTING et_messages = et_messages ).
ENDFUNCTION.
| [
40484,
1279,
71,
16,
29,
17614,
329,
3205,
38734,
257,
13524,
3556,
71,
16,
29,
198,
40484,
198,
40484,
1279,
79,
29,
198,
40484,
15553,
8265,
284,
4296,
257,
2060,
13524,
4554,
351,
262,
5885,
284,
4296,
3519,
4897,
654,
290,
198,
40484,
4897,
278,
8105,
3639,
287,
262,
976,
869,
13,
198,
40484,
7359,
79,
29,
198,
40484,
198,
40484,
1279,
79,
29,
198,
40484,
1114,
281,
4905,
691,
319,
257,
4897,
278,
393,
4897,
278,
23150,
262,
13524,
6060,
9794,
19762,
4645,
991,
1276,
307,
5625,
13,
198,
40484,
632,
788,
4909,
691,
262,
1279,
368,
29,
35927,
62,
312,
3556,
368,
29,
290,
477,
9701,
900,
284,
1279,
368,
29,
9562,
3556,
368,
29,
8148,
1364,
1279,
368,
29,
36733,
3556,
368,
28401,
198,
40484,
7359,
79,
29,
198,
40484,
198,
40484,
198,
40484,
2488,
17143,
2357,
318,
62,
35927,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
13524,
6060,
198,
40484,
2488,
17143,
2357,
318,
62,
35927,
87,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
13524,
6060,
9794,
34771,
198,
40484,
2488,
17143,
2357,
340,
62,
2070,
278,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
8655,
286,
2747,
18156,
4897,
278,
7383,
1279,
368,
29,
2070,
278,
62,
312,
3556,
368,
29,
290,
4897,
278,
6060,
198,
40484,
2488,
17143,
2357,
340,
62,
2070,
278,
87,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
9794,
19762,
8655,
286,
4897,
278,
6060,
351,
2747,
18156,
4897,
278,
7383,
1279,
368,
29,
2070,
278,
62,
312,
3556,
368,
29,
198,
40484,
2488,
17143,
2357,
340,
62,
2070,
278,
62,
18608,
1732,
220,
930,
8655,
286,
2747,
18156,
4897,
278,
23150,
7383,
1279,
368,
29,
2070,
278,
62,
312,
3556,
368,
22330,
1279,
368,
29,
2070,
278,
62,
18608,
1732,
62,
312,
3556,
368,
29,
290,
4897,
278,
23150,
6060,
198,
40484,
2488,
17143,
2357,
340,
62,
2070,
278,
62,
18608,
1732,
87,
930,
9794,
19762,
8655,
286,
4897,
278,
23150,
6060,
351,
2747,
18156,
4897,
278,
23150,
7383,
1279,
368,
29,
2070,
278,
62,
312,
3556,
368,
22330,
1279,
368,
29,
2070,
278,
62,
18608,
1732,
62,
312,
3556,
368,
29,
198,
40484,
2488,
17143,
2357,
1658,
62,
35927,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
26439,
6605,
13524,
6060,
588,
1220,
35,
11770,
14,
51,
3861,
18697,
1959,
198,
40484,
2488,
17143,
2357,
2123,
62,
2070,
278,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
8655,
286,
16726,
4897,
654,
588,
1220,
35,
11770,
14,
39453,
2751,
1959,
198,
40484,
2488,
17143,
2357,
2123,
62,
2070,
278,
62,
18608,
1732,
220,
930,
8655,
286,
16726,
4897,
278,
8105,
3639,
588,
1220,
35,
11770,
14,
39453,
62,
40331,
62,
1959,
198,
40484,
2488,
17143,
2357,
2123,
62,
37348,
1095,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
8655,
286,
5091,
6218,
198,
40484,
198,
42296,
4177,
2849,
1220,
35,
11770,
14,
3697,
9947,
62,
51,
3861,
18697,
62,
16977,
1959,
13,
198,
9,
1,
10097,
23031,
198,
9,
1,
9,
1,
14565,
26491,
25,
198,
9,
1,
220,
30023,
9863,
2751,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
1797,
62,
51,
3861,
18697,
8,
41876,
220,
1220,
35,
11770,
14,
5064,
62,
3697,
9947,
62,
2538,
38,
43300,
1959,
14804,
4694,
62,
51,
3861,
18697,
62,
1268,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
1797,
62,
51,
3861,
18697,
55,
8,
41876,
220,
1220,
35,
11770,
14,
5064,
62,
3697,
9947,
62,
2538,
38,
43300,
1959,
14804,
4694,
62,
51,
3861,
18697,
62,
1268,
55,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
2043,
62,
39453,
2751,
8,
41876,
220,
1220,
35,
11770,
14,
5064,
62,
3697,
9947,
62,
2538,
38,
43300,
1959,
14804,
15751,
62,
39453,
2751,
62,
1268,
198,
9,
1,
220,
220,
220,
220,
220,
220,
39852,
2849,
1847,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
2043,
62,
39453,
2751,
55,
8,
41876,
198,
9,
1,
220,
220,
220,
220,
220,
220,
220,
1220,
35,
11770,
14,
5064,
62,
3697,
9947,
62,
2538,
38,
43300,
1959,
14804,
15751,
62,
39453,
2751,
62,
1268,
55,
39852,
2849,
1847,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
2043,
62,
39453,
2751,
62,
40331,
16437,
10979,
8,
41876,
198,
9,
1,
220,
220,
220,
220,
220,
220,
220,
1220,
35,
11770,
14,
5064,
62,
3697,
9947,
62,
2538,
38,
43300,
1959,
14804,
15751,
62,
39453,
2751,
62,
40331,
16437,
10979,
62,
1268,
39852,
2849,
1847,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
2043,
62,
39453,
2751,
62,
40331,
16437,
10979,
55,
8,
41876,
198,
9,
1,
220,
220,
220,
220,
220,
220,
220,
1220,
35,
11770,
14,
5064,
62,
3697,
9947,
62,
2538,
38,
43300,
1959,
14804,
15751,
62,
39453,
2751,
62,
40331,
16437,
10979,
62,
1268,
55,
39852,
2849,
1847,
198,
9,
1,
220,
7788,
15490,
2751,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
1546,
62,
51,
3861,
18697,
8,
41876,
220,
1220,
35,
11770,
14,
51,
3861,
18697,
1959,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
2767,
62,
39453,
2751,
8,
41876,
220,
1220,
35,
11770,
14,
5064,
62,
3697,
9947,
62,
2538,
38,
43300,
1959,
14804,
15751,
62,
39453,
2751,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
2767,
62,
39453,
2751,
62,
40331,
16437,
10979,
8,
41876,
198,
9,
1,
220,
220,
220,
220,
220,
220,
220,
1220,
35,
11770,
14,
5064,
62,
3697,
9947,
62,
2538,
38,
43300,
1959,
14804,
15751,
62,
39453,
2751,
62,
40331,
16437,
10979,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
2767,
62,
44,
1546,
4090,
48075,
8,
41876,
220,
1220,
35,
11770,
14,
5064,
62,
3697,
9947,
62,
2538,
38,
43300,
1959,
14804,
15751,
62,
44,
1546,
4090,
8264,
198,
9,
1,
10097,
23031,
198,
220,
30301,
1503,
1658,
62,
35927,
13,
198,
220,
30301,
1503,
2123
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
"! <p class="shorttext synchronized" lang="en">General Exception</p>
CLASS zcx_advoat_exception DEFINITION
PUBLIC
INHERITING FROM cx_static_check
CREATE PUBLIC .
PUBLIC SECTION.
INTERFACES:
if_t100_message.
DATA:
msgv1 TYPE sy-msgv1,
msgv2 TYPE sy-msgv2,
msgv3 TYPE sy-msgv3,
msgv4 TYPE sy-msgv4.
METHODS:
"! <p class="shorttext synchronized" lang="en">CONSTRUCTOR</p>
constructor
IMPORTING
previous LIKE previous OPTIONAL
text TYPE string OPTIONAL.
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS zcx_advoat_exception IMPLEMENTATION.
METHOD constructor ##ADT_SUPPRESS_GENERATION.
DATA: fill_t100key TYPE abap_bool.
CALL METHOD super->constructor
EXPORTING
previous = previous.
CLEAR textid.
IF text IS NOT INITIAL.
fill_t100key = abap_true.
zcl_advoat_message_util=>split_string_to_symsg( text ).
ELSEIF sy-msgid IS NOT INITIAL.
fill_t100key = abap_true.
ENDIF.
IF fill_t100key = abap_true.
msgv1 = sy-msgv1.
msgv2 = sy-msgv2.
msgv3 = sy-msgv3.
msgv4 = sy-msgv4.
if_t100_message~t100key = VALUE #(
msgid = sy-msgid
msgno = sy-msgno
attr1 = 'MSGV1'
attr2 = 'MSGV2'
attr3 = 'MSGV3'
attr4 = 'MSGV4' ).
ELSE.
if_t100_message~t100key = if_t100_message=>default_textid.
ENDIF.
me->previous = previous.
ENDMETHOD.
ENDCLASS.
| [
40484,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
12218,
35528,
3556,
79,
29,
198,
31631,
1976,
66,
87,
62,
324,
13038,
265,
62,
1069,
4516,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
43213,
62,
12708,
62,
9122,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
23255,
37,
2246,
1546,
25,
198,
220,
220,
220,
220,
220,
611,
62,
83,
3064,
62,
20500,
13,
628,
220,
220,
220,
42865,
25,
198,
220,
220,
220,
220,
220,
31456,
85,
16,
41876,
827,
12,
19662,
85,
16,
11,
198,
220,
220,
220,
220,
220,
31456,
85,
17,
41876,
827,
12,
19662,
85,
17,
11,
198,
220,
220,
220,
220,
220,
31456,
85,
18,
41876,
827,
12,
19662,
85,
18,
11,
198,
220,
220,
220,
220,
220,
31456,
85,
19,
41876,
827,
12,
19662,
85,
19,
13,
628,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
10943,
46126,
1581,
3556,
79,
29,
198,
220,
220,
220,
220,
220,
23772,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2180,
34178,
2180,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2420,
220,
220,
220,
220,
41876,
4731,
39852,
2849,
1847,
13,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
66,
87,
62,
324,
13038,
265,
62,
1069,
4516,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
23772,
22492,
2885,
51,
62,
40331,
32761,
62,
35353,
1137,
6234,
13,
198,
220,
220,
220,
42865,
25,
6070,
62,
83,
3064,
2539,
41876,
450,
499,
62,
30388,
13,
628,
220,
220,
220,
42815,
337,
36252,
2208,
3784,
41571,
273,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
2180,
796,
2180,
13,
628,
220,
220,
220,
30301,
1503,
2420,
312,
13,
628,
220,
220,
220,
16876,
2420,
3180,
5626,
3268,
2043,
12576,
13,
198,
220,
220,
220,
220,
220,
6070,
62,
83,
3064,
2539,
796,
450,
499,
62,
7942,
13,
198,
220,
220,
220,
220,
220,
1976,
565,
62,
324,
13038,
265,
62,
20500,
62,
22602,
14804,
35312,
62,
8841,
62,
1462,
62,
1837,
19662,
7,
2420,
6739,
198,
220,
220,
220,
17852,
5188,
5064,
827,
12,
19662,
312,
3180,
5626,
3268,
2043,
12576,
13,
198,
220,
220,
220,
220,
220,
6070,
62,
83,
3064,
2539,
796,
450,
499,
62,
7942,
13,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
16876,
6070,
62,
83,
3064,
2539,
796,
450,
499,
62,
7942,
13,
198,
220,
220,
220,
220,
220,
31456,
85,
16,
796,
827,
12,
19662,
85,
16,
13,
198,
220,
220,
220,
220,
220,
31456,
85,
17,
796,
827,
12,
19662,
85,
17,
13,
198,
220,
220,
220,
220,
220,
31456,
85,
18,
796,
827,
12,
19662,
85,
18,
13,
198,
220,
220,
220,
220,
220,
31456,
85,
19,
796,
827,
12,
19662,
85,
19,
13,
198,
220,
220,
220,
220,
220,
611,
62,
83,
3064,
62,
20500,
93,
83,
3064,
2539,
796,
26173,
8924,
1303,
7,
198,
220,
220,
220,
220,
220,
220,
220,
31456,
312,
796,
827,
12,
19662,
312,
198,
220,
220,
220,
220,
220,
220,
220,
31456,
3919,
796,
827,
12,
19662,
3919,
198,
220,
220,
220,
220,
220,
220,
220,
708,
81,
16,
796,
705,
5653,
37094,
16,
6,
198,
220,
220,
220,
220,
220,
220,
220,
708,
81,
17,
796,
705,
5653,
37094,
17,
6,
198,
220,
220,
220,
220,
220,
220,
220,
708,
81,
18,
796,
705,
5653,
37094,
18,
6,
198,
220,
220,
220,
220,
220,
220,
220,
708,
81,
19,
796,
705,
5653,
37094,
19,
6,
6739,
198,
220,
220,
220,
17852,
5188,
13,
198,
220,
220,
220,
220,
220,
611,
62,
83,
3064,
62,
20500,
93,
83,
3064,
2539,
796,
611,
62,
83,
3064,
62,
20500,
14804,
12286,
62,
5239,
312,
13,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
502,
3784,
3866,
1442,
796,
2180,
13,
198,
220,
23578,
49273,
13,
198,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
*******************************************************************
* System-defined Include-files. *
*******************************************************************
INCLUDE LZEWM_RF_ROBCOTOP. " Global Declarations
INCLUDE LZEWM_RF_ROBCOUXX. " Function Modules
*******************************************************************
* User-defined Include-files (if necessary). *
*******************************************************************
* INCLUDE LZEWM_RF_ROBCOF... " Subroutines
* INCLUDE LZEWM_RF_ROBCOO... " PBO-Modules
* INCLUDE LZEWM_RF_ROBCOI... " PAI-Modules
* INCLUDE LZEWM_RF_ROBCOE... " Events
* INCLUDE LZEWM_RF_ROBCOP... " Local class implement.
* INCLUDE LZEWM_RF_ROBCOT99. " ABAP Unit tests
| [
17174,
17174,
8162,
198,
9,
220,
220,
4482,
12,
23211,
40348,
12,
16624,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
198,
17174,
17174,
8162,
198,
220,
3268,
5097,
52,
7206,
406,
57,
6217,
44,
62,
32754,
62,
13252,
2749,
2394,
3185,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
8060,
16691,
24355,
198,
220,
3268,
5097,
52,
7206,
406,
57,
6217,
44,
62,
32754,
62,
13252,
2749,
2606,
8051,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
15553,
3401,
5028,
198,
198,
17174,
17174,
8162,
198,
9,
220,
220,
11787,
12,
23211,
40348,
12,
16624,
357,
361,
3306,
737,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
198,
17174,
17174,
8162,
198,
9,
3268,
5097,
52,
7206,
406,
57,
6217,
44,
62,
32754,
62,
13252,
2749,
19238,
986,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
3834,
81,
448,
1127,
198,
9,
3268,
5097,
52,
7206,
406,
57,
6217,
44,
62,
32754,
62,
13252,
2749,
6684,
986,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
350,
8202,
12,
5841,
5028,
198,
9,
3268,
5097,
52,
7206,
406,
57,
6217,
44,
62,
32754,
62,
13252,
2749,
46,
40,
986,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
8147,
40,
12,
5841,
5028,
198,
9,
3268,
5097,
52,
7206,
406,
57,
6217,
44,
62,
32754,
62,
13252,
2749,
27799,
986,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
18715,
198,
9,
3268,
5097,
52,
7206,
406,
57,
6217,
44,
62,
32754,
62,
13252,
2749,
3185,
986,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
10714,
1398,
3494,
13,
198,
9,
3268,
5097,
52,
7206,
406,
57,
6217,
44,
62,
32754,
62,
13252,
2749,
2394,
2079,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
9564,
2969,
11801,
5254,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
*&---------------------------------------------------------------------*
*& Local class definition - General for Transaction Processing
*&---------------------------------------------------------------------*
CLASS lcl_tools DEFINITION.
PUBLIC SECTION.
CONSTANTS:
BEGIN OF cs_condition,
true TYPE sy-binpt VALUE 'T',
false TYPE sy-binpt VALUE 'F',
END OF cs_condition.
CLASS-METHODS are_structures_different
IMPORTING
ir_data1 TYPE REF TO data
ir_data2 TYPE REF TO data
RETURNING
VALUE(rv_result) TYPE sy-binpt
RAISING
cx_udm_message.
CLASS-METHODS get_postal_address
IMPORTING
iv_node_id TYPE /scmtms/bo_node_id
EXPORTING
et_postal_address TYPE /bofu/t_addr_postal_addressk
RAISING
cx_udm_message.
CLASS-METHODS get_field_of_structure
IMPORTING
ir_struct_data TYPE REF TO data
iv_field_name TYPE clike
RETURNING
VALUE(rv_value) TYPE char50
RAISING
cx_udm_message.
CLASS-METHODS get_errors_log
IMPORTING
io_umd_message TYPE REF TO cx_udm_message
iv_appsys TYPE c
EXPORTING
es_bapiret TYPE bapiret2.
CLASS-METHODS get_local_timestamp
IMPORTING
iv_date TYPE any DEFAULT sy-datum
iv_time TYPE any DEFAULT sy-uzeit
RETURNING
VALUE(rv_timestamp) TYPE /saptrx/event_exp_datetime.
CLASS-METHODS get_pretty_value
IMPORTING
iv_value TYPE any
RETURNING
VALUE(rv_pretty) TYPE /saptrx/paramval200.
CLASS-METHODS get_system_time_zone
RETURNING
VALUE(rv_tzone) TYPE timezone
RAISING
cx_udm_message.
CLASS-METHODS get_system_date_time
RETURNING
VALUE(rv_datetime) TYPE string
RAISING
cx_udm_message.
CLASS-METHODS is_number
IMPORTING
iv_value TYPE any
RETURNING
VALUE(rv_result) TYPE abap_bool.
CLASS-METHODS is_table
IMPORTING
iv_value TYPE any
RETURNING
VALUE(rv_result) TYPE abap_bool.
CLASS-METHODS throw_exception
IMPORTING
iv_textid TYPE sotr_conc DEFAULT ''
RAISING
cx_udm_message.
CLASS-METHODS get_stop_points
IMPORTING
iv_root_id TYPE /scmtms/tor_id
it_stop TYPE /scmtms/t_em_bo_tor_stop
EXPORTING
et_stop_points TYPE lif_ef_types=>tt_stop_points.
CLASS-METHODS is_odd
IMPORTING
iv_value TYPE n
RETURNING
VALUE(rv_is_odd) TYPE abap_bool.
CLASS-METHODS get_capa_match_key
IMPORTING
iv_assgn_stop_key TYPE /scmtms/tor_stop_key
it_capa_stop TYPE /scmtms/t_em_bo_tor_stop
it_capa_root TYPE /scmtms/t_em_bo_tor_root
RETURNING
VALUE(rv_capa_matchkey) TYPE /saptrx/loc_id_2.
CLASS-METHODS check_is_fo_deleted
IMPORTING
is_root_new TYPE /scmtms/s_em_bo_tor_root
is_root_old TYPE /scmtms/s_em_bo_tor_root
RETURNING
VALUE(rv_result) TYPE lif_ef_types=>tv_condition
RAISING
cx_udm_message.
CLASS-METHODS get_fo_tracked_item_obj
IMPORTING
is_app_object TYPE trxas_appobj_ctab_wa
is_root TYPE /scmtms/s_em_bo_tor_root
it_item TYPE /scmtms/t_em_bo_tor_item
iv_appsys TYPE /saptrx/applsystem
iv_old_data TYPE abap_bool DEFAULT abap_false
CHANGING
ct_track_id_data TYPE lif_ef_types=>tt_enh_track_id_data
RAISING
cx_udm_message.
CLASS-METHODS get_track_obj_changes
IMPORTING
is_app_object TYPE trxas_appobj_ctab_wa
iv_appsys TYPE /saptrx/applsystem
it_track_id_data_new TYPE lif_ef_types=>tt_enh_track_id_data
it_track_id_data_old TYPE lif_ef_types=>tt_enh_track_id_data
CHANGING
ct_track_id_data TYPE lif_ef_types=>tt_track_id_data
RAISING
cx_udm_message.
ENDCLASS.
CLASS lcl_tools IMPLEMENTATION.
METHOD get_track_obj_changes.
CONSTANTS: cs_mtr_truck TYPE string VALUE '31',
cs_trxcod_resource TYPE string VALUE 'RESOURCE'.
DATA(lt_track_id_data_new) = it_track_id_data_new.
DATA(lt_track_id_data_old) = it_track_id_data_old.
LOOP AT lt_track_id_data_new ASSIGNING FIELD-SYMBOL(<ls_track_id_data>) WHERE trxcod = cs_trxcod_resource.
READ TABLE lt_track_id_data_old WITH KEY key = <ls_track_id_data>-key ASSIGNING FIELD-SYMBOL(<ls_track_id_data_old>).
IF sy-subrc = 0.
DATA(lt_fields) = CAST cl_abap_structdescr(
cl_abap_typedescr=>describe_by_data(
p_data = <ls_track_id_data> )
)->get_included_view( ).
DATA(lv_result) = abap_false.
LOOP AT lt_fields ASSIGNING FIELD-SYMBOL(<ls_fields>).
ASSIGN COMPONENT <ls_fields>-name OF STRUCTURE <ls_track_id_data> TO FIELD-SYMBOL(<lv_value1>).
ASSIGN COMPONENT <ls_fields>-name OF STRUCTURE <ls_track_id_data_old> TO FIELD-SYMBOL(<lv_value2>).
IF <lv_value1> IS ASSIGNED AND
<lv_value2> IS ASSIGNED.
IF <lv_value1> <> <lv_value2>.
lv_result = abap_true.
EXIT.
ENDIF.
ENDIF.
ENDLOOP.
IF lv_result = abap_true.
APPEND VALUE #( appsys = iv_appsys
appobjtype = is_app_object-appobjtype
appobjid = is_app_object-appobjid
trxcod = <ls_track_id_data>-trxcod
trxid = <ls_track_id_data>-trxid
start_date = lcl_tools=>get_system_date_time( )
end_date = lif_ef_constants=>cv_max_end_date
timzon = lcl_tools=>get_system_time_zone( )
msrid = space ) TO ct_track_id_data.
APPEND VALUE #( appsys = iv_appsys
appobjtype = is_app_object-appobjtype
appobjid = is_app_object-appobjid
trxcod = <ls_track_id_data_old>-trxcod
trxid = <ls_track_id_data_old>-trxid
start_date = lcl_tools=>get_system_date_time( )
end_date = lif_ef_constants=>cv_max_end_date
timzon = lcl_tools=>get_system_time_zone( )
msrid = space
action = /scmtms/cl_scem_int_c=>sc_param_action-delete ) TO ct_track_id_data.
ENDIF.
DELETE lt_track_id_data_old WHERE key = <ls_track_id_data>-key.
ELSE.
APPEND VALUE #( appsys = iv_appsys
appobjtype = is_app_object-appobjtype
appobjid = is_app_object-appobjid
trxcod = <ls_track_id_data>-trxcod
trxid = <ls_track_id_data>-trxid
start_date = lcl_tools=>get_system_date_time( )
end_date = lif_ef_constants=>cv_max_end_date
timzon = lcl_tools=>get_system_time_zone( )
msrid = space ) TO ct_track_id_data.
ENDIF.
ENDLOOP.
"Deleted resources
LOOP AT lt_track_id_data_old ASSIGNING FIELD-SYMBOL(<ls_track_id_data_del>).
APPEND VALUE #( appsys = iv_appsys
appobjtype = is_app_object-appobjtype
appobjid = is_app_object-appobjid
trxcod = <ls_track_id_data_del>-trxcod
trxid = <ls_track_id_data_del>-trxid
start_date = lcl_tools=>get_system_date_time( )
end_date = lif_ef_constants=>cv_max_end_date
timzon = lcl_tools=>get_system_time_zone( )
msrid = space
action = /scmtms/cl_scem_int_c=>sc_param_action-delete ) TO ct_track_id_data.
ENDLOOP.
ENDMETHOD.
METHOD get_fo_tracked_item_obj.
CONSTANTS: cs_mtr_truck TYPE string VALUE '31',
cs_trxcod_resource TYPE string VALUE 'RESOURCE'.
LOOP AT it_item ASSIGNING FIELD-SYMBOL(<ls_item>).
IF <ls_item>-platenumber IS ASSIGNED AND <ls_item>-res_id IS ASSIGNED AND <ls_item>-node_id IS ASSIGNED AND
<ls_item>-item_cat IS ASSIGNED AND <ls_item>-item_cat = /scmtms/if_tor_const=>sc_tor_item_category-av_item.
IF is_root-tor_id IS NOT INITIAL AND <ls_item>-res_id IS NOT INITIAL.
APPEND VALUE #( key = <ls_item>-node_id
appsys = iv_appsys
appobjtype = is_app_object-appobjtype
appobjid = is_app_object-appobjid
trxcod = cs_trxcod_resource
trxid = |{ is_root-tor_id }{ <ls_item>-res_id }|
start_date = lcl_tools=>get_system_date_time( )
end_date = lif_ef_constants=>cv_max_end_date
timzon = lcl_tools=>get_system_time_zone( )
msrid = space ) TO ct_track_id_data.
ENDIF.
DATA(lv_mtr) = is_root-mtr.
SELECT SINGLE motscode FROM /sapapo/trtype INTO lv_mtr WHERE ttype = lv_mtr.
SHIFT lv_mtr LEFT DELETING LEADING '0'.
IF is_root-tor_id IS NOT INITIAL AND <ls_item>-platenumber IS NOT INITIAL AND lv_mtr = cs_mtr_truck.
APPEND VALUE #( key = |{ <ls_item>-node_id }P|
appsys = iv_appsys
appobjtype = is_app_object-appobjtype
appobjid = is_app_object-appobjid
trxcod = cs_trxcod_resource
trxid = |{ is_root-tor_id }{ <ls_item>-platenumber }|
start_date = lcl_tools=>get_system_date_time( )
end_date = lif_ef_constants=>cv_max_end_date
timzon = lcl_tools=>get_system_time_zone( )
msrid = space ) TO ct_track_id_data.
ENDIF.
ENDIF.
ENDLOOP.
ENDMETHOD.
METHOD check_is_fo_deleted.
rv_result = lif_ef_constants=>cs_condition-false.
DATA(lv_carrier_removed) = xsdbool(
is_root_old-tsp IS INITIAL AND is_root_new-tsp IS NOT INITIAL ).
DATA(lv_execution_status_changed) = xsdbool(
( is_root_old-execution <> /scmtms/if_tor_status_c=>sc_root-execution-v_in_execution AND
is_root_old-execution <> /scmtms/if_tor_status_c=>sc_root-execution-v_ready_for_execution AND
is_root_old-execution <> /scmtms/if_tor_status_c=>sc_root-execution-v_executed ) AND
( is_root_new-execution = /scmtms/if_tor_status_c=>sc_root-execution-v_in_execution OR
is_root_new-execution = /scmtms/if_tor_status_c=>sc_root-execution-v_ready_for_execution OR
is_root_new-execution = /scmtms/if_tor_status_c=>sc_root-execution-v_executed ) ).
DATA(lv_lifecycle_status_changed) = xsdbool(
( is_root_old-lifecycle <> /scmtms/if_tor_status_c=>sc_root-lifecycle-v_in_process AND
is_root_old-lifecycle <> /scmtms/if_tor_status_c=>sc_root-lifecycle-v_completed ) AND
( is_root_new-lifecycle = /scmtms/if_tor_status_c=>sc_root-lifecycle-v_in_process OR
is_root_new-lifecycle = /scmtms/if_tor_status_c=>sc_root-lifecycle-v_completed ) ).
IF lv_carrier_removed = abap_true OR lv_execution_status_changed = abap_true OR
lv_lifecycle_status_changed = abap_true .
rv_result = lif_ef_constants=>cs_condition-true.
ENDIF.
ENDMETHOD.
METHOD get_capa_match_key.
DATA lt_stop TYPE /scmtms/t_em_bo_tor_stop.
ASSIGN it_capa_stop[ node_id = iv_assgn_stop_key ] TO FIELD-SYMBOL(<ls_capa_stop>).
IF sy-subrc <> 0.
RETURN.
ENDIF.
ASSIGN it_capa_root[ node_id = <ls_capa_stop>-parent_node_id ]-tor_id TO FIELD-SYMBOL(<lv_tor_id>).
IF sy-subrc <> 0.
RETURN.
ENDIF.
/scmtms/cl_tor_helper_stop=>get_stop_sequence(
EXPORTING
it_root_key = VALUE #( ( key = <ls_capa_stop>-parent_node_id ) )
iv_before_image = abap_false
IMPORTING
et_stop_seq_d = DATA(lt_stop_seq) ).
ASSIGN lt_stop_seq[ root_key = <ls_capa_stop>-parent_node_id ] TO FIELD-SYMBOL(<ls_stop_seq>).
IF sy-subrc <> 0.
RETURN.
ENDIF.
lt_stop = CORRESPONDING /scmtms/t_em_bo_tor_stop( <ls_stop_seq>-stop_seq ).
ASSIGN <ls_stop_seq>-stop_map[ stop_key = <ls_capa_stop>-node_id ]-tabix TO FIELD-SYMBOL(<lv_seq_num>).
IF sy-subrc <> 0.
RETURN.
ENDIF.
lcl_tools=>get_stop_points(
EXPORTING
iv_root_id = <lv_tor_id>
it_stop = lt_stop
IMPORTING
et_stop_points = DATA(lt_stop_points) ).
ASSIGN lt_stop_points[ seq_num = <lv_seq_num>
log_locid = <ls_capa_stop>-log_locid ] TO FIELD-SYMBOL(<ls_stop_point>).
IF sy-subrc = 0.
rv_capa_matchkey = <ls_stop_point>-stop_id.
SHIFT rv_capa_matchkey LEFT DELETING LEADING '0'.
ENDIF.
ENDMETHOD.
METHOD is_odd.
DATA lv_reminder TYPE n.
lv_reminder = iv_value MOD 2.
IF lv_reminder <> 0.
rv_is_odd = abap_true.
ELSE.
rv_is_odd = abap_false.
ENDIF.
ENDMETHOD.
METHOD are_structures_different.
DATA: lt_fields TYPE cl_abap_structdescr=>component_table,
lv_dummy TYPE char100.
FIELD-SYMBOLS: <ls_data1> TYPE any,
<ls_data2> TYPE any,
<lv_value1> TYPE any,
<lv_value2> TYPE any.
ASSIGN ir_data1->* TO <ls_data1>.
ASSIGN ir_data2->* TO <ls_data2>.
IF <ls_data1> IS ASSIGNED AND <ls_data2> IS ASSIGNED.
lt_fields = CAST cl_abap_structdescr(
cl_abap_typedescr=>describe_by_data(
p_data = <ls_data1> )
)->get_components( ).
rv_result = cs_condition-false.
LOOP AT lt_fields ASSIGNING FIELD-SYMBOL(<ls_fields>).
ASSIGN COMPONENT <ls_fields>-name OF STRUCTURE <ls_data1> TO <lv_value1>.
ASSIGN COMPONENT <ls_fields>-name OF STRUCTURE <ls_data2> TO <lv_value2>.
IF <lv_value1> IS ASSIGNED AND
<lv_value2> IS ASSIGNED.
IF <lv_value1> <> <lv_value2>.
rv_result = cs_condition-true.
EXIT.
ENDIF.
ELSE.
MESSAGE e001(zsst_gtt) WITH <ls_fields>-name INTO lv_dummy.
lcl_tools=>throw_exception( ).
ENDIF.
ENDLOOP.
ELSE.
MESSAGE e002(zsst_gtt) INTO lv_dummy.
lcl_tools=>throw_exception( ).
ENDIF.
ENDMETHOD.
METHOD get_field_of_structure.
DATA lv_dummy TYPE char100.
FIELD-SYMBOLS: <ls_struct> TYPE any,
<lv_value> TYPE any.
ASSIGN ir_struct_data->* TO <ls_struct>.
IF <ls_struct> IS ASSIGNED.
ASSIGN COMPONENT iv_field_name OF STRUCTURE <ls_struct> TO <lv_value>.
IF <lv_value> IS ASSIGNED.
rv_value = <lv_value>.
ELSE.
MESSAGE e001(zst_gtt) WITH iv_field_name INTO lv_dummy.
lcl_tools=>throw_exception( ).
ENDIF.
ELSE.
MESSAGE e002(zsst_gtt) INTO lv_dummy.
lcl_tools=>throw_exception( ).
ENDIF.
ENDMETHOD.
METHOD get_errors_log.
es_bapiret-id = io_umd_message->m_msgid.
es_bapiret-number = io_umd_message->m_msgno.
es_bapiret-type = io_umd_message->m_msgty.
es_bapiret-message_v1 = io_umd_message->m_msgv1.
es_bapiret-message_v2 = io_umd_message->m_msgv2.
es_bapiret-message_v3 = io_umd_message->m_msgv3.
es_bapiret-message_v4 = io_umd_message->m_msgv4.
es_bapiret-system = iv_appsys.
ENDMETHOD.
METHOD get_local_timestamp.
rv_timestamp = COND #( WHEN iv_date IS NOT INITIAL
THEN |0{ iv_date }{ iv_time }| ).
ENDMETHOD.
METHOD get_pretty_value.
rv_pretty = COND #( WHEN lcl_tools=>is_number( iv_value = iv_value ) = abap_true
THEN |{ iv_value }|
ELSE iv_value ).
ENDMETHOD.
METHOD get_system_time_zone.
CALL FUNCTION 'GET_SYSTEM_TIMEZONE'
IMPORTING
timezone = rv_tzone
EXCEPTIONS
customizing_missing = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE e003(zpof_gtt) INTO DATA(lv_dummy).
lcl_tools=>throw_exception( ).
ENDIF.
ENDMETHOD.
METHOD get_system_date_time.
rv_datetime = |0{ sy-datum }{ sy-uzeit }|.
ENDMETHOD.
METHOD is_number.
DATA(lo_type) = cl_abap_typedescr=>describe_by_data( p_data = iv_value ).
rv_result = SWITCH #( lo_type->type_kind
WHEN cl_abap_typedescr=>typekind_decfloat OR
cl_abap_typedescr=>typekind_decfloat16 OR
cl_abap_typedescr=>typekind_decfloat34 OR
cl_abap_typedescr=>typekind_float OR
cl_abap_typedescr=>typekind_int OR
cl_abap_typedescr=>typekind_int1 OR
cl_abap_typedescr=>typekind_int2 OR
cl_abap_typedescr=>typekind_int8 OR
cl_abap_typedescr=>typekind_num OR
cl_abap_typedescr=>typekind_numeric OR
cl_abap_typedescr=>typekind_packed
THEN abap_true
ELSE abap_false ).
ENDMETHOD.
METHOD is_table.
DATA(lo_type) = cl_abap_typedescr=>describe_by_data( p_data = iv_value ).
rv_result = boolc( lo_type->type_kind = cl_abap_typedescr=>typekind_table ).
ENDMETHOD.
METHOD throw_exception.
RAISE EXCEPTION TYPE cx_udm_message
EXPORTING
textid = iv_textid
m_msgid = sy-msgid
m_msgty = sy-msgty
m_msgno = sy-msgno
m_msgv1 = sy-msgv1
m_msgv2 = sy-msgv2
m_msgv3 = sy-msgv3
m_msgv4 = sy-msgv4.
ENDMETHOD.
METHOD get_stop_points.
DATA: lv_last_loc_uuid TYPE /scmtms/locuuid,
lv_ord_no_counter(4) TYPE n.
DATA(lv_stops) = lines( it_stop ).
LOOP AT it_stop USING KEY parent_seqnum ASSIGNING FIELD-SYMBOL(<ls_stop>). "n_2217177
CASE sy-tabix.
WHEN 1.
ADD 1 TO lv_ord_no_counter.
APPEND VALUE #(
stop_id = |{ iv_root_id }{ lv_ord_no_counter }|
log_locid = <ls_stop>-log_locid
seq_num = <ls_stop>-seq_num
) TO et_stop_points.
WHEN lv_stops.
ADD 1 TO lv_ord_no_counter.
APPEND VALUE #(
stop_id = |{ iv_root_id }{ lv_ord_no_counter }|
log_locid = <ls_stop>-log_locid
seq_num = <ls_stop>-seq_num
) TO et_stop_points.
WHEN OTHERS.
* new intermediate location only if the loc_uuid is different form the last intermediate location
IF lv_last_loc_uuid <> <ls_stop>-log_loc_uuid AND <ls_stop>-log_loc_uuid <> /scmtms/if_common_c=>c_empty_key.
ADD 1 TO lv_ord_no_counter.
ENDIF.
APPEND VALUE #(
stop_id = |{ iv_root_id }{ lv_ord_no_counter }|
log_locid = <ls_stop>-log_locid
seq_num = <ls_stop>-seq_num
) TO et_stop_points.
ENDCASE.
lv_last_loc_uuid = <ls_stop>-log_loc_uuid.
ENDLOOP.
ENDMETHOD.
METHOD get_postal_address.
DATA(lo_tor_srv_mgr) = /bobf/cl_tra_serv_mgr_factory=>get_service_manager( iv_bo_key = /scmtms/if_tor_c=>sc_bo_key ).
DATA(lo_loc_srv_mgr) = /bobf/cl_tra_serv_mgr_factory=>get_service_manager( iv_bo_key = /scmtms/if_location_c=>sc_bo_key ).
lo_tor_srv_mgr->retrieve_by_association(
EXPORTING
iv_node_key = /scmtms/if_tor_c=>sc_node-root
it_key = VALUE #( ( key = iv_node_id ) )
iv_association = /scmtms/if_tor_c=>sc_association-root-stop
IMPORTING
et_target_key = DATA(lt_stop_target_key) ).
IF lt_stop_target_key IS NOT INITIAL.
lo_tor_srv_mgr->retrieve_by_association(
EXPORTING
iv_node_key = /scmtms/if_tor_c=>sc_node-stop
it_key = CORRESPONDING #( lt_stop_target_key )
iv_association = /scmtms/if_tor_c=>sc_association-stop-bo_loc_log
IMPORTING
et_key_link = DATA(lt_loc_log_key_link) ).
IF lt_loc_log_key_link IS NOT INITIAL.
lo_loc_srv_mgr->retrieve_by_association(
EXPORTING
iv_node_key = /scmtms/if_location_c=>sc_node-root
it_key = CORRESPONDING #( lt_loc_log_key_link MAPPING key = target_key )
iv_association = /scmtms/if_location_c=>sc_association-root-address
IMPORTING
et_key_link = DATA(lt_address_key_link) ).
IF lt_address_key_link IS NOT INITIAL.
TRY.
DATA(lr_bo_conf) = /bobf/cl_frw_factory=>get_configuration( iv_bo_key = /scmtms/if_location_c=>sc_bo_key ).
CATCH /bobf/cx_frw.
MESSAGE e011(zsst_gtt) INTO DATA(lv_dummy).
lcl_tools=>throw_exception( ).
ENDTRY.
DATA(lv_postal_ass_key) = lr_bo_conf->get_content_key_mapping(
iv_content_cat = /bobf/if_conf_c=>sc_content_ass
iv_do_content_key = /bofu/if_addr_constants=>sc_association-root-postal_address
iv_do_root_node_key = /scmtms/if_location_c=>sc_node-/bofu/address ).
lo_loc_srv_mgr->retrieve_by_association(
EXPORTING
iv_node_key = /scmtms/if_location_c=>sc_node-/bofu/address
it_key = CORRESPONDING #( lt_address_key_link MAPPING key = target_key )
iv_association = lv_postal_ass_key
iv_fill_data = abap_true
IMPORTING
et_data = et_postal_address ).
ENDIF.
ENDIF.
ENDIF.
ENDMETHOD.
ENDCLASS.
CLASS lcl_ef_performer DEFINITION.
PUBLIC SECTION.
TYPES: BEGIN OF ts_definition,
maintab TYPE /saptrx/strucdatadef,
mastertab TYPE /saptrx/strucdatadef,
END OF ts_definition.
CLASS-METHODS check_relevance
IMPORTING
is_definition TYPE ts_definition
io_bo_factory TYPE REF TO lif_factory
iv_appsys TYPE /saptrx/applsystem
is_app_obj_types TYPE /saptrx/aotypes
it_all_appl_tables TYPE trxas_tabcontainer
it_app_type_cntl_tabs TYPE trxas_apptype_tabs OPTIONAL
it_app_objects TYPE trxas_appobj_ctabs
RETURNING
VALUE(rv_result) TYPE sy-binpt
RAISING
cx_udm_message.
CLASS-METHODS get_control_data
IMPORTING
is_definition TYPE lif_ef_types=>ts_definition
io_bo_factory TYPE REF TO lif_factory
iv_appsys TYPE /saptrx/applsystem
is_app_obj_types TYPE /saptrx/aotypes
it_all_appl_tables TYPE trxas_tabcontainer
it_app_type_cntl_tabs TYPE trxas_apptype_tabs
it_app_objects TYPE trxas_appobj_ctabs
CHANGING
ct_control_data TYPE lif_ef_types=>tt_control_data
RAISING
cx_udm_message.
CLASS-METHODS get_planned_events
IMPORTING
is_definition TYPE lif_ef_types=>ts_definition
io_factory TYPE REF TO lif_factory
iv_appsys TYPE /saptrx/applsystem
is_app_obj_types TYPE /saptrx/aotypes
it_all_appl_tables TYPE trxas_tabcontainer
it_app_type_cntl_tabs TYPE trxas_apptype_tabs
it_app_objects TYPE trxas_appobj_ctabs
CHANGING
ct_expeventdata TYPE lif_ef_types=>tt_expeventdata
ct_measrmntdata TYPE lif_ef_types=>tt_measrmntdata
ct_infodata TYPE lif_ef_types=>tt_infodata
RAISING
cx_udm_message.
CLASS-METHODS get_track_id_data
IMPORTING
is_definition TYPE lif_ef_types=>ts_definition
io_bo_factory TYPE REF TO lif_factory
iv_appsys TYPE /saptrx/applsystem
is_app_obj_types TYPE /saptrx/aotypes
it_all_appl_tables TYPE trxas_tabcontainer
it_app_type_cntl_tabs TYPE trxas_apptype_tabs
it_app_objects TYPE trxas_appobj_ctabs
EXPORTING
et_track_id_data TYPE lif_ef_types=>tt_track_id_data
RAISING
cx_udm_message.
ENDCLASS.
CLASS lcl_ef_performer IMPLEMENTATION.
METHOD check_relevance.
DATA lo_ef_processor TYPE REF TO lif_ef_processor.
lo_ef_processor = io_bo_factory->get_ef_processor(
is_definition = is_definition
io_bo_factory = io_bo_factory
iv_appsys = iv_appsys
is_app_obj_types = is_app_obj_types
it_all_appl_tables = it_all_appl_tables
it_app_type_cntl_tabs = it_app_type_cntl_tabs
it_app_objects = it_app_objects ).
lo_ef_processor->check_app_objects( ).
rv_result = lo_ef_processor->check_relevance( io_bo_factory ).
ENDMETHOD.
METHOD get_control_data.
DATA(lo_ef_processor) = io_bo_factory->get_ef_processor(
is_definition = is_definition
io_bo_factory = io_bo_factory
iv_appsys = iv_appsys
is_app_obj_types = is_app_obj_types
it_all_appl_tables = it_all_appl_tables
it_app_type_cntl_tabs = it_app_type_cntl_tabs
it_app_objects = it_app_objects ).
lo_ef_processor->check_app_objects( ).
lo_ef_processor->get_control_data(
EXPORTING
io_bo_factory = io_bo_factory
CHANGING
ct_control_data = ct_control_data[] ).
ENDMETHOD.
METHOD get_planned_events.
DATA lo_ef_processor TYPE REF TO lif_ef_processor.
lo_ef_processor = io_factory->get_ef_processor(
is_definition = is_definition
io_bo_factory = io_factory
iv_appsys = iv_appsys
is_app_obj_types = is_app_obj_types
it_all_appl_tables = it_all_appl_tables
it_app_type_cntl_tabs = it_app_type_cntl_tabs
it_app_objects = it_app_objects ).
lo_ef_processor->check_app_objects( ).
lo_ef_processor->get_planned_events(
EXPORTING
io_factory = io_factory
CHANGING
ct_expeventdata = ct_expeventdata
ct_measrmntdata = ct_measrmntdata
ct_infodata = ct_infodata ).
ENDMETHOD.
METHOD get_track_id_data.
DATA: lo_ef_processor TYPE REF TO lif_ef_processor.
CLEAR: et_track_id_data[].
lo_ef_processor = io_bo_factory->get_ef_processor(
is_definition = is_definition
io_bo_factory = io_bo_factory
iv_appsys = iv_appsys
is_app_obj_types = is_app_obj_types
it_all_appl_tables = it_all_appl_tables
it_app_type_cntl_tabs = it_app_type_cntl_tabs
it_app_objects = it_app_objects ).
lo_ef_processor->check_app_objects( ).
lo_ef_processor->get_track_id_data(
EXPORTING
io_bo_factory = io_bo_factory
IMPORTING
et_track_id_data = et_track_id_data ).
ENDMETHOD.
ENDCLASS.
CLASS lcl_ef_processor DEFINITION.
PUBLIC SECTION.
INTERFACES lif_ef_processor.
METHODS constructor
IMPORTING
io_ef_parameters TYPE REF TO lif_ef_parameters
io_bo_reader TYPE REF TO lif_bo_reader
io_pe_filler TYPE REF TO lif_pe_filler
is_definition TYPE lif_ef_types=>ts_definition.
PRIVATE SECTION.
DATA: mo_ef_parameters TYPE REF TO lif_ef_parameters,
mo_bo_reader TYPE REF TO lif_bo_reader,
mo_pe_filler TYPE REF TO lif_pe_filler,
ms_definition TYPE lif_ef_types=>ts_definition.
METHODS add_struct_to_control_data
IMPORTING
ir_bo_data TYPE REF TO data
iv_appobjid TYPE /saptrx/aoid
CHANGING
ct_control_data TYPE lif_ef_types=>tt_control_data
RAISING
cx_udm_message.
METHODS add_sys_attr_to_control_data
IMPORTING
iv_appobjid TYPE /saptrx/aoid
CHANGING
ct_control_data TYPE lif_ef_types=>tt_control_data
RAISING
cx_udm_message.
ENDCLASS.
CLASS lcl_ef_processor IMPLEMENTATION.
METHOD add_struct_to_control_data.
DATA: lt_fields TYPE cl_abap_structdescr=>component_table,
ls_control_data TYPE lif_ef_types=>ts_control_data,
lr_mapping TYPE REF TO data,
lv_dummy TYPE char100.
FIELD-SYMBOLS: <ls_bo_data> TYPE any,
<ls_mapping> TYPE any,
<lt_value> TYPE ANY TABLE,
<lv_value> TYPE any,
<lv_paramname> TYPE any.
ASSIGN ir_bo_data->* TO <ls_bo_data>.
IF <ls_bo_data> IS ASSIGNED.
" get fields list of the structure, which provided by reader class
lt_fields = CAST cl_abap_structdescr(
cl_abap_typedescr=>describe_by_data(
p_data = <ls_bo_data> )
)->get_components( ).
" assign mapping table to use it in converting of field names into external format
lr_mapping = mo_bo_reader->get_mapping_structure( ).
ASSIGN lr_mapping->* TO <ls_mapping>.
IF <ls_mapping> IS ASSIGNED.
" fill generic parameters
ls_control_data-appsys = mo_ef_parameters->get_appsys( ).
ls_control_data-appobjtype = mo_ef_parameters->get_app_obj_types( )-aotype.
ls_control_data-language = sy-langu.
ls_control_data-appobjid = iv_appobjid.
" walk around fields list and copy values one by one
LOOP AT lt_fields ASSIGNING FIELD-SYMBOL(<ls_fields>).
ASSIGN COMPONENT <ls_fields>-name OF STRUCTURE <ls_bo_data> TO <lv_value>.
ASSIGN COMPONENT <ls_fields>-name OF STRUCTURE <ls_mapping> TO <lv_paramname>.
CLEAR: ls_control_data-paramindex,
ls_control_data-value.
IF <lv_value> IS ASSIGNED AND <lv_paramname> IS ASSIGNED.
ls_control_data-paramname = <lv_paramname>.
" simple copy for usual values
IF lcl_tools=>is_table( iv_value = <lv_value> ) = abap_false.
IF <lv_value> IS NOT INITIAL.
ls_control_data-value = lcl_tools=>get_pretty_value(
iv_value = <lv_value> ).
ENDIF.
APPEND ls_control_data TO ct_control_data.
" cycled copy for table values
ELSE.
ASSIGN <lv_value> TO <lt_value>.
LOOP AT <lt_value> ASSIGNING <lv_value>.
ADD 1 TO ls_control_data-paramindex.
IF <lv_value> IS NOT INITIAL.
ls_control_data-value = lcl_tools=>get_pretty_value(
iv_value = <lv_value> ).
ENDIF.
APPEND ls_control_data TO ct_control_data.
CLEAR: ls_control_data-value.
ENDLOOP.
ENDIF.
ELSEIF <lv_value> IS NOT ASSIGNED.
MESSAGE e010(zsst_gtt) INTO lv_dummy.
lcl_tools=>throw_exception( ).
ELSE.
MESSAGE e010(zsst_gtt) INTO lv_dummy.
lcl_tools=>throw_exception( ).
ENDIF.
ENDLOOP.
ELSE.
MESSAGE e010(zsst_gtt) INTO lv_dummy.
lcl_tools=>throw_exception( ).
ENDIF.
ELSE.
MESSAGE e010(zsst_gtt) INTO lv_dummy.
lcl_tools=>throw_exception( ).
ENDIF.
ENDMETHOD.
METHOD add_sys_attr_to_control_data.
DATA: ls_control_data TYPE lif_ef_types=>ts_control_data,
lv_tzone TYPE timezone.
ls_control_data-appsys = mo_ef_parameters->get_appsys( ).
ls_control_data-appobjtype = mo_ef_parameters->get_app_obj_types( )-aotype.
ls_control_data-language = sy-langu.
ls_control_data-appobjid = iv_appobjid.
ls_control_data-paramname = lif_ef_constants=>cs_system_fields-actual_bisiness_timezone.
ls_control_data-value = lcl_tools=>get_system_time_zone( ).
APPEND ls_control_data TO ct_control_data.
ls_control_data-paramname = lif_ef_constants=>cs_system_fields-actual_bisiness_datetime.
ls_control_data-value = lcl_tools=>get_system_date_time( ).
APPEND ls_control_data TO ct_control_data.
ls_control_data-paramname = lif_ef_constants=>cs_system_fields-actual_technical_timezone.
ls_control_data-value = lcl_tools=>get_system_time_zone( ).
APPEND ls_control_data TO ct_control_data.
ls_control_data-paramname = lif_ef_constants=>cs_system_fields-actual_technical_datetime.
ls_control_data-value = lcl_tools=>get_system_date_time( ).
APPEND ls_control_data TO ct_control_data.
ENDMETHOD.
METHOD constructor.
mo_ef_parameters = io_ef_parameters.
mo_bo_reader = io_bo_reader.
mo_pe_filler = io_pe_filler.
ms_definition = is_definition.
ENDMETHOD.
METHOD lif_ef_processor~check_app_objects.
DATA: lr_app_objects TYPE REF TO data,
lv_dummy TYPE char100.
FIELD-SYMBOLS: <lt_app_objects> TYPE trxas_appobj_ctabs.
lr_app_objects = mo_ef_parameters->get_app_objects( ).
ASSIGN lr_app_objects->* TO <lt_app_objects>.
LOOP AT <lt_app_objects> ASSIGNING FIELD-SYMBOL(<ls_app_objects>).
IF <ls_app_objects>-maintabdef <> ms_definition-maintab.
MESSAGE e087(/saptrx/asc)
WITH <ls_app_objects>-maintabdef
mo_ef_parameters->get_app_obj_types( )-controldatafunc
lif_ef_constants=>cv_aot
mo_ef_parameters->get_appsys( )
INTO lv_dummy.
lcl_tools=>throw_exception(
iv_textid = lif_ef_constants=>cs_errors-table_determination ).
ELSEIF ms_definition-mastertab IS NOT INITIAL AND
<ls_app_objects>-mastertabdef <> ms_definition-mastertab.
MESSAGE e088(/saptrx/asc)
WITH <ls_app_objects>-maintabdef
mo_ef_parameters->get_app_obj_types( )-controldatafunc
lif_ef_constants=>cv_aot
mo_ef_parameters->get_appsys( )
INTO lv_dummy.
lcl_tools=>throw_exception(
iv_textid = lif_ef_constants=>cs_errors-table_determination ).
ENDIF.
ENDLOOP.
ENDMETHOD.
METHOD lif_ef_processor~check_relevance.
FIELD-SYMBOLS <lt_app_objects> TYPE trxas_appobj_ctabs.
DATA(lr_app_objects) = mo_ef_parameters->get_app_objects( ).
ASSIGN lr_app_objects->* TO <lt_app_objects>.
rv_result = lif_ef_constants=>cs_condition-false.
LOOP AT <lt_app_objects> ASSIGNING FIELD-SYMBOL(<ls_app_objects>).
TRY.
mo_bo_reader = io_bo_factory->get_bo_reader(
is_appl_object = <ls_app_objects>
io_ef_parameters = mo_ef_parameters ).
CATCH cx_udm_message.
CONTINUE.
ENDTRY.
rv_result = mo_bo_reader->check_relevance( is_app_object = <ls_app_objects> ).
IF rv_result = abap_true.
EXIT.
ENDIF.
ENDLOOP.
ENDMETHOD.
METHOD lif_ef_processor~get_control_data.
DATA: lr_app_objects TYPE REF TO data,
lr_bo_data TYPE REF TO data.
FIELD-SYMBOLS: <lt_app_objects> TYPE trxas_appobj_ctabs,
<ls_app_objects> TYPE trxas_appobj_ctab_wa.
lr_app_objects = mo_ef_parameters->get_app_objects( ).
ASSIGN lr_app_objects->* TO <lt_app_objects>.
LOOP AT <lt_app_objects> ASSIGNING <ls_app_objects> WHERE maintabdef = ms_definition-maintab.
mo_bo_reader = io_bo_factory->get_bo_reader(
is_appl_object = <ls_app_objects>
io_ef_parameters = mo_ef_parameters ).
lr_bo_data = mo_bo_reader->get_data( EXPORTING is_app_object = <ls_app_objects> ).
add_struct_to_control_data(
EXPORTING
ir_bo_data = lr_bo_data
iv_appobjid = <ls_app_objects>-appobjid
CHANGING
ct_control_data = ct_control_data ).
add_sys_attr_to_control_data(
EXPORTING
iv_appobjid = <ls_app_objects>-appobjid
CHANGING
ct_control_data = ct_control_data ).
ENDLOOP.
ENDMETHOD.
METHOD lif_ef_processor~get_planned_events.
DATA: lt_expeventdata TYPE lif_ef_types=>tt_expeventdata,
lt_measrmntdata TYPE lif_ef_types=>tt_measrmntdata,
lt_infodata TYPE lif_ef_types=>tt_infodata,
lr_app_objects TYPE REF TO data.
FIELD-SYMBOLS <lt_app_objects> TYPE trxas_appobj_ctabs.
lr_app_objects = mo_ef_parameters->get_app_objects( ).
ASSIGN lr_app_objects->* TO <lt_app_objects>.
LOOP AT <lt_app_objects> ASSIGNING FIELD-SYMBOL(<ls_app_objects>)
WHERE maintabdef = ms_definition-maintab.
mo_pe_filler = io_factory->get_pe_filler(
is_appl_object = <ls_app_objects>
io_ef_parameters = mo_ef_parameters ).
mo_pe_filler->get_planed_events(
EXPORTING
is_app_objects = <ls_app_objects>
CHANGING
ct_expeventdata = lt_expeventdata
ct_measrmntdata = lt_measrmntdata
ct_infodata = lt_infodata ).
ENDLOOP.
" Add all the changes to result tables in the end of the method,
" so that in case of exceptions there will be no inconsistent data in them
IF lt_expeventdata[] IS NOT INITIAL.
ct_expeventdata[] = VALUE #( BASE ct_expeventdata ( LINES OF lt_expeventdata ) ).
ENDIF.
IF lt_measrmntdata[] IS NOT INITIAL.
ct_measrmntdata[] = VALUE #( BASE ct_measrmntdata ( LINES OF lt_measrmntdata ) ).
ENDIF.
IF lt_expeventdata[] IS NOT INITIAL.
lt_infodata[] = VALUE #( BASE ct_infodata ( LINES OF lt_infodata ) ).
ENDIF.
ENDMETHOD.
METHOD lif_ef_processor~get_track_id_data.
DATA: lr_app_objects TYPE REF TO data,
lt_track_id_data TYPE lif_ef_types=>tt_track_id_data,
lr_bo_data TYPE REF TO data.
FIELD-SYMBOLS: <lt_app_objects> TYPE trxas_appobj_ctabs.
CLEAR: et_track_id_data[].
lr_app_objects = mo_ef_parameters->get_app_objects( ).
ASSIGN lr_app_objects->* TO <lt_app_objects>.
LOOP AT <lt_app_objects> ASSIGNING FIELD-SYMBOL(<ls_app_objects>)
WHERE maintabdef = ms_definition-maintab.
mo_bo_reader = io_bo_factory->get_bo_reader(
is_appl_object = <ls_app_objects>
io_ef_parameters = mo_ef_parameters ).
mo_bo_reader->get_track_id_data(
EXPORTING
is_app_object = <ls_app_objects>
IMPORTING
et_track_id_data = lt_track_id_data ).
et_track_id_data = VALUE #( BASE et_track_id_data ( LINES OF lt_track_id_data ) ).
ENDLOOP.
ENDMETHOD.
ENDCLASS.
CLASS lcl_ef_parameters DEFINITION.
PUBLIC SECTION.
INTERFACES lif_ef_parameters.
METHODS constructor
IMPORTING
iv_appsys TYPE /saptrx/applsystem
is_app_obj_types TYPE /saptrx/aotypes
it_all_appl_tables TYPE trxas_tabcontainer
it_app_type_cntl_tabs TYPE trxas_apptype_tabs OPTIONAL
it_app_objects TYPE trxas_appobj_ctabs.
PRIVATE SECTION.
DATA:
mv_appsys TYPE /saptrx/applsystem,
ms_app_obj_types TYPE /saptrx/aotypes,
mr_all_appl_tables TYPE REF TO data,
mr_app_type_cntl_tabs TYPE REF TO data,
mr_app_objects TYPE REF TO data.
ENDCLASS.
CLASS lcl_ef_parameters IMPLEMENTATION.
METHOD constructor.
mv_appsys = iv_appsys.
ms_app_obj_types = is_app_obj_types.
mr_all_appl_tables = REF #( it_all_appl_tables ).
IF it_app_type_cntl_tabs IS SUPPLIED.
mr_app_type_cntl_tabs = REF #( it_app_type_cntl_tabs ).
ENDIF.
mr_app_objects = REF #( it_app_objects ).
ENDMETHOD.
METHOD lif_ef_parameters~get_appl_table.
TRY.
FIELD-SYMBOLS: <lt_all_appl_tables> TYPE trxas_tabcontainer.
ASSIGN mr_all_appl_tables->* TO <lt_all_appl_tables>.
rr_data = <lt_all_appl_tables>[ tabledef = iv_tabledef ]-tableref.
CATCH cx_sy_itab_line_not_found.
MESSAGE e008(/saptrx/asc)
WITH iv_tabledef
ms_app_obj_types-aotype
INTO DATA(lv_dummy).
lcl_tools=>throw_exception(
iv_textid = lif_ef_constants=>cs_errors-stop_processing ).
ENDTRY.
ENDMETHOD.
METHOD lif_ef_parameters~get_app_obj_types.
rs_app_obj_types = ms_app_obj_types.
ENDMETHOD.
METHOD lif_ef_parameters~get_app_objects.
rr_data = mr_app_objects.
ENDMETHOD.
METHOD lif_ef_parameters~get_appsys.
rv_appsys = mv_appsys.
ENDMETHOD.
ENDCLASS.
CLASS lcl_factory DEFINITION
ABSTRACT.
PUBLIC SECTION.
INTERFACES lif_factory
ABSTRACT METHODS get_bo_reader
get_pe_filler.
ENDCLASS.
CLASS lcl_factory IMPLEMENTATION.
METHOD lif_factory~get_ef_parameters.
ro_ef_parameters = NEW lcl_ef_parameters(
iv_appsys = iv_appsys
is_app_obj_types = is_app_obj_types
it_all_appl_tables = it_all_appl_tables
it_app_type_cntl_tabs = it_app_type_cntl_tabs
it_app_objects = it_app_objects ).
ENDMETHOD.
METHOD lif_factory~get_ef_processor.
DATA:
lo_ef_parameters TYPE REF TO lif_ef_parameters,
lo_bo_reader TYPE REF TO lif_bo_reader,
lo_pe_filler TYPE REF TO lif_pe_filler.
lo_ef_parameters = lif_factory~get_ef_parameters(
iv_appsys = iv_appsys
is_app_obj_types = is_app_obj_types
it_all_appl_tables = it_all_appl_tables
it_app_type_cntl_tabs = it_app_type_cntl_tabs
it_app_objects = it_app_objects ).
ro_ef_processor = NEW lcl_ef_processor(
io_ef_parameters = lo_ef_parameters
io_bo_reader = lo_bo_reader
io_pe_filler = lo_pe_filler
is_definition = is_definition ).
ENDMETHOD.
ENDCLASS.
| [
9,
5,
10097,
30934,
9,
198,
9,
5,
10714,
1398,
6770,
532,
3611,
329,
45389,
28403,
198,
9,
5,
10097,
30934,
9,
198,
198,
31631,
300,
565,
62,
31391,
5550,
20032,
17941,
13,
198,
220,
44731,
44513,
13,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
50115,
62,
31448,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2081,
220,
41876,
827,
12,
8800,
457,
26173,
8924,
705,
51,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
3991,
41876,
827,
12,
8800,
457,
26173,
8924,
705,
37,
3256,
198,
220,
220,
220,
220,
220,
23578,
3963,
50115,
62,
31448,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
389,
62,
7249,
942,
62,
39799,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
4173,
62,
7890,
16,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1366,
198,
220,
220,
220,
220,
220,
220,
220,
4173,
62,
7890,
17,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1366,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
20274,
8,
41876,
827,
12,
8800,
457,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
43213,
62,
463,
76,
62,
20500,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
651,
62,
7353,
282,
62,
21975,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
17440,
62,
312,
220,
220,
220,
220,
220,
220,
220,
41876,
1220,
1416,
16762,
907,
14,
2127,
62,
17440,
62,
312,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
2123,
62,
7353,
282,
62,
21975,
41876,
1220,
65,
1659,
84,
14,
83,
62,
29851,
62,
7353,
282,
62,
21975,
74,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
43213,
62,
463,
76,
62,
20500,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
651,
62,
3245,
62,
1659,
62,
301,
5620,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
4173,
62,
7249,
62,
7890,
220,
41876,
4526,
37,
5390,
1366,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
3245,
62,
3672,
220,
220,
41876,
537,
522,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
8367,
8,
41876,
1149,
1120,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
43213,
62,
463,
76,
62,
20500,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
651,
62,
48277,
62,
6404,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
33245,
62,
388,
67,
62,
20500,
41876,
4526,
37,
5390,
43213,
62,
463,
76,
62,
20500,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
1324,
17597,
220,
220,
220,
220,
220,
41876,
269,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1658,
62,
65,
499,
557,
83,
220,
220,
220,
220,
41876,
275,
499,
557,
83,
17,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
651,
62,
12001,
62,
16514,
27823,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
4475,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
597,
5550,
38865,
827,
12,
19608,
388,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
2435,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
597,
5550,
38865,
827,
12,
84,
2736,
270,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
16514,
27823,
8,
41876,
1220,
82,
2373,
40914,
14,
15596,
62,
11201,
62,
19608,
8079,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
651,
62,
37784,
62,
8367,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
8367,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
597,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
37784,
8,
41876,
1220,
82,
2373,
40914,
14,
17143,
2100,
2167,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
651,
62,
10057,
62,
2435,
62,
11340,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
83,
11340,
8,
41876,
640,
11340,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
43213,
62,
463,
76,
62,
20500,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
651,
62,
10057,
62,
4475,
62,
2435,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
19608,
8079,
8,
41876,
4731,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
43213,
62,
463,
76,
62,
20500,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
318,
62,
17618,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
8367,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
597,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
20274,
8,
41876,
450,
499,
62,
30388,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
318,
62,
11487,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
8367,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
597,
198,
220,
220,
220,
220,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
*&---------------------------------------------------------------------*
*& Report zdemo_ain_cl15
*&---------------------------------------------------------------------*
*& This is the demo program written for book:
*& ALV grid in nutshell by Łukasz Pęgiel
*&---------------------------------------------------------------------*
report zdemo_ain_cl15.
include zdemo_ain_include_screen.
start-of-selection.
types: begin of t_data,
carrid type spfli-carrid,
connid type spfli-connid,
distance type spfli-distance,
distid type spfli-distid,
style type lvc_t_styl,
end of t_data.
data flights type standard table of t_data.
select * up to 50 rows from spfli into corresponding fields of table flights.
data(grid) = new cl_gui_alv_grid(
i_parent = new cl_gui_custom_container( container_name = 'CC' )
).
data(fcat) = value lvc_t_fcat(
( fieldname = 'CARRID' key_sel = abap_true )
( fieldname = 'CONNID')
( fieldname = 'DISTANCE' qfieldname = 'DISTID' )
( fieldname = 'DISTID' )
).
grid->set_table_for_first_display(
changing
it_fieldcatalog = fcat
it_outtab = flights
exceptions
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
others = 4
).
if sy-subrc eq 0.
call screen 0100.
endif.
| [
9,
5,
10097,
30934,
9,
198,
9,
5,
6358,
1976,
9536,
78,
62,
391,
62,
565,
1314,
198,
9,
5,
10097,
30934,
9,
198,
9,
5,
770,
318,
262,
13605,
1430,
3194,
329,
1492,
25,
198,
9,
5,
8355,
53,
10706,
287,
43875,
416,
25370,
223,
2724,
292,
89,
350,
128,
247,
70,
8207,
198,
9,
5,
10097,
30934,
9,
198,
13116,
1976,
9536,
78,
62,
391,
62,
565,
1314,
13,
198,
198,
17256,
1976,
9536,
78,
62,
391,
62,
17256,
62,
9612,
13,
198,
198,
9688,
12,
1659,
12,
49283,
13,
628,
220,
3858,
25,
2221,
286,
256,
62,
7890,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1097,
6058,
220,
220,
2099,
599,
2704,
72,
12,
66,
3258,
312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
48260,
312,
220,
220,
2099,
599,
2704,
72,
12,
37043,
312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5253,
2099,
599,
2704,
72,
12,
30246,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1233,
312,
220,
220,
2099,
599,
2704,
72,
12,
17080,
312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3918,
220,
220,
220,
2099,
300,
28435,
62,
83,
62,
301,
2645,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
886,
286,
256,
62,
7890,
13,
198,
220,
1366,
13956,
2099,
3210,
3084,
286,
256,
62,
7890,
13,
628,
220,
2922,
1635,
510,
284,
2026,
15274,
422,
599,
2704,
72,
656,
11188,
7032,
286,
3084,
13956,
13,
628,
628,
220,
1366,
7,
25928,
8,
796,
649,
537,
62,
48317,
62,
282,
85,
62,
25928,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
62,
8000,
796,
649,
537,
62,
48317,
62,
23144,
62,
34924,
7,
9290,
62,
3672,
796,
705,
4093,
6,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6739,
198,
220,
1366,
7,
69,
9246,
8,
796,
1988,
300,
28435,
62,
83,
62,
69,
9246,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
2214,
3672,
796,
705,
20034,
49,
2389,
6,
1994,
62,
741,
796,
450,
499,
62,
7942,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
2214,
3672,
796,
705,
10943,
45,
2389,
11537,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
2214,
3672,
796,
705,
35,
8808,
19240,
6,
10662,
3245,
3672,
796,
705,
35,
8808,
2389,
6,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
2214,
3672,
796,
705,
35,
8808,
2389,
6,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6739,
628,
220,
10706,
3784,
2617,
62,
11487,
62,
1640,
62,
11085,
62,
13812,
7,
198,
220,
220,
220,
5609,
198,
220,
220,
220,
220,
220,
340,
62,
3245,
9246,
11794,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
277,
9246,
198,
220,
220,
220,
220,
220,
340,
62,
448,
8658,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
13956,
198,
220,
220,
220,
13269,
198,
220,
220,
220,
220,
220,
12515,
62,
17143,
2357,
62,
24011,
1883,
796,
352,
198,
220,
220,
220,
220,
220,
1430,
62,
18224,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
362,
198,
220,
220,
220,
220,
220,
1165,
62,
21834,
62,
6615,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
513,
198,
220,
220,
220,
220,
220,
1854,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
604,
198,
220,
6739,
198,
220,
611,
827,
12,
7266,
6015,
37430,
657,
13,
198,
220,
220,
220,
869,
3159,
5534,
405,
13,
198,
220,
45762,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
* Copyright 2019,2020 IBM Corp. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
class ZCL_IBMC_SERVICE_EXT definition
public
inheriting from ZCL_IBMC_SERVICE
create public .
public section.
types:
ty_instance_id(32) type c .
types:
ty_servicename(30) type c .
types:
ty_image_format(3) type c .
types TY_IMAGE_CLASS type STRING .
types:
begin of ts_oauth_prop,
url type ts_url,
username type string,
password type string,
apikey type string,
end of ts_oauth_prop .
constants C_FIELD_NONE type FIELDNAME value '###' ##NO_TEXT.
constants C_FORMAT_JPG type TY_IMAGE_FORMAT value 'jpg' ##NO_TEXT.
constants C_FORMAT_PNG type TY_IMAGE_FORMAT value 'png' ##NO_TEXT.
constants C_FORMAT_GIF type TY_IMAGE_FORMAT value 'gif' ##NO_TEXT.
constants C_FORMAT_TIF type TY_IMAGE_FORMAT value 'tif' ##NO_TEXT.
constants C_FORMAT_ZIP type TY_IMAGE_FORMAT value 'zip' ##NO_TEXT.
constants C_FORMAT_ALL type TY_IMAGE_FORMAT value '*' ##NO_TEXT.
constants C_FORMAT_UNKNOWN type TY_IMAGE_FORMAT value '###' ##NO_TEXT.
constants C_TOKEN_GENERATION_NEVER type CHAR value 'N' ##NO_TEXT.
constants C_TOKEN_GENERATION_ALWAYS type CHAR value 'A' ##NO_TEXT.
constants C_TOKEN_GENERATION_AUTO type CHAR value SPACE ##NO_TEXT.
constants C_IAM_TOKEN_HOST type STRING value 'iam.cloud.ibm.com' ##NO_TEXT.
constants C_IAM_TOKEN_PATH type STRING value '/identity/token' ##NO_TEXT.
constants C_ICP4D_TOKEN_PATH type STRING value '/v1/preauth/validateAuth' ##NO_TEXT.
data P_INSTANCE_ID type TY_INSTANCE_ID .
data P_SERVICENAME type TY_SERVICENAME .
"! <p class="shorttext synchronized" lang="en">Returns the bearer token, if available.</p>
"!
"! @parameter E_BEARER_TOKEN | Access token.
"!
methods GET_BEARER_TOKEN
returning
value(E_BEARER_TOKEN) type STRING .
"! <p class="shorttext synchronized" lang="en">Returns the SDK built date.</p>
"!
"! @parameter E_SDK_VERSION_DATE | Built data in format YYYYMMDD.
"!
methods GET_SDK_VERSION_DATE
returning
value(E_SDK_VERSION_DATE) type STRING .
"! <p class="shorttext synchronized" lang="en">Method for internal use.</p>
"!
methods SET_BEARER_TOKEN
importing
!I_BEARER_TOKEN type STRING .
"! <p class="shorttext synchronized" lang="en">Retrieves a value of a configuration parameter</p> from table ZIBMC_CONFIG.
"!
"! @parameter I_DEFAULT | Default value, if configuration parameter is not found.
"! @parameter I_PARAM | Configuration parameter name.
"!
methods GET_CONFIG_VALUE
importing
!I_DEFAULT type ZIBMC_CONFIG-VALUE optional
!I_PARAM type ZIBMC_CONFIG-PARAM
returning
value(E_VALUE) type ZIBMC_CONFIG-VALUE
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! <p class="shorttext synchronized" lang="en">Factory method to instantiate a service specific wrapper class.</p>
"!
"! @parameter I_INSTANCE_ID |
"! Value of field INSTANCE_UID in table ZIBMC_CONFIG.
"! Service credentials are read from table ZIBMC_CONFIG with key SERVICE = Name of service wrapper class without prefix ZCL_IBMC_ and INSTANCE_UID.
"! @parameter I_URL | URL of the service.
"! @parameter I_HOST | Host of the service. I_URL and I_HOST can be used synonymously.
"! @parameter I_USERNAME | User password to authenticate on service.
"! @parameter I_PASSWORD | User password to authenticate on service.
"! @parameter I_PROXY_HOST | Proxy server, not applicable on SAP Cloud Platform.
"! @parameter I_PROXY_PORT | Proxy server port, not applicable on SAP Cloud Platform.
"! @parameter I_APIKEY | API key password to authenticate on service.
"! @parameter I_AUTH_METHOD | Authentication method. Possible values are "IAM", "ICP4D", "basicAuth", "NONE".
"! @parameter I_OAUTH_PROP | Credentials to generate token for OAuth authentication.
"! @parameter I_TOKEN_GENERATION | Method for access token refresh: <br/>
"! C_TOKEN_GENERATION_NEVER - Access token is not refreshed.
"! C_TOKEN_GENERATION_ALWAYS - Access to token is refreshed for each service call.
"! C_TOKEN_GENERATION_AUTO - Access to token is refreshed just before it expires.
"! @parameter I_REQUEST_HEADERS | List of headers sent with every request, format 'Header1=Value1;Header2=Value2'.
"! @parameter I_VERSION | Value of query parameter VERSION.
"!
class-methods GET_INSTANCE
importing
!I_INSTANCE_ID type TY_INSTANCE_ID optional
!I_URL type STRING optional
!I_HOST type STRING optional
!I_USERNAME type STRING optional
!I_PASSWORD type STRING optional
!I_PROXY_HOST type STRING optional
!I_PROXY_PORT type STRING optional
!I_APIKEY type STRING optional
!I_AUTH_METHOD type STRING default C_DEFAULT
!I_OAUTH_PROP type TS_OAUTH_PROP optional
!I_ACCESS_TOKEN type TS_ACCESS_TOKEN optional
!I_TOKEN_GENERATION type CHAR default C_TOKEN_GENERATION_AUTO
!I_REQUEST_HEADERS type STRING optional
!I_VERSION type STRING optional
exporting
value(EO_INSTANCE) type ANY .
"! <p class="shorttext synchronized" lang="en">Compresses multiple images from an internal table</p> to a one or more xstrings in ZIP format.
"!
"! @parameter IT_EXAMPLES | Internal table of images.
"! @parameter IV_FIELD_CLASS |
"! Field in IT_EXAMPLES that contains the file class.
"! All records in IT_EXAMPLES with same class will be compress into one ZIP xstring.
"! @parameter IV_FIELD_FILENAME | Field in IT_EXAMPLES that contains the filename for the image.
"! @parameter IV_FIELD_IMAGE | Field in IT_EXAMPLES that contains the image.
"! @parameter IV_IMAGE_FORMAT | Format of the image. Possible values are
"! C_FORMAT_JPG, C_FORMAT_PNG, C_FORMAT_GIF, C_FORMAT_TIF, C_FORMAT_ALL.
"! @parameter IV_IMAGE_NAME | Name of the image.
"! @parameter ET_ZIPDATA | Internal table containing a compressed ZIP xstring for each image class.
"! @raising ZCX_IBMC_SERVICE_EXCEPTION | Exception being raised in case of an error.
"!
class-methods GET_ZIPDATA
importing
!IT_EXAMPLES type ANY TABLE
!IV_FIELD_CLASS type FIELDNAME default C_FIELD_NONE
!IV_FIELD_FILENAME type FIELDNAME optional
!IV_FIELD_IMAGE type FIELDNAME optional
!IV_IMAGE_FORMAT type TY_IMAGE_FORMAT optional
!IV_IMAGE_NAME type STRING optional
exporting
!ET_ZIPDATA type TT_MAP_FILE
raising
ZCX_IBMC_SERVICE_EXCEPTION .
methods GET_ACCESS_TOKEN
redefinition .
methods GET_REQUEST_PROP
redefinition .
protected section.
private section.
data P_OAUTH_PROP type TS_OAUTH_PROP .
data P_TOKEN_GENERATION type CHAR .
"! <p class="shorttext synchronized" lang="en">Method for internal use.</p>
"!
class-methods ADD_CONFIG_PROP
importing
!I_SERVICENAME type TY_SERVICENAME
!I_INSTANCE_ID type TY_INSTANCE_ID optional
changing
!C_REQUEST_PROP type ANY .
"! <p class="shorttext synchronized" lang="en">Method for internal use.</p>
"!
class-methods ADD_IMAGE_TO_ZIP
importing
!IS_TABLELINE type ANY
!IO_ZIP type ref to CL_ABAP_ZIP
!IV_BASE64 type BOOLEAN
!IV_FILENAME type STRING optional
!IV_FIELD_IMAGE type FIELDNAME
!IV_FIELD_FILENAME type FIELDNAME optional
raising
ZCX_IBMC_SERVICE_EXCEPTION .
"! <p class="shorttext synchronized" lang="en">Method for internal use.</p>
"!
class-methods GET_FIELD_DATA
importing
!IS_TABLELINE type ANY
!IV_FIELD_CLASS type FIELDNAME optional
!IV_FIELD_FILENAME type FIELDNAME optional
!IV_FIELD_IMAGE type FIELDNAME optional
exporting
!EV_FIELD_CLASS type FIELDNAME
!EV_FIELD_FILENAME type FIELDNAME
!EV_FIELD_IMAGE type FIELDNAME
!EV_FIELD_IMAGE_BASE64 type FIELDNAME
raising
ZCX_IBMC_SERVICE_EXCEPTION .
ENDCLASS.
CLASS ZCL_IBMC_SERVICE_EXT IMPLEMENTATION.
method add_config_prop.
data:
lt_compname type tt_string,
lv_type type char,
ls_config type zibmc_config,
lt_config type standard table of zibmc_config,
lt_ref type standard table of ref to data,
lr_data type ref to data,
lv_index type i value 0,
ls_url type ts_url value is initial.
field-symbols:
<lv_comp_val> type any,
<lv_comp_sub> type any,
<lv_compname> type string,
<l_struct> type any.
" read config table
if not i_instance_id is initial.
select *
from zibmc_config
where service = @i_servicename and
instance_uid = @i_instance_id
into table @lt_config.
else.
select *
from zibmc_config
where service = @i_servicename and
instance_uid = @space
into table @lt_config.
endif.
" quit, if no relevant entry in config table exists
check sy-subrc = 0.
" change config parameter "URL" to "HOST"
ls_config-param = 'HOST'.
modify lt_config from ls_config transporting param where param = 'URL'.
" perform breadth-first search on c_request_prop to allow setting values on deeper levels,
" e.g. HOST -> c_request_prop-url-host
lr_data = ref #( c_request_prop ).
append lr_data to lt_ref.
do.
lv_index = lv_index + 1.
read table lt_ref into lr_data index lv_index.
if sy-subrc <> 0.
exit.
endif.
assign lr_data->* to <l_struct>.
get_components(
exporting
i_structure = <l_struct>
importing
e_components = lt_compname ).
loop at lt_compname assigning <lv_compname>.
assign component <lv_compname> of structure <l_struct> to <lv_comp_val>.
check sy-subrc = 0.
get_field_type(
exporting
i_field = <lv_comp_val>
importing
e_technical_type = lv_type ).
if lv_type eq zif_ibmc_service_arch~c_datatype-struct or
lv_type eq zif_ibmc_service_arch~c_datatype-struct_deep.
lr_data = ref #( <lv_comp_val> ).
append lr_data to lt_ref.
else.
if <lv_comp_val> is initial.
read table lt_config into ls_config with key param = <lv_compname> ##WARN_OK.
if sy-subrc = 0.
condense ls_config-value.
<lv_comp_val> = ls_config-value.
endif.
endif.
endif.
endloop.
enddo.
endmethod.
method add_image_to_zip.
data:
lx_image type xstring,
lv_filename type string.
field-symbols:
<lv_image> type any,
<lv_filename> type any.
if not iv_filename is initial.
lv_filename = iv_filename.
else.
assign component iv_field_filename of structure is_tableline to <lv_filename>.
lv_filename = conv #( <lv_filename> ). " type conversion
if lv_filename is initial.
raise_exception( i_msgno = '056' ).
endif.
endif.
assign component iv_field_image of structure is_tableline to <lv_image>.
if iv_base64 eq c_boolean_true.
lx_image = base64_decode( i_base64 = <lv_image> ).
io_zip->add(
name = lv_filename
content = lx_image ).
else.
io_zip->add(
name = lv_filename
content = <lv_image> ).
endif.
endmethod.
method get_access_token.
data:
lo_response type to_rest_response,
lv_grand_urlencoded type string,
lv_key_urlencoded type string,
lv_json type string,
lv_seconds type i,
lv_timestamp type timestamp,
ls_token type zibmc_token value is initial,
ls_timestamp type timestamp,
begin of ls_token_classic,
token type string,
end of ls_token_classic.
if not i_request_prop-access_token-access_token is initial.
ls_token-access_token = p_request_prop_default-access_token-access_token.
ls_token-token_type = p_request_prop_default-access_token-token_type.
ls_token-expires_ts = p_request_prop_default-access_token-expires_ts.
else.
select single *
from zibmc_token
where service = @p_servicename and
instance_uid = @p_instance_id
into @ls_token.
endif.
" check if access token has expired
get time stamp field ls_timestamp.
if ls_timestamp >= ls_token-expires_ts.
clear ls_token.
endif.
" (re)new token unless it is still valid
if ls_token-access_token is initial and p_token_generation ne c_token_generation_never.
data:
ls_token_request_prop type ts_request_prop.
ls_token_request_prop-url = p_oauth_prop-url.
" set to tribool_false to distinguish between false and inital
ls_token_request_prop-auth_basic = c_tribool_false.
ls_token_request_prop-auth_oauth = c_tribool_false.
ls_token_request_prop-auth_apikey = c_tribool_false.
ls_token_request_prop-header_accept = zcl_ibmc_service=>zif_ibmc_service_arch~c_mediatype-appl_json.
if i_request_prop-auth_name eq 'IAM' ##NO_TEXT.
" write urlencoded parameters
if not ls_token-refresh_token is initial.
lv_grand_urlencoded = escape( val = 'refresh_token' format = cl_abap_format=>e_uri_full ) ##NO_TEXT.
lv_key_urlencoded = escape( val = ls_token-refresh_token format = cl_abap_format=>e_uri_full ).
ls_token_request_prop-body = `grant_type=` && lv_grand_urlencoded && `&refresh_token=` && lv_key_urlencoded ##NO_TEXT.
else.
if not p_oauth_prop-apikey is initial.
lv_grand_urlencoded = escape( val = 'urn:ibm:params:oauth:grant-type:apikey' format = cl_abap_format=>e_uri_full ) ##NO_TEXT.
lv_key_urlencoded = escape( val = p_oauth_prop-apikey format = cl_abap_format=>e_uri_full ).
ls_token_request_prop-body = `grant_type=` && lv_grand_urlencoded && `&apikey=` && lv_key_urlencoded ##NO_TEXT.
elseif not p_oauth_prop-password is initial.
lv_grand_urlencoded = escape( val = 'urn:ibm:params:oauth:grant-type:password' format = cl_abap_format=>e_uri_full ) ##NO_TEXT.
lv_key_urlencoded = escape( val = p_oauth_prop-password format = cl_abap_format=>e_uri_full ).
ls_token_request_prop-body = `grant_type=` && lv_grand_urlencoded && `&username=` && p_oauth_prop-username && `&password=` && p_oauth_prop-password ##NO_TEXT.
else.
ls_token_request_prop-username = p_oauth_prop-username.
ls_token_request_prop-password = p_oauth_prop-password.
ls_token_request_prop-apikey = p_oauth_prop-apikey.
endif.
endif.
ls_token_request_prop-header_content_type = zcl_ibmc_service=>zif_ibmc_service_arch~c_mediatype-appl_www_form_urlencoded.
" execute HTTP POST request
lo_response = http_post( i_request_prop = ls_token_request_prop ).
" receive response json
lv_json = get_response_string( lo_response ).
" call json parser (ignore properties that do not exist in abap structure)
parse_json(
exporting
i_json = lv_json
changing
c_abap = ls_token ).
else.
if i_request_prop-auth_body eq c_boolean_true.
" POST request having username/password in body (e.g. for Db2 Warehouse)
ls_token_request_prop-body = `{ "userid": "` && p_oauth_prop-username && `", "password": "` && p_oauth_prop-password && `" }` ##NO_TEXT.
ls_token_request_prop-header_content_type = zcl_ibmc_service=>zif_ibmc_service_arch~c_mediatype-appl_json.
" execute HTTP POST request
lo_response = http_post( i_request_prop = ls_token_request_prop ).
else.
ls_token_request_prop-username = p_oauth_prop-username.
ls_token_request_prop-password = p_oauth_prop-password.
ls_token_request_prop-apikey = p_oauth_prop-apikey.
ls_token_request_prop-url = p_oauth_prop-url.
ls_token_request_prop-auth_basic = c_boolean_true.
" execute HTTP GET request
lo_response = http_get( i_request_prop = ls_token_request_prop ).
" receive response json
lv_json = get_response_string( lo_response ).
if i_request_prop-auth_name eq 'ICP4D' ##NO_TEXT.
" parse expected response:
" { "username": "joe", "role": "User", "uid": "1003",
" "accessToken": "eyJhbGc…1AjT_w",
" "messageCode": "success", "message": "success" }
data:
begin of ls_access_token_icp4d,
accesstoken type string,
end of ls_access_token_icp4d.
parse_json(
exporting
i_json = lv_json
changing
c_abap = ls_access_token_icp4d ).
ls_token-access_token = ls_access_token_icp4d-accesstoken.
ls_token-expires_in = 12 * 3600.
else.
" call json parser
parse_json(
exporting
i_json = lv_json
changing
c_abap = ls_token_classic ).
ls_token-access_token = ls_token_classic-token.
ls_token-expires_in = 3600.
endif.
ls_token-token_type = 'Bearer' ##NO_TEXT.
endif.
endif.
" calculate expiration time
if ls_token-expires_in > 0.
get time stamp field lv_timestamp.
lv_seconds = ls_token-expires_in - 300. " subtract 5 minutes to be save
ls_token-expires_ts = cl_abap_tstmp=>add( tstmp = lv_timestamp secs = lv_seconds ).
endif.
ls_token-service = p_servicename.
ls_token-instance_uid = p_instance_id.
if p_token_generation eq c_token_generation_auto.
modify zibmc_token from @ls_token.
commit work.
endif.
endif.
" fill returning parameter
move-corresponding ls_token to e_access_token ##ENH_OK.
endmethod.
method get_bearer_token.
data:
ls_access_token type ts_access_token.
try.
ls_access_token = get_access_token( ).
catch zcx_ibmc_service_exception.
clear ls_access_token.
endtry.
if ls_access_token-token_type eq 'Bearer'.
e_bearer_token = ls_access_token-access_token.
else.
clear e_bearer_token.
endif.
endmethod.
method get_config_value.
select single value
from zibmc_config
where param = @i_param and
service = @p_servicename and
instance_uid = @p_instance_id
into @e_value.
if sy-subrc <> 0.
select single value
from zibmc_config
where param = @i_param and
service = @p_servicename and
instance_uid = @space
into @e_value.
if sy-subrc <> 0.
if i_default is supplied.
e_value = i_default.
else.
raise exception type zcx_ibmc_service_exception.
endif.
endif.
endif.
endmethod.
method get_field_data.
data:
begin of ls_comp,
name type string,
type type char,
length type i,
end of ls_comp,
lt_comp like standard table of ls_comp,
lt_compname type tt_string,
lv_msg1 type string.
field-symbols:
<l_comp> type any.
get_components(
exporting
i_structure = is_tableline
importing
e_components = lt_compname ).
loop at lt_compname into ls_comp-name.
assign component ls_comp-name of structure is_tableline to <l_comp>.
get_field_type(
exporting
i_field = <l_comp>
importing
e_technical_type = ls_comp-type
e_length = ls_comp-length ).
append ls_comp to lt_comp.
endloop.
clear: ev_field_class, ev_field_filename, ev_field_image, ev_field_image_base64.
if ev_field_class is requested.
if not iv_field_class is initial.
" field that contains class name is explicit specified
ev_field_class = iv_field_class.
else.
" field CLASS
read table lt_comp with key name = 'CLASS' into ls_comp.
if sy-subrc = 0 and
( ls_comp-type eq 'C' or ls_comp-type eq 'g' or ls_comp-type eq 'N' ). " character type
ev_field_class = ls_comp-name.
else.
" first field of character type and length 6 or more contains class name
loop at lt_comp into ls_comp where ( type eq 'C' or type eq 'N' ) and length >= 6 and
name ne 'FILENAME' and name ne 'IMAGE' and name ne 'IMAGE_BASE64'.
ev_field_class = ls_comp-name.
exit.
endloop.
endif.
if ev_field_class is initial.
" first field of type string contains class name
loop at lt_comp into ls_comp where type eq 'g' and
name ne 'FILENAME' and name ne 'IMAGE' and name ne 'IMAGE_BASE64'.
ev_field_class = ls_comp-name.
exit.
endloop.
endif.
endif.
endif.
if ev_field_filename is requested.
if not iv_field_filename is initial.
" field that contains image name is explicit specified
ev_field_filename = iv_field_filename.
else.
read table lt_comp with key name = 'FILENAME' into ls_comp.
if sy-subrc = 0 and
( ls_comp-type eq 'C' or ls_comp-type eq 'g' or ls_comp-type eq 'N' ).
ev_field_filename = ls_comp-name.
else.
" first field of character type and length 12 or more contains image name
loop at lt_comp into ls_comp where ( type eq 'C' or type eq 'N' ) and length >= 12 and
name ne ev_field_class and name ne 'IMAGE' and name ne 'IMAGE_BASE64'.
ev_field_filename = ls_comp-name.
exit.
endloop.
endif.
if ev_field_filename is initial.
" first field of type string contains image name
loop at lt_comp into ls_comp where type eq 'g' and name ne ev_field_class.
ev_field_filename = ls_comp-name.
exit.
endloop.
endif.
endif.
endif.
if ev_field_image is requested.
if not iv_field_image is initial.
" field that contains image data is explicit specified
" check image field data type to determine encoding
read table lt_comp into ls_comp with key name = iv_field_image.
if sy-subrc <> 0.
lv_msg1 = conv #( ev_field_image ). " type conversion
raise_exception(
i_msgno = '054' " Field &1 is missing or has incompatible type.
i_msgv1 = lv_msg1 ).
endif.
if ls_comp-type eq 'g'.
" image is base64 encoded
ev_field_image_base64 = iv_field_image.
else.
" image in binary data
ev_field_image = iv_field_image.
endif.
else.
read table lt_comp with key name = 'IMAGE' into ls_comp.
if sy-subrc <> 0.
read table lt_comp with key name = 'IMAGE_BASE64' into ls_comp.
endif.
if sy-subrc = 0 and
( ls_comp-type eq 'y' or ls_comp-type eq 'g' ). " xstring or string
if ls_comp-type eq 'g'.
ev_field_image_base64 = ls_comp-name.
else.
ev_field_image = ls_comp-name.
endif.
else.
" first field of type xstring contains image data (binary)
loop at lt_comp into ls_comp where type eq 'y' and
name ne ev_field_class and name ne ev_field_filename.
ev_field_image = ls_comp-name.
exit.
endloop.
endif.
if ev_field_image is initial.
" first field of type string contains image data (base64 encoded)
loop at lt_comp into ls_comp where type eq 'g' and
name ne ev_field_class and name ne ev_field_filename.
ev_field_image_base64 = ls_comp-name.
exit.
endloop.
endif.
endif.
endif.
endmethod.
method get_instance.
data:
lv_classname type string,
ls_request_prop type ts_request_prop,
lo_instance type ref to zcl_ibmc_service_ext,
lt_headerstr type tt_string,
lv_headerstr type string,
ls_header type ts_header.
" instantiate object of type of exporting parameter
get_field_type(
exporting
i_field = eo_instance
importing
e_relative_type = lv_classname ).
create object eo_instance type (lv_classname)
exporting
i_url = i_url
i_host = i_host
i_proxy_host = i_proxy_host
i_proxy_port = i_proxy_port
i_username = i_username
i_password = i_password
i_apikey = i_apikey.
lo_instance ?= eo_instance.
" Set service name (= class name without namespace and prefix 'CL_')
if lv_classname cp 'Z*'.
find first occurrence of regex 'ZCL_[^_]*_([^\/]*)$' in lv_classname submatches lo_instance->p_servicename.
else.
find first occurrence of regex 'CL_([^\/]*)$' in lv_classname submatches lo_instance->p_servicename.
endif.
if lo_instance->p_servicename is initial.
find first occurrence of regex '([^\/]*)$' in lv_classname submatches lo_instance->p_servicename.
if lo_instance->p_servicename is initial.
lo_instance->p_servicename = lv_classname.
endif.
endif.
" Set default request headers
split i_request_headers at ';' into table lt_headerstr.
if sy-subrc = 0.
loop at lt_headerstr into lv_headerstr.
split lv_headerstr at '=' into ls_header-name ls_header-value.
if sy-subrc = 0.
append ls_header to lo_instance->p_request_prop_default-headers.
endif.
endloop.
endif.
" Set instance ID
if not i_instance_id is initial.
lo_instance->p_instance_id = i_instance_id.
else.
lo_instance->p_instance_id = get_progname( ).
endif.
" Merge properties from config table for this service and instance
add_config_prop(
exporting
i_servicename = lo_instance->p_servicename
i_instance_id = lo_instance->p_instance_id
changing
c_request_prop = lo_instance->p_request_prop_default ).
normalize_url( changing c_url = lo_instance->p_request_prop_default-url ).
" Merge properties from config table for this service type
add_config_prop(
exporting
i_servicename = lo_instance->p_servicename
changing
c_request_prop = lo_instance->p_request_prop_default ).
normalize_url( changing c_url = lo_instance->p_request_prop_default-url ).
" Get service default properties
ls_request_prop = lo_instance->get_request_prop( i_auth_method = i_auth_method ).
merge_structure(
exporting
i_alternative = ls_request_prop
changing
c_base = lo_instance->p_request_prop_default ).
" Ensure that OAuth is set in case IAM is used.
if lo_instance->p_request_prop_default-auth_name eq 'IAM'.
lo_instance->p_request_prop_default-auth_oauth = c_boolean_true.
endif.
" Set OAuth properties
lo_instance->p_oauth_prop = i_oauth_prop.
normalize_url(
changing
c_url = lo_instance->p_oauth_prop-url ).
if ls_request_prop-auth_name eq 'IAM' or ls_request_prop-auth_name eq 'ICP4D' ##NO_TEXT.
if lo_instance->p_oauth_prop-url-host is initial.
lo_instance->p_oauth_prop-url-protocol = 'https' ##NO_TEXT.
if ls_request_prop-auth_name eq 'IAM'.
lo_instance->p_oauth_prop-url-host = c_iam_token_host.
else.
lo_instance->p_oauth_prop-url-host = lo_instance->p_request_prop_default-url-host.
endif.
endif.
if lo_instance->p_oauth_prop-url-path_base is initial and lo_instance->p_oauth_prop-url-path is initial.
" Set path_base (not path), otherwise the default service path_base would be added, which is not correct
if ls_request_prop-auth_name eq 'IAM'.
lo_instance->p_oauth_prop-url-path_base = c_iam_token_path.
else.
lo_instance->p_oauth_prop-url-path_base = c_icp4d_token_path.
endif.
endif.
if lo_instance->p_oauth_prop-password is initial and lo_instance->p_oauth_prop-apikey is initial.
lo_instance->p_oauth_prop-username = lo_instance->p_request_prop_default-username.
lo_instance->p_oauth_prop-password = lo_instance->p_request_prop_default-password.
lo_instance->p_oauth_prop-apikey = lo_instance->p_request_prop_default-apikey.
endif.
endif.
if not i_access_token-access_token is initial.
lo_instance->p_token_generation = c_token_generation_never.
lo_instance->set_access_token( i_access_token = i_access_token ).
else.
lo_instance->p_token_generation = i_token_generation.
endif.
lo_instance->p_version = i_version.
endmethod.
method get_request_prop.
data:
lv_auth_method type string.
e_request_prop = super->get_request_prop( i_auth_method = i_auth_method ).
lv_auth_method = i_auth_method.
if lv_auth_method eq c_default.
lv_auth_method = 'IAM'.
endif.
if lv_auth_method is initial.
e_request_prop-auth_basic = c_boolean_false.
e_request_prop-auth_oauth = c_boolean_false.
e_request_prop-auth_apikey = c_boolean_false.
elseif lv_auth_method eq 'IAM'.
e_request_prop-auth_name = 'IAM'.
e_request_prop-auth_type = 'apiKey'.
e_request_prop-auth_headername = 'Authorization'.
e_request_prop-auth_header = c_boolean_true.
elseif lv_auth_method eq 'ICP4D'.
e_request_prop-auth_name = 'ICP4D'.
e_request_prop-auth_type = 'apiKey'.
e_request_prop-auth_headername = 'Authorization'.
e_request_prop-auth_header = c_boolean_true.
elseif lv_auth_method eq 'basicAuth'.
e_request_prop-auth_name = 'basicAuth'.
e_request_prop-auth_type = 'http'.
e_request_prop-auth_basic = c_boolean_true.
endif.
endmethod.
method get_sdk_version_date.
e_sdk_version_date = ''.
endmethod.
method get_zipdata.
constants:
c_class_all type string value '#ALL#'.
data:
lv_field_class type fieldname,
lv_field_filename type fieldname,
lv_field_image type fieldname,
lv_field_image_base64 type fieldname,
lv_field_image_act type fieldname,
lv_base64 type boolean,
lr_data type ref to data,
ls_zipdata type ts_map_file,
lv_image_count type i,
lv_class type ty_image_class,
lt_classes type standard table of ty_image_class,
lv_filename type string,
lv_filename_suffix(4) type n value 0,
lo_zip type ref to cl_abap_zip value is initial,
lv_image_name type string,
lv_image_format type ty_image_format.
field-symbols:
<ls_examples> type any,
<lv_class> type any,
<lv_filename> type any,
<lv_image> type any.
create data lr_data like line of it_examples.
assign lr_data->* to <ls_examples>.
" determine field with filename
if iv_field_filename is initial or iv_field_filename eq c_field_none.
if not iv_image_name is initial.
lv_field_filename = c_field_none.
lv_image_name = iv_image_name.
endif.
else.
lv_field_filename = iv_field_filename.
clear: lv_image_name, lv_image_format.
endif.
" get field names
get_field_data(
exporting
is_tableline = <ls_examples>
iv_field_class = iv_field_class
iv_field_filename = lv_field_filename
iv_field_image = iv_field_image
importing
ev_field_class = lv_field_class
ev_field_filename = lv_field_filename
ev_field_image = lv_field_image
ev_field_image_base64 = lv_field_image_base64 ).
" reset field name for filename if explicitly set to 'none'.
if lv_field_filename eq c_field_none.
clear lv_field_filename.
endif.
if iv_field_class eq c_field_none.
" do not separate into different classes
append c_class_all to lt_classes.
else.
" compile list of different classes
loop at it_examples assigning <ls_examples>.
assign component lv_field_class of structure <ls_examples> to <lv_class>.
append <lv_class> to lt_classes.
endloop.
sort lt_classes.
delete adjacent duplicates from lt_classes.
endif.
" determine default image format
if iv_image_format is initial or
iv_image_format eq c_format_all or
iv_image_format eq c_format_unknown.
lv_image_format = c_format_jpg.
else.
lv_image_format = iv_image_format.
endif.
translate lv_image_format to lower case.
" generate a zip data xstring per class
loop at lt_classes into lv_class.
check not lv_class is initial.
create object lo_zip.
lv_image_count = 0.
loop at it_examples assigning <ls_examples>.
if lv_class ne c_class_all.
assign component lv_field_class of structure <ls_examples> to <lv_class>.
check <lv_class> eq lv_class.
endif.
" determine filename
clear lv_filename.
if not lv_field_filename is initial.
assign component lv_field_filename of structure <ls_examples> to <lv_filename>.
if sy-subrc = 0.
" remove path from filename
find regex '([^/\\]*)$' in <lv_filename> submatches lv_filename.
endif.
endif.
" if valid filename was not found, use the default
if lv_filename np '*+.+++'.
if lv_filename is initial.
if lv_image_name is initial.
lv_filename = lv_class && lv_filename_suffix && `.` && lv_image_format.
else.
lv_filename = lv_image_name && lv_filename_suffix && `.` && lv_image_format.
endif.
else.
lv_filename = lv_filename && `.` && lv_image_format.
endif.
lv_filename_suffix = lv_filename_suffix + 1.
endif.
" determine image encoding
if lv_field_image is initial.
lv_field_image_act = lv_field_image_base64.
lv_base64 = c_boolean_true.
elseif lv_field_image_base64 is initial.
lv_field_image_act = lv_field_image.
lv_base64 = c_boolean_false.
else.
assign component lv_field_image of structure <ls_examples> to <lv_image>.
if not <lv_image> is initial.
lv_field_image_act = lv_field_image.
lv_base64 = c_boolean_false.
else.
lv_field_image_act = lv_field_image_base64.
lv_base64 = c_boolean_true.
endif.
endif.
" add image to zip data
add_image_to_zip(
exporting
io_zip = lo_zip
is_tableline = <ls_examples>
iv_filename = lv_filename
iv_field_image = lv_field_image_act
iv_base64 = lv_base64 ).
lv_image_count = lv_image_count + 1.
endloop.
if lv_image_count > 0.
ls_zipdata-key = lv_class.
ls_zipdata-data = lo_zip->save( ).
append ls_zipdata to et_zipdata.
endif.
endloop.
endmethod.
method set_bearer_token.
data:
ls_access_token type ts_access_token.
ls_access_token-token_type = 'Bearer' ##NO_TEXT.
ls_access_token-access_token = i_bearer_token.
try.
set_access_token( i_access_token = ls_access_token ).
catch zcx_ibmc_service_exception ##NO_HANDLER.
endtry.
endmethod.
ENDCLASS.
| [
9,
15069,
13130,
11,
42334,
19764,
11421,
13,
1439,
6923,
33876,
13,
198,
9,
198,
9,
49962,
739,
262,
24843,
13789,
11,
10628,
362,
13,
15,
357,
1169,
366,
34156,
15341,
198,
9,
345,
743,
407,
779,
428,
2393,
2845,
287,
11846,
351,
262,
13789,
13,
198,
9,
921,
743,
7330,
257,
4866,
286,
262,
13789,
379,
198,
9,
198,
9,
220,
220,
220,
220,
2638,
1378,
2503,
13,
43073,
13,
2398,
14,
677,
4541,
14,
43,
2149,
24290,
12,
17,
13,
15,
198,
9,
198,
9,
17486,
2672,
416,
9723,
1099,
393,
4987,
284,
287,
3597,
11,
3788,
198,
9,
9387,
739,
262,
13789,
318,
9387,
319,
281,
366,
1921,
3180,
1,
29809,
1797,
11,
198,
9,
42881,
34764,
11015,
6375,
7102,
49828,
11053,
3963,
15529,
509,
12115,
11,
2035,
4911,
393,
17142,
13,
198,
9,
4091,
262,
13789,
329,
262,
2176,
3303,
15030,
21627,
290,
198,
9,
11247,
739,
262,
13789,
13,
198,
4871,
1168,
5097,
62,
9865,
9655,
62,
35009,
27389,
62,
13918,
6770,
198,
220,
1171,
198,
220,
10639,
1780,
422,
1168,
5097,
62,
9865,
9655,
62,
35009,
27389,
198,
220,
2251,
1171,
764,
198,
198,
11377,
2665,
13,
628,
220,
3858,
25,
198,
220,
220,
220,
1259,
62,
39098,
62,
312,
7,
2624,
8,
2099,
269,
764,
198,
220,
3858,
25,
198,
220,
220,
220,
1259,
62,
3168,
291,
12453,
7,
1270,
8,
2099,
269,
764,
198,
220,
3858,
25,
198,
220,
220,
220,
1259,
62,
9060,
62,
18982,
7,
18,
8,
2099,
269,
764,
198,
220,
3858,
24412,
62,
3955,
11879,
62,
31631,
2099,
19269,
2751,
764,
198,
220,
3858,
25,
198,
220,
220,
220,
2221,
286,
40379,
62,
12162,
1071,
62,
22930,
11,
198,
220,
220,
220,
220,
220,
220,
220,
19016,
220,
220,
220,
220,
220,
2099,
40379,
62,
6371,
11,
198,
220,
220,
220,
220,
220,
220,
220,
20579,
2099,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
9206,
2099,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2471,
522,
88,
220,
220,
2099,
4731,
11,
198,
220,
220,
220,
220,
220,
886,
286,
40379,
62,
12162,
1071,
62,
22930,
764,
628,
220,
38491,
327,
62,
44603,
62,
45,
11651,
2099,
18930,
24639,
20608,
1988,
705,
21017,
6,
22492,
15285,
62,
32541,
13,
198,
220,
38491,
327,
62,
21389,
1404,
62,
41,
6968,
2099,
24412,
62,
3955,
11879,
62,
21389,
1404,
1988,
705,
9479,
6,
22492,
15285,
62,
32541,
13,
198,
220,
38491,
327,
62,
21389,
1404,
62,
47,
10503,
2099,
24412,
62,
3955,
11879,
62,
21389,
1404,
1988,
705,
11134,
6,
22492,
15285,
62,
32541,
13,
198,
220,
38491,
327,
62,
21389,
1404,
62,
38,
5064,
2099,
24412,
62,
3955,
11879,
62,
21389,
1404,
1988,
705,
27908,
6,
22492,
15285,
62,
32541,
13,
198,
220,
38491,
327,
62,
21389,
1404,
62,
51,
5064,
2099,
24412,
62,
3955,
11879,
62,
21389,
1404,
1988,
705,
49929,
6,
22492,
15285,
62,
32541,
13,
198,
220,
38491,
327,
62,
21389,
1404,
62,
57,
4061,
2099,
24412,
62,
3955,
11879,
62,
21389,
1404,
1988,
705,
13344,
6,
22492,
15285,
62,
32541,
13,
198,
220,
38491,
327,
62,
21389,
1404,
62,
7036,
2099,
24412,
62,
3955,
11879,
62,
21389,
1404,
1988,
705,
9,
6,
22492,
15285,
62,
32541,
13,
198,
220,
38491,
327,
62,
21389,
1404,
62,
4944,
44706,
2099,
24412,
62,
3955,
11879,
62,
21389,
1404,
1988,
705,
21017,
6,
22492,
15285,
62,
32541,
13,
198,
220,
38491,
327,
62,
10468,
43959,
62,
35353,
1137,
6234,
62,
12161,
5959,
2099,
28521,
1988,
705,
45,
6,
22492,
15285,
62,
32541,
13,
198,
220,
38491,
327,
62,
10468,
43959,
62,
35353,
1137,
6234,
62,
1847,
42451,
2099,
28521,
1988,
705,
32,
6,
22492,
15285,
62,
32541,
13,
198,
220,
38491,
327,
62,
10468,
43959,
62,
35353,
1137,
6234,
62,
39371,
46,
2099,
28521,
1988,
37253,
22492,
15285,
62,
32541,
13,
198,
220,
38491,
327,
62,
40,
2390,
62,
10468,
43959,
62,
39,
10892,
2099,
19269,
2751,
1988,
705,
1789,
13,
17721,
13,
571,
76,
13,
785,
6,
22492,
15285,
62,
32541,
13,
198,
220,
38491,
327,
62,
40,
2390,
62,
10468,
43959,
62,
34219,
2099,
19269,
2751,
1988,
31051,
738,
414,
14,
30001,
6,
22492,
15285,
62,
32541,
13,
198,
220,
38491,
327,
62,
2149,
47,
19,
35,
62,
10468,
43959,
62,
34219,
2099,
19269,
2751,
1988,
31051,
85,
16,
14,
3866,
18439,
14,
12102,
378,
30515,
6,
22492,
15285,
62,
32541,
13,
198,
220,
1366,
350,
62,
38604,
19240,
62,
2389,
2099,
24412,
62,
38604,
19240,
62,
2389,
764,
198,
220,
1366,
350,
62,
35009,
53,
2149,
1677,
10067,
2099,
24412,
62,
35009,
53,
2149,
1677,
10067,
764,
628,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
35561,
262,
49508,
11241,
11,
611,
1695,
25970,
79,
29,
198,
220,
366,
0,
198,
220,
366,
0,
2488,
17143,
2357,
412,
62,
12473,
1503,
1137,
62,
10468,
43959,
930,
8798,
11241,
13,
198,
220,
366,
0,
198,
220,
5050,
17151,
62,
12473,
1503,
1137,
62,
10468,
43959,
198,
220,
220,
220,
8024,
198,
220,
220,
220,
220,
220,
1988,
7,
36,
62,
12473,
1503,
1137,
62,
10468,
43959,
8,
2099,
19269,
2751,
764,
198,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
35561,
262,
26144,
3170,
3128,
25970,
79,
29,
198,
220,
366,
0,
198,
220,
366,
0,
2488,
17143,
2357,
412,
62,
10305,
42,
62,
43717,
62,
35,
6158,
930,
28477,
1366,
287,
5794,
575,
26314,
56,
12038,
16458,
13,
198,
220,
366,
0,
198,
220,
5050,
17151,
62,
10305,
42,
62,
43717,
62,
35,
6158,
198,
220,
220,
220,
8024,
198,
220,
220,
220,
220,
220,
1988,
7,
36,
62,
10305,
42,
62,
43717,
62,
35,
6158,
8,
2099,
19269,
2751,
764,
198,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
17410,
329,
5387,
779,
25970,
79,
29,
198,
220,
366,
0,
198,
220,
5050,
25823,
62,
12473,
1503,
1137,
62,
10468,
43959,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
40,
62,
12473,
1503,
1137,
62,
10468,
43959,
2099,
19269,
2751,
764,
198,
220,
366,
0,
1279,
79,
1398,
2625
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS ltcl_prime_factor DEFINITION FOR TESTING DURATION SHORT RISK LEVEL HARMLESS FINAL.
PRIVATE SECTION.
DATA cut TYPE REF TO zcl_prime_factors.
METHODS setup.
METHODS test_no_factors FOR TESTING RAISING cx_static_check.
METHODS test_prime_number FOR TESTING RAISING cx_static_check.
METHODS test_another_prime_number FOR TESTING RAISING cx_static_check.
METHODS test_square_of_a_prime FOR TESTING RAISING cx_static_check.
METHODS test_product_of_first_prime FOR TESTING RAISING cx_static_check.
METHODS test_cube_of_a_prime FOR TESTING RAISING cx_static_check.
METHODS test_product_of_second_prime FOR TESTING RAISING cx_static_check.
METHODS test_product_of_third_prime FOR TESTING RAISING cx_static_check.
METHODS test_product_first_sec_prime FOR TESTING RAISING cx_static_check.
METHODS test_product_primes_non_prime FOR TESTING RAISING cx_static_check.
METHODS test_product_of_primes FOR TESTING RAISING cx_static_check.
METHODS test_factors_large_prime FOR TESTING RAISING cx_static_check.
ENDCLASS.
CLASS ltcl_prime_factor IMPLEMENTATION.
METHOD setup.
cut = NEW zcl_prime_factors( ).
ENDMETHOD.
"no factors
METHOD test_no_factors.
DATA(expected_value) = VALUE zcl_prime_factors=>integertab( ).
cl_abap_unit_assert=>assert_equals(
act = cut->factors( 1 )
exp = expected_value ).
ENDMETHOD.
"prime number
METHOD test_prime_number.
DATA(expected_value) = VALUE zcl_prime_factors=>integertab( ( 2 ) ).
cl_abap_unit_assert=>assert_equals(
act = cut->factors( 2 )
exp = expected_value ).
ENDMETHOD.
"another prime number
METHOD test_another_prime_number.
DATA(expected_value) = VALUE zcl_prime_factors=>integertab( ( 3 ) ).
cl_abap_unit_assert=>assert_equals(
act = cut->factors( 3 )
exp = expected_value ).
ENDMETHOD.
"square of a prime
METHOD test_square_of_a_prime.
DATA(expected_value) = VALUE zcl_prime_factors=>integertab( ( 3 ) ( 3 ) ).
cl_abap_unit_assert=>assert_equals(
act = cut->factors( 9 )
exp = expected_value ).
ENDMETHOD.
"product of first prime
METHOD test_product_of_first_prime.
DATA(expected_value) = VALUE zcl_prime_factors=>integertab( ( 2 ) ( 2 ) ).
cl_abap_unit_assert=>assert_equals(
act = cut->factors( 4 )
exp = expected_value ).
ENDMETHOD.
"cube of a prime
METHOD test_cube_of_a_prime.
DATA(expected_value) = VALUE zcl_prime_factors=>integertab( ( 2 ) ( 2 ) ( 2 ) ).
cl_abap_unit_assert=>assert_equals(
act = cut->factors( 8 )
exp = expected_value ).
ENDMETHOD.
"product of second prime
METHOD test_product_of_second_prime.
DATA(expected_value) = VALUE zcl_prime_factors=>integertab( ( 3 ) ( 3 ) ( 3 ) ).
cl_abap_unit_assert=>assert_equals(
act = cut->factors( 27 )
exp = expected_value ).
ENDMETHOD.
"product of third prime
METHOD test_product_of_third_prime.
DATA(expected_value) = VALUE zcl_prime_factors=>integertab( ( 5 ) ( 5 ) ( 5 ) ( 5 ) ).
cl_abap_unit_assert=>assert_equals(
act = cut->factors( 625 )
exp = expected_value ).
ENDMETHOD.
"product of first and second prime
METHOD test_product_first_sec_prime.
DATA(expected_value) = VALUE zcl_prime_factors=>integertab( ( 2 ) ( 3 ) ).
cl_abap_unit_assert=>assert_equals(
act = cut->factors( 6 )
exp = expected_value ).
ENDMETHOD.
"product of primes and non-prime
METHOD test_product_primes_non_prime.
DATA(expected_value) = VALUE zcl_prime_factors=>integertab( ( 2 ) ( 2 ) ( 3 ) ).
cl_abap_unit_assert=>assert_equals(
act = cut->factors( 12 )
exp = expected_value ).
ENDMETHOD.
"product of primes
METHOD test_product_of_primes.
DATA(expected_value) = VALUE zcl_prime_factors=>integertab( ( 5 ) ( 17 ) ( 23 ) ( 461 ) ).
cl_abap_unit_assert=>assert_equals(
act = cut->factors( 901255 )
exp = expected_value ).
ENDMETHOD.
"factors include a large prime
METHOD test_factors_large_prime.
DATA(expected_value) = VALUE zcl_prime_factors=>integertab( ( 11 ) ( 9539 ) ( 894119 ) ).
cl_abap_unit_assert=>assert_equals(
act = cut->factors( 93819012551 )
exp = expected_value ).
ENDMETHOD.
ENDCLASS.
| [
31631,
300,
83,
565,
62,
35505,
62,
31412,
5550,
20032,
17941,
7473,
43001,
2751,
360,
4261,
6234,
6006,
9863,
45698,
42,
49277,
43638,
5805,
7597,
25261,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42865,
2005,
41876,
4526,
37,
5390,
1976,
565,
62,
35505,
62,
22584,
669,
13,
198,
220,
220,
220,
337,
36252,
50,
9058,
13,
198,
220,
220,
220,
337,
36252,
50,
1332,
62,
3919,
62,
22584,
669,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
13,
198,
220,
220,
220,
337,
36252,
50,
1332,
62,
35505,
62,
17618,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
13,
198,
220,
220,
220,
337,
36252,
50,
1332,
62,
29214,
62,
35505,
62,
17618,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
13,
198,
220,
220,
220,
337,
36252,
50,
1332,
62,
23415,
62,
1659,
62,
64,
62,
35505,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
13,
198,
220,
220,
220,
337,
36252,
50,
1332,
62,
11167,
62,
1659,
62,
11085,
62,
35505,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
13,
198,
220,
220,
220,
337,
36252,
50,
1332,
62,
40296,
62,
1659,
62,
64,
62,
35505,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
13,
198,
220,
220,
220,
337,
36252,
50,
1332,
62,
11167,
62,
1659,
62,
12227,
62,
35505,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
13,
198,
220,
220,
220,
337,
36252,
50,
1332,
62,
11167,
62,
1659,
62,
17089,
62,
35505,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
13,
198,
220,
220,
220,
337,
36252,
50,
1332,
62,
11167,
62,
11085,
62,
2363,
62,
35505,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
13,
198,
220,
220,
220,
337,
36252,
50,
1332,
62,
11167,
62,
1050,
999,
62,
13159,
62,
35505,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
13,
198,
220,
220,
220,
337,
36252,
50,
1332,
62,
11167,
62,
1659,
62,
1050,
999,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
13,
198,
220,
220,
220,
337,
36252,
50,
1332,
62,
22584,
669,
62,
11664,
62,
35505,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
13,
198,
10619,
31631,
13,
198,
31631,
300,
83,
565,
62,
35505,
62,
31412,
30023,
2538,
10979,
6234,
13,
198,
220,
337,
36252,
9058,
13,
198,
220,
220,
220,
2005,
796,
12682,
1976,
565,
62,
35505,
62,
22584,
669,
7,
6739,
198,
220,
23578,
49273,
13,
198,
220,
366,
3919,
5087,
198,
220,
337,
36252,
1332,
62,
3919,
62,
22584,
669,
13,
198,
220,
220,
220,
42865,
7,
40319,
62,
8367,
8,
796,
26173,
8924,
1976,
565,
62,
35505,
62,
22584,
669,
14804,
18908,
861,
397,
7,
6739,
198,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
198,
220,
220,
220,
220,
220,
719,
796,
2005,
3784,
22584,
669,
7,
352,
1267,
198,
220,
220,
220,
220,
220,
1033,
796,
2938,
62,
8367,
6739,
198,
220,
23578,
49273,
13,
198,
220,
366,
35505,
1271,
198,
220,
337,
36252,
1332,
62,
35505,
62,
17618,
13,
198,
220,
220,
220,
42865,
7,
40319,
62,
8367,
8,
796,
26173,
8924,
1976,
565,
62,
35505,
62,
22584,
669,
14804,
18908,
861,
397,
7,
357,
362,
1267,
6739,
198,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
198,
220,
220,
220,
220,
220,
719,
796,
2005,
3784,
22584,
669,
7,
362,
1267,
198,
220,
220,
220,
220,
220,
1033,
796,
2938,
62,
8367,
6739,
198,
220,
23578,
49273,
13,
198,
220,
366,
29214,
6994,
1271,
198,
220,
337,
36252,
1332,
62,
29214,
62,
35505,
62,
17618,
13,
198,
220,
220,
220,
42865,
7,
40319,
62,
8367,
8,
796,
26173,
8924,
1976,
565,
62,
35505,
62,
22584,
669,
14804,
18908,
861,
397,
7,
357,
513,
1267,
6739,
198,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
198,
220,
220,
220,
220,
220,
719,
796,
2005,
3784,
22584,
669,
7,
513,
1267,
198,
220,
220,
220,
220,
220,
1033,
796,
2938,
62,
8367,
6739,
198,
220,
23578,
49273,
13,
198,
220,
366,
23415,
286,
257,
6994,
198,
220,
337,
36252,
1332,
62,
23415,
62,
1659,
62,
64,
62,
35505,
13,
198,
220,
220,
220,
42865,
7,
40319,
62,
8367,
8,
796,
26173,
8924,
1976,
565,
62,
35505,
62,
22584,
669,
14804,
18908,
861,
397,
7,
357,
513,
1267,
357,
513,
1267,
6739,
198,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
198,
220,
220,
220,
220,
220,
719,
796,
2005,
3784,
22584,
669,
7,
860,
1267,
198,
220,
220,
220,
220,
220,
1033,
796,
2938,
62,
8367,
6739,
198,
220,
23578,
49273,
13,
198,
220,
366,
11167,
286,
717,
6994,
198,
220,
337,
36252,
1332,
62,
11167,
62,
1659,
62,
11085,
62,
35505,
13,
198,
220,
220,
220,
42865,
7,
40319,
62,
8367,
8,
796,
26173,
8924,
1976,
565,
62,
35505,
62,
22584,
669,
14804,
18908,
861,
397,
7,
357,
362,
1267,
357,
362,
1267,
6739,
198,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
198,
220,
220,
220,
220,
220,
719,
796,
2005,
3784,
22584,
669,
7,
604,
1267,
198,
220,
220,
220,
220,
220,
1033,
796,
2938,
62,
8367,
6739,
198,
220,
23578,
49273,
13,
198,
220,
366,
40296,
286,
257,
6994,
198,
220,
337,
36252,
1332,
62,
40296,
62,
1659,
62,
64,
62,
35505,
13,
198,
220,
220,
220,
42865,
7,
40319,
62,
8367,
8,
796,
26173,
8924,
1976,
565,
62,
35505,
62,
22584,
669,
14804,
18908,
861,
397,
7,
357,
362,
1267,
357,
362,
1267,
357,
362,
1267,
6739,
198,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
198,
220,
220,
220,
220,
220,
719,
796,
2005,
3784,
22584,
669,
7,
807,
1267,
198,
220,
220,
220,
220,
220,
1033,
796,
2938,
62,
8367,
6739,
198,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
*"* use this source file for any type of declarations (class
*"* definitions, interfaces or type declarations) you need for
*"* components in the private section
TYPES:
BEGIN OF lty_select_field,
value TYPE string,
alias TYPE string,
END OF lty_select_field,
lty_select_fields TYPE STANDARD TABLE OF lty_select_field WITH EMPTY KEY,
BEGIN OF lty_select_part,
fields TYPE lty_select_fields,
END OF lty_select_part,
BEGIN OF lty_where_comp,
value TYPE string,
and_or TYPE string,
END OF lty_where_comp,
lty_where_comps TYPE STANDARD TABLE OF lty_where_comp WITH EMPTY KEY,
BEGIN OF lty_where_part,
components TYPE lty_where_comps,
END OF lty_where_part,
BEGIN OF lty_query,
select_part TYPE lty_select_part,
where_part TYPE lty_where_part,
END OF lty_query.
INTERFACE lif_statement_parser.
METHODS parse
RETURNING
VALUE(result) TYPE REF TO data.
ENDINTERFACE.
CLASS lcl_token_parser DEFINITION
ABSTRACT.
PUBLIC SECTION.
METHODS:
constructor
IMPORTING
tokens TYPE zcl_qdrt_sql_query_parser=>ty_tokens.
PROTECTED SECTION.
DATA:
tokens TYPE zcl_qdrt_sql_query_parser=>ty_tokens,
token_count TYPE i,
current_index TYPE i,
current_token TYPE zcl_qdrt_sql_query_parser=>ty_token.
METHODS:
"! <p class="shorttext synchronized" lang="en">Navigate to next token in the list</p>
"!
next_token,
"! <p class="shorttext synchronized" lang="en">Delete the current token</p>
"!
delete_current,
"! <p class="shorttext synchronized" lang="en">Set index to first token in the list</p>
"!
set_index_to_first,
"! <p class="shorttext synchronized" lang="en">Navigate to the previous token in the list</p>
"!
previous_token,
"! <p class="shorttext synchronized" lang="en">Retrieve the next token for the given value</p>
"!
get_token
IMPORTING
token TYPE string
start_from_current TYPE abap_bool OPTIONAL
RETURNING
VALUE(exists) TYPE abap_bool,
"! <p class="shorttext synchronized" lang="en">Checks if there is another token after the current one</p>
"!
has_next_token
RETURNING
VALUE(result) TYPE abap_bool,
"! <p class="shorttext synchronized" lang="en">Checks if there is another token before the current one</p>
"!
has_previous_token
RETURNING
VALUE(result) TYPE abap_bool,
"! <p class="shorttext synchronized" lang="en">Check if the next token has the given value</p>
"!
is_next_token
IMPORTING
next_token TYPE string
RETURNING
VALUE(result) TYPE abap_bool,
"! <p class="shorttext synchronized" lang="en">Check if the previous token has the given value</p>
"!
is_previous_token
IMPORTING
previous_token TYPE string
RETURNING
VALUE(result) TYPE abap_bool,
"! <p class="shorttext synchronized" lang="en">Updates the current token from the current working structure</p>
"!
update_from_current,
"! <p class="shorttext synchronized" lang="en">Deletes the next token in the list</p>
"!
delete_next,
"! <p class="shorttext synchronized" lang="en">Delete the previous token in the list</p>
"!
delete_previous,
"! <p class="shorttext synchronized" lang="en">Checks if the token matches a token in a comma separated token list</p>
"!
token_matches
IMPORTING
check_list TYPE string
token_to_check TYPE string
RETURNING
VALUE(result) TYPE abap_bool.
ENDCLASS.
CLASS lcl_query_token_simplifier DEFINITION
INHERITING FROM lcl_token_parser.
PUBLIC SECTION.
METHODS simplify
RETURNING
VALUE(rt_tokens) TYPE zcl_qdrt_sql_query_parser=>ty_tokens.
PROTECTED SECTION.
PRIVATE SECTION.
METHODS:
simplify_by_clause
IMPORTING
clause TYPE string
simplified TYPE string,
simplify_joins,
simplify_conditions.
ENDCLASS.
CLASS lcl_query_param_parser DEFINITION
INHERITING FROM lcl_token_parser.
PUBLIC SECTION.
INTERFACES lif_statement_parser.
ALIASES parse
FOR lif_statement_parser~parse.
PRIVATE SECTION.
DATA:
param TYPE REF TO zcl_qdrt_sql_query_parser=>ty_parameter.
METHODS:
parse_type,
parse_length,
parse_value,
parse_decimals,
parse_name.
ENDCLASS.
| [
9,
1,
9,
779,
428,
2723,
2393,
329,
597,
2099,
286,
31713,
357,
4871,
198,
9,
1,
9,
17336,
11,
20314,
393,
2099,
31713,
8,
345,
761,
329,
198,
9,
1,
9,
6805,
287,
262,
2839,
2665,
198,
198,
9936,
47,
1546,
25,
198,
220,
347,
43312,
3963,
300,
774,
62,
19738,
62,
3245,
11,
198,
220,
220,
220,
1988,
41876,
4731,
11,
198,
220,
220,
220,
16144,
41876,
4731,
11,
198,
220,
23578,
3963,
300,
774,
62,
19738,
62,
3245,
11,
198,
220,
300,
774,
62,
19738,
62,
25747,
41876,
49053,
9795,
43679,
3963,
300,
774,
62,
19738,
62,
3245,
13315,
38144,
9936,
35374,
11,
628,
220,
347,
43312,
3963,
300,
774,
62,
19738,
62,
3911,
11,
198,
220,
220,
220,
7032,
41876,
300,
774,
62,
19738,
62,
25747,
11,
198,
220,
23578,
3963,
300,
774,
62,
19738,
62,
3911,
11,
198,
220,
347,
43312,
3963,
300,
774,
62,
3003,
62,
5589,
11,
198,
220,
220,
220,
1988,
220,
41876,
4731,
11,
198,
220,
220,
220,
290,
62,
273,
41876,
4731,
11,
198,
220,
23578,
3963,
300,
774,
62,
3003,
62,
5589,
11,
198,
220,
300,
774,
62,
3003,
62,
785,
862,
41876,
49053,
9795,
43679,
3963,
300,
774,
62,
3003,
62,
5589,
13315,
38144,
9936,
35374,
11,
628,
220,
347,
43312,
3963,
300,
774,
62,
3003,
62,
3911,
11,
198,
220,
220,
220,
6805,
41876,
300,
774,
62,
3003,
62,
785,
862,
11,
198,
220,
23578,
3963,
300,
774,
62,
3003,
62,
3911,
11,
628,
220,
347,
43312,
3963,
300,
774,
62,
22766,
11,
198,
220,
220,
220,
2922,
62,
3911,
41876,
300,
774,
62,
19738,
62,
3911,
11,
198,
220,
220,
220,
810,
62,
3911,
220,
41876,
300,
774,
62,
3003,
62,
3911,
11,
198,
220,
23578,
3963,
300,
774,
62,
22766,
13,
628,
198,
41358,
49836,
3868,
62,
26090,
62,
48610,
13,
198,
220,
337,
36252,
50,
21136,
198,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
26173,
8924,
7,
20274,
8,
41876,
4526,
37,
5390,
1366,
13,
198,
10619,
41358,
49836,
13,
198,
198,
31631,
300,
565,
62,
30001,
62,
48610,
5550,
20032,
17941,
198,
9564,
18601,
10659,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
23772,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16326,
41876,
1976,
565,
62,
80,
7109,
83,
62,
25410,
62,
22766,
62,
48610,
14804,
774,
62,
83,
482,
641,
13,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
220,
220,
42865,
25,
198,
220,
220,
220,
220,
220,
16326,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
565,
62,
80,
7109,
83,
62,
25410,
62,
22766,
62,
48610,
14804,
774,
62,
83,
482,
641,
11,
198,
220,
220,
220,
220,
220,
11241,
62,
9127,
220,
220,
41876,
1312,
11,
198,
220,
220,
220,
220,
220,
1459,
62,
9630,
41876,
1312,
11,
198,
220,
220,
220,
220,
220,
1459,
62,
30001,
41876,
1976,
565,
62,
80,
7109,
83,
62,
25410,
62,
22766,
62,
48610,
14804,
774,
62,
30001,
13,
628,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
30575,
10055,
284,
1306,
11241,
287,
262,
1351,
3556,
79,
29,
198,
220,
220,
220,
220,
220,
366,
0,
198,
220,
220,
220,
220,
220,
1306,
62,
30001,
11,
198,
220,
220,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
38727,
262,
1459,
11241,
3556,
79,
29,
198,
220,
220,
220,
220,
220,
366,
0,
198,
220,
220,
220,
220,
220,
12233,
62,
14421,
11,
198,
220,
220,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
7248,
6376,
284,
717,
11241,
287,
262,
1351,
3556,
79,
29,
198,
220,
220,
220,
220,
220,
366,
0,
198,
220,
220,
220,
220,
220,
900,
62,
9630,
62,
1462,
62,
11085,
11,
198,
220,
220,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
30575,
10055,
284,
262,
2180,
11241,
287,
262,
1351,
3556,
79,
29,
198,
220,
220,
220,
220,
220,
366,
0,
198,
220,
220,
220,
220,
220,
2180,
62,
30001,
11,
198,
220,
220,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
9781,
30227,
262,
1306,
11241,
329,
262,
1813,
1988,
3556,
79,
29,
198,
220,
220,
220,
220,
220,
366,
0,
198,
220,
220,
220,
220,
220,
651,
62,
30001,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11241,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
923,
62,
6738,
62,
14421,
41876,
450,
499,
62,
30388,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
1069,
1023,
8,
220,
220,
220,
220,
220,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
7376,
4657,
611,
612,
318,
1194,
11241,
706,
262,
1459,
530,
3556,
79,
29,
198,
220,
220,
220,
220,
220,
366,
0,
198,
220,
220,
220,
220,
220,
468,
62,
19545,
62,
30001,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
20274,
8,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
7376,
4657,
611,
612,
318,
1194,
11241,
878,
262,
1459,
530,
3556,
79,
29,
198,
220,
220,
220,
220,
220,
366,
0,
198,
220,
220,
220,
220,
220,
468,
62,
3866,
1442,
62,
30001,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS /dmo/cl_travel_auxiliary21 DEFINITION
PUBLIC
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
* Type definition for import parameters --------------------------
TYPES tt_travel_create TYPE TABLE FOR CREATE /dmo/i_travel_u21.
TYPES tt_travel_update TYPE TABLE FOR UPDATE /dmo/i_travel_u21.
TYPES tt_travel_delete TYPE TABLE FOR DELETE /dmo/i_travel_u21.
TYPES tt_travel_failed TYPE TABLE FOR FAILED /dmo/i_travel_u21.
TYPES tt_travel_mapped TYPE TABLE FOR MAPPED /dmo/i_travel_u21.
TYPES tt_travel_reported TYPE TABLE FOR REPORTED /dmo/i_travel_u21.
TYPES tt_booking_create TYPE TABLE FOR CREATE /dmo/i_booking_u21.
TYPES tt_booking_update TYPE TABLE FOR UPDATE /dmo/i_booking_u21.
TYPES tt_booking_delete TYPE TABLE FOR DELETE /dmo/i_booking_u21.
TYPES tt_booking_failed TYPE TABLE FOR FAILED /dmo/i_booking_u21.
TYPES tt_booking_mapped TYPE TABLE FOR MAPPED /dmo/i_booking_u21.
TYPES tt_booking_reported TYPE TABLE FOR REPORTED /dmo/i_booking_u21.
TYPES tt_bookingsupplement_failed TYPE TABLE FOR FAILED /dmo/i_bookingsupplement_u21.
TYPES tt_bookingsupplement_mapped TYPE TABLE FOR MAPPED /dmo/i_bookingsupplement_u21.
TYPES tt_bookingsupplement_reported TYPE TABLE FOR REPORTED /dmo/i_bookingsupplement_u21.
CLASS-METHODS map_travel_cds_to_db
IMPORTING is_i_travel_u TYPE /dmo/i_travel_u21
RETURNING VALUE(rs_travel) TYPE /dmo/if_flight_legacy21=>ts_travel_in.
CLASS-METHODS map_travel_message
IMPORTING iv_cid TYPE string OPTIONAL
iv_travel_id TYPE /dmo/travel_id21 OPTIONAL
is_message TYPE LINE OF /dmo/if_flight_legacy21=>tt_message
RETURNING VALUE(rs_report) TYPE LINE OF tt_travel_reported.
CLASS-METHODS map_booking_cds_to_db
IMPORTING is_i_booking TYPE /dmo/i_booking_u21
RETURNING VALUE(rs_booking) TYPE /dmo/if_flight_legacy21=>ts_booking_in.
CLASS-METHODS map_booking_message
IMPORTING iv_cid TYPE string OPTIONAL
iv_travel_id TYPE /dmo/travel_id21 OPTIONAL
iv_booking_id TYPE /dmo/booking_id21 OPTIONAL
is_message TYPE LINE OF /dmo/if_flight_legacy21=>tt_message
RETURNING VALUE(rs_report) TYPE LINE OF tt_booking_reported.
CLASS-METHODS map_bookingsupplemnt_cds_to_db
IMPORTING is_i_bookingsupplement TYPE /dmo/i_bookingsupplement_u21
RETURNING VALUE(rs_bookingsupplement) TYPE /dmo/if_flight_legacy21=>ts_booking_supplement_in.
CLASS-METHODS map_bookingsupplemnt_message
IMPORTING iv_cid TYPE string OPTIONAL
iv_travel_id TYPE /dmo/travel_id21 OPTIONAL
iv_booking_id TYPE /dmo/booking_id21 OPTIONAL
iv_bookingsupplement_id TYPE /dmo/booking_supplement_id21 OPTIONAL
is_message TYPE LINE OF /dmo/if_flight_legacy21=>tt_message
RETURNING VALUE(rs_report) TYPE LINE OF tt_bookingsupplement_reported.
PROTECTED SECTION.
PRIVATE SECTION.
CLASS-METHODS new_message
IMPORTING id TYPE symsgid
number TYPE symsgno
severity TYPE if_abap_behv_message=>t_severity
v1 TYPE simple OPTIONAL
v2 TYPE simple OPTIONAL
v3 TYPE simple OPTIONAL
v4 TYPE simple OPTIONAL
RETURNING VALUE(obj) TYPE REF TO if_abap_behv_message .
ENDCLASS.
CLASS /dmo/cl_travel_auxiliary21 IMPLEMENTATION.
METHOD map_travel_cds_to_db.
rs_travel = CORRESPONDING #( is_i_travel_u MAPPING travel_id = travelid
agency_id = agencyid
customer_id = customerid
begin_date = begindate
end_date = enddate
booking_fee = bookingfee
total_price = totalprice
currency_code = currencycode
description = memo
status = status ).
ENDMETHOD.
METHOD map_travel_message.
DATA(lo) = new_message( id = is_message-msgid
number = is_message-msgno
severity = if_abap_behv_message=>severity-error
v1 = is_message-msgv1
v2 = is_message-msgv2
v3 = is_message-msgv3
v4 = is_message-msgv4 ).
rs_report-%cid = iv_cid.
rs_report-travelid = iv_travel_id.
rs_report-%msg = lo.
ENDMETHOD.
METHOD map_booking_cds_to_db.
rs_booking = CORRESPONDING #( is_i_booking MAPPING booking_id = bookingid
booking_date = bookingdate
customer_id = customerid
carrier_id = airlineid
connection_id = connectionid
flight_date = flightdate
flight_price = flightprice
currency_code = currencycode ).
ENDMETHOD.
METHOD map_booking_message.
DATA(lo) = new_message( id = is_message-msgid
number = is_message-msgno
severity = if_abap_behv_message=>severity-error
v1 = is_message-msgv1
v2 = is_message-msgv2
v3 = is_message-msgv3
v4 = is_message-msgv4 ).
rs_report-%cid = iv_cid.
rs_report-travelid = iv_travel_id.
rs_report-bookingid = iv_booking_id.
rs_report-%msg = lo.
ENDMETHOD.
METHOD map_bookingsupplemnt_cds_to_db.
rs_bookingsupplement = CORRESPONDING #( is_i_bookingsupplement MAPPING booking_id = bookingid
booking_supplement_id = bookingsupplementid
supplement_id = supplementid
price = price
currency_code = currencycode ).
ENDMETHOD.
METHOD map_bookingsupplemnt_message.
DATA(lo) = new_message( id = is_message-msgid
number = is_message-msgno
severity = if_abap_behv_message=>severity-error
v1 = is_message-msgv1
v2 = is_message-msgv2
v3 = is_message-msgv3
v4 = is_message-msgv4 ).
rs_report-%cid = iv_cid.
rs_report-travelid = iv_travel_id.
rs_report-bookingid = iv_booking_id.
rs_report-bookingSupplementid = iv_bookingsupplement_id.
rs_report-%msg = lo.
ENDMETHOD.
METHOD new_message.
obj = NEW lcl_abap_behv_msg(
textid = VALUE #(
msgid = id
msgno = number
attr1 = COND #( WHEN v1 IS NOT INITIAL THEN 'IF_T100_DYN_MSG~MSGV1' )
attr2 = COND #( WHEN v2 IS NOT INITIAL THEN 'IF_T100_DYN_MSG~MSGV2' )
attr3 = COND #( WHEN v3 IS NOT INITIAL THEN 'IF_T100_DYN_MSG~MSGV3' )
attr4 = COND #( WHEN v4 IS NOT INITIAL THEN 'IF_T100_DYN_MSG~MSGV4' )
)
msgty = SWITCH #( severity
WHEN if_abap_behv_message=>severity-error THEN 'E'
WHEN if_abap_behv_message=>severity-warning THEN 'W'
WHEN if_abap_behv_message=>severity-information THEN 'I'
WHEN if_abap_behv_message=>severity-success THEN 'S' )
msgv1 = |{ v1 }|
msgv2 = |{ v2 }|
msgv3 = |{ v3 }|
msgv4 = |{ v4 }|
).
obj->m_severity = severity.
ENDMETHOD.
ENDCLASS.
| [
31631,
1220,
67,
5908,
14,
565,
62,
35927,
62,
14644,
28129,
2481,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
764,
198,
198,
5105,
32936,
44513,
13,
628,
198,
9,
220,
220,
5994,
6770,
329,
1330,
10007,
220,
22369,
438,
198,
220,
220,
220,
24412,
47,
1546,
256,
83,
62,
35927,
62,
17953,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
43679,
7473,
29244,
6158,
220,
220,
1220,
67,
5908,
14,
72,
62,
35927,
62,
84,
2481,
13,
198,
220,
220,
220,
24412,
47,
1546,
256,
83,
62,
35927,
62,
19119,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
43679,
7473,
35717,
220,
220,
1220,
67,
5908,
14,
72,
62,
35927,
62,
84,
2481,
13,
198,
220,
220,
220,
24412,
47,
1546,
256,
83,
62,
35927,
62,
33678,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
43679,
7473,
5550,
2538,
9328,
220,
220,
1220,
67,
5908,
14,
72,
62,
35927,
62,
84,
2481,
13,
628,
220,
220,
220,
24412,
47,
1546,
256,
83,
62,
35927,
62,
47904,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
43679,
7473,
9677,
4146,
1961,
220,
220,
1220,
67,
5908,
14,
72,
62,
35927,
62,
84,
2481,
13,
198,
220,
220,
220,
24412,
47,
1546,
256,
83,
62,
35927,
62,
76,
6320,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
43679,
7473,
337,
24805,
1961,
220,
220,
1220,
67,
5908,
14,
72,
62,
35927,
62,
84,
2481,
13,
198,
220,
220,
220,
24412,
47,
1546,
256,
83,
62,
35927,
62,
26263,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
43679,
7473,
39099,
1961,
1220,
67,
5908,
14,
72,
62,
35927,
62,
84,
2481,
13,
628,
220,
220,
220,
24412,
47,
1546,
256,
83,
62,
2070,
278,
62,
17953,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
43679,
7473,
29244,
6158,
220,
220,
220,
1220,
67,
5908,
14,
72,
62,
2070,
278,
62,
84,
2481,
13,
198,
220,
220,
220,
24412,
47,
1546,
256,
83,
62,
2070,
278,
62,
19119,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
43679,
7473,
35717,
220,
220,
220,
1220,
67,
5908,
14,
72,
62,
2070,
278,
62,
84,
2481,
13,
198,
220,
220,
220,
24412,
47,
1546,
256,
83,
62,
2070,
278,
62,
33678,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
43679,
7473,
5550,
2538,
9328,
220,
220,
220,
1220,
67,
5908,
14,
72,
62,
2070,
278,
62,
84,
2481,
13,
628,
220,
220,
220,
24412,
47,
1546,
256,
83,
62,
2070,
278,
62,
47904,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
43679,
7473,
9677,
4146,
1961,
220,
220,
220,
1220,
67,
5908,
14,
72,
62,
2070,
278,
62,
84,
2481,
13,
198,
220,
220,
220,
24412,
47,
1546,
256,
83,
62,
2070,
278,
62,
76,
6320,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
43679,
7473,
337,
24805,
1961,
220,
220,
220,
1220,
67,
5908,
14,
72,
62,
2070,
278,
62,
84,
2481,
13,
198,
220,
220,
220,
24412,
47,
1546,
256,
83,
62,
2070,
278,
62,
26263,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
43679,
7473,
39099,
1961,
220,
1220,
67,
5908,
14,
72,
62,
2070,
278,
62,
84,
2481,
13,
628,
220,
220,
220,
24412,
47,
1546,
256,
83,
62,
2070,
654,
7211,
1732,
62,
47904,
220,
220,
41876,
43679,
7473,
9677,
4146,
1961,
220,
220,
220,
1220,
67,
5908,
14,
72,
62,
2070,
654,
7211,
1732,
62,
84,
2481,
13,
198,
220,
220,
220,
24412,
47,
1546,
256,
83,
62,
2070,
654,
7211,
1732,
62,
76,
6320,
220,
220,
41876,
43679,
7473,
337,
24805,
1961,
220,
220,
220,
1220,
67,
5908,
14,
72,
62,
2070,
654,
7211,
1732,
62,
84,
2481,
13,
198,
220,
220,
220,
24412,
47,
1546,
256,
83,
62,
2070,
654,
7211,
1732,
62,
26263,
41876,
43679,
7473,
39099,
1961,
220,
1220,
67,
5908,
14,
72,
62,
2070,
654,
7211,
1732,
62,
84,
2481,
13,
628,
198,
220,
220,
220,
42715,
12,
49273,
50,
3975,
62,
35927,
62,
66,
9310,
62,
1462,
62,
9945,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
220,
220,
318,
62,
72,
62,
35927,
62,
84,
220,
220,
220,
220,
220,
220,
41876,
1220,
67,
5908,
14,
72,
62,
35927,
62,
84,
2481,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
3808,
62,
35927,
8,
220,
220,
220,
220,
220,
41876,
1220,
67,
5908,
14,
361,
62,
22560,
62,
1455,
1590,
2481,
14804,
912,
62,
35927,
62,
259,
13,
628,
198,
220,
220,
220,
42715,
12,
49273,
50,
3975,
62,
35927,
62,
20500,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
21628,
62,
66,
312,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
35927,
62,
312,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1220,
67,
5908,
14,
35927,
62,
312,
2481,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
62,
20500,
220,
220,
220,
220,
220,
220,
220,
220,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
*----------------------------------------------------------------------*
***INCLUDE LZGUIDRASIL_CONTROL_ICONI01.
*----------------------------------------------------------------------*
*&---------------------------------------------------------------------*
*& Module USER_COMMAND_0050 INPUT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
MODULE user_command_0050 INPUT.
CASE gv_okcode.
WHEN 'OKAY'.
gv_set_data = abap_true.
SET SCREEN 0. LEAVE SCREEN.
WHEN 'CANCEL'.
SET SCREEN 0. LEAVE SCREEN.
ENDCASE.
ENDMODULE.
| [
9,
10097,
23031,
9,
198,
8162,
1268,
5097,
52,
7206,
406,
57,
38,
27586,
49,
1921,
4146,
62,
10943,
5446,
3535,
62,
2149,
1340,
40,
486,
13,
198,
9,
10097,
23031,
9,
198,
9,
5,
10097,
30934,
9,
198,
9,
5,
220,
220,
220,
220,
220,
19937,
220,
1294,
1137,
62,
9858,
44,
6981,
62,
405,
1120,
220,
3268,
30076,
198,
9,
5,
10097,
30934,
9,
198,
9,
220,
220,
220,
220,
220,
220,
2420,
198,
9,
10097,
23031,
9,
198,
33365,
24212,
2836,
62,
21812,
62,
405,
1120,
3268,
30076,
13,
628,
220,
42001,
308,
85,
62,
482,
8189,
13,
198,
220,
220,
220,
42099,
705,
11380,
4792,
4458,
198,
220,
220,
220,
220,
220,
308,
85,
62,
2617,
62,
7890,
796,
450,
499,
62,
7942,
13,
198,
220,
220,
220,
220,
220,
25823,
6374,
2200,
1677,
657,
13,
12509,
32,
6089,
6374,
2200,
1677,
13,
198,
220,
220,
220,
42099,
705,
34,
20940,
3698,
4458,
198,
220,
220,
220,
220,
220,
25823,
6374,
2200,
1677,
657,
13,
12509,
32,
6089,
6374,
2200,
1677,
13,
198,
220,
23578,
34,
11159,
13,
198,
198,
10619,
33365,
24212,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
"! <p class="shorttext synchronized" lang="en">Resource for Element info of CDS view</p>
CLASS zcl_sat_adt_res_element_info DEFINITION
PUBLIC
INHERITING FROM cl_adt_rest_resource
CREATE PUBLIC .
PUBLIC SECTION.
METHODS get
REDEFINITION.
PROTECTED SECTION.
DATA mf_basic_info TYPE abap_bool.
DATA mv_object_type TYPE zsat_entity_type.
DATA mv_object_name TYPE zsat_entity_id.
METHODS get_parameters
IMPORTING
io_request TYPE REF TO if_adt_rest_request
RAISING
zcx_sat_adt_element_info.
PRIVATE SECTION.
"! <p class="shorttext synchronized" lang="en">Get request parameters</p>
"! <p class="shorttext synchronized" lang="en">Loads basic information of element</p>
METHODS load_basic_element_info
IMPORTING
io_response TYPE REF TO if_adt_rest_response
RAISING
zcx_sat_adt_element_info.
ENDCLASS.
CLASS zcl_sat_adt_res_element_info IMPLEMENTATION.
METHOD get.
get_parameters( request ).
IF mf_basic_info = abap_true.
load_basic_element_info( response ).
ELSE.
DATA(lo_element_info_reader) = zcl_sat_adt_elinfo_reader_fac=>create_reader(
io_request = request
iv_type = mv_object_type
iv_name = mv_object_name
).
IF lo_element_info_reader IS BOUND.
lo_element_info_reader->read_element_information( io_rest_response = response ).
ELSE.
RAISE EXCEPTION TYPE zcx_sat_adt_element_info.
ENDIF.
ENDIF.
ENDMETHOD.
METHOD get_parameters.
TRY.
io_request->get_uri_query_parameter(
EXPORTING name = zif_sat_c_adt_utils=>c_element_info_parameter-name
mandatory = abap_true
IMPORTING value = mv_object_name
).
io_request->get_uri_query_parameter(
EXPORTING name = zif_sat_c_adt_utils=>c_element_info_parameter-object_type
mandatory = abap_true
IMPORTING value = mv_object_type
).
io_request->get_uri_query_parameter(
EXPORTING name = zif_sat_c_adt_utils=>c_element_info_parameter-basic_info
default = abap_false
IMPORTING value = mf_basic_info
).
CATCH cx_adt_rest INTO DATA(lx_rest_error).
RAISE EXCEPTION TYPE zcx_sat_adt_element_info
EXPORTING
textid = cx_adt_rest=>create_textid_from_exc_text( exception = lx_rest_error ).
ENDTRY.
ENDMETHOD.
METHOD load_basic_element_info.
DATA: ls_entity TYPE zsat_entity.
DATA(lv_entity) = to_upper( mv_object_name ).
IF mv_object_type = zif_sat_c_entity_type=>cds_view.
SELECT SINGLE entityid AS entity_id,
rawentityid AS entity_id_raw,
createdby AS created_by,
description,
\_apistate-filtervalue AS api_state,
sourcetype AS source_type,
ddlsource AS source_code,
ddlname AS secondary_entity_id,
developmentpackage AS devclass
FROM zsat_i_cdsentity
WHERE entityid = @lv_entity
OR ddlname = @lv_entity
INTO CORRESPONDING FIELDS OF @ls_entity.
CHECK sy-subrc = 0.
ELSE.
SELECT SINGLE entity AS entity_id,
entityraw AS entity_id_raw,
description,
createdby AS created_by,
developmentpackage AS devclass
FROM zsat_i_databasetablesandviews
WHERE entity = @lv_entity
INTO CORRESPONDING FIELDS OF @ls_entity.
CHECK sy-subrc = 0.
ENDIF.
DATA(ls_adt_object) = zcl_sat_adt_util=>create_adt_uri(
iv_type = mv_object_type
iv_name = ls_entity-entity_id
iv_name2 = ls_entity-secondary_entity_id
).
DATA(ls_element_info) = VALUE zsat_adt_element_info(
name = ls_entity-entity_id
raw_name = ls_entity-entity_id_raw
type = ls_adt_object-type
uri = ls_adt_object-uri
owner = ls_entity-created_by
package = ls_entity-devclass
description = ls_entity-description
).
IF mv_object_type = zif_sat_c_entity_type=>cds_view AND sy-saprl < 754.
*.... Take source_code and create uri so it can be used in Where-Used (<= NW 7.54)
zcl_sat_cds_view_factory=>get_entityname_pos_in_ddlsrc(
EXPORTING iv_entity_id = ls_entity-entity_id
iv_source = ls_entity-source_code
IMPORTING ev_column = DATA(lv_col)
ev_row = DATA(lv_row)
).
IF lv_col <> -1 AND lv_row <> -1.
ls_element_info-uri = |{ ls_element_info-uri }{ zif_sat_c_adt_utils=>c_ddl_pos_uri_segment }{ lv_row },{ lv_col }|.
ENDIF.
ENDIF.
IF ls_entity-source_type IS NOT INITIAL.
ls_element_info-properties = VALUE #( BASE ls_element_info-properties ( key = 'SOURCE_TYPE' value = ls_entity-source_type ) ).
ENDIF.
IF ls_entity-api_state IS NOT INITIAL.
ls_element_info-properties = VALUE #( BASE ls_element_info-properties ( key = 'API_STATE' value = ls_entity-api_state ) ).
ENDIF.
TRY.
io_response->set_body_data(
content_handler = zcl_sat_adt_ch_factory=>create_generic_eleminfo_res_ch( )
data = ls_element_info
).
CATCH cx_adt_rest INTO DATA(lx_rest_error).
RAISE EXCEPTION TYPE zcx_sat_adt_element_info
EXPORTING
textid = cx_adt_rest=>create_textid_from_exc_text( exception = lx_rest_error ).
ENDTRY.
ENDMETHOD.
ENDCLASS.
| [
40484,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
26198,
329,
11703,
7508,
286,
327,
5258,
1570,
3556,
79,
29,
198,
31631,
1976,
565,
62,
49720,
62,
324,
83,
62,
411,
62,
30854,
62,
10951,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
537,
62,
324,
83,
62,
2118,
62,
31092,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
651,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
13,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
220,
220,
42865,
285,
69,
62,
35487,
62,
10951,
220,
41876,
450,
499,
62,
30388,
13,
198,
220,
220,
220,
42865,
285,
85,
62,
15252,
62,
4906,
41876,
1976,
49720,
62,
26858,
62,
4906,
13,
198,
220,
220,
220,
42865,
285,
85,
62,
15252,
62,
3672,
41876,
1976,
49720,
62,
26858,
62,
312,
13,
628,
220,
220,
220,
337,
36252,
50,
651,
62,
17143,
7307,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
33245,
62,
25927,
41876,
4526,
37,
5390,
611,
62,
324,
83,
62,
2118,
62,
25927,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
49720,
62,
324,
83,
62,
30854,
62,
10951,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
3855,
2581,
10007,
3556,
79,
29,
198,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
8912,
82,
4096,
1321,
286,
5002,
3556,
79,
29,
198,
220,
220,
220,
337,
36252,
50,
3440,
62,
35487,
62,
30854,
62,
10951,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
33245,
62,
26209,
41876,
4526,
37,
5390,
611,
62,
324,
83,
62,
2118,
62,
26209,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
49720,
62,
324,
83,
62,
30854,
62,
10951,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
565,
62,
49720,
62,
324,
83,
62,
411,
62,
30854,
62,
10951,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
651,
13,
198,
220,
220,
220,
651,
62,
17143,
7307,
7,
2581,
6739,
628,
220,
220,
220,
16876,
285,
69,
62,
35487,
62,
10951,
796,
450,
499,
62,
7942,
13,
198,
220,
220,
220,
220,
220,
3440,
62,
35487,
62,
30854,
62,
10951,
7,
2882,
6739,
198,
220,
220,
220,
17852,
5188,
13,
198,
220,
220,
220,
220,
220,
42865,
7,
5439,
62,
30854,
62,
10951,
62,
46862,
8,
796,
1976,
565,
62,
49720,
62,
324,
83,
62,
417,
10951,
62,
46862,
62,
38942,
14804,
17953,
62,
46862,
7,
198,
220,
220,
220,
220,
220,
220,
220,
33245,
62,
25927,
220,
796,
2581,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
4906,
220,
220,
220,
220,
796,
285,
85,
62,
15252,
62,
4906,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
3672,
220,
220,
220,
220,
796,
285,
85,
62,
15252,
62,
3672,
198,
220,
220,
220,
220,
220,
6739,
628,
220,
220,
220,
220,
220,
16876,
2376,
62,
30854,
62,
10951,
62,
46862,
3180,
347,
15919,
13,
198,
220,
220,
220,
220,
220,
220,
220,
2376,
62,
30854,
62,
10951,
62,
46862,
3784,
961,
62,
30854,
62,
17018,
7,
33245,
62,
2118,
62,
26209,
796,
2882,
6739,
198,
220,
220,
220,
220,
220,
17852,
5188,
13,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
24352,
7788,
42006,
2849,
41876,
1976,
66,
87,
62,
49720,
62,
324,
83,
62,
30854,
62,
10951,
13,
198,
220,
220,
220,
220,
220,
23578,
5064,
13,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
651,
62,
17143,
7307,
13,
628,
220,
220,
220,
7579,
56,
13,
198,
220,
220,
220,
220,
220,
220,
220,
33245,
62,
25927,
3784,
1136,
62,
9900,
62,
22766,
62,
17143,
2357,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7788,
15490,
2751,
1438,
220,
220,
220,
220,
220,
796,
1976,
361,
62,
49720,
62,
66,
62,
324,
83,
62,
26791,
14804,
66,
62,
30854,
62,
10951,
62,
17143,
2357,
12,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13677,
796,
450,
499,
62,
7942,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
1988,
220,
220,
220,
220,
796,
285,
85,
62,
15252,
62,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
6739,
198,
220,
220,
220,
220,
220,
220,
220,
33245,
62,
25927,
3784,
1136,
62,
9900,
62,
22766,
62,
17143,
2357,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7788,
15490,
2751,
1438,
220,
220,
220,
220,
220,
796,
1976,
361,
62,
49720,
62,
66,
62,
324,
83,
62,
26791,
14804,
66,
62,
30854,
62,
10951,
62,
17143,
2357,
12,
15252,
62,
4906,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13677,
796,
450,
499,
62,
7942,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
1988,
220,
220,
220,
220,
796,
285,
85,
62,
15252,
62,
4906,
198,
220,
220,
220,
220,
220,
220,
220,
6739,
198,
220,
220,
220,
220,
220,
220,
220,
33245,
62,
25927,
3784,
1136,
62,
9900,
62,
22766,
62,
17143,
2357,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7788,
15490,
2751,
1438,
220,
220,
220,
220,
220,
796,
1976,
361,
62,
49720,
62,
66,
62,
324,
83,
62,
26791,
14804,
66,
62,
30854,
62,
10951,
62,
17143,
2357,
12,
35487,
62,
10951,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4277,
220,
220,
796,
450,
499,
62,
9562,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
1988,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS ltcl_hello_world DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT FINAL.
PRIVATE SECTION.
METHODS test FOR TESTING RAISING cx_static_check.
ENDCLASS.
CLASS ltcl_hello_world IMPLEMENTATION.
METHOD test.
cl_abap_unit_assert=>assert_equals(
act = NEW zcl_hello_world( )->hello( )
exp = 'Hello, World!' ).
ENDMETHOD.
ENDCLASS.
| [
31631,
300,
83,
565,
62,
31373,
62,
6894,
5550,
20032,
17941,
7473,
43001,
2751,
45698,
42,
49277,
43638,
5805,
7597,
360,
4261,
6234,
6006,
9863,
25261,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
1332,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
13,
198,
10619,
31631,
13,
198,
198,
31631,
300,
83,
565,
62,
31373,
62,
6894,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
1332,
13,
198,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
198,
220,
220,
220,
220,
220,
719,
796,
12682,
1976,
565,
62,
31373,
62,
6894,
7,
1267,
3784,
31373,
7,
1267,
198,
220,
220,
220,
220,
220,
1033,
796,
705,
15496,
11,
2159,
13679,
6739,
198,
220,
23578,
49273,
13,
198,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
FUNCTION-POOL /DMO/FLIGHT_TRAVEL_API22. "MESSAGE-ID ..
* INCLUDE /DMO/LFLIGHT_TRAVEL_API22D... " Local class definition
| [
42296,
4177,
2849,
12,
16402,
3535,
1220,
35,
11770,
14,
3697,
9947,
62,
51,
3861,
18697,
62,
17614,
1828,
13,
220,
220,
220,
220,
220,
220,
366,
44,
1546,
4090,
8264,
12,
2389,
11485,
198,
198,
9,
3268,
5097,
52,
7206,
1220,
35,
11770,
14,
43,
3697,
9947,
62,
51,
3861,
18697,
62,
17614,
1828,
35,
986,
220,
220,
220,
220,
220,
220,
220,
366,
10714,
1398,
6770,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
class ZSAPLINK_TABLE_TYPES definition
public
inheriting from ZSAPLINK
final
create public .
public section.
methods CHECKEXISTS
redefinition .
methods CREATEIXMLDOCFROMOBJECT
redefinition .
methods CREATEOBJECTFROMIXMLDOC
redefinition .
protected section.
methods DELETEOBJECT
redefinition .
methods GETOBJECTTYPE
redefinition .
private section.
ENDCLASS.
CLASS ZSAPLINK_TABLE_TYPES IMPLEMENTATION.
METHOD CHECKEXISTS.
*/---------------------------------------------------------------------\
*| This file is part of SAPlink. |
*| |
*| Copyright 2014-2015 SAPlink project members |
*| |
*| Licensed under the Apache License, Version 2.0 (the "License"); |
*| you may not use this file except in compliance with the License. |
*| You may obtain a copy of the License at |
*| |
*| http://www.apache.org/licenses/LICENSE-2.0 |
*| |
*| Unless required by applicable law or agreed to in writing, software |
*| distributed under the License is distributed on an "AS IS" BASIS, |
*| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or |
*| implied. |
*| See the License for the specific language governing permissions and |
*| limitations under the License. |
*\---------------------------------------------------------------------/
* Plugin created by:
* Thomas Jung
* [email protected]
DATA: l_name TYPE ddobjname,
dd40v_wa TYPE dd40v.
l_name = objname.
CALL FUNCTION 'DDIF_TTYP_GET'
EXPORTING
name = l_name
IMPORTING
dd40v_wa = dd40v_wa
EXCEPTIONS
illegal_input = 1
OTHERS = 2.
IF sy-subrc = 0 AND dd40v_wa-typename IS NOT INITIAL.
exists = 'X'.
ENDIF.
ENDMETHOD.
METHOD createixmldocfromobject.
*/---------------------------------------------------------------------\
*| This file is part of SAPlink. |
*| |
*| Copyright 2014-2015 SAPlink project members |
*| |
*| Licensed under the Apache License, Version 2.0 (the "License"); |
*| you may not use this file except in compliance with the License. |
*| You may obtain a copy of the License at |
*| |
*| http://www.apache.org/licenses/LICENSE-2.0 |
*| |
*| Unless required by applicable law or agreed to in writing, software |
*| distributed under the License is distributed on an "AS IS" BASIS, |
*| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or |
*| implied. |
*| See the License for the specific language governing permissions and |
*| limitations under the License. |
*\---------------------------------------------------------------------/
* Plugin created by:
* Thomas Jung
* [email protected]
DATA: gotstate TYPE ddgotstate,
dd40v_wa TYPE dd40v,
lt_dd42v TYPE STANDARD TABLE OF dd42v WITH NON-UNIQUE DEFAULT KEY,
ls_dd42v LIKE LINE OF lt_dd42v,
lt_dd43v TYPE STANDARD TABLE OF dd43v WITH NON-UNIQUE DEFAULT KEY,
ls_dd43v LIKE LINE OF lt_dd43v,
_objtype TYPE string,
*xml nodes
rootnode TYPE REF TO if_ixml_element,
dd42v_node TYPE REF TO if_ixml_element,
dd43v_node TYPE REF TO if_ixml_element,
rc TYPE sysubrc,
_ttypname TYPE ddobjname.
_ttypname = objname.
CALL FUNCTION 'DDIF_TTYP_GET'
EXPORTING
name = _ttypname
langu = sy-langu
IMPORTING
gotstate = gotstate
dd40v_wa = dd40v_wa
TABLES
dd42v_tab = lt_dd42v
dd43v_tab = lt_dd43v
EXCEPTIONS
illegal_input = 1
OTHERS = 2.
IF sy-subrc <> 0 OR dd40v_wa-typename IS INITIAL.
RAISE EXCEPTION TYPE zcx_saplink
EXPORTING
textid = zcx_saplink=>not_found.
ENDIF.
* Create parent node
_objtype = getobjecttype( ).
rootnode = xmldoc->create_element( _objtype ).
setattributesfromstructure( node = rootnode structure = dd40v_wa ).
LOOP AT lt_dd42v INTO ls_dd42v.
dd42v_node = xmldoc->create_element( 'dd42v' ).
setattributesfromstructure( node = dd42v_node structure = ls_dd42v ).
rc = rootnode->append_child( dd42v_node ).
ENDLOOP.
LOOP AT lt_dd43v INTO ls_dd43v.
dd43v_node = xmldoc->create_element( 'dd43v' ).
setattributesfromstructure( node = dd43v_node structure = ls_dd43v ).
rc = rootnode->append_child( dd43v_node ).
ENDLOOP.
*\--------------------------------------------------------------------/
rc = xmldoc->append_child( rootnode ).
ixmldocument = xmldoc.
ENDMETHOD.
METHOD createobjectfromixmldoc.
*/---------------------------------------------------------------------\
*| This file is part of SAPlink. |
*| |
*| Copyright 2014-2015 SAPlink project members |
*| |
*| Licensed under the Apache License, Version 2.0 (the "License"); |
*| you may not use this file except in compliance with the License. |
*| You may obtain a copy of the License at |
*| |
*| http://www.apache.org/licenses/LICENSE-2.0 |
*| |
*| Unless required by applicable law or agreed to in writing, software |
*| distributed under the License is distributed on an "AS IS" BASIS, |
*| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or |
*| implied. |
*| See the License for the specific language governing permissions and |
*| limitations under the License. |
*\---------------------------------------------------------------------/
* Plugin created by:
* Thomas Jung
* [email protected]
DATA: gotstate TYPE ddgotstate,
dd40v_wa TYPE dd40v,
lt_dd42v TYPE STANDARD TABLE OF dd42v WITH NON-UNIQUE DEFAULT KEY,
ls_dd42v LIKE LINE OF lt_dd42v,
lt_dd43v TYPE STANDARD TABLE OF dd43v WITH NON-UNIQUE DEFAULT KEY,
ls_dd43v LIKE LINE OF lt_dd43v,
*xml nodes
rootnode TYPE REF TO if_ixml_element,
dd42v_node TYPE REF TO if_ixml_element,
dd43v_node TYPE REF TO if_ixml_element,
node TYPE REF TO if_ixml_element,
filter TYPE REF TO if_ixml_node_filter,
iterator TYPE REF TO if_ixml_node_iterator,
rc TYPE sysubrc,
_ttypname TYPE ddobjname,
_devclass TYPE devclass,
checkexists TYPE flag,
_objtype TYPE string,
* putting object into ddic
l_pgmid TYPE tadir-pgmid,
l_object TYPE tadir-object,
l_obj_name TYPE tadir-obj_name,
l_dd_objname TYPE ddobjname,
l_srcsystem TYPE tadir-srcsystem,
l_author TYPE tadir-author,
l_devclass TYPE tadir-devclass,
l_masterlang TYPE tadir-masterlang.
_devclass = devclass.
_objtype = getobjecttype( ).
xmldoc = ixmldocument.
rootnode = xmldoc->find_from_name( _objtype ).
CALL METHOD getstructurefromattributes
EXPORTING
node = rootnode
CHANGING
structure = dd40v_wa.
objname = dd40v_wa-typename.
checkexists = checkexists( ).
IF checkexists IS NOT INITIAL.
IF overwrite IS INITIAL.
RAISE EXCEPTION TYPE zcx_saplink
EXPORTING
textid = zcx_saplink=>existing.
ELSE.
* delete object for new install
deleteobject( ).
ENDIF.
ENDIF.
* retrieve table type details
FREE: filter, iterator, node.
filter = xmldoc->create_filter_name( 'dd42v' ).
iterator = xmldoc->create_iterator_filtered( filter ).
node ?= iterator->get_next( ).
WHILE node IS NOT INITIAL.
CLEAR dd42v_node.
CALL METHOD getstructurefromattributes
EXPORTING
node = node
CHANGING
structure = ls_dd42v.
APPEND ls_dd42v TO lt_dd42v.
node ?= iterator->get_next( ).
ENDWHILE.
FREE: filter, iterator, node.
filter = xmldoc->create_filter_name( 'dd43v' ).
iterator = xmldoc->create_iterator_filtered( filter ).
node ?= iterator->get_next( ).
WHILE node IS NOT INITIAL.
CLEAR dd43v_node.
CALL METHOD getstructurefromattributes
EXPORTING
node = node
CHANGING
structure = ls_dd43v.
APPEND ls_dd43v TO lt_dd43v.
node ?= iterator->get_next( ).
ENDWHILE.
l_pgmid = 'R3TR'.
l_object = _objtype.
l_obj_name = objname.
l_dd_objname = objname.
l_srcsystem = sy-sysid.
l_author = sy-uname.
l_devclass = _devclass.
l_masterlang = sy-langu.
DATA: itadir TYPE tadir.
itadir-pgmid = l_pgmid.
itadir-object = l_object.
itadir-obj_name = l_obj_name.
itadir-srcsystem = l_srcsystem.
itadir-author = l_author.
itadir-devclass = l_devclass.
itadir-masterlang = l_masterlang.
MODIFY tadir FROM itadir.
CALL FUNCTION 'TR_TADIR_INTERFACE'
EXPORTING
wi_test_modus = ' '
wi_delete_tadir_entry = 'X'
wi_tadir_pgmid = l_pgmid
wi_tadir_object = l_object
wi_tadir_obj_name = l_obj_name
wi_tadir_srcsystem = l_srcsystem
wi_tadir_author = l_author
wi_tadir_devclass = l_devclass
wi_tadir_masterlang = l_masterlang
iv_set_edtflag = ''
EXCEPTIONS
tadir_entry_not_existing = 1
tadir_entry_ill_type = 2
no_systemname = 3
no_systemtype = 4
original_system_conflict = 5
object_reserved_for_devclass = 6
object_exists_global = 7
object_exists_local = 8
object_is_distributed = 9
obj_specification_not_unique = 10
no_authorization_to_delete = 11
devclass_not_existing = 12
simultanious_set_remove_repair = 13
order_missing = 14
no_modification_of_head_syst = 15
pgmid_object_not_allowed = 16
masterlanguage_not_specified = 17
devclass_not_specified = 18
specify_owner_unique = 19
loc_priv_objs_no_repair = 20
gtadir_not_reached = 21
object_locked_for_order = 22
change_of_class_not_allowed = 23
no_change_from_sap_to_tmp = 24
OTHERS = 25.
IF sy-subrc NE 0.
CASE sy-subrc.
WHEN 1 OR 9 OR 7 OR 8. "OK! - Doesn't exist yet
WHEN 11 OR 23 OR 24.
RAISE EXCEPTION TYPE zcx_saplink
EXPORTING
textid = zcx_saplink=>not_authorized.
WHEN 22.
RAISE EXCEPTION TYPE zcx_saplink
EXPORTING
textid = zcx_saplink=>locked.
WHEN OTHERS.
RAISE EXCEPTION TYPE zcx_saplink
EXPORTING
textid = zcx_saplink=>system_error.
ENDCASE.
ENDIF.
CALL FUNCTION 'DDIF_TTYP_PUT'
EXPORTING
name = l_dd_objname
dd40v_wa = dd40v_wa
TABLES
dd42v_tab = lt_dd42v
dd43v_tab = lt_dd43v
EXCEPTIONS
ttyp_not_found = 1
name_inconsistent = 2
ttyp_inconsistent = 3
put_failure = 4
put_refused = 5
OTHERS = 6.
IF sy-subrc <> 0.
RAISE EXCEPTION TYPE zcx_saplink
EXPORTING
textid = zcx_saplink=>system_error.
ENDIF.
DATA: trobjtype TYPE trobjtype,
trobj_name TYPE trobj_name.
trobjtype = l_object.
trobj_name = l_obj_name.
CALL FUNCTION 'RS_INSERT_INTO_WORKING_AREA'
EXPORTING
object = trobjtype
obj_name = trobj_name
EXCEPTIONS
wrong_object_name = 1.
name = objname.
ENDMETHOD.
METHOD DELETEOBJECT.
*/---------------------------------------------------------------------\
*| This file is part of SAPlink. |
*| |
*| Copyright 2014-2015 SAPlink project members |
*| |
*| Licensed under the Apache License, Version 2.0 (the "License"); |
*| you may not use this file except in compliance with the License. |
*| You may obtain a copy of the License at |
*| |
*| http://www.apache.org/licenses/LICENSE-2.0 |
*| |
*| Unless required by applicable law or agreed to in writing, software |
*| distributed under the License is distributed on an "AS IS" BASIS, |
*| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or |
*| implied. |
*| See the License for the specific language governing permissions and |
*| limitations under the License. |
*\---------------------------------------------------------------------/
* Plugin created by:
* Thomas Jung
* [email protected]
ENDMETHOD.
METHOD GETOBJECTTYPE.
*/---------------------------------------------------------------------\
*| This file is part of SAPlink. |
*| |
*| Copyright 2014-2015 SAPlink project members |
*| |
*| Licensed under the Apache License, Version 2.0 (the "License"); |
*| you may not use this file except in compliance with the License. |
*| You may obtain a copy of the License at |
*| |
*| http://www.apache.org/licenses/LICENSE-2.0 |
*| |
*| Unless required by applicable law or agreed to in writing, software |
*| distributed under the License is distributed on an "AS IS" BASIS, |
*| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or |
*| implied. |
*| See the License for the specific language governing permissions and |
*| limitations under the License. |
*\---------------------------------------------------------------------/
* Plugin created by:
* Thomas Jung
* [email protected]
objecttype = 'TTYP'. "Table Type
ENDMETHOD.
ENDCLASS.
| [
4871,
1168,
50,
2969,
43,
17248,
62,
38148,
62,
9936,
47,
1546,
6770,
198,
220,
1171,
198,
220,
10639,
1780,
422,
1168,
50,
2969,
43,
17248,
198,
220,
2457,
198,
220,
2251,
1171,
764,
198,
198,
11377,
2665,
13,
628,
220,
5050,
5870,
25171,
6369,
1797,
4694,
198,
220,
220,
220,
34087,
17750,
764,
198,
220,
5050,
29244,
6158,
10426,
5805,
38715,
10913,
2662,
9864,
23680,
198,
220,
220,
220,
34087,
17750,
764,
198,
220,
5050,
29244,
1404,
4720,
33,
23680,
10913,
2662,
10426,
5805,
38715,
198,
220,
220,
220,
34087,
17750,
764,
198,
24326,
2665,
13,
628,
220,
5050,
5550,
28882,
4720,
33,
23680,
198,
220,
220,
220,
34087,
17750,
764,
198,
220,
5050,
17151,
9864,
23680,
25216,
198,
220,
220,
220,
34087,
17750,
764,
198,
19734,
2665,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
50,
2969,
43,
17248,
62,
38148,
62,
9936,
47,
1546,
30023,
2538,
10979,
6234,
13,
628,
198,
49273,
5870,
25171,
6369,
1797,
4694,
13,
198,
16208,
10097,
30934,
59,
198,
9,
91,
770,
2393,
318,
636,
286,
48323,
8726,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
198,
9,
91,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
198,
9,
91,
15069,
1946,
12,
4626,
48323,
8726,
1628,
1866,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
198,
9,
91,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
198,
9,
91,
49962,
739,
262,
24843,
13789,
11,
10628,
362,
13,
15,
357,
1169,
366,
34156,
15341,
220,
220,
220,
220,
930,
198,
9,
91,
345,
743,
407,
779,
428,
2393,
2845,
287,
11846,
351,
262,
13789,
13,
220,
220,
220,
930,
198,
9,
91,
921,
743,
7330,
257,
4866,
286,
262,
13789,
379,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
198,
9,
91,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
198,
9,
91,
220,
220,
220,
220,
2638,
1378,
2503,
13,
43073,
13,
2398,
14,
677,
4541,
14,
43,
2149,
24290,
12,
17,
13,
15,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
198,
9,
91,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
198,
9,
91,
17486,
2672,
416,
9723,
1099,
393,
4987,
284,
287,
3597,
11,
3788,
930,
198,
9,
91,
9387,
739,
262,
13789,
318,
9387,
319,
281,
366,
1921,
3180,
1,
29809,
1797,
11,
220,
220,
930,
198,
9,
91,
42881,
34764,
11015,
6375,
7102,
49828,
11053,
3963,
15529,
509,
12115,
11,
2035,
4911,
393,
220,
220,
220,
220,
930,
198,
9,
91,
17142,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
198,
9,
91,
4091,
262,
13789,
329,
262,
2176,
3303,
15030,
21627,
290,
930,
198,
9,
91,
11247,
739,
262,
13789,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
198,
9,
59,
10097,
30934,
14,
198,
198,
9,
220,
220,
220,
220,
220,
42636,
2727,
416,
25,
198,
9,
220,
220,
220,
220,
220,
5658,
27134,
198,
9,
220,
220,
220,
220,
220,
294,
16911,
13,
73,
2150,
16,
31,
14816,
13,
785,
628,
220,
42865,
25,
300,
62,
3672,
220,
220,
41876,
49427,
26801,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
49427,
1821,
85,
62,
10247,
41876,
49427,
1821,
85,
13,
198,
220,
300,
62,
3672,
796,
26181,
3672,
13,
198,
220,
42815,
29397,
4177,
2849,
705,
16458,
5064,
62,
51,
9936,
47,
62,
18851,
6,
198,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
1438,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
300,
62,
3672,
198,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
49427,
1821,
85,
62,
10247,
220,
220,
220,
220,
220,
796,
49427,
1821,
85,
62,
10247,
198,
220,
220,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_abapgit_oo_class DEFINITION
PUBLIC
INHERITING FROM zcl_abapgit_oo_base
CREATE PUBLIC .
PUBLIC SECTION.
METHODS zif_abapgit_oo_object_fnc~create
REDEFINITION .
METHODS zif_abapgit_oo_object_fnc~create_sotr
REDEFINITION .
METHODS zif_abapgit_oo_object_fnc~delete
REDEFINITION .
METHODS zif_abapgit_oo_object_fnc~generate_locals
REDEFINITION .
METHODS zif_abapgit_oo_object_fnc~get_class_properties
REDEFINITION .
METHODS zif_abapgit_oo_object_fnc~get_includes
REDEFINITION .
METHODS zif_abapgit_oo_object_fnc~insert_text_pool
REDEFINITION .
METHODS zif_abapgit_oo_object_fnc~read_sotr
REDEFINITION .
METHODS zif_abapgit_oo_object_fnc~read_text_pool
REDEFINITION .
METHODS zif_abapgit_oo_object_fnc~deserialize_source
REDEFINITION .
PROTECTED SECTION.
PRIVATE SECTION.
CLASS-METHODS update_source_index
IMPORTING
!iv_clsname TYPE csequence
!io_scanner TYPE REF TO cl_oo_source_scanner_class .
CLASS-METHODS update_report
IMPORTING
!iv_program TYPE programm
!it_source TYPE string_table
RETURNING
VALUE(rv_updated) TYPE abap_bool
RAISING
zcx_abapgit_exception .
CLASS-METHODS generate_classpool
IMPORTING
!iv_name TYPE seoclsname
RAISING
zcx_abapgit_exception .
CLASS-METHODS update_meta
IMPORTING
!iv_name TYPE seoclsname
!iv_exposure TYPE seoexpose
!it_source TYPE rswsourcet
RAISING
zcx_abapgit_exception .
CLASS-METHODS determine_method_include
IMPORTING
!iv_name TYPE seoclsname
!iv_method TYPE seocpdname
RETURNING
VALUE(rv_program) TYPE programm
RAISING
zcx_abapgit_exception .
CLASS-METHODS init_scanner
IMPORTING
!it_source TYPE zif_abapgit_definitions=>ty_string_tt
!iv_name TYPE seoclsname
RETURNING
VALUE(ro_scanner) TYPE REF TO cl_oo_source_scanner_class
RAISING
zcx_abapgit_exception .
CLASS-METHODS update_full_class_include
IMPORTING
!iv_classname TYPE seoclsname
!it_source TYPE string_table
!it_methods TYPE cl_oo_source_scanner_class=>type_method_implementations .
CLASS-METHODS create_report
IMPORTING
!iv_program TYPE programm
!it_source TYPE string_table
!iv_extension TYPE sychar02
!iv_program_type TYPE sychar01
!iv_version TYPE r3state .
CLASS-METHODS update_cs_number_of_methods
IMPORTING
!iv_classname TYPE seoclsname
!iv_number_of_impl_methods TYPE i .
ENDCLASS.
CLASS ZCL_ABAPGIT_OO_CLASS IMPLEMENTATION.
METHOD create_report.
INSERT REPORT iv_program FROM it_source EXTENSION TYPE iv_extension STATE iv_version PROGRAM TYPE iv_program_type.
ASSERT sy-subrc = 0.
ENDMETHOD.
METHOD determine_method_include.
DATA: ls_mtdkey TYPE seocpdkey.
ls_mtdkey-clsname = iv_name.
ls_mtdkey-cpdname = iv_method.
cl_oo_classname_service=>get_method_include(
EXPORTING
mtdkey = ls_mtdkey
RECEIVING
result = rv_program
EXCEPTIONS
method_not_existing = 1 ).
IF sy-subrc = 0.
RETURN.
ENDIF.
CALL FUNCTION 'SEO_METHOD_GENERATE_INCLUDE'
EXPORTING
suppress_mtdkey_check = seox_true
mtdkey = ls_mtdkey
EXCEPTIONS
not_existing = 1
model_only = 2
include_existing = 3
method_imp_not_generated = 4
method_imp_not_initialised = 5
_internal_class_not_existing = 6
_internal_method_overflow = 7
cancelled = 8
method_is_abstract_implemented = 9
method_is_final_implemented = 10
internal_error_insert_report = 11
OTHERS = 12.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( |Error from SEO_METHOD_GENERATE_INCLUDE. Subrc = { sy-subrc }| ).
ENDIF.
rv_program = cl_oo_classname_service=>get_method_include( ls_mtdkey ).
ENDMETHOD.
METHOD generate_classpool.
DATA: ls_clskey TYPE seoclskey.
ls_clskey-clsname = iv_name.
CALL FUNCTION 'SEO_CLASS_GENERATE_CLASSPOOL'
EXPORTING
clskey = ls_clskey
suppress_corr = seox_true
EXCEPTIONS
not_existing = 1
model_only = 2
class_pool_not_generated = 3
class_stment_not_generated = 4
locals_not_generated = 5
macros_not_generated = 6
public_sec_not_generated = 7
protected_sec_not_generated = 8
private_sec_not_generated = 9
typeref_not_generated = 10
class_pool_not_initialised = 11
class_stment_not_initialised = 12
locals_not_initialised = 13
macros_not_initialised = 14
public_sec_not_initialised = 15
protected_sec_not_initialised = 16
private_sec_not_initialised = 17
typeref_not_initialised = 18
_internal_class_overflow = 19
OTHERS = 20.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( |Error from SEO_CLASS_GENERATE_CLASSPOOL. Subrc = { sy-subrc }| ).
ENDIF.
ENDMETHOD.
METHOD init_scanner.
TRY.
ro_scanner = cl_oo_source_scanner_class=>create_class_scanner(
clif_name = iv_name
source = it_source ).
ro_scanner->scan( ).
CATCH cx_clif_scan_error.
zcx_abapgit_exception=>raise( 'error initializing CLAS scanner' ).
ENDTRY.
ENDMETHOD.
METHOD update_cs_number_of_methods.
" Indirect access to keep downward compatibility
DATA lr_cache_entry TYPE REF TO data.
FIELD-SYMBOLS: <lg_cache_entry> TYPE any,
<lg_field> TYPE any.
TRY.
CREATE DATA lr_cache_entry TYPE ('SEO_CS_CACHE').
CATCH cx_sy_create_data_error.
* does not exist in some older systems
RETURN.
ENDTRY.
ASSIGN lr_cache_entry->* TO <lg_cache_entry>.
ASSERT sy-subrc = 0.
ASSIGN COMPONENT 'CLSNAME' OF STRUCTURE <lg_cache_entry>
TO <lg_field>.
ASSERT sy-subrc = 0.
<lg_field> = iv_classname.
ASSIGN COMPONENT 'NO_OF_METHOD_IMPLS' OF STRUCTURE <lg_cache_entry>
TO <lg_field>.
ASSERT sy-subrc = 0.
<lg_field> = iv_number_of_impl_methods.
MODIFY ('SEO_CS_CACHE') FROM <lg_cache_entry>.
ENDMETHOD.
METHOD update_full_class_include.
CONSTANTS: lc_class_source_extension TYPE sychar02 VALUE 'CS',
lc_include_program_type TYPE sychar01 VALUE 'I',
lc_active_version TYPE r3state VALUE 'A'.
create_report( iv_program = cl_oo_classname_service=>get_cs_name( iv_classname )
it_source = it_source
iv_extension = lc_class_source_extension
iv_program_type = lc_include_program_type
iv_version = lc_active_version ).
" Assuming that all methods that were scanned are implemented
update_cs_number_of_methods( iv_classname = iv_classname
iv_number_of_impl_methods = lines( it_methods ) ).
ENDMETHOD.
METHOD update_meta.
DATA: lo_update TYPE REF TO cl_oo_class_section_source,
ls_clskey TYPE seoclskey,
lv_scan_error TYPE seox_boolean.
ls_clskey-clsname = iv_name.
TRY.
CREATE OBJECT lo_update TYPE ('CL_OO_CLASS_SECTION_SOURCE')
EXPORTING
clskey = ls_clskey
exposure = iv_exposure
state = 'A'
source = it_source
suppress_constrctr_generation = seox_true
EXCEPTIONS
class_not_existing = 1
read_source_error = 2
OTHERS = 3 ##SUBRC_OK.
CATCH cx_sy_dyn_call_param_not_found.
* downport to 702, see https://github.com/larshp/abapGit/issues/933
* this will READ REPORT instead of using it_source, which should be okay
CREATE OBJECT lo_update TYPE cl_oo_class_section_source
EXPORTING
clskey = ls_clskey
exposure = iv_exposure
state = 'A'
EXCEPTIONS
class_not_existing = 1
read_source_error = 2
OTHERS = 3.
ENDTRY.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( |Error instantiating CL_OO_CLASS_SECTION_SOURCE. Subrc = { sy-subrc }| ).
ENDIF.
lo_update->set_dark_mode( seox_true ).
TRY.
CALL METHOD lo_update->('SET_AMDP_SUPPORT')
EXPORTING
enabled = abap_true.
CATCH cx_sy_dyn_call_illegal_method ##NO_HANDLER.
* AMDP not supported in this system, ignore error
ENDTRY.
lo_update->scan_section_source(
RECEIVING
scan_error = lv_scan_error
EXCEPTIONS
scan_abap_source_error = 1
OTHERS = 2 ).
IF sy-subrc <> 0 OR lv_scan_error = abap_true.
zcx_abapgit_exception=>raise( |CLAS, error while scanning source. Subrc = { sy-subrc }| ).
ENDIF.
* this will update the SEO* database tables
lo_update->revert_scan_result( ).
IF iv_exposure = seoc_exposure_public.
generate_classpool( iv_name ).
ENDIF.
ENDMETHOD.
METHOD update_report.
DATA: lt_old TYPE string_table.
READ REPORT iv_program INTO lt_old.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( |Fatal error. Include { iv_program } should have been created previously!| ).
ENDIF.
IF lt_old <> it_source.
INSERT REPORT iv_program FROM it_source.
ASSERT sy-subrc = 0.
rv_updated = abap_true.
ELSE.
rv_updated = abap_false.
ENDIF.
ENDMETHOD.
METHOD update_source_index.
CONSTANTS:
lc_version_active TYPE r3state VALUE 'A', "#EC NOTEXT
lc_version_inactive TYPE r3state VALUE 'I'. "#EC NOTEXT
" dynamic invocation, IF_OO_SOURCE_POS_INDEX_HELPER doesn't exist in 702.
DATA lo_index_helper TYPE REF TO object.
TRY.
CREATE OBJECT lo_index_helper TYPE ('CL_OO_SOURCE_POS_INDEX_HELPER').
CALL METHOD lo_index_helper->('IF_OO_SOURCE_POS_INDEX_HELPER~CREATE_INDEX_WITH_SCANNER')
EXPORTING
class_name = iv_clsname
version = lc_version_active
scanner = io_scanner.
CALL METHOD lo_index_helper->('IF_OO_SOURCE_POS_INDEX_HELPER~DELETE_INDEX')
EXPORTING
class_name = iv_clsname
version = lc_version_inactive.
CATCH cx_root.
" it's probably okay to no update the index
RETURN.
ENDTRY.
ENDMETHOD.
METHOD zif_abapgit_oo_object_fnc~create.
DATA: lt_vseoattrib TYPE seoo_attributes_r.
FIELD-SYMBOLS: <lv_clsname> TYPE seoclsname.
* same as in super class, but with "version = seoc_version_active"
ASSIGN COMPONENT 'CLSNAME' OF STRUCTURE cg_properties TO <lv_clsname>.
ASSERT sy-subrc = 0.
lt_vseoattrib = convert_attrib_to_vseoattrib(
iv_clsname = <lv_clsname>
it_attributes = it_attributes ).
CALL FUNCTION 'SEO_CLASS_CREATE_COMPLETE'
EXPORTING
devclass = iv_package
overwrite = iv_overwrite
version = seoc_version_active
suppress_dialog = abap_true
CHANGING
class = cg_properties
attributes = lt_vseoattrib
EXCEPTIONS
existing = 1
is_interface = 2
db_error = 3
component_error = 4
no_access = 5
other = 6
OTHERS = 7.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( |Error from SEO_CLASS_CREATE_COMPLETE. Subrc = { sy-subrc }| ).
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_oo_object_fnc~create_sotr.
DATA: lt_sotr TYPE zif_abapgit_definitions=>ty_sotr_tt,
lt_objects TYPE sotr_objects,
ls_paket TYPE sotr_pack,
lv_object LIKE LINE OF lt_objects.
FIELD-SYMBOLS: <ls_sotr> LIKE LINE OF lt_sotr.
LOOP AT it_sotr ASSIGNING <ls_sotr>.
CALL FUNCTION 'SOTR_OBJECT_GET_OBJECTS'
EXPORTING
object_vector = <ls_sotr>-header-objid_vec
IMPORTING
objects = lt_objects
EXCEPTIONS
object_not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( |error from SOTR_OBJECT_GET_OBJECTS. Subrc = { sy-subrc }| ).
ENDIF.
READ TABLE lt_objects INDEX 1 INTO lv_object.
ASSERT sy-subrc = 0.
ls_paket-paket = iv_package.
CALL FUNCTION 'SOTR_CREATE_CONCEPT'
EXPORTING
paket = ls_paket
crea_lan = <ls_sotr>-header-crea_lan
alias_name = <ls_sotr>-header-alias_name
object = lv_object
entries = <ls_sotr>-entries
concept_default = <ls_sotr>-header-concept
EXCEPTIONS
package_missing = 1
crea_lan_missing = 2
object_missing = 3
paket_does_not_exist = 4
alias_already_exist = 5
object_type_not_found = 6
langu_missing = 7
identical_context_not_allowed = 8
text_too_long = 9
error_in_update = 10
no_master_langu = 11
error_in_concept_id = 12
alias_not_allowed = 13
tadir_entry_creation_failed = 14
internal_error = 15
error_in_correction = 16
user_cancelled = 17
no_entry_found = 18
OTHERS = 19.
IF sy-subrc <> 0 AND sy-subrc <> 5.
zcx_abapgit_exception=>raise( |Error from SOTR_CREATE_CONCEPT. Subrc = { sy-subrc }| ).
ENDIF.
ENDLOOP.
ENDMETHOD.
METHOD zif_abapgit_oo_object_fnc~delete.
CALL FUNCTION 'SEO_CLASS_DELETE_COMPLETE'
EXPORTING
clskey = is_deletion_key
EXCEPTIONS
not_existing = 1
is_interface = 2
db_error = 3
no_access = 4
other = 5
OTHERS = 6.
IF sy-subrc = 1.
* ignore deletion of objects that does not exist
* this can happen when the SXCI object is deleted before the implementing CLAS
RETURN.
ELSEIF sy-subrc <> 0.
zcx_abapgit_exception=>raise( |Error from SEO_CLASS_DELETE_COMPLETE. Subrc = { sy-subrc }| ).
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_oo_object_fnc~deserialize_source.
DATA: lv_updated TYPE abap_bool,
lv_program TYPE program,
lo_scanner TYPE REF TO cl_oo_source_scanner_class,
lt_methods TYPE cl_oo_source_scanner_class=>type_method_implementations,
lv_method LIKE LINE OF lt_methods,
lt_source TYPE seop_source_string.
"Buffer needs to be refreshed,
"otherwise standard SAP CLIF_SOURCE reorder methods alphabetically
CALL FUNCTION 'SEO_BUFFER_INIT'.
CALL FUNCTION 'SEO_BUFFER_REFRESH'
EXPORTING
cifkey = is_key
version = seoc_version_inactive.
lo_scanner = init_scanner(
it_source = it_source
iv_name = is_key-clsname ).
* public
lt_source = lo_scanner->get_public_section_source( ).
IF lt_source IS NOT INITIAL.
lv_program = cl_oo_classname_service=>get_pubsec_name( is_key-clsname ).
lv_updated = update_report( iv_program = lv_program
it_source = lt_source ).
IF lv_updated = abap_true.
update_meta( iv_name = is_key-clsname
iv_exposure = seoc_exposure_public
it_source = lt_source ).
ENDIF.
ENDIF.
* protected
lt_source = lo_scanner->get_protected_section_source( ).
IF lt_source IS NOT INITIAL.
lv_program = cl_oo_classname_service=>get_prosec_name( is_key-clsname ).
lv_updated = update_report( iv_program = lv_program
it_source = lt_source ).
IF lv_updated = abap_true.
update_meta( iv_name = is_key-clsname
iv_exposure = seoc_exposure_protected
it_source = lt_source ).
ENDIF.
ENDIF.
* private
lt_source = lo_scanner->get_private_section_source( ).
IF lt_source IS NOT INITIAL.
lv_program = cl_oo_classname_service=>get_prisec_name( is_key-clsname ).
lv_updated = update_report( iv_program = lv_program
it_source = lt_source ).
IF lv_updated = abap_true.
update_meta( iv_name = is_key-clsname
iv_exposure = seoc_exposure_private
it_source = lt_source ).
ENDIF.
ENDIF.
* methods
lt_methods = lo_scanner->get_method_implementations( ).
LOOP AT lt_methods INTO lv_method.
TRY.
lt_source = lo_scanner->get_method_impl_source( lv_method ).
CATCH cx_oo_clif_component.
zcx_abapgit_exception=>raise( 'error from GET_METHOD_IMPL_SOURCE' ).
ENDTRY.
lv_program = determine_method_include(
iv_name = is_key-clsname
iv_method = lv_method ).
update_report(
iv_program = lv_program
it_source = lt_source ).
ENDLOOP.
* full class include
update_full_class_include( iv_classname = is_key-clsname
it_source = it_source
it_methods = lt_methods ).
update_source_index(
iv_clsname = is_key-clsname
io_scanner = lo_scanner ).
* TODO, perhaps move this call to somewhere else, to be done while cleaning up the CLAS deserialization
zcl_abapgit_objects_activation=>add(
iv_type = 'CLAS'
iv_name = is_key-clsname ).
ENDMETHOD.
METHOD zif_abapgit_oo_object_fnc~generate_locals.
DATA: lv_program TYPE programm.
IF lines( it_local_definitions ) > 0.
lv_program = cl_oo_classname_service=>get_ccdef_name( is_key-clsname ).
update_report( iv_program = lv_program
it_source = it_local_definitions ).
ENDIF.
IF lines( it_local_implementations ) > 0.
lv_program = cl_oo_classname_service=>get_ccimp_name( is_key-clsname ).
update_report( iv_program = lv_program
it_source = it_local_implementations ).
ENDIF.
IF lines( it_local_macros ) > 0.
lv_program = cl_oo_classname_service=>get_ccmac_name( is_key-clsname ).
update_report( iv_program = lv_program
it_source = it_local_macros ).
ENDIF.
IF lines( it_local_test_classes ) > 0.
lv_program = cl_oo_classname_service=>get_ccau_name( is_key-clsname ).
update_report( iv_program = lv_program
it_source = it_local_test_classes ).
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_oo_object_fnc~get_class_properties.
CALL FUNCTION 'SEO_CLIF_GET'
EXPORTING
cifkey = is_class_key
version = seoc_version_active
IMPORTING
class = rs_class_properties
EXCEPTIONS
not_existing = 1
deleted = 2
model_only = 3
OTHERS = 4.
IF sy-subrc = 1.
RETURN. " in case only inactive version exists
ELSEIF sy-subrc <> 0.
zcx_abapgit_exception=>raise( |Error from SEO_CLIF_GET. Subrc = { sy-subrc }| ).
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_oo_object_fnc~get_includes.
* note: includes returned might not exist
* method cl_oo_classname_service=>GET_ALL_CLASS_INCLUDES does not exist in 702
DATA: lv_class_name TYPE seoclsname,
lt_methods TYPE seop_methods_w_include.
FIELD-SYMBOLS: <ls_method> LIKE LINE OF lt_methods.
lv_class_name = iv_object_name.
APPEND cl_oo_classname_service=>get_ccdef_name( lv_class_name ) TO rt_includes.
APPEND cl_oo_classname_service=>get_ccmac_name( lv_class_name ) TO rt_includes.
APPEND cl_oo_classname_service=>get_ccimp_name( lv_class_name ) TO rt_includes.
APPEND cl_oo_classname_service=>get_cl_name( lv_class_name ) TO rt_includes.
APPEND cl_oo_classname_service=>get_ccau_name( lv_class_name ) TO rt_includes.
APPEND cl_oo_classname_service=>get_pubsec_name( lv_class_name ) TO rt_includes.
APPEND cl_oo_classname_service=>get_prosec_name( lv_class_name ) TO rt_includes.
APPEND cl_oo_classname_service=>get_prisec_name( lv_class_name ) TO rt_includes.
APPEND cl_oo_classname_service=>get_classpool_name( lv_class_name ) TO rt_includes.
APPEND cl_oo_classname_service=>get_ct_name( lv_class_name ) TO rt_includes.
* skip the CS include, as it is sometimes generated on the fly instead of
* when the methods are changed
* APPEND cl_oo_classname_service=>get_cs_name( lv_class_name ) TO rt_includes.
cl_oo_classname_service=>get_all_method_includes(
EXPORTING
clsname = lv_class_name
RECEIVING
result = lt_methods
EXCEPTIONS
class_not_existing = 1 ).
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( |Class { lv_class_name } not existing| ).
ENDIF.
LOOP AT lt_methods ASSIGNING <ls_method>.
APPEND <ls_method>-incname TO rt_includes.
ENDLOOP.
ENDMETHOD.
METHOD zif_abapgit_oo_object_fnc~insert_text_pool.
DATA: lv_cp TYPE program.
lv_cp = cl_oo_classname_service=>get_classpool_name( iv_class_name ).
INSERT TEXTPOOL lv_cp
FROM it_text_pool
LANGUAGE iv_language
STATE 'I'.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'error from INSERT TEXTPOOL' ).
ENDIF.
zcl_abapgit_objects_activation=>add( iv_type = 'REPT'
iv_name = lv_cp ).
ENDMETHOD.
METHOD zif_abapgit_oo_object_fnc~read_sotr.
DATA: lv_concept TYPE sotr_head-concept,
lt_seocompodf TYPE STANDARD TABLE OF seocompodf WITH DEFAULT KEY,
ls_header TYPE sotr_head,
lt_entries TYPE sotr_text_tt.
FIELD-SYMBOLS: <ls_sotr> LIKE LINE OF rt_sotr,
<ls_seocompodf> LIKE LINE OF lt_seocompodf,
<ls_entry> LIKE LINE OF lt_entries.
SELECT * FROM seocompodf
INTO TABLE lt_seocompodf
WHERE clsname = iv_object_name
AND version = '1'
AND exposure = '2'
AND attdecltyp = '2'
AND type = 'SOTR_CONC'
ORDER BY PRIMARY KEY. "#EC CI_SUBRC
LOOP AT lt_seocompodf ASSIGNING <ls_seocompodf>.
lv_concept = translate( val = <ls_seocompodf>-attvalue from = '''' to = '' ).
CALL FUNCTION 'SOTR_GET_CONCEPT'
EXPORTING
concept = lv_concept
IMPORTING
header = ls_header
TABLES
entries = lt_entries
EXCEPTIONS
no_entry_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
CONTINUE.
ENDIF.
CLEAR: ls_header-paket,
ls_header-crea_name,
ls_header-crea_tstut,
ls_header-chan_name,
ls_header-chan_tstut.
LOOP AT lt_entries ASSIGNING <ls_entry>.
CLEAR: <ls_entry>-version,
<ls_entry>-crea_name,
<ls_entry>-crea_tstut,
<ls_entry>-chan_name,
<ls_entry>-chan_tstut.
ENDLOOP.
APPEND INITIAL LINE TO rt_sotr ASSIGNING <ls_sotr>.
<ls_sotr>-header = ls_header.
<ls_sotr>-entries = lt_entries.
ENDLOOP.
ENDMETHOD.
METHOD zif_abapgit_oo_object_fnc~read_text_pool.
DATA: lv_cp TYPE program.
lv_cp = cl_oo_classname_service=>get_classpool_name( iv_class_name ).
READ TEXTPOOL lv_cp INTO rt_text_pool LANGUAGE iv_language. "#EC CI_READ_REP
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
2238,
62,
4871,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
397,
499,
18300,
62,
2238,
62,
8692,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
337,
36252,
50,
1976,
361,
62,
397,
499,
18300,
62,
2238,
62,
15252,
62,
69,
10782,
93,
17953,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
764,
198,
220,
220,
220,
337,
36252,
50,
1976,
361,
62,
397,
499,
18300,
62,
2238,
62,
15252,
62,
69,
10782,
93,
17953,
62,
82,
313,
81,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
764,
198,
220,
220,
220,
337,
36252,
50,
1976,
361,
62,
397,
499,
18300,
62,
2238,
62,
15252,
62,
69,
10782,
93,
33678,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
764,
198,
220,
220,
220,
337,
36252,
50,
1976,
361,
62,
397,
499,
18300,
62,
2238,
62,
15252,
62,
69,
10782,
93,
8612,
378,
62,
17946,
874,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
764,
198,
220,
220,
220,
337,
36252,
50,
1976,
361,
62,
397,
499,
18300,
62,
2238,
62,
15252,
62,
69,
10782,
93,
1136,
62,
4871,
62,
48310,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
764,
198,
220,
220,
220,
337,
36252,
50,
1976,
361,
62,
397,
499,
18300,
62,
2238,
62,
15252,
62,
69,
10782,
93,
1136,
62,
42813,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
764,
198,
220,
220,
220,
337,
36252,
50,
1976,
361,
62,
397,
499,
18300,
62,
2238,
62,
15252,
62,
69,
10782,
93,
28463,
62,
5239,
62,
7742,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
764,
198,
220,
220,
220,
337,
36252,
50,
1976,
361,
62,
397,
499,
18300,
62,
2238,
62,
15252,
62,
69,
10782,
93,
961,
62,
82,
313,
81,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
764,
198,
220,
220,
220,
337,
36252,
50,
1976,
361,
62,
397,
499,
18300,
62,
2238,
62,
15252,
62,
69,
10782,
93,
961,
62,
5239,
62,
7742,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
764,
198,
220,
220,
220,
337,
36252,
50,
1976,
361,
62,
397,
499,
18300,
62,
2238,
62,
15252,
62,
69,
10782,
93,
8906,
48499,
1096,
62,
10459,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
764,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
4296,
62,
10459,
62,
9630,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
565,
82,
3672,
41876,
269,
43167,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
952,
62,
35836,
1008,
41876,
4526,
37,
5390,
537,
62,
2238,
62,
10459,
62,
35836,
1008,
62,
4871,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
4296,
62,
13116,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
23065,
220,
220,
220,
220,
220,
220,
41876,
1430,
76,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
270,
62,
10459,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
62,
11487,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
43162,
8,
41876,
450,
499,
62,
30388,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
7716,
62,
4871,
7742,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
3672,
41876,
384,
420,
7278,
3672,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
4296,
62,
28961,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
3672,
220,
220,
220,
220,
41876,
384,
420,
7278,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
1069,
26205,
41876,
384,
78,
1069,
3455,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
270,
62,
10459,
220,
220,
41876,
374,
2032,
82,
454,
66,
316,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
5004,
62,
24396,
62,
17256,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
3672,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
384,
420,
7278,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
24396,
220,
220,
220,
220,
220,
220,
220,
41876,
384,
420,
30094,
3672,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
23065,
8,
41876,
1430,
76,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
2315,
62,
35836,
1008,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
270,
62,
10459,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
"! <p class="shorttext synchronized" lang="en">SAP Interface Monitor - Utilities</p>
CLASS zcl_intfmonitor_util DEFINITION
PUBLIC
FINAL
CREATE PRIVATE.
PUBLIC SECTION.
TYPES:
BEGIN OF mtyp_s_intf_param,
datatype TYPE zzeintfdatatype,
param TYPE zzeintfdatapar,
xparam TYPE zzexintfdatapar,
xdatatype TYPE ddtext,
paramtype TYPE zzeintfdatapartype,
END OF mtyp_s_intf_param .
TYPES:
mtyp_t_intf_param TYPE STANDARD TABLE OF mtyp_s_intf_param WITH NON-UNIQUE KEY datatype param.
"! <p class="shorttext synchronized" lang="en">Gets Domain Value text</p>
"!
"! @parameter id_domname | <p class="shorttext synchronized" lang="en">Domain name</p>
"! @parameter id_value | <p class="shorttext synchronized" lang="en">Values for Domains:
"! Single Value / Upper Limit</p>
"! @parameter rd_text | <p class="shorttext synchronized" lang="en">Short Text for Fixed Values</p>
CLASS-METHODS get_domain_text
IMPORTING id_domname TYPE dd07v-domname
id_value TYPE any
RETURNING VALUE(rd_text) TYPE dd07v-ddtext .
"! <p class="shorttext synchronized" lang="en">Gets Interface parameter definition</p>
"!
"! @parameter io_interface | <p class="shorttext synchronized" lang="en">SAP Interface Monitor</p>
"! @parameter et_definition | <p class="shorttext synchronized" lang="en">Param list information</p>
CLASS-METHODS get_interface_param_definition
IMPORTING io_interface TYPE REF TO zif_intfmonitor
EXPORTING et_definition TYPE mtyp_t_intf_param .
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS zcl_intfmonitor_util IMPLEMENTATION.
METHOD get_domain_text.
DATA: ld_value TYPE dd07v-domvalue_l.
ld_value = id_value.
CALL FUNCTION 'SXMS_GET_DOMAIN_TEXT'
EXPORTING
domname = id_domname
value = ld_value
IMPORTING
text = rd_text
EXCEPTIONS
OTHERS = 999.
ENDMETHOD.
METHOD get_interface_param_definition.
DATA: lt_list TYPE ztt_zintfmonitor012,
ls_details TYPE zintfmonitor013.
FIELD-SYMBOLS: <ls_list> LIKE LINE OF lt_list,
<ls_definition> LIKE LINE OF et_definition.
ASSERT io_interface IS BOUND.
CLEAR et_definition[].
TRY.
zcl_zintfmonitor012_read=>get_list( EXPORTING id_intfid = io_interface->ms_detail-intfid
IMPORTING et_list = lt_list ).
CATCH zcx_intfmonitor .
* Do nothing
ENDTRY.
LOOP AT lt_list ASSIGNING <ls_list>.
INSERT INITIAL LINE INTO TABLE et_definition ASSIGNING <ls_definition>.
<ls_definition>-param = <ls_list>-param.
<ls_definition>-datatype = <ls_list>-datatype.
<ls_definition>-paramtype = <ls_list>-paramtype.
<ls_definition>-xdatatype = get_domain_text( id_domname = 'ZZDINTFDATATYPE'
id_value = <ls_definition>-datatype ). "#EC NOTEXT
TRY.
ls_details = zcl_zintfmonitor013_read=>get_details( id_intfid = io_interface->ms_detail-intfid
id_spras = sy-langu
id_param = <ls_list>-param ).
<ls_definition>-xparam = ls_details-xparam.
CATCH zcx_intfmonitor .
<ls_definition>-xparam = |< { <ls_list>-param } >|. "#EC NOTEXT
ENDTRY.
ENDLOOP.
ENDMETHOD.
ENDCLASS.
| [
40484,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
50,
2969,
26491,
18289,
532,
41086,
3556,
79,
29,
198,
31631,
1976,
565,
62,
600,
69,
41143,
62,
22602,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
25261,
198,
220,
29244,
6158,
4810,
3824,
6158,
13,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
285,
28004,
62,
82,
62,
600,
69,
62,
17143,
11,
198,
220,
220,
220,
220,
220,
220,
220,
4818,
265,
2981,
220,
41876,
1976,
2736,
600,
16344,
265,
265,
2981,
11,
198,
220,
220,
220,
220,
220,
220,
220,
5772,
220,
220,
220,
220,
41876,
1976,
2736,
600,
16344,
265,
499,
283,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
17143,
220,
220,
220,
41876,
1976,
89,
1069,
600,
16344,
265,
499,
283,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2124,
19608,
265,
2981,
41876,
49427,
5239,
11,
198,
220,
220,
220,
220,
220,
220,
220,
5772,
4906,
41876,
1976,
2736,
600,
16344,
265,
499,
433,
2981,
11,
198,
220,
220,
220,
220,
220,
23578,
220,
220,
3963,
285,
28004,
62,
82,
62,
600,
69,
62,
17143,
764,
198,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
285,
28004,
62,
83,
62,
600,
69,
62,
17143,
41876,
49053,
9795,
43679,
3963,
285,
28004,
62,
82,
62,
600,
69,
62,
17143,
13315,
44521,
12,
4944,
33866,
8924,
35374,
4818,
265,
2981,
5772,
13,
628,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
38,
1039,
20021,
11052,
2420,
3556,
79,
29,
198,
220,
220,
220,
366,
0,
198,
220,
220,
220,
366,
0,
2488,
17143,
2357,
4686,
62,
3438,
3672,
930,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
43961,
1438,
3556,
79,
29,
198,
220,
220,
220,
366,
0,
2488,
17143,
2357,
4686,
62,
8367,
220,
220,
930,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
40161,
329,
9666,
1299,
25,
198,
220,
220,
220,
366,
0,
14206,
11052,
1220,
20390,
27272,
3556,
79,
29,
198,
220,
220,
220,
366,
0,
2488,
17143,
2357,
374,
67,
62,
5239,
220,
220,
220,
930,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
16438,
8255,
329,
10832,
27068,
3556,
79,
29,
198,
220,
220,
220,
42715,
12,
49273,
50,
651,
62,
27830,
62,
5239,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
4686,
62,
3438,
3672,
220,
220,
220,
220,
41876,
49427,
2998,
85,
12,
3438,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4686,
62,
8367,
220,
220,
220,
220,
220,
220,
41876,
597,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
4372,
62,
5239,
8,
41876,
49427,
2998,
85,
12,
1860,
5239,
764,
198,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
38,
1039,
26491,
11507,
6770,
3556,
79,
29,
198,
220,
220,
220,
366,
0,
198,
220,
220,
220,
366,
0,
2488,
17143,
2357,
33245,
62,
39994,
930,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
50,
2969,
26491,
18289,
3556,
79,
29,
198,
220,
220,
220,
366,
0,
2488,
17143,
2357,
2123,
62,
46758,
930,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
22973,
1351,
1321,
3556,
79,
29,
198,
220,
220,
220,
42715,
12,
49273,
50,
651,
62,
39994,
62,
17143,
62,
46758,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
33245,
62,
39994,
220,
41876,
4526,
37,
5390,
1976,
361,
62,
600,
69,
41143,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
2123,
62,
46758,
41876,
285,
28004,
62,
83,
62,
600,
69,
62,
17143,
764,
628,
220,
48006,
9782,
1961,
44513,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
565,
62,
600,
69,
41143,
62,
22602,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
651,
62,
27830,
62,
5239,
13,
198,
220,
220,
220,
42865,
25,
300,
67,
62,
8367,
41876,
49427,
2998,
85,
12,
3438,
8367,
62,
75,
13,
628,
220,
220,
220,
300,
67,
62,
8367,
796,
4686,
62,
8367,
13,
198,
220,
220,
220,
42815,
29397,
4177,
2849,
705,
50,
55,
5653,
62,
18851,
62,
39170,
29833,
62,
32541,
6,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
2401,
3672,
796,
4686,
62,
3438,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
1988,
220,
220,
796,
300,
67,
62,
8367,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
2420,
220,
220,
220,
796,
374,
67,
62,
5239,
198,
220,
220,
220,
220,
220,
7788,
42006,
11053,
198,
220,
220,
220,
220,
220,
220,
220,
440,
4221,
4877,
220,
796,
36006,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
651,
62,
39994,
62,
17143,
62,
46758,
13,
198,
220,
220,
220,
42865,
25,
300,
83,
62,
4868,
220,
220,
220,
41876,
1976,
926,
62,
89,
600,
69,
41143,
30206,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
43979,
62,
36604,
41876,
1976,
600,
69,
41143,
30273,
13,
628,
220,
220,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
25,
1279,
7278,
62,
4868,
29,
220,
220,
220,
220,
220,
220,
34178,
48920,
3963,
300,
83,
62,
4868,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1279,
7278,
62,
46758,
29,
34178,
48920,
3963,
2123,
62,
46758,
13,
628,
220,
220,
220,
24994,
17395,
33245,
62,
39994,
3180,
347,
15919,
13,
628,
220,
220,
220,
30301,
1503,
2123,
62,
46758,
58,
4083,
628,
220,
220,
220,
7579,
56,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
565,
62,
89,
600,
69,
41143,
30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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
*&---------------------------------------------------------------------*
*& _____ ______ __ __ ______ _______ ___ _ ______
*& | __ \| ____| \/ | ____| __ \ \ / / \ | | ____|
*& | |__) | |__ | \ / | |__ | | | \ \_/ /| \| | |__
*& | _ /| __| | |\/| | __| | | | |\ / | . ` | __|
*& | | \ \| |____| | | | |____| |__| | | | | |\ | |____
*& |_| \_\______|_| |_|______|_____/ |_| |_| \_|______|
*&
*& _____ _ _ _
*& / ____| | | (_) (_)
*& | (___ __ _ _ __ ___| |_ _ ___ _ __ ___ _ ___
*& \___ \ / _` | '_ \ / __| __| |/ _ \| '_ \/ __| | |/ _ \
*& ____) | (_| | | | | (__| |_| | (_) | | | \__ \_| | (_) |
*& |_____/ \__,_|_| |_|\___|\__|_|\___/|_| |_|___(_)_|\___/
*&
*& Author: Rodrigo Giner de la Vega
*&---------------------------------------------------------------------*
REPORT zsanctionsio.
* Declarations
TYPE-POOLS: vrm.
DATA: name TYPE vrm_id,
list TYPE vrm_values,
value LIKE LINE OF list,
lv_name(120) TYPE c,
lv_index TYPE i,
gv_matches TYPE i.
DATA: docking TYPE REF TO cl_gui_docking_container,
lo_html_viewer TYPE REF TO cl_gui_html_viewer.
DATA: v_path TYPE string,
lo_http_client TYPE REF TO if_http_client,
lv_response TYPE string,
lt_responsetable TYPE TABLE OF string,
lv_count TYPE i,
lv_lines TYPE i.
DATA: BEGIN OF gt_data OCCURS 0,
name TYPE char120,
END OF gt_data.
DATA: gs_data LIKE LINE OF gt_data.
TYPES: BEGIN OF t_alv,
entity_num TYPE i,
search TYPE char120,
name TYPE char120,
END OF t_alv.
DATA: gt_alv TYPE TABLE OF t_alv.
DATA: gs_alv LIKE LINE OF gt_alv.
FIELD-SYMBOLS: <gs_data> TYPE ANY,
<gt_data> TYPE STANDARD TABLE.
* Selection Screen
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
PARAMETERS: p_api TYPE string OBLIGATORY LOWER CASE,
p_dest(20) OBLIGATORY.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.
PARAMETERS: p_table TYPE string,
p_field TYPE string.
SELECT-OPTIONS: so_name FOR lv_name NO-EXTENSION NO INTERVALS.
PARAMETERS: p_list(10) AS LISTBOX VISIBLE LENGTH 50.
SELECTION-SCREEN END OF BLOCK b2.
AT SELECTION-SCREEN OUTPUT.
name = 'P_LIST'.
value-key = 'CFSP'. value-text = 'Consolidated list of sanctions (CFSP)'. APPEND value TO list.
value-key = 'UN'. value-text = 'Consolidated United Nations Security Council Sanctions List (UN)'. APPEND value TO list.
value-key = 'HMT'. value-text = 'Consolidated list of targets (HMT)'. APPEND value TO list.
value-key = 'DPL'. value-text = 'Denied Persons List (DPL)'. APPEND value TO list.
value-key = 'UL'. value-text = 'Unverified List (UL)'. APPEND value TO list.
value-key = 'EL'. value-text = 'Entity List (EL)'. APPEND value TO list.
value-key = 'ISN'. value-text = 'Nonproliferation Sanctions (ISN)'. APPEND value TO list.
value-key = 'DTC'. value-text = 'ITAR Debarred (DTC)'. APPEND value TO list.
value-key = 'SDN'. value-text = 'Specially Designated Nationals List (SDN)'. APPEND value TO list.
value-key = 'FSE'. value-text = 'Foreign Sanctions Evaders List (FSE)'. APPEND value TO list.
value-key = 'SSI'. value-text = 'Sectoral Sanctions Identifications List (SSI)'. APPEND value TO list.
value-key = 'PLC'. value-text = 'Non-SDN Palestinian Legislative Council List (PLC)'. APPEND value TO list.
value-key = '561'. value-text = 'Foreign Financial Institutions Subject to Part 561 (561)'. APPEND value TO list.
value-key = 'NS-ISA'. value-text = 'Non-SDN Iranian Sanctions Act List (NS-ISA)'. APPEND value TO list.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = name
values = list.
PERFORM show_web_page.
AT SELECTION-SCREEN.
IF p_table IS INITIAL AND so_name[] IS INITIAL.
MESSAGE 'Please enter Table and Field or Name to search' TYPE 'E'.
ENDIF.
IF p_table IS INITIAL AND p_field IS NOT INITIAL AND so_name[] IS INITIAL.
MESSAGE 'Please enter a table' TYPE 'E'.
ELSE.
IF p_field IS INITIAL AND so_name[] IS INITIAL.
MESSAGE 'Please enter a field of table entered' TYPE 'E'.
ELSE.
DATA: lt_dfies_tab TYPE STANDARD TABLE OF dfies,
lv_table TYPE ddobjname.
lv_table = p_table.
CALL FUNCTION 'DDIF_FIELDINFO_GET'
EXPORTING
tabname = lv_table
TABLES
dfies_tab = lt_dfies_tab
EXCEPTIONS
not_found = 1
internal_error = 2
OTHERS = 3.
IF sy-subrc <> 0 AND so_name[] IS INITIAL.
MESSAGE 'Please enter a valid table' TYPE 'E'.
ENDIF.
ENDIF.
ENDIF.
START-OF-SELECTION.
* Select Data (if table and field used)
PERFORM get_data.
DESCRIBE TABLE gt_data LINES lv_lines.
LOOP AT gt_data INTO gs_data.
lv_index = lv_index + 1.
PERFORM call_api CHANGING gs_data-name
p_list
gt_alv.
PERFORM progress_bar USING 'Processig data...'(001)
lv_index
lv_lines.
ENDLOOP.
SORT gt_alv BY entity_num search name.
DELETE ADJACENT DUPLICATES FROM gt_alv COMPARING ALL FIELDS.
LOOP AT gt_alv INTO gs_alv.
AT NEW entity_num.
gv_matches = gv_matches + 1.
ENDAT.
ENDLOOP.
END-OF-SELECTION.
* Show ALV
PERFORM show_alv.
*&---------------------------------------------------------------------*
*& Form GET_DATA
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* --> p1 text
* <-- p2 text
*----------------------------------------------------------------------*
FORM get_data .
DATA: lo_type_desc TYPE REF TO cl_abap_typedescr, "cl_abap_elemdescr,
lo_field_type TYPE REF TO cl_abap_elemdescr,
lv_field_aux TYPE string,
ls_field_descr TYPE abap_componentdescr, "cl_abap_structdescr=>component,
lt_field_descr TYPE abap_component_tab,
lt_key_descr TYPE abap_component_tab,
lo_field_struct TYPE REF TO cl_abap_structdescr,
lo_field_ref TYPE REF TO data,
lo_tabledescr TYPE REF TO cl_abap_tabledescr,
lo_table_ref TYPE REF TO data.
IF p_table IS NOT INITIAL AND p_field IS NOT INITIAL.
SELECT (p_field)
FROM (p_table)
INTO TABLE gt_data.
DELETE gt_data WHERE name NOT IN so_name.
ELSE.
gs_data-name = so_name-low.
APPEND gs_data TO gt_data.
ENDIF.
ENDFORM. " GET_DATA
*&---------------------------------------------------------------------*
*& Form CALL_API
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* -->P_GS_DATA_NAME text
* <--P_GT_ALV text
*----------------------------------------------------------------------*
FORM call_api CHANGING p_name
p_list
t_alv.
DATA lv_count_api TYPE i.
DATA lv_fuzzy TYPE string.
DATA: lv_text_aux TYPE string.
DATA: result_tab TYPE match_result_tab.
DATA: result_tab_entity TYPE match_result_tab.
DATA: result_tab_alt_names TYPE match_result_tab.
DATA: result_tab_names TYPE match_result_tab.
DATA: ls_result_tab LIKE LINE OF result_tab.
DATA: BEGIN OF ls_matches,
offset TYPE i,
length TYPE i,
END OF ls_matches.
CLEAR: lo_http_client, gs_alv.
cl_http_client=>create_by_destination(
EXPORTING
destination = p_dest
IMPORTING
client = lo_http_client
EXCEPTIONS
argument_not_found = 1
destination_not_found = 2
destination_no_authority = 3
plugin_not_active = 4
internal_error = 5
OTHERS = 6 ).
IF sy-subrc <> 0.
WRITE: 'create error', sy-subrc.
ENDIF.
DATA: emptybuffer TYPE xstring.
emptybuffer = ''.
CALL METHOD lo_http_client->request->set_data
EXPORTING
data = emptybuffer.
CALL METHOD lo_http_client->request->set_header_field
EXPORTING
name = '~request_method'
value = 'GET'.
CALL METHOD lo_http_client->request->set_header_field
EXPORTING
name = 'Content-Type'
value = 'text/xml; charset=utf-8'.
CALL METHOD lo_http_client->request->set_header_field
EXPORTING
name = 'Accept'
value = 'text/xml, text/html, application/json, text/csv'.
IF p_name CS '*'.
lv_fuzzy = '&fuzzy_name=true'.
ENDIF.
TRANSLATE p_name USING ' +'.
SHIFT p_name RIGHT DELETING TRAILING `+`.
TRANSLATE p_name USING '*+'.
CONDENSE p_name NO-GAPS.
CONCATENATE '/search/?api_key=' p_api `&name=` p_name lv_fuzzy `&sources=` p_list INTO v_path.
cl_http_utility=>set_request_uri( request = lo_http_client->request
uri = v_path ).
lo_http_client->request->set_method(
if_http_request=>co_request_method_get ).
lo_http_client->send(
EXCEPTIONS
http_communication_failure = 1
http_invalid_state = 2
http_processing_failed = 3
http_invalid_timeout = 4
OTHERS = 5 ).
IF sy-subrc <> 0.
WRITE: 'send error', sy-subrc.
ENDIF.
lo_http_client->receive(
EXCEPTIONS
http_communication_failure = 1
http_invalid_state = 2
http_processing_failed = 3
OTHERS = 4 ).
DATA: subrc LIKE sy-subrc.
IF sy-subrc <> 0.
WRITE: 'receive error', sy-subrc.
CALL METHOD lo_http_client->get_last_error
IMPORTING
code = subrc
MESSAGE = lv_response.
WRITE: / 'communication_error( receive )',
/ 'code: ', subrc, 'message: ', lv_response.
CLEAR lv_response.
ENDIF.
lv_response = lo_http_client->response->get_cdata( ).
lo_http_client->close( ).
*Check Count
FIND REGEX `"count":([0-9]+)` IN lv_response RESULTS result_tab.
LOOP AT result_tab INTO ls_result_tab.
LOOP AT ls_result_tab-submatches INTO ls_matches WHERE offset >= 0.
lv_count_api = lv_response+ls_matches-offset(ls_matches-length).
ENDLOOP.
ENDLOOP.
IF sy-subrc <> 0.
MESSAGE 'Could not connect to the API, check you API Key and try again.' TYPE 'I'.
SUBMIT ZSANCTIONSIO VIA SELECTION-SCREEN WITH p_table = p_table
WITH p_field = p_field
WITH p_api = p_api
WITH p_dest = p_dest
WITH so_name = so_name-low.
ENDIF.
IF NOT lv_count_api > 0.
EXIT.
ENDIF.
*Entity_number
FIND ALL OCCURRENCES OF REGEX `"entity_number":([0-9]+)` IN lv_response RESULTS result_tab_entity.
DATA gv_index TYPE i.
LOOP AT result_tab_entity INTO ls_result_tab.
CLEAR gs_alv.
gv_index = gv_index + 1.
LOOP AT ls_result_tab-submatches INTO ls_matches WHERE offset >= 0.
gs_alv-entity_num = lv_response+ls_matches-offset(ls_matches-length).
ENDLOOP.
* Alternative names
FIND ALL OCCURRENCES OF REGEX `"alt_names":\["([^"]*)"(?:,"([^"]*)"(?:,"([^"]*)"(?:,"([^"]*)"(?:,"([^"]*)")?)?)?)?` IN lv_response RESULTS result_tab_alt_names.
LOOP AT result_tab_alt_names INTO ls_result_tab FROM gv_index TO gv_index.
LOOP AT ls_result_tab-submatches INTO ls_matches WHERE offset >= 0.
"WRITE: /, lv_response+ls_matches-offset(ls_matches-length).
gs_alv-search = p_name.
gs_alv-name = lv_response+ls_matches-offset(ls_matches-length).
APPEND gs_alv TO gt_alv.
ENDLOOP.
ENDLOOP.
* Name
FIND ALL OCCURRENCES OF REGEX `"name":"(\\"|[^"]*)"` IN lv_response RESULTS result_tab_names.
LOOP AT result_tab_names INTO ls_result_tab FROM gv_index TO gv_index.
LOOP AT ls_result_tab-submatches INTO ls_matches WHERE offset >= 0.
gs_alv-search = p_name.
gs_alv-name = lv_response+ls_matches-offset(ls_matches-length).
APPEND gs_alv TO gt_alv.
"WRITE: /, lv_response+ls_matches-offset(ls_matches-length).
ENDLOOP.
ENDLOOP.
ENDLOOP.
ENDFORM. " CALL_API
*&---------------------------------------------------------------------*
*& Form SHOW_ALV
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* --> p1 text
* <-- p2 text
*----------------------------------------------------------------------*
FORM show_alv .
*ALV reference
DATA: o_alv TYPE REF TO cl_salv_table.
DATA: lx_msg TYPE REF TO cx_salv_msg.
TRY.
cl_salv_table=>factory(
IMPORTING
r_salv_table = o_alv
CHANGING
t_table = gt_alv ).
CATCH cx_salv_msg INTO lx_msg.
ENDTRY.
DATA: lo_header TYPE REF TO cl_salv_form_layout_grid,
lo_h_label TYPE REF TO cl_salv_form_label,
lo_h_flow TYPE REF TO cl_salv_form_layout_flow.
*Header
CREATE OBJECT lo_header.
lo_h_label = lo_header->create_label( row = 1 column = 1 ).
lo_h_label->set_text( 'Searches Found:' ).
lo_h_label = lo_header->create_label( row = 1 column = 2 ).
lo_h_label->set_text( gv_matches ).
o_alv->set_top_of_list( lo_header ).
* Status
DATA: lo_functions TYPE REF TO cl_salv_functions_list.
lo_functions = o_alv->get_functions( ).
lo_functions->set_all( abap_true ).
* Display
DATA: lo_display TYPE REF TO cl_salv_display_settings.
lo_display = o_alv->get_display_settings( ).
lo_display->set_striped_pattern( 'X' ).
lo_display->set_list_header( 'SANCTIONS.IO - Matches found' ).
* Layout
DATA: lo_layout TYPE REF TO cl_salv_layout,
lf_variant TYPE slis_vari,
ls_key TYPE salv_s_layout_key.
lo_layout = o_alv->get_layout( ).
ls_key-report = sy-repid.
lo_layout->set_key( ls_key ).
lo_layout->set_save_restriction( if_salv_c_layout=>restrict_user_dependant ).
lf_variant = 'DEFAULT'.
lo_layout->set_initial_layout( lf_variant ).
* Catalog
DATA: lo_cols TYPE REF TO cl_salv_columns_table.
lo_cols = o_alv->get_columns( ).
lo_cols->set_optimize( ).
lo_cols->set_key_fixation( ).
DATA: lo_column TYPE REF TO cl_salv_column_table.
TRY.
lo_column ?= lo_cols->get_column( 'ENTITY_NUM' ).
lo_column->set_short_text( 'Ent.Number' ).
lo_column->set_medium_text( 'Ent. Number' ).
lo_column->set_long_text( 'Entity Number' ).
lo_column ?= lo_cols->get_column( 'SEARCH' ).
lo_column->set_key_presence_required( ).
lo_column->set_short_text( 'Search' ).
lo_column->set_medium_text( 'Search' ).
lo_column->set_long_text( 'Search' ).
lo_column ?= lo_cols->get_column( 'NAME' ).
lo_column->set_short_text( 'Names' ).
lo_column->set_medium_text( 'Names' ).
lo_column->set_long_text( 'Names' ).
CATCH cx_salv_not_found. "#EC NO_HANDLER
ENDTRY.
o_alv->display( ).
ENDFORM. " SHOW_ALV
*&---------------------------------------------------------------------*
*& Form PROGRESS_BAR
*&---------------------------------------------------------------------*
FORM progress_bar USING p_value
p_tabix
p_nlines.
DATA: w_text(40),
w_percentage TYPE p,
gd_percent TYPE p,
w_percent_char(3).
w_percentage = ( p_tabix / p_nlines ) * 100.
w_percent_char = w_percentage.
SHIFT w_percent_char LEFT DELETING LEADING ' '.
CONCATENATE p_value w_percent_char '% Complete'(002) INTO w_text.
IF w_percentage GT gd_percent OR p_tabix EQ 1.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
percentage = w_percentage
text = w_text.
gd_percent = w_percentage.
ENDIF.
ENDFORM. " PROGRESS_BAR
*&---------------------------------------------------------------------*
*& Form show_web_page
*&---------------------------------------------------------------------*
FORM show_web_page.
DATA: repid LIKE sy-repid.
repid = sy-repid.
DATA: lt_html TYPE TABLE OF w3_html,
ls_html LIKE LINE OF lt_html.
DATA: lv_url(80).
IF docking IS INITIAL .
* Create objects for the reference variables
CREATE OBJECT docking
EXPORTING
repid = repid
dynnr = sy-dynnr
side = cl_gui_docking_container=>dock_at_right
ratio = 60
EXCEPTIONS
cntl_error = 1 "extension = '600'
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5.
CREATE OBJECT lo_html_viewer
EXPORTING
parent = docking.
CHECK sy-subrc = 0.
ls_html = '<html><body><div>ZSANCTIONSIO is a template SAP ABAP report that implements the <a href="http://sanctions.io" target="_blank">sanctions.io</a>'.
APPEND ls_html TO lt_html.
ls_html = ` (<a href="https://sanctions.io" target="_blank">https://sanctions.io</a>) API to check persons and organizations against sanction lists.</div><div><br></div>`.
APPEND ls_html TO lt_html.
ls_html = `<div>To learn more about supported sanction lists and the API, visit <a href="https://sanctions.io" target="_blank">https://sanctions.io</a></div><div>`.
APPEND ls_html TO lt_html.
ls_html = `This report does not implement advanced features of the API like fuzzy search, matching country or date of birth, etc.</div><div><br></div>`.
APPEND ls_html TO lt_html.
ls_html = `<div>This report is provided as is and with no warranty under the 3-clause-BSD license, see <a href="https://opensource.org/licenses/BSD-3-Clause"`.
APPEND ls_html TO lt_html.
ls_html = `target="_blank">https://opensource.org/<wbr>licenses/BSD-3-Clause</a>.</div><div>Redistribution and use, with or without modification, is permitted.</div>`.
APPEND ls_html TO lt_html.
ls_html = `<div>Copyright 2019 REMEDYNE GmbH.</div><div><br></div><div>Before using this report:</div>`.
APPEND ls_html TO lt_html.
ls_html = `<div>1. Create an RFC destination as described here:</div><div><a href="https://remedyne.help/knowledgebase/configure-ssl-client-for-sanction-list-screening/"`.
APPEND ls_html TO lt_html.
ls_html = `target="_blank">https://remedyne.help/<wbr>knowledgebase/configure-ssl-<wbr>client-for-sanction-list-<wbr>screening/</a></div><div>2. Sign-up for an API key on`.
APPEND ls_html TO lt_html.
ls_html = `<a href="https://sanctions.io" target="_blank">https://sanctions.io</a>. A free trial is available.</div><div>`.
APPEND ls_html TO lt_html.
ls_html = `3. This report does not perform an AUTHORITY-CHECK when executed: make sure you apply appropriate security mechanisms before deploying this.</div><div>`.
APPEND ls_html TO lt_html.
ls_html = `4. This template report comes with no warranty. It has been used in several environments without problems, but running this check against large sets of data`.
APPEND ls_html TO lt_html.
ls_html = `can have an impact on the performance of your SAP system.</div><div><br></div><div>To use this report:</div><div>Enter a table name and field name that`.
APPEND ls_html TO lt_html.
ls_html = `contains names, e.g. business partner names such as LFA1:NAME1, and select the sanction list against which you want to run the check.</div>`.
APPEND ls_html TO lt_html.
ls_html = `<div>You can also enter a name and check whether the name is on a list.</div><div><br></div><div>In case of questions, contact`.
APPEND ls_html TO lt_html.
ls_html = `<a href="mailto:[email protected]" target="_blank">[email protected]</a></div><div><br></div><div><br></div>`.
APPEND ls_html TO lt_html.
ls_html = `<div><br></div><div><img id="image" src="https://github.com/REMEDYNE/Sanctions.io/blob/master/sanctions.io_transparent_small.png?raw=true" data-image-whitelisted=""></div>`.
APPEND ls_html TO lt_html.
ls_html = `</body></html>`.
APPEND ls_html TO lt_html.
CALL METHOD lo_html_viewer->load_data
IMPORTING
assigned_url = lv_url
CHANGING
data_table = lt_html.
* Load Web Page using url from selection screen.
IF sy-subrc = 0.
CALL METHOD lo_html_viewer->show_url
EXPORTING
url = lv_url.
ENDIF.
ENDIF .
ENDFORM. "show_web_page
| [
9,
5,
10097,
30934,
9,
198,
9,
5,
220,
220,
220,
29343,
220,
44435,
11593,
220,
11593,
44435,
220,
37405,
220,
220,
220,
220,
46444,
220,
220,
4808,
44435,
198,
9,
5,
220,
930,
220,
11593,
3467,
91,
220,
220,
1427,
91,
220,
3467,
14,
220,
930,
220,
220,
1427,
91,
220,
11593,
3467,
3467,
220,
220,
1220,
1220,
3467,
930,
930,
220,
220,
1427,
91,
198,
9,
5,
220,
930,
930,
834,
8,
930,
930,
834,
220,
930,
3467,
220,
1220,
930,
930,
834,
220,
930,
930,
220,
930,
3467,
3467,
62,
14,
1220,
91,
220,
3467,
91,
930,
930,
834,
198,
9,
5,
220,
930,
220,
4808,
220,
1220,
91,
220,
11593,
91,
930,
930,
11139,
91,
930,
220,
11593,
91,
930,
930,
220,
930,
930,
59,
220,
220,
1220,
930,
764,
4600,
930,
220,
11593,
91,
198,
9,
5,
220,
930,
930,
3467,
3467,
91,
930,
1427,
91,
930,
220,
930,
930,
930,
1427,
91,
930,
834,
91,
930,
930,
930,
220,
930,
930,
59,
220,
930,
930,
1427,
198,
9,
5,
220,
930,
62,
91,
220,
3467,
62,
59,
25947,
91,
62,
91,
220,
930,
62,
91,
25947,
91,
29343,
14,
220,
930,
62,
91,
220,
930,
62,
91,
3467,
62,
91,
25947,
91,
198,
9,
5,
198,
9,
5,
220,
220,
220,
29343,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4808,
220,
220,
4808,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4808,
198,
9,
5,
220,
1220,
220,
1427,
91,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
930,
44104,
8,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
44104,
8,
198,
9,
5,
930,
357,
17569,
220,
220,
11593,
4808,
4808,
11593,
220,
220,
46444,
91,
930,
62,
4808,
220,
46444,
220,
4808,
11593,
220,
46444,
220,
220,
4808,
220,
46444,
198,
9,
5,
220,
3467,
17569,
3467,
1220,
4808,
63,
930,
705,
62,
3467,
1220,
11593,
91,
11593,
91,
930,
14,
4808,
3467,
91,
705,
62,
3467,
14,
11593,
91,
930,
930,
14,
4808,
3467,
198,
9,
5,
220,
220,
1427,
8,
930,
44104,
91,
930,
930,
930,
930,
357,
834,
91,
930,
62,
91,
930,
44104,
8,
930,
930,
930,
3467,
834,
3467,
62,
91,
930,
44104,
8,
930,
198,
9,
5,
930,
29343,
14,
3467,
834,
11,
62,
91,
62,
91,
930,
62,
91,
59,
17569,
91,
59,
834,
91,
62,
91,
59,
17569,
14,
91,
62,
91,
930,
62,
91,
17569,
28264,
8,
62,
91,
59,
17569,
14,
198,
9,
5,
198,
9,
5,
220,
6434,
25,
46198,
402,
7274,
390,
8591,
30310,
198,
9,
5,
10097,
30934,
9,
198,
198,
2200,
15490,
220,
1976,
12807,
2733,
952,
13,
198,
198,
9,
16691,
24355,
198,
25216,
12,
16402,
3535,
50,
25,
410,
26224,
13,
198,
198,
26947,
25,
1438,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
410,
26224,
62,
312,
11,
198,
220,
220,
220,
220,
220,
1351,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
410,
26224,
62,
27160,
11,
198,
220,
220,
220,
220,
220,
1988,
220,
220,
220,
220,
220,
220,
220,
220,
34178,
48920,
3963,
1351,
11,
198,
220,
220,
220,
220,
220,
300,
85,
62,
3672,
7,
10232,
8,
220,
41876,
269,
11,
198,
220,
220,
220,
220,
220,
300,
85,
62,
9630,
220,
220,
220,
220,
220,
41876,
1312,
11,
198,
220,
220,
220,
220,
220,
308,
85,
62,
6759,
2052,
220,
220,
220,
41876,
1312,
13,
198,
198,
26947,
25,
45441,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
537,
62,
48317,
62,
67,
8629,
62,
34924,
11,
198,
220,
220,
220,
220,
220,
2376,
62,
6494,
62,
1177,
263,
220,
41876,
4526,
37,
5390,
537,
62,
48317,
62,
6494,
62,
1177,
263,
13,
198,
198,
26947,
25,
410,
62,
6978,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
2376,
62,
4023,
62,
16366,
41876,
4526,
37,
5390,
611,
62,
4023,
62,
16366,
11,
198,
220,
220,
220,
220,
220,
300,
85,
62,
26209,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
300,
83,
62,
16733,
316,
540,
41876,
43679,
3963,
4731,
11,
198,
220,
220,
220,
220,
220,
300,
85,
62,
9127,
41876,
1312,
11,
198,
220,
220,
220,
220,
220,
300,
85,
62,
6615,
41876,
1312,
13,
198,
198,
26947,
25,
347,
43312,
3963,
308,
83,
62,
7890,
440,
4093,
4261,
50,
657,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
41876,
1149,
10232,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
308,
83,
62,
7890,
13,
198,
26947,
25,
308,
82,
62,
7890,
34178,
48920,
3963,
308,
83,
62,
7890,
13,
198,
198,
9936,
47,
1546,
25,
347,
43312,
3963,
256,
62,
282,
85,
11,
198,
220,
220,
220,
220,
220,
220,
220,
9312,
62,
22510,
220,
41876,
1312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2989,
220,
220,
220,
220,
220,
41876,
1149,
10232,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
220,
220,
220,
220,
220,
220,
220,
41876,
1149,
10232,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
256,
62,
282,
85,
13,
198,
26947,
25,
308,
83,
62,
282,
85,
41876,
43679,
3963,
256,
62,
282,
85,
13,
198,
26947,
25,
308,
82,
62,
282,
85,
34178,
48920,
3963,
308,
83,
62,
282,
85,
13,
198,
198,
44603,
12,
23060,
10744,
3535,
50,
25,
1279,
14542,
62,
7890,
29,
41876,
15529,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1279,
13655,
62,
7890,
29,
41876,
49053,
9795,
43679,
13,
198,
198,
9,
29538,
15216,
198,
46506,
2849,
12,
6173,
2200,
1677,
347,
43312,
3963,
9878,
11290,
275,
16,
13315,
8782,
10067,
13,
198,
27082,
2390,
2767,
4877,
25,
279,
62,
15042,
41876,
4731,
440,
9148,
3528,
1404,
15513,
406,
36048,
42001,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
279,
62,
16520,
7,
1238,
8,
440,
9148,
3528,
1404,
15513,
13
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_excel_writer_2007 DEFINITION
PUBLIC
CREATE PUBLIC .
PUBLIC SECTION.
*"* public components of class ZCL_EXCEL_WRITER_2007
*"* do not include other source files here!!!
INTERFACES zif_excel_writer .
METHODS constructor.
PROTECTED SECTION.
*"* protected components of class ZCL_EXCEL_WRITER_2007
*"* do not include other source files here!!!
TYPES: BEGIN OF mty_column_formula_used,
id TYPE zexcel_s_cell_data-column_formula_id,
si TYPE string,
"! type: shared, etc.
t TYPE string,
END OF mty_column_formula_used,
mty_column_formulas_used TYPE HASHED TABLE OF mty_column_formula_used WITH UNIQUE KEY id.
CONSTANTS c_content_types TYPE string VALUE '[Content_Types].xml'. "#EC NOTEXT
CONSTANTS c_docprops_app TYPE string VALUE 'docProps/app.xml'. "#EC NOTEXT
CONSTANTS c_docprops_core TYPE string VALUE 'docProps/core.xml'. "#EC NOTEXT
CONSTANTS c_relationships TYPE string VALUE '_rels/.rels'. "#EC NOTEXT
CONSTANTS c_xl_calcchain TYPE string VALUE 'xl/calcChain.xml'. "#EC NOTEXT
CONSTANTS c_xl_drawings TYPE string VALUE 'xl/drawings/drawing#.xml'. "#EC NOTEXT
CONSTANTS c_xl_drawings_rels TYPE string VALUE 'xl/drawings/_rels/drawing#.xml.rels'. "#EC NOTEXT
CONSTANTS c_xl_relationships TYPE string VALUE 'xl/_rels/workbook.xml.rels'. "#EC NOTEXT
CONSTANTS c_xl_sharedstrings TYPE string VALUE 'xl/sharedStrings.xml'. "#EC NOTEXT
CONSTANTS c_xl_sheet TYPE string VALUE 'xl/worksheets/sheet#.xml'. "#EC NOTEXT
CONSTANTS c_xl_sheet_rels TYPE string VALUE 'xl/worksheets/_rels/sheet#.xml.rels'. "#EC NOTEXT
CONSTANTS c_xl_styles TYPE string VALUE 'xl/styles.xml'. "#EC NOTEXT
CONSTANTS c_xl_theme TYPE string VALUE 'xl/theme/theme1.xml'. "#EC NOTEXT
CONSTANTS c_xl_workbook TYPE string VALUE 'xl/workbook.xml'. "#EC NOTEXT
DATA excel TYPE REF TO zcl_excel .
DATA shared_strings TYPE zexcel_t_shared_string .
DATA styles_cond_mapping TYPE zexcel_t_styles_cond_mapping .
DATA styles_mapping TYPE zexcel_t_styles_mapping .
CONSTANTS c_xl_comments TYPE string VALUE 'xl/comments#.xml'. "#EC NOTEXT
CONSTANTS cl_xl_drawing_for_comments TYPE string VALUE 'xl/drawings/vmlDrawing#.vml'. "#EC NOTEXT
CONSTANTS c_xl_drawings_vml_rels TYPE string VALUE 'xl/drawings/_rels/vmlDrawing#.vml.rels'. "#EC NOTEXT
DATA ixml TYPE REF TO if_ixml.
METHODS create_xl_sheet_sheet_data
IMPORTING
!io_document TYPE REF TO if_ixml_document
!io_worksheet TYPE REF TO zcl_excel_worksheet
RETURNING
VALUE(rv_ixml_sheet_data_root) TYPE REF TO if_ixml_element .
METHODS add_further_data_to_zip
IMPORTING
!io_zip TYPE REF TO cl_abap_zip .
METHODS create
RETURNING
VALUE(ep_excel) TYPE xstring .
METHODS create_content_types
RETURNING
VALUE(ep_content) TYPE xstring .
METHODS create_docprops_app
RETURNING
VALUE(ep_content) TYPE xstring .
METHODS create_docprops_core
RETURNING
VALUE(ep_content) TYPE xstring .
METHODS create_dxf_style
IMPORTING
!iv_cell_style TYPE zexcel_cell_style
!io_dxf_element TYPE REF TO if_ixml_element
!io_ixml_document TYPE REF TO if_ixml_document
!it_cellxfs TYPE zexcel_t_cellxfs
!it_fonts TYPE zexcel_t_style_font
!it_fills TYPE zexcel_t_style_fill
CHANGING
!cv_dfx_count TYPE i .
METHODS create_relationships
RETURNING
VALUE(ep_content) TYPE xstring .
METHODS create_xl_charts
IMPORTING
!io_drawing TYPE REF TO zcl_excel_drawing
RETURNING
VALUE(ep_content) TYPE xstring .
METHODS create_xl_comments
IMPORTING
!io_worksheet TYPE REF TO zcl_excel_worksheet
RETURNING
VALUE(ep_content) TYPE xstring .
METHODS create_xl_drawings
IMPORTING
!io_worksheet TYPE REF TO zcl_excel_worksheet
RETURNING
VALUE(ep_content) TYPE xstring .
METHODS create_xl_drawings_rels
IMPORTING
!io_worksheet TYPE REF TO zcl_excel_worksheet
RETURNING
VALUE(ep_content) TYPE xstring .
METHODS create_xl_drawing_anchor
IMPORTING
!io_drawing TYPE REF TO zcl_excel_drawing
!io_document TYPE REF TO if_ixml_document
!ip_index TYPE i
RETURNING
VALUE(ep_anchor) TYPE REF TO if_ixml_element .
METHODS create_xl_drawing_for_comments
IMPORTING
!io_worksheet TYPE REF TO zcl_excel_worksheet
RETURNING
VALUE(ep_content) TYPE xstring .
METHODS create_xl_relationships
RETURNING
VALUE(ep_content) TYPE xstring .
METHODS create_xl_sharedstrings
RETURNING
VALUE(ep_content) TYPE xstring .
METHODS create_xl_sheet
IMPORTING
!io_worksheet TYPE REF TO zcl_excel_worksheet
!iv_active TYPE flag DEFAULT ''
RETURNING
VALUE(ep_content) TYPE xstring
RAISING
zcx_excel .
METHODS create_xl_sheet_ignored_errors
IMPORTING
io_worksheet TYPE REF TO zcl_excel_worksheet
io_document TYPE REF TO if_ixml_document
io_element_root TYPE REF TO if_ixml_element.
METHODS create_xl_sheet_pagebreaks
IMPORTING
!io_document TYPE REF TO if_ixml_document
!io_parent TYPE REF TO if_ixml_element
!io_worksheet TYPE REF TO zcl_excel_worksheet
RAISING
zcx_excel .
METHODS create_xl_sheet_rels
IMPORTING
!io_worksheet TYPE REF TO zcl_excel_worksheet
!iv_drawing_index TYPE i
!iv_comment_index TYPE i
RETURNING
VALUE(ep_content) TYPE xstring .
METHODS create_xl_styles
RETURNING
VALUE(ep_content) TYPE xstring .
METHODS create_xl_styles_color_node
IMPORTING
!io_document TYPE REF TO if_ixml_document
!io_parent TYPE REF TO if_ixml_element
!iv_color_elem_name TYPE string DEFAULT 'color'
!is_color TYPE zexcel_s_style_color .
METHODS create_xl_styles_font_node
IMPORTING
!io_document TYPE REF TO if_ixml_document
!io_parent TYPE REF TO if_ixml_element
!is_font TYPE zexcel_s_style_font
!iv_use_rtf TYPE abap_bool DEFAULT abap_false .
METHODS create_xl_table
IMPORTING
!io_table TYPE REF TO zcl_excel_table
RETURNING
VALUE(ep_content) TYPE xstring .
METHODS create_xl_theme
RETURNING
VALUE(ep_content) TYPE xstring .
METHODS create_xl_workbook
RETURNING
VALUE(ep_content) TYPE xstring .
METHODS get_shared_string_index
IMPORTING
!ip_cell_value TYPE zexcel_cell_value
!it_rtf TYPE zexcel_t_rtf OPTIONAL
RETURNING
VALUE(ep_index) TYPE int4 .
METHODS create_xl_drawings_vml
RETURNING
VALUE(ep_content) TYPE xstring .
METHODS set_vml_string
RETURNING
VALUE(ep_content) TYPE string .
METHODS create_xl_drawings_vml_rels
RETURNING
VALUE(ep_content) TYPE xstring .
METHODS set_vml_shape_footer
IMPORTING
!is_footer TYPE zexcel_s_worksheet_head_foot
RETURNING
VALUE(ep_content) TYPE string .
METHODS set_vml_shape_header
IMPORTING
!is_header TYPE zexcel_s_worksheet_head_foot
RETURNING
VALUE(ep_content) TYPE string .
METHODS create_xl_drawing_for_hdft_im
IMPORTING
!io_worksheet TYPE REF TO zcl_excel_worksheet
RETURNING
VALUE(ep_content) TYPE xstring .
METHODS create_xl_drawings_hdft_rels
IMPORTING
!io_worksheet TYPE REF TO zcl_excel_worksheet
RETURNING
VALUE(ep_content) TYPE xstring .
METHODS create_xml_document
RETURNING
VALUE(ro_document) TYPE REF TO if_ixml_document.
METHODS render_xml_document
IMPORTING
io_document TYPE REF TO if_ixml_document
RETURNING
VALUE(ep_content) TYPE xstring.
METHODS create_xl_sheet_column_formula
IMPORTING
io_document TYPE REF TO if_ixml_document
it_column_formulas TYPE zcl_excel_worksheet=>mty_th_column_formula
is_sheet_content TYPE zexcel_s_cell_data
EXPORTING
eo_element TYPE REF TO if_ixml_element
CHANGING
ct_column_formulas_used TYPE mty_column_formulas_used
cv_si TYPE i
RAISING
zcx_excel.
METHODS is_formula_shareable
IMPORTING
ip_formula TYPE string
RETURNING
VALUE(ep_shareable) TYPE abap_bool
RAISING
zcx_excel.
PRIVATE SECTION.
*"* private components of class ZCL_EXCEL_WRITER_2007
*"* do not include other source files here!!!
CONSTANTS c_off TYPE string VALUE '0'. "#EC NOTEXT
CONSTANTS c_on TYPE string VALUE '1'. "#EC NOTEXT
CONSTANTS c_xl_printersettings TYPE string VALUE 'xl/printerSettings/printerSettings#.bin'. "#EC NOTEXT
TYPES: tv_charbool TYPE c LENGTH 5.
METHODS flag2bool
IMPORTING
!ip_flag TYPE flag
RETURNING
VALUE(ep_boolean) TYPE tv_charbool .
ENDCLASS.
CLASS zcl_excel_writer_2007 IMPLEMENTATION.
METHOD constructor.
me->ixml = cl_ixml=>create( ).
ENDMETHOD.
METHOD add_further_data_to_zip.
* Can be used by child classes like xlsm-writer to write additional data to zip archive
ENDMETHOD.
METHOD create.
* Office 2007 file format is a cab of several xml files with extension .xlsx
DATA: lo_zip TYPE REF TO cl_abap_zip,
lo_worksheet TYPE REF TO zcl_excel_worksheet,
lo_active_worksheet TYPE REF TO zcl_excel_worksheet,
lo_iterator TYPE REF TO cl_object_collection_iterator,
lo_nested_iterator TYPE REF TO cl_object_collection_iterator,
lo_table TYPE REF TO zcl_excel_table,
lo_drawing TYPE REF TO zcl_excel_drawing,
lo_drawings TYPE REF TO zcl_excel_drawings,
lo_comment TYPE REF TO zcl_excel_comment, " (+) Issue #180
lo_comments TYPE REF TO zcl_excel_comments. " (+) Issue #180
DATA: lv_content TYPE xstring,
lv_active TYPE flag,
lv_xl_sheet TYPE string,
lv_xl_sheet_rels TYPE string,
lv_xl_drawing_for_comment TYPE string, " (+) Issue #180
lv_xl_comment TYPE string, " (+) Issue #180
lv_xl_drawing TYPE string,
lv_xl_drawing_rels TYPE string,
lv_index_str TYPE string,
lv_value TYPE string,
lv_sheet_index TYPE i,
lv_drawing_index TYPE i,
lv_comment_index TYPE i. " (+) Issue #180
**********************************************************************
**********************************************************************
* Start of insertion # issue 139 - Dateretention of cellstyles
me->excel->add_static_styles( ).
* End of insertion # issue 139 - Dateretention of cellstyles
**********************************************************************
* STEP 1: Create archive object file (ZIP)
CREATE OBJECT lo_zip.
**********************************************************************
* STEP 2: Add [Content_Types].xml to zip
lv_content = me->create_content_types( ).
lo_zip->add( name = me->c_content_types
content = lv_content ).
**********************************************************************
* STEP 3: Add _rels/.rels to zip
lv_content = me->create_relationships( ).
lo_zip->add( name = me->c_relationships
content = lv_content ).
**********************************************************************
* STEP 4: Add docProps/app.xml to zip
lv_content = me->create_docprops_app( ).
lo_zip->add( name = me->c_docprops_app
content = lv_content ).
**********************************************************************
* STEP 5: Add docProps/core.xml to zip
lv_content = me->create_docprops_core( ).
lo_zip->add( name = me->c_docprops_core
content = lv_content ).
**********************************************************************
* STEP 6: Add xl/_rels/workbook.xml.rels to zip
lv_content = me->create_xl_relationships( ).
lo_zip->add( name = me->c_xl_relationships
content = lv_content ).
**********************************************************************
* STEP 6: Add xl/_rels/workbook.xml.rels to zip
lv_content = me->create_xl_theme( ).
lo_zip->add( name = me->c_xl_theme
content = lv_content ).
**********************************************************************
* STEP 7: Add xl/workbook.xml to zip
lv_content = me->create_xl_workbook( ).
lo_zip->add( name = me->c_xl_workbook
content = lv_content ).
**********************************************************************
* STEP 8: Add xl/workbook.xml to zip
* lv_content = me->create_xl_styles_static( ).
lv_content = me->create_xl_styles( ).
lo_zip->add( name = me->c_xl_styles
content = lv_content ).
**********************************************************************
* STEP 9: Add sharedStrings.xml to zip
lv_content = me->create_xl_sharedstrings( ).
lo_zip->add( name = me->c_xl_sharedstrings
content = lv_content ).
**********************************************************************
* STEP 10: Add sheet#.xml and drawing#.xml to zip
lo_iterator = me->excel->get_worksheets_iterator( ).
lo_active_worksheet = me->excel->get_active_worksheet( ).
WHILE lo_iterator->has_next( ) EQ abap_true.
lv_sheet_index = sy-index.
lo_worksheet ?= lo_iterator->get_next( ).
IF lo_active_worksheet->get_guid( ) EQ lo_worksheet->get_guid( ).
lv_active = abap_true.
ELSE.
lv_active = abap_false.
ENDIF.
lv_content = me->create_xl_sheet( io_worksheet = lo_worksheet
iv_active = lv_active ).
lv_xl_sheet = me->c_xl_sheet.
lv_index_str = lv_sheet_index.
CONDENSE lv_index_str NO-GAPS.
REPLACE ALL OCCURRENCES OF '#' IN lv_xl_sheet WITH lv_index_str.
lo_zip->add( name = lv_xl_sheet
content = lv_content ).
* Begin - Add - Issue #180
* Add comments **********************************
lo_comments = lo_worksheet->get_comments( ).
IF lo_comments->is_empty( ) = abap_false.
lv_comment_index = lv_comment_index + 1.
" Create comment itself
lv_content = me->create_xl_comments( lo_worksheet ).
lv_xl_comment = me->c_xl_comments.
lv_index_str = lv_comment_index.
CONDENSE lv_index_str NO-GAPS.
REPLACE ALL OCCURRENCES OF '#' IN lv_xl_comment WITH lv_index_str.
lo_zip->add( name = lv_xl_comment
content = lv_content ).
" Create vmlDrawing that will host the comment
lv_content = me->create_xl_drawing_for_comments( lo_worksheet ).
lv_xl_drawing_for_comment = me->cl_xl_drawing_for_comments.
REPLACE ALL OCCURRENCES OF '#' IN lv_xl_drawing_for_comment WITH lv_index_str.
lo_zip->add( name = lv_xl_drawing_for_comment
content = lv_content ).
ENDIF.
* End - Add - Issue #180
* Add drawings **********************************
lo_drawings = lo_worksheet->get_drawings( ).
IF lo_drawings->is_empty( ) = abap_false.
lv_drawing_index = lv_drawing_index + 1.
lv_content = me->create_xl_drawings( lo_worksheet ).
lv_xl_drawing = me->c_xl_drawings.
lv_index_str = lv_drawing_index.
CONDENSE lv_index_str NO-GAPS.
REPLACE ALL OCCURRENCES OF '#' IN lv_xl_drawing WITH lv_index_str.
lo_zip->add( name = lv_xl_drawing
content = lv_content ).
lv_content = me->create_xl_drawings_rels( lo_worksheet ).
lv_xl_drawing_rels = me->c_xl_drawings_rels.
REPLACE ALL OCCURRENCES OF '#' IN lv_xl_drawing_rels WITH lv_index_str.
lo_zip->add( name = lv_xl_drawing_rels
content = lv_content ).
ENDIF.
* Add Header/Footer image
DATA: lt_drawings TYPE zexcel_t_drawings.
lt_drawings = lo_worksheet->get_header_footer_drawings( ).
IF lines( lt_drawings ) > 0. "Header or footer image exist
lv_comment_index = lv_comment_index + 1.
lv_index_str = lv_comment_index.
CONDENSE lv_index_str NO-GAPS.
" Create vmlDrawing that will host the image
lv_content = me->create_xl_drawing_for_hdft_im( lo_worksheet ).
lv_xl_drawing_for_comment = me->cl_xl_drawing_for_comments.
REPLACE ALL OCCURRENCES OF '#' IN lv_xl_drawing_for_comment WITH lv_index_str.
lo_zip->add( name = lv_xl_drawing_for_comment
content = lv_content ).
" Create vmlDrawing REL that will host the image
lv_content = me->create_xl_drawings_hdft_rels( lo_worksheet ).
lv_xl_drawing_rels = me->c_xl_drawings_vml_rels.
REPLACE ALL OCCURRENCES OF '#' IN lv_xl_drawing_rels WITH lv_index_str.
lo_zip->add( name = lv_xl_drawing_rels
content = lv_content ).
ENDIF.
lv_xl_sheet_rels = me->c_xl_sheet_rels.
lv_content = me->create_xl_sheet_rels( io_worksheet = lo_worksheet
iv_drawing_index = lv_drawing_index
iv_comment_index = lv_comment_index ). " (+) Issue #180
lv_index_str = lv_sheet_index.
CONDENSE lv_index_str NO-GAPS.
REPLACE ALL OCCURRENCES OF '#' IN lv_xl_sheet_rels WITH lv_index_str.
lo_zip->add( name = lv_xl_sheet_rels
content = lv_content ).
lo_nested_iterator = lo_worksheet->get_tables_iterator( ).
WHILE lo_nested_iterator->has_next( ) EQ abap_true.
lo_table ?= lo_nested_iterator->get_next( ).
lv_content = me->create_xl_table( lo_table ).
lv_value = lo_table->get_name( ).
CONCATENATE 'xl/tables/' lv_value '.xml' INTO lv_value.
lo_zip->add( name = lv_value
content = lv_content ).
ENDWHILE.
ENDWHILE.
**********************************************************************
* STEP 11: Add media
lo_iterator = me->excel->get_drawings_iterator( zcl_excel_drawing=>type_image ).
WHILE lo_iterator->has_next( ) EQ abap_true.
lo_drawing ?= lo_iterator->get_next( ).
* IF lo_drawing->get_type( ) NE zcl_excel_drawing=>type_image_header_footer.
lv_content = lo_drawing->get_media( ).
lv_value = lo_drawing->get_media_name( ).
CONCATENATE 'xl/media/' lv_value INTO lv_value.
lo_zip->add( name = lv_value
content = lv_content ).
* ENDIF.
ENDWHILE.
**********************************************************************
* STEP 12: Add charts
lo_iterator = me->excel->get_drawings_iterator( zcl_excel_drawing=>type_chart ).
WHILE lo_iterator->has_next( ) EQ abap_true.
lo_drawing ?= lo_iterator->get_next( ).
lv_content = lo_drawing->get_media( ).
"-------------Added by Alessandro Iannacci - Only if template exist
IF lv_content IS NOT INITIAL AND me->excel->use_template EQ abap_true.
lv_value = lo_drawing->get_media_name( ).
CONCATENATE 'xl/charts/' lv_value INTO lv_value.
lo_zip->add( name = lv_value
content = lv_content ).
ELSE. "ADD CUSTOM CHART!!!!
lv_content = me->create_xl_charts( lo_drawing ).
lv_value = lo_drawing->get_media_name( ).
CONCATENATE 'xl/charts/' lv_value INTO lv_value.
lo_zip->add( name = lv_value
content = lv_content ).
ENDIF.
"-------------------------------------------------
ENDWHILE.
* Second to last step: Allow further information put into the zip archive by child classes
me->add_further_data_to_zip( lo_zip ).
**********************************************************************
* Last step: Create the final zip
ep_excel = lo_zip->save( ).
ENDMETHOD.
METHOD create_content_types.
** Constant node name
DATA: lc_xml_node_types TYPE string VALUE 'Types',
lc_xml_node_override TYPE string VALUE 'Override',
lc_xml_node_default TYPE string VALUE 'Default',
" Node attributes
lc_xml_attr_partname TYPE string VALUE 'PartName',
lc_xml_attr_extension TYPE string VALUE 'Extension',
lc_xml_attr_contenttype TYPE string VALUE 'ContentType',
" Node namespace
lc_xml_node_types_ns TYPE string VALUE 'http://schemas.openxmlformats.org/package/2006/content-types',
" Node extension
lc_xml_node_rels_ext TYPE string VALUE 'rels',
lc_xml_node_xml_ext TYPE string VALUE 'xml',
lc_xml_node_xml_vml TYPE string VALUE 'vml', " (+) GGAR
" Node partnumber
lc_xml_node_theme_pn TYPE string VALUE '/xl/theme/theme1.xml',
lc_xml_node_styles_pn TYPE string VALUE '/xl/styles.xml',
lc_xml_node_workb_pn TYPE string VALUE '/xl/workbook.xml',
lc_xml_node_props_pn TYPE string VALUE '/docProps/app.xml',
lc_xml_node_worksheet_pn TYPE string VALUE '/xl/worksheets/sheet#.xml',
lc_xml_node_strings_pn TYPE string VALUE '/xl/sharedStrings.xml',
lc_xml_node_core_pn TYPE string VALUE '/docProps/core.xml',
lc_xml_node_chart_pn TYPE string VALUE '/xl/charts/chart#.xml',
" Node contentType
lc_xml_node_theme_ct TYPE string VALUE 'application/vnd.openxmlformats-officedocument.theme+xml',
lc_xml_node_styles_ct TYPE string VALUE 'application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml',
lc_xml_node_workb_ct TYPE string VALUE 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml',
lc_xml_node_rels_ct TYPE string VALUE 'application/vnd.openxmlformats-package.relationships+xml',
lc_xml_node_vml_ct TYPE string VALUE 'application/vnd.openxmlformats-officedocument.vmlDrawing',
lc_xml_node_xml_ct TYPE string VALUE 'application/xml',
lc_xml_node_props_ct TYPE string VALUE 'application/vnd.openxmlformats-officedocument.extended-properties+xml',
lc_xml_node_worksheet_ct TYPE string VALUE 'application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml',
lc_xml_node_strings_ct TYPE string VALUE 'application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml',
lc_xml_node_core_ct TYPE string VALUE 'application/vnd.openxmlformats-package.core-properties+xml',
lc_xml_node_table_ct TYPE string VALUE 'application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml',
lc_xml_node_comments_ct TYPE string VALUE 'application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml', " (+) GGAR
lc_xml_node_drawings_ct TYPE string VALUE 'application/vnd.openxmlformats-officedocument.drawing+xml',
lc_xml_node_chart_ct TYPE string VALUE 'application/vnd.openxmlformats-officedocument.drawingml.chart+xml'.
DATA: lo_document TYPE REF TO if_ixml_document,
lo_element_root TYPE REF TO if_ixml_element,
lo_element TYPE REF TO if_ixml_element,
lo_worksheet TYPE REF TO zcl_excel_worksheet,
lo_iterator TYPE REF TO cl_object_collection_iterator,
lo_nested_iterator TYPE REF TO cl_object_collection_iterator,
lo_table TYPE REF TO zcl_excel_table.
DATA: lv_worksheets_num TYPE i,
lv_worksheets_numc TYPE numc3,
lv_xml_node_worksheet_pn TYPE string,
lv_value TYPE string,
lv_comment_index TYPE i VALUE 1, " (+) GGAR
lv_drawing_index TYPE i VALUE 1,
lv_index_str TYPE string.
**********************************************************************
* STEP 1: Create [Content_Types].xml into the root of the ZIP
lo_document = create_xml_document( ).
**********************************************************************
* STEP 3: Create main node types
lo_element_root = lo_document->create_simple_element( name = lc_xml_node_types
parent = lo_document ).
lo_element_root->set_attribute_ns( name = 'xmlns'
value = lc_xml_node_types_ns ).
**********************************************************************
* STEP 4: Create subnodes
" rels node
lo_element = lo_document->create_simple_element( name = lc_xml_node_default
parent = lo_document ).
lo_element->set_attribute_ns( name = lc_xml_attr_extension
value = lc_xml_node_rels_ext ).
lo_element->set_attribute_ns( name = lc_xml_attr_contenttype
value = lc_xml_node_rels_ct ).
lo_element_root->append_child( new_child = lo_element ).
" extension node
lo_element = lo_document->create_simple_element( name = lc_xml_node_default
parent = lo_document ).
lo_element->set_attribute_ns( name = lc_xml_attr_extension
value = lc_xml_node_xml_ext ).
lo_element->set_attribute_ns( name = lc_xml_attr_contenttype
value = lc_xml_node_xml_ct ).
lo_element_root->append_child( new_child = lo_element ).
* Begin - Add - GGAR
" VML node (for comments)
lo_element = lo_document->create_simple_element( name = lc_xml_node_default
parent = lo_document ).
lo_element->set_attribute_ns( name = lc_xml_attr_extension
value = lc_xml_node_xml_vml ).
lo_element->set_attribute_ns( name = lc_xml_attr_contenttype
value = lc_xml_node_vml_ct ).
lo_element_root->append_child( new_child = lo_element ).
* End - Add - GGAR
" Theme node
lo_element = lo_document->create_simple_element( name = lc_xml_node_override
parent = lo_document ).
lo_element->set_attribute_ns( name = lc_xml_attr_partname
value = lc_xml_node_theme_pn ).
lo_element->set_attribute_ns( name = lc_xml_attr_contenttype
value = lc_xml_node_theme_ct ).
lo_element_root->append_child( new_child = lo_element ).
" Styles node
lo_element = lo_document->create_simple_element( name = lc_xml_node_override
parent = lo_document ).
lo_element->set_attribute_ns( name = lc_xml_attr_partname
value = lc_xml_node_styles_pn ).
lo_element->set_attribute_ns( name = lc_xml_attr_contenttype
value = lc_xml_node_styles_ct ).
lo_element_root->append_child( new_child = lo_element ).
" Workbook node
lo_element = lo_document->create_simple_element( name = lc_xml_node_override
parent = lo_document ).
lo_element->set_attribute_ns( name = lc_xml_attr_partname
value = lc_xml_node_workb_pn ).
lo_element->set_attribute_ns( name = lc_xml_attr_contenttype
value = lc_xml_node_workb_ct ).
lo_element_root->append_child( new_child = lo_element ).
" Properties node
lo_element = lo_document->create_simple_element( name = lc_xml_node_override
parent = lo_document ).
lo_element->set_attribute_ns( name = lc_xml_attr_partname
value = lc_xml_node_props_pn ).
lo_element->set_attribute_ns( name = lc_xml_attr_contenttype
value = lc_xml_node_props_ct ).
lo_element_root->append_child( new_child = lo_element ).
" Worksheet node
lv_worksheets_num = excel->get_worksheets_size( ).
DO lv_worksheets_num TIMES.
lo_element = lo_document->create_simple_element( name = lc_xml_node_override
parent = lo_document ).
MOVE sy-index TO lv_worksheets_numc.
SHIFT lv_worksheets_numc LEFT DELETING LEADING '0'.
lv_xml_node_worksheet_pn = lc_xml_node_worksheet_pn.
REPLACE ALL OCCURRENCES OF '#' IN lv_xml_node_worksheet_pn WITH lv_worksheets_numc.
lo_element->set_attribute_ns( name = lc_xml_attr_partname
value = lv_xml_node_worksheet_pn ).
lo_element->set_attribute_ns( name = lc_xml_attr_contenttype
value = lc_xml_node_worksheet_ct ).
lo_element_root->append_child( new_child = lo_element ).
ENDDO.
lo_iterator = me->excel->get_worksheets_iterator( ).
WHILE lo_iterator->has_next( ) EQ abap_true.
lo_worksheet ?= lo_iterator->get_next( ).
lo_nested_iterator = lo_worksheet->get_tables_iterator( ).
WHILE lo_nested_iterator->has_next( ) EQ abap_true.
lo_table ?= lo_nested_iterator->get_next( ).
lv_value = lo_table->get_name( ).
CONCATENATE '/xl/tables/' lv_value '.xml' INTO lv_value.
lo_element = lo_document->create_simple_element( name = lc_xml_node_override
parent = lo_document ).
lo_element->set_attribute_ns( name = lc_xml_attr_partname
value = lv_value ).
lo_element->set_attribute_ns( name = lc_xml_attr_contenttype
value = lc_xml_node_table_ct ).
lo_element_root->append_child( new_child = lo_element ).
ENDWHILE.
* Begin - Add - GGAR
" Comments
DATA: lo_comments TYPE REF TO zcl_excel_comments.
lo_comments = lo_worksheet->get_comments( ).
IF lo_comments->is_empty( ) = abap_false.
lv_index_str = lv_comment_index.
CONDENSE lv_index_str NO-GAPS.
CONCATENATE '/' me->c_xl_comments INTO lv_value.
REPLACE '#' WITH lv_index_str INTO lv_value.
lo_element = lo_document->create_simple_element( name = lc_xml_node_override
parent = lo_document ).
lo_element->set_attribute_ns( name = lc_xml_attr_partname
value = lv_value ).
lo_element->set_attribute_ns( name = lc_xml_attr_contenttype
value = lc_xml_node_comments_ct ).
lo_element_root->append_child( new_child = lo_element ).
ADD 1 TO lv_comment_index.
ENDIF.
* End - Add - GGAR
" Drawings
DATA: lo_drawings TYPE REF TO zcl_excel_drawings.
lo_drawings = lo_worksheet->get_drawings( ).
IF lo_drawings->is_empty( ) = abap_false.
lv_index_str = lv_drawing_index.
CONDENSE lv_index_str NO-GAPS.
CONCATENATE '/' me->c_xl_drawings INTO lv_value.
REPLACE '#' WITH lv_index_str INTO lv_value.
lo_element = lo_document->create_simple_element( name = lc_xml_node_override
parent = lo_document ).
lo_element->set_attribute_ns( name = lc_xml_attr_partname
value = lv_value ).
lo_element->set_attribute_ns( name = lc_xml_attr_contenttype
value = lc_xml_node_drawings_ct ).
lo_element_root->append_child( new_child = lo_element ).
ADD 1 TO lv_drawing_index.
ENDIF.
ENDWHILE.
" media mimes
DATA: lo_drawing TYPE REF TO zcl_excel_drawing,
lt_media_type TYPE TABLE OF mimetypes-extension,
lv_media_type TYPE mimetypes-extension,
lv_mime_type TYPE mimetypes-type.
lo_iterator = me->excel->get_drawings_iterator( zcl_excel_drawing=>type_image ).
WHILE lo_iterator->has_next( ) = abap_true.
lo_drawing ?= lo_iterator->get_next( ).
lv_media_type = lo_drawing->get_media_type( ).
COLLECT lv_media_type INTO lt_media_type.
ENDWHILE.
LOOP AT lt_media_type INTO lv_media_type.
CALL FUNCTION 'SDOK_MIMETYPE_GET'
EXPORTING
extension = lv_media_type
IMPORTING
mimetype = lv_mime_type.
lo_element = lo_document->create_simple_element( name = lc_xml_node_default
parent = lo_document ).
lv_value = lv_media_type.
lo_element->set_attribute_ns( name = lc_xml_attr_extension
value = lv_value ).
lv_value = lv_mime_type.
lo_element->set_attribute_ns( name = lc_xml_attr_contenttype
value = lv_value ).
lo_element_root->append_child( new_child = lo_element ).
ENDLOOP.
" Charts
lo_iterator = me->excel->get_drawings_iterator( zcl_excel_drawing=>type_chart ).
WHILE lo_iterator->has_next( ) = abap_true.
lo_drawing ?= lo_iterator->get_next( ).
lo_element = lo_document->create_simple_element( name = lc_xml_node_override
parent = lo_document ).
lv_index_str = lo_drawing->get_index( ).
CONDENSE lv_index_str.
lv_value = lc_xml_node_chart_pn.
REPLACE ALL OCCURRENCES OF '#' IN lv_value WITH lv_index_str.
lo_element->set_attribute_ns( name = lc_xml_attr_partname
value = lv_value ).
lo_element->set_attribute_ns( name = lc_xml_attr_contenttype
value = lc_xml_node_chart_ct ).
lo_element_root->append_child( new_child = lo_element ).
ENDWHILE.
" Strings node
lo_element = lo_document->create_simple_element( name = lc_xml_node_override
parent = lo_document ).
lo_element->set_attribute_ns( name = lc_xml_attr_partname
value = lc_xml_node_strings_pn ).
lo_element->set_attribute_ns( name = lc_xml_attr_contenttype
value = lc_xml_node_strings_ct ).
lo_element_root->append_child( new_child = lo_element ).
" Strings node
lo_element = lo_document->create_simple_element( name = lc_xml_node_override
parent = lo_document ).
lo_element->set_attribute_ns( name = lc_xml_attr_partname
value = lc_xml_node_core_pn ).
lo_element->set_attribute_ns( name = lc_xml_attr_contenttype
value = lc_xml_node_core_ct ).
lo_element_root->append_child( new_child = lo_element ).
**********************************************************************
* STEP 5: Create xstring stream
ep_content = render_xml_document( lo_document ).
ENDMETHOD.
METHOD create_docprops_app.
** Constant node name
DATA: lc_xml_node_properties TYPE string VALUE 'Properties',
lc_xml_node_application TYPE string VALUE 'Application',
lc_xml_node_docsecurity TYPE string VALUE 'DocSecurity',
lc_xml_node_scalecrop TYPE string VALUE 'ScaleCrop',
lc_xml_node_headingpairs TYPE string VALUE 'HeadingPairs',
lc_xml_node_vector TYPE string VALUE 'vector',
lc_xml_node_variant TYPE string VALUE 'variant',
lc_xml_node_lpstr TYPE string VALUE 'lpstr',
lc_xml_node_i4 TYPE string VALUE 'i4',
lc_xml_node_titlesofparts TYPE string VALUE 'TitlesOfParts',
lc_xml_node_company TYPE string VALUE 'Company',
lc_xml_node_linksuptodate TYPE string VALUE 'LinksUpToDate',
lc_xml_node_shareddoc TYPE string VALUE 'SharedDoc',
lc_xml_node_hyperlinkschanged TYPE string VALUE 'HyperlinksChanged',
lc_xml_node_appversion TYPE string VALUE 'AppVersion',
" Namespace prefix
lc_vt_ns TYPE string VALUE 'vt',
lc_xml_node_props_ns TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/extended-properties',
lc_xml_node_props_vt_ns TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes',
" Node attributes
lc_xml_attr_size TYPE string VALUE 'size',
lc_xml_attr_basetype TYPE string VALUE 'baseType'.
DATA: lo_document TYPE REF TO if_ixml_document,
lo_element_root TYPE REF TO if_ixml_element,
lo_element TYPE REF TO if_ixml_element,
lo_sub_element_vector TYPE REF TO if_ixml_element,
lo_sub_element_variant TYPE REF TO if_ixml_element,
lo_sub_element_lpstr TYPE REF TO if_ixml_element,
lo_sub_element_i4 TYPE REF TO if_ixml_element,
lo_iterator TYPE REF TO cl_object_collection_iterator,
lo_worksheet TYPE REF TO zcl_excel_worksheet.
DATA: lv_value TYPE string.
**********************************************************************
* STEP 1: Create [Content_Types].xml into the root of the ZIP
lo_document = create_xml_document( ).
**********************************************************************
* STEP 3: Create main node properties
lo_element_root = lo_document->create_simple_element( name = lc_xml_node_properties
parent = lo_document ).
lo_element_root->set_attribute_ns( name = 'xmlns'
value = lc_xml_node_props_ns ).
lo_element_root->set_attribute_ns( name = 'xmlns:vt'
value = lc_xml_node_props_vt_ns ).
**********************************************************************
* STEP 4: Create subnodes
" Application
lo_element = lo_document->create_simple_element( name = lc_xml_node_application
parent = lo_document ).
lv_value = excel->zif_excel_book_properties~application.
lo_element->set_value( value = lv_value ).
lo_element_root->append_child( new_child = lo_element ).
" DocSecurity
lo_element = lo_document->create_simple_element( name = lc_xml_node_docsecurity
parent = lo_document ).
lv_value = excel->zif_excel_book_properties~docsecurity.
lo_element->set_value( value = lv_value ).
lo_element_root->append_child( new_child = lo_element ).
" ScaleCrop
lo_element = lo_document->create_simple_element( name = lc_xml_node_scalecrop
parent = lo_document ).
lv_value = me->flag2bool( excel->zif_excel_book_properties~scalecrop ).
lo_element->set_value( value = lv_value ).
lo_element_root->append_child( new_child = lo_element ).
" HeadingPairs
lo_element = lo_document->create_simple_element( name = lc_xml_node_headingpairs
parent = lo_document ).
" * vector node
lo_sub_element_vector = lo_document->create_simple_element_ns( name = lc_xml_node_vector
prefix = lc_vt_ns
parent = lo_document ).
lo_sub_element_vector->set_attribute_ns( name = lc_xml_attr_size
value = '2' ).
lo_sub_element_vector->set_attribute_ns( name = lc_xml_attr_basetype
value = lc_xml_node_variant ).
" ** variant node
lo_sub_element_variant = lo_document->create_simple_element_ns( name = lc_xml_node_variant
prefix = lc_vt_ns
parent = lo_document ).
" *** lpstr node
lo_sub_element_lpstr = lo_document->create_simple_element_ns( name = lc_xml_node_lpstr
prefix = lc_vt_ns
parent = lo_document ).
lv_value = excel->get_worksheets_name( ).
lo_sub_element_lpstr->set_value( value = lv_value ).
lo_sub_element_variant->append_child( new_child = lo_sub_element_lpstr ). " lpstr node
lo_sub_element_vector->append_child( new_child = lo_sub_element_variant ). " variant node
" ** variant node
lo_sub_element_variant = lo_document->create_simple_element_ns( name = lc_xml_node_variant
prefix = lc_vt_ns
parent = lo_document ).
" *** i4 node
lo_sub_element_i4 = lo_document->create_simple_element_ns( name = lc_xml_node_i4
prefix = lc_vt_ns
parent = lo_document ).
lv_value = excel->get_worksheets_size( ).
SHIFT lv_value RIGHT DELETING TRAILING space.
SHIFT lv_value LEFT DELETING LEADING space.
lo_sub_element_i4->set_value( value = lv_value ).
lo_sub_element_variant->append_child( new_child = lo_sub_element_i4 ). " lpstr node
lo_sub_element_vector->append_child( new_child = lo_sub_element_variant ). " variant node
lo_element->append_child( new_child = lo_sub_element_vector ). " vector node
lo_element_root->append_child( new_child = lo_element ). " HeadingPairs
" TitlesOfParts
lo_element = lo_document->create_simple_element( name = lc_xml_node_titlesofparts
parent = lo_document ).
" * vector node
lo_sub_element_vector = lo_document->create_simple_element_ns( name = lc_xml_node_vector
prefix = lc_vt_ns
parent = lo_document ).
lv_value = excel->get_worksheets_size( ).
SHIFT lv_value RIGHT DELETING TRAILING space.
SHIFT lv_value LEFT DELETING LEADING space.
lo_sub_element_vector->set_attribute_ns( name = lc_xml_attr_size
value = lv_value ).
lo_sub_element_vector->set_attribute_ns( name = lc_xml_attr_basetype
value = lc_xml_node_lpstr ).
lo_iterator = excel->get_worksheets_iterator( ).
WHILE lo_iterator->has_next( ) EQ abap_true.
" ** lpstr node
lo_sub_element_lpstr = lo_document->create_simple_element_ns( name = lc_xml_node_lpstr
prefix = lc_vt_ns
parent = lo_document ).
lo_worksheet ?= lo_iterator->get_next( ).
lv_value = lo_worksheet->get_title( ).
lo_sub_element_lpstr->set_value( value = lv_value ).
lo_sub_element_vector->append_child( new_child = lo_sub_element_lpstr ). " lpstr node
ENDWHILE.
lo_element->append_child( new_child = lo_sub_element_vector ). " vector node
lo_element_root->append_child( new_child = lo_element ). " TitlesOfParts
" Company
IF excel->zif_excel_book_properties~company IS NOT INITIAL.
lo_element = lo_document->create_simple_element( name = lc_xml_node_company
parent = lo_document ).
lv_value = excel->zif_excel_book_properties~company.
lo_element->set_value( value = lv_value ).
lo_element_root->append_child( new_child = lo_element ).
ENDIF.
" LinksUpToDate
lo_element = lo_document->create_simple_element( name = lc_xml_node_linksuptodate
parent = lo_document ).
lv_value = me->flag2bool( excel->zif_excel_book_properties~linksuptodate ).
lo_element->set_value( value = lv_value ).
lo_element_root->append_child( new_child = lo_element ).
" SharedDoc
lo_element = lo_document->create_simple_element( name = lc_xml_node_shareddoc
parent = lo_document ).
lv_value = me->flag2bool( excel->zif_excel_book_properties~shareddoc ).
lo_element->set_value( value = lv_value ).
lo_element_root->append_child( new_child = lo_element ).
" HyperlinksChanged
lo_element = lo_document->create_simple_element( name = lc_xml_node_hyperlinkschanged
parent = lo_document ).
lv_value = me->flag2bool( excel->zif_excel_book_properties~hyperlinkschanged ).
lo_element->set_value( value = lv_value ).
lo_element_root->append_child( new_child = lo_element ).
" AppVersion
lo_element = lo_document->create_simple_element( name = lc_xml_node_appversion
parent = lo_document ).
lv_value = excel->zif_excel_book_properties~appversion.
lo_element->set_value( value = lv_value ).
lo_element_root->append_child( new_child = lo_element ).
**********************************************************************
* STEP 5: Create xstring stream
ep_content = render_xml_document( lo_document ).
ENDMETHOD.
METHOD create_docprops_core.
** Constant node name
DATA: lc_xml_node_coreproperties TYPE string VALUE 'coreProperties',
lc_xml_node_creator TYPE string VALUE 'creator',
lc_xml_node_description TYPE string VALUE 'description',
lc_xml_node_lastmodifiedby TYPE string VALUE 'lastModifiedBy',
lc_xml_node_created TYPE string VALUE 'created',
lc_xml_node_modified TYPE string VALUE 'modified',
" Node attributes
lc_xml_attr_type TYPE string VALUE 'type',
lc_xml_attr_target TYPE string VALUE 'dcterms:W3CDTF',
" Node namespace
lc_cp_ns TYPE string VALUE 'cp',
lc_dc_ns TYPE string VALUE 'dc',
lc_dcterms_ns TYPE string VALUE 'dcterms',
* lc_dcmitype_ns TYPE string VALUE 'dcmitype',
lc_xsi_ns TYPE string VALUE 'xsi',
lc_xml_node_cp_ns TYPE string VALUE 'http://schemas.openxmlformats.org/package/2006/metadata/core-properties',
lc_xml_node_dc_ns TYPE string VALUE 'http://purl.org/dc/elements/1.1/',
lc_xml_node_dcterms_ns TYPE string VALUE 'http://purl.org/dc/terms/',
lc_xml_node_dcmitype_ns TYPE string VALUE 'http://purl.org/dc/dcmitype/',
lc_xml_node_xsi_ns TYPE string VALUE 'http://www.w3.org/2001/XMLSchema-instance'.
DATA: lo_document TYPE REF TO if_ixml_document,
lo_element_root TYPE REF TO if_ixml_element,
lo_element TYPE REF TO if_ixml_element.
DATA: lv_value TYPE string,
lv_date TYPE sydatum,
lv_time TYPE syuzeit.
**********************************************************************
* STEP 1: Create [Content_Types].xml into the root of the ZIP
lo_document = create_xml_document( ).
**********************************************************************
* STEP 3: Create main node coreProperties
lo_element_root = lo_document->create_simple_element_ns( name = lc_xml_node_coreproperties
prefix = lc_cp_ns
parent = lo_document ).
lo_element_root->set_attribute_ns( name = 'xmlns:cp'
value = lc_xml_node_cp_ns ).
lo_element_root->set_attribute_ns( name = 'xmlns:dc'
value = lc_xml_node_dc_ns ).
lo_element_root->set_attribute_ns( name = 'xmlns:dcterms'
value = lc_xml_node_dcterms_ns ).
lo_element_root->set_attribute_ns( name = 'xmlns:dcmitype'
value = lc_xml_node_dcmitype_ns ).
lo_element_root->set_attribute_ns( name = 'xmlns:xsi'
value = lc_xml_node_xsi_ns ).
**********************************************************************
* STEP 4: Create subnodes
" Creator node
lo_element = lo_document->create_simple_element_ns( name = lc_xml_node_creator
prefix = lc_dc_ns
parent = lo_document ).
lv_value = excel->zif_excel_book_properties~creator.
lo_element->set_value( value = lv_value ).
lo_element_root->append_child( new_child = lo_element ).
" Description node
lo_element = lo_document->create_simple_element_ns( name = lc_xml_node_description
prefix = lc_dc_ns
parent = lo_document ).
lv_value = excel->zif_excel_book_properties~description.
lo_element->set_value( value = lv_value ).
lo_element_root->append_child( new_child = lo_element ).
" lastModifiedBy node
lo_element = lo_document->create_simple_element_ns( name = lc_xml_node_lastmodifiedby
prefix = lc_cp_ns
parent = lo_document ).
lv_value = excel->zif_excel_book_properties~lastmodifiedby.
lo_element->set_value( value = lv_value ).
lo_element_root->append_child( new_child = lo_element ).
" Created node
lo_element = lo_document->create_simple_element_ns( name = lc_xml_node_created
prefix = lc_dcterms_ns
parent = lo_document ).
lo_element->set_attribute_ns( name = lc_xml_attr_type
prefix = lc_xsi_ns
value = lc_xml_attr_target ).
CONVERT TIME STAMP excel->zif_excel_book_properties~created TIME ZONE sy-zonlo INTO DATE lv_date TIME lv_time.
CONCATENATE lv_date lv_time INTO lv_value RESPECTING BLANKS.
REPLACE ALL OCCURRENCES OF REGEX '([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})' IN lv_value WITH '$1-$2-$3T$4:$5:$6Z'.
* lv_value = excel->zif_excel_book_properties~created.
* lv_value = '2010-07-04T14:58:53Z'.
lo_element->set_value( value = lv_value ).
lo_element_root->append_child( new_child = lo_element ).
" Modified node
lo_element = lo_document->create_simple_element_ns( name = lc_xml_node_modified
prefix = lc_dcterms_ns
parent = lo_document ).
lo_element->set_attribute_ns( name = lc_xml_attr_type
prefix = lc_xsi_ns
value = lc_xml_attr_target ).
CONVERT TIME STAMP excel->zif_excel_book_properties~modified TIME ZONE sy-zonlo INTO DATE lv_date TIME lv_time.
CONCATENATE lv_date lv_time INTO lv_value RESPECTING BLANKS.
REPLACE ALL OCCURRENCES OF REGEX '([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})' IN lv_value WITH '$1-$2-$3T$4:$5:$6Z'.
* lv_value = excel->zif_excel_book_properties~modified.
* lv_value = '2010-07-04T14:58:53Z'.
lo_element->set_value( value = lv_value ).
lo_element_root->append_child( new_child = lo_element ).
**********************************************************************
* STEP 5: Create xstring stream
ep_content = render_xml_document( lo_document ).
ENDMETHOD.
METHOD create_dxf_style.
CONSTANTS: lc_xml_node_dxf TYPE string VALUE 'dxf',
lc_xml_node_font TYPE string VALUE 'font',
lc_xml_node_b TYPE string VALUE 'b', "bold
lc_xml_node_i TYPE string VALUE 'i', "italic
lc_xml_node_u TYPE string VALUE 'u', "underline
lc_xml_node_strike TYPE string VALUE 'strike', "strikethrough
lc_xml_attr_val TYPE string VALUE 'val',
lc_xml_node_fill TYPE string VALUE 'fill',
lc_xml_node_patternfill TYPE string VALUE 'patternFill',
lc_xml_attr_patterntype TYPE string VALUE 'patternType',
lc_xml_node_fgcolor TYPE string VALUE 'fgColor',
lc_xml_node_bgcolor TYPE string VALUE 'bgColor'.
DATA: ls_styles_mapping TYPE zexcel_s_styles_mapping,
ls_cellxfs TYPE zexcel_s_cellxfs,
ls_style_cond_mapping TYPE zexcel_s_styles_cond_mapping,
lo_sub_element TYPE REF TO if_ixml_element,
lo_sub_element_2 TYPE REF TO if_ixml_element,
lv_index TYPE i,
ls_font TYPE zexcel_s_style_font,
lo_element_font TYPE REF TO if_ixml_element,
lv_value TYPE string,
ls_fill TYPE zexcel_s_style_fill,
lo_element_fill TYPE REF TO if_ixml_element.
CHECK iv_cell_style IS NOT INITIAL.
READ TABLE me->styles_mapping INTO ls_styles_mapping WITH KEY guid = iv_cell_style.
ADD 1 TO ls_styles_mapping-style. " the numbering starts from 0
READ TABLE it_cellxfs INTO ls_cellxfs INDEX ls_styles_mapping-style.
ADD 1 TO ls_cellxfs-fillid. " the numbering starts from 0
READ TABLE me->styles_cond_mapping INTO ls_style_cond_mapping WITH KEY style = ls_styles_mapping-style.
IF sy-subrc EQ 0.
ls_style_cond_mapping-guid = iv_cell_style.
APPEND ls_style_cond_mapping TO me->styles_cond_mapping.
ELSE.
ls_style_cond_mapping-guid = iv_cell_style.
ls_style_cond_mapping-style = ls_styles_mapping-style.
ls_style_cond_mapping-dxf = cv_dfx_count.
APPEND ls_style_cond_mapping TO me->styles_cond_mapping.
ADD 1 TO cv_dfx_count.
" dxf node
lo_sub_element = io_ixml_document->create_simple_element( name = lc_xml_node_dxf
parent = io_ixml_document ).
"Conditional formatting font style correction by Alessandro Iannacci START
lv_index = ls_cellxfs-fontid + 1.
READ TABLE it_fonts INTO ls_font INDEX lv_index.
IF ls_font IS NOT INITIAL.
lo_element_font = io_ixml_document->create_simple_element( name = lc_xml_node_font
parent = io_ixml_document ).
IF ls_font-bold EQ abap_true.
lo_sub_element_2 = io_ixml_document->create_simple_element( name = lc_xml_node_b
parent = io_ixml_document ).
lo_element_font->append_child( new_child = lo_sub_element_2 ).
ENDIF.
IF ls_font-italic EQ abap_true.
lo_sub_element_2 = io_ixml_document->create_simple_element( name = lc_xml_node_i
parent = io_ixml_document ).
lo_element_font->append_child( new_child = lo_sub_element_2 ).
ENDIF.
IF ls_font-underline EQ abap_true.
lo_sub_element_2 = io_ixml_document->create_simple_element( name = lc_xml_node_u
parent = io_ixml_document ).
lv_value = ls_font-underline_mode.
lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_val
value = lv_value ).
lo_element_font->append_child( new_child = lo_sub_element_2 ).
ENDIF.
IF ls_font-strikethrough EQ abap_true.
lo_sub_element_2 = io_ixml_document->create_simple_element( name = lc_xml_node_strike
parent = io_ixml_document ).
lo_element_font->append_child( new_child = lo_sub_element_2 ).
ENDIF.
"color
create_xl_styles_color_node(
io_document = io_ixml_document
io_parent = lo_element_font
is_color = ls_font-color ).
lo_sub_element->append_child( new_child = lo_element_font ).
ENDIF.
"---Conditional formatting font style correction by Alessandro Iannacci END
READ TABLE it_fills INTO ls_fill INDEX ls_cellxfs-fillid.
IF ls_fill IS NOT INITIAL.
" fill properties
lo_element_fill = io_ixml_document->create_simple_element( name = lc_xml_node_fill
parent = io_ixml_document ).
"pattern
lo_sub_element_2 = io_ixml_document->create_simple_element( name = lc_xml_node_patternfill
parent = io_ixml_document ).
lv_value = ls_fill-filltype.
lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_patterntype
value = lv_value ).
" fgcolor
create_xl_styles_color_node(
io_document = io_ixml_document
io_parent = lo_sub_element_2
is_color = ls_fill-fgcolor
iv_color_elem_name = lc_xml_node_fgcolor ).
IF ls_fill-fgcolor-rgb IS INITIAL AND
ls_fill-fgcolor-indexed EQ zcl_excel_style_color=>c_indexed_not_set AND
ls_fill-fgcolor-theme EQ zcl_excel_style_color=>c_theme_not_set AND
ls_fill-fgcolor-tint IS INITIAL AND ls_fill-bgcolor-indexed EQ zcl_excel_style_color=>c_indexed_sys_foreground.
" bgcolor
create_xl_styles_color_node(
io_document = io_ixml_document
io_parent = lo_sub_element_2
is_color = ls_fill-bgcolor
iv_color_elem_name = lc_xml_node_bgcolor ).
ENDIF.
lo_element_fill->append_child( new_child = lo_sub_element_2 ). "pattern
lo_sub_element->append_child( new_child = lo_element_fill ).
ENDIF.
ENDIF.
io_dxf_element->append_child( new_child = lo_sub_element ).
ENDMETHOD.
METHOD create_relationships.
** Constant node name
DATA: lc_xml_node_relationships TYPE string VALUE 'Relationships',
lc_xml_node_relationship TYPE string VALUE 'Relationship',
" Node attributes
lc_xml_attr_id TYPE string VALUE 'Id',
lc_xml_attr_type TYPE string VALUE 'Type',
lc_xml_attr_target TYPE string VALUE 'Target',
" Node namespace
lc_xml_node_rels_ns TYPE string VALUE 'http://schemas.openxmlformats.org/package/2006/relationships',
" Node id
lc_xml_node_rid1_id TYPE string VALUE 'rId1',
lc_xml_node_rid2_id TYPE string VALUE 'rId2',
lc_xml_node_rid3_id TYPE string VALUE 'rId3',
" Node type
lc_xml_node_rid1_tp TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument',
lc_xml_node_rid2_tp TYPE string VALUE 'http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties',
lc_xml_node_rid3_tp TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties',
" Node target
lc_xml_node_rid1_tg TYPE string VALUE 'xl/workbook.xml',
lc_xml_node_rid2_tg TYPE string VALUE 'docProps/core.xml',
lc_xml_node_rid3_tg TYPE string VALUE 'docProps/app.xml'.
DATA: lo_document TYPE REF TO if_ixml_document,
lo_element_root TYPE REF TO if_ixml_element,
lo_element TYPE REF TO if_ixml_element.
**********************************************************************
* STEP 1: Create [Content_Types].xml into the root of the ZIP
lo_document = create_xml_document( ).
**********************************************************************
* STEP 3: Create main node relationships
lo_element_root = lo_document->create_simple_element( name = lc_xml_node_relationships
parent = lo_document ).
lo_element_root->set_attribute_ns( name = 'xmlns'
value = lc_xml_node_rels_ns ).
**********************************************************************
* STEP 4: Create subnodes
" Theme node
lo_element = lo_document->create_simple_element( name = lc_xml_node_relationship
parent = lo_document ).
lo_element->set_attribute_ns( name = lc_xml_attr_id
value = lc_xml_node_rid3_id ).
lo_element->set_attribute_ns( name = lc_xml_attr_type
value = lc_xml_node_rid3_tp ).
lo_element->set_attribute_ns( name = lc_xml_attr_target
value = lc_xml_node_rid3_tg ).
lo_element_root->append_child( new_child = lo_element ).
" Styles node
lo_element = lo_document->create_simple_element( name = lc_xml_node_relationship
parent = lo_document ).
lo_element->set_attribute_ns( name = lc_xml_attr_id
value = lc_xml_node_rid2_id ).
lo_element->set_attribute_ns( name = lc_xml_attr_type
value = lc_xml_node_rid2_tp ).
lo_element->set_attribute_ns( name = lc_xml_attr_target
value = lc_xml_node_rid2_tg ).
lo_element_root->append_child( new_child = lo_element ).
" rels node
lo_element = lo_document->create_simple_element( name = lc_xml_node_relationship
parent = lo_document ).
lo_element->set_attribute_ns( name = lc_xml_attr_id
value = lc_xml_node_rid1_id ).
lo_element->set_attribute_ns( name = lc_xml_attr_type
value = lc_xml_node_rid1_tp ).
lo_element->set_attribute_ns( name = lc_xml_attr_target
value = lc_xml_node_rid1_tg ).
lo_element_root->append_child( new_child = lo_element ).
**********************************************************************
* STEP 5: Create xstring stream
ep_content = render_xml_document( lo_document ).
ENDMETHOD.
METHOD create_xl_charts.
** Constant node name
CONSTANTS: lc_xml_node_chartspace TYPE string VALUE 'c:chartSpace',
lc_xml_node_ns_c TYPE string VALUE 'http://schemas.openxmlformats.org/drawingml/2006/chart',
lc_xml_node_ns_a TYPE string VALUE 'http://schemas.openxmlformats.org/drawingml/2006/main',
lc_xml_node_ns_r TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships',
lc_xml_node_date1904 TYPE string VALUE 'c:date1904',
lc_xml_node_lang TYPE string VALUE 'c:lang',
lc_xml_node_roundedcorners TYPE string VALUE 'c:roundedCorners',
lc_xml_node_altcont TYPE string VALUE 'mc:AlternateContent',
lc_xml_node_altcont_ns_mc TYPE string VALUE 'http://schemas.openxmlformats.org/markup-compatibility/2006',
lc_xml_node_choice TYPE string VALUE 'mc:Choice',
lc_xml_node_choice_ns_requires TYPE string VALUE 'c14',
lc_xml_node_choice_ns_c14 TYPE string VALUE 'http://schemas.microsoft.com/office/drawing/2007/8/2/chart',
lc_xml_node_style TYPE string VALUE 'c14:style',
lc_xml_node_fallback TYPE string VALUE 'mc:Fallback',
lc_xml_node_style2 TYPE string VALUE 'c:style',
"---------------------------CHART
lc_xml_node_chart TYPE string VALUE 'c:chart',
lc_xml_node_autotitledeleted TYPE string VALUE 'c:autoTitleDeleted',
"plotArea
lc_xml_node_plotarea TYPE string VALUE 'c:plotArea',
lc_xml_node_layout TYPE string VALUE 'c:layout',
lc_xml_node_varycolors TYPE string VALUE 'c:varyColors',
lc_xml_node_ser TYPE string VALUE 'c:ser',
lc_xml_node_idx TYPE string VALUE 'c:idx',
lc_xml_node_order TYPE string VALUE 'c:order',
lc_xml_node_tx TYPE string VALUE 'c:tx',
lc_xml_node_v TYPE string VALUE 'c:v',
lc_xml_node_val TYPE string VALUE 'c:val',
lc_xml_node_cat TYPE string VALUE 'c:cat',
lc_xml_node_numref TYPE string VALUE 'c:numRef',
lc_xml_node_strref TYPE string VALUE 'c:strRef',
lc_xml_node_f TYPE string VALUE 'c:f', "this is the range
lc_xml_node_overlap TYPE string VALUE 'c:overlap',
"note: numcache avoided
lc_xml_node_dlbls TYPE string VALUE 'c:dLbls',
lc_xml_node_showlegendkey TYPE string VALUE 'c:showLegendKey',
lc_xml_node_showval TYPE string VALUE 'c:showVal',
lc_xml_node_showcatname TYPE string VALUE 'c:showCatName',
lc_xml_node_showsername TYPE string VALUE 'c:showSerName',
lc_xml_node_showpercent TYPE string VALUE 'c:showPercent',
lc_xml_node_showbubblesize TYPE string VALUE 'c:showBubbleSize',
"plotArea->pie
lc_xml_node_piechart TYPE string VALUE 'c:pieChart',
lc_xml_node_showleaderlines TYPE string VALUE 'c:showLeaderLines',
lc_xml_node_firstsliceang TYPE string VALUE 'c:firstSliceAng',
"plotArea->line
lc_xml_node_linechart TYPE string VALUE 'c:lineChart',
lc_xml_node_symbol TYPE string VALUE 'c:symbol',
lc_xml_node_marker TYPE string VALUE 'c:marker',
lc_xml_node_smooth TYPE string VALUE 'c:smooth',
"plotArea->bar
lc_xml_node_invertifnegative TYPE string VALUE 'c:invertIfNegative',
lc_xml_node_barchart TYPE string VALUE 'c:barChart',
lc_xml_node_bardir TYPE string VALUE 'c:barDir',
lc_xml_node_gapwidth TYPE string VALUE 'c:gapWidth',
"plotArea->line + plotArea->bar
lc_xml_node_grouping TYPE string VALUE 'c:grouping',
lc_xml_node_axid TYPE string VALUE 'c:axId',
lc_xml_node_catax TYPE string VALUE 'c:catAx',
lc_xml_node_valax TYPE string VALUE 'c:valAx',
lc_xml_node_scaling TYPE string VALUE 'c:scaling',
lc_xml_node_orientation TYPE string VALUE 'c:orientation',
lc_xml_node_delete TYPE string VALUE 'c:delete',
lc_xml_node_axpos TYPE string VALUE 'c:axPos',
lc_xml_node_numfmt TYPE string VALUE 'c:numFmt',
lc_xml_node_majorgridlines TYPE string VALUE 'c:majorGridlines',
lc_xml_node_majortickmark TYPE string VALUE 'c:majorTickMark',
lc_xml_node_minortickmark TYPE string VALUE 'c:minorTickMark',
lc_xml_node_ticklblpos TYPE string VALUE 'c:tickLblPos',
lc_xml_node_crossax TYPE string VALUE 'c:crossAx',
lc_xml_node_crosses TYPE string VALUE 'c:crosses',
lc_xml_node_auto TYPE string VALUE 'c:auto',
lc_xml_node_lblalgn TYPE string VALUE 'c:lblAlgn',
lc_xml_node_lbloffset TYPE string VALUE 'c:lblOffset',
lc_xml_node_nomultilvllbl TYPE string VALUE 'c:noMultiLvlLbl',
lc_xml_node_crossbetween TYPE string VALUE 'c:crossBetween',
"legend
lc_xml_node_legend TYPE string VALUE 'c:legend',
"legend->pie
lc_xml_node_legendpos TYPE string VALUE 'c:legendPos',
* lc_xml_node_layout TYPE string VALUE 'c:layout', "already exist
lc_xml_node_overlay TYPE string VALUE 'c:overlay',
lc_xml_node_txpr TYPE string VALUE 'c:txPr',
lc_xml_node_bodypr TYPE string VALUE 'a:bodyPr',
lc_xml_node_lststyle TYPE string VALUE 'a:lstStyle',
lc_xml_node_p TYPE string VALUE 'a:p',
lc_xml_node_ppr TYPE string VALUE 'a:pPr',
lc_xml_node_defrpr TYPE string VALUE 'a:defRPr',
lc_xml_node_endpararpr TYPE string VALUE 'a:endParaRPr',
"legend->bar + legend->line
lc_xml_node_plotvisonly TYPE string VALUE 'c:plotVisOnly',
lc_xml_node_dispblanksas TYPE string VALUE 'c:dispBlanksAs',
lc_xml_node_showdlblsovermax TYPE string VALUE 'c:showDLblsOverMax',
"---------------------------END OF CHART
lc_xml_node_printsettings TYPE string VALUE 'c:printSettings',
lc_xml_node_headerfooter TYPE string VALUE 'c:headerFooter',
lc_xml_node_pagemargins TYPE string VALUE 'c:pageMargins',
lc_xml_node_pagesetup TYPE string VALUE 'c:pageSetup'.
DATA: lo_document TYPE REF TO if_ixml_document,
lo_element_root TYPE REF TO if_ixml_element.
DATA lo_element TYPE REF TO if_ixml_element.
DATA lo_element2 TYPE REF TO if_ixml_element.
DATA lo_element3 TYPE REF TO if_ixml_element.
DATA lo_el_rootchart TYPE REF TO if_ixml_element.
DATA lo_element4 TYPE REF TO if_ixml_element.
DATA lo_element5 TYPE REF TO if_ixml_element.
DATA lo_element6 TYPE REF TO if_ixml_element.
DATA lo_element7 TYPE REF TO if_ixml_element.
**********************************************************************
* STEP 1: Create [Content_Types].xml into the root of the ZIP
lo_document = create_xml_document( ).
***********************************************************************
* STEP 3: Create main node relationships
lo_element_root = lo_document->create_simple_element( name = lc_xml_node_chartspace
parent = lo_document ).
lo_element_root->set_attribute_ns( name = 'xmlns:c'
value = lc_xml_node_ns_c ).
lo_element_root->set_attribute_ns( name = 'xmlns:a'
value = lc_xml_node_ns_a ).
lo_element_root->set_attribute_ns( name = 'xmlns:r'
value = lc_xml_node_ns_r ).
**********************************************************************
* STEP 4: Create chart
DATA lo_chartb TYPE REF TO zcl_excel_graph_bars.
DATA lo_chartp TYPE REF TO zcl_excel_graph_pie.
DATA lo_chartl TYPE REF TO zcl_excel_graph_line.
DATA lo_chart TYPE REF TO zcl_excel_graph.
DATA ls_serie TYPE zcl_excel_graph=>s_series.
DATA ls_ax TYPE zcl_excel_graph_bars=>s_ax.
DATA lv_str TYPE string.
"Identify chart type
CASE io_drawing->graph_type.
WHEN zcl_excel_drawing=>c_graph_bars.
lo_chartb ?= io_drawing->graph.
WHEN zcl_excel_drawing=>c_graph_pie.
lo_chartp ?= io_drawing->graph.
WHEN zcl_excel_drawing=>c_graph_line.
lo_chartl ?= io_drawing->graph.
WHEN OTHERS.
ENDCASE.
lo_chart = io_drawing->graph.
lo_element = lo_document->create_simple_element( name = lc_xml_node_date1904
parent = lo_element_root ).
lo_element->set_attribute_ns( name = 'val'
value = lo_chart->ns_1904val ).
lo_element = lo_document->create_simple_element( name = lc_xml_node_lang
parent = lo_element_root ).
lo_element->set_attribute_ns( name = 'val'
value = lo_chart->ns_langval ).
lo_element = lo_document->create_simple_element( name = lc_xml_node_roundedcorners
parent = lo_element_root ).
lo_element->set_attribute_ns( name = 'val'
value = lo_chart->ns_roundedcornersval ).
lo_element = lo_document->create_simple_element( name = lc_xml_node_altcont
parent = lo_element_root ).
lo_element->set_attribute_ns( name = 'xmlns:mc'
value = lc_xml_node_altcont_ns_mc ).
"Choice
lo_element2 = lo_document->create_simple_element( name = lc_xml_node_choice
parent = lo_element ).
lo_element2->set_attribute_ns( name = 'Requires'
value = lc_xml_node_choice_ns_requires ).
lo_element2->set_attribute_ns( name = 'xmlns:c14'
value = lc_xml_node_choice_ns_c14 ).
"C14:style
lo_element3 = lo_document->create_simple_element( name = lc_xml_node_style
parent = lo_element2 ).
lo_element3->set_attribute_ns( name = 'val'
value = lo_chart->ns_c14styleval ).
"Fallback
lo_element2 = lo_document->create_simple_element( name = lc_xml_node_fallback
parent = lo_element ).
"C:style
lo_element3 = lo_document->create_simple_element( name = lc_xml_node_style2
parent = lo_element2 ).
lo_element3->set_attribute_ns( name = 'val'
value = lo_chart->ns_styleval ).
"---------------------------CHART
lo_element = lo_document->create_simple_element( name = lc_xml_node_chart
parent = lo_element_root ).
"Added
IF lo_chart->title IS NOT INITIAL.
lo_element2 = lo_document->create_simple_element( name = 'c:title'
parent = lo_element ).
lo_element3 = lo_document->create_simple_element( name = 'c:tx'
parent = lo_element2 ).
lo_element4 = lo_document->create_simple_element( name = 'c:rich'
parent = lo_element3 ).
lo_element5 = lo_document->create_simple_element( name = 'a:bodyPr'
parent = lo_element4 ).
lo_element5 = lo_document->create_simple_element( name = 'a:lstStyle'
parent = lo_element4 ).
lo_element5 = lo_document->create_simple_element( name = 'a:p'
parent = lo_element4 ).
lo_element6 = lo_document->create_simple_element( name = 'a:pPr'
parent = lo_element5 ).
lo_element7 = lo_document->create_simple_element( name = 'a:defRPr'
parent = lo_element6 ).
lo_element6 = lo_document->create_simple_element( name = 'a:r'
parent = lo_element5 ).
lo_element7 = lo_document->create_simple_element( name = 'a:rPr'
parent = lo_element6 ).
lo_element7->set_attribute_ns( name = 'lang'
value = 'en-US' ).
lo_element7 = lo_document->create_simple_element( name = 'a:t'
parent = lo_element6 ).
lo_element7->set_value( value = lo_chart->title ).
ENDIF.
"End
lo_element2 = lo_document->create_simple_element( name = lc_xml_node_autotitledeleted
parent = lo_element ).
lo_element2->set_attribute_ns( name = 'val'
value = lo_chart->ns_autotitledeletedval ).
"plotArea
lo_element2 = lo_document->create_simple_element( name = lc_xml_node_plotarea
parent = lo_element ).
lo_element3 = lo_document->create_simple_element( name = lc_xml_node_layout
parent = lo_element2 ).
CASE io_drawing->graph_type.
WHEN zcl_excel_drawing=>c_graph_bars.
"----bar
lo_element3 = lo_document->create_simple_element( name = lc_xml_node_barchart
parent = lo_element2 ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_bardir
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = lo_chartb->ns_bardirval ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_grouping
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = lo_chartb->ns_groupingval ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_varycolors
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = lo_chartb->ns_varycolorsval ).
"series
LOOP AT lo_chartb->series INTO ls_serie.
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_ser
parent = lo_element3 ).
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_idx
parent = lo_element4 ).
IF ls_serie-idx IS NOT INITIAL.
lv_str = ls_serie-idx.
ELSE.
lv_str = sy-tabix - 1.
ENDIF.
CONDENSE lv_str.
lo_element5->set_attribute_ns( name = 'val'
value = lv_str ).
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_order
parent = lo_element4 ).
lv_str = ls_serie-order.
CONDENSE lv_str.
lo_element5->set_attribute_ns( name = 'val'
value = lv_str ).
IF ls_serie-sername IS NOT INITIAL.
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_tx
parent = lo_element4 ).
lo_element6 = lo_document->create_simple_element( name = lc_xml_node_v
parent = lo_element5 ).
lo_element6->set_value( value = ls_serie-sername ).
ENDIF.
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_invertifnegative
parent = lo_element4 ).
lo_element5->set_attribute_ns( name = 'val'
value = ls_serie-invertifnegative ).
IF ls_serie-lbl IS NOT INITIAL.
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_cat
parent = lo_element4 ).
lo_element6 = lo_document->create_simple_element( name = lc_xml_node_strref
parent = lo_element5 ).
lo_element7 = lo_document->create_simple_element( name = lc_xml_node_f
parent = lo_element6 ).
lo_element7->set_value( value = ls_serie-lbl ).
ENDIF.
IF ls_serie-ref IS NOT INITIAL.
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_val
parent = lo_element4 ).
lo_element6 = lo_document->create_simple_element( name = lc_xml_node_numref
parent = lo_element5 ).
lo_element7 = lo_document->create_simple_element( name = lc_xml_node_f
parent = lo_element6 ).
lo_element7->set_value( value = ls_serie-ref ).
ENDIF.
ENDLOOP.
"endseries
IF lo_chartb->ns_groupingval = zcl_excel_graph_bars=>c_groupingval_stacked.
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_overlap
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = '100' ).
ENDIF.
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_dlbls
parent = lo_element3 ).
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showlegendkey
parent = lo_element4 ).
lo_element5->set_attribute_ns( name = 'val'
value = lo_chartb->ns_showlegendkeyval ).
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showval
parent = lo_element4 ).
lo_element5->set_attribute_ns( name = 'val'
value = lo_chartb->ns_showvalval ).
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showcatname
parent = lo_element4 ).
lo_element5->set_attribute_ns( name = 'val'
value = lo_chartb->ns_showcatnameval ).
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showsername
parent = lo_element4 ).
lo_element5->set_attribute_ns( name = 'val'
value = lo_chartb->ns_showsernameval ).
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showpercent
parent = lo_element4 ).
lo_element5->set_attribute_ns( name = 'val'
value = lo_chartb->ns_showpercentval ).
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showbubblesize
parent = lo_element4 ).
lo_element5->set_attribute_ns( name = 'val'
value = lo_chartb->ns_showbubblesizeval ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_gapwidth
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = lo_chartb->ns_gapwidthval ).
"axes
lo_el_rootchart = lo_element3.
LOOP AT lo_chartb->axes INTO ls_ax.
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_axid
parent = lo_el_rootchart ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-axid ).
CASE ls_ax-type.
WHEN zcl_excel_graph_bars=>c_catax.
lo_element3 = lo_document->create_simple_element( name = lc_xml_node_catax
parent = lo_element2 ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_axid
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-axid ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_scaling
parent = lo_element3 ).
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_orientation
parent = lo_element4 ).
lo_element5->set_attribute_ns( name = 'val'
value = ls_ax-orientation ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_delete
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-delete ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_axpos
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-axpos ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_numfmt
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'formatCode'
value = ls_ax-formatcode ).
lo_element4->set_attribute_ns( name = 'sourceLinked'
value = ls_ax-sourcelinked ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_majortickmark
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-majortickmark ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_minortickmark
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-minortickmark ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_ticklblpos
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-ticklblpos ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_crossax
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-crossax ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_crosses
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-crosses ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_auto
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-auto ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_lblalgn
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-lblalgn ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_lbloffset
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-lbloffset ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_nomultilvllbl
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-nomultilvllbl ).
WHEN zcl_excel_graph_bars=>c_valax.
lo_element3 = lo_document->create_simple_element( name = lc_xml_node_valax
parent = lo_element2 ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_axid
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-axid ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_scaling
parent = lo_element3 ).
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_orientation
parent = lo_element4 ).
lo_element5->set_attribute_ns( name = 'val'
value = ls_ax-orientation ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_delete
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-delete ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_axpos
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-axpos ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_majorgridlines
parent = lo_element3 ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_numfmt
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'formatCode'
value = ls_ax-formatcode ).
lo_element4->set_attribute_ns( name = 'sourceLinked'
value = ls_ax-sourcelinked ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_majortickmark
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-majortickmark ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_minortickmark
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-minortickmark ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_ticklblpos
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-ticklblpos ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_crossax
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-crossax ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_crosses
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-crosses ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_crossbetween
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-crossbetween ).
WHEN OTHERS.
ENDCASE.
ENDLOOP.
"endaxes
WHEN zcl_excel_drawing=>c_graph_pie.
"----pie
lo_element3 = lo_document->create_simple_element( name = lc_xml_node_piechart
parent = lo_element2 ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_varycolors
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = lo_chartp->ns_varycolorsval ).
"series
LOOP AT lo_chartp->series INTO ls_serie.
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_ser
parent = lo_element3 ).
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_idx
parent = lo_element4 ).
IF ls_serie-idx IS NOT INITIAL.
lv_str = ls_serie-idx.
ELSE.
lv_str = sy-tabix - 1.
ENDIF.
CONDENSE lv_str.
lo_element5->set_attribute_ns( name = 'val'
value = lv_str ).
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_order
parent = lo_element4 ).
lv_str = ls_serie-order.
CONDENSE lv_str.
lo_element5->set_attribute_ns( name = 'val'
value = lv_str ).
IF ls_serie-sername IS NOT INITIAL.
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_tx
parent = lo_element4 ).
lo_element6 = lo_document->create_simple_element( name = lc_xml_node_v
parent = lo_element5 ).
lo_element6->set_value( value = ls_serie-sername ).
ENDIF.
IF ls_serie-lbl IS NOT INITIAL.
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_cat
parent = lo_element4 ).
lo_element6 = lo_document->create_simple_element( name = lc_xml_node_strref
parent = lo_element5 ).
lo_element7 = lo_document->create_simple_element( name = lc_xml_node_f
parent = lo_element6 ).
lo_element7->set_value( value = ls_serie-lbl ).
ENDIF.
IF ls_serie-ref IS NOT INITIAL.
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_val
parent = lo_element4 ).
lo_element6 = lo_document->create_simple_element( name = lc_xml_node_numref
parent = lo_element5 ).
lo_element7 = lo_document->create_simple_element( name = lc_xml_node_f
parent = lo_element6 ).
lo_element7->set_value( value = ls_serie-ref ).
ENDIF.
ENDLOOP.
"endseries
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_dlbls
parent = lo_element3 ).
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showlegendkey
parent = lo_element4 ).
lo_element5->set_attribute_ns( name = 'val'
value = lo_chartp->ns_showlegendkeyval ).
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showval
parent = lo_element4 ).
lo_element5->set_attribute_ns( name = 'val'
value = lo_chartp->ns_showvalval ).
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showcatname
parent = lo_element4 ).
lo_element5->set_attribute_ns( name = 'val'
value = lo_chartp->ns_showcatnameval ).
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showsername
parent = lo_element4 ).
lo_element5->set_attribute_ns( name = 'val'
value = lo_chartp->ns_showsernameval ).
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showpercent
parent = lo_element4 ).
lo_element5->set_attribute_ns( name = 'val'
value = lo_chartp->ns_showpercentval ).
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showbubblesize
parent = lo_element4 ).
lo_element5->set_attribute_ns( name = 'val'
value = lo_chartp->ns_showbubblesizeval ).
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showleaderlines
parent = lo_element4 ).
lo_element5->set_attribute_ns( name = 'val'
value = lo_chartp->ns_showleaderlinesval ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_firstsliceang
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = lo_chartp->ns_firstsliceangval ).
WHEN zcl_excel_drawing=>c_graph_line.
"----line
lo_element3 = lo_document->create_simple_element( name = lc_xml_node_linechart
parent = lo_element2 ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_grouping
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = lo_chartl->ns_groupingval ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_varycolors
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = lo_chartl->ns_varycolorsval ).
"series
LOOP AT lo_chartl->series INTO ls_serie.
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_ser
parent = lo_element3 ).
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_idx
parent = lo_element4 ).
IF ls_serie-idx IS NOT INITIAL.
lv_str = ls_serie-idx.
ELSE.
lv_str = sy-tabix - 1.
ENDIF.
CONDENSE lv_str.
lo_element5->set_attribute_ns( name = 'val'
value = lv_str ).
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_order
parent = lo_element4 ).
lv_str = ls_serie-order.
CONDENSE lv_str.
lo_element5->set_attribute_ns( name = 'val'
value = lv_str ).
IF ls_serie-sername IS NOT INITIAL.
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_tx
parent = lo_element4 ).
lo_element6 = lo_document->create_simple_element( name = lc_xml_node_v
parent = lo_element5 ).
lo_element6->set_value( value = ls_serie-sername ).
ENDIF.
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_marker
parent = lo_element4 ).
lo_element6 = lo_document->create_simple_element( name = lc_xml_node_symbol
parent = lo_element5 ).
lo_element6->set_attribute_ns( name = 'val'
value = ls_serie-symbol ).
IF ls_serie-lbl IS NOT INITIAL.
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_cat
parent = lo_element4 ).
lo_element6 = lo_document->create_simple_element( name = lc_xml_node_strref
parent = lo_element5 ).
lo_element7 = lo_document->create_simple_element( name = lc_xml_node_f
parent = lo_element6 ).
lo_element7->set_value( value = ls_serie-lbl ).
ENDIF.
IF ls_serie-ref IS NOT INITIAL.
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_val
parent = lo_element4 ).
lo_element6 = lo_document->create_simple_element( name = lc_xml_node_numref
parent = lo_element5 ).
lo_element7 = lo_document->create_simple_element( name = lc_xml_node_f
parent = lo_element6 ).
lo_element7->set_value( value = ls_serie-ref ).
ENDIF.
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_smooth
parent = lo_element4 ).
lo_element5->set_attribute_ns( name = 'val'
value = ls_serie-smooth ).
ENDLOOP.
"endseries
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_dlbls
parent = lo_element3 ).
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showlegendkey
parent = lo_element4 ).
lo_element5->set_attribute_ns( name = 'val'
value = lo_chartl->ns_showlegendkeyval ).
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showval
parent = lo_element4 ).
lo_element5->set_attribute_ns( name = 'val'
value = lo_chartl->ns_showvalval ).
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showcatname
parent = lo_element4 ).
lo_element5->set_attribute_ns( name = 'val'
value = lo_chartl->ns_showcatnameval ).
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showsername
parent = lo_element4 ).
lo_element5->set_attribute_ns( name = 'val'
value = lo_chartl->ns_showsernameval ).
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showpercent
parent = lo_element4 ).
lo_element5->set_attribute_ns( name = 'val'
value = lo_chartl->ns_showpercentval ).
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_showbubblesize
parent = lo_element4 ).
lo_element5->set_attribute_ns( name = 'val'
value = lo_chartl->ns_showbubblesizeval ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_marker
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = lo_chartl->ns_markerval ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_smooth
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = lo_chartl->ns_smoothval ).
"axes
lo_el_rootchart = lo_element3.
LOOP AT lo_chartl->axes INTO ls_ax.
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_axid
parent = lo_el_rootchart ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-axid ).
CASE ls_ax-type.
WHEN zcl_excel_graph_line=>c_catax.
lo_element3 = lo_document->create_simple_element( name = lc_xml_node_catax
parent = lo_element2 ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_axid
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-axid ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_scaling
parent = lo_element3 ).
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_orientation
parent = lo_element4 ).
lo_element5->set_attribute_ns( name = 'val'
value = ls_ax-orientation ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_delete
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-delete ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_axpos
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-axpos ).
* lo_element4 = lo_document->create_simple_element( name = lc_xml_node_numfmt
* parent = lo_element3 ).
* lo_element4->set_attribute_ns( name = 'formatCode'
* value = ls_ax-formatcode ).
* lo_element4->set_attribute_ns( name = 'sourceLinked'
* value = ls_ax-sourcelinked ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_majortickmark
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-majortickmark ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_minortickmark
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-minortickmark ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_ticklblpos
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-ticklblpos ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_crossax
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-crossax ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_crosses
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-crosses ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_auto
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-auto ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_lblalgn
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-lblalgn ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_lbloffset
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-lbloffset ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_nomultilvllbl
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-nomultilvllbl ).
WHEN zcl_excel_graph_line=>c_valax.
lo_element3 = lo_document->create_simple_element( name = lc_xml_node_valax
parent = lo_element2 ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_axid
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-axid ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_scaling
parent = lo_element3 ).
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_orientation
parent = lo_element4 ).
lo_element5->set_attribute_ns( name = 'val'
value = ls_ax-orientation ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_delete
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-delete ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_axpos
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-axpos ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_majorgridlines
parent = lo_element3 ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_numfmt
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'formatCode'
value = ls_ax-formatcode ).
lo_element4->set_attribute_ns( name = 'sourceLinked'
value = ls_ax-sourcelinked ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_majortickmark
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-majortickmark ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_minortickmark
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-minortickmark ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_ticklblpos
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-ticklblpos ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_crossax
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-crossax ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_crosses
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-crosses ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_crossbetween
parent = lo_element3 ).
lo_element4->set_attribute_ns( name = 'val'
value = ls_ax-crossbetween ).
WHEN OTHERS.
ENDCASE.
ENDLOOP.
"endaxes
WHEN OTHERS.
ENDCASE.
"legend
IF lo_chart->print_label EQ abap_true.
lo_element2 = lo_document->create_simple_element( name = lc_xml_node_legend
parent = lo_element ).
CASE io_drawing->graph_type.
WHEN zcl_excel_drawing=>c_graph_bars.
"----bar
lo_element3 = lo_document->create_simple_element( name = lc_xml_node_legendpos
parent = lo_element2 ).
lo_element3->set_attribute_ns( name = 'val'
value = lo_chartb->ns_legendposval ).
lo_element3 = lo_document->create_simple_element( name = lc_xml_node_layout
parent = lo_element2 ).
lo_element3 = lo_document->create_simple_element( name = lc_xml_node_overlay
parent = lo_element2 ).
lo_element3->set_attribute_ns( name = 'val'
value = lo_chartb->ns_overlayval ).
WHEN zcl_excel_drawing=>c_graph_line.
"----line
lo_element3 = lo_document->create_simple_element( name = lc_xml_node_legendpos
parent = lo_element2 ).
lo_element3->set_attribute_ns( name = 'val'
value = lo_chartl->ns_legendposval ).
lo_element3 = lo_document->create_simple_element( name = lc_xml_node_layout
parent = lo_element2 ).
lo_element3 = lo_document->create_simple_element( name = lc_xml_node_overlay
parent = lo_element2 ).
lo_element3->set_attribute_ns( name = 'val'
value = lo_chartl->ns_overlayval ).
WHEN zcl_excel_drawing=>c_graph_pie.
"----pie
lo_element3 = lo_document->create_simple_element( name = lc_xml_node_legendpos
parent = lo_element2 ).
lo_element3->set_attribute_ns( name = 'val'
value = lo_chartp->ns_legendposval ).
lo_element3 = lo_document->create_simple_element( name = lc_xml_node_layout
parent = lo_element2 ).
lo_element3 = lo_document->create_simple_element( name = lc_xml_node_overlay
parent = lo_element2 ).
lo_element3->set_attribute_ns( name = 'val'
value = lo_chartp->ns_overlayval ).
lo_element3 = lo_document->create_simple_element( name = lc_xml_node_txpr
parent = lo_element2 ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_bodypr
parent = lo_element3 ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_lststyle
parent = lo_element3 ).
lo_element4 = lo_document->create_simple_element( name = lc_xml_node_p
parent = lo_element3 ).
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_ppr
parent = lo_element4 ).
lo_element5->set_attribute_ns( name = 'rtl'
value = lo_chartp->ns_pprrtl ).
lo_element6 = lo_document->create_simple_element( name = lc_xml_node_defrpr
parent = lo_element5 ).
lo_element5 = lo_document->create_simple_element( name = lc_xml_node_endpararpr
parent = lo_element4 ).
lo_element5->set_attribute_ns( name = 'lang'
value = lo_chartp->ns_endpararprlang ).
WHEN OTHERS.
ENDCASE.
ENDIF.
lo_element2 = lo_document->create_simple_element( name = lc_xml_node_plotvisonly
parent = lo_element ).
lo_element2->set_attribute_ns( name = 'val'
value = lo_chart->ns_plotvisonlyval ).
lo_element2 = lo_document->create_simple_element( name = lc_xml_node_dispblanksas
parent = lo_element ).
lo_element2->set_attribute_ns( name = 'val'
value = lo_chart->ns_dispblanksasval ).
lo_element2 = lo_document->create_simple_element( name = lc_xml_node_showdlblsovermax
parent = lo_element ).
lo_element2->set_attribute_ns( name = 'val'
value = lo_chart->ns_showdlblsovermaxval ).
"---------------------------END OF CHART
"printSettings
lo_element = lo_document->create_simple_element( name = lc_xml_node_printsettings
parent = lo_element_root ).
"headerFooter
lo_element2 = lo_document->create_simple_element( name = lc_xml_node_headerfooter
parent = lo_element ).
"pageMargins
lo_element2 = lo_document->create_simple_element( name = lc_xml_node_pagemargins
parent = lo_element ).
lo_element2->set_attribute_ns( name = 'b'
value = lo_chart->pagemargins-b ).
lo_element2->set_attribute_ns( name = 'l'
value = lo_chart->pagemargins-l ).
lo_element2->set_attribute_ns( name = 'r'
value = lo_chart->pagemargins-r ).
lo_element2->set_attribute_ns( name = 't'
value = lo_chart->pagemargins-t ).
lo_element2->set_attribute_ns( name = 'header'
value = lo_chart->pagemargins-header ).
lo_element2->set_attribute_ns( name = 'footer'
value = lo_chart->pagemargins-footer ).
"pageSetup
lo_element2 = lo_document->create_simple_element( name = lc_xml_node_pagesetup
parent = lo_element ).
**********************************************************************
* STEP 5: Create xstring stream
ep_content = render_xml_document( lo_document ).
ENDMETHOD.
METHOD create_xl_comments.
** Constant node name
CONSTANTS: lc_xml_node_comments TYPE string VALUE 'comments',
lc_xml_node_ns TYPE string VALUE 'http://schemas.openxmlformats.org/spreadsheetml/2006/main',
" authors
lc_xml_node_author TYPE string VALUE 'author',
lc_xml_node_authors TYPE string VALUE 'authors',
" comments
lc_xml_node_commentlist TYPE string VALUE 'commentList',
lc_xml_node_comment TYPE string VALUE 'comment',
lc_xml_node_text TYPE string VALUE 'text',
lc_xml_node_r TYPE string VALUE 'r',
lc_xml_node_rpr TYPE string VALUE 'rPr',
lc_xml_node_b TYPE string VALUE 'b',
lc_xml_node_sz TYPE string VALUE 'sz',
lc_xml_node_color TYPE string VALUE 'color',
lc_xml_node_rfont TYPE string VALUE 'rFont',
* lc_xml_node_charset TYPE string VALUE 'charset',
lc_xml_node_family TYPE string VALUE 'family',
lc_xml_node_t TYPE string VALUE 't',
" comments attributes
lc_xml_attr_ref TYPE string VALUE 'ref',
lc_xml_attr_authorid TYPE string VALUE 'authorId',
lc_xml_attr_val TYPE string VALUE 'val',
lc_xml_attr_indexed TYPE string VALUE 'indexed',
lc_xml_attr_xmlspacing TYPE string VALUE 'xml:space'.
DATA: lo_document TYPE REF TO if_ixml_document,
lo_element_root TYPE REF TO if_ixml_element,
lo_element_authors TYPE REF TO if_ixml_element,
lo_element_author TYPE REF TO if_ixml_element,
lo_element_commentlist TYPE REF TO if_ixml_element,
lo_element_comment TYPE REF TO if_ixml_element,
lo_element_text TYPE REF TO if_ixml_element,
lo_element_r TYPE REF TO if_ixml_element,
lo_element_rpr TYPE REF TO if_ixml_element,
lo_element_b TYPE REF TO if_ixml_element,
lo_element_sz TYPE REF TO if_ixml_element,
lo_element_color TYPE REF TO if_ixml_element,
lo_element_rfont TYPE REF TO if_ixml_element,
* lo_element_charset TYPE REF TO if_ixml_element,
lo_element_family TYPE REF TO if_ixml_element,
lo_element_t TYPE REF TO if_ixml_element,
lo_iterator TYPE REF TO cl_object_collection_iterator,
lo_comments TYPE REF TO zcl_excel_comments,
lo_comment TYPE REF TO zcl_excel_comment.
DATA: lv_rel_id TYPE i,
lv_author TYPE string.
DEFINE add_1_val_child_node.
* &1: parent element
* &2: child element
* &3: element name
* &4: attribute name
* &5: attribute value
&2 = lo_document->create_simple_element( name = &3
parent = lo_document ).
IF &4 IS NOT INITIAL.
&2->set_attribute_ns( name = &4
value = &5 ).
ENDIF.
&1->append_child( new_child = &2 ).
END-OF-DEFINITION.
**********************************************************************
* STEP 1: Create [Content_Types].xml into the root of the ZIP
lo_document = create_xml_document( ).
***********************************************************************
* STEP 3: Create main node relationships
lo_element_root = lo_document->create_simple_element( name = lc_xml_node_comments
parent = lo_document ).
lo_element_root->set_attribute_ns( name = 'xmlns'
value = lc_xml_node_ns ).
**********************************************************************
* STEP 4: Create authors
* TO-DO: management of several authors
lo_element_authors = lo_document->create_simple_element( name = lc_xml_node_authors
parent = lo_document ).
lo_element_author = lo_document->create_simple_element( name = lc_xml_node_author
parent = lo_document ).
lv_author = sy-uname.
lo_element_author->set_value( lv_author ).
lo_element_authors->append_child( new_child = lo_element_author ).
lo_element_root->append_child( new_child = lo_element_authors ).
**********************************************************************
* STEP 5: Create comments
lo_element_commentlist = lo_document->create_simple_element( name = lc_xml_node_commentlist
parent = lo_document ).
lo_comments = io_worksheet->get_comments( ).
lo_iterator = lo_comments->get_iterator( ).
WHILE lo_iterator->has_next( ) EQ abap_true.
lo_comment ?= lo_iterator->get_next( ).
lo_element_comment = lo_document->create_simple_element( name = lc_xml_node_comment
parent = lo_document ).
lo_element_comment->set_attribute_ns( name = lc_xml_attr_ref
value = lo_comment->get_ref( ) ).
lo_element_comment->set_attribute_ns( name = lc_xml_attr_authorid
value = '0' ). " TO-DO
lo_element_text = lo_document->create_simple_element( name = lc_xml_node_text
parent = lo_document ).
lo_element_r = lo_document->create_simple_element( name = lc_xml_node_r
parent = lo_document ).
lo_element_rpr = lo_document->create_simple_element( name = lc_xml_node_rpr
parent = lo_document ).
lo_element_b = lo_document->create_simple_element( name = lc_xml_node_b
parent = lo_document ).
lo_element_rpr->append_child( new_child = lo_element_b ).
add_1_val_child_node lo_element_rpr: lo_element_sz lc_xml_node_sz lc_xml_attr_val '9',
lo_element_color lc_xml_node_color lc_xml_attr_indexed '81',
lo_element_rfont lc_xml_node_rfont lc_xml_attr_val 'Tahoma',
lo_element_family lc_xml_node_family lc_xml_attr_val '2'
* lo_element_charset lc_xml_node_charset lc_xml_attr_val '1'
.
lo_element_r->append_child( new_child = lo_element_rpr ).
lo_element_t = lo_document->create_simple_element( name = lc_xml_node_t
parent = lo_document ).
lo_element_t->set_attribute_ns( name = lc_xml_attr_xmlspacing
value = 'preserve' ).
lo_element_t->set_value( lo_comment->get_text( ) ).
lo_element_r->append_child( new_child = lo_element_t ).
lo_element_text->append_child( new_child = lo_element_r ).
lo_element_comment->append_child( new_child = lo_element_text ).
lo_element_commentlist->append_child( new_child = lo_element_comment ).
ENDWHILE.
lo_element_root->append_child( new_child = lo_element_commentlist ).
**********************************************************************
* STEP 5: Create xstring stream
ep_content = render_xml_document( lo_document ).
ENDMETHOD.
METHOD create_xl_drawings.
** Constant node name
CONSTANTS: lc_xml_node_wsdr TYPE string VALUE 'xdr:wsDr',
lc_xml_node_ns_xdr TYPE string VALUE 'http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing',
lc_xml_node_ns_a TYPE string VALUE 'http://schemas.openxmlformats.org/drawingml/2006/main'.
DATA: lo_document TYPE REF TO if_ixml_document,
lo_element_root TYPE REF TO if_ixml_element,
lo_element_cellanchor TYPE REF TO if_ixml_element,
lo_iterator TYPE REF TO cl_object_collection_iterator,
lo_drawings TYPE REF TO zcl_excel_drawings,
lo_drawing TYPE REF TO zcl_excel_drawing.
DATA: lv_rel_id TYPE i.
**********************************************************************
* STEP 1: Create [Content_Types].xml into the root of the ZIP
lo_document = create_xml_document( ).
***********************************************************************
* STEP 3: Create main node relationships
lo_element_root = lo_document->create_simple_element( name = lc_xml_node_wsdr
parent = lo_document ).
lo_element_root->set_attribute_ns( name = 'xmlns:xdr'
value = lc_xml_node_ns_xdr ).
lo_element_root->set_attribute_ns( name = 'xmlns:a'
value = lc_xml_node_ns_a ).
**********************************************************************
* STEP 4: Create drawings
CLEAR: lv_rel_id.
lo_drawings = io_worksheet->get_drawings( ).
lo_iterator = lo_drawings->get_iterator( ).
WHILE lo_iterator->has_next( ) EQ abap_true.
lo_drawing ?= lo_iterator->get_next( ).
ADD 1 TO lv_rel_id.
lo_element_cellanchor = me->create_xl_drawing_anchor(
io_drawing = lo_drawing
io_document = lo_document
ip_index = lv_rel_id ).
lo_element_root->append_child( new_child = lo_element_cellanchor ).
ENDWHILE.
**********************************************************************
* STEP 5: Create xstring stream
ep_content = render_xml_document( lo_document ).
ENDMETHOD.
METHOD create_xl_drawings_hdft_rels.
** Constant node name
DATA: lc_xml_node_relationships TYPE string VALUE 'Relationships',
lc_xml_node_relationship TYPE string VALUE 'Relationship',
" Node attributes
lc_xml_attr_id TYPE string VALUE 'Id',
lc_xml_attr_type TYPE string VALUE 'Type',
lc_xml_attr_target TYPE string VALUE 'Target',
" Node namespace
lc_xml_node_rels_ns TYPE string VALUE 'http://schemas.openxmlformats.org/package/2006/relationships',
lc_xml_node_rid_image_tp TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/image',
lc_xml_node_rid_chart_tp TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart'.
DATA: lo_iterator TYPE REF TO cl_object_collection_iterator,
lo_drawing TYPE REF TO zcl_excel_drawing,
lo_document TYPE REF TO if_ixml_document,
lo_element_root TYPE REF TO if_ixml_element,
lo_element TYPE REF TO if_ixml_element,
lv_value TYPE string,
lv_relation_id TYPE i,
lt_temp TYPE strtable,
lt_drawings TYPE zexcel_t_drawings.
FIELD-SYMBOLS: <fs_temp> TYPE sstrtable,
<fs_drawings> TYPE zexcel_s_drawings.
* BODY
**********************************************************************
* STEP 1: Create [Content_Types].xml into the root of the ZIP
lo_document = create_xml_document( ).
**********************************************************************
* STEP 3: Create main node relationships
lo_element_root = lo_document->create_simple_element( name = lc_xml_node_relationships
parent = lo_document ).
lo_element_root->set_attribute_ns( name = 'xmlns'
value = lc_xml_node_rels_ns ).
**********************************************************************
* STEP 4: Create subnodes
**********************************************************************
lt_drawings = io_worksheet->get_header_footer_drawings( ).
LOOP AT lt_drawings ASSIGNING <fs_drawings>. "Header or footer image exist
ADD 1 TO lv_relation_id.
* lv_value = lv_relation_id.
lv_value = <fs_drawings>-drawing->get_index( ).
READ TABLE lt_temp WITH KEY str = lv_value TRANSPORTING NO FIELDS.
IF sy-subrc NE 0.
APPEND INITIAL LINE TO lt_temp ASSIGNING <fs_temp>.
<fs_temp>-row_index = sy-tabix.
<fs_temp>-str = lv_value.
CONDENSE lv_value.
CONCATENATE 'rId' lv_value INTO lv_value.
lo_element = lo_document->create_simple_element( name = lc_xml_node_relationship
parent = lo_document ).
lo_element->set_attribute_ns( name = lc_xml_attr_id
* value = 'LOGO' ).
value = lv_value ).
lo_element->set_attribute_ns( name = lc_xml_attr_type
value = lc_xml_node_rid_image_tp ).
lv_value = '../media/#'.
REPLACE '#' IN lv_value WITH <fs_drawings>-drawing->get_media_name( ).
lo_element->set_attribute_ns( name = lc_xml_attr_target
* value = '../media/LOGO.png' ).
value = lv_value ).
lo_element_root->append_child( new_child = lo_element ).
ENDIF.
ENDLOOP.
**********************************************************************
* STEP 5: Create xstring stream
ep_content = render_xml_document( lo_document ).
ENDMETHOD. "create_xl_drawings_hdft_rels
METHOD create_xl_drawings_rels.
** Constant node name
DATA: lc_xml_node_relationships TYPE string VALUE 'Relationships',
lc_xml_node_relationship TYPE string VALUE 'Relationship',
" Node attributes
lc_xml_attr_id TYPE string VALUE 'Id',
lc_xml_attr_type TYPE string VALUE 'Type',
lc_xml_attr_target TYPE string VALUE 'Target',
" Node namespace
lc_xml_node_rels_ns TYPE string VALUE 'http://schemas.openxmlformats.org/package/2006/relationships',
lc_xml_node_rid_image_tp TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/image',
lc_xml_node_rid_chart_tp TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart'.
DATA: lo_document TYPE REF TO if_ixml_document,
lo_element_root TYPE REF TO if_ixml_element,
lo_element TYPE REF TO if_ixml_element,
lo_iterator TYPE REF TO cl_object_collection_iterator,
lo_drawings TYPE REF TO zcl_excel_drawings,
lo_drawing TYPE REF TO zcl_excel_drawing.
DATA: lv_value TYPE string,
lv_counter TYPE i.
**********************************************************************
* STEP 1: Create [Content_Types].xml into the root of the ZIP
lo_document = create_xml_document( ).
**********************************************************************
* STEP 3: Create main node relationships
lo_element_root = lo_document->create_simple_element( name = lc_xml_node_relationships
parent = lo_document ).
lo_element_root->set_attribute_ns( name = 'xmlns'
value = lc_xml_node_rels_ns ).
**********************************************************************
* STEP 4: Create subnodes
" Add sheet Relationship nodes here
lv_counter = 0.
lo_drawings = io_worksheet->get_drawings( ).
lo_iterator = lo_drawings->get_iterator( ).
WHILE lo_iterator->has_next( ) EQ abap_true.
lo_drawing ?= lo_iterator->get_next( ).
ADD 1 TO lv_counter.
lv_value = lv_counter.
CONDENSE lv_value.
CONCATENATE 'rId' lv_value INTO lv_value.
lo_element = lo_document->create_simple_element( name = lc_xml_node_relationship
parent = lo_document ).
lo_element->set_attribute_ns( name = lc_xml_attr_id
value = lv_value ).
lv_value = lo_drawing->get_media_name( ).
CASE lo_drawing->get_type( ).
WHEN zcl_excel_drawing=>type_image.
CONCATENATE '../media/' lv_value INTO lv_value.
lo_element->set_attribute_ns( name = lc_xml_attr_type
value = lc_xml_node_rid_image_tp ).
WHEN zcl_excel_drawing=>type_chart.
CONCATENATE '../charts/' lv_value INTO lv_value.
lo_element->set_attribute_ns( name = lc_xml_attr_type
value = lc_xml_node_rid_chart_tp ).
ENDCASE.
lo_element->set_attribute_ns( name = lc_xml_attr_target
value = lv_value ).
lo_element_root->append_child( new_child = lo_element ).
ENDWHILE.
**********************************************************************
* STEP 5: Create xstring stream
ep_content = render_xml_document( lo_document ).
ENDMETHOD.
METHOD create_xl_drawings_vml.
DATA:
lo_xml_document TYPE REF TO cl_xml_document,
ld_stream TYPE string.
* INIT_RESULT
CLEAR ep_content.
* BODY
ld_stream = set_vml_string( ).
CREATE OBJECT lo_xml_document.
CALL METHOD lo_xml_document->parse_string
EXPORTING
stream = ld_stream.
* CALL FUNCTION 'CRM_IC_XML_STRING2XSTRING'
* EXPORTING
* instring = ld_stream
* IMPORTING
* outxstring = ep_content.
CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
EXPORTING
text = ld_stream
IMPORTING
buffer = ep_content
EXCEPTIONS
failed = 1
OTHERS = 2.
IF sy-subrc <> 0.
CLEAR ep_content.
ENDIF.
ENDMETHOD.
METHOD create_xl_drawings_vml_rels.
** Constant node name
DATA: lc_xml_node_relationships TYPE string VALUE 'Relationships',
lc_xml_node_relationship TYPE string VALUE 'Relationship',
" Node attributes
lc_xml_attr_id TYPE string VALUE 'Id',
lc_xml_attr_type TYPE string VALUE 'Type',
lc_xml_attr_target TYPE string VALUE 'Target',
" Node namespace
lc_xml_node_rels_ns TYPE string VALUE 'http://schemas.openxmlformats.org/package/2006/relationships',
lc_xml_node_rid_image_tp TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/image',
lc_xml_node_rid_chart_tp TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart'.
DATA: lo_iterator TYPE REF TO cl_object_collection_iterator,
lo_drawing TYPE REF TO zcl_excel_drawing,
lo_document TYPE REF TO if_ixml_document,
lo_element_root TYPE REF TO if_ixml_element,
lo_element TYPE REF TO if_ixml_element,
lv_value TYPE string,
lv_relation_id TYPE i.
* BODY
**********************************************************************
* STEP 1: Create [Content_Types].xml into the root of the ZIP
lo_document = create_xml_document( ).
**********************************************************************
* STEP 3: Create main node relationships
lo_element_root = lo_document->create_simple_element( name = lc_xml_node_relationships
parent = lo_document ).
lo_element_root->set_attribute_ns( name = 'xmlns'
value = lc_xml_node_rels_ns ).
**********************************************************************
* STEP 4: Create subnodes
lv_relation_id = 0.
lo_iterator = me->excel->get_drawings_iterator( zcl_excel_drawing=>type_image ).
WHILE lo_iterator->has_next( ) EQ abap_true.
lo_drawing ?= lo_iterator->get_next( ).
IF lo_drawing->get_type( ) = zcl_excel_drawing=>type_image_header_footer.
ADD 1 TO lv_relation_id.
lv_value = lv_relation_id.
CONDENSE lv_value.
CONCATENATE 'rId' lv_value INTO lv_value.
lo_element = lo_document->create_simple_element( name = lc_xml_node_relationship
parent = lo_document ).
lo_element->set_attribute_ns( name = lc_xml_attr_id
* value = 'LOGO' ).
value = lv_value ).
lo_element->set_attribute_ns( name = lc_xml_attr_type
value = lc_xml_node_rid_image_tp ).
lv_value = '../media/#'.
REPLACE '#' IN lv_value WITH lo_drawing->get_media_name( ).
lo_element->set_attribute_ns( name = lc_xml_attr_target
* value = '../media/LOGO.png' ).
value = lv_value ).
lo_element_root->append_child( new_child = lo_element ).
ENDIF.
ENDWHILE.
**********************************************************************
* STEP 5: Create xstring stream
ep_content = render_xml_document( lo_document ).
ENDMETHOD.
METHOD create_xl_drawing_anchor.
** Constant node name
CONSTANTS: lc_xml_node_onecellanchor TYPE string VALUE 'xdr:oneCellAnchor',
lc_xml_node_twocellanchor TYPE string VALUE 'xdr:twoCellAnchor',
lc_xml_node_from TYPE string VALUE 'xdr:from',
lc_xml_node_to TYPE string VALUE 'xdr:to',
lc_xml_node_pic TYPE string VALUE 'xdr:pic',
lc_xml_node_ext TYPE string VALUE 'xdr:ext',
lc_xml_node_clientdata TYPE string VALUE 'xdr:clientData',
lc_xml_node_col TYPE string VALUE 'xdr:col',
lc_xml_node_coloff TYPE string VALUE 'xdr:colOff',
lc_xml_node_row TYPE string VALUE 'xdr:row',
lc_xml_node_rowoff TYPE string VALUE 'xdr:rowOff',
lc_xml_node_nvpicpr TYPE string VALUE 'xdr:nvPicPr',
lc_xml_node_cnvpr TYPE string VALUE 'xdr:cNvPr',
lc_xml_node_cnvpicpr TYPE string VALUE 'xdr:cNvPicPr',
lc_xml_node_piclocks TYPE string VALUE 'a:picLocks',
lc_xml_node_sppr TYPE string VALUE 'xdr:spPr',
lc_xml_node_apgeom TYPE string VALUE 'a:prstGeom',
lc_xml_node_aavlst TYPE string VALUE 'a:avLst',
lc_xml_node_graphicframe TYPE string VALUE 'xdr:graphicFrame',
lc_xml_node_nvgraphicframepr TYPE string VALUE 'xdr:nvGraphicFramePr',
lc_xml_node_cnvgraphicframepr TYPE string VALUE 'xdr:cNvGraphicFramePr',
lc_xml_node_graphicframelocks TYPE string VALUE 'a:graphicFrameLocks',
lc_xml_node_xfrm TYPE string VALUE 'xdr:xfrm',
lc_xml_node_aoff TYPE string VALUE 'a:off',
lc_xml_node_aext TYPE string VALUE 'a:ext',
lc_xml_node_agraphic TYPE string VALUE 'a:graphic',
lc_xml_node_agraphicdata TYPE string VALUE 'a:graphicData',
lc_xml_node_ns_c TYPE string VALUE 'http://schemas.openxmlformats.org/drawingml/2006/chart',
lc_xml_node_cchart TYPE string VALUE 'c:chart',
lc_xml_node_blipfill TYPE string VALUE 'xdr:blipFill',
lc_xml_node_ablip TYPE string VALUE 'a:blip',
lc_xml_node_astretch TYPE string VALUE 'a:stretch',
lc_xml_node_ns_r TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships'.
DATA: lo_element_graphicframe TYPE REF TO if_ixml_element,
lo_element TYPE REF TO if_ixml_element,
lo_element2 TYPE REF TO if_ixml_element,
lo_element3 TYPE REF TO if_ixml_element,
lo_element_from TYPE REF TO if_ixml_element,
lo_element_to TYPE REF TO if_ixml_element,
lo_element_ext TYPE REF TO if_ixml_element,
lo_element_pic TYPE REF TO if_ixml_element,
lo_element_clientdata TYPE REF TO if_ixml_element,
ls_position TYPE zexcel_drawing_position,
lv_col TYPE string, " zexcel_cell_column,
lv_row TYPE string, " zexcel_cell_row.
lv_col_offset TYPE string,
lv_row_offset TYPE string,
lv_value TYPE string.
ls_position = io_drawing->get_position( ).
IF ls_position-anchor = 'ONE'.
ep_anchor = io_document->create_simple_element( name = lc_xml_node_onecellanchor
parent = io_document ).
ELSE.
ep_anchor = io_document->create_simple_element( name = lc_xml_node_twocellanchor
parent = io_document ).
ENDIF.
* from cell ******************************
lo_element_from = io_document->create_simple_element( name = lc_xml_node_from
parent = io_document ).
lv_col = ls_position-from-col.
lv_row = ls_position-from-row.
lv_col_offset = ls_position-from-col_offset.
lv_row_offset = ls_position-from-row_offset.
CONDENSE lv_col NO-GAPS.
CONDENSE lv_row NO-GAPS.
CONDENSE lv_col_offset NO-GAPS.
CONDENSE lv_row_offset NO-GAPS.
lo_element = io_document->create_simple_element( name = lc_xml_node_col
parent = io_document ).
lo_element->set_value( value = lv_col ).
lo_element_from->append_child( new_child = lo_element ).
lo_element = io_document->create_simple_element( name = lc_xml_node_coloff
parent = io_document ).
lo_element->set_value( value = lv_col_offset ).
lo_element_from->append_child( new_child = lo_element ).
lo_element = io_document->create_simple_element( name = lc_xml_node_row
parent = io_document ).
lo_element->set_value( value = lv_row ).
lo_element_from->append_child( new_child = lo_element ).
lo_element = io_document->create_simple_element( name = lc_xml_node_rowoff
parent = io_document ).
lo_element->set_value( value = lv_row_offset ).
lo_element_from->append_child( new_child = lo_element ).
ep_anchor->append_child( new_child = lo_element_from ).
IF ls_position-anchor = 'ONE'.
* ext ******************************
lo_element_ext = io_document->create_simple_element( name = lc_xml_node_ext
parent = io_document ).
lv_value = io_drawing->get_width_emu_str( ).
lo_element_ext->set_attribute_ns( name = 'cx'
value = lv_value ).
lv_value = io_drawing->get_height_emu_str( ).
lo_element_ext->set_attribute_ns( name = 'cy'
value = lv_value ).
ep_anchor->append_child( new_child = lo_element_ext ).
ELSEIF ls_position-anchor = 'TWO'.
* to cell ******************************
lo_element_to = io_document->create_simple_element( name = lc_xml_node_to
parent = io_document ).
lv_col = ls_position-to-col.
lv_row = ls_position-to-row.
lv_col_offset = ls_position-to-col_offset.
lv_row_offset = ls_position-to-row_offset.
CONDENSE lv_col NO-GAPS.
CONDENSE lv_row NO-GAPS.
CONDENSE lv_col_offset NO-GAPS.
CONDENSE lv_row_offset NO-GAPS.
lo_element = io_document->create_simple_element( name = lc_xml_node_col
parent = io_document ).
lo_element->set_value( value = lv_col ).
lo_element_to->append_child( new_child = lo_element ).
lo_element = io_document->create_simple_element( name = lc_xml_node_coloff
parent = io_document ).
lo_element->set_value( value = lv_col_offset ).
lo_element_to->append_child( new_child = lo_element ).
lo_element = io_document->create_simple_element( name = lc_xml_node_row
parent = io_document ).
lo_element->set_value( value = lv_row ).
lo_element_to->append_child( new_child = lo_element ).
lo_element = io_document->create_simple_element( name = lc_xml_node_rowoff
parent = io_document ).
lo_element->set_value( value = lv_row_offset ).
lo_element_to->append_child( new_child = lo_element ).
ep_anchor->append_child( new_child = lo_element_to ).
ENDIF.
CASE io_drawing->get_type( ).
WHEN zcl_excel_drawing=>type_image.
* pic **********************************
lo_element_pic = io_document->create_simple_element( name = lc_xml_node_pic
parent = io_document ).
* nvPicPr
lo_element = io_document->create_simple_element( name = lc_xml_node_nvpicpr
parent = io_document ).
* cNvPr
lo_element2 = io_document->create_simple_element( name = lc_xml_node_cnvpr
parent = io_document ).
lv_value = sy-index.
CONDENSE lv_value.
lo_element2->set_attribute_ns( name = 'id'
value = lv_value ).
lo_element2->set_attribute_ns( name = 'name'
value = io_drawing->title ).
lo_element->append_child( new_child = lo_element2 ).
* cNvPicPr
lo_element2 = io_document->create_simple_element( name = lc_xml_node_cnvpicpr
parent = io_document ).
* picLocks
lo_element3 = io_document->create_simple_element( name = lc_xml_node_piclocks
parent = io_document ).
lo_element3->set_attribute_ns( name = 'noChangeAspect'
value = '1' ).
lo_element2->append_child( new_child = lo_element3 ).
lo_element->append_child( new_child = lo_element2 ).
lo_element_pic->append_child( new_child = lo_element ).
* blipFill
lv_value = ip_index.
CONDENSE lv_value.
CONCATENATE 'rId' lv_value INTO lv_value.
lo_element = io_document->create_simple_element( name = lc_xml_node_blipfill
parent = io_document ).
lo_element2 = io_document->create_simple_element( name = lc_xml_node_ablip
parent = io_document ).
lo_element2->set_attribute_ns( name = 'xmlns:r'
value = lc_xml_node_ns_r ).
lo_element2->set_attribute_ns( name = 'r:embed'
value = lv_value ).
lo_element->append_child( new_child = lo_element2 ).
lo_element2 = io_document->create_simple_element( name = lc_xml_node_astretch
parent = io_document ).
lo_element->append_child( new_child = lo_element2 ).
lo_element_pic->append_child( new_child = lo_element ).
* spPr
lo_element = io_document->create_simple_element( name = lc_xml_node_sppr
parent = io_document ).
lo_element2 = io_document->create_simple_element( name = lc_xml_node_apgeom
parent = io_document ).
lo_element2->set_attribute_ns( name = 'prst'
value = 'rect' ).
lo_element3 = io_document->create_simple_element( name = lc_xml_node_aavlst
parent = io_document ).
lo_element2->append_child( new_child = lo_element3 ).
lo_element->append_child( new_child = lo_element2 ).
lo_element_pic->append_child( new_child = lo_element ).
ep_anchor->append_child( new_child = lo_element_pic ).
WHEN zcl_excel_drawing=>type_chart.
* graphicFrame **********************************
lo_element_graphicframe = io_document->create_simple_element( name = lc_xml_node_graphicframe
parent = io_document ).
* nvGraphicFramePr
lo_element = io_document->create_simple_element( name = lc_xml_node_nvgraphicframepr
parent = io_document ).
* cNvPr
lo_element2 = io_document->create_simple_element( name = lc_xml_node_cnvpr
parent = io_document ).
lv_value = sy-index.
CONDENSE lv_value.
lo_element2->set_attribute_ns( name = 'id'
value = lv_value ).
lo_element2->set_attribute_ns( name = 'name'
value = io_drawing->title ).
lo_element->append_child( new_child = lo_element2 ).
* cNvGraphicFramePr
lo_element2 = io_document->create_simple_element( name = lc_xml_node_cnvgraphicframepr
parent = io_document ).
lo_element3 = io_document->create_simple_element( name = lc_xml_node_graphicframelocks
parent = io_document ).
lo_element2->append_child( new_child = lo_element3 ).
lo_element->append_child( new_child = lo_element2 ).
lo_element_graphicframe->append_child( new_child = lo_element ).
* xfrm
lo_element = io_document->create_simple_element( name = lc_xml_node_xfrm
parent = io_document ).
* off
lo_element2 = io_document->create_simple_element( name = lc_xml_node_aoff
parent = io_document ).
lo_element2->set_attribute_ns( name = 'y' value = '0' ).
lo_element2->set_attribute_ns( name = 'x' value = '0' ).
lo_element->append_child( new_child = lo_element2 ).
* ext
lo_element2 = io_document->create_simple_element( name = lc_xml_node_aext
parent = io_document ).
lo_element2->set_attribute_ns( name = 'cy' value = '0' ).
lo_element2->set_attribute_ns( name = 'cx' value = '0' ).
lo_element->append_child( new_child = lo_element2 ).
lo_element_graphicframe->append_child( new_child = lo_element ).
* graphic
lo_element = io_document->create_simple_element( name = lc_xml_node_agraphic
parent = io_document ).
* graphicData
lo_element2 = io_document->create_simple_element( name = lc_xml_node_agraphicdata
parent = io_document ).
lo_element2->set_attribute_ns( name = 'uri' value = lc_xml_node_ns_c ).
* chart
lo_element3 = io_document->create_simple_element( name = lc_xml_node_cchart
parent = io_document ).
lo_element3->set_attribute_ns( name = 'xmlns:r'
value = lc_xml_node_ns_r ).
lo_element3->set_attribute_ns( name = 'xmlns:c'
value = lc_xml_node_ns_c ).
lv_value = ip_index.
CONDENSE lv_value.
CONCATENATE 'rId' lv_value INTO lv_value.
lo_element3->set_attribute_ns( name = 'r:id'
value = lv_value ).
lo_element2->append_child( new_child = lo_element3 ).
lo_element->append_child( new_child = lo_element2 ).
lo_element_graphicframe->append_child( new_child = lo_element ).
ep_anchor->append_child( new_child = lo_element_graphicframe ).
ENDCASE.
* client data ***************************
lo_element_clientdata = io_document->create_simple_element( name = lc_xml_node_clientdata
parent = io_document ).
ep_anchor->append_child( new_child = lo_element_clientdata ).
ENDMETHOD.
METHOD create_xl_drawing_for_comments.
** Constant node name
CONSTANTS: lc_xml_node_xml TYPE string VALUE 'xml',
lc_xml_node_ns_v TYPE string VALUE 'urn:schemas-microsoft-com:vml',
lc_xml_node_ns_o TYPE string VALUE 'urn:schemas-microsoft-com:office:office',
lc_xml_node_ns_x TYPE string VALUE 'urn:schemas-microsoft-com:office:excel',
" shapelayout
lc_xml_node_shapelayout TYPE string VALUE 'o:shapelayout',
lc_xml_node_idmap TYPE string VALUE 'o:idmap',
" shapetype
lc_xml_node_shapetype TYPE string VALUE 'v:shapetype',
lc_xml_node_stroke TYPE string VALUE 'v:stroke',
lc_xml_node_path TYPE string VALUE 'v:path',
" shape
lc_xml_node_shape TYPE string VALUE 'v:shape',
lc_xml_node_fill TYPE string VALUE 'v:fill',
lc_xml_node_shadow TYPE string VALUE 'v:shadow',
lc_xml_node_textbox TYPE string VALUE 'v:textbox',
lc_xml_node_div TYPE string VALUE 'div',
lc_xml_node_clientdata TYPE string VALUE 'x:ClientData',
lc_xml_node_movewithcells TYPE string VALUE 'x:MoveWithCells',
lc_xml_node_sizewithcells TYPE string VALUE 'x:SizeWithCells',
lc_xml_node_anchor TYPE string VALUE 'x:Anchor',
lc_xml_node_autofill TYPE string VALUE 'x:AutoFill',
lc_xml_node_row TYPE string VALUE 'x:Row',
lc_xml_node_column TYPE string VALUE 'x:Column',
" attributes,
lc_xml_attr_vext TYPE string VALUE 'v:ext',
lc_xml_attr_data TYPE string VALUE 'data',
lc_xml_attr_id TYPE string VALUE 'id',
lc_xml_attr_coordsize TYPE string VALUE 'coordsize',
lc_xml_attr_ospt TYPE string VALUE 'o:spt',
lc_xml_attr_joinstyle TYPE string VALUE 'joinstyle',
lc_xml_attr_path TYPE string VALUE 'path',
lc_xml_attr_gradientshapeok TYPE string VALUE 'gradientshapeok',
lc_xml_attr_oconnecttype TYPE string VALUE 'o:connecttype',
lc_xml_attr_type TYPE string VALUE 'type',
lc_xml_attr_style TYPE string VALUE 'style',
lc_xml_attr_fillcolor TYPE string VALUE 'fillcolor',
lc_xml_attr_oinsetmode TYPE string VALUE 'o:insetmode',
lc_xml_attr_color TYPE string VALUE 'color',
lc_xml_attr_color2 TYPE string VALUE 'color2',
lc_xml_attr_on TYPE string VALUE 'on',
lc_xml_attr_obscured TYPE string VALUE 'obscured',
lc_xml_attr_objecttype TYPE string VALUE 'ObjectType',
" attributes values
lc_xml_attr_val_edit TYPE string VALUE 'edit',
lc_xml_attr_val_rect TYPE string VALUE 'rect',
lc_xml_attr_val_t TYPE string VALUE 't',
lc_xml_attr_val_miter TYPE string VALUE 'miter',
lc_xml_attr_val_auto TYPE string VALUE 'auto',
lc_xml_attr_val_black TYPE string VALUE 'black',
lc_xml_attr_val_none TYPE string VALUE 'none',
lc_xml_attr_val_msodir TYPE string VALUE 'mso-direction-alt:auto',
lc_xml_attr_val_note TYPE string VALUE 'Note'.
DATA: lo_document TYPE REF TO if_ixml_document,
lo_element_root TYPE REF TO if_ixml_element,
"shapelayout
lo_element_shapelayout TYPE REF TO if_ixml_element,
lo_element_idmap TYPE REF TO if_ixml_element,
"shapetype
lo_element_shapetype TYPE REF TO if_ixml_element,
lo_element_stroke TYPE REF TO if_ixml_element,
lo_element_path TYPE REF TO if_ixml_element,
"shape
lo_element_shape TYPE REF TO if_ixml_element,
lo_element_fill TYPE REF TO if_ixml_element,
lo_element_shadow TYPE REF TO if_ixml_element,
lo_element_textbox TYPE REF TO if_ixml_element,
lo_element_div TYPE REF TO if_ixml_element,
lo_element_clientdata TYPE REF TO if_ixml_element,
lo_element_movewithcells TYPE REF TO if_ixml_element,
lo_element_sizewithcells TYPE REF TO if_ixml_element,
lo_element_anchor TYPE REF TO if_ixml_element,
lo_element_autofill TYPE REF TO if_ixml_element,
lo_element_row TYPE REF TO if_ixml_element,
lo_element_column TYPE REF TO if_ixml_element,
lo_iterator TYPE REF TO cl_object_collection_iterator,
lo_comments TYPE REF TO zcl_excel_comments,
lo_comment TYPE REF TO zcl_excel_comment,
lv_row TYPE zexcel_cell_row,
lv_str_column TYPE zexcel_cell_column_alpha,
lv_column TYPE zexcel_cell_column,
lv_index TYPE i,
lv_attr_id_index TYPE i,
lv_attr_id TYPE string,
lv_int_value TYPE i,
lv_int_value_string TYPE string.
DATA: lv_rel_id TYPE i.
DEFINE add_1_val_child_node.
* &1: parent element
* &2: child element
* &3: element name
* &4: attribute name
* &5: attribute value
&2 = lo_document->create_simple_element( name = &3
parent = lo_document ).
IF &4 IS NOT INITIAL.
&2->set_attribute_ns( name = &4
value = &5 ).
ENDIF.
&1->append_child( new_child = &2 ).
END-OF-DEFINITION.
**********************************************************************
* STEP 1: Create XML document
lo_document = me->ixml->create_document( ).
***********************************************************************
* STEP 2: Create main node relationships
lo_element_root = lo_document->create_simple_element( name = lc_xml_node_xml
parent = lo_document ).
lo_element_root->set_attribute_ns( : name = 'xmlns:v' value = lc_xml_node_ns_v ),
name = 'xmlns:o' value = lc_xml_node_ns_o ),
name = 'xmlns:x' value = lc_xml_node_ns_x ).
**********************************************************************
* STEP 3: Create o:shapeLayout
* TO-DO: management of several authors
lo_element_shapelayout = lo_document->create_simple_element( name = lc_xml_node_shapelayout
parent = lo_document ).
lo_element_shapelayout->set_attribute_ns( name = lc_xml_attr_vext
value = lc_xml_attr_val_edit ).
lo_element_idmap = lo_document->create_simple_element( name = lc_xml_node_idmap
parent = lo_document ).
lo_element_idmap->set_attribute_ns( : name = lc_xml_attr_vext value = lc_xml_attr_val_edit ),
name = lc_xml_attr_data value = '1' ).
lo_element_shapelayout->append_child( new_child = lo_element_idmap ).
lo_element_root->append_child( new_child = lo_element_shapelayout ).
**********************************************************************
* STEP 4: Create v:shapetype
lo_element_shapetype = lo_document->create_simple_element( name = lc_xml_node_shapetype
parent = lo_document ).
lo_element_shapetype->set_attribute_ns( : name = lc_xml_attr_id value = '_x0000_t202' ),
name = lc_xml_attr_coordsize value = '21600,21600' ),
name = lc_xml_attr_ospt value = '202' ),
name = lc_xml_attr_path value = 'm,l,21600r21600,l21600,xe' ).
lo_element_stroke = lo_document->create_simple_element( name = lc_xml_node_stroke
parent = lo_document ).
lo_element_stroke->set_attribute_ns( name = lc_xml_attr_joinstyle value = lc_xml_attr_val_miter ).
lo_element_path = lo_document->create_simple_element( name = lc_xml_node_path
parent = lo_document ).
lo_element_path->set_attribute_ns( : name = lc_xml_attr_gradientshapeok value = lc_xml_attr_val_t ),
name = lc_xml_attr_oconnecttype value = lc_xml_attr_val_rect ).
lo_element_shapetype->append_child( : new_child = lo_element_stroke ),
new_child = lo_element_path ).
lo_element_root->append_child( new_child = lo_element_shapetype ).
**********************************************************************
* STEP 4: Create v:shapetype
lo_comments = io_worksheet->get_comments( ).
lo_iterator = lo_comments->get_iterator( ).
WHILE lo_iterator->has_next( ) EQ abap_true.
lv_index = sy-index.
lo_comment ?= lo_iterator->get_next( ).
zcl_excel_common=>convert_columnrow2column_a_row( EXPORTING i_columnrow = lo_comment->get_ref( )
IMPORTING e_column = lv_str_column
e_row = lv_row ).
lv_column = zcl_excel_common=>convert_column2int( lv_str_column ).
lo_element_shape = lo_document->create_simple_element( name = lc_xml_node_shape
parent = lo_document ).
lv_attr_id_index = 1024 + lv_index.
lv_attr_id = lv_attr_id_index.
CONCATENATE '_x0000_s' lv_attr_id INTO lv_attr_id.
lo_element_shape->set_attribute_ns( : name = lc_xml_attr_id value = lv_attr_id ),
name = lc_xml_attr_type value = '#_x0000_t202' ),
name = lc_xml_attr_style value = 'size:auto;width:auto;height:auto;position:absolute;margin-left:117pt;margin-top:172.5pt;z-index:1;visibility:hidden' ),
name = lc_xml_attr_fillcolor value = '#ffffe1' ),
name = lc_xml_attr_oinsetmode value = lc_xml_attr_val_auto ).
" Fill
lo_element_fill = lo_document->create_simple_element( name = lc_xml_node_fill
parent = lo_document ).
lo_element_fill->set_attribute_ns( name = lc_xml_attr_color2 value = '#ffffe1' ).
lo_element_shape->append_child( new_child = lo_element_fill ).
" Shadow
lo_element_shadow = lo_document->create_simple_element( name = lc_xml_node_shadow
parent = lo_document ).
lo_element_shadow->set_attribute_ns( : name = lc_xml_attr_on value = lc_xml_attr_val_t ),
name = lc_xml_attr_color value = lc_xml_attr_val_black ),
name = lc_xml_attr_obscured value = lc_xml_attr_val_t ).
lo_element_shape->append_child( new_child = lo_element_shadow ).
" Path
lo_element_path = lo_document->create_simple_element( name = lc_xml_node_path
parent = lo_document ).
lo_element_path->set_attribute_ns( name = lc_xml_attr_oconnecttype value = lc_xml_attr_val_none ).
lo_element_shape->append_child( new_child = lo_element_path ).
" Textbox
lo_element_textbox = lo_document->create_simple_element( name = lc_xml_node_textbox
parent = lo_document ).
lo_element_textbox->set_attribute_ns( name = lc_xml_attr_style value = lc_xml_attr_val_msodir ).
lo_element_div = lo_document->create_simple_element( name = lc_xml_node_div
parent = lo_document ).
lo_element_div->set_attribute_ns( name = lc_xml_attr_style value = 'text-align:left' ).
lo_element_textbox->append_child( new_child = lo_element_div ).
lo_element_shape->append_child( new_child = lo_element_textbox ).
" ClientData
lo_element_clientdata = lo_document->create_simple_element( name = lc_xml_node_clientdata
parent = lo_document ).
lo_element_clientdata->set_attribute_ns( name = lc_xml_attr_objecttype value = lc_xml_attr_val_note ).
lo_element_movewithcells = lo_document->create_simple_element( name = lc_xml_node_movewithcells
parent = lo_document ).
lo_element_clientdata->append_child( new_child = lo_element_movewithcells ).
lo_element_sizewithcells = lo_document->create_simple_element( name = lc_xml_node_sizewithcells
parent = lo_document ).
lo_element_clientdata->append_child( new_child = lo_element_sizewithcells ).
lo_element_anchor = lo_document->create_simple_element( name = lc_xml_node_anchor
parent = lo_document ).
lo_element_anchor->set_value( '2, 15, 11, 10, 4, 31, 15, 9' ).
lo_element_clientdata->append_child( new_child = lo_element_anchor ).
lo_element_autofill = lo_document->create_simple_element( name = lc_xml_node_autofill
parent = lo_document ).
lo_element_autofill->set_value( 'False' ).
lo_element_clientdata->append_child( new_child = lo_element_autofill ).
lo_element_row = lo_document->create_simple_element( name = lc_xml_node_row
parent = lo_document ).
lv_int_value = lv_row - 1.
lv_int_value_string = lv_int_value.
lo_element_row->set_value( lv_int_value_string ).
lo_element_clientdata->append_child( new_child = lo_element_row ).
lo_element_column = lo_document->create_simple_element( name = lc_xml_node_column
parent = lo_document ).
lv_int_value = lv_column - 1.
lv_int_value_string = lv_int_value.
lo_element_column->set_value( lv_int_value_string ).
lo_element_clientdata->append_child( new_child = lo_element_column ).
lo_element_shape->append_child( new_child = lo_element_clientdata ).
lo_element_root->append_child( new_child = lo_element_shape ).
ENDWHILE.
**********************************************************************
* STEP 6: Create xstring stream
ep_content = render_xml_document( lo_document ).
ENDMETHOD.
METHOD create_xl_drawing_for_hdft_im.
DATA:
ld_1 TYPE string,
ld_2 TYPE string,
ld_3 TYPE string,
ld_4 TYPE string,
ld_5 TYPE string,
ld_7 TYPE string,
ls_odd_header TYPE zexcel_s_worksheet_head_foot,
ls_odd_footer TYPE zexcel_s_worksheet_head_foot,
ls_even_header TYPE zexcel_s_worksheet_head_foot,
ls_even_footer TYPE zexcel_s_worksheet_head_foot,
lv_content TYPE string,
lo_xml_document TYPE REF TO cl_xml_document.
* INIT_RESULT
CLEAR ep_content.
* BODY
ld_1 = '<xml xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel"><o:shapelayout v:ext="edit"><o:idmap v:ext="edit" data="1"/></o:shapelayout>'.
ld_2 = '<v:shapetype id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f"><v:stroke joinstyle="miter"/><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"/>'.
ld_3 = '<v:f eqn="sum @0 1 0"/><v:f eqn="sum 0 0 @1"/><v:f eqn="prod @2 1 2"/><v:f eqn="prod @3 21600 pixelWidth"/><v:f eqn="prod @3 21600 pixelHeight"/><v:f eqn="sum @0 0 1"/><v:f eqn="prod @6 1 2"/><v:f eqn="prod @7 21600 pixelWidth"/>'.
ld_4 = '<v:f eqn="sum @8 21600 0"/><v:f eqn="prod @7 21600 pixelHeight"/><v:f eqn="sum @10 21600 0"/></v:formulas><v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/><o:lock v:ext="edit" aspectratio="t"/></v:shapetype>'.
CONCATENATE ld_1
ld_2
ld_3
ld_4
INTO lv_content.
io_worksheet->sheet_setup->get_header_footer( IMPORTING ep_odd_header = ls_odd_header
ep_odd_footer = ls_odd_footer
ep_even_header = ls_even_header
ep_even_footer = ls_even_footer ).
ld_5 = me->set_vml_shape_header( ls_odd_header ).
CONCATENATE lv_content
ld_5
INTO lv_content.
ld_5 = me->set_vml_shape_header( ls_even_header ).
CONCATENATE lv_content
ld_5
INTO lv_content.
ld_5 = me->set_vml_shape_footer( ls_odd_footer ).
CONCATENATE lv_content
ld_5
INTO lv_content.
ld_5 = me->set_vml_shape_footer( ls_even_footer ).
CONCATENATE lv_content
ld_5
INTO lv_content.
ld_7 = '</xml>'.
CONCATENATE lv_content
ld_7
INTO lv_content.
CREATE OBJECT lo_xml_document.
CALL METHOD lo_xml_document->parse_string
EXPORTING
stream = lv_content.
CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
EXPORTING
text = lv_content
IMPORTING
buffer = ep_content
EXCEPTIONS
failed = 1
OTHERS = 2.
IF sy-subrc <> 0.
CLEAR ep_content.
ENDIF.
ENDMETHOD.
METHOD create_xl_relationships.
** Constant node name
DATA: lc_xml_node_relationships TYPE string VALUE 'Relationships',
lc_xml_node_relationship TYPE string VALUE 'Relationship',
" Node attributes
lc_xml_attr_id TYPE string VALUE 'Id',
lc_xml_attr_type TYPE string VALUE 'Type',
lc_xml_attr_target TYPE string VALUE 'Target',
" Node namespace
lc_xml_node_rels_ns TYPE string VALUE 'http://schemas.openxmlformats.org/package/2006/relationships',
" Node id
lc_xml_node_ridx_id TYPE string VALUE 'rId#',
" Node type
lc_xml_node_rid_sheet_tp TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet',
lc_xml_node_rid_theme_tp TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme',
lc_xml_node_rid_styles_tp TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles',
lc_xml_node_rid_shared_tp TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings',
" Node target
lc_xml_node_ridx_tg TYPE string VALUE 'worksheets/sheet#.xml',
lc_xml_node_rid_shared_tg TYPE string VALUE 'sharedStrings.xml',
lc_xml_node_rid_styles_tg TYPE string VALUE 'styles.xml',
lc_xml_node_rid_theme_tg TYPE string VALUE 'theme/theme1.xml'.
DATA: lo_document TYPE REF TO if_ixml_document,
lo_element_root TYPE REF TO if_ixml_element,
lo_element TYPE REF TO if_ixml_element.
DATA: lv_xml_node_ridx_tg TYPE string,
lv_xml_node_ridx_id TYPE string,
lv_size TYPE i,
lv_syindex TYPE string.
**********************************************************************
* STEP 1: Create [Content_Types].xml into the root of the ZIP
lo_document = create_xml_document( ).
**********************************************************************
* STEP 3: Create main node relationships
lo_element_root = lo_document->create_simple_element( name = lc_xml_node_relationships
parent = lo_document ).
lo_element_root->set_attribute_ns( name = 'xmlns'
value = lc_xml_node_rels_ns ).
**********************************************************************
* STEP 4: Create subnodes
lv_size = excel->get_worksheets_size( ).
" Relationship node
lo_element = lo_document->create_simple_element( name = lc_xml_node_relationship
parent = lo_document ).
lv_size = lv_size + 1.
lv_syindex = lv_size.
SHIFT lv_syindex RIGHT DELETING TRAILING space.
SHIFT lv_syindex LEFT DELETING LEADING space.
lv_xml_node_ridx_id = lc_xml_node_ridx_id.
REPLACE ALL OCCURRENCES OF '#' IN lv_xml_node_ridx_id WITH lv_syindex.
lo_element->set_attribute_ns( name = lc_xml_attr_id
value = lv_xml_node_ridx_id ).
lo_element->set_attribute_ns( name = lc_xml_attr_type
value = lc_xml_node_rid_theme_tp ).
lo_element->set_attribute_ns( name = lc_xml_attr_target
value = lc_xml_node_rid_theme_tg ).
lo_element_root->append_child( new_child = lo_element ).
" Relationship node
lo_element = lo_document->create_simple_element( name = lc_xml_node_relationship
parent = lo_document ).
lv_size = lv_size + 1.
lv_syindex = lv_size.
SHIFT lv_syindex RIGHT DELETING TRAILING space.
SHIFT lv_syindex LEFT DELETING LEADING space.
lv_xml_node_ridx_id = lc_xml_node_ridx_id.
REPLACE ALL OCCURRENCES OF '#' IN lv_xml_node_ridx_id WITH lv_syindex.
lo_element->set_attribute_ns( name = lc_xml_attr_id
value = lv_xml_node_ridx_id ).
lo_element->set_attribute_ns( name = lc_xml_attr_type
value = lc_xml_node_rid_styles_tp ).
lo_element->set_attribute_ns( name = lc_xml_attr_target
value = lc_xml_node_rid_styles_tg ).
lo_element_root->append_child( new_child = lo_element ).
lv_size = excel->get_worksheets_size( ).
DO lv_size TIMES.
" Relationship node
lo_element = lo_document->create_simple_element( name = lc_xml_node_relationship
parent = lo_document ).
lv_xml_node_ridx_id = lc_xml_node_ridx_id.
lv_xml_node_ridx_tg = lc_xml_node_ridx_tg.
lv_syindex = sy-index.
SHIFT lv_syindex RIGHT DELETING TRAILING space.
SHIFT lv_syindex LEFT DELETING LEADING space.
REPLACE ALL OCCURRENCES OF '#' IN lv_xml_node_ridx_id WITH lv_syindex.
REPLACE ALL OCCURRENCES OF '#' IN lv_xml_node_ridx_tg WITH lv_syindex.
lo_element->set_attribute_ns( name = lc_xml_attr_id
value = lv_xml_node_ridx_id ).
lo_element->set_attribute_ns( name = lc_xml_attr_type
value = lc_xml_node_rid_sheet_tp ).
lo_element->set_attribute_ns( name = lc_xml_attr_target
value = lv_xml_node_ridx_tg ).
lo_element_root->append_child( new_child = lo_element ).
ENDDO.
" Relationship node
lo_element = lo_document->create_simple_element( name = lc_xml_node_relationship
parent = lo_document ).
ADD 3 TO lv_size.
lv_syindex = lv_size.
SHIFT lv_syindex RIGHT DELETING TRAILING space.
SHIFT lv_syindex LEFT DELETING LEADING space.
lv_xml_node_ridx_id = lc_xml_node_ridx_id.
REPLACE ALL OCCURRENCES OF '#' IN lv_xml_node_ridx_id WITH lv_syindex.
lo_element->set_attribute_ns( name = lc_xml_attr_id
value = lv_xml_node_ridx_id ).
lo_element->set_attribute_ns( name = lc_xml_attr_type
value = lc_xml_node_rid_shared_tp ).
lo_element->set_attribute_ns( name = lc_xml_attr_target
value = lc_xml_node_rid_shared_tg ).
lo_element_root->append_child( new_child = lo_element ).
**********************************************************************
* STEP 5: Create xstring stream
ep_content = render_xml_document( lo_document ).
ENDMETHOD.
METHOD create_xl_sharedstrings.
** Constant node name
DATA: lc_xml_node_sst TYPE string VALUE 'sst',
lc_xml_node_si TYPE string VALUE 'si',
lc_xml_node_t TYPE string VALUE 't',
lc_xml_node_r TYPE string VALUE 'r',
lc_xml_node_rpr TYPE string VALUE 'rPr',
" Node attributes
lc_xml_attr_count TYPE string VALUE 'count',
lc_xml_attr_uniquecount TYPE string VALUE 'uniqueCount',
" Node namespace
lc_xml_node_ns TYPE string VALUE 'http://schemas.openxmlformats.org/spreadsheetml/2006/main'.
DATA: lo_document TYPE REF TO if_ixml_document,
lo_element_root TYPE REF TO if_ixml_element,
lo_element TYPE REF TO if_ixml_element,
lo_sub_element TYPE REF TO if_ixml_element,
lo_sub2_element TYPE REF TO if_ixml_element,
lo_font_element TYPE REF TO if_ixml_element,
lo_iterator TYPE REF TO cl_object_collection_iterator,
lo_worksheet TYPE REF TO zcl_excel_worksheet.
DATA: lt_cell_data TYPE zexcel_t_cell_data_unsorted,
lt_cell_data_rtf TYPE zexcel_t_cell_data_unsorted,
lv_value TYPE string,
ls_shared_string TYPE zexcel_s_shared_string,
lv_count_str TYPE string,
lv_uniquecount_str TYPE string,
lv_sytabix TYPE sytabix,
lv_count TYPE i,
lv_uniquecount TYPE i.
FIELD-SYMBOLS: <fs_sheet_content> TYPE zexcel_s_cell_data,
<fs_rtf> TYPE zexcel_s_rtf,
<fs_sheet_string> TYPE zexcel_s_shared_string.
**********************************************************************
* STEP 1: Collect strings from each worksheet
lo_iterator = excel->get_worksheets_iterator( ).
WHILE lo_iterator->has_next( ) EQ abap_true.
lo_worksheet ?= lo_iterator->get_next( ).
APPEND LINES OF lo_worksheet->sheet_content TO lt_cell_data.
ENDWHILE.
DELETE lt_cell_data WHERE cell_formula IS NOT INITIAL. " delete formula content
DESCRIBE TABLE lt_cell_data LINES lv_count.
MOVE lv_count TO lv_count_str.
" separating plain and rich text format strings
lt_cell_data_rtf = lt_cell_data.
DELETE lt_cell_data WHERE rtf_tab IS NOT INITIAL.
DELETE lt_cell_data_rtf WHERE rtf_tab IS INITIAL.
SHIFT lv_count_str RIGHT DELETING TRAILING space.
SHIFT lv_count_str LEFT DELETING LEADING space.
SORT lt_cell_data BY cell_value data_type.
DELETE ADJACENT DUPLICATES FROM lt_cell_data COMPARING cell_value data_type.
" leave unique rich text format strings
SORT lt_cell_data_rtf BY cell_value rtf_tab.
DELETE ADJACENT DUPLICATES FROM lt_cell_data_rtf COMPARING cell_value rtf_tab.
" merge into single list
APPEND LINES OF lt_cell_data_rtf TO lt_cell_data.
SORT lt_cell_data BY cell_value rtf_tab.
FREE lt_cell_data_rtf.
DESCRIBE TABLE lt_cell_data LINES lv_uniquecount.
MOVE lv_uniquecount TO lv_uniquecount_str.
SHIFT lv_uniquecount_str RIGHT DELETING TRAILING space.
SHIFT lv_uniquecount_str LEFT DELETING LEADING space.
CLEAR lv_count.
LOOP AT lt_cell_data ASSIGNING <fs_sheet_content> WHERE data_type = 's'.
* lv_sytabix = sy-tabix - 1.
lv_sytabix = lv_count.
MOVE lv_sytabix TO ls_shared_string-string_no.
MOVE <fs_sheet_content>-cell_value TO ls_shared_string-string_value.
MOVE <fs_sheet_content>-data_type TO ls_shared_string-string_type.
ls_shared_string-rtf_tab = <fs_sheet_content>-rtf_tab.
INSERT ls_shared_string INTO TABLE shared_strings.
ADD 1 TO lv_count.
ENDLOOP.
**********************************************************************
* STEP 1: Create [Content_Types].xml into the root of the ZIP
lo_document = create_xml_document( ).
**********************************************************************
* STEP 3: Create main node
lo_element_root = lo_document->create_simple_element( name = lc_xml_node_sst
parent = lo_document ).
lo_element_root->set_attribute_ns( name = 'xmlns'
value = lc_xml_node_ns ).
lo_element_root->set_attribute_ns( name = lc_xml_attr_count
value = lv_count_str ).
lo_element_root->set_attribute_ns( name = lc_xml_attr_uniquecount
value = lv_uniquecount_str ).
**********************************************************************
* STEP 4: Create subnode
LOOP AT shared_strings ASSIGNING <fs_sheet_string>.
lo_element = lo_document->create_simple_element( name = lc_xml_node_si
parent = lo_document ).
IF <fs_sheet_string>-rtf_tab IS INITIAL.
lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_t
parent = lo_document ).
IF boolc( contains( val = <fs_sheet_string>-string_value start = ` ` ) ) = abap_true
OR boolc( contains( val = <fs_sheet_string>-string_value end = ` ` ) ) = abap_true.
lo_sub_element->set_attribute( name = 'space' namespace = 'xml' value = 'preserve' ).
ENDIF.
lo_sub_element->set_value( value = <fs_sheet_string>-string_value ).
ELSE.
LOOP AT <fs_sheet_string>-rtf_tab ASSIGNING <fs_rtf>.
lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_r
parent = lo_element ).
TRY.
lv_value = substring( val = <fs_sheet_string>-string_value
off = <fs_rtf>-offset
len = <fs_rtf>-length ).
CATCH cx_sy_range_out_of_bounds.
EXIT.
ENDTRY.
IF <fs_rtf>-font IS NOT INITIAL.
lo_font_element = lo_document->create_simple_element( name = lc_xml_node_rpr
parent = lo_sub_element ).
create_xl_styles_font_node( io_document = lo_document
io_parent = lo_font_element
is_font = <fs_rtf>-font
iv_use_rtf = abap_true ).
ENDIF.
lo_sub2_element = lo_document->create_simple_element( name = lc_xml_node_t
parent = lo_sub_element ).
IF boolc( contains( val = lv_value start = ` ` ) ) = abap_true
OR boolc( contains( val = lv_value end = ` ` ) ) = abap_true.
lo_sub2_element->set_attribute( name = 'space' namespace = 'xml' value = 'preserve' ).
ENDIF.
lo_sub2_element->set_value( lv_value ).
ENDLOOP.
ENDIF.
lo_element->append_child( new_child = lo_sub_element ).
lo_element_root->append_child( new_child = lo_element ).
ENDLOOP.
**********************************************************************
* STEP 5: Create xstring stream
ep_content = render_xml_document( lo_document ).
ENDMETHOD.
METHOD create_xl_sheet.
*--------------------------------------------------------------------*
* issue #330 - Adding ColorScale conditional formatting
* - Ivan Femia, 2014-08-25
*--------------------------------------------------------------------*
TYPES: BEGIN OF colors,
colorrgb TYPE zexcel_color,
END OF colors.
*--------------------------------------------------------------------*
* issue #237 - Error writing column-style
* - Stefan Schmoecker, 2012-11-01
*--------------------------------------------------------------------*
TYPES: BEGIN OF cfvo,
value TYPE zexcel_conditional_value,
type TYPE zexcel_conditional_type,
END OF cfvo.
*--------------------------------------------------------------------*
* issue #220 - If cell in tables-area don't use default from row or column or sheet - Declarations 1 - start
*--------------------------------------------------------------------*
TYPES: BEGIN OF lty_table_area,
left TYPE i,
right TYPE i,
top TYPE i,
bottom TYPE i,
END OF lty_table_area.
*--------------------------------------------------------------------*
* issue #220 - If cell in tables-area don't use default from row or column or sheet - Declarations 1 - end
*--------------------------------------------------------------------*
TYPES: BEGIN OF ty_condformating_range,
dimension_range TYPE string,
condformatting_node TYPE REF TO if_ixml_element,
END OF ty_condformating_range,
ty_condformating_ranges TYPE STANDARD TABLE OF ty_condformating_range.
** Constant node name
DATA: lc_xml_node_worksheet TYPE string VALUE 'worksheet',
lc_xml_node_sheetpr TYPE string VALUE 'sheetPr',
lc_xml_node_tabcolor TYPE string VALUE 'tabColor',
lc_xml_node_outlinepr TYPE string VALUE 'outlinePr',
lc_xml_node_dimension TYPE string VALUE 'dimension',
lc_xml_node_sheetviews TYPE string VALUE 'sheetViews',
lc_xml_node_sheetview TYPE string VALUE 'sheetView',
lc_xml_node_selection TYPE string VALUE 'selection',
lc_xml_node_pane TYPE string VALUE 'pane',
lc_xml_node_sheetformatpr TYPE string VALUE 'sheetFormatPr',
lc_xml_node_cols TYPE string VALUE 'cols',
lc_xml_node_col TYPE string VALUE 'col',
lc_xml_node_sheetprotection TYPE string VALUE 'sheetProtection',
lc_xml_node_pagemargins TYPE string VALUE 'pageMargins',
lc_xml_node_pagesetup TYPE string VALUE 'pageSetup',
lc_xml_node_pagesetuppr TYPE string VALUE 'pageSetUpPr',
lc_xml_node_condformatting TYPE string VALUE 'conditionalFormatting',
lc_xml_node_cfrule TYPE string VALUE 'cfRule',
lc_xml_node_color TYPE string VALUE 'color', " Databar by Albert Lladanosa
lc_xml_node_databar TYPE string VALUE 'dataBar', " Databar by Albert Lladanosa
lc_xml_node_colorscale TYPE string VALUE 'colorScale',
lc_xml_node_iconset TYPE string VALUE 'iconSet',
lc_xml_node_cfvo TYPE string VALUE 'cfvo',
lc_xml_node_formula TYPE string VALUE 'formula',
lc_xml_node_datavalidations TYPE string VALUE 'dataValidations',
lc_xml_node_datavalidation TYPE string VALUE 'dataValidation',
lc_xml_node_formula1 TYPE string VALUE 'formula1',
lc_xml_node_formula2 TYPE string VALUE 'formula2',
lc_xml_node_mergecell TYPE string VALUE 'mergeCell',
lc_xml_node_mergecells TYPE string VALUE 'mergeCells',
lc_xml_node_drawing TYPE string VALUE 'drawing',
lc_xml_node_drawing_for_cmt TYPE string VALUE 'legacyDrawing',
**********************************************************************
lc_xml_node_drawing_for_hd_ft TYPE string VALUE 'legacyDrawingHF',
**********************************************************************
lc_xml_node_headerfooter TYPE string VALUE 'headerFooter',
lc_xml_node_oddheader TYPE string VALUE 'oddHeader',
lc_xml_node_oddfooter TYPE string VALUE 'oddFooter',
lc_xml_node_evenheader TYPE string VALUE 'evenHeader',
lc_xml_node_evenfooter TYPE string VALUE 'evenFooter',
lc_xml_node_autofilter TYPE string VALUE 'autoFilter',
lc_xml_node_filtercolumn TYPE string VALUE 'filterColumn',
lc_xml_node_filters TYPE string VALUE 'filters',
lc_xml_node_filter TYPE string VALUE 'filter',
" Node attributes
lc_xml_attr_ref TYPE string VALUE 'ref',
lc_xml_attr_summarybelow TYPE string VALUE 'summaryBelow',
lc_xml_attr_summaryright TYPE string VALUE 'summaryRight',
lc_xml_attr_tabselected TYPE string VALUE 'tabSelected',
lc_xml_attr_showzeros TYPE string VALUE 'showZeros',
lc_xml_attr_zoomscale TYPE string VALUE 'zoomScale',
lc_xml_attr_zoomscalenormal TYPE string VALUE 'zoomScaleNormal',
lc_xml_attr_zoomscalepageview TYPE string VALUE 'zoomScalePageLayoutView',
lc_xml_attr_zoomscalesheetview TYPE string VALUE 'zoomScaleSheetLayoutView',
lc_xml_attr_workbookviewid TYPE string VALUE 'workbookViewId',
lc_xml_attr_showgridlines TYPE string VALUE 'showGridLines',
lc_xml_attr_gridlines TYPE string VALUE 'gridLines',
lc_xml_attr_showrowcolheaders TYPE string VALUE 'showRowColHeaders',
lc_xml_attr_activecell TYPE string VALUE 'activeCell',
lc_xml_attr_sqref TYPE string VALUE 'sqref',
lc_xml_attr_min TYPE string VALUE 'min',
lc_xml_attr_max TYPE string VALUE 'max',
lc_xml_attr_hidden TYPE string VALUE 'hidden',
lc_xml_attr_width TYPE string VALUE 'width',
lc_xml_attr_defaultwidth TYPE string VALUE '9.10',
lc_xml_attr_style TYPE string VALUE 'style',
lc_xml_attr_true TYPE string VALUE 'true',
lc_xml_attr_bestfit TYPE string VALUE 'bestFit',
lc_xml_attr_customheight TYPE string VALUE 'customHeight',
lc_xml_attr_customwidth TYPE string VALUE 'customWidth',
lc_xml_attr_collapsed TYPE string VALUE 'collapsed',
lc_xml_attr_defaultrowheight TYPE string VALUE 'defaultRowHeight',
lc_xml_attr_defaultcolwidth TYPE string VALUE 'defaultColWidth',
lc_xml_attr_outlinelevelrow TYPE string VALUE 'x14ac:outlineLevelRow',
lc_xml_attr_outlinelevelcol TYPE string VALUE 'x14ac:outlineLevelCol',
lc_xml_attr_outlinelevel TYPE string VALUE 'outlineLevel',
lc_xml_attr_password TYPE string VALUE 'password',
lc_xml_attr_sheet TYPE string VALUE 'sheet',
lc_xml_attr_objects TYPE string VALUE 'objects',
lc_xml_attr_scenarios TYPE string VALUE 'scenarios',
lc_xml_attr_autofilter TYPE string VALUE 'autoFilter',
lc_xml_attr_deletecolumns TYPE string VALUE 'deleteColumns',
lc_xml_attr_deleterows TYPE string VALUE 'deleteRows',
lc_xml_attr_formatcells TYPE string VALUE 'formatCells',
lc_xml_attr_formatcolumns TYPE string VALUE 'formatColumns',
lc_xml_attr_formatrows TYPE string VALUE 'formatRows',
lc_xml_attr_insertcolumns TYPE string VALUE 'insertColumns',
lc_xml_attr_inserthyperlinks TYPE string VALUE 'insertHyperlinks',
lc_xml_attr_insertrows TYPE string VALUE 'insertRows',
lc_xml_attr_pivottables TYPE string VALUE 'pivotTables',
lc_xml_attr_selectlockedcells TYPE string VALUE 'selectLockedCells',
lc_xml_attr_selectunlockedcell TYPE string VALUE 'selectUnlockedCells',
lc_xml_attr_sort TYPE string VALUE 'sort',
lc_xml_attr_left TYPE string VALUE 'left',
lc_xml_attr_right TYPE string VALUE 'right',
lc_xml_attr_top TYPE string VALUE 'top',
lc_xml_attr_bottom TYPE string VALUE 'bottom',
lc_xml_attr_header TYPE string VALUE 'header',
lc_xml_attr_footer TYPE string VALUE 'footer',
lc_xml_attr_type TYPE string VALUE 'type',
lc_xml_attr_iconset TYPE string VALUE 'iconSet',
lc_xml_attr_showvalue TYPE string VALUE 'showValue',
lc_xml_attr_val TYPE string VALUE 'val',
lc_xml_attr_dxfid TYPE string VALUE 'dxfId',
lc_xml_attr_priority TYPE string VALUE 'priority',
lc_xml_attr_operator TYPE string VALUE 'operator',
lc_xml_attr_text TYPE string VALUE 'text',
lc_xml_attr_notContainsText TYPE string VALUE 'notContainsText',
lc_xml_attr_allowblank TYPE string VALUE 'allowBlank',
lc_xml_attr_showinputmessage TYPE string VALUE 'showInputMessage',
lc_xml_attr_showerrormessage TYPE string VALUE 'showErrorMessage',
lc_xml_attr_showdropdown TYPE string VALUE 'ShowDropDown', " 'showDropDown' does not work
lc_xml_attr_errortitle TYPE string VALUE 'errorTitle',
lc_xml_attr_error TYPE string VALUE 'error',
lc_xml_attr_errorstyle TYPE string VALUE 'errorStyle',
lc_xml_attr_prompttitle TYPE string VALUE 'promptTitle',
lc_xml_attr_prompt TYPE string VALUE 'prompt',
lc_xml_attr_count TYPE string VALUE 'count',
lc_xml_attr_blackandwhite TYPE string VALUE 'blackAndWhite',
lc_xml_attr_cellcomments TYPE string VALUE 'cellComments',
lc_xml_attr_copies TYPE string VALUE 'copies',
lc_xml_attr_draft TYPE string VALUE 'draft',
lc_xml_attr_errors TYPE string VALUE 'errors',
lc_xml_attr_firstpagenumber TYPE string VALUE 'firstPageNumber',
lc_xml_attr_fittopage TYPE string VALUE 'fitToPage',
lc_xml_attr_fittoheight TYPE string VALUE 'fitToHeight',
lc_xml_attr_fittowidth TYPE string VALUE 'fitToWidth',
lc_xml_attr_horizontaldpi TYPE string VALUE 'horizontalDpi',
lc_xml_attr_orientation TYPE string VALUE 'orientation',
lc_xml_attr_pageorder TYPE string VALUE 'pageOrder',
lc_xml_attr_paperheight TYPE string VALUE 'paperHeight',
lc_xml_attr_papersize TYPE string VALUE 'paperSize',
lc_xml_attr_paperwidth TYPE string VALUE 'paperWidth',
lc_xml_attr_scale TYPE string VALUE 'scale',
lc_xml_attr_usefirstpagenumber TYPE string VALUE 'useFirstPageNumber',
lc_xml_attr_useprinterdefaults TYPE string VALUE 'usePrinterDefaults',
lc_xml_attr_verticaldpi TYPE string VALUE 'verticalDpi',
lc_xml_attr_differentoddeven TYPE string VALUE 'differentOddEven',
lc_xml_attr_colid TYPE string VALUE 'colId',
lc_xml_attr_filtermode TYPE string VALUE 'filterMode',
lc_xml_attr_tabcolor_rgb TYPE string VALUE 'rgb',
" Node namespace
lc_xml_node_ns TYPE string VALUE 'http://schemas.openxmlformats.org/spreadsheetml/2006/main',
lc_xml_node_r_ns TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships',
lc_xml_node_comp_ns TYPE string VALUE 'http://schemas.openxmlformats.org/markup-compatibility/2006',
lc_xml_node_comp_pref TYPE string VALUE 'x14ac',
lc_xml_node_ig_ns TYPE string VALUE 'http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac'.
DATA: lo_document TYPE REF TO if_ixml_document,
lo_element_root TYPE REF TO if_ixml_element,
lo_element TYPE REF TO if_ixml_element,
lo_element_2 TYPE REF TO if_ixml_element,
lo_element_3 TYPE REF TO if_ixml_element,
lo_element_4 TYPE REF TO if_ixml_element,
lo_iterator TYPE REF TO cl_object_collection_iterator,
lo_style_cond TYPE REF TO zcl_excel_style_cond,
lo_data_validation TYPE REF TO zcl_excel_data_validation,
lo_table TYPE REF TO zcl_excel_table,
lo_column_default TYPE REF TO zcl_excel_column,
lo_row_default TYPE REF TO zcl_excel_row.
DATA: lv_value TYPE string,
lt_range_merge TYPE string_table,
lv_column TYPE zexcel_cell_column,
lv_style_guid TYPE zexcel_cell_style,
ls_databar TYPE zexcel_conditional_databar, " Databar by Albert Lladanosa
ls_colorscale TYPE zexcel_conditional_colorscale,
ls_iconset TYPE zexcel_conditional_iconset,
ls_cellis TYPE zexcel_conditional_cellis,
ls_textfunction TYPE zcl_excel_style_cond=>ts_conditional_textfunction,
lv_column_start TYPE zexcel_cell_column_alpha,
lv_row_start TYPE zexcel_cell_row,
lv_cell_coords TYPE zexcel_cell_coords,
ls_expression TYPE zexcel_conditional_expression,
ls_conditional_top10 TYPE zexcel_conditional_top10,
ls_conditional_above_avg TYPE zexcel_conditional_above_avg,
lt_cfvo TYPE TABLE OF cfvo,
ls_cfvo TYPE cfvo,
lt_colors TYPE TABLE OF colors,
ls_colors TYPE colors,
lv_cell_row_s TYPE string,
ls_style_mapping TYPE zexcel_s_styles_mapping,
lv_freeze_cell_row TYPE zexcel_cell_row,
lv_freeze_cell_column TYPE zexcel_cell_column,
lv_freeze_cell_column_alpha TYPE zexcel_cell_column_alpha,
lo_column_iterator TYPE REF TO cl_object_collection_iterator,
lo_column TYPE REF TO zcl_excel_column,
lo_row_iterator TYPE REF TO cl_object_collection_iterator,
ls_style_cond_mapping TYPE zexcel_s_styles_cond_mapping,
lv_relation_id TYPE i VALUE 0,
outline_level_col TYPE i VALUE 0,
lts_row_outlines TYPE zcl_excel_worksheet=>mty_ts_outlines_row,
merge_count TYPE int4,
lt_values TYPE zexcel_t_autofilter_values,
ls_values TYPE zexcel_s_autofilter_values,
lo_autofilters TYPE REF TO zcl_excel_autofilters,
lo_autofilter TYPE REF TO zcl_excel_autofilter,
lv_ref TYPE string,
lt_condformating_ranges TYPE ty_condformating_ranges,
ls_condformating_range TYPE ty_condformating_range,
ld_first_half TYPE string,
ld_second_half TYPE string.
FIELD-SYMBOLS: <ls_sheet_content> TYPE zexcel_s_cell_data,
<fs_range_merge> LIKE LINE OF lt_range_merge,
<ls_row_outline> LIKE LINE OF lts_row_outlines,
<ls_condformating_range> TYPE ty_condformating_range.
*--------------------------------------------------------------------*
* issue #220 - If cell in tables-area don't use default from row or column or sheet - Declarations 2 - start
*--------------------------------------------------------------------*
DATA: lt_table_areas TYPE SORTED TABLE OF lty_table_area WITH NON-UNIQUE KEY left right top bottom.
*--------------------------------------------------------------------*
* issue #220 - If cell in tables-area don't use default from row or column or sheet - Declarations 2 - end
*--------------------------------------------------------------------*
**********************************************************************
* STEP 1: Create [Content_Types].xml into the root of the ZIP
lo_document = create_xml_document( ).
***********************************************************************
* STEP 3: Create main node relationships
lo_element_root = lo_document->create_simple_element( name = lc_xml_node_worksheet
parent = lo_document ).
lo_element_root->set_attribute_ns( name = 'xmlns'
value = lc_xml_node_ns ).
lo_element_root->set_attribute_ns( name = 'xmlns:r'
value = lc_xml_node_r_ns ).
lo_element_root->set_attribute_ns( name = 'xmlns:mc'
value = lc_xml_node_comp_ns ).
lo_element_root->set_attribute_ns( name = 'mc:Ignorable'
value = lc_xml_node_comp_pref ).
lo_element_root->set_attribute_ns( name = 'xmlns:x14ac'
value = lc_xml_node_ig_ns ).
**********************************************************************
* STEP 4: Create subnodes
" sheetPr
lo_element = lo_document->create_simple_element( name = lc_xml_node_sheetpr
parent = lo_document ).
" TODO tabColor
IF io_worksheet->tabcolor IS NOT INITIAL.
lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_tabcolor
parent = lo_element ).
* Theme not supported yet - start with RGB
lv_value = io_worksheet->tabcolor-rgb.
lo_element_2->set_attribute_ns( name = lc_xml_attr_tabcolor_rgb
value = lv_value ).
ENDIF.
" outlinePr
lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_outlinepr
parent = lo_document ).
lv_value = io_worksheet->zif_excel_sheet_properties~summarybelow.
CONDENSE lv_value.
lo_element_2->set_attribute_ns( name = lc_xml_attr_summarybelow
value = lv_value ).
lv_value = io_worksheet->zif_excel_sheet_properties~summaryright.
CONDENSE lv_value.
lo_element_2->set_attribute_ns( name = lc_xml_attr_summaryright
value = lv_value ).
lo_element->append_child( new_child = lo_element_2 ).
IF io_worksheet->sheet_setup->fit_to_page IS NOT INITIAL.
lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_pagesetuppr
parent = lo_document ).
lo_element_2->set_attribute_ns( name = lc_xml_attr_fittopage
value = `1` ).
lo_element->append_child( new_child = lo_element_2 ). " pageSetupPr node
ENDIF.
lo_element_root->append_child( new_child = lo_element ).
" dimension node
lo_element = lo_document->create_simple_element( name = lc_xml_node_dimension
parent = lo_document ).
lv_value = io_worksheet->get_dimension_range( ).
lo_element->set_attribute_ns( name = lc_xml_attr_ref
value = lv_value ).
lo_element_root->append_child( new_child = lo_element ).
" sheetViews node
lo_element = lo_document->create_simple_element( name = lc_xml_node_sheetviews
parent = lo_document ).
" sheetView node
lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_sheetview
parent = lo_document ).
IF io_worksheet->zif_excel_sheet_properties~show_zeros EQ abap_false.
lo_element_2->set_attribute_ns( name = lc_xml_attr_showzeros
value = '0' ).
ENDIF.
IF iv_active = abap_true
OR io_worksheet->zif_excel_sheet_properties~selected EQ abap_true.
lo_element_2->set_attribute_ns( name = lc_xml_attr_tabselected
value = '1' ).
ELSE.
lo_element_2->set_attribute_ns( name = lc_xml_attr_tabselected
value = '0' ).
ENDIF.
" Zoom scale
IF io_worksheet->zif_excel_sheet_properties~zoomscale GT 400.
io_worksheet->zif_excel_sheet_properties~zoomscale = 400.
ELSEIF io_worksheet->zif_excel_sheet_properties~zoomscale LT 10.
io_worksheet->zif_excel_sheet_properties~zoomscale = 10.
ENDIF.
lv_value = io_worksheet->zif_excel_sheet_properties~zoomscale.
CONDENSE lv_value.
lo_element_2->set_attribute_ns( name = lc_xml_attr_zoomscale
value = lv_value ).
IF io_worksheet->zif_excel_sheet_properties~zoomscale_normal NE 0.
IF io_worksheet->zif_excel_sheet_properties~zoomscale_normal GT 400.
io_worksheet->zif_excel_sheet_properties~zoomscale_normal = 400.
ELSEIF io_worksheet->zif_excel_sheet_properties~zoomscale_normal LT 10.
io_worksheet->zif_excel_sheet_properties~zoomscale_normal = 10.
ENDIF.
lv_value = io_worksheet->zif_excel_sheet_properties~zoomscale_normal.
CONDENSE lv_value.
lo_element_2->set_attribute_ns( name = lc_xml_attr_zoomscalenormal
value = lv_value ).
ENDIF.
IF io_worksheet->zif_excel_sheet_properties~zoomscale_pagelayoutview NE 0.
IF io_worksheet->zif_excel_sheet_properties~zoomscale_pagelayoutview GT 400.
io_worksheet->zif_excel_sheet_properties~zoomscale_pagelayoutview = 400.
ELSEIF io_worksheet->zif_excel_sheet_properties~zoomscale_pagelayoutview LT 10.
io_worksheet->zif_excel_sheet_properties~zoomscale_pagelayoutview = 10.
ENDIF.
lv_value = io_worksheet->zif_excel_sheet_properties~zoomscale_pagelayoutview.
CONDENSE lv_value.
lo_element_2->set_attribute_ns( name = lc_xml_attr_zoomscalepageview
value = lv_value ).
ENDIF.
IF io_worksheet->zif_excel_sheet_properties~zoomscale_sheetlayoutview NE 0.
IF io_worksheet->zif_excel_sheet_properties~zoomscale_sheetlayoutview GT 400.
io_worksheet->zif_excel_sheet_properties~zoomscale_sheetlayoutview = 400.
ELSEIF io_worksheet->zif_excel_sheet_properties~zoomscale_sheetlayoutview LT 10.
io_worksheet->zif_excel_sheet_properties~zoomscale_sheetlayoutview = 10.
ENDIF.
lv_value = io_worksheet->zif_excel_sheet_properties~zoomscale_sheetlayoutview.
CONDENSE lv_value.
lo_element_2->set_attribute_ns( name = lc_xml_attr_zoomscalesheetview
value = lv_value ).
ENDIF.
lo_element_2->set_attribute_ns( name = lc_xml_attr_workbookviewid
value = '0' ).
" showGridLines attribute
IF io_worksheet->show_gridlines = abap_true.
lo_element_2->set_attribute_ns( name = lc_xml_attr_showgridlines
value = '1' ).
ELSE.
lo_element_2->set_attribute_ns( name = lc_xml_attr_showgridlines
value = '0' ).
ENDIF.
" showRowColHeaders attribute
IF io_worksheet->show_rowcolheaders = abap_true.
lo_element_2->set_attribute_ns( name = lc_xml_attr_showrowcolheaders
value = '1' ).
ELSE.
lo_element_2->set_attribute_ns( name = lc_xml_attr_showrowcolheaders
value = '0' ).
ENDIF.
" freeze panes
io_worksheet->get_freeze_cell( IMPORTING ep_row = lv_freeze_cell_row
ep_column = lv_freeze_cell_column ).
IF lv_freeze_cell_row IS NOT INITIAL AND lv_freeze_cell_column IS NOT INITIAL.
lo_element_3 = lo_document->create_simple_element( name = lc_xml_node_pane
parent = lo_element_2 ).
IF lv_freeze_cell_row > 1.
lv_value = lv_freeze_cell_row - 1.
CONDENSE lv_value.
lo_element_3->set_attribute_ns( name = 'ySplit'
value = lv_value ).
ENDIF.
IF lv_freeze_cell_column > 1.
lv_value = lv_freeze_cell_column - 1.
CONDENSE lv_value.
lo_element_3->set_attribute_ns( name = 'xSplit'
value = lv_value ).
ENDIF.
lv_freeze_cell_column_alpha = zcl_excel_common=>convert_column2alpha( ip_column = lv_freeze_cell_column ).
lv_value = zcl_excel_common=>number_to_excel_string( ip_value = lv_freeze_cell_row ).
CONCATENATE lv_freeze_cell_column_alpha lv_value INTO lv_value.
lo_element_3->set_attribute_ns( name = 'topLeftCell'
value = lv_value ).
lo_element_3->set_attribute_ns( name = 'activePane'
value = 'bottomRight' ).
lo_element_3->set_attribute_ns( name = 'state'
value = 'frozen' ).
lo_element_2->append_child( new_child = lo_element_3 ).
ENDIF.
" selection node
lo_element_3 = lo_document->create_simple_element( name = lc_xml_node_selection
parent = lo_document ).
lv_value = io_worksheet->get_active_cell( ).
lo_element_3->set_attribute_ns( name = lc_xml_attr_activecell
value = lv_value ).
lo_element_3->set_attribute_ns( name = lc_xml_attr_sqref
value = lv_value ).
lo_element_2->append_child( new_child = lo_element_3 ). " sheetView node
lo_element->append_child( new_child = lo_element_2 ). " sheetView node
lo_element_root->append_child( new_child = lo_element ). " sheetViews node
lo_column_iterator = io_worksheet->get_columns_iterator( ).
lo_row_iterator = io_worksheet->get_rows_iterator( ).
" Calculate col
IF NOT lo_column_iterator IS BOUND.
io_worksheet->calculate_column_widths( ).
lo_column_iterator = io_worksheet->get_columns_iterator( ).
ENDIF.
" sheetFormatPr node
lo_element = lo_document->create_simple_element( name = lc_xml_node_sheetformatpr
parent = lo_document ).
" defaultRowHeight
lo_row_default = io_worksheet->get_default_row( ).
IF lo_row_default IS BOUND.
IF lo_row_default->get_row_height( ) >= 0.
lo_element->set_attribute_ns( name = lc_xml_attr_customheight
value = lc_xml_attr_true ).
lv_value = lo_row_default->get_row_height( ).
ELSE.
lv_value = '12.75'.
ENDIF.
ELSE.
lv_value = '12.75'.
ENDIF.
SHIFT lv_value RIGHT DELETING TRAILING space.
SHIFT lv_value LEFT DELETING LEADING space.
lo_element->set_attribute_ns( name = lc_xml_attr_defaultrowheight
value = lv_value ).
" defaultColWidth
lo_column_default = io_worksheet->get_default_column( ).
IF lo_column_default IS BOUND AND lo_column_default->get_width( ) >= 0.
lv_value = lo_column_default->get_width( ).
SHIFT lv_value RIGHT DELETING TRAILING space.
SHIFT lv_value LEFT DELETING LEADING space.
lo_element->set_attribute_ns( name = lc_xml_attr_defaultcolwidth
value = lv_value ).
ENDIF.
" outlineLevelCol
WHILE lo_column_iterator->has_next( ) = abap_true.
lo_column ?= lo_column_iterator->get_next( ).
IF lo_column->get_outline_level( ) > outline_level_col.
outline_level_col = lo_column->get_outline_level( ).
ENDIF.
ENDWHILE.
lv_value = outline_level_col.
SHIFT lv_value RIGHT DELETING TRAILING space.
SHIFT lv_value LEFT DELETING LEADING space.
lo_element->set_attribute_ns( name = lc_xml_attr_outlinelevelcol
value = lv_value ).
lo_element_root->append_child( new_child = lo_element ). " sheetFormatPr node
* Reset column iterator
lo_column_iterator = io_worksheet->get_columns_iterator( ).
IF io_worksheet->zif_excel_sheet_properties~get_style( ) IS NOT INITIAL OR lo_column_iterator->has_next( ) = abap_true.
" cols node
lo_element = lo_document->create_simple_element( name = lc_xml_node_cols
parent = lo_document ).
" This code have to be enhanced in order to manage also column style properties
" Now it is an out/out
IF lo_column_iterator->has_next( ) = abap_true.
WHILE lo_column_iterator->has_next( ) = abap_true.
lo_column ?= lo_column_iterator->get_next( ).
" col node
lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_col
parent = lo_document ).
lv_value = lo_column->get_column_index( ).
SHIFT lv_value RIGHT DELETING TRAILING space.
SHIFT lv_value LEFT DELETING LEADING space.
lo_element_2->set_attribute_ns( name = lc_xml_attr_min
value = lv_value ).
lo_element_2->set_attribute_ns( name = lc_xml_attr_max
value = lv_value ).
" Width
IF lo_column->get_width( ) < 0.
lo_element_2->set_attribute_ns( name = lc_xml_attr_width
value = lc_xml_attr_defaultwidth ).
ELSE.
lv_value = lo_column->get_width( ).
lo_element_2->set_attribute_ns( name = lc_xml_attr_width
value = lv_value ).
ENDIF.
" Column visibility
IF lo_column->get_visible( ) = abap_false.
lo_element_2->set_attribute_ns( name = lc_xml_attr_hidden
value = lc_xml_attr_true ).
ENDIF.
" Auto size?
IF lo_column->get_auto_size( ) = abap_true.
lo_element_2->set_attribute_ns( name = lc_xml_attr_bestfit
value = lc_xml_attr_true ).
ENDIF.
" Custom width?
IF lo_column_default IS BOUND.
IF lo_column->get_width( ) <> lo_column_default->get_width( ).
lo_element_2->set_attribute_ns( name = lc_xml_attr_customwidth
value = lc_xml_attr_true ).
ENDIF.
ELSE.
lo_element_2->set_attribute_ns( name = lc_xml_attr_customwidth
value = lc_xml_attr_true ).
ENDIF.
" Collapsed
IF lo_column->get_collapsed( ) = abap_true.
lo_element_2->set_attribute_ns( name = lc_xml_attr_collapsed
value = lc_xml_attr_true ).
ENDIF.
" outlineLevel
IF lo_column->get_outline_level( ) > 0.
lv_value = lo_column->get_outline_level( ).
SHIFT lv_value RIGHT DELETING TRAILING space.
SHIFT lv_value LEFT DELETING LEADING space.
lo_element_2->set_attribute_ns( name = lc_xml_attr_outlinelevel
value = lv_value ).
ENDIF.
" Style
lv_style_guid = lo_column->get_column_style_guid( ). "ins issue #157 - set column style
CLEAR ls_style_mapping.
READ TABLE styles_mapping INTO ls_style_mapping WITH KEY guid = lv_style_guid.
IF sy-subrc = 0. "ins issue #295
lv_value = ls_style_mapping-style. "ins issue #295
SHIFT lv_value RIGHT DELETING TRAILING space.
SHIFT lv_value LEFT DELETING LEADING space.
lo_element_2->set_attribute_ns( name = lc_xml_attr_style
value = lv_value ).
ENDIF. "ins issue #237
lo_element->append_child( new_child = lo_element_2 ). " col node
ENDWHILE.
* ELSE. "del issue #157 - set sheet style ( add missing columns
* IF io_worksheet->zif_excel_sheet_properties~get_style( ) IS NOT INITIAL. "del issue #157 - set sheet style ( add missing columns
* Begin of insertion issue #157 - set sheet style ( add missing columns
ENDIF.
* Always pass through this coding
IF io_worksheet->zif_excel_sheet_properties~get_style( ) IS NOT INITIAL.
DATA: lts_sorted_columns TYPE SORTED TABLE OF zexcel_cell_column WITH UNIQUE KEY table_line.
TYPES: BEGIN OF ty_missing_columns,
first_column TYPE zexcel_cell_column,
last_column TYPE zexcel_cell_column,
END OF ty_missing_columns.
DATA: t_missing_columns TYPE STANDARD TABLE OF ty_missing_columns WITH NON-UNIQUE DEFAULT KEY,
missing_column LIKE LINE OF t_missing_columns.
* First collect columns that were already handled before. The rest has to be inserted now
lo_column_iterator = io_worksheet->get_columns_iterator( ).
WHILE lo_column_iterator->has_next( ) = abap_true.
lo_column ?= lo_column_iterator->get_next( ).
lv_column = zcl_excel_common=>convert_column2int( lo_column->get_column_index( ) ).
INSERT lv_column INTO TABLE lts_sorted_columns.
ENDWHILE.
* Now find all columns that were missing so far
missing_column-first_column = 1.
LOOP AT lts_sorted_columns INTO lv_column.
IF lv_column > missing_column-first_column.
missing_column-last_column = lv_column - 1.
APPEND missing_column TO t_missing_columns.
ENDIF.
missing_column-first_column = lv_column + 1.
ENDLOOP.
missing_column-last_column = zcl_excel_common=>c_excel_sheet_max_col.
APPEND missing_column TO t_missing_columns.
* Now apply stylesetting ( and other defaults - I copy it from above. Whoever programmed that seems to know what to do :o)
LOOP AT t_missing_columns INTO missing_column.
* End of insertion issue #157 - set column style
lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_col
parent = lo_document ).
* lv_value = zcl_excel_common=>c_excel_sheet_min_col."del issue #157 - set sheet style ( add missing columns
lv_value = missing_column-first_column. "ins issue #157 - set sheet style ( add missing columns
CONDENSE lv_value.
lo_element_2->set_attribute_ns( name = lc_xml_attr_min
value = lv_value ).
* lv_value = zcl_excel_common=>c_excel_sheet_max_col."del issue #157 - set sheet style ( add missing columns
lv_value = missing_column-last_column. "ins issue #157 - set sheet style ( add missing columns
CONDENSE lv_value.
lo_element_2->set_attribute_ns( name = lc_xml_attr_max
value = lv_value ).
lo_element_2->set_attribute_ns( name = lc_xml_attr_width
value = lc_xml_attr_defaultwidth ).
lv_style_guid = io_worksheet->zif_excel_sheet_properties~get_style( ).
READ TABLE styles_mapping INTO ls_style_mapping WITH KEY guid = lv_style_guid.
lv_value = ls_style_mapping-style.
CONDENSE lv_value.
lo_element_2->set_attribute_ns( name = lc_xml_attr_style
value = lv_value ).
lo_element->append_child( new_child = lo_element_2 ). " col node
ENDLOOP. "ins issue #157 - set sheet style ( add missing columns
ENDIF.
*--------------------------------------------------------------------*
* issue #367 add feature hide columns from
*--------------------------------------------------------------------*
IF io_worksheet->zif_excel_sheet_properties~hide_columns_from IS NOT INITIAL.
lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_col
parent = lo_document ).
lv_value = zcl_excel_common=>convert_column2int( io_worksheet->zif_excel_sheet_properties~hide_columns_from ).
CONDENSE lv_value NO-GAPS.
lo_element_2->set_attribute_ns( name = lc_xml_attr_min
value = lv_value ).
lo_element_2->set_attribute_ns( name = lc_xml_attr_max
value = '16384' ).
lo_element_2->set_attribute_ns( name = lc_xml_attr_hidden
value = '1' ).
lo_element->append_child( new_child = lo_element_2 ). " col node
ENDIF.
lo_element_root->append_child( new_child = lo_element ). " cols node
ENDIF.
*--------------------------------------------------------------------*
* Sheet content - use own method to create this
*--------------------------------------------------------------------*
lo_element = create_xl_sheet_sheet_data( io_worksheet = io_worksheet
io_document = lo_document ) .
lo_autofilters = excel->get_autofilters_reference( ).
lo_autofilter = lo_autofilters->get( io_worksheet = io_worksheet ) .
lo_element_root->append_child( new_child = lo_element ). " sheetData node
*< Begin of insertion Issue #572 - Protect sheet with filter caused Excel error
* Autofilter must be set AFTER sheet protection in XML
IF io_worksheet->zif_excel_sheet_protection~protected EQ abap_true.
" sheetProtection node
lo_element = lo_document->create_simple_element( name = lc_xml_node_sheetprotection
parent = lo_document ).
MOVE io_worksheet->zif_excel_sheet_protection~password TO lv_value.
IF lv_value IS NOT INITIAL.
lo_element->set_attribute_ns( name = lc_xml_attr_password
value = lv_value ).
ENDIF.
lv_value = io_worksheet->zif_excel_sheet_protection~auto_filter.
CONDENSE lv_value NO-GAPS.
lo_element->set_attribute_ns( name = lc_xml_attr_autofilter
value = lv_value ).
lv_value = io_worksheet->zif_excel_sheet_protection~delete_columns.
CONDENSE lv_value NO-GAPS.
lo_element->set_attribute_ns( name = lc_xml_attr_deletecolumns
value = lv_value ).
lv_value = io_worksheet->zif_excel_sheet_protection~delete_rows.
CONDENSE lv_value NO-GAPS.
lo_element->set_attribute_ns( name = lc_xml_attr_deleterows
value = lv_value ).
lv_value = io_worksheet->zif_excel_sheet_protection~format_cells.
CONDENSE lv_value NO-GAPS.
lo_element->set_attribute_ns( name = lc_xml_attr_formatcells
value = lv_value ).
lv_value = io_worksheet->zif_excel_sheet_protection~format_columns.
CONDENSE lv_value NO-GAPS.
lo_element->set_attribute_ns( name = lc_xml_attr_formatcolumns
value = lv_value ).
lv_value = io_worksheet->zif_excel_sheet_protection~format_rows.
CONDENSE lv_value NO-GAPS.
lo_element->set_attribute_ns( name = lc_xml_attr_formatrows
value = lv_value ).
lv_value = io_worksheet->zif_excel_sheet_protection~insert_columns.
CONDENSE lv_value NO-GAPS.
lo_element->set_attribute_ns( name = lc_xml_attr_insertcolumns
value = lv_value ).
lv_value = io_worksheet->zif_excel_sheet_protection~insert_hyperlinks.
CONDENSE lv_value NO-GAPS.
lo_element->set_attribute_ns( name = lc_xml_attr_inserthyperlinks
value = lv_value ).
lv_value = io_worksheet->zif_excel_sheet_protection~insert_rows.
CONDENSE lv_value NO-GAPS.
lo_element->set_attribute_ns( name = lc_xml_attr_insertrows
value = lv_value ).
lv_value = io_worksheet->zif_excel_sheet_protection~objects.
CONDENSE lv_value NO-GAPS.
lo_element->set_attribute_ns( name = lc_xml_attr_objects
value = lv_value ).
lv_value = io_worksheet->zif_excel_sheet_protection~pivot_tables.
CONDENSE lv_value NO-GAPS.
lo_element->set_attribute_ns( name = lc_xml_attr_pivottables
value = lv_value ).
lv_value = io_worksheet->zif_excel_sheet_protection~scenarios.
CONDENSE lv_value NO-GAPS.
lo_element->set_attribute_ns( name = lc_xml_attr_scenarios
value = lv_value ).
lv_value = io_worksheet->zif_excel_sheet_protection~select_locked_cells.
CONDENSE lv_value NO-GAPS.
lo_element->set_attribute_ns( name = lc_xml_attr_selectlockedcells
value = lv_value ).
lv_value = io_worksheet->zif_excel_sheet_protection~select_unlocked_cells.
CONDENSE lv_value NO-GAPS.
lo_element->set_attribute_ns( name = lc_xml_attr_selectunlockedcell
value = lv_value ).
lv_value = io_worksheet->zif_excel_sheet_protection~sheet.
CONDENSE lv_value NO-GAPS.
lo_element->set_attribute_ns( name = lc_xml_attr_sheet
value = lv_value ).
lv_value = io_worksheet->zif_excel_sheet_protection~sort.
CONDENSE lv_value NO-GAPS.
lo_element->set_attribute_ns( name = lc_xml_attr_sort
value = lv_value ).
lo_element_root->append_child( new_child = lo_element ).
ENDIF.
*> End of insertion Issue #572 - Protect sheet with filter caused Excel error
IF lo_autofilter IS BOUND.
* Create node autofilter
lo_element = lo_document->create_simple_element( name = lc_xml_node_autofilter
parent = lo_document ).
lv_ref = lo_autofilter->get_filter_range( ) .
CONDENSE lv_ref NO-GAPS.
lo_element->set_attribute_ns( name = lc_xml_attr_ref
value = lv_ref ).
lt_values = lo_autofilter->get_values( ) .
IF lt_values IS NOT INITIAL.
* If we filter we need to set the filter mode to 1.
lo_element_2 = lo_document->find_from_name( name = lc_xml_node_sheetpr ).
lo_element_2->set_attribute_ns( name = lc_xml_attr_filtermode
value = '1' ).
* Create node filtercolumn
CLEAR lv_column.
LOOP AT lt_values INTO ls_values.
IF ls_values-column <> lv_column.
IF lv_column IS NOT INITIAL.
lo_element_2->append_child( new_child = lo_element_3 ).
lo_element->append_child( new_child = lo_element_2 ).
ENDIF.
lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_filtercolumn
parent = lo_element ).
lv_column = ls_values-column - lo_autofilter->filter_area-col_start.
lv_value = lv_column.
CONDENSE lv_value NO-GAPS.
lo_element_2->set_attribute_ns( name = lc_xml_attr_colid
value = lv_value ).
lo_element_3 = lo_document->create_simple_element( name = lc_xml_node_filters
parent = lo_element_2 ).
lv_column = ls_values-column.
ENDIF.
lo_element_4 = lo_document->create_simple_element( name = lc_xml_node_filter
parent = lo_element_3 ).
lo_element_4->set_attribute_ns( name = lc_xml_attr_val
value = ls_values-value ).
lo_element_3->append_child( new_child = lo_element_4 ). " value node
ENDLOOP.
lo_element_2->append_child( new_child = lo_element_3 ).
lo_element->append_child( new_child = lo_element_2 ).
ENDIF.
lo_element_root->append_child( new_child = lo_element ).
ENDIF.
*< Comment for Issue #572 - Protect sheet with filter caused Excel error
* IF io_worksheet->zif_excel_sheet_protection~protected EQ abap_true.
* " sheetProtection node
* lo_element = lo_document->create_simple_element( name = lc_xml_node_sheetprotection
* parent = lo_document ).
* MOVE io_worksheet->zif_excel_sheet_protection~password TO lv_value.
* IF lv_value IS NOT INITIAL.
* lo_element->set_attribute_ns( name = lc_xml_attr_password
* value = lv_value ).
* ENDIF.
* lv_value = io_worksheet->zif_excel_sheet_protection~auto_filter.
* CONDENSE lv_value NO-GAPS.
* lo_element->set_attribute_ns( name = lc_xml_attr_autofilter
* value = lv_value ).
* lv_value = io_worksheet->zif_excel_sheet_protection~delete_columns.
* CONDENSE lv_value NO-GAPS.
* lo_element->set_attribute_ns( name = lc_xml_attr_deletecolumns
* value = lv_value ).
* lv_value = io_worksheet->zif_excel_sheet_protection~delete_rows.
* CONDENSE lv_value NO-GAPS.
* lo_element->set_attribute_ns( name = lc_xml_attr_deleterows
* value = lv_value ).
* lv_value = io_worksheet->zif_excel_sheet_protection~format_cells.
* CONDENSE lv_value NO-GAPS.
* lo_element->set_attribute_ns( name = lc_xml_attr_formatcells
* value = lv_value ).
* lv_value = io_worksheet->zif_excel_sheet_protection~format_columns.
* CONDENSE lv_value NO-GAPS.
* lo_element->set_attribute_ns( name = lc_xml_attr_formatcolumns
* value = lv_value ).
* lv_value = io_worksheet->zif_excel_sheet_protection~format_rows.
* CONDENSE lv_value NO-GAPS.
* lo_element->set_attribute_ns( name = lc_xml_attr_formatrows
* value = lv_value ).
* lv_value = io_worksheet->zif_excel_sheet_protection~insert_columns.
* CONDENSE lv_value NO-GAPS.
* lo_element->set_attribute_ns( name = lc_xml_attr_insertcolumns
* value = lv_value ).
* lv_value = io_worksheet->zif_excel_sheet_protection~insert_hyperlinks.
* CONDENSE lv_value NO-GAPS.
* lo_element->set_attribute_ns( name = lc_xml_attr_inserthyperlinks
* value = lv_value ).
* lv_value = io_worksheet->zif_excel_sheet_protection~insert_rows.
* CONDENSE lv_value NO-GAPS.
* lo_element->set_attribute_ns( name = lc_xml_attr_insertrows
* value = lv_value ).
* lv_value = io_worksheet->zif_excel_sheet_protection~objects.
* CONDENSE lv_value NO-GAPS.
* lo_element->set_attribute_ns( name = lc_xml_attr_objects
* value = lv_value ).
* lv_value = io_worksheet->zif_excel_sheet_protection~pivot_tables.
* CONDENSE lv_value NO-GAPS.
* lo_element->set_attribute_ns( name = lc_xml_attr_pivottables
* value = lv_value ).
* lv_value = io_worksheet->zif_excel_sheet_protection~scenarios.
* CONDENSE lv_value NO-GAPS.
* lo_element->set_attribute_ns( name = lc_xml_attr_scenarios
* value = lv_value ).
* lv_value = io_worksheet->zif_excel_sheet_protection~select_locked_cells.
* CONDENSE lv_value NO-GAPS.
* lo_element->set_attribute_ns( name = lc_xml_attr_selectlockedcells
* value = lv_value ).
* lv_value = io_worksheet->zif_excel_sheet_protection~select_unlocked_cells.
* CONDENSE lv_value NO-GAPS.
* lo_element->set_attribute_ns( name = lc_xml_attr_selectunlockedcell
* value = lv_value ).
* lv_value = io_worksheet->zif_excel_sheet_protection~sheet.
* CONDENSE lv_value NO-GAPS.
* lo_element->set_attribute_ns( name = lc_xml_attr_sheet
* value = lv_value ).
* lv_value = io_worksheet->zif_excel_sheet_protection~sort.
* CONDENSE lv_value NO-GAPS.
* lo_element->set_attribute_ns( name = lc_xml_attr_sort
* value = lv_value ).
*
* lo_element_root->append_child( new_child = lo_element ).
* ENDIF.
*> End of Comment for Issue #572 - Protect sheet with filter caused Excel error
" Merged cells
lt_range_merge = io_worksheet->get_merge( ).
IF lt_range_merge IS NOT INITIAL.
lo_element = lo_document->create_simple_element( name = lc_xml_node_mergecells
parent = lo_document ).
DESCRIBE TABLE lt_range_merge LINES merge_count.
lv_value = merge_count.
CONDENSE lv_value.
lo_element->set_attribute_ns( name = lc_xml_attr_count
value = lv_value ).
LOOP AT lt_range_merge ASSIGNING <fs_range_merge>.
lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_mergecell
parent = lo_document ).
lo_element_2->set_attribute_ns( name = lc_xml_attr_ref
value = <fs_range_merge> ).
lo_element->append_child( new_child = lo_element_2 ).
lo_element_root->append_child( new_child = lo_element ).
io_worksheet->delete_merge( ).
ENDLOOP.
ENDIF.
" Conditional formatting node
lo_iterator = io_worksheet->get_style_cond_iterator( ).
WHILE lo_iterator->has_next( ) EQ abap_true.
lo_style_cond ?= lo_iterator->get_next( ).
IF lo_style_cond->rule IS INITIAL.
CONTINUE.
ENDIF.
lv_value = lo_style_cond->get_dimension_range( ).
READ TABLE lt_condformating_ranges WITH KEY dimension_range = lv_value ASSIGNING <ls_condformating_range>.
IF sy-subrc = 0.
lo_element = <ls_condformating_range>-condformatting_node.
ELSE.
lo_element = lo_document->create_simple_element( name = lc_xml_node_condformatting
parent = lo_document ).
lo_element->set_attribute_ns( name = lc_xml_attr_sqref
value = lv_value ).
ls_condformating_range-dimension_range = lv_value.
ls_condformating_range-condformatting_node = lo_element.
INSERT ls_condformating_range INTO TABLE lt_condformating_ranges.
ENDIF.
" cfRule node
lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_cfrule
parent = lo_document ).
IF lo_style_cond->rule = zcl_excel_style_cond=>c_rule_textfunction.
IF lo_style_cond->mode_textfunction-textfunction = zcl_excel_style_cond=>c_textfunction_notcontains.
lv_value = `notContainsText`.
ELSE.
lv_value = lo_style_cond->mode_textfunction-textfunction.
ENDIF.
ELSE.
lv_value = lo_style_cond->rule.
ENDIF.
lo_element_2->set_attribute_ns( name = lc_xml_attr_type
value = lv_value ).
lv_value = lo_style_cond->priority.
SHIFT lv_value RIGHT DELETING TRAILING space.
SHIFT lv_value LEFT DELETING LEADING space.
lo_element_2->set_attribute_ns( name = lc_xml_attr_priority
value = lv_value ).
CASE lo_style_cond->rule.
" Start >> Databar by Albert Lladanosa
WHEN zcl_excel_style_cond=>c_rule_databar.
ls_databar = lo_style_cond->mode_databar.
CLEAR lt_cfvo.
lo_element_3 = lo_document->create_simple_element( name = lc_xml_node_databar
parent = lo_document ).
MOVE ls_databar-cfvo1_value TO ls_cfvo-value.
MOVE ls_databar-cfvo1_type TO ls_cfvo-type.
APPEND ls_cfvo TO lt_cfvo.
MOVE ls_databar-cfvo2_value TO ls_cfvo-value.
MOVE ls_databar-cfvo2_type TO ls_cfvo-type.
APPEND ls_cfvo TO lt_cfvo.
LOOP AT lt_cfvo INTO ls_cfvo.
" cfvo node
lo_element_4 = lo_document->create_simple_element( name = lc_xml_node_cfvo
parent = lo_document ).
lv_value = ls_cfvo-type.
lo_element_4->set_attribute_ns( name = lc_xml_attr_type
value = lv_value ).
lv_value = ls_cfvo-value.
lo_element_4->set_attribute_ns( name = lc_xml_attr_val
value = lv_value ).
lo_element_3->append_child( new_child = lo_element_4 ). " cfvo node
ENDLOOP.
lo_element_4 = lo_document->create_simple_element( name = lc_xml_node_color
parent = lo_document ).
lv_value = ls_databar-colorrgb.
lo_element_4->set_attribute_ns( name = lc_xml_attr_tabcolor_rgb
value = lv_value ).
lo_element_3->append_child( new_child = lo_element_4 ). " color node
lo_element_2->append_child( new_child = lo_element_3 ). " databar node
" End << Databar by Albert Lladanosa
WHEN zcl_excel_style_cond=>c_rule_colorscale.
ls_colorscale = lo_style_cond->mode_colorscale.
CLEAR: lt_cfvo, lt_colors.
lo_element_3 = lo_document->create_simple_element( name = lc_xml_node_colorscale
parent = lo_document ).
MOVE ls_colorscale-cfvo1_value TO ls_cfvo-value.
MOVE ls_colorscale-cfvo1_type TO ls_cfvo-type.
APPEND ls_cfvo TO lt_cfvo.
MOVE ls_colorscale-cfvo2_value TO ls_cfvo-value.
MOVE ls_colorscale-cfvo2_type TO ls_cfvo-type.
APPEND ls_cfvo TO lt_cfvo.
MOVE ls_colorscale-cfvo3_value TO ls_cfvo-value.
MOVE ls_colorscale-cfvo3_type TO ls_cfvo-type.
APPEND ls_cfvo TO lt_cfvo.
APPEND ls_colorscale-colorrgb1 TO lt_colors.
APPEND ls_colorscale-colorrgb2 TO lt_colors.
APPEND ls_colorscale-colorrgb3 TO lt_colors.
LOOP AT lt_cfvo INTO ls_cfvo.
IF ls_cfvo IS INITIAL.
CONTINUE.
ENDIF.
" cfvo node
lo_element_4 = lo_document->create_simple_element( name = lc_xml_node_cfvo
parent = lo_document ).
lv_value = ls_cfvo-type.
lo_element_4->set_attribute_ns( name = lc_xml_attr_type
value = lv_value ).
lv_value = ls_cfvo-value.
lo_element_4->set_attribute_ns( name = lc_xml_attr_val
value = lv_value ).
lo_element_3->append_child( new_child = lo_element_4 ). " cfvo node
ENDLOOP.
LOOP AT lt_colors INTO ls_colors.
IF ls_colors IS INITIAL.
CONTINUE.
ENDIF.
lo_element_4 = lo_document->create_simple_element( name = lc_xml_node_color
parent = lo_document ).
lv_value = ls_colors-colorrgb.
lo_element_4->set_attribute_ns( name = lc_xml_attr_tabcolor_rgb
value = lv_value ).
lo_element_3->append_child( new_child = lo_element_4 ). " color node
ENDLOOP.
lo_element_2->append_child( new_child = lo_element_3 ). " databar node
WHEN zcl_excel_style_cond=>c_rule_iconset.
ls_iconset = lo_style_cond->mode_iconset.
CLEAR lt_cfvo.
" iconset node
lo_element_3 = lo_document->create_simple_element( name = lc_xml_node_iconset
parent = lo_document ).
IF ls_iconset-iconset NE zcl_excel_style_cond=>c_iconset_3trafficlights.
lv_value = ls_iconset-iconset.
lo_element_3->set_attribute_ns( name = lc_xml_attr_iconset
value = lv_value ).
ENDIF.
" Set the showValue attribute
lv_value = ls_iconset-showvalue.
lo_element_3->set_attribute_ns( name = lc_xml_attr_showvalue
value = lv_value ).
CASE ls_iconset-iconset.
WHEN zcl_excel_style_cond=>c_iconset_3trafficlights2 OR
zcl_excel_style_cond=>c_iconset_3arrows OR
zcl_excel_style_cond=>c_iconset_3arrowsgray OR
zcl_excel_style_cond=>c_iconset_3flags OR
zcl_excel_style_cond=>c_iconset_3signs OR
zcl_excel_style_cond=>c_iconset_3symbols OR
zcl_excel_style_cond=>c_iconset_3symbols2 OR
zcl_excel_style_cond=>c_iconset_3trafficlights OR
zcl_excel_style_cond=>c_iconset_3trafficlights2.
MOVE ls_iconset-cfvo1_value TO ls_cfvo-value.
MOVE ls_iconset-cfvo1_type TO ls_cfvo-type.
APPEND ls_cfvo TO lt_cfvo.
MOVE ls_iconset-cfvo2_value TO ls_cfvo-value.
MOVE ls_iconset-cfvo2_type TO ls_cfvo-type.
APPEND ls_cfvo TO lt_cfvo.
MOVE ls_iconset-cfvo3_value TO ls_cfvo-value.
MOVE ls_iconset-cfvo3_type TO ls_cfvo-type.
APPEND ls_cfvo TO lt_cfvo.
WHEN zcl_excel_style_cond=>c_iconset_4arrows OR
zcl_excel_style_cond=>c_iconset_4arrowsgray OR
zcl_excel_style_cond=>c_iconset_4rating OR
zcl_excel_style_cond=>c_iconset_4redtoblack OR
zcl_excel_style_cond=>c_iconset_4trafficlights.
MOVE ls_iconset-cfvo1_value TO ls_cfvo-value.
MOVE ls_iconset-cfvo1_type TO ls_cfvo-type.
APPEND ls_cfvo TO lt_cfvo.
MOVE ls_iconset-cfvo2_value TO ls_cfvo-value.
MOVE ls_iconset-cfvo2_type TO ls_cfvo-type.
APPEND ls_cfvo TO lt_cfvo.
MOVE ls_iconset-cfvo3_value TO ls_cfvo-value.
MOVE ls_iconset-cfvo3_type TO ls_cfvo-type.
APPEND ls_cfvo TO lt_cfvo.
MOVE ls_iconset-cfvo4_value TO ls_cfvo-value.
MOVE ls_iconset-cfvo4_type TO ls_cfvo-type.
APPEND ls_cfvo TO lt_cfvo.
WHEN zcl_excel_style_cond=>c_iconset_5arrows OR
zcl_excel_style_cond=>c_iconset_5arrowsgray OR
zcl_excel_style_cond=>c_iconset_5quarters OR
zcl_excel_style_cond=>c_iconset_5rating.
MOVE ls_iconset-cfvo1_value TO ls_cfvo-value.
MOVE ls_iconset-cfvo1_type TO ls_cfvo-type.
APPEND ls_cfvo TO lt_cfvo.
MOVE ls_iconset-cfvo2_value TO ls_cfvo-value.
MOVE ls_iconset-cfvo2_type TO ls_cfvo-type.
APPEND ls_cfvo TO lt_cfvo.
MOVE ls_iconset-cfvo3_value TO ls_cfvo-value.
MOVE ls_iconset-cfvo3_type TO ls_cfvo-type.
APPEND ls_cfvo TO lt_cfvo.
MOVE ls_iconset-cfvo4_value TO ls_cfvo-value.
MOVE ls_iconset-cfvo4_type TO ls_cfvo-type.
APPEND ls_cfvo TO lt_cfvo.
MOVE ls_iconset-cfvo5_value TO ls_cfvo-value.
MOVE ls_iconset-cfvo5_type TO ls_cfvo-type.
APPEND ls_cfvo TO lt_cfvo.
WHEN OTHERS.
CLEAR lt_cfvo.
ENDCASE.
LOOP AT lt_cfvo INTO ls_cfvo.
" cfvo node
lo_element_4 = lo_document->create_simple_element( name = lc_xml_node_cfvo
parent = lo_document ).
lv_value = ls_cfvo-type.
lo_element_4->set_attribute_ns( name = lc_xml_attr_type
value = lv_value ).
lv_value = ls_cfvo-value.
lo_element_4->set_attribute_ns( name = lc_xml_attr_val
value = lv_value ).
lo_element_3->append_child( new_child = lo_element_4 ). " cfvo node
ENDLOOP.
lo_element_2->append_child( new_child = lo_element_3 ). " iconset node
WHEN zcl_excel_style_cond=>c_rule_cellis.
ls_cellis = lo_style_cond->mode_cellis.
READ TABLE me->styles_cond_mapping INTO ls_style_cond_mapping WITH KEY guid = ls_cellis-cell_style.
lv_value = ls_style_cond_mapping-dxf.
CONDENSE lv_value.
lo_element_2->set_attribute_ns( name = lc_xml_attr_dxfid
value = lv_value ).
lv_value = ls_cellis-operator.
lo_element_2->set_attribute_ns( name = lc_xml_attr_operator
value = lv_value ).
" formula node
lo_element_3 = lo_document->create_simple_element( name = lc_xml_node_formula
parent = lo_document ).
lv_value = ls_cellis-formula.
lo_element_3->set_value( value = lv_value ).
lo_element_2->append_child( new_child = lo_element_3 ). " formula node
IF ls_cellis-formula2 IS NOT INITIAL.
lv_value = ls_cellis-formula2.
lo_element_3 = lo_document->create_simple_element( name = lc_xml_node_formula
parent = lo_document ).
lo_element_3->set_value( value = lv_value ).
lo_element_2->append_child( new_child = lo_element_3 ). " 2nd formula node
ENDIF.
*--------------------------------------------------------------------------------------*
* The below code creates an EXM structure in the following format:
* -<conditionalFormatting sqref="G6:G12">-
* <cfRule operator="beginsWith" priority="4" dxfId="4" type="beginsWith" text="1">
* <formula>LEFT(G6,LEN("1"))="1"</formula>
* </cfRule>
* </conditionalFormatting>
*--------------------------------------------------------------------------------------*
WHEN zcl_excel_style_cond=>c_rule_textfunction.
ls_textfunction = lo_style_cond->mode_textfunction.
READ TABLE me->styles_cond_mapping INTO ls_style_cond_mapping WITH KEY guid = ls_cellis-cell_style.
lv_value = ls_style_cond_mapping-dxf.
CONDENSE lv_value.
lo_element_2->set_attribute_ns( name = lc_xml_attr_dxfid
value = lv_value ).
lv_value = ls_textfunction-textfunction.
lo_element_2->set_attribute_ns( name = lc_xml_attr_operator
value = lv_value ).
" text
lv_value = ls_textfunction-text.
lo_element_2->set_attribute_ns( name = lc_xml_attr_text
value = lv_value ).
" formula node
zcl_excel_common=>convert_range2column_a_row(
EXPORTING
i_range = lo_style_cond->get_dimension_range( )
IMPORTING
e_column_start = lv_column_start
e_row_start = lv_row_start ).
lv_cell_coords = |{ lv_column_start }{ lv_row_start }|.
CASE ls_textfunction-textfunction.
WHEN zcl_excel_style_cond=>c_textfunction_beginswith.
lv_value = |LEFT({ lv_cell_coords },LEN("{ escape( val = ls_textfunction-text format = cl_abap_format=>e_html_text ) }"))=|
&& |"{ escape( val = ls_textfunction-text format = cl_abap_format=>e_html_text ) }"|.
WHEN zcl_excel_style_cond=>c_textfunction_containstext.
lv_value = |NOT(ISERROR(SEARCH("{ escape( val = ls_textfunction-text format = cl_abap_format=>e_html_text ) }",{ lv_cell_coords })))|.
WHEN zcl_excel_style_cond=>c_textfunction_endswith.
lv_value = |RIGHT({ lv_cell_coords },LEN("{ escape( val = ls_textfunction-text format = cl_abap_format=>e_html_text ) }"))=|
&& |"{ escape( val = ls_textfunction-text format = cl_abap_format=>e_html_text ) }"|.
WHEN zcl_excel_style_cond=>c_textfunction_notcontains.
lv_value = |ISERROR(SEARCH("{ escape( val = ls_textfunction-text format = cl_abap_format=>e_html_text ) }",{ lv_cell_coords }))|.
WHEN OTHERS.
ENDCASE.
lo_element_3 = lo_document->create_simple_element( name = lc_xml_node_formula
parent = lo_document ).
lo_element_3->set_value( value = lv_value ).
lo_element_2->append_child( new_child = lo_element_3 ). " formula node
WHEN zcl_excel_style_cond=>c_rule_expression.
ls_expression = lo_style_cond->mode_expression.
READ TABLE me->styles_cond_mapping INTO ls_style_cond_mapping WITH KEY guid = ls_expression-cell_style.
lv_value = ls_style_cond_mapping-dxf.
CONDENSE lv_value.
lo_element_2->set_attribute_ns( name = lc_xml_attr_dxfid
value = lv_value ).
" formula node
lo_element_3 = lo_document->create_simple_element( name = lc_xml_node_formula
parent = lo_document ).
lv_value = ls_expression-formula.
lo_element_3->set_value( value = lv_value ).
lo_element_2->append_child( new_child = lo_element_3 ). " formula node
* begin of ins issue #366 - missing conditional rules: top10
WHEN zcl_excel_style_cond=>c_rule_top10.
ls_conditional_top10 = lo_style_cond->mode_top10.
READ TABLE me->styles_cond_mapping INTO ls_style_cond_mapping WITH KEY guid = ls_conditional_top10-cell_style.
lv_value = ls_style_cond_mapping-dxf.
CONDENSE lv_value.
lo_element_2->set_attribute_ns( name = lc_xml_attr_dxfid
value = lv_value ).
lv_value = ls_conditional_top10-topxx_count.
CONDENSE lv_value.
lo_element_2->set_attribute_ns( name = 'rank'
value = lv_value ).
IF ls_conditional_top10-bottom = 'X'.
lo_element_2->set_attribute_ns( name = 'bottom'
value = '1' ).
ENDIF.
IF ls_conditional_top10-percent = 'X'.
lo_element_2->set_attribute_ns( name = 'percent'
value ='1' ).
ENDIF.
WHEN zcl_excel_style_cond=>c_rule_above_average.
ls_conditional_above_avg = lo_style_cond->mode_above_average.
READ TABLE me->styles_cond_mapping INTO ls_style_cond_mapping WITH KEY guid = ls_conditional_above_avg-cell_style.
lv_value = ls_style_cond_mapping-dxf.
CONDENSE lv_value.
lo_element_2->set_attribute_ns( name = lc_xml_attr_dxfid
value = lv_value ).
IF ls_conditional_above_avg-above_average IS INITIAL. " = below average
lo_element_2->set_attribute_ns( name = 'aboveAverage'
value = '0' ).
ENDIF.
IF ls_conditional_above_avg-equal_average = 'X'. " = equal average also
lo_element_2->set_attribute_ns( name = 'equalAverage'
value = '1' ).
ENDIF.
IF ls_conditional_above_avg-standard_deviation <> 0. " standard deviation instead of value
lv_value = ls_conditional_above_avg-standard_deviation.
lo_element_2->set_attribute_ns( name = 'stdDev'
value = lv_value ).
ENDIF.
* end of ins issue #366 - missing conditional rules: top10
ENDCASE.
lo_element->append_child( new_child = lo_element_2 ). " cfRule node
lo_element_root->append_child( new_child = lo_element ). " Conditional formatting node
ENDWHILE.
IF io_worksheet->get_data_validations_size( ) GT 0.
" dataValidations node
lo_element = lo_document->create_simple_element( name = lc_xml_node_datavalidations
parent = lo_document ).
" Conditional formatting node
lo_iterator = io_worksheet->get_data_validations_iterator( ).
WHILE lo_iterator->has_next( ) EQ abap_true.
lo_data_validation ?= lo_iterator->get_next( ).
" dataValidation node
lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_datavalidation
parent = lo_document ).
lv_value = lo_data_validation->type.
lo_element_2->set_attribute_ns( name = lc_xml_attr_type
value = lv_value ).
IF NOT lo_data_validation->operator IS INITIAL.
lv_value = lo_data_validation->operator.
lo_element_2->set_attribute_ns( name = lc_xml_attr_operator
value = lv_value ).
ENDIF.
IF lo_data_validation->allowblank EQ abap_true.
lv_value = '1'.
ELSE.
lv_value = '0'.
ENDIF.
lo_element_2->set_attribute_ns( name = lc_xml_attr_allowblank
value = lv_value ).
IF lo_data_validation->showinputmessage EQ abap_true.
lv_value = '1'.
ELSE.
lv_value = '0'.
ENDIF.
lo_element_2->set_attribute_ns( name = lc_xml_attr_showinputmessage
value = lv_value ).
IF lo_data_validation->showerrormessage EQ abap_true.
lv_value = '1'.
ELSE.
lv_value = '0'.
ENDIF.
lo_element_2->set_attribute_ns( name = lc_xml_attr_showerrormessage
value = lv_value ).
IF lo_data_validation->showdropdown EQ abap_true.
lv_value = '1'.
ELSE.
lv_value = '0'.
ENDIF.
lo_element_2->set_attribute_ns( name = lc_xml_attr_showdropdown
value = lv_value ).
IF NOT lo_data_validation->errortitle IS INITIAL.
lv_value = lo_data_validation->errortitle.
lo_element_2->set_attribute_ns( name = lc_xml_attr_errortitle
value = lv_value ).
ENDIF.
IF NOT lo_data_validation->error IS INITIAL.
lv_value = lo_data_validation->error.
lo_element_2->set_attribute_ns( name = lc_xml_attr_error
value = lv_value ).
ENDIF.
IF NOT lo_data_validation->errorstyle IS INITIAL.
lv_value = lo_data_validation->errorstyle.
lo_element_2->set_attribute_ns( name = lc_xml_attr_errorstyle
value = lv_value ).
ENDIF.
IF NOT lo_data_validation->prompttitle IS INITIAL.
lv_value = lo_data_validation->prompttitle.
lo_element_2->set_attribute_ns( name = lc_xml_attr_prompttitle
value = lv_value ).
ENDIF.
IF NOT lo_data_validation->prompt IS INITIAL.
lv_value = lo_data_validation->prompt.
lo_element_2->set_attribute_ns( name = lc_xml_attr_prompt
value = lv_value ).
ENDIF.
lv_cell_row_s = lo_data_validation->cell_row.
CONDENSE lv_cell_row_s.
CONCATENATE lo_data_validation->cell_column lv_cell_row_s INTO lv_value.
IF lo_data_validation->cell_row_to IS NOT INITIAL.
lv_cell_row_s = lo_data_validation->cell_row_to.
CONDENSE lv_cell_row_s.
CONCATENATE lv_value ':' lo_data_validation->cell_column_to lv_cell_row_s INTO lv_value.
ENDIF.
lo_element_2->set_attribute_ns( name = lc_xml_attr_sqref
value = lv_value ).
" formula1 node
lo_element_3 = lo_document->create_simple_element( name = lc_xml_node_formula1
parent = lo_document ).
lv_value = lo_data_validation->formula1.
lo_element_3->set_value( value = lv_value ).
lo_element_2->append_child( new_child = lo_element_3 ). " formula1 node
" formula2 node
IF NOT lo_data_validation->formula2 IS INITIAL.
lo_element_3 = lo_document->create_simple_element( name = lc_xml_node_formula2
parent = lo_document ).
lv_value = lo_data_validation->formula2.
lo_element_3->set_value( value = lv_value ).
lo_element_2->append_child( new_child = lo_element_3 ). " formula2 node
ENDIF.
lo_element->append_child( new_child = lo_element_2 ). " dataValidation node
ENDWHILE.
lo_element_root->append_child( new_child = lo_element ). " dataValidations node
ENDIF.
" Hyperlinks
DATA: lv_hyperlinks_count TYPE i,
lo_link TYPE REF TO zcl_excel_hyperlink.
lv_hyperlinks_count = io_worksheet->get_hyperlinks_size( ).
IF lv_hyperlinks_count > 0.
lo_element = lo_document->create_simple_element( name = 'hyperlinks'
parent = lo_document ).
lo_iterator = io_worksheet->get_hyperlinks_iterator( ).
WHILE lo_iterator->has_next( ) EQ abap_true.
lo_link ?= lo_iterator->get_next( ).
lo_element_2 = lo_document->create_simple_element( name = 'hyperlink'
parent = lo_element ).
lv_value = lo_link->get_ref( ).
lo_element_2->set_attribute_ns( name = 'ref'
value = lv_value ).
IF lo_link->is_internal( ) = abap_true.
lv_value = lo_link->get_url( ).
lo_element_2->set_attribute_ns( name = 'location'
value = lv_value ).
ELSE.
ADD 1 TO lv_relation_id.
lv_value = lv_relation_id.
CONDENSE lv_value.
CONCATENATE 'rId' lv_value INTO lv_value.
lo_element_2->set_attribute_ns( name = 'r:id'
value = lv_value ).
ENDIF.
lo_element->append_child( new_child = lo_element_2 ).
ENDWHILE.
lo_element_root->append_child( new_child = lo_element ).
ENDIF.
" PrintOptions
IF io_worksheet->print_gridlines = abap_true OR
io_worksheet->sheet_setup->vertical_centered = abap_true OR
io_worksheet->sheet_setup->horizontal_centered = abap_true.
lo_element = lo_document->create_simple_element( name = 'printOptions'
parent = lo_document ).
IF io_worksheet->print_gridlines = abap_true.
lo_element->set_attribute_ns( name = lc_xml_attr_gridlines
value = 'true' ).
ENDIF.
IF io_worksheet->sheet_setup->horizontal_centered = abap_true.
lo_element->set_attribute_ns( name = 'horizontalCentered'
value = 'true' ).
ENDIF.
IF io_worksheet->sheet_setup->vertical_centered = abap_true.
lo_element->set_attribute_ns( name = 'verticalCentered'
value = 'true' ).
ENDIF.
lo_element_root->append_child( new_child = lo_element ).
ENDIF.
" pageMargins node
lo_element = lo_document->create_simple_element( name = lc_xml_node_pagemargins
parent = lo_document ).
lv_value = io_worksheet->sheet_setup->margin_left.
CONDENSE lv_value NO-GAPS.
lo_element->set_attribute_ns( name = lc_xml_attr_left
value = lv_value ).
lv_value = io_worksheet->sheet_setup->margin_right.
CONDENSE lv_value NO-GAPS.
lo_element->set_attribute_ns( name = lc_xml_attr_right
value = lv_value ).
lv_value = io_worksheet->sheet_setup->margin_top.
CONDENSE lv_value NO-GAPS.
lo_element->set_attribute_ns( name = lc_xml_attr_top
value = lv_value ).
lv_value = io_worksheet->sheet_setup->margin_bottom.
CONDENSE lv_value NO-GAPS.
lo_element->set_attribute_ns( name = lc_xml_attr_bottom
value = lv_value ).
lv_value = io_worksheet->sheet_setup->margin_header.
CONDENSE lv_value NO-GAPS.
lo_element->set_attribute_ns( name = lc_xml_attr_header
value = lv_value ).
lv_value = io_worksheet->sheet_setup->margin_footer.
CONDENSE lv_value NO-GAPS.
lo_element->set_attribute_ns( name = lc_xml_attr_footer
value = lv_value ).
lo_element_root->append_child( new_child = lo_element ). " pageMargins node
* pageSetup node
lo_element = lo_document->create_simple_element( name = lc_xml_node_pagesetup
parent = lo_document ).
IF io_worksheet->sheet_setup->black_and_white IS NOT INITIAL.
CONDENSE lv_value NO-GAPS.
lo_element->set_attribute_ns( name = lc_xml_attr_blackandwhite
value = `1` ).
ENDIF.
IF io_worksheet->sheet_setup->cell_comments IS NOT INITIAL.
CONDENSE lv_value NO-GAPS.
lo_element->set_attribute_ns( name = lc_xml_attr_cellcomments
value = io_worksheet->sheet_setup->cell_comments ).
ENDIF.
IF io_worksheet->sheet_setup->copies IS NOT INITIAL.
lv_value = io_worksheet->sheet_setup->copies.
CONDENSE lv_value NO-GAPS.
lo_element->set_attribute_ns( name = lc_xml_attr_copies
value = lv_value ).
ENDIF.
IF io_worksheet->sheet_setup->draft IS NOT INITIAL.
CONDENSE lv_value NO-GAPS.
lo_element->set_attribute_ns( name = lc_xml_attr_draft
value = `1` ).
ENDIF.
IF io_worksheet->sheet_setup->errors IS NOT INITIAL.
CONDENSE lv_value NO-GAPS.
lo_element->set_attribute_ns( name = lc_xml_attr_errors
value = io_worksheet->sheet_setup->errors ).
ENDIF.
IF io_worksheet->sheet_setup->first_page_number IS NOT INITIAL.
lv_value = io_worksheet->sheet_setup->first_page_number.
CONDENSE lv_value NO-GAPS.
lo_element->set_attribute_ns( name = lc_xml_attr_firstpagenumber
value = lv_value ).
ENDIF.
IF io_worksheet->sheet_setup->fit_to_page IS NOT INITIAL.
lv_value = io_worksheet->sheet_setup->fit_to_height.
CONDENSE lv_value NO-GAPS.
lo_element->set_attribute_ns( name = lc_xml_attr_fittoheight
value = lv_value ).
lv_value = io_worksheet->sheet_setup->fit_to_width.
CONDENSE lv_value NO-GAPS.
lo_element->set_attribute_ns( name = lc_xml_attr_fittowidth
value = lv_value ).
ENDIF.
IF io_worksheet->sheet_setup->horizontal_dpi IS NOT INITIAL.
lv_value = io_worksheet->sheet_setup->horizontal_dpi.
CONDENSE lv_value NO-GAPS.
lo_element->set_attribute_ns( name = lc_xml_attr_horizontaldpi
value = lv_value ).
ENDIF.
IF io_worksheet->sheet_setup->orientation IS NOT INITIAL.
lv_value = io_worksheet->sheet_setup->orientation.
lo_element->set_attribute_ns( name = lc_xml_attr_orientation
value = lv_value ).
ENDIF.
IF io_worksheet->sheet_setup->page_order IS NOT INITIAL.
lo_element->set_attribute_ns( name = lc_xml_attr_pageorder
value = io_worksheet->sheet_setup->page_order ).
ENDIF.
IF io_worksheet->sheet_setup->paper_height IS NOT INITIAL.
lv_value = io_worksheet->sheet_setup->paper_height.
CONDENSE lv_value NO-GAPS.
lo_element->set_attribute_ns( name = lc_xml_attr_paperheight
value = lv_value ).
ENDIF.
IF io_worksheet->sheet_setup->paper_size IS NOT INITIAL.
lv_value = io_worksheet->sheet_setup->paper_size.
CONDENSE lv_value NO-GAPS.
lo_element->set_attribute_ns( name = lc_xml_attr_papersize
value = lv_value ).
ENDIF.
IF io_worksheet->sheet_setup->paper_width IS NOT INITIAL.
lv_value = io_worksheet->sheet_setup->paper_width.
CONDENSE lv_value NO-GAPS.
lo_element->set_attribute_ns( name = lc_xml_attr_paperwidth
value = lv_value ).
ENDIF.
IF io_worksheet->sheet_setup->scale IS NOT INITIAL.
lv_value = io_worksheet->sheet_setup->scale.
CONDENSE lv_value NO-GAPS.
lo_element->set_attribute_ns( name = lc_xml_attr_scale
value = lv_value ).
ENDIF.
IF io_worksheet->sheet_setup->use_first_page_num IS NOT INITIAL.
lo_element->set_attribute_ns( name = lc_xml_attr_usefirstpagenumber
value = `1` ).
ENDIF.
IF io_worksheet->sheet_setup->use_printer_defaults IS NOT INITIAL.
lo_element->set_attribute_ns( name = lc_xml_attr_useprinterdefaults
value = `1` ).
ENDIF.
IF io_worksheet->sheet_setup->vertical_dpi IS NOT INITIAL.
lv_value = io_worksheet->sheet_setup->vertical_dpi.
CONDENSE lv_value NO-GAPS.
lo_element->set_attribute_ns( name = lc_xml_attr_verticaldpi
value = lv_value ).
ENDIF.
lo_element_root->append_child( new_child = lo_element ). " pageSetup node
* { headerFooter necessary? >
IF io_worksheet->sheet_setup->odd_header IS NOT INITIAL
OR io_worksheet->sheet_setup->odd_footer IS NOT INITIAL
OR io_worksheet->sheet_setup->diff_oddeven_headerfooter = abap_true.
lo_element = lo_document->create_simple_element( name = lc_xml_node_headerfooter
parent = lo_document ).
" Different header/footer for odd/even pages?
IF io_worksheet->sheet_setup->diff_oddeven_headerfooter = abap_true.
lo_element->set_attribute_ns( name = lc_xml_attr_differentoddeven
value = '1' ).
ENDIF.
" OddHeader
CLEAR: lv_value.
io_worksheet->sheet_setup->get_header_footer_string( IMPORTING ep_odd_header = lv_value ) .
IF lv_value IS NOT INITIAL.
lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_oddheader
parent = lo_document ).
lo_element_2->set_value( value = lv_value ).
lo_element->append_child( new_child = lo_element_2 ).
ENDIF.
" OddFooter
CLEAR: lv_value.
io_worksheet->sheet_setup->get_header_footer_string( IMPORTING ep_odd_footer = lv_value ) .
IF lv_value IS NOT INITIAL.
lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_oddfooter
parent = lo_document ).
lo_element_2->set_value( value = lv_value ).
lo_element->append_child( new_child = lo_element_2 ).
ENDIF.
" evenHeader
CLEAR: lv_value.
io_worksheet->sheet_setup->get_header_footer_string( IMPORTING ep_even_header = lv_value ) .
IF lv_value IS NOT INITIAL.
lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_evenheader
parent = lo_document ).
lo_element_2->set_value( value = lv_value ).
lo_element->append_child( new_child = lo_element_2 ).
ENDIF.
" evenFooter
CLEAR: lv_value.
io_worksheet->sheet_setup->get_header_footer_string( IMPORTING ep_even_footer = lv_value ) .
IF lv_value IS NOT INITIAL.
lo_element_2 = lo_document->create_simple_element( name = lc_xml_node_evenfooter
parent = lo_document ).
lo_element_2->set_value( value = lv_value ).
lo_element->append_child( new_child = lo_element_2 ).
ENDIF.
lo_element_root->append_child( new_child = lo_element ). " headerFooter
ENDIF.
* issue #377 pagebreaks
TRY.
create_xl_sheet_pagebreaks( io_document = lo_document
io_parent = lo_element_root
io_worksheet = io_worksheet ) .
CATCH zcx_excel. " Ignore Hyperlink reading errors - pass everything we were able to identify
ENDTRY.
* drawing
DATA: lo_drawings TYPE REF TO zcl_excel_drawings.
lo_drawings = io_worksheet->get_drawings( ).
IF lo_drawings->is_empty( ) = abap_false.
lo_element = lo_document->create_simple_element( name = lc_xml_node_drawing
parent = lo_document ).
ADD 1 TO lv_relation_id.
lv_value = lv_relation_id.
CONDENSE lv_value.
CONCATENATE 'rId' lv_value INTO lv_value.
lo_element->set_attribute( name = 'r:id'
value = lv_value ).
lo_element_root->append_child( new_child = lo_element ).
ENDIF.
* Begin - Add - Issue #180
" (Legacy) drawings for comments
DATA: lo_drawing_for_comments TYPE REF TO zcl_excel_comments.
lo_drawing_for_comments = io_worksheet->get_comments( ).
IF lo_drawing_for_comments->is_empty( ) = abap_false.
lo_element = lo_document->create_simple_element( name = lc_xml_node_drawing_for_cmt
parent = lo_document ).
ADD 1 TO lv_relation_id. " +1 for legacyDrawings
lv_value = lv_relation_id.
CONDENSE lv_value.
CONCATENATE 'rId' lv_value INTO lv_value.
lo_element->set_attribute( name = 'r:id'
value = lv_value ).
lo_element_root->append_child( new_child = lo_element ).
ADD 1 TO lv_relation_id. " +1 for comments (not referenced in XL sheet but let's reserve the rId)
ENDIF.
* End - Add - Issue #180
* Header/Footer Image
DATA: lt_drawings TYPE zexcel_t_drawings.
lt_drawings = io_worksheet->get_header_footer_drawings( ).
IF lines( lt_drawings ) > 0. "Header or footer image exist
lo_element = lo_document->create_simple_element( name = lc_xml_node_drawing_for_hd_ft
parent = lo_document ).
ADD 1 TO lv_relation_id. " +1 for legacyDrawings
lv_value = lv_relation_id.
CONDENSE lv_value.
CONCATENATE 'rId' lv_value INTO lv_value.
lo_element->set_attribute( name = 'r:id'
value = lv_value ).
lo_element_root->append_child( new_child = lo_element ).
ADD 1 TO lv_relation_id. " +1 for comments (not referenced in XL sheet but let's reserve the rId)
ENDIF.
*
* ignoredErrors
create_xl_sheet_ignored_errors( io_worksheet = io_worksheet io_document = lo_document io_element_root = lo_element_root ).
* tables
DATA lv_table_count TYPE i.
lv_table_count = io_worksheet->get_tables_size( ).
IF lv_table_count > 0.
lo_element = lo_document->create_simple_element( name = 'tableParts'
parent = lo_document ).
lv_value = lv_table_count.
CONDENSE lv_value.
lo_element->set_attribute_ns( name = 'count'
value = lv_value ).
lo_iterator = io_worksheet->get_tables_iterator( ).
WHILE lo_iterator->has_next( ) EQ abap_true.
lo_table ?= lo_iterator->get_next( ).
ADD 1 TO lv_relation_id.
lv_value = lv_relation_id.
CONDENSE lv_value.
CONCATENATE 'rId' lv_value INTO lv_value.
lo_element_2 = lo_document->create_simple_element( name = 'tablePart'
parent = lo_element ).
lo_element_2->set_attribute_ns( name = 'r:id'
value = lv_value ).
lo_element->append_child( new_child = lo_element_2 ).
ENDWHILE.
lo_element_root->append_child( new_child = lo_element ).
ENDIF.
**********************************************************************
* STEP 5: Create xstring stream
ep_content = render_xml_document( lo_document ).
ENDMETHOD.
METHOD create_xl_sheet_ignored_errors.
DATA: lo_element TYPE REF TO if_ixml_element,
lo_element2 TYPE REF TO if_ixml_element,
lt_ignored_errors TYPE zcl_excel_worksheet=>mty_th_ignored_errors.
FIELD-SYMBOLS: <ls_ignored_errors> TYPE zcl_excel_worksheet=>mty_s_ignored_errors.
lt_ignored_errors = io_worksheet->get_ignored_errors( ).
IF lt_ignored_errors IS NOT INITIAL.
lo_element = io_document->create_simple_element( name = 'ignoredErrors'
parent = io_document ).
LOOP AT lt_ignored_errors ASSIGNING <ls_ignored_errors>.
lo_element2 = io_document->create_simple_element( name = 'ignoredError'
parent = io_document ).
lo_element2->set_attribute_ns( name = 'sqref'
value = <ls_ignored_errors>-cell_coords ).
IF <ls_ignored_errors>-eval_error = abap_true.
lo_element2->set_attribute_ns( name = 'evalError'
value = '1' ).
ENDIF.
IF <ls_ignored_errors>-two_digit_text_year = abap_true.
lo_element2->set_attribute_ns( name = 'twoDigitTextYear'
value = '1' ).
ENDIF.
IF <ls_ignored_errors>-number_stored_as_text = abap_true.
lo_element2->set_attribute_ns( name = 'numberStoredAsText'
value = '1' ).
ENDIF.
IF <ls_ignored_errors>-formula = abap_true.
lo_element2->set_attribute_ns( name = 'formula'
value = '1' ).
ENDIF.
IF <ls_ignored_errors>-formula_range = abap_true.
lo_element2->set_attribute_ns( name = 'formulaRange'
value = '1' ).
ENDIF.
IF <ls_ignored_errors>-unlocked_formula = abap_true.
lo_element2->set_attribute_ns( name = 'unlockedFormula'
value = '1' ).
ENDIF.
IF <ls_ignored_errors>-empty_cell_reference = abap_true.
lo_element2->set_attribute_ns( name = 'emptyCellReference'
value = '1' ).
ENDIF.
IF <ls_ignored_errors>-list_data_validation = abap_true.
lo_element2->set_attribute_ns( name = 'listDataValidation'
value = '1' ).
ENDIF.
IF <ls_ignored_errors>-calculated_column = abap_true.
lo_element2->set_attribute_ns( name = 'calculatedColumn'
value = '1' ).
ENDIF.
lo_element->append_child( lo_element2 ).
ENDLOOP.
io_element_root->append_child( lo_element ).
ENDIF.
ENDMETHOD.
METHOD create_xl_sheet_column_formula.
TYPES: ls_column_formula_used TYPE mty_column_formula_used,
lv_column_alpha TYPE zexcel_cell_column_alpha,
lv_top_cell_coords TYPE zexcel_cell_coords,
lv_bottom_cell_coords TYPE zexcel_cell_coords,
lv_cell_coords TYPE zexcel_cell_coords,
lv_ref_value TYPE string,
lv_test_shared TYPE string,
lv_si TYPE i,
lv_1st_line_shared_formula TYPE abap_bool.
DATA: lv_value TYPE string,
ls_column_formula_used TYPE mty_column_formula_used,
lv_column_alpha TYPE zexcel_cell_column_alpha,
lv_top_cell_coords TYPE zexcel_cell_coords,
lv_bottom_cell_coords TYPE zexcel_cell_coords,
lv_cell_coords TYPE zexcel_cell_coords,
lv_ref_value TYPE string,
lv_1st_line_shared_formula TYPE abap_bool.
FIELD-SYMBOLS: <ls_column_formula> TYPE zcl_excel_worksheet=>mty_s_column_formula,
<ls_column_formula_used> TYPE mty_column_formula_used.
READ TABLE it_column_formulas WITH TABLE KEY id = is_sheet_content-column_formula_id ASSIGNING <ls_column_formula>.
ASSERT sy-subrc = 0.
lv_value = <ls_column_formula>-formula.
lv_1st_line_shared_formula = abap_false.
eo_element = io_document->create_simple_element( name = 'f'
parent = io_document ).
READ TABLE ct_column_formulas_used WITH TABLE KEY id = is_sheet_content-column_formula_id ASSIGNING <ls_column_formula_used>.
IF sy-subrc <> 0.
CLEAR ls_column_formula_used.
ls_column_formula_used-id = is_sheet_content-column_formula_id.
IF is_formula_shareable( ip_formula = lv_value ) = abap_true.
ls_column_formula_used-t = 'shared'.
ls_column_formula_used-si = cv_si.
CONDENSE ls_column_formula_used-si.
cv_si = cv_si + 1.
lv_1st_line_shared_formula = abap_true.
ENDIF.
INSERT ls_column_formula_used INTO TABLE ct_column_formulas_used ASSIGNING <ls_column_formula_used>.
ENDIF.
IF lv_1st_line_shared_formula = abap_true OR <ls_column_formula_used>-t <> 'shared'.
lv_column_alpha = zcl_excel_common=>convert_column2alpha( ip_column = is_sheet_content-cell_column ).
lv_top_cell_coords = |{ lv_column_alpha }{ <ls_column_formula>-table_top_left_row + 1 }|.
lv_bottom_cell_coords = |{ lv_column_alpha }{ <ls_column_formula>-table_bottom_right_row + 1 }|.
lv_cell_coords = |{ lv_column_alpha }{ is_sheet_content-cell_row }|.
IF lv_top_cell_coords = lv_cell_coords.
lv_ref_value = |{ lv_top_cell_coords }:{ lv_bottom_cell_coords }|.
ELSE.
lv_ref_value = |{ lv_cell_coords }:{ lv_bottom_cell_coords }|.
lv_value = zcl_excel_common=>shift_formula(
iv_reference_formula = lv_value
iv_shift_cols = 0
iv_shift_rows = is_sheet_content-cell_row - <ls_column_formula>-table_top_left_row - 1 ).
ENDIF.
ENDIF.
IF <ls_column_formula_used>-t = 'shared'.
eo_element->set_attribute( name = 't'
value = <ls_column_formula_used>-t ).
eo_element->set_attribute( name = 'si'
value = <ls_column_formula_used>-si ).
IF lv_1st_line_shared_formula = abap_true.
eo_element->set_attribute( name = 'ref'
value = lv_ref_value ).
eo_element->set_value( value = lv_value ).
ENDIF.
ELSE.
eo_element->set_value( value = lv_value ).
ENDIF.
ENDMETHOD.
METHOD create_xl_sheet_pagebreaks.
DATA: lo_pagebreaks TYPE REF TO zcl_excel_worksheet_pagebreaks,
lt_pagebreaks TYPE zcl_excel_worksheet_pagebreaks=>tt_pagebreak_at,
lt_rows TYPE HASHED TABLE OF int4 WITH UNIQUE KEY table_line,
lt_columns TYPE HASHED TABLE OF int4 WITH UNIQUE KEY table_line,
lo_node_rowbreaks TYPE REF TO if_ixml_element,
lo_node_colbreaks TYPE REF TO if_ixml_element,
lo_node_break TYPE REF TO if_ixml_element,
lv_value TYPE string.
FIELD-SYMBOLS: <ls_pagebreak> LIKE LINE OF lt_pagebreaks.
lo_pagebreaks = io_worksheet->get_pagebreaks( ).
CHECK lo_pagebreaks IS BOUND.
lt_pagebreaks = lo_pagebreaks->get_all_pagebreaks( ).
CHECK lt_pagebreaks IS NOT INITIAL. " No need to proceed if don't have any pagebreaks.
lo_node_rowbreaks = io_document->create_simple_element( name = 'rowBreaks'
parent = io_document ).
lo_node_colbreaks = io_document->create_simple_element( name = 'colBreaks'
parent = io_document ).
LOOP AT lt_pagebreaks ASSIGNING <ls_pagebreak>.
* Count how many rows and columns need to be broken
INSERT <ls_pagebreak>-cell_row INTO TABLE lt_rows.
IF sy-subrc = 0. " New
lv_value = <ls_pagebreak>-cell_row.
CONDENSE lv_value.
lo_node_break = io_document->create_simple_element( name = 'brk'
parent = io_document ).
lo_node_break->set_attribute( name = 'id' value = lv_value ).
lo_node_break->set_attribute( name = 'man' value = '1' ). " Manual break
lo_node_break->set_attribute( name = 'max' value = '16383' ). " Max columns
lo_node_rowbreaks->append_child( new_child = lo_node_break ).
ENDIF.
INSERT <ls_pagebreak>-cell_column INTO TABLE lt_columns.
IF sy-subrc = 0. " New
lv_value = <ls_pagebreak>-cell_column.
CONDENSE lv_value.
lo_node_break = io_document->create_simple_element( name = 'brk'
parent = io_document ).
lo_node_break->set_attribute( name = 'id' value = lv_value ).
lo_node_break->set_attribute( name = 'man' value = '1' ). " Manual break
lo_node_break->set_attribute( name = 'max' value = '1048575' ). " Max rows
lo_node_colbreaks->append_child( new_child = lo_node_break ).
ENDIF.
ENDLOOP.
lv_value = lines( lt_rows ).
CONDENSE lv_value.
lo_node_rowbreaks->set_attribute( name = 'count' value = lv_value ).
lo_node_rowbreaks->set_attribute( name = 'manualBreakCount' value = lv_value ).
lv_value = lines( lt_rows ).
CONDENSE lv_value.
lo_node_colbreaks->set_attribute( name = 'count' value = lv_value ).
lo_node_colbreaks->set_attribute( name = 'manualBreakCount' value = lv_value ).
io_parent->append_child( new_child = lo_node_rowbreaks ).
io_parent->append_child( new_child = lo_node_colbreaks ).
ENDMETHOD.
METHOD create_xl_sheet_rels.
** Constant node name
DATA: lc_xml_node_relationships TYPE string VALUE 'Relationships',
lc_xml_node_relationship TYPE string VALUE 'Relationship',
" Node attributes
lc_xml_attr_id TYPE string VALUE 'Id',
lc_xml_attr_type TYPE string VALUE 'Type',
lc_xml_attr_target TYPE string VALUE 'Target',
lc_xml_attr_target_mode TYPE string VALUE 'TargetMode',
lc_xml_val_external TYPE string VALUE 'External',
" Node namespace
lc_xml_node_rels_ns TYPE string VALUE 'http://schemas.openxmlformats.org/package/2006/relationships',
lc_xml_node_rid_table_tp TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/table',
lc_xml_node_rid_printer_tp TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/printerSettings',
lc_xml_node_rid_drawing_tp TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing',
lc_xml_node_rid_comment_tp TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments', " (+) Issue #180
lc_xml_node_rid_drawing_cmt_tp TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing', " (+) Issue #180
lc_xml_node_rid_link_tp TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink'.
DATA: lo_document TYPE REF TO if_ixml_document,
lo_element_root TYPE REF TO if_ixml_element,
lo_element TYPE REF TO if_ixml_element,
lo_iterator TYPE REF TO cl_object_collection_iterator,
lo_table TYPE REF TO zcl_excel_table,
lo_link TYPE REF TO zcl_excel_hyperlink.
DATA: lv_value TYPE string,
lv_relation_id TYPE i,
lv_index_str TYPE string,
lv_comment_index TYPE i.
**********************************************************************
* STEP 1: Create [Content_Types].xml into the root of the ZIP
lo_document = create_xml_document( ).
**********************************************************************
* STEP 3: Create main node relationships
lo_element_root = lo_document->create_simple_element( name = lc_xml_node_relationships
parent = lo_document ).
lo_element_root->set_attribute_ns( name = 'xmlns'
value = lc_xml_node_rels_ns ).
**********************************************************************
* STEP 4: Create subnodes
" Add sheet Relationship nodes here
lv_relation_id = 0.
lo_iterator = io_worksheet->get_hyperlinks_iterator( ).
WHILE lo_iterator->has_next( ) EQ abap_true.
lo_link ?= lo_iterator->get_next( ).
CHECK lo_link->is_internal( ) = abap_false. " issue #340 - don't put internal links here
ADD 1 TO lv_relation_id.
lv_value = lv_relation_id.
CONDENSE lv_value.
CONCATENATE 'rId' lv_value INTO lv_value.
lo_element = lo_document->create_simple_element( name = lc_xml_node_relationship
parent = lo_document ).
lo_element->set_attribute_ns( name = lc_xml_attr_id
value = lv_value ).
lo_element->set_attribute_ns( name = lc_xml_attr_type
value = lc_xml_node_rid_link_tp ).
lv_value = lo_link->get_url( ).
lo_element->set_attribute_ns( name = lc_xml_attr_target
value = lv_value ).
lo_element->set_attribute_ns( name = lc_xml_attr_target_mode
value = lc_xml_val_external ).
lo_element_root->append_child( new_child = lo_element ).
ENDWHILE.
* drawing
DATA: lo_drawings TYPE REF TO zcl_excel_drawings.
lo_drawings = io_worksheet->get_drawings( ).
IF lo_drawings->is_empty( ) = abap_false.
lo_element = lo_document->create_simple_element( name = lc_xml_node_relationship
parent = lo_document ).
ADD 1 TO lv_relation_id.
lv_value = lv_relation_id.
CONDENSE lv_value.
CONCATENATE 'rId' lv_value INTO lv_value.
lo_element->set_attribute_ns( name = lc_xml_attr_id
value = lv_value ).
lo_element->set_attribute_ns( name = lc_xml_attr_type
value = lc_xml_node_rid_drawing_tp ).
lv_index_str = iv_drawing_index.
CONDENSE lv_index_str NO-GAPS.
MOVE me->c_xl_drawings TO lv_value.
REPLACE 'xl' WITH '..' INTO lv_value.
REPLACE '#' WITH lv_index_str INTO lv_value.
lo_element->set_attribute_ns( name = lc_xml_attr_target
value = lv_value ).
lo_element_root->append_child( new_child = lo_element ).
ENDIF.
* Begin - Add - Issue #180
DATA: lo_comments TYPE REF TO zcl_excel_comments.
lv_comment_index = iv_comment_index.
lo_comments = io_worksheet->get_comments( ).
IF lo_comments->is_empty( ) = abap_false.
" Drawing for comment
lo_element = lo_document->create_simple_element( name = lc_xml_node_relationship
parent = lo_document ).
ADD 1 TO lv_relation_id.
ADD 1 TO lv_comment_index.
lv_value = lv_relation_id.
CONDENSE lv_value.
CONCATENATE 'rId' lv_value INTO lv_value.
lo_element->set_attribute_ns( name = lc_xml_attr_id
value = lv_value ).
lo_element->set_attribute_ns( name = lc_xml_attr_type
value = lc_xml_node_rid_drawing_cmt_tp ).
lv_index_str = iv_comment_index.
CONDENSE lv_index_str NO-GAPS.
MOVE me->cl_xl_drawing_for_comments TO lv_value.
REPLACE 'xl' WITH '..' INTO lv_value.
REPLACE '#' WITH lv_index_str INTO lv_value.
lo_element->set_attribute_ns( name = lc_xml_attr_target
value = lv_value ).
lo_element_root->append_child( new_child = lo_element ).
" Comment
lo_element = lo_document->create_simple_element( name = lc_xml_node_relationship
parent = lo_document ).
ADD 1 TO lv_relation_id.
lv_value = lv_relation_id.
CONDENSE lv_value.
CONCATENATE 'rId' lv_value INTO lv_value.
lo_element->set_attribute_ns( name = lc_xml_attr_id
value = lv_value ).
lo_element->set_attribute_ns( name = lc_xml_attr_type
value = lc_xml_node_rid_comment_tp ).
lv_index_str = iv_comment_index.
CONDENSE lv_index_str NO-GAPS.
MOVE me->c_xl_comments TO lv_value.
REPLACE 'xl' WITH '..' INTO lv_value.
REPLACE '#' WITH lv_index_str INTO lv_value.
lo_element->set_attribute_ns( name = lc_xml_attr_target
value = lv_value ).
lo_element_root->append_child( new_child = lo_element ).
ENDIF.
* End - Add - Issue #180
**********************************************************************
* header footer image
DATA: lt_drawings TYPE zexcel_t_drawings.
lt_drawings = io_worksheet->get_header_footer_drawings( ).
IF lines( lt_drawings ) > 0. "Header or footer image exist
ADD 1 TO lv_relation_id.
" Drawing for comment/header/footer
lo_element = lo_document->create_simple_element( name = lc_xml_node_relationship
parent = lo_document ).
lv_value = lv_relation_id.
CONDENSE lv_value.
CONCATENATE 'rId' lv_value INTO lv_value.
lo_element->set_attribute_ns( name = lc_xml_attr_id
value = lv_value ).
lo_element->set_attribute_ns( name = lc_xml_attr_type
value = lc_xml_node_rid_drawing_cmt_tp ).
lv_index_str = lv_comment_index.
CONDENSE lv_index_str NO-GAPS.
MOVE me->cl_xl_drawing_for_comments TO lv_value.
REPLACE 'xl' WITH '..' INTO lv_value.
REPLACE '#' WITH lv_index_str INTO lv_value.
lo_element->set_attribute_ns( name = lc_xml_attr_target
value = lv_value ).
lo_element_root->append_child( new_child = lo_element ).
ENDIF.
*** End Header Footer
**********************************************************************
lo_iterator = io_worksheet->get_tables_iterator( ).
WHILE lo_iterator->has_next( ) EQ abap_true.
lo_table ?= lo_iterator->get_next( ).
ADD 1 TO lv_relation_id.
lv_value = lv_relation_id.
CONDENSE lv_value.
CONCATENATE 'rId' lv_value INTO lv_value.
lo_element = lo_document->create_simple_element( name = lc_xml_node_relationship
parent = lo_document ).
lo_element->set_attribute_ns( name = lc_xml_attr_id
value = lv_value ).
lo_element->set_attribute_ns( name = lc_xml_attr_type
value = lc_xml_node_rid_table_tp ).
lv_value = lo_table->get_name( ).
CONCATENATE '../tables/' lv_value '.xml' INTO lv_value.
lo_element->set_attribute_ns( name = lc_xml_attr_target
value = lv_value ).
lo_element_root->append_child( new_child = lo_element ).
ENDWHILE.
* IF io_worksheet->get_print_settings( )->is_empty( ) = abap_false.
* ADD 1 TO lv_relation_id.
* lv_value = lv_relation_id.
* CONDENSE lv_value.
* CONCATENATE 'rId' lv_value INTO lv_value.
*
* lo_element = lo_document->create_simple_element( name = lc_xml_node_relationship
* parent = lo_document ).
* lo_element->set_attribute_ns( name = lc_xml_attr_id
* value = lv_value ).
* lo_element->set_attribute_ns( name = lc_xml_attr_type
* value = lc_xml_node_rid_printer_tp ).
*
* lv_index_str = iv_printer_index.
* CONDENSE lv_index_str NO-GAPS.
* MOVE me->c_xl_printersettings TO lv_value.
* REPLACE 'xl' WITH '..' INTO lv_value.
* REPLACE '#' WITH lv_index_str INTO lv_value.
* lo_element->set_attribute_ns( name = lc_xml_attr_target
* value = lv_value ).
*
* lo_element_root->append_child( new_child = lo_element ).
* ENDIF.
**********************************************************************
* STEP 5: Create xstring stream
ep_content = render_xml_document( lo_document ).
ENDMETHOD.
METHOD create_xl_sheet_sheet_data.
TYPES: BEGIN OF lty_table_area,
left TYPE i,
right TYPE i,
top TYPE i,
bottom TYPE i,
END OF lty_table_area.
CONSTANTS: lc_dummy_cell_content TYPE zexcel_s_cell_data-cell_value VALUE '})~~~ This is a dummy value for ABAP2XLSX and you should never find this in a real excelsheet Ihope'.
CONSTANTS: lc_xml_node_sheetdata TYPE string VALUE 'sheetData', " SheetData tag
lc_xml_node_row TYPE string VALUE 'row', " Row tag
lc_xml_attr_r TYPE string VALUE 'r', " Cell: row-attribute
lc_xml_attr_spans TYPE string VALUE 'spans', " Cell: spans-attribute
lc_xml_node_c TYPE string VALUE 'c', " Cell tag
lc_xml_node_v TYPE string VALUE 'v', " Cell: value
lc_xml_node_f TYPE string VALUE 'f', " Cell: formula
lc_xml_attr_s TYPE string VALUE 's', " Cell: style
lc_xml_attr_t TYPE string VALUE 't'. " Cell: type
DATA: col_count TYPE int4,
lo_autofilters TYPE REF TO zcl_excel_autofilters,
lo_autofilter TYPE REF TO zcl_excel_autofilter,
l_autofilter_hidden TYPE flag,
lt_values TYPE zexcel_t_autofilter_values,
ls_values TYPE zexcel_s_autofilter_values,
ls_area TYPE zexcel_s_autofilter_area,
lo_iterator TYPE REF TO cl_object_collection_iterator,
lo_table TYPE REF TO zcl_excel_table,
lt_table_areas TYPE SORTED TABLE OF lty_table_area WITH NON-UNIQUE KEY left right top bottom,
ls_table_area LIKE LINE OF lt_table_areas,
lo_column TYPE REF TO zcl_excel_column,
ls_sheet_content LIKE LINE OF io_worksheet->sheet_content,
ls_sheet_content_empty LIKE LINE OF io_worksheet->sheet_content,
lv_current_row TYPE i,
lv_next_row TYPE i,
lv_last_row TYPE i,
* lts_row_dimensions TYPE zexcel_t_worksheet_rowdimensio,
lo_row_iterator TYPE REF TO cl_object_collection_iterator,
lo_row TYPE REF TO zcl_excel_row,
lo_row_empty TYPE REF TO zcl_excel_row,
lts_row_outlines TYPE zcl_excel_worksheet=>mty_ts_outlines_row,
ls_last_row TYPE zexcel_s_cell_data,
ls_style_mapping TYPE zexcel_s_styles_mapping,
lo_element_2 TYPE REF TO if_ixml_element,
lo_element_3 TYPE REF TO if_ixml_element,
lo_element_4 TYPE REF TO if_ixml_element,
lv_value TYPE string,
lv_style_guid TYPE zexcel_cell_style.
DATA: lt_column_formulas_used TYPE mty_column_formulas_used,
lv_si TYPE i.
FIELD-SYMBOLS: <ls_sheet_content> TYPE zexcel_s_cell_data,
<ls_row_outline> LIKE LINE OF lts_row_outlines.
" sheetData node
rv_ixml_sheet_data_root = io_document->create_simple_element( name = lc_xml_node_sheetdata
parent = io_document ).
" Get column count
col_count = io_worksheet->get_highest_column( ).
" Get autofilter
*lv_guid = io_worksheet->get_guid( ) .
lo_autofilters = excel->get_autofilters_reference( ).
lo_autofilter = lo_autofilters->get( io_worksheet = io_worksheet ) .
IF lo_autofilter IS BOUND.
lt_values = lo_autofilter->get_values( ) .
ls_area = lo_autofilter->get_filter_area( ) .
l_autofilter_hidden = abap_true. " First defautl is not showing
ENDIF.
*--------------------------------------------------------------------*
*issue #220 - If cell in tables-area don't use default from row or column or sheet - Coding 1 - start
*--------------------------------------------------------------------*
*Build table to hold all table-areas attached to this sheet
lo_iterator = io_worksheet->get_tables_iterator( ).
WHILE lo_iterator->has_next( ) EQ abap_true.
lo_table ?= lo_iterator->get_next( ).
ls_table_area-left = zcl_excel_common=>convert_column2int( lo_table->settings-top_left_column ).
ls_table_area-right = lo_table->get_right_column_integer( ).
ls_table_area-top = lo_table->settings-top_left_row.
ls_table_area-bottom = lo_table->get_bottom_row_integer( ).
INSERT ls_table_area INTO TABLE lt_table_areas.
ENDWHILE.
*--------------------------------------------------------------------*
*issue #220 - If cell in tables-area don't use default from row or column or sheet - Coding 1 - end
*--------------------------------------------------------------------*
*We have problems when the first rows or trailing rows are not set but we have rowinformation
*to solve this we add dummycontent into first and last line that will not be set
*Set first line if necessary
READ TABLE io_worksheet->sheet_content TRANSPORTING NO FIELDS WITH KEY cell_row = 1.
IF sy-subrc <> 0.
ls_sheet_content_empty-cell_row = 1.
ls_sheet_content_empty-cell_column = 1.
ls_sheet_content_empty-cell_value = lc_dummy_cell_content.
INSERT ls_sheet_content_empty INTO TABLE io_worksheet->sheet_content.
ENDIF.
*Set last line if necessary
*Last row with cell content
lv_last_row = io_worksheet->get_highest_row( ).
*Last line with row-information set directly ( like line height, hidden-status ... )
lo_row_iterator = io_worksheet->get_rows_iterator( ).
WHILE lo_row_iterator->has_next( ) = abap_true.
lo_row ?= lo_row_iterator->get_next( ).
IF lo_row->get_row_index( ) > lv_last_row.
lv_last_row = lo_row->get_row_index( ).
ENDIF.
ENDWHILE.
*Last line with row-information set indirectly by row outline
lts_row_outlines = io_worksheet->get_row_outlines( ).
LOOP AT lts_row_outlines ASSIGNING <ls_row_outline>.
IF <ls_row_outline>-collapsed = 'X'.
lv_current_row = <ls_row_outline>-row_to + 1. " collapsed-status may be set on following row
ELSE.
lv_current_row = <ls_row_outline>-row_to. " collapsed-status may be set on following row
ENDIF.
IF lv_current_row > lv_last_row.
lv_last_row = lv_current_row.
ENDIF.
ENDLOOP.
READ TABLE io_worksheet->sheet_content TRANSPORTING NO FIELDS WITH KEY cell_row = lv_last_row.
IF sy-subrc <> 0.
ls_sheet_content_empty-cell_row = lv_last_row.
ls_sheet_content_empty-cell_column = 1.
ls_sheet_content_empty-cell_value = lc_dummy_cell_content.
INSERT ls_sheet_content_empty INTO TABLE io_worksheet->sheet_content.
ENDIF.
CLEAR ls_sheet_content.
LOOP AT io_worksheet->sheet_content INTO ls_sheet_content.
IF lt_values IS INITIAL. " no values attached to autofilter " issue #368 autofilter filtering too much
CLEAR l_autofilter_hidden.
ELSE.
READ TABLE lt_values INTO ls_values WITH KEY column = ls_last_row-cell_column.
IF sy-subrc = 0 AND ls_values-value = ls_last_row-cell_value.
CLEAR l_autofilter_hidden.
ENDIF.
ENDIF.
CLEAR ls_style_mapping.
*Create row element
*issues #346,#154, #195 - problems when we have information in row_dimension but no cell content in that row
*Get next line that may have to be added. If we have empty lines this is the next line after previous cell content
*Otherwise it is the line of the current cell content
lv_current_row = ls_last_row-cell_row + 1.
IF lv_current_row > ls_sheet_content-cell_row.
lv_current_row = ls_sheet_content-cell_row.
ENDIF.
*Fill in empty lines if necessary - assign an emtpy sheet content
lv_next_row = lv_current_row.
WHILE lv_next_row <= ls_sheet_content-cell_row.
lv_current_row = lv_next_row.
lv_next_row = lv_current_row + 1.
IF lv_current_row = ls_sheet_content-cell_row. " cell value found in this row
ASSIGN ls_sheet_content TO <ls_sheet_content>.
ELSE.
*Check if empty row is really necessary - this is basically the case when we have information in row_dimension
lo_row_empty = io_worksheet->get_row( lv_current_row ).
CHECK lo_row_empty->get_row_height( ) >= 0 OR
lo_row_empty->get_collapsed( io_worksheet ) = abap_true OR
lo_row_empty->get_outline_level( io_worksheet ) > 0 OR
lo_row_empty->get_xf_index( ) <> 0.
" Dummyentry A1
ls_sheet_content_empty-cell_row = lv_current_row.
ls_sheet_content_empty-cell_column = 1.
ASSIGN ls_sheet_content_empty TO <ls_sheet_content>.
ENDIF.
IF ls_last_row-cell_row NE <ls_sheet_content>-cell_row.
IF lo_autofilter IS BOUND.
IF ls_area-row_start >= ls_last_row-cell_row OR " One less for header
ls_area-row_end < ls_last_row-cell_row .
CLEAR l_autofilter_hidden.
ENDIF.
ELSE.
CLEAR l_autofilter_hidden.
ENDIF.
IF ls_last_row-cell_row IS NOT INITIAL.
" Row visibility of previos row.
IF lo_row->get_visible( io_worksheet ) = abap_false OR
l_autofilter_hidden = abap_true.
lo_element_2->set_attribute_ns( name = 'hidden' value = 'true' ).
ENDIF.
* lv_xstring_partial = render_ixml_element_no_header( lo_element_2 ).
* CONCATENATE lv_xstring lv_xstring_partial
* INTO lv_xstring IN BYTE MODE.
rv_ixml_sheet_data_root->append_child( new_child = lo_element_2 ). " row node
ENDIF.
" Add new row
lo_element_2 = io_document->create_simple_element( name = lc_xml_node_row
parent = io_document ).
" r
lv_value = <ls_sheet_content>-cell_row.
SHIFT lv_value RIGHT DELETING TRAILING space.
SHIFT lv_value LEFT DELETING LEADING space.
lo_element_2->set_attribute_ns( name = lc_xml_attr_r
value = lv_value ).
" Spans
lv_value = col_count.
CONCATENATE '1:' lv_value INTO lv_value.
SHIFT lv_value RIGHT DELETING TRAILING space.
SHIFT lv_value LEFT DELETING LEADING space.
lo_element_2->set_attribute_ns( name = lc_xml_attr_spans
value = lv_value ).
lo_row = io_worksheet->get_row( <ls_sheet_content>-cell_row ).
" Row dimensions
IF lo_row->get_custom_height( ) = abap_true.
lo_element_2->set_attribute_ns( name = 'customHeight' value = '1' ).
ENDIF.
IF lo_row->get_row_height( ) >= 0.
lv_value = lo_row->get_row_height( ).
lo_element_2->set_attribute_ns( name = 'ht' value = lv_value ).
ENDIF.
" Collapsed
IF lo_row->get_collapsed( io_worksheet ) = abap_true.
lo_element_2->set_attribute_ns( name = 'collapsed' value = 'true' ).
ENDIF.
" Outline level
IF lo_row->get_outline_level( io_worksheet ) > 0.
lv_value = lo_row->get_outline_level( io_worksheet ).
SHIFT lv_value RIGHT DELETING TRAILING space.
SHIFT lv_value LEFT DELETING LEADING space.
lo_element_2->set_attribute_ns( name = 'outlineLevel' value = lv_value ).
ENDIF.
" Style
IF lo_row->get_xf_index( ) <> 0.
lv_value = lo_row->get_xf_index( ).
lo_element_2->set_attribute_ns( name = 's' value = lv_value ).
lo_element_2->set_attribute_ns( name = 'customFormat' value = '1' ).
ENDIF.
IF lt_values IS INITIAL. " no values attached to autofilter " issue #368 autofilter filtering too much
CLEAR l_autofilter_hidden.
ELSE.
l_autofilter_hidden = abap_true. " First default is not showing
ENDIF.
ELSE.
ENDIF.
ENDWHILE.
lo_element_3 = io_document->create_simple_element( name = lc_xml_node_c
parent = io_document ).
lo_element_3->set_attribute_ns( name = lc_xml_attr_r
value = <ls_sheet_content>-cell_coords ).
*begin of change issue #157 - allow column cellstyle
*if no cellstyle is set, look into column, then into sheet
IF <ls_sheet_content>-cell_style IS NOT INITIAL.
lv_style_guid = <ls_sheet_content>-cell_style.
ELSE.
*--------------------------------------------------------------------*
*issue #220 - If cell in tables-area don't use default from row or column or sheet - Coding 2 - start
*--------------------------------------------------------------------*
*Check if cell in any of the table areas
LOOP AT lt_table_areas TRANSPORTING NO FIELDS WHERE top <= <ls_sheet_content>-cell_row
AND bottom >= <ls_sheet_content>-cell_row
AND left <= <ls_sheet_content>-cell_column
AND right >= <ls_sheet_content>-cell_column.
EXIT.
ENDLOOP.
IF sy-subrc = 0.
CLEAR lv_style_guid. " No style --> EXCEL will use built-in-styles as declared in the tables-section
ELSE.
*--------------------------------------------------------------------*
*issue #220 - If cell in tables-area don't use default from row or column or sheet - Coding 2 - end
*--------------------------------------------------------------------*
lv_style_guid = io_worksheet->zif_excel_sheet_properties~get_style( ).
lo_column ?= io_worksheet->get_column( <ls_sheet_content>-cell_column ).
IF lo_column->get_column_index( ) = <ls_sheet_content>-cell_column.
lv_style_guid = lo_column->get_column_style_guid( ).
IF lv_style_guid IS INITIAL.
lv_style_guid = io_worksheet->zif_excel_sheet_properties~get_style( ).
ENDIF.
ENDIF.
*--------------------------------------------------------------------*
*issue #220 - If cell in tables-area don't use default from row or column or sheet - Coding 3 - start
*--------------------------------------------------------------------*
ENDIF.
*--------------------------------------------------------------------*
*issue #220 - If cell in tables-area don't use default from row or column or sheet - Coding 3 - end
*--------------------------------------------------------------------*
ENDIF.
* IF <ls_sheet_content>-cell_style IS NOT INITIAL.
* READ TABLE styles_mapping INTO ls_style_mapping WITH KEY guid = <ls_sheet_content>-cell_style.
IF lv_style_guid IS NOT INITIAL.
READ TABLE styles_mapping INTO ls_style_mapping WITH KEY guid = lv_style_guid.
*end of change issue #157 - allow column cellstyles
lv_value = ls_style_mapping-style.
SHIFT lv_value RIGHT DELETING TRAILING space.
SHIFT lv_value LEFT DELETING LEADING space.
lo_element_3->set_attribute_ns( name = lc_xml_attr_s
value = lv_value ).
ENDIF.
" For cells with formula ignore the value - Excel will calculate it
IF <ls_sheet_content>-cell_formula IS NOT INITIAL.
" fomula node
lo_element_4 = io_document->create_simple_element( name = lc_xml_node_f
parent = io_document ).
lv_value = <ls_sheet_content>-cell_formula.
CONDENSE lv_value.
lo_element_4->set_value( value = lv_value ).
lo_element_3->append_child( new_child = lo_element_4 ). " fomula node
ELSEIF <ls_sheet_content>-column_formula_id <> 0.
create_xl_sheet_column_formula(
EXPORTING
io_document = io_document
it_column_formulas = io_worksheet->column_formulas
is_sheet_content = <ls_sheet_content>
IMPORTING
eo_element = lo_element_4
CHANGING
ct_column_formulas_used = lt_column_formulas_used
cv_si = lv_si ).
lo_element_3->append_child( new_child = lo_element_4 ).
ELSEIF <ls_sheet_content>-cell_value IS NOT INITIAL "cell can have just style or formula
AND <ls_sheet_content>-cell_value <> lc_dummy_cell_content.
IF <ls_sheet_content>-data_type IS NOT INITIAL.
IF <ls_sheet_content>-data_type EQ 's_leading_blanks'.
lo_element_3->set_attribute_ns( name = lc_xml_attr_t
value = 's' ).
ELSE.
lo_element_3->set_attribute_ns( name = lc_xml_attr_t
value = <ls_sheet_content>-data_type ).
ENDIF.
ENDIF.
" value node
lo_element_4 = io_document->create_simple_element( name = lc_xml_node_v
parent = io_document ).
IF <ls_sheet_content>-data_type EQ 's' OR <ls_sheet_content>-data_type EQ 's_leading_blanks'.
lv_value = me->get_shared_string_index( ip_cell_value = <ls_sheet_content>-cell_value
it_rtf = <ls_sheet_content>-rtf_tab ).
CONDENSE lv_value.
lo_element_4->set_value( value = lv_value ).
ELSE.
lv_value = <ls_sheet_content>-cell_value.
CONDENSE lv_value.
lo_element_4->set_value( value = lv_value ).
ENDIF.
lo_element_3->append_child( new_child = lo_element_4 ). " value node
ENDIF.
lo_element_2->append_child( new_child = lo_element_3 ). " column node
ls_last_row = <ls_sheet_content>.
ENDLOOP.
IF sy-subrc = 0.
READ TABLE lt_values INTO ls_values WITH KEY column = ls_last_row-cell_column.
IF sy-subrc = 0 AND ls_values-value = ls_last_row-cell_value.
CLEAR l_autofilter_hidden.
ENDIF.
IF lo_autofilter IS BOUND.
IF ls_area-row_start >= ls_last_row-cell_row OR " One less for header
ls_area-row_end < ls_last_row-cell_row .
CLEAR l_autofilter_hidden.
ENDIF.
ELSE.
CLEAR l_autofilter_hidden.
ENDIF.
" Row visibility of previos row.
IF lo_row->get_visible( ) = abap_false OR
l_autofilter_hidden = abap_true.
lo_element_2->set_attribute_ns( name = 'hidden' value = 'true' ).
ENDIF.
* lv_xstring_partial = render_ixml_element_no_header( lo_element_2 ).
* CONCATENATE lv_xstring lv_xstring_partial
* INTO lv_xstring IN BYTE MODE.
rv_ixml_sheet_data_root->append_child( new_child = lo_element_2 ). " row node
ENDIF.
DELETE io_worksheet->sheet_content WHERE cell_value = lc_dummy_cell_content. " Get rid of dummyentries
ENDMETHOD.
METHOD create_xl_styles.
*--------------------------------------------------------------------*
* ToDos:
* 2do§1 dxfs-cellstyles are used in conditional formats:
* CellIs, Expression, top10 ( forthcoming above average as well )
* create own method to write dsfx-cellstyle to be reuseable by all these
*--------------------------------------------------------------------*
** Constant node name
CONSTANTS: lc_xml_node_stylesheet TYPE string VALUE 'styleSheet',
" font
lc_xml_node_fonts TYPE string VALUE 'fonts',
lc_xml_node_font TYPE string VALUE 'font',
lc_xml_node_color TYPE string VALUE 'color',
" fill
lc_xml_node_fills TYPE string VALUE 'fills',
lc_xml_node_fill TYPE string VALUE 'fill',
lc_xml_node_patternfill TYPE string VALUE 'patternFill',
lc_xml_node_fgcolor TYPE string VALUE 'fgColor',
lc_xml_node_bgcolor TYPE string VALUE 'bgColor',
lc_xml_node_gradientfill TYPE string VALUE 'gradientFill',
lc_xml_node_stop TYPE string VALUE 'stop',
" borders
lc_xml_node_borders TYPE string VALUE 'borders',
lc_xml_node_border TYPE string VALUE 'border',
lc_xml_node_left TYPE string VALUE 'left',
lc_xml_node_right TYPE string VALUE 'right',
lc_xml_node_top TYPE string VALUE 'top',
lc_xml_node_bottom TYPE string VALUE 'bottom',
lc_xml_node_diagonal TYPE string VALUE 'diagonal',
" numfmt
lc_xml_node_numfmts TYPE string VALUE 'numFmts',
lc_xml_node_numfmt TYPE string VALUE 'numFmt',
" Styles
lc_xml_node_cellstylexfs TYPE string VALUE 'cellStyleXfs',
lc_xml_node_xf TYPE string VALUE 'xf',
lc_xml_node_cellxfs TYPE string VALUE 'cellXfs',
lc_xml_node_cellstyles TYPE string VALUE 'cellStyles',
lc_xml_node_cellstyle TYPE string VALUE 'cellStyle',
lc_xml_node_dxfs TYPE string VALUE 'dxfs',
lc_xml_node_tablestyles TYPE string VALUE 'tableStyles',
" Colors
lc_xml_node_colors TYPE string VALUE 'colors',
lc_xml_node_indexedcolors TYPE string VALUE 'indexedColors',
lc_xml_node_rgbcolor TYPE string VALUE 'rgbColor',
lc_xml_node_mrucolors TYPE string VALUE 'mruColors',
" Alignment
lc_xml_node_alignment TYPE string VALUE 'alignment',
" Protection
lc_xml_node_protection TYPE string VALUE 'protection',
" Node attributes
lc_xml_attr_count TYPE string VALUE 'count',
lc_xml_attr_val TYPE string VALUE 'val',
lc_xml_attr_theme TYPE string VALUE 'theme',
lc_xml_attr_rgb TYPE string VALUE 'rgb',
lc_xml_attr_indexed TYPE string VALUE 'indexed',
lc_xml_attr_tint TYPE string VALUE 'tint',
lc_xml_attr_style TYPE string VALUE 'style',
lc_xml_attr_position TYPE string VALUE 'position',
lc_xml_attr_degree TYPE string VALUE 'degree',
lc_xml_attr_patterntype TYPE string VALUE 'patternType',
lc_xml_attr_numfmtid TYPE string VALUE 'numFmtId',
lc_xml_attr_fontid TYPE string VALUE 'fontId',
lc_xml_attr_fillid TYPE string VALUE 'fillId',
lc_xml_attr_borderid TYPE string VALUE 'borderId',
lc_xml_attr_xfid TYPE string VALUE 'xfId',
lc_xml_attr_applynumberformat TYPE string VALUE 'applyNumberFormat',
lc_xml_attr_applyprotection TYPE string VALUE 'applyProtection',
lc_xml_attr_applyfont TYPE string VALUE 'applyFont',
lc_xml_attr_applyfill TYPE string VALUE 'applyFill',
lc_xml_attr_applyborder TYPE string VALUE 'applyBorder',
lc_xml_attr_name TYPE string VALUE 'name',
lc_xml_attr_builtinid TYPE string VALUE 'builtinId',
lc_xml_attr_defaulttablestyle TYPE string VALUE 'defaultTableStyle',
lc_xml_attr_defaultpivotstyle TYPE string VALUE 'defaultPivotStyle',
lc_xml_attr_applyalignment TYPE string VALUE 'applyAlignment',
lc_xml_attr_horizontal TYPE string VALUE 'horizontal',
lc_xml_attr_formatcode TYPE string VALUE 'formatCode',
lc_xml_attr_vertical TYPE string VALUE 'vertical',
lc_xml_attr_wraptext TYPE string VALUE 'wrapText',
lc_xml_attr_textrotation TYPE string VALUE 'textRotation',
lc_xml_attr_shrinktofit TYPE string VALUE 'shrinkToFit',
lc_xml_attr_indent TYPE string VALUE 'indent',
lc_xml_attr_locked TYPE string VALUE 'locked',
lc_xml_attr_hidden TYPE string VALUE 'hidden',
lc_xml_attr_diagonalup TYPE string VALUE 'diagonalUp',
lc_xml_attr_diagonaldown TYPE string VALUE 'diagonalDown',
" Node namespace
lc_xml_node_ns TYPE string VALUE 'http://schemas.openxmlformats.org/spreadsheetml/2006/main',
lc_xml_attr_type TYPE string VALUE 'type',
lc_xml_attr_bottom TYPE string VALUE 'bottom',
lc_xml_attr_top TYPE string VALUE 'top',
lc_xml_attr_right TYPE string VALUE 'right',
lc_xml_attr_left TYPE string VALUE 'left'.
DATA: lo_document TYPE REF TO if_ixml_document,
lo_element_root TYPE REF TO if_ixml_element,
lo_element_fonts TYPE REF TO if_ixml_element,
lo_element_font TYPE REF TO if_ixml_element,
lo_element_fills TYPE REF TO if_ixml_element,
lo_element_fill TYPE REF TO if_ixml_element,
lo_element_borders TYPE REF TO if_ixml_element,
lo_element_border TYPE REF TO if_ixml_element,
lo_element_numfmts TYPE REF TO if_ixml_element,
lo_element_numfmt TYPE REF TO if_ixml_element,
lo_element_cellxfs TYPE REF TO if_ixml_element,
lo_element TYPE REF TO if_ixml_element,
lo_sub_element TYPE REF TO if_ixml_element,
lo_sub_element_2 TYPE REF TO if_ixml_element,
lo_iterator TYPE REF TO cl_object_collection_iterator,
lo_iterator2 TYPE REF TO cl_object_collection_iterator,
lo_worksheet TYPE REF TO zcl_excel_worksheet,
lo_style_cond TYPE REF TO zcl_excel_style_cond,
lo_style TYPE REF TO zcl_excel_style.
DATA: lt_fonts TYPE zexcel_t_style_font,
ls_font TYPE zexcel_s_style_font,
lt_fills TYPE zexcel_t_style_fill,
ls_fill TYPE zexcel_s_style_fill,
lt_borders TYPE zexcel_t_style_border,
ls_border TYPE zexcel_s_style_border,
lt_numfmts TYPE zexcel_t_style_numfmt,
ls_numfmt TYPE zexcel_s_style_numfmt,
lt_protections TYPE zexcel_t_style_protection,
ls_protection TYPE zexcel_s_style_protection,
lt_alignments TYPE zexcel_t_style_alignment,
ls_alignment TYPE zexcel_s_style_alignment,
lt_cellxfs TYPE zexcel_t_cellxfs,
ls_cellxfs TYPE zexcel_s_cellxfs,
ls_styles_mapping TYPE zexcel_s_styles_mapping,
lt_colors TYPE zexcel_t_style_color_argb,
ls_color LIKE LINE OF lt_colors.
DATA: lv_value TYPE string,
lv_dfx_count TYPE i,
lv_fonts_count TYPE i,
lv_fills_count TYPE i,
lv_borders_count TYPE i,
lv_cellxfs_count TYPE i.
TYPES: BEGIN OF ts_built_in_format,
num_format TYPE zexcel_number_format,
id TYPE sytabix,
END OF ts_built_in_format.
DATA: lt_built_in_num_formats TYPE HASHED TABLE OF ts_built_in_format WITH UNIQUE KEY num_format,
ls_built_in_num_format LIKE LINE OF lt_built_in_num_formats.
FIELD-SYMBOLS: <ls_built_in_format> LIKE LINE OF lt_built_in_num_formats,
<ls_reader_built_in> LIKE LINE OF zcl_excel_style_number_format=>mt_built_in_num_formats.
**********************************************************************
* STEP 1: Create [Content_Types].xml into the root of the ZIP
lo_document = create_xml_document( ).
***********************************************************************
* STEP 3: Create main node relationships
lo_element_root = lo_document->create_simple_element( name = lc_xml_node_stylesheet
parent = lo_document ).
lo_element_root->set_attribute_ns( name = 'xmlns'
value = lc_xml_node_ns ).
**********************************************************************
* STEP 4: Create subnodes
lo_element_fonts = lo_document->create_simple_element( name = lc_xml_node_fonts
parent = lo_document ).
lo_element_fills = lo_document->create_simple_element( name = lc_xml_node_fills
parent = lo_document ).
lo_element_borders = lo_document->create_simple_element( name = lc_xml_node_borders
parent = lo_document ).
lo_element_cellxfs = lo_document->create_simple_element( name = lc_xml_node_cellxfs
parent = lo_document ).
lo_element_numfmts = lo_document->create_simple_element( name = lc_xml_node_numfmts
parent = lo_document ).
* Prepare built-in number formats.
LOOP AT zcl_excel_style_number_format=>mt_built_in_num_formats ASSIGNING <ls_reader_built_in>.
ls_built_in_num_format-id = <ls_reader_built_in>-id.
ls_built_in_num_format-num_format = <ls_reader_built_in>-format->format_code.
INSERT ls_built_in_num_format INTO TABLE lt_built_in_num_formats.
ENDLOOP.
* Compress styles
lo_iterator = excel->get_styles_iterator( ).
WHILE lo_iterator->has_next( ) EQ abap_true.
lo_style ?= lo_iterator->get_next( ).
ls_font = lo_style->font->get_structure( ).
ls_fill = lo_style->fill->get_structure( ).
ls_border = lo_style->borders->get_structure( ).
ls_alignment = lo_style->alignment->get_structure( ).
ls_protection = lo_style->protection->get_structure( ).
ls_numfmt = lo_style->number_format->get_structure( ).
CLEAR ls_cellxfs.
* Compress fonts
READ TABLE lt_fonts FROM ls_font TRANSPORTING NO FIELDS.
IF sy-subrc EQ 0.
ls_cellxfs-fontid = sy-tabix.
ELSE.
APPEND ls_font TO lt_fonts.
DESCRIBE TABLE lt_fonts LINES ls_cellxfs-fontid.
ENDIF.
SUBTRACT 1 FROM ls_cellxfs-fontid.
* Compress alignment
READ TABLE lt_alignments FROM ls_alignment TRANSPORTING NO FIELDS.
IF sy-subrc EQ 0.
ls_cellxfs-alignmentid = sy-tabix.
ELSE.
APPEND ls_alignment TO lt_alignments.
DESCRIBE TABLE lt_alignments LINES ls_cellxfs-alignmentid.
ENDIF.
SUBTRACT 1 FROM ls_cellxfs-alignmentid.
* Compress fills
READ TABLE lt_fills FROM ls_fill TRANSPORTING NO FIELDS.
IF sy-subrc EQ 0.
ls_cellxfs-fillid = sy-tabix.
ELSE.
APPEND ls_fill TO lt_fills.
DESCRIBE TABLE lt_fills LINES ls_cellxfs-fillid.
ENDIF.
SUBTRACT 1 FROM ls_cellxfs-fillid.
* Compress borders
READ TABLE lt_borders FROM ls_border TRANSPORTING NO FIELDS.
IF sy-subrc EQ 0.
ls_cellxfs-borderid = sy-tabix.
ELSE.
APPEND ls_border TO lt_borders.
DESCRIBE TABLE lt_borders LINES ls_cellxfs-borderid.
ENDIF.
SUBTRACT 1 FROM ls_cellxfs-borderid.
* Compress protection
IF ls_protection-locked EQ c_on AND ls_protection-hidden EQ c_off.
ls_cellxfs-applyprotection = 0.
ELSE.
READ TABLE lt_protections FROM ls_protection TRANSPORTING NO FIELDS.
IF sy-subrc EQ 0.
ls_cellxfs-protectionid = sy-tabix.
ELSE.
APPEND ls_protection TO lt_protections.
DESCRIBE TABLE lt_protections LINES ls_cellxfs-protectionid.
ENDIF.
ls_cellxfs-applyprotection = 1.
ENDIF.
SUBTRACT 1 FROM ls_cellxfs-protectionid.
* Compress number formats
"-----------
IF ls_numfmt-numfmt NE zcl_excel_style_number_format=>c_format_date_std." and ls_numfmt-NUMFMT ne 'STD_NDEC'. " ALE Changes on going
"---
IF ls_numfmt IS NOT INITIAL.
* issue #389 - Problem with built-in format ( those are not being taken account of )
* There are some internal number formats built-in into EXCEL
* Use these instead of duplicating the entries here, since they seem to be language-dependant and adjust to user settings in excel
READ TABLE lt_built_in_num_formats ASSIGNING <ls_built_in_format> WITH TABLE KEY num_format = ls_numfmt-numfmt.
IF sy-subrc = 0.
ls_cellxfs-numfmtid = <ls_built_in_format>-id.
ELSE.
READ TABLE lt_numfmts FROM ls_numfmt TRANSPORTING NO FIELDS.
IF sy-subrc EQ 0.
ls_cellxfs-numfmtid = sy-tabix.
ELSE.
APPEND ls_numfmt TO lt_numfmts.
DESCRIBE TABLE lt_numfmts LINES ls_cellxfs-numfmtid.
ENDIF.
ADD zcl_excel_common=>c_excel_numfmt_offset TO ls_cellxfs-numfmtid. " Add OXML offset for custom styles
ENDIF.
ls_cellxfs-applynumberformat = 1.
ELSE.
ls_cellxfs-applynumberformat = 0.
ENDIF.
"----------- " ALE changes on going
ELSE.
ls_cellxfs-applynumberformat = 1.
IF ls_numfmt-numfmt EQ zcl_excel_style_number_format=>c_format_date_std.
ls_cellxfs-numfmtid = 14.
* elseif ls_numfmt-NUMFMT eq 'STD_NDEC'.
* ls_cellxfs-numfmtid = 2.
ENDIF.
ENDIF.
"---
IF ls_cellxfs-fontid NE 0.
ls_cellxfs-applyfont = 1.
ELSE.
ls_cellxfs-applyfont = 0.
ENDIF.
IF ls_cellxfs-alignmentid NE 0.
ls_cellxfs-applyalignment = 1.
ELSE.
ls_cellxfs-applyalignment = 0.
ENDIF.
IF ls_cellxfs-fillid NE 0.
ls_cellxfs-applyfill = 1.
ELSE.
ls_cellxfs-applyfill = 0.
ENDIF.
IF ls_cellxfs-borderid NE 0.
ls_cellxfs-applyborder = 1.
ELSE.
ls_cellxfs-applyborder = 0.
ENDIF.
* Remap styles
READ TABLE lt_cellxfs FROM ls_cellxfs TRANSPORTING NO FIELDS.
IF sy-subrc EQ 0.
ls_styles_mapping-style = sy-tabix.
ELSE.
APPEND ls_cellxfs TO lt_cellxfs.
DESCRIBE TABLE lt_cellxfs LINES ls_styles_mapping-style.
ENDIF.
SUBTRACT 1 FROM ls_styles_mapping-style.
ls_styles_mapping-guid = lo_style->get_guid( ).
APPEND ls_styles_mapping TO me->styles_mapping.
ENDWHILE.
" create numfmt elements
LOOP AT lt_numfmts INTO ls_numfmt.
lo_element_numfmt = lo_document->create_simple_element( name = lc_xml_node_numfmt
parent = lo_document ).
lv_value = sy-tabix + zcl_excel_common=>c_excel_numfmt_offset.
CONDENSE lv_value.
lo_element_numfmt->set_attribute_ns( name = lc_xml_attr_numfmtid
value = lv_value ).
lv_value = ls_numfmt-numfmt.
* REPLACE ALL OCCURRENCES OF '.' IN lv_value WITH '\.'.
lo_element_numfmt->set_attribute_ns( name = lc_xml_attr_formatcode
value = lv_value ).
lo_element_numfmts->append_child( new_child = lo_element_numfmt ).
ENDLOOP.
" create font elements
LOOP AT lt_fonts INTO ls_font.
lo_element_font = lo_document->create_simple_element( name = lc_xml_node_font
parent = lo_document ).
create_xl_styles_font_node( io_document = lo_document
io_parent = lo_element_font
is_font = ls_font ).
lo_element_fonts->append_child( new_child = lo_element_font ).
ENDLOOP.
" create fill elements
LOOP AT lt_fills INTO ls_fill.
lo_element_fill = lo_document->create_simple_element( name = lc_xml_node_fill
parent = lo_document ).
IF ls_fill-gradtype IS NOT INITIAL.
"gradient
lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_gradientfill
parent = lo_document ).
IF ls_fill-gradtype-degree IS NOT INITIAL.
lv_value = ls_fill-gradtype-degree.
lo_sub_element->set_attribute_ns( name = lc_xml_attr_degree value = lv_value ).
ENDIF.
IF ls_fill-gradtype-type IS NOT INITIAL.
lv_value = ls_fill-gradtype-type.
lo_sub_element->set_attribute_ns( name = lc_xml_attr_type value = lv_value ).
ENDIF.
IF ls_fill-gradtype-bottom IS NOT INITIAL.
lv_value = ls_fill-gradtype-bottom.
lo_sub_element->set_attribute_ns( name = lc_xml_attr_bottom value = lv_value ).
ENDIF.
IF ls_fill-gradtype-top IS NOT INITIAL.
lv_value = ls_fill-gradtype-top.
lo_sub_element->set_attribute_ns( name = lc_xml_attr_top value = lv_value ).
ENDIF.
IF ls_fill-gradtype-right IS NOT INITIAL.
lv_value = ls_fill-gradtype-right.
lo_sub_element->set_attribute_ns( name = lc_xml_attr_right value = lv_value ).
ENDIF.
IF ls_fill-gradtype-left IS NOT INITIAL.
lv_value = ls_fill-gradtype-left.
lo_sub_element->set_attribute_ns( name = lc_xml_attr_left value = lv_value ).
ENDIF.
IF ls_fill-gradtype-position3 IS NOT INITIAL.
"create <stop> elements for gradients, we can have 2 or 3 stops in each gradient
lo_sub_element_2 = lo_document->create_simple_element( name = lc_xml_node_stop
parent = lo_sub_element ).
lv_value = ls_fill-gradtype-position1.
lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_position value = lv_value ).
create_xl_styles_color_node(
io_document = lo_document
io_parent = lo_sub_element_2
is_color = ls_fill-bgcolor
iv_color_elem_name = lc_xml_node_color ).
lo_sub_element->append_child( new_child = lo_sub_element_2 ).
lo_sub_element_2 = lo_document->create_simple_element( name = lc_xml_node_stop
parent = lo_sub_element ).
lv_value = ls_fill-gradtype-position2.
lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_position
value = lv_value ).
create_xl_styles_color_node(
io_document = lo_document
io_parent = lo_sub_element_2
is_color = ls_fill-fgcolor
iv_color_elem_name = lc_xml_node_color ).
lo_sub_element->append_child( new_child = lo_sub_element_2 ).
lo_sub_element_2 = lo_document->create_simple_element( name = lc_xml_node_stop
parent = lo_sub_element ).
lv_value = ls_fill-gradtype-position3.
lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_position
value = lv_value ).
create_xl_styles_color_node(
io_document = lo_document
io_parent = lo_sub_element_2
is_color = ls_fill-bgcolor
iv_color_elem_name = lc_xml_node_color ).
lo_sub_element->append_child( new_child = lo_sub_element_2 ).
ELSE.
"create <stop> elements for gradients, we can have 2 or 3 stops in each gradient
lo_sub_element_2 = lo_document->create_simple_element( name = lc_xml_node_stop
parent = lo_sub_element ).
lv_value = ls_fill-gradtype-position1.
lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_position value = lv_value ).
create_xl_styles_color_node(
io_document = lo_document
io_parent = lo_sub_element_2
is_color = ls_fill-bgcolor
iv_color_elem_name = lc_xml_node_color ).
lo_sub_element->append_child( new_child = lo_sub_element_2 ).
lo_sub_element_2 = lo_document->create_simple_element( name = lc_xml_node_stop
parent = lo_sub_element ).
lv_value = ls_fill-gradtype-position2.
lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_position
value = lv_value ).
create_xl_styles_color_node(
io_document = lo_document
io_parent = lo_sub_element_2
is_color = ls_fill-fgcolor
iv_color_elem_name = lc_xml_node_color ).
lo_sub_element->append_child( new_child = lo_sub_element_2 ).
ENDIF.
ELSE.
"pattern
lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_patternfill
parent = lo_document ).
lv_value = ls_fill-filltype.
lo_sub_element->set_attribute_ns( name = lc_xml_attr_patterntype
value = lv_value ).
" fgcolor
create_xl_styles_color_node(
io_document = lo_document
io_parent = lo_sub_element
is_color = ls_fill-fgcolor
iv_color_elem_name = lc_xml_node_fgcolor ).
IF ls_fill-fgcolor-rgb IS INITIAL AND
ls_fill-fgcolor-indexed EQ zcl_excel_style_color=>c_indexed_not_set AND
ls_fill-fgcolor-theme EQ zcl_excel_style_color=>c_theme_not_set AND
ls_fill-fgcolor-tint IS INITIAL AND ls_fill-bgcolor-indexed EQ zcl_excel_style_color=>c_indexed_sys_foreground.
" bgcolor
create_xl_styles_color_node(
io_document = lo_document
io_parent = lo_sub_element
is_color = ls_fill-bgcolor
iv_color_elem_name = lc_xml_node_bgcolor ).
ENDIF.
ENDIF.
lo_element_fill->append_child( new_child = lo_sub_element )."pattern
lo_element_fills->append_child( new_child = lo_element_fill ).
ENDLOOP.
" create border elements
LOOP AT lt_borders INTO ls_border.
lo_element_border = lo_document->create_simple_element( name = lc_xml_node_border
parent = lo_document ).
IF ls_border-diagonalup IS NOT INITIAL.
lv_value = ls_border-diagonalup.
CONDENSE lv_value.
lo_element_border->set_attribute_ns( name = lc_xml_attr_diagonalup
value = lv_value ).
ENDIF.
IF ls_border-diagonaldown IS NOT INITIAL.
lv_value = ls_border-diagonaldown.
CONDENSE lv_value.
lo_element_border->set_attribute_ns( name = lc_xml_attr_diagonaldown
value = lv_value ).
ENDIF.
"left
lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_left
parent = lo_document ).
IF ls_border-left_style IS NOT INITIAL.
lv_value = ls_border-left_style.
lo_sub_element->set_attribute_ns( name = lc_xml_attr_style
value = lv_value ).
ENDIF.
create_xl_styles_color_node(
io_document = lo_document
io_parent = lo_sub_element
is_color = ls_border-left_color ).
lo_element_border->append_child( new_child = lo_sub_element ).
"right
lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_right
parent = lo_document ).
IF ls_border-right_style IS NOT INITIAL.
lv_value = ls_border-right_style.
lo_sub_element->set_attribute_ns( name = lc_xml_attr_style
value = lv_value ).
ENDIF.
create_xl_styles_color_node(
io_document = lo_document
io_parent = lo_sub_element
is_color = ls_border-right_color ).
lo_element_border->append_child( new_child = lo_sub_element ).
"top
lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_top
parent = lo_document ).
IF ls_border-top_style IS NOT INITIAL.
lv_value = ls_border-top_style.
lo_sub_element->set_attribute_ns( name = lc_xml_attr_style
value = lv_value ).
ENDIF.
create_xl_styles_color_node(
io_document = lo_document
io_parent = lo_sub_element
is_color = ls_border-top_color ).
lo_element_border->append_child( new_child = lo_sub_element ).
"bottom
lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_bottom
parent = lo_document ).
IF ls_border-bottom_style IS NOT INITIAL.
lv_value = ls_border-bottom_style.
lo_sub_element->set_attribute_ns( name = lc_xml_attr_style
value = lv_value ).
ENDIF.
create_xl_styles_color_node(
io_document = lo_document
io_parent = lo_sub_element
is_color = ls_border-bottom_color ).
lo_element_border->append_child( new_child = lo_sub_element ).
"diagonal
lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_diagonal
parent = lo_document ).
IF ls_border-diagonal_style IS NOT INITIAL.
lv_value = ls_border-diagonal_style.
lo_sub_element->set_attribute_ns( name = lc_xml_attr_style
value = lv_value ).
ENDIF.
create_xl_styles_color_node(
io_document = lo_document
io_parent = lo_sub_element
is_color = ls_border-diagonal_color ).
lo_element_border->append_child( new_child = lo_sub_element ).
lo_element_borders->append_child( new_child = lo_element_border ).
ENDLOOP.
" update attribute "count"
DESCRIBE TABLE lt_fonts LINES lv_fonts_count.
MOVE lv_fonts_count TO lv_value.
SHIFT lv_value RIGHT DELETING TRAILING space.
SHIFT lv_value LEFT DELETING LEADING space.
lo_element_fonts->set_attribute_ns( name = lc_xml_attr_count
value = lv_value ).
DESCRIBE TABLE lt_fills LINES lv_fills_count.
MOVE lv_fills_count TO lv_value.
SHIFT lv_value RIGHT DELETING TRAILING space.
SHIFT lv_value LEFT DELETING LEADING space.
lo_element_fills->set_attribute_ns( name = lc_xml_attr_count
value = lv_value ).
DESCRIBE TABLE lt_borders LINES lv_borders_count.
MOVE lv_borders_count TO lv_value.
SHIFT lv_value RIGHT DELETING TRAILING space.
SHIFT lv_value LEFT DELETING LEADING space.
lo_element_borders->set_attribute_ns( name = lc_xml_attr_count
value = lv_value ).
DESCRIBE TABLE lt_cellxfs LINES lv_cellxfs_count.
MOVE lv_cellxfs_count TO lv_value.
SHIFT lv_value RIGHT DELETING TRAILING space.
SHIFT lv_value LEFT DELETING LEADING space.
lo_element_cellxfs->set_attribute_ns( name = lc_xml_attr_count
value = lv_value ).
" Append to root node
lo_element_root->append_child( new_child = lo_element_numfmts ).
lo_element_root->append_child( new_child = lo_element_fonts ).
lo_element_root->append_child( new_child = lo_element_fills ).
lo_element_root->append_child( new_child = lo_element_borders ).
" cellstylexfs node
lo_element = lo_document->create_simple_element( name = lc_xml_node_cellstylexfs
parent = lo_document ).
lo_element->set_attribute_ns( name = lc_xml_attr_count
value = '1' ).
lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_xf
parent = lo_document ).
lo_sub_element->set_attribute_ns( name = lc_xml_attr_numfmtid
value = c_off ).
lo_sub_element->set_attribute_ns( name = lc_xml_attr_fontid
value = c_off ).
lo_sub_element->set_attribute_ns( name = lc_xml_attr_fillid
value = c_off ).
lo_sub_element->set_attribute_ns( name = lc_xml_attr_borderid
value = c_off ).
lo_element->append_child( new_child = lo_sub_element ).
lo_element_root->append_child( new_child = lo_element ).
LOOP AT lt_cellxfs INTO ls_cellxfs.
lo_element = lo_document->create_simple_element( name = lc_xml_node_xf
parent = lo_document ).
MOVE ls_cellxfs-numfmtid TO lv_value.
SHIFT lv_value RIGHT DELETING TRAILING space.
SHIFT lv_value LEFT DELETING LEADING space.
lo_element->set_attribute_ns( name = lc_xml_attr_numfmtid
value = lv_value ).
MOVE ls_cellxfs-fontid TO lv_value.
SHIFT lv_value RIGHT DELETING TRAILING space.
SHIFT lv_value LEFT DELETING LEADING space.
lo_element->set_attribute_ns( name = lc_xml_attr_fontid
value = lv_value ).
MOVE ls_cellxfs-fillid TO lv_value.
SHIFT lv_value RIGHT DELETING TRAILING space.
SHIFT lv_value LEFT DELETING LEADING space.
lo_element->set_attribute_ns( name = lc_xml_attr_fillid
value = lv_value ).
MOVE ls_cellxfs-borderid TO lv_value.
SHIFT lv_value RIGHT DELETING TRAILING space.
SHIFT lv_value LEFT DELETING LEADING space.
lo_element->set_attribute_ns( name = lc_xml_attr_borderid
value = lv_value ).
MOVE ls_cellxfs-xfid TO lv_value.
SHIFT lv_value RIGHT DELETING TRAILING space.
SHIFT lv_value LEFT DELETING LEADING space.
lo_element->set_attribute_ns( name = lc_xml_attr_xfid
value = lv_value ).
IF ls_cellxfs-applynumberformat EQ 1.
MOVE ls_cellxfs-applynumberformat TO lv_value.
SHIFT lv_value RIGHT DELETING TRAILING space.
SHIFT lv_value LEFT DELETING LEADING space.
lo_element->set_attribute_ns( name = lc_xml_attr_applynumberformat
value = lv_value ).
ENDIF.
IF ls_cellxfs-applyfont EQ 1.
MOVE ls_cellxfs-applyfont TO lv_value.
SHIFT lv_value RIGHT DELETING TRAILING space.
SHIFT lv_value LEFT DELETING LEADING space.
lo_element->set_attribute_ns( name = lc_xml_attr_applyfont
value = lv_value ).
ENDIF.
IF ls_cellxfs-applyfill EQ 1.
MOVE ls_cellxfs-applyfill TO lv_value.
SHIFT lv_value RIGHT DELETING TRAILING space.
SHIFT lv_value LEFT DELETING LEADING space.
lo_element->set_attribute_ns( name = lc_xml_attr_applyfill
value = lv_value ).
ENDIF.
IF ls_cellxfs-applyborder EQ 1.
MOVE ls_cellxfs-applyborder TO lv_value.
SHIFT lv_value RIGHT DELETING TRAILING space.
SHIFT lv_value LEFT DELETING LEADING space.
lo_element->set_attribute_ns( name = lc_xml_attr_applyborder
value = lv_value ).
ENDIF.
IF ls_cellxfs-applyalignment EQ 1. " depends on each style not for all the sheet
MOVE ls_cellxfs-applyalignment TO lv_value.
SHIFT lv_value RIGHT DELETING TRAILING space.
SHIFT lv_value LEFT DELETING LEADING space.
lo_element->set_attribute_ns( name = lc_xml_attr_applyalignment
value = lv_value ).
lo_sub_element_2 = lo_document->create_simple_element( name = lc_xml_node_alignment
parent = lo_document ).
ADD 1 TO ls_cellxfs-alignmentid. "Table index starts from 1
READ TABLE lt_alignments INTO ls_alignment INDEX ls_cellxfs-alignmentid.
SUBTRACT 1 FROM ls_cellxfs-alignmentid.
IF ls_alignment-horizontal IS NOT INITIAL.
MOVE ls_alignment-horizontal TO lv_value.
lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_horizontal
value = lv_value ).
ENDIF.
IF ls_alignment-vertical IS NOT INITIAL.
MOVE ls_alignment-vertical TO lv_value.
lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_vertical
value = lv_value ).
ENDIF.
IF ls_alignment-wraptext EQ abap_true.
lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_wraptext
value = c_on ).
ENDIF.
IF ls_alignment-textrotation IS NOT INITIAL.
MOVE ls_alignment-textrotation TO lv_value.
SHIFT lv_value RIGHT DELETING TRAILING space.
SHIFT lv_value LEFT DELETING LEADING space.
lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_textrotation
value = lv_value ).
ENDIF.
IF ls_alignment-shrinktofit EQ abap_true.
lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_shrinktofit
value = c_on ).
ENDIF.
IF ls_alignment-indent IS NOT INITIAL.
MOVE ls_alignment-indent TO lv_value.
SHIFT lv_value RIGHT DELETING TRAILING space.
SHIFT lv_value LEFT DELETING LEADING space.
lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_indent
value = lv_value ).
ENDIF.
lo_element->append_child( new_child = lo_sub_element_2 ).
ENDIF.
IF ls_cellxfs-applyprotection EQ 1.
MOVE ls_cellxfs-applyprotection TO lv_value.
CONDENSE lv_value NO-GAPS.
lo_element->set_attribute_ns( name = lc_xml_attr_applyprotection
value = lv_value ).
lo_sub_element_2 = lo_document->create_simple_element( name = lc_xml_node_protection
parent = lo_document ).
ADD 1 TO ls_cellxfs-protectionid. "Table index starts from 1
READ TABLE lt_protections INTO ls_protection INDEX ls_cellxfs-protectionid.
SUBTRACT 1 FROM ls_cellxfs-protectionid.
IF ls_protection-locked IS NOT INITIAL.
MOVE ls_protection-locked TO lv_value.
CONDENSE lv_value.
lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_locked
value = lv_value ).
ENDIF.
IF ls_protection-hidden IS NOT INITIAL.
MOVE ls_protection-hidden TO lv_value.
CONDENSE lv_value.
lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_hidden
value = lv_value ).
ENDIF.
lo_element->append_child( new_child = lo_sub_element_2 ).
ENDIF.
lo_element_cellxfs->append_child( new_child = lo_element ).
ENDLOOP.
lo_element_root->append_child( new_child = lo_element_cellxfs ).
" cellStyles node
lo_element = lo_document->create_simple_element( name = lc_xml_node_cellstyles
parent = lo_document ).
lo_element->set_attribute_ns( name = lc_xml_attr_count
value = '1' ).
lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_cellstyle
parent = lo_document ).
lo_sub_element->set_attribute_ns( name = lc_xml_attr_name
value = 'Normal' ).
lo_sub_element->set_attribute_ns( name = lc_xml_attr_xfid
value = c_off ).
lo_sub_element->set_attribute_ns( name = lc_xml_attr_builtinid
value = c_off ).
lo_element->append_child( new_child = lo_sub_element ).
lo_element_root->append_child( new_child = lo_element ).
" dxfs node
lo_element = lo_document->create_simple_element( name = lc_xml_node_dxfs
parent = lo_document ).
lo_iterator = me->excel->get_worksheets_iterator( ).
" get sheets
WHILE lo_iterator->has_next( ) EQ abap_true.
lo_worksheet ?= lo_iterator->get_next( ).
" Conditional formatting styles into exch sheet
lo_iterator2 = lo_worksheet->get_style_cond_iterator( ).
WHILE lo_iterator2->has_next( ) EQ abap_true.
lo_style_cond ?= lo_iterator2->get_next( ).
CASE lo_style_cond->rule.
* begin of change issue #366 - missing conditional rules: top10, move dfx-styles to own method
WHEN zcl_excel_style_cond=>c_rule_cellis.
me->create_dxf_style( EXPORTING
iv_cell_style = lo_style_cond->mode_cellis-cell_style
io_dxf_element = lo_element
io_ixml_document = lo_document
it_cellxfs = lt_cellxfs
it_fonts = lt_fonts
it_fills = lt_fills
CHANGING
cv_dfx_count = lv_dfx_count ).
WHEN zcl_excel_style_cond=>c_rule_expression.
me->create_dxf_style( EXPORTING
iv_cell_style = lo_style_cond->mode_expression-cell_style
io_dxf_element = lo_element
io_ixml_document = lo_document
it_cellxfs = lt_cellxfs
it_fonts = lt_fonts
it_fills = lt_fills
CHANGING
cv_dfx_count = lv_dfx_count ).
WHEN zcl_excel_style_cond=>c_rule_top10.
me->create_dxf_style( EXPORTING
iv_cell_style = lo_style_cond->mode_top10-cell_style
io_dxf_element = lo_element
io_ixml_document = lo_document
it_cellxfs = lt_cellxfs
it_fonts = lt_fonts
it_fills = lt_fills
CHANGING
cv_dfx_count = lv_dfx_count ).
WHEN zcl_excel_style_cond=>c_rule_above_average.
me->create_dxf_style( EXPORTING
iv_cell_style = lo_style_cond->mode_above_average-cell_style
io_dxf_element = lo_element
io_ixml_document = lo_document
it_cellxfs = lt_cellxfs
it_fonts = lt_fonts
it_fills = lt_fills
CHANGING
cv_dfx_count = lv_dfx_count ).
* begin of change issue #366 - missing conditional rules: top10, move dfx-styles to own method
WHEN OTHERS.
CONTINUE.
ENDCASE.
ENDWHILE.
ENDWHILE.
lv_value = lv_dfx_count.
CONDENSE lv_value.
lo_element->set_attribute_ns( name = lc_xml_attr_count
value = lv_value ).
lo_element_root->append_child( new_child = lo_element ).
" tableStyles node
lo_element = lo_document->create_simple_element( name = lc_xml_node_tablestyles
parent = lo_document ).
lo_element->set_attribute_ns( name = lc_xml_attr_count
value = '0' ).
lo_element->set_attribute_ns( name = lc_xml_attr_defaulttablestyle
value = zcl_excel_table=>builtinstyle_medium9 ).
lo_element->set_attribute_ns( name = lc_xml_attr_defaultpivotstyle
value = zcl_excel_table=>builtinstyle_pivot_light16 ).
lo_element_root->append_child( new_child = lo_element ).
"write legacy color palette in case any indexed color was changed
IF excel->legacy_palette->is_modified( ) = abap_true.
lo_element = lo_document->create_simple_element( name = lc_xml_node_colors
parent = lo_document ).
lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_indexedcolors
parent = lo_document ).
lo_element->append_child( new_child = lo_sub_element ).
lt_colors = excel->legacy_palette->get_colors( ).
LOOP AT lt_colors INTO ls_color.
lo_sub_element_2 = lo_document->create_simple_element( name = lc_xml_node_rgbcolor
parent = lo_document ).
lv_value = ls_color.
lo_sub_element_2->set_attribute_ns( name = lc_xml_attr_rgb
value = lv_value ).
lo_sub_element->append_child( new_child = lo_sub_element_2 ).
ENDLOOP.
lo_element_root->append_child( new_child = lo_element ).
ENDIF.
**********************************************************************
* STEP 5: Create xstring stream
ep_content = render_xml_document( lo_document ).
ENDMETHOD.
METHOD create_xl_styles_color_node.
DATA: lo_sub_element TYPE REF TO if_ixml_element,
lv_value TYPE string.
CONSTANTS: lc_xml_attr_theme TYPE string VALUE 'theme',
lc_xml_attr_rgb TYPE string VALUE 'rgb',
lc_xml_attr_indexed TYPE string VALUE 'indexed',
lc_xml_attr_tint TYPE string VALUE 'tint'.
"add node only if at least one attribute is set
CHECK is_color-rgb IS NOT INITIAL OR
is_color-indexed <> zcl_excel_style_color=>c_indexed_not_set OR
is_color-theme <> zcl_excel_style_color=>c_theme_not_set OR
is_color-tint IS NOT INITIAL.
lo_sub_element = io_document->create_simple_element(
name = iv_color_elem_name
parent = io_parent ).
IF is_color-rgb IS NOT INITIAL.
lv_value = is_color-rgb.
lo_sub_element->set_attribute_ns( name = lc_xml_attr_rgb
value = lv_value ).
ENDIF.
IF is_color-indexed <> zcl_excel_style_color=>c_indexed_not_set.
lv_value = zcl_excel_common=>number_to_excel_string( is_color-indexed ).
lo_sub_element->set_attribute_ns( name = lc_xml_attr_indexed
value = lv_value ).
ENDIF.
IF is_color-theme <> zcl_excel_style_color=>c_theme_not_set.
lv_value = zcl_excel_common=>number_to_excel_string( is_color-theme ).
lo_sub_element->set_attribute_ns( name = lc_xml_attr_theme
value = lv_value ).
ENDIF.
IF is_color-tint IS NOT INITIAL.
lv_value = zcl_excel_common=>number_to_excel_string( is_color-tint ).
lo_sub_element->set_attribute_ns( name = lc_xml_attr_tint
value = lv_value ).
ENDIF.
io_parent->append_child( new_child = lo_sub_element ).
ENDMETHOD.
METHOD create_xl_styles_font_node.
CONSTANTS: lc_xml_node_b TYPE string VALUE 'b', "bold
lc_xml_node_i TYPE string VALUE 'i', "italic
lc_xml_node_u TYPE string VALUE 'u', "underline
lc_xml_node_strike TYPE string VALUE 'strike', "strikethrough
lc_xml_node_sz TYPE string VALUE 'sz',
lc_xml_node_name TYPE string VALUE 'name',
lc_xml_node_rfont TYPE string VALUE 'rFont',
lc_xml_node_family TYPE string VALUE 'family',
lc_xml_node_scheme TYPE string VALUE 'scheme',
lc_xml_attr_val TYPE string VALUE 'val'.
DATA: lo_document TYPE REF TO if_ixml_document,
lo_element_font TYPE REF TO if_ixml_element,
ls_font TYPE zexcel_s_style_font,
lo_sub_element TYPE REF TO if_ixml_element,
lv_value TYPE string.
lo_document = io_document.
lo_element_font = io_parent.
ls_font = is_font.
IF ls_font-bold EQ abap_true.
lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_b
parent = lo_document ).
lo_element_font->append_child( new_child = lo_sub_element ).
ENDIF.
IF ls_font-italic EQ abap_true.
lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_i
parent = lo_document ).
lo_element_font->append_child( new_child = lo_sub_element ).
ENDIF.
IF ls_font-underline EQ abap_true.
lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_u
parent = lo_document ).
lv_value = ls_font-underline_mode.
lo_sub_element->set_attribute_ns( name = lc_xml_attr_val
value = lv_value ).
lo_element_font->append_child( new_child = lo_sub_element ).
ENDIF.
IF ls_font-strikethrough EQ abap_true.
lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_strike
parent = lo_document ).
lo_element_font->append_child( new_child = lo_sub_element ).
ENDIF.
"size
lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_sz
parent = lo_document ).
lv_value = ls_font-size.
SHIFT lv_value RIGHT DELETING TRAILING space.
SHIFT lv_value LEFT DELETING LEADING space.
lo_sub_element->set_attribute_ns( name = lc_xml_attr_val
value = lv_value ).
lo_element_font->append_child( new_child = lo_sub_element ).
"color
create_xl_styles_color_node(
io_document = lo_document
io_parent = lo_element_font
is_color = ls_font-color ).
"name
IF iv_use_rtf = abap_false.
lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_name
parent = lo_document ).
ELSE.
lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_rfont
parent = lo_document ).
ENDIF.
lv_value = ls_font-name.
lo_sub_element->set_attribute_ns( name = lc_xml_attr_val
value = lv_value ).
lo_element_font->append_child( new_child = lo_sub_element ).
"family
lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_family
parent = lo_document ).
lv_value = ls_font-family.
SHIFT lv_value RIGHT DELETING TRAILING space.
SHIFT lv_value LEFT DELETING LEADING space.
lo_sub_element->set_attribute_ns( name = lc_xml_attr_val
value = lv_value ).
lo_element_font->append_child( new_child = lo_sub_element ).
"scheme
IF ls_font-scheme IS NOT INITIAL.
lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_scheme
parent = lo_document ).
lv_value = ls_font-scheme.
lo_sub_element->set_attribute_ns( name = lc_xml_attr_val
value = lv_value ).
lo_element_font->append_child( new_child = lo_sub_element ).
ENDIF.
ENDMETHOD.
METHOD create_xl_table.
DATA: lc_xml_node_table TYPE string VALUE 'table',
lc_xml_node_relationship TYPE string VALUE 'Relationship',
" Node attributes
lc_xml_attr_id TYPE string VALUE 'id',
lc_xml_attr_name TYPE string VALUE 'name',
lc_xml_attr_display_name TYPE string VALUE 'displayName',
lc_xml_attr_ref TYPE string VALUE 'ref',
lc_xml_attr_totals TYPE string VALUE 'totalsRowShown',
" Node namespace
lc_xml_node_table_ns TYPE string VALUE 'http://schemas.openxmlformats.org/spreadsheetml/2006/main',
" Node id
lc_xml_node_ridx_id TYPE string VALUE 'rId#'.
DATA: lo_document TYPE REF TO if_ixml_document,
lo_element_root TYPE REF TO if_ixml_element,
lo_element TYPE REF TO if_ixml_element,
lo_element2 TYPE REF TO if_ixml_element,
lo_element3 TYPE REF TO if_ixml_element,
lv_table_name TYPE string,
lv_id TYPE i,
lv_match TYPE i,
lv_ref TYPE string,
lv_value TYPE string,
lv_num_columns TYPE i,
ls_fieldcat TYPE zexcel_s_fieldcatalog.
**********************************************************************
* STEP 1: Create xml
lo_document = create_xml_document( ).
**********************************************************************
* STEP 3: Create main node table
lo_element_root = lo_document->create_simple_element( name = lc_xml_node_table
parent = lo_document ).
lo_element_root->set_attribute_ns( name = 'xmlns'
value = lc_xml_node_table_ns ).
lv_id = io_table->get_id( ).
lv_value = zcl_excel_common=>number_to_excel_string( ip_value = lv_id ).
lo_element_root->set_attribute_ns( name = lc_xml_attr_id
value = lv_value ).
FIND ALL OCCURRENCES OF REGEX '[^_a-zA-Z0-9]' IN io_table->settings-table_name IGNORING CASE MATCH COUNT lv_match.
IF io_table->settings-table_name IS NOT INITIAL AND lv_match EQ 0.
" Name rules (https://support.microsoft.com/en-us/office/rename-an-excel-table-fbf49a4f-82a3-43eb-8ba2-44d21233b114)
" - You can't use "C", "c", "R", or "r" for the name, because they're already designated as a shortcut for selecting the column or row for the active cell when you enter them in the Name or Go To box.
" - Don't use cell references — Names can't be the same as a cell reference, such as Z$100 or R1C1
IF ( strlen( io_table->settings-table_name ) = 1 AND io_table->settings-table_name CO 'CcRr' )
OR zcl_excel_common=>shift_formula(
iv_reference_formula = io_table->settings-table_name
iv_shift_cols = 0
iv_shift_rows = 1 ) <> io_table->settings-table_name.
lv_table_name = io_table->get_name( ).
ELSE.
lv_table_name = io_table->settings-table_name.
ENDIF.
ELSE.
lv_table_name = io_table->get_name( ).
ENDIF.
lo_element_root->set_attribute_ns( name = lc_xml_attr_name
value = lv_table_name ).
lo_element_root->set_attribute_ns( name = lc_xml_attr_display_name
value = lv_table_name ).
lv_ref = io_table->get_reference( ).
lo_element_root->set_attribute_ns( name = lc_xml_attr_ref
value = lv_ref ).
IF io_table->has_totals( ) = abap_true.
lo_element_root->set_attribute_ns( name = 'totalsRowCount'
value = '1' ).
ELSE.
lo_element_root->set_attribute_ns( name = lc_xml_attr_totals
value = '0' ).
ENDIF.
**********************************************************************
* STEP 4: Create subnodes
" autoFilter
IF io_table->settings-nofilters EQ abap_false.
lo_element = lo_document->create_simple_element( name = 'autoFilter'
parent = lo_document ).
lv_ref = io_table->get_reference( ip_include_totals_row = abap_false ).
lo_element->set_attribute_ns( name = 'ref'
value = lv_ref ).
lo_element_root->append_child( new_child = lo_element ).
ENDIF.
"columns
lo_element = lo_document->create_simple_element( name = 'tableColumns'
parent = lo_document ).
* lo_columns = io_table->get_columns( ).
LOOP AT io_table->fieldcat INTO ls_fieldcat WHERE dynpfld = abap_true.
ADD 1 TO lv_num_columns.
ENDLOOP.
lv_value = lv_num_columns.
CONDENSE lv_value.
lo_element->set_attribute_ns( name = 'count'
value = lv_value ).
lo_element_root->append_child( new_child = lo_element ).
LOOP AT io_table->fieldcat INTO ls_fieldcat WHERE dynpfld = abap_true.
lo_element2 = lo_document->create_simple_element_ns( name = 'tableColumn'
parent = lo_element ).
lv_value = ls_fieldcat-position.
SHIFT lv_value LEFT DELETING LEADING '0'.
lo_element2->set_attribute_ns( name = 'id'
value = lv_value ).
lv_value = ls_fieldcat-scrtext_l.
" The text "_x...._", with "_x" not "_X", with exactly 4 ".", each being 0-9 a-f or A-F (case insensitive), is interpreted
" like Unicode character U+.... (e.g. "_x0041_" is rendered like "A") is for characters.
" To not interpret it, Excel replaces the first "_" is to be replaced with "_x005f_".
IF lv_value CS '_x'.
REPLACE ALL OCCURRENCES OF REGEX '_(x[0-9a-fA-F]{4}_)' IN lv_value WITH '_x005f_$1' RESPECTING CASE.
ENDIF.
" XML chapter 2.2: Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]
" NB: although Excel supports _x0009_, it's not rendered except if you edit the text.
" Excel considers _x000d_ as being an error (_x000a_ is sufficient and rendered).
REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>newline IN lv_value WITH '_x000a_'.
REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>cr_lf(1) IN lv_value WITH ``.
REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>horizontal_tab IN lv_value WITH '_x0009_'.
lo_element2->set_attribute_ns( name = 'name'
value = lv_value ).
IF ls_fieldcat-totals_function IS NOT INITIAL.
lo_element2->set_attribute_ns( name = 'totalsRowFunction'
value = ls_fieldcat-totals_function ).
ENDIF.
IF ls_fieldcat-column_formula IS NOT INITIAL.
lv_value = ls_fieldcat-column_formula.
CONDENSE lv_value.
lo_element3 = lo_document->create_simple_element_ns( name = 'calculatedColumnFormula'
parent = lo_element2 ).
lo_element3->set_value( lv_value ).
lo_element2->append_child( new_child = lo_element3 ).
ENDIF.
lo_element->append_child( new_child = lo_element2 ).
ENDLOOP.
lo_element = lo_document->create_simple_element( name = 'tableStyleInfo'
parent = lo_element_root ).
lo_element->set_attribute_ns( name = 'name'
value = io_table->settings-table_style ).
lo_element->set_attribute_ns( name = 'showFirstColumn'
value = '0' ).
lo_element->set_attribute_ns( name = 'showLastColumn'
value = '0' ).
IF io_table->settings-show_row_stripes = abap_true.
lv_value = '1'.
ELSE.
lv_value = '0'.
ENDIF.
lo_element->set_attribute_ns( name = 'showRowStripes'
value = lv_value ).
IF io_table->settings-show_column_stripes = abap_true.
lv_value = '1'.
ELSE.
lv_value = '0'.
ENDIF.
lo_element->set_attribute_ns( name = 'showColumnStripes'
value = lv_value ).
lo_element_root->append_child( new_child = lo_element ).
**********************************************************************
* STEP 5: Create xstring stream
ep_content = render_xml_document( lo_document ).
ENDMETHOD.
METHOD create_xl_theme.
DATA: lo_theme TYPE REF TO zcl_excel_theme.
excel->get_theme(
IMPORTING
eo_theme = lo_theme
).
IF lo_theme IS INITIAL.
CREATE OBJECT lo_theme.
ENDIF.
ep_content = lo_theme->write_theme( ).
ENDMETHOD.
METHOD create_xl_workbook.
*--------------------------------------------------------------------*
* issue #230 - Pimp my Code
* - Stefan Schmoecker, (done) 2012-11-07
* - ...
* changes: aligning code
* adding comments to explain what we are trying to achieve
*--------------------------------------------------------------------*
* issue#235 - repeat rows/columns
* - Stefan Schmoecker, 2012-12-01
* changes: correction of pointer to localSheetId
*--------------------------------------------------------------------*
** Constant node name
DATA: lc_xml_node_workbook TYPE string VALUE 'workbook',
lc_xml_node_fileversion TYPE string VALUE 'fileVersion',
lc_xml_node_workbookpr TYPE string VALUE 'workbookPr',
lc_xml_node_bookviews TYPE string VALUE 'bookViews',
lc_xml_node_workbookview TYPE string VALUE 'workbookView',
lc_xml_node_sheets TYPE string VALUE 'sheets',
lc_xml_node_sheet TYPE string VALUE 'sheet',
lc_xml_node_calcpr TYPE string VALUE 'calcPr',
lc_xml_node_workbookprotection TYPE string VALUE 'workbookProtection',
lc_xml_node_definednames TYPE string VALUE 'definedNames',
lc_xml_node_definedname TYPE string VALUE 'definedName',
" Node attributes
lc_xml_attr_appname TYPE string VALUE 'appName',
lc_xml_attr_lastedited TYPE string VALUE 'lastEdited',
lc_xml_attr_lowestedited TYPE string VALUE 'lowestEdited',
lc_xml_attr_rupbuild TYPE string VALUE 'rupBuild',
lc_xml_attr_xwindow TYPE string VALUE 'xWindow',
lc_xml_attr_ywindow TYPE string VALUE 'yWindow',
lc_xml_attr_windowwidth TYPE string VALUE 'windowWidth',
lc_xml_attr_windowheight TYPE string VALUE 'windowHeight',
lc_xml_attr_activetab TYPE string VALUE 'activeTab',
lc_xml_attr_name TYPE string VALUE 'name',
lc_xml_attr_sheetid TYPE string VALUE 'sheetId',
lc_xml_attr_state TYPE string VALUE 'state',
lc_xml_attr_id TYPE string VALUE 'id',
lc_xml_attr_calcid TYPE string VALUE 'calcId',
lc_xml_attr_lockrevision TYPE string VALUE 'lockRevision',
lc_xml_attr_lockstructure TYPE string VALUE 'lockStructure',
lc_xml_attr_lockwindows TYPE string VALUE 'lockWindows',
lc_xml_attr_revisionspassword TYPE string VALUE 'revisionsPassword',
lc_xml_attr_workbookpassword TYPE string VALUE 'workbookPassword',
lc_xml_attr_hidden TYPE string VALUE 'hidden',
lc_xml_attr_localsheetid TYPE string VALUE 'localSheetId',
" Node namespace
lc_r_ns TYPE string VALUE 'r',
lc_xml_node_ns TYPE string VALUE 'http://schemas.openxmlformats.org/spreadsheetml/2006/main',
lc_xml_node_r_ns TYPE string VALUE 'http://schemas.openxmlformats.org/officeDocument/2006/relationships',
" Node id
lc_xml_node_ridx_id TYPE string VALUE 'rId#'.
DATA: lo_document TYPE REF TO if_ixml_document,
lo_element_root TYPE REF TO if_ixml_element,
lo_element TYPE REF TO if_ixml_element,
lo_element_range TYPE REF TO if_ixml_element,
lo_sub_element TYPE REF TO if_ixml_element,
lo_iterator TYPE REF TO cl_object_collection_iterator,
lo_iterator_range TYPE REF TO cl_object_collection_iterator,
lo_worksheet TYPE REF TO zcl_excel_worksheet,
lo_range TYPE REF TO zcl_excel_range,
lo_autofilters TYPE REF TO zcl_excel_autofilters,
lo_autofilter TYPE REF TO zcl_excel_autofilter.
DATA: lv_xml_node_ridx_id TYPE string,
lv_value TYPE string,
lv_syindex TYPE string,
lv_active_sheet TYPE zexcel_active_worksheet.
**********************************************************************
* STEP 1: Create [Content_Types].xml into the root of the ZIP
lo_document = create_xml_document( ).
**********************************************************************
* STEP 3: Create main node
lo_element_root = lo_document->create_simple_element( name = lc_xml_node_workbook
parent = lo_document ).
lo_element_root->set_attribute_ns( name = 'xmlns'
value = lc_xml_node_ns ).
lo_element_root->set_attribute_ns( name = 'xmlns:r'
value = lc_xml_node_r_ns ).
**********************************************************************
* STEP 4: Create subnode
" fileVersion node
lo_element = lo_document->create_simple_element( name = lc_xml_node_fileversion
parent = lo_document ).
lo_element->set_attribute_ns( name = lc_xml_attr_appname
value = 'xl' ).
lo_element->set_attribute_ns( name = lc_xml_attr_lastedited
value = '4' ).
lo_element->set_attribute_ns( name = lc_xml_attr_lowestedited
value = '4' ).
lo_element->set_attribute_ns( name = lc_xml_attr_rupbuild
value = '4506' ).
lo_element_root->append_child( new_child = lo_element ).
" fileVersion node
lo_element = lo_document->create_simple_element( name = lc_xml_node_workbookpr
parent = lo_document ).
* lo_element->set_attribute_ns( name = lc_xml_attr_themeversion
* value = '124226' ).
lo_element_root->append_child( new_child = lo_element ).
" workbookProtection node
IF me->excel->zif_excel_book_protection~protected EQ abap_true.
lo_element = lo_document->create_simple_element( name = lc_xml_node_workbookprotection
parent = lo_document ).
MOVE me->excel->zif_excel_book_protection~workbookpassword TO lv_value.
IF lv_value IS NOT INITIAL.
lo_element->set_attribute_ns( name = lc_xml_attr_workbookpassword
value = lv_value ).
ENDIF.
MOVE me->excel->zif_excel_book_protection~revisionspassword TO lv_value.
IF lv_value IS NOT INITIAL.
lo_element->set_attribute_ns( name = lc_xml_attr_revisionspassword
value = lv_value ).
ENDIF.
MOVE me->excel->zif_excel_book_protection~lockrevision TO lv_value.
CONDENSE lv_value NO-GAPS.
lo_element->set_attribute_ns( name = lc_xml_attr_lockrevision
value = lv_value ).
MOVE me->excel->zif_excel_book_protection~lockstructure TO lv_value.
CONDENSE lv_value NO-GAPS.
lo_element->set_attribute_ns( name = lc_xml_attr_lockstructure
value = lv_value ).
MOVE me->excel->zif_excel_book_protection~lockwindows TO lv_value.
CONDENSE lv_value NO-GAPS.
lo_element->set_attribute_ns( name = lc_xml_attr_lockwindows
value = lv_value ).
lo_element_root->append_child( new_child = lo_element ).
ENDIF.
" bookviews node
lo_element = lo_document->create_simple_element( name = lc_xml_node_bookviews
parent = lo_document ).
" bookview node
lo_sub_element = lo_document->create_simple_element( name = lc_xml_node_workbookview
parent = lo_document ).
lo_sub_element->set_attribute_ns( name = lc_xml_attr_xwindow
value = '120' ).
lo_sub_element->set_attribute_ns( name = lc_xml_attr_ywindow
value = '120' ).
lo_sub_element->set_attribute_ns( name = lc_xml_attr_windowwidth
value = '19035' ).
lo_sub_element->set_attribute_ns( name = lc_xml_attr_windowheight
value = '8445' ).
" Set Active Sheet
lv_active_sheet = excel->get_active_sheet_index( ).
* issue #365 - test if sheet exists - otherwise set active worksheet to 1
lo_worksheet = excel->get_worksheet_by_index( lv_active_sheet ).
IF lo_worksheet IS NOT BOUND.
lv_active_sheet = 1.
excel->set_active_sheet_index( lv_active_sheet ).
ENDIF.
IF lv_active_sheet > 1.
lv_active_sheet = lv_active_sheet - 1.
lv_value = lv_active_sheet.
CONDENSE lv_value.
lo_sub_element->set_attribute_ns( name = lc_xml_attr_activetab
value = lv_value ).
ENDIF.
lo_element->append_child( new_child = lo_sub_element )." bookview node
lo_element_root->append_child( new_child = lo_element )." bookviews node
" sheets node
lo_element = lo_document->create_simple_element( name = lc_xml_node_sheets
parent = lo_document ).
lo_iterator = excel->get_worksheets_iterator( ).
" ranges node
lo_element_range = lo_document->create_simple_element( name = lc_xml_node_definednames " issue 163 +
parent = lo_document ). " issue 163 +
WHILE lo_iterator->has_next( ) EQ abap_true.
" sheet node
lo_sub_element = lo_document->create_simple_element_ns( name = lc_xml_node_sheet
parent = lo_document ).
lo_worksheet ?= lo_iterator->get_next( ).
lv_syindex = sy-index. " question by Stefan Schmöcker 2012-12-02: sy-index seems to do the job - but is it proven to work or purely coincedence
lv_value = lo_worksheet->get_title( ).
SHIFT lv_syindex RIGHT DELETING TRAILING space.
SHIFT lv_syindex LEFT DELETING LEADING space.
lv_xml_node_ridx_id = lc_xml_node_ridx_id.
REPLACE ALL OCCURRENCES OF '#' IN lv_xml_node_ridx_id WITH lv_syindex.
lo_sub_element->set_attribute_ns( name = lc_xml_attr_name
value = lv_value ).
lo_sub_element->set_attribute_ns( name = lc_xml_attr_sheetid
value = lv_syindex ).
IF lo_worksheet->zif_excel_sheet_properties~hidden EQ zif_excel_sheet_properties=>c_hidden.
lo_sub_element->set_attribute_ns( name = lc_xml_attr_state
value = 'hidden' ).
ELSEIF lo_worksheet->zif_excel_sheet_properties~hidden EQ zif_excel_sheet_properties=>c_veryhidden.
lo_sub_element->set_attribute_ns( name = lc_xml_attr_state
value = 'veryHidden' ).
ENDIF.
lo_sub_element->set_attribute_ns( name = lc_xml_attr_id
prefix = lc_r_ns
value = lv_xml_node_ridx_id ).
lo_element->append_child( new_child = lo_sub_element ). " sheet node
" issue 163 >>>
lo_iterator_range = lo_worksheet->get_ranges_iterator( ).
*--------------------------------------------------------------------*
* Defined names sheetlocal: Ranges, Repeat rows and columns
*--------------------------------------------------------------------*
WHILE lo_iterator_range->has_next( ) EQ abap_true.
" range node
lo_sub_element = lo_document->create_simple_element_ns( name = lc_xml_node_definedname
parent = lo_document ).
lo_range ?= lo_iterator_range->get_next( ).
lv_value = lo_range->name.
lo_sub_element->set_attribute_ns( name = lc_xml_attr_name
value = lv_value ).
* lo_sub_element->set_attribute_ns( name = lc_xml_attr_localsheetid "del #235 Repeat rows/cols - EXCEL starts couting from zero
* value = lv_xml_node_ridx_id ). "del #235 Repeat rows/cols - and needs absolute referencing to localSheetId
lv_value = lv_syindex - 1. "ins #235 Repeat rows/cols
CONDENSE lv_value NO-GAPS. "ins #235 Repeat rows/cols
lo_sub_element->set_attribute_ns( name = lc_xml_attr_localsheetid
value = lv_value ).
lv_value = lo_range->get_value( ).
lo_sub_element->set_value( value = lv_value ).
lo_element_range->append_child( new_child = lo_sub_element ). " range node
ENDWHILE.
" issue 163 <<<
ENDWHILE.
lo_element_root->append_child( new_child = lo_element )." sheets node
*--------------------------------------------------------------------*
* Defined names workbookgolbal: Ranges
*--------------------------------------------------------------------*
* " ranges node
* lo_element = lo_document->create_simple_element( name = lc_xml_node_definednames " issue 163 -
* parent = lo_document ). " issue 163 -
lo_iterator = excel->get_ranges_iterator( ).
WHILE lo_iterator->has_next( ) EQ abap_true.
" range node
lo_sub_element = lo_document->create_simple_element_ns( name = lc_xml_node_definedname
parent = lo_document ).
lo_range ?= lo_iterator->get_next( ).
lv_value = lo_range->name.
lo_sub_element->set_attribute_ns( name = lc_xml_attr_name
value = lv_value ).
lv_value = lo_range->get_value( ).
lo_sub_element->set_value( value = lv_value ).
lo_element_range->append_child( new_child = lo_sub_element ). " range node
ENDWHILE.
*--------------------------------------------------------------------*
* Defined names - Autofilters ( also sheetlocal )
*--------------------------------------------------------------------*
lo_autofilters = excel->get_autofilters_reference( ).
IF lo_autofilters->is_empty( ) = abap_false.
lo_iterator = excel->get_worksheets_iterator( ).
WHILE lo_iterator->has_next( ) EQ abap_true.
lo_worksheet ?= lo_iterator->get_next( ).
lv_syindex = sy-index - 1 .
lo_autofilter = lo_autofilters->get( io_worksheet = lo_worksheet ).
IF lo_autofilter IS BOUND.
lo_sub_element = lo_document->create_simple_element_ns( name = lc_xml_node_definedname
parent = lo_document ).
lv_value = lo_autofilters->c_autofilter.
lo_sub_element->set_attribute_ns( name = lc_xml_attr_name
value = lv_value ).
lv_value = lv_syindex.
CONDENSE lv_value NO-GAPS.
lo_sub_element->set_attribute_ns( name = lc_xml_attr_localsheetid
value = lv_value ).
lv_value = '1'. " Always hidden
lo_sub_element->set_attribute_ns( name = lc_xml_attr_hidden
value = lv_value ).
lv_value = lo_autofilter->get_filter_reference( ).
lo_sub_element->set_value( value = lv_value ).
lo_element_range->append_child( new_child = lo_sub_element ). " range node
ENDIF.
ENDWHILE.
ENDIF.
lo_element_root->append_child( new_child = lo_element_range ). " ranges node
" calcPr node
lo_element = lo_document->create_simple_element( name = lc_xml_node_calcpr
parent = lo_document ).
lo_element->set_attribute_ns( name = lc_xml_attr_calcid
value = '125725' ).
lo_element_root->append_child( new_child = lo_element ).
**********************************************************************
* STEP 5: Create xstring stream
ep_content = render_xml_document( lo_document ).
ENDMETHOD.
METHOD flag2bool.
IF ip_flag EQ abap_true.
ep_boolean = 'true'.
ELSE.
ep_boolean = 'false'.
ENDIF.
ENDMETHOD.
METHOD get_shared_string_index.
DATA ls_shared_string TYPE zexcel_s_shared_string.
* READ TABLE shared_strings INTO ls_shared_string WITH KEY string_value = ip_cell_value BINARY SEARCH.
IF it_rtf IS INITIAL.
READ TABLE shared_strings INTO ls_shared_string WITH TABLE KEY string_value = ip_cell_value.
ep_index = ls_shared_string-string_no.
ELSE.
LOOP AT shared_strings INTO ls_shared_string WHERE string_value = ip_cell_value
AND rtf_tab = it_rtf.
ep_index = ls_shared_string-string_no.
EXIT.
ENDLOOP.
ENDIF.
ENDMETHOD.
METHOD is_formula_shareable.
DATA: lv_test_shared TYPE string.
ep_shareable = abap_false.
IF ip_formula NA '!'.
lv_test_shared = zcl_excel_common=>shift_formula(
iv_reference_formula = ip_formula
iv_shift_cols = 1
iv_shift_rows = 1 ).
IF lv_test_shared <> ip_formula.
ep_shareable = abap_true.
ENDIF.
ENDIF.
ENDMETHOD.
METHOD set_vml_shape_footer.
CONSTANTS: lc_shape TYPE string VALUE '<v:shape id="{ID}" o:spid="_x0000_s1025" type="#_x0000_t75" style=''position:absolute;margin-left:0;margin-top:0;width:{WIDTH}pt;height:{HEIGHT}pt; z-index:1''>',
lc_shape_image TYPE string VALUE '<v:imagedata o:relid="{RID}" o:title="Logo Title"/><o:lock v:ext="edit" rotation="t"/></v:shape>',
lc_shape_header_center TYPE string VALUE 'CH',
lc_shape_header_left TYPE string VALUE 'LH',
lc_shape_header_right TYPE string VALUE 'RH',
lc_shape_footer_center TYPE string VALUE 'CF',
lc_shape_footer_left TYPE string VALUE 'LF',
lc_shape_footer_right TYPE string VALUE 'RF'.
DATA: lv_content_left TYPE string,
lv_content_center TYPE string,
lv_content_right TYPE string,
lv_content_image_left TYPE string,
lv_content_image_center TYPE string,
lv_content_image_right TYPE string,
lv_value TYPE string,
ls_drawing_position TYPE zexcel_drawing_position.
IF is_footer-left_image IS NOT INITIAL.
lv_content_left = lc_shape.
REPLACE '{ID}' IN lv_content_left WITH lc_shape_footer_left.
ls_drawing_position = is_footer-left_image->get_position( ).
IF ls_drawing_position-size-height IS NOT INITIAL.
lv_value = ls_drawing_position-size-height.
ELSE.
lv_value = '100'.
ENDIF.
CONDENSE lv_value.
REPLACE '{HEIGHT}' IN lv_content_left WITH lv_value.
IF ls_drawing_position-size-width IS NOT INITIAL.
lv_value = ls_drawing_position-size-width.
ELSE.
lv_value = '100'.
ENDIF.
CONDENSE lv_value.
REPLACE '{WIDTH}' IN lv_content_left WITH lv_value.
lv_content_image_left = lc_shape_image.
lv_value = is_footer-left_image->get_index( ).
CONDENSE lv_value.
CONCATENATE 'rId' lv_value INTO lv_value.
REPLACE '{RID}' IN lv_content_image_left WITH lv_value.
ENDIF.
IF is_footer-center_image IS NOT INITIAL.
lv_content_center = lc_shape.
REPLACE '{ID}' IN lv_content_center WITH lc_shape_footer_center.
ls_drawing_position = is_footer-left_image->get_position( ).
IF ls_drawing_position-size-height IS NOT INITIAL.
lv_value = ls_drawing_position-size-height.
ELSE.
lv_value = '100'.
ENDIF.
CONDENSE lv_value.
REPLACE '{HEIGHT}' IN lv_content_center WITH lv_value.
IF ls_drawing_position-size-width IS NOT INITIAL.
lv_value = ls_drawing_position-size-width.
ELSE.
lv_value = '100'.
ENDIF.
CONDENSE lv_value.
REPLACE '{WIDTH}' IN lv_content_center WITH lv_value.
lv_content_image_center = lc_shape_image.
lv_value = is_footer-center_image->get_index( ).
CONDENSE lv_value.
CONCATENATE 'rId' lv_value INTO lv_value.
REPLACE '{RID}' IN lv_content_image_center WITH lv_value.
ENDIF.
IF is_footer-right_image IS NOT INITIAL.
lv_content_right = lc_shape.
REPLACE '{ID}' IN lv_content_right WITH lc_shape_footer_right.
ls_drawing_position = is_footer-left_image->get_position( ).
IF ls_drawing_position-size-height IS NOT INITIAL.
lv_value = ls_drawing_position-size-height.
ELSE.
lv_value = '100'.
ENDIF.
CONDENSE lv_value.
REPLACE '{HEIGHT}' IN lv_content_right WITH lv_value.
IF ls_drawing_position-size-width IS NOT INITIAL.
lv_value = ls_drawing_position-size-width.
ELSE.
lv_value = '100'.
ENDIF.
CONDENSE lv_value.
REPLACE '{WIDTH}' IN lv_content_right WITH lv_value.
lv_content_image_right = lc_shape_image.
lv_value = is_footer-right_image->get_index( ).
CONDENSE lv_value.
CONCATENATE 'rId' lv_value INTO lv_value.
REPLACE '{RID}' IN lv_content_image_right WITH lv_value.
ENDIF.
CONCATENATE lv_content_left
lv_content_image_left
lv_content_center
lv_content_image_center
lv_content_right
lv_content_image_right
INTO ep_content.
ENDMETHOD.
METHOD set_vml_shape_header.
* CONSTANTS: lc_shape TYPE string VALUE '<v:shape id="{ID}" o:spid="_x0000_s1025" type="#_x0000_t75" style=''position:absolute;margin-left:0;margin-top:0;width:198.75pt;height:48.75pt; z-index:1''>',
CONSTANTS: lc_shape TYPE string VALUE '<v:shape id="{ID}" o:spid="_x0000_s1025" type="#_x0000_t75" style=''position:absolute;margin-left:0;margin-top:0;width:{WIDTH}pt;height:{HEIGHT}pt; z-index:1''>',
lc_shape_image TYPE string VALUE '<v:imagedata o:relid="{RID}" o:title="Logo Title"/><o:lock v:ext="edit" rotation="t"/></v:shape>',
lc_shape_header_center TYPE string VALUE 'CH',
lc_shape_header_left TYPE string VALUE 'LH',
lc_shape_header_right TYPE string VALUE 'RH',
lc_shape_footer_center TYPE string VALUE 'CF',
lc_shape_footer_left TYPE string VALUE 'LF',
lc_shape_footer_right TYPE string VALUE 'RF'.
DATA: lv_content_left TYPE string,
lv_content_center TYPE string,
lv_content_right TYPE string,
lv_content_image_left TYPE string,
lv_content_image_center TYPE string,
lv_content_image_right TYPE string,
lv_value TYPE string,
ls_drawing_position TYPE zexcel_drawing_position.
CLEAR ep_content.
IF is_header-left_image IS NOT INITIAL.
lv_content_left = lc_shape.
REPLACE '{ID}' IN lv_content_left WITH lc_shape_header_left.
ls_drawing_position = is_header-left_image->get_position( ).
IF ls_drawing_position-size-height IS NOT INITIAL.
lv_value = ls_drawing_position-size-height.
ELSE.
lv_value = '100'.
ENDIF.
CONDENSE lv_value.
REPLACE '{HEIGHT}' IN lv_content_left WITH lv_value.
IF ls_drawing_position-size-width IS NOT INITIAL.
lv_value = ls_drawing_position-size-width.
ELSE.
lv_value = '100'.
ENDIF.
CONDENSE lv_value.
REPLACE '{WIDTH}' IN lv_content_left WITH lv_value.
lv_content_image_left = lc_shape_image.
lv_value = is_header-left_image->get_index( ).
CONDENSE lv_value.
CONCATENATE 'rId' lv_value INTO lv_value.
REPLACE '{RID}' IN lv_content_image_left WITH lv_value.
ENDIF.
IF is_header-center_image IS NOT INITIAL.
lv_content_center = lc_shape.
REPLACE '{ID}' IN lv_content_center WITH lc_shape_header_center.
ls_drawing_position = is_header-center_image->get_position( ).
IF ls_drawing_position-size-height IS NOT INITIAL.
lv_value = ls_drawing_position-size-height.
ELSE.
lv_value = '100'.
ENDIF.
CONDENSE lv_value.
REPLACE '{HEIGHT}' IN lv_content_center WITH lv_value.
IF ls_drawing_position-size-width IS NOT INITIAL.
lv_value = ls_drawing_position-size-width.
ELSE.
lv_value = '100'.
ENDIF.
CONDENSE lv_value.
REPLACE '{WIDTH}' IN lv_content_center WITH lv_value.
lv_content_image_center = lc_shape_image.
lv_value = is_header-center_image->get_index( ).
CONDENSE lv_value.
CONCATENATE 'rId' lv_value INTO lv_value.
REPLACE '{RID}' IN lv_content_image_center WITH lv_value.
ENDIF.
IF is_header-right_image IS NOT INITIAL.
lv_content_right = lc_shape.
REPLACE '{ID}' IN lv_content_right WITH lc_shape_header_right.
ls_drawing_position = is_header-right_image->get_position( ).
IF ls_drawing_position-size-height IS NOT INITIAL.
lv_value = ls_drawing_position-size-height.
ELSE.
lv_value = '100'.
ENDIF.
CONDENSE lv_value.
REPLACE '{HEIGHT}' IN lv_content_right WITH lv_value.
IF ls_drawing_position-size-width IS NOT INITIAL.
lv_value = ls_drawing_position-size-width.
ELSE.
lv_value = '100'.
ENDIF.
CONDENSE lv_value.
REPLACE '{WIDTH}' IN lv_content_right WITH lv_value.
lv_content_image_right = lc_shape_image.
lv_value = is_header-right_image->get_index( ).
CONDENSE lv_value.
CONCATENATE 'rId' lv_value INTO lv_value.
REPLACE '{RID}' IN lv_content_image_right WITH lv_value.
ENDIF.
CONCATENATE lv_content_left
lv_content_image_left
lv_content_center
lv_content_image_center
lv_content_right
lv_content_image_right
INTO ep_content.
ENDMETHOD.
METHOD set_vml_string.
DATA:
ld_1 TYPE string,
ld_2 TYPE string,
ld_3 TYPE string,
ld_4 TYPE string,
ld_5 TYPE string,
ld_7 TYPE string,
lv_relation_id TYPE i,
lo_iterator TYPE REF TO cl_object_collection_iterator,
lo_worksheet TYPE REF TO zcl_excel_worksheet,
ls_odd_header TYPE zexcel_s_worksheet_head_foot,
ls_odd_footer TYPE zexcel_s_worksheet_head_foot,
ls_even_header TYPE zexcel_s_worksheet_head_foot,
ls_even_footer TYPE zexcel_s_worksheet_head_foot.
* INIT_RESULT
CLEAR ep_content.
* BODY
ld_1 = '<xml xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel"><o:shapelayout v:ext="edit"><o:idmap v:ext="edit" data="1"/></o:shapelayout>'.
ld_2 = '<v:shapetype id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f"><v:stroke joinstyle="miter"/><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"/>'.
ld_3 = '<v:f eqn="sum @0 1 0"/><v:f eqn="sum 0 0 @1"/><v:f eqn="prod @2 1 2"/><v:f eqn="prod @3 21600 pixelWidth"/><v:f eqn="prod @3 21600 pixelHeight"/><v:f eqn="sum @0 0 1"/><v:f eqn="prod @6 1 2"/><v:f eqn="prod @7 21600 pixelWidth"/>'.
ld_4 = '<v:f eqn="sum @8 21600 0"/><v:f eqn="prod @7 21600 pixelHeight"/><v:f eqn="sum @10 21600 0"/></v:formulas><v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/><o:lock v:ext="edit" aspectratio="t"/></v:shapetype>'.
CONCATENATE ld_1
ld_2
ld_3
ld_4
INTO ep_content.
lv_relation_id = 0.
lo_iterator = me->excel->get_worksheets_iterator( ).
WHILE lo_iterator->has_next( ) EQ abap_true.
lo_worksheet ?= lo_iterator->get_next( ).
lo_worksheet->sheet_setup->get_header_footer( IMPORTING ep_odd_header = ls_odd_header
ep_odd_footer = ls_odd_footer
ep_even_header = ls_even_header
ep_even_footer = ls_even_footer ).
ld_5 = me->set_vml_shape_header( ls_odd_header ).
CONCATENATE ep_content
ld_5
INTO ep_content.
ld_5 = me->set_vml_shape_header( ls_even_header ).
CONCATENATE ep_content
ld_5
INTO ep_content.
ld_5 = me->set_vml_shape_footer( ls_odd_footer ).
CONCATENATE ep_content
ld_5
INTO ep_content.
ld_5 = me->set_vml_shape_footer( ls_even_footer ).
CONCATENATE ep_content
ld_5
INTO ep_content.
ENDWHILE.
ld_7 = '</xml>'.
CONCATENATE ep_content
ld_7
INTO ep_content.
ENDMETHOD.
METHOD create_xml_document.
DATA lo_encoding TYPE REF TO if_ixml_encoding.
lo_encoding = me->ixml->create_encoding( byte_order = if_ixml_encoding=>co_platform_endian
character_set = 'utf-8' ).
ro_document = me->ixml->create_document( ).
ro_document->set_encoding( lo_encoding ).
ro_document->set_standalone( abap_true ).
ENDMETHOD.
METHOD render_xml_document.
DATA lo_streamfactory TYPE REF TO if_ixml_stream_factory.
DATA lo_ostream TYPE REF TO if_ixml_ostream.
DATA lo_renderer TYPE REF TO if_ixml_renderer.
DATA lv_string TYPE string.
" So that the rendering of io_document to a XML text in UTF-8 XSTRING works for all Unicode characters (Chinese,
" emoticons, etc.) the method CREATE_OSTREAM_CSTRING must be used instead of CREATE_OSTREAM_XSTRING as explained
" in note 2922674 below (original there: https://launchpad.support.sap.com/#/notes/2922674), and then the STRING
" variable can be converted into UTF-8.
"
" Excerpt from Note 2922674 - Support for Unicode Characters U+10000 to U+10FFFF in the iXML kernel library / ABAP package SIXML.
"
" You are running a unicode system with SAP Netweaver / SAP_BASIS release equal or lower than 7.51.
"
" Some functions in the iXML kernel library / ABAP package SIXML does not fully or incorrectly support unicode
" characters of the supplementary planes. This is caused by using UCS-2 in codepage conversion functions.
" Therefore, when reading from iXML input steams, the characters from the supplementary planes, that are not
" supported by UCS-2, might be replaced by the character #. When writing to iXML output streams, UTF-16 surrogate
" pairs, representing characters from the supplementary planes, might be incorrectly encoded in UTF-8.
"
" The characters incorrectly encoded in UTF-8, might be accepted as input for the iXML parser or external parsers,
" but might also be rejected.
"
" Support for unicode characters of the supplementary planes was introduced for SAP_BASIS 7.51 or lower with note
" 2220720, but later withdrawn with note 2346627 for functional issues.
"
" Characters of the supplementary planes are supported with ABAP Platform 1709 / SAP_BASIS 7.52 and higher.
"
" Please note, that the iXML runtime behaves like the ABAP runtime concerning the handling of unicode characters of
" the supplementary planes. In iXML and ABAP, these characters have length 2 (as returned by ABAP build-in function
" STRLEN), and string processing functions like SUBSTRING might split these characters into 2 invalid characters
" with length 1. These invalid characters are commonly referred to as broken surrogate pairs.
"
" A workaround for the incorrect UTF-8 encoding in SAP_BASIS 7.51 or lower is to render the document to an ABAP
" variable with type STRING using a output stream created with factory method IF_IXML_STREAM_FACTORY=>CREATE_OSTREAM_CSTRING
" and then to convert the STRING variable to UTF-8 using method CL_ABAP_CODEPAGE=>CONVERT_TO.
" 1) RENDER TO XML STRING
lo_streamfactory = me->ixml->create_stream_factory( ).
lo_ostream = lo_streamfactory->create_ostream_cstring( string = lv_string ).
lo_renderer = me->ixml->create_renderer( ostream = lo_ostream document = io_document ).
lo_renderer->render( ).
" 2) CONVERT IT TO UTF-8
"-----------------
" The beginning of the XML string has these 57 characters:
" X<?xml version="1.0" encoding="utf-16" standalone="yes"?>
" (where "X" is the special character corresponding to the utf-16 BOM, hexadecimal FFFE or FEFF,
" but there's no "X" in non-Unicode SAP systems)
" The encoding must be removed otherwise Excel would fail to decode correctly the UTF-8 XML.
" For a better performance, it's assumed that "encoding" is in the first 100 characters.
IF strlen( lv_string ) < 100.
REPLACE REGEX 'encoding="[^"]+"' IN lv_string WITH ``.
ELSE.
REPLACE REGEX 'encoding="[^"]+"' IN SECTION LENGTH 100 OF lv_string WITH ``.
ENDIF.
" Convert XML text to UTF-8 (NB: if 2 first bytes are the UTF-16 BOM, they are converted into 3 bytes of UTF-8 BOM)
ep_content = cl_abap_codepage=>convert_to( source = lv_string ).
" Add the UTF-8 Byte Order Mark if missing (NB: that serves as substitute of "encoding")
IF xstrlen( ep_content ) >= 3 AND ep_content(3) <> cl_abap_char_utilities=>byte_order_mark_utf8.
CONCATENATE cl_abap_char_utilities=>byte_order_mark_utf8 ep_content INTO ep_content IN BYTE MODE.
ENDIF.
ENDMETHOD.
METHOD zif_excel_writer~write_file.
me->excel = io_excel.
ep_file = me->create( ).
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
1069,
5276,
62,
16002,
62,
12726,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
198,
198,
9,
1,
9,
1171,
6805,
286,
1398,
1168,
5097,
62,
6369,
34,
3698,
62,
18564,
2043,
1137,
62,
12726,
198,
9,
1,
9,
466,
407,
2291,
584,
2723,
3696,
994,
10185,
198,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
1069,
5276,
62,
16002,
764,
198,
220,
220,
220,
337,
36252,
50,
23772,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
198,
198,
9,
1,
9,
6861,
6805,
286,
1398,
1168,
5097,
62,
6369,
34,
3698,
62,
18564,
2043,
1137,
62,
12726,
198,
9,
1,
9,
466,
407,
2291,
584,
2723,
3696,
994,
10185,
198,
220,
220,
220,
24412,
47,
1546,
25,
347,
43312,
3963,
285,
774,
62,
28665,
62,
687,
4712,
62,
1484,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4686,
41876,
1976,
1069,
5276,
62,
82,
62,
3846,
62,
7890,
12,
28665,
62,
687,
4712,
62,
312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33721,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
0,
2099,
25,
4888,
11,
3503,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
256,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
285,
774,
62,
28665,
62,
687,
4712,
62,
1484,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
774,
62,
28665,
62,
687,
25283,
62,
1484,
41876,
367,
11211,
1961,
43679,
3963,
285,
774,
62,
28665,
62,
687,
4712,
62,
1484,
13315,
4725,
33866,
8924,
35374,
4686,
13,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
11299,
62,
19199,
41876,
4731,
26173,
8924,
44438,
19746,
62,
31431,
4083,
19875,
4458,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
15390,
1676,
862,
62,
1324,
41876,
4731,
26173,
8924,
705,
15390,
2964,
862,
14,
1324,
13,
19875,
4458,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
15390,
1676,
862,
62,
7295,
41876,
4731,
26173,
8924,
705,
15390,
2964,
862,
14,
7295,
13,
19875,
4458,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
39468,
5748,
41876,
4731,
26173,
8924,
705,
62,
2411,
82,
11757,
2411,
82,
4458,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
87,
75,
62,
9948,
66,
7983,
41876,
4731,
26173,
8924,
705,
87,
75,
14,
9948,
66,
35491,
13,
19875,
4458,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
87,
75,
62,
19334,
654,
41876,
4731,
26173,
8924,
705,
87,
75,
14,
19334,
654,
14,
19334,
278,
2,
13,
19875,
4458,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
87,
75,
62,
19334,
654,
62,
2411,
82,
41876,
4731,
26173,
8924,
705,
87,
75,
14,
19334,
654,
47835,
2411,
82,
14,
19334,
278,
2,
13,
19875,
13,
2411,
82,
4458,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
87,
75,
62,
39468,
5748,
41876,
4731,
26173,
8924,
705,
87,
75,
47835,
2411,
82,
14,
1818,
2070,
13,
19875,
13,
2411,
82,
4458,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
87,
75,
62,
28710,
37336,
41876,
4731,
26173,
8924,
705,
87,
75,
14,
28710,
13290,
654,
13,
19875,
4458,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
87,
75,
62,
21760,
41876,
4731,
26173,
8924,
705,
87,
75,
14,
5225,
258,
1039,
14,
21760,
2,
13,
19875,
4458,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
87,
75,
62,
21760,
62,
2411,
82,
41876,
4731,
26173,
8924,
705,
87,
75,
14,
5225,
258,
1039,
47835,
2411,
82,
14,
21760,
2,
13,
19875,
13,
2411,
82,
4458,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
87,
75,
62,
47720,
41876,
4731,
26173,
8924,
705,
87,
75,
14,
47720,
13,
19875,
4458,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
87,
75,
62,
43810,
41876,
4731,
26173,
8924,
705,
87,
75,
14,
43810,
14,
43810,
16,
13,
19875,
4458,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
87,
75,
62,
1818,
2070,
41876,
4731,
26173,
8924,
705,
87,
75,
14,
1818,
2070,
13,
19875,
4458,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
42865,
27336,
41876,
4526,
37,
5390,
1976,
565,
62,
1069,
5276,
764,
198,
220,
220,
220,
42865,
4888,
62,
37336,
41876,
1976,
1069,
5276,
62,
83,
62,
28710,
62,
8841,
764,
198,
220,
220,
220,
42865,
12186,
62,
17561,
62,
76,
5912,
41876,
1976,
1069,
5276,
62,
83,
62,
47720,
62,
17561,
62,
76,
5912,
764,
198,
220,
220,
220,
42865,
12186,
62,
76,
5912,
41876,
1976,
1069,
5276,
62,
83,
62,
47720,
62,
76,
5912,
764,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
87,
75,
62,
15944,
41876,
4731,
26173,
8924,
705,
87,
75,
14,
15944,
2,
13,
19875,
4458,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
537,
62,
87,
75,
62,
19334,
278,
62,
1640,
62,
15944,
41876,
4731,
26173,
8924,
705,
87,
75,
14,
19334,
654,
14,
85,
4029,
25302,
278,
2,
13,
85,
4029,
4458,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
87,
75,
62,
19334,
654,
62,
85,
4029,
62,
2411,
82,
41876,
4731,
26173,
8924,
705,
87,
75,
14,
19334,
654,
47835,
2411,
82,
14,
85,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_abapgit_object_susc DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL.
PUBLIC SECTION.
INTERFACES zif_abapgit_object.
ALIASES mo_files FOR zif_abapgit_object~mo_files.
PROTECTED SECTION.
CONSTANTS transobjecttype_class TYPE char1 VALUE 'C' ##NO_TEXT.
METHODS has_authorization
IMPORTING iv_object_type TYPE seu_obj "seu_objid not known in 702/09
iv_class TYPE tobc-oclss
iv_activity TYPE activ_auth
RAISING zcx_abapgit_exception.
METHODS is_used
IMPORTING iv_auth_object_class TYPE tobc-oclss
RAISING zcx_abapgit_exception.
PRIVATE SECTION.
METHODS delete_class
IMPORTING iv_auth_object_class TYPE tobc-oclss.
METHODS put_delete_to_transport
IMPORTING iv_auth_object_class TYPE tobc-oclss
iv_object_type TYPE seu_obj "seu_objid not known in 702/09
RAISING zcx_abapgit_exception.
ENDCLASS.
CLASS ZCL_ABAPGIT_OBJECT_SUSC IMPLEMENTATION.
METHOD delete_class.
DELETE FROM tobc WHERE oclss = iv_auth_object_class.
DELETE FROM tobct WHERE oclss = iv_auth_object_class.
ENDMETHOD.
METHOD has_authorization.
AUTHORITY-CHECK OBJECT 'S_DEVELOP'
ID 'DEVCLASS' DUMMY
ID 'OBJTYPE' FIELD iv_object_type
ID 'OBJNAME' FIELD iv_class
ID 'P_GROUP' DUMMY
ID 'ACTVT' FIELD iv_activity.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise_t100( iv_msgid = '01'
iv_msgno = '467' ).
ENDIF.
ENDMETHOD.
METHOD is_used.
DATA: lv_used_auth_object_class TYPE tobc-oclss.
SELECT SINGLE oclss
FROM tobj
INTO lv_used_auth_object_class
WHERE oclss = iv_auth_object_class ##WARN_OK.
IF sy-subrc = 0.
zcx_abapgit_exception=>raise_t100( iv_msgid = '01'
iv_msgno = '212'
iv_msgv1 = |{ iv_auth_object_class }| ).
ENDIF.
ENDMETHOD.
METHOD put_delete_to_transport.
DATA: lv_tr_object_name TYPE e071-obj_name,
lv_tr_return TYPE char1,
ls_package_info TYPE tdevc,
lv_tadir_object TYPE tadir-object,
lv_tadir_obj_name TYPE tadir-obj_name.
lv_tr_object_name = iv_auth_object_class.
CALL FUNCTION 'SUSR_COMMEDITCHECK'
EXPORTING
objectname = lv_tr_object_name
transobjecttype = zcl_abapgit_object_susc=>transobjecttype_class
IMPORTING
return_from_korr = lv_tr_return.
IF lv_tr_return <> 'M'.
zcx_abapgit_exception=>raise( |error in SUSC delete at SUSR_COMMEDITCHECK| ).
ENDIF.
CALL FUNCTION 'TR_DEVCLASS_GET'
EXPORTING
iv_devclass = ms_item-devclass
IMPORTING
es_tdevc = ls_package_info
EXCEPTIONS
OTHERS = 1.
IF sy-subrc = 0 AND ls_package_info-korrflag IS INITIAL.
lv_tadir_object = iv_object_type.
lv_tadir_obj_name = lv_tr_object_name.
CALL FUNCTION 'TR_TADIR_INTERFACE'
EXPORTING
wi_delete_tadir_entry = abap_true
wi_test_modus = space
wi_tadir_pgmid = 'R3TR'
wi_tadir_object = lv_tadir_object
wi_tadir_obj_name = lv_tadir_obj_name
EXCEPTIONS
OTHERS = 0.
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_object~changed_by.
rv_user = c_user_unknown. " todo
ENDMETHOD.
METHOD zif_abapgit_object~compare_to_remote_version.
CREATE OBJECT ro_comparison_result TYPE zcl_abapgit_comparison_null.
ENDMETHOD.
METHOD zif_abapgit_object~delete.
CONSTANTS lc_activity_delete_06 TYPE activ_auth VALUE '06'.
DATA: lv_auth_object_class TYPE tobc-oclss.
DATA: lv_object_type TYPE seu_obj. "seu_objid not known in 702/09
DATA: lv_tr_object_name TYPE e071-obj_name.
DATA: lv_tr_return TYPE char1.
lv_auth_object_class = ms_item-obj_name.
lv_object_type = ms_item-obj_type.
TRY.
me->zif_abapgit_object~exists( ).
CATCH zcx_abapgit_exception.
RETURN.
ENDTRY.
has_authorization( iv_object_type = lv_object_type
iv_class = lv_auth_object_class
iv_activity = lc_activity_delete_06 ).
is_used( lv_auth_object_class ).
delete_class( lv_auth_object_class ).
put_delete_to_transport( iv_auth_object_class = lv_auth_object_class
iv_object_type = lv_object_type ).
ENDMETHOD.
METHOD zif_abapgit_object~deserialize.
* see function group SUSA
DATA: ls_tobc TYPE tobc,
lv_objectname TYPE e071-obj_name,
ls_tobct TYPE tobct.
io_xml->read( EXPORTING iv_name = 'TOBC'
CHANGING cg_data = ls_tobc ).
io_xml->read( EXPORTING iv_name = 'TOBCT'
CHANGING cg_data = ls_tobct ).
tadir_insert( iv_package ).
lv_objectname = ms_item-obj_name.
CALL FUNCTION 'SUSR_COMMEDITCHECK'
EXPORTING
objectname = lv_objectname
transobjecttype = zcl_abapgit_object_susc=>transobjecttype_class.
INSERT tobc FROM ls_tobc. "#EC CI_SUBRC
* ignore sy-subrc as all fields are key fields
MODIFY tobct FROM ls_tobct. "#EC CI_SUBRC
ASSERT sy-subrc = 0.
ENDMETHOD.
METHOD zif_abapgit_object~exists.
DATA: lv_oclss TYPE tobc-oclss.
SELECT SINGLE oclss FROM tobc INTO lv_oclss
WHERE oclss = ms_item-obj_name.
rv_bool = boolc( sy-subrc = 0 ).
ENDMETHOD.
METHOD zif_abapgit_object~get_metadata.
rs_metadata = get_metadata( ).
rs_metadata-delete_tadir = abap_true.
ENDMETHOD.
METHOD zif_abapgit_object~has_changed_since.
rv_changed = abap_true.
ENDMETHOD.
METHOD zif_abapgit_object~is_active.
rv_active = is_active( ).
ENDMETHOD.
METHOD zif_abapgit_object~is_locked.
rv_is_locked = abap_false.
ENDMETHOD.
METHOD zif_abapgit_object~jump.
DATA: lv_objclass TYPE tobc-oclss.
lv_objclass = ms_item-obj_name.
CALL FUNCTION 'SUSR_SHOW_OBJECT_CLASS'
EXPORTING
objclass = lv_objclass.
ENDMETHOD.
METHOD zif_abapgit_object~serialize.
DATA: ls_tobc TYPE tobc,
ls_tobct TYPE tobct.
SELECT SINGLE * FROM tobc INTO ls_tobc
WHERE oclss = ms_item-obj_name.
IF sy-subrc <> 0.
RETURN.
ENDIF.
SELECT SINGLE * FROM tobct INTO ls_tobct
WHERE oclss = ms_item-obj_name
AND langu = mv_language.
io_xml->add( iv_name = 'TOBC'
ig_data = ls_tobc ).
io_xml->add( iv_name = 'TOBCT'
ig_data = ls_tobct ).
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
82,
16241,
5550,
20032,
17941,
44731,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
397,
499,
18300,
62,
48205,
62,
16668,
25261,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
397,
499,
18300,
62,
15252,
13,
198,
220,
220,
220,
8355,
43429,
1546,
6941,
62,
16624,
7473,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
5908,
62,
16624,
13,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
1007,
15252,
4906,
62,
4871,
41876,
1149,
16,
26173,
8924,
705,
34,
6,
22492,
15285,
62,
32541,
13,
628,
220,
220,
220,
337,
36252,
50,
468,
62,
9800,
1634,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
21628,
62,
15252,
62,
4906,
41876,
384,
84,
62,
26801,
366,
325,
84,
62,
26801,
312,
407,
1900,
287,
43379,
14,
2931,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
4871,
220,
220,
220,
220,
220,
220,
41876,
10773,
66,
12,
38679,
824,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
21797,
220,
220,
220,
41876,
1753,
62,
18439,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
198,
220,
220,
220,
337,
36252,
50,
318,
62,
1484,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
21628,
62,
18439,
62,
15252,
62,
4871,
41876,
10773,
66,
12,
38679,
824,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
12233,
62,
4871,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
21628,
62,
18439,
62,
15252,
62,
4871,
41876,
10773,
66,
12,
38679,
824,
13,
198,
220,
220,
220,
337,
36252,
50,
1234,
62,
33678,
62,
1462,
62,
7645,
634,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
21628,
62,
18439,
62,
15252,
62,
4871,
41876,
10773,
66,
12,
38679,
824,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
15252,
62,
4906,
220,
220,
220,
220,
220,
220,
41876,
384,
84,
62,
26801,
366,
325,
84,
62,
26801,
312,
407,
1900,
287,
43379,
14,
2931,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
198,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
6242,
2969,
38,
2043,
62,
9864,
23680,
62,
50,
2937,
34,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
12233,
62,
4871,
13,
628,
220,
220,
220,
5550,
2538,
9328,
16034,
10773,
66,
220,
33411,
267,
565,
824,
796,
21628,
62,
18439,
62,
15252,
62,
4871,
13,
198,
220,
220,
220,
5550,
2538,
9328,
16034,
10773,
310,
33411,
267,
565,
824,
796,
21628,
62,
18439,
62,
15252,
62,
4871,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
468,
62,
9800,
1634,
13,
628,
220,
220,
220,
44746,
9050,
12,
50084,
25334,
23680,
705,
50,
62,
7206,
18697,
3185,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4522,
705,
39345,
31631,
6,
360,
5883,
26708,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4522,
705,
9864,
41,
25216,
6,
18930,
24639,
21628,
62,
15252,
62,
4906,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4522,
705,
9864,
41,
20608,
6,
18930,
24639,
21628,
62,
4871,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4522,
705,
47,
62,
46846,
6,
360,
5883,
26708,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4522,
705,
2246,
6849,
51,
6,
220,
220,
18930,
24639,
21628,
62,
21797,
13,
628,
220,
220,
220,
16876,
827,
12,
7266,
6015,
1279,
29,
657,
13,
198,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
14804,
40225,
62,
83,
3064,
7,
21628,
62,
19662,
312,
796,
705,
486,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
19662,
3919,
796,
705,
24669,
6,
6739,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
318,
62,
1484,
13,
628,
220,
220,
220,
42865,
25,
300,
85,
62,
1484,
62,
18439,
62,
15252,
62,
4871,
41876,
10773,
66,
12,
38679,
824,
13,
628,
220,
220,
220,
33493,
311,
2751,
2538,
267,
565,
824,
198,
220,
220,
220,
220,
220,
16034,
10773,
73,
198,
220,
220,
220,
220,
220,
39319,
300,
85,
62,
1484,
62,
18439,
62,
15252,
62,
4871,
198,
220,
220,
220,
220,
220,
33411,
267,
565,
824,
796,
21628,
62,
18439,
62,
15252,
62,
4871,
22492,
37771,
62,
11380,
13,
198,
220,
220,
220,
16876,
827,
12,
7266,
6015,
796,
657,
13,
198,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
14804,
40225,
62,
83,
3064,
7,
21628,
62,
19662,
312,
796,
705,
486,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
19662,
3919,
796,
705,
21777,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
19662,
85,
16,
796,
930,
90,
21628,
62,
18439,
62,
15252,
62,
4871,
1782,
91,
6739,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1234,
62,
33678,
62
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
*&---------------------------------------------------------------------*
*& Report ZCONCURRENCY_API
*&---------------------------------------------------------------------*
*&
*&---------------------------------------------------------------------*
REPORT zconcurrency_api.
TYPE-POOLS: spta.
*&---------------------------------------------------------------------*
*& Form before_rfc
*&---------------------------------------------------------------------*
FORM before_rfc USING is_before_rfc_imp TYPE spta_t_before_rfc_imp
CHANGING cs_before_rfc_exp TYPE spta_t_before_rfc_exp
ct_rfcdata TYPE spta_t_indxtab
ct_failed_objects TYPE spta_t_failed_objects
ct_objects_in_process TYPE spta_t_objects_in_process
co_capi_spta_gateway TYPE REF TO zcl_capi_spta_gateway.
DATA: lo_task TYPE REF TO zif_capi_task,
lv_task TYPE xstring,
ls_objects_in_process LIKE LINE OF ct_objects_in_process.
IF ct_failed_objects[] IS NOT INITIAL.
PERFORM process_failed_objects CHANGING cs_before_rfc_exp
ct_rfcdata[]
ct_failed_objects[]
ct_objects_in_process[]
co_capi_spta_gateway.
RETURN.
ENDIF.
IF co_capi_spta_gateway->mo_tasks_iterator->has_next( ) = abap_true.
lo_task ?= co_capi_spta_gateway->mo_tasks_iterator->next( ).
lv_task = zcl_capi_spta_gateway=>serialize_task( lo_task ).
CALL FUNCTION 'SPTA_INDX_PACKAGE_ENCODE'
EXPORTING
data = lv_task
IMPORTING
indxtab = ct_rfcdata.
ls_objects_in_process-obj_id = lo_task->get_id( ).
APPEND ls_objects_in_process TO ct_objects_in_process[].
cs_before_rfc_exp-start_rfc = abap_true.
ELSE.
cs_before_rfc_exp-start_rfc = space.
ENDIF.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form in_rfc
*&---------------------------------------------------------------------*
FORM in_rfc USING is_in_rfc_imp TYPE spta_t_in_rfc_imp
CHANGING cs_in_rfc_exp TYPE spta_t_in_rfc_exp
ct_rfcdata TYPE spta_t_indxtab.
DATA: lv_task TYPE xstring,
lo_task TYPE REF TO zif_capi_task,
lo_result TYPE REF TO if_serializable_object,
lv_result TYPE xstring.
SET UPDATE TASK LOCAL.
CALL FUNCTION 'SPTA_INDX_PACKAGE_DECODE'
EXPORTING
indxtab = ct_rfcdata
IMPORTING
data = lv_task.
lo_task = zcl_capi_spta_gateway=>deserialize_task( lv_task ).
lo_result = lo_task->zif_capi_callable~call( ).
lv_result = zcl_capi_spta_gateway=>serialize_result( lo_result ).
CALL FUNCTION 'SPTA_INDX_PACKAGE_ENCODE'
EXPORTING
data = lv_result
IMPORTING
indxtab = ct_rfcdata.
COMMIT WORK.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form after_rfc
*&---------------------------------------------------------------------*
FORM after_rfc USING it_rfcdata TYPE spta_t_indxtab
iv_rfcsubrc TYPE sy-subrc
iv_rfcmsg TYPE spta_t_rfcmsg
it_objects_in_process TYPE spta_t_objects_in_process
is_after_rfc_imp TYPE spta_t_after_rfc_imp
CHANGING cs_after_rfc_exp TYPE spta_t_after_rfc_exp
co_capi_spta_gateway TYPE REF TO zcl_capi_spta_gateway.
CONSTANTS: lc_max_task_crash TYPE i VALUE 1.
DATA: lv_result TYPE xstring,
lo_result TYPE REF TO object,
ls_objects_in_process LIKE LINE OF it_objects_in_process,
lv_task_id TYPE guid_32,
lv_tc_size TYPE i,
lv_rc_size TYPE i.
IF iv_rfcsubrc IS INITIAL.
* Task completed successfully
CALL FUNCTION 'SPTA_INDX_PACKAGE_DECODE'
EXPORTING
indxtab = it_rfcdata
IMPORTING
data = lv_result.
lo_result = zcl_capi_spta_gateway=>deserialize_result( lv_result ).
co_capi_spta_gateway->mo_results->add( lo_result ).
lv_tc_size = co_capi_spta_gateway->mo_tasks->size( ).
lv_rc_size = co_capi_spta_gateway->mo_results->size( ).
cl_progress_indicator=>progress_indicate( i_text = '&1% (&2 of &3) of the tasks processed'(001)
i_processed = lv_rc_size
i_total = lv_tc_size
i_output_immediately = abap_true ).
ELSE.
READ TABLE it_objects_in_process INTO ls_objects_in_process INDEX 1.
IF sy-subrc = 0.
lv_task_id = ls_objects_in_process-obj_id.
co_capi_spta_gateway->mo_capi_message_handler->add_message( iv_task_id = lv_task_id
iv_task_name = ''
iv_rfcsubrc = iv_rfcsubrc
iv_rfcmsg = iv_rfcmsg ).
IF ls_objects_in_process-fail_count = lc_max_task_crash.
* If the task has already crashed, and now it has crashed a second time,
* we will not restart it
cs_after_rfc_exp-no_resubmission_on_error = abap_true.
ELSE.
cs_after_rfc_exp-no_resubmission_on_error = co_capi_spta_gateway->mv_no_resubmission_on_error.
ENDIF.
ENDIF.
ENDIF.
ENDFORM.
*&---------------------------------------------------------------------*
*& Form process_failed_objects
*&---------------------------------------------------------------------*
FORM process_failed_objects CHANGING cs_before_rfc_exp TYPE spta_t_before_rfc_exp
ct_rfcdata TYPE spta_t_indxtab
ct_failed_objects TYPE spta_t_failed_objects
ct_objects_in_process TYPE spta_t_objects_in_process
co_capi_spta_gateway TYPE REF TO zcl_capi_spta_gateway.
DATA: lo_tasks_iterator TYPE REF TO zif_capi_iterator,
lo_task TYPE REF TO zif_capi_task,
lv_task TYPE xstring,
ls_objects_in_process LIKE LINE OF ct_objects_in_process.
FIELD-SYMBOLS: <ls_failed_objects> LIKE LINE OF ct_failed_objects.
READ TABLE ct_failed_objects ASSIGNING <ls_failed_objects> INDEX 1.
IF <ls_failed_objects> IS ASSIGNED.
lo_tasks_iterator = co_capi_spta_gateway->mo_tasks->get_iterator( ).
WHILE lo_tasks_iterator->has_next( ) = abap_true.
lo_task ?= lo_tasks_iterator->next( ).
IF lo_task->get_id( ) = <ls_failed_objects>-obj_id.
lv_task = zcl_capi_spta_gateway=>serialize_task( lo_task ).
CALL FUNCTION 'SPTA_INDX_PACKAGE_ENCODE'
EXPORTING
data = lv_task
IMPORTING
indxtab = ct_rfcdata.
ls_objects_in_process-obj_id = <ls_failed_objects>-obj_id.
ls_objects_in_process-fail_count = <ls_failed_objects>-fail_count + 1.
ls_objects_in_process-last_error = <ls_failed_objects>-last_error.
APPEND ls_objects_in_process TO ct_objects_in_process[].
CLEAR: ct_failed_objects[], ct_failed_objects.
cs_before_rfc_exp-start_rfc = abap_true.
EXIT.
ENDIF.
ENDWHILE.
ENDIF.
ENDFORM.
| [
9,
5,
10097,
30934,
9,
198,
9,
5,
6358,
1168,
10943,
34,
31302,
45155,
62,
17614,
198,
9,
5,
10097,
30934,
9,
198,
9,
5,
198,
9,
5,
10097,
30934,
9,
198,
2200,
15490,
1976,
1102,
34415,
62,
15042,
13,
198,
198,
25216,
12,
16402,
3535,
50,
25,
264,
32283,
13,
198,
198,
9,
5,
10097,
30934,
9,
198,
9,
5,
220,
220,
220,
220,
220,
5178,
220,
878,
62,
81,
16072,
198,
9,
5,
10097,
30934,
9,
198,
21389,
878,
62,
81,
16072,
1294,
2751,
318,
62,
19052,
62,
81,
16072,
62,
11011,
41876,
264,
32283,
62,
83,
62,
19052,
62,
81,
16072,
62,
11011,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5870,
15567,
2751,
50115,
62,
19052,
62,
81,
16072,
62,
11201,
41876,
264,
32283,
62,
83,
62,
19052,
62,
81,
16072,
62,
11201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
83,
62,
81,
16072,
7890,
41876,
264,
32283,
62,
83,
62,
521,
742,
397,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
83,
62,
47904,
62,
48205,
41876,
264,
32283,
62,
83,
62,
47904,
62,
48205,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
83,
62,
48205,
62,
259,
62,
14681,
41876,
264,
32283,
62,
83,
62,
48205,
62,
259,
62,
14681,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
763,
62,
11128,
72,
62,
82,
32283,
62,
10494,
1014,
41876,
4526,
37,
5390,
1976,
565,
62,
11128,
72,
62,
82,
32283,
62,
10494,
1014,
13,
628,
220,
42865,
25,
2376,
62,
35943,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
361,
62,
11128,
72,
62,
35943,
11,
198,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
35943,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
2124,
8841,
11,
198,
220,
220,
220,
220,
220,
220,
220,
43979,
62,
48205,
62,
259,
62,
14681,
34178,
48920,
3963,
269,
83,
62,
48205,
62,
259,
62,
14681,
13,
628,
220,
16876,
269,
83,
62,
47904,
62,
48205,
21737,
3180,
5626,
3268,
2043,
12576,
13,
198,
220,
220,
220,
19878,
21389,
1429,
62,
47904,
62,
48205,
5870,
15567,
2751,
50115,
62,
19052,
62,
81,
16072,
62,
11201,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
83,
62,
81,
16072,
7890,
21737,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
83,
62,
47904,
62,
48205,
21737,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
83,
62,
48205,
62,
259,
62,
14681,
21737,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
763,
62,
11128,
72,
62,
82,
32283,
62,
10494,
1014,
13,
198,
220,
220,
220,
30826,
27064,
13,
198,
220,
23578,
5064,
13,
628,
220,
16876,
763,
62,
11128,
72,
62,
82,
32283,
62,
10494,
1014,
3784,
5908,
62,
83,
6791,
62,
48727,
3784,
10134,
62,
19545,
7,
1267,
796,
450,
499,
62,
7942,
13,
628,
220,
220,
220,
2376,
62,
35943,
5633,
28,
763,
62,
11128,
72,
62,
82,
32283,
62,
10494,
1014,
3784,
5908,
62,
83,
6791,
62,
48727,
3784,
19545,
7,
6739,
198,
220,
220,
220,
300,
85,
62,
35943,
796,
1976,
565,
62,
11128,
72,
62,
82,
32283,
62,
10494,
1014,
14804,
46911,
1096,
62,
35943,
7,
2376,
62,
35943,
6739,
628,
220,
220,
220,
42815,
29397,
4177,
2849,
705,
4303,
5603,
62,
12115,
55,
62,
47,
8120,
11879,
62,
24181,
16820,
6,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1366,
220,
220,
220,
796,
300,
85,
62,
35943,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
773,
742,
397,
796,
269,
83,
62,
81,
16072,
7890,
13,
628,
220,
220,
220,
43979,
62,
48205,
62,
259,
62,
14681,
12,
26801,
62,
312,
796,
2376,
62,
35943,
3784,
1136,
62,
312,
7,
6739,
198,
220,
220,
220,
43504,
10619,
43979,
62,
48205,
62,
259,
62,
14681,
5390,
269,
83,
62,
48205,
62,
259,
62,
14681,
58,
4083,
628,
220,
220,
220,
50115,
62,
19052,
62,
81,
16072,
62,
11201,
12,
9688,
62,
81,
16072,
796,
450,
499,
62,
7942,
13,
198,
220,
17852,
5188,
13,
198,
220,
220,
220,
50115,
62,
19052,
62,
81,
16072,
62,
11201,
12,
9688,
62,
81,
16072,
796,
2272,
13,
198,
220,
23578,
5064,
13,
198,
198,
1677,
8068,
1581,
44,
13,
198,
198,
9,
5,
10097,
30934,
9,
198,
9,
5,
220,
220,
220,
220,
220,
5178,
220,
287,
62,
81,
16072,
198,
9,
5,
10097,
30934,
9,
198,
21389,
287,
62,
81,
16072,
1294,
2751,
318,
62,
259,
62,
81,
16072,
62,
11011,
41876,
264,
32283,
62,
83,
62,
259,
62,
81,
16072,
62,
11011,
198,
220,
220,
220,
220,
220,
220,
220,
220,
5870,
15567,
2751,
50115,
62,
259,
62,
81,
16072,
62,
11201,
41876,
264,
32283,
62,
83,
62,
259,
62,
81,
16072,
62,
11201,
198,
220,
220,
220,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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CLUDE LFLIGHT_TRAVEL_APID... " Local class definition
| [
42296,
4177,
2849,
12,
16402,
3535,
9977,
9947,
62,
51,
3861,
18697,
62,
17614,
13,
220,
220,
220,
220,
220,
220,
366,
44,
1546,
4090,
8264,
12,
2389,
11485,
198,
198,
9,
3268,
5097,
52,
7206,
406,
3697,
9947,
62,
51,
3861,
18697,
62,
2969,
2389,
986,
220,
220,
220,
220,
220,
220,
220,
366,
10714,
1398,
6770,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
*&---------------------------------------------------------------------*
*& Sample for Well-Managed Collections - the Iterator Pattern
*& based on Head First Design Patterns: Chapter 9
*&---------------------------------------------------------------------*
REPORT yy_head_first_iterator_enhance.
*&---------------------------------------------------------------------*
*& Common Menu Item implementation. The Diner menu has lots of lunch
*& items, while the Pancake House menu consists of breakfast items.
*&---------------------------------------------------------------------*
CLASS lcl_menu_item DEFINITION FINAL.
PUBLIC SECTION.
METHODS:
" A Menu Item consists of a name, some text, a flag to indicate
" if the item is vegetarian, and a price. You pass all these
" values into the constructor to initialize the Menu Item.
constructor IMPORTING iv_name TYPE string
iv_text TYPE string
iv_vegetarian TYPE abap_bool
iv_price TYPE decfloat16,
" These getter methods let you access the fields of the menu item.
name RETURNING VALUE(rv_name) TYPE string,
text RETURNING VALUE(rv_text) TYPE string,
price RETURNING VALUE(rv_price) TYPE decfloat16,
is_vegetarian RETURNING VALUE(rv_flag) TYPE abap_bool,
description RETURNING VALUE(rv_text) TYPE string.
PRIVATE SECTION.
DATA:
mv_name TYPE string,
mv_text TYPE string,
mv_vegetarian TYPE abap_bool,
mv_price TYPE decfloat16.
ENDCLASS.
CLASS lcl_menu_item IMPLEMENTATION.
METHOD constructor.
mv_name = iv_name.
mv_text = iv_text.
mv_vegetarian = iv_vegetarian.
mv_price = iv_price.
ENDMETHOD.
METHOD name.
rv_name = mv_name.
ENDMETHOD.
METHOD text.
rv_text = mv_text.
ENDMETHOD.
METHOD price.
rv_price = mv_price.
ENDMETHOD.
METHOD is_vegetarian.
rv_flag = mv_vegetarian.
ENDMETHOD.
METHOD description.
rv_text = |{ name( ) }, ${ price( ) DECIMALS = 2 }\n\t{ text( ) }|.
ENDMETHOD.
ENDCLASS.
*&---------------------------------------------------------------------*
*& All Menus must implement the Menu Item Iterator interface; however,
*& because each iterator behaves differently we can't always define an
*& implementation for the remove() method that makes sense. Sometimes
*& the best we can do is throw a runtime exception.
*&---------------------------------------------------------------------*
CLASS lcx_unsupported_operation DEFINITION FINAL
INHERITING FROM cx_dynamic_check.
PUBLIC SECTION.
METHODS get_text REDEFINITION.
ENDCLASS.
CLASS lcx_unsupported_operation IMPLEMENTATION.
METHOD get_text.
result = |This Menu Item Iterator does not support remove()|.
ENDMETHOD.
ENDCLASS.
*&---------------------------------------------------------------------*
*& We will also throw a runtime exception if the sequence of method
*& calls violates the internal consistency of the Iterator.
*&---------------------------------------------------------------------*
CLASS lcx_illegal_state DEFINITION FINAL
INHERITING FROM cx_dynamic_check.
PUBLIC SECTION.
METHODS get_text REDEFINITION.
ENDCLASS.
CLASS lcx_illegal_state IMPLEMENTATION.
METHOD get_text.
result = |You can't remove an item until you've | &
|called next() at least once|.
ENDMETHOD.
ENDCLASS.
*&---------------------------------------------------------------------*
*& Here is the Iterator interface with three methods.
*&---------------------------------------------------------------------*
*& We'll decouple Waitress from the implementation of the menus, so
*& now we can use an Iterator to iterate over any table of menu items
*& without having to know how the table of items is implemented. This
*& solves the problem of the Waitress depending on the implementation
*& of the Menu Items internal table type.
*&---------------------------------------------------------------------*
INTERFACE lif_iterator.
METHODS:
" The has_next() method returns a boolean indicating whether or not
" there are more elements to iterate over...
has_next RETURNING VALUE(rv_flag) TYPE abap_bool,
" ...and the next() method returns the next element.
next RETURNING VALUE(ro_menu_item) TYPE REF TO lcl_menu_item,
" This looks just like our previous definition, except we have
" an additional method that allows us to remove the last item
" returned by the next() method from the aggregate.
remove RAISING lcx_unsupported_operation lcx_illegal_state.
ENDINTERFACE.
*&---------------------------------------------------------------------*
*& Here's our new Menu interface with one method, create_iterator().
*&---------------------------------------------------------------------*
*& This is a simple interface that just lets the clients get an
*& Iterator for the items in a menu. This solves the problem of
*& the Waitress depending on the concrete Menu class types.
*&---------------------------------------------------------------------*
INTERFACE lif_menu.
" We're returning the Iterator interface. The client doesn't need to
" know how the Menu Items are maintained in the Diner Menu, nor does
" it need to know how the Diner Menu Iterator is implemented. It just
" needs to use the iterator to step through the items in the menu.
METHODS create_iterator
RETURNING VALUE(ro_iterator) TYPE REF TO lif_iterator.
ENDINTERFACE.
*&---------------------------------------------------------------------*
*& The Standard Menu Iterator is an implementation of Iterator that
*& knows how to iterate over a standard internal table of Menu Items.
*&---------------------------------------------------------------------*
CLASS lcl_standard_menu_iterator DEFINITION FINAL.
PUBLIC SECTION.
TYPES tt_menu_items TYPE STANDARD TABLE
OF REF TO lcl_menu_item WITH EMPTY KEY.
" We implement the Iterator interface.
INTERFACES lif_iterator.
" The constructor takes the internal table of menu items we are
" going to iterate over.
METHODS constructor IMPORTING it_items TYPE tt_menu_items.
PRIVATE SECTION.
DATA:
mt_menu_items TYPE tt_menu_items,
" Instance variable mv_position maintains the current position
" of the iteration over the internal table.
mv_position TYPE i VALUE 1.
ENDCLASS.
CLASS lcl_standard_menu_iterator IMPLEMENTATION.
METHOD constructor.
mt_menu_items = it_items.
ENDMETHOD.
METHOD lif_iterator~next.
" The next() method returns the next item in the standard table
" and increments the position.
ro_menu_item = mt_menu_items[ mv_position ].
ADD 1 TO mv_position.
ENDMETHOD.
METHOD lif_iterator~has_next.
" The has_next() method checks to see if we've seen all the elements
" of the table and returns true if there are more to iterate through
rv_flag = xsdbool( NOT ( mv_position > lines( mt_menu_items ) OR
" Because the Diner Menu went ahead and allocate a max sized table,
" we need to check not only if we are at the end of the table, but
" also if the next item is null, which indicates there are no more.
mt_menu_items[ mv_position ] IS INITIAL ) ).
" None of our previous implementation changes...
ENDMETHOD.
METHOD lif_iterator~remove.
" ...but we do need to implement remove().
IF mv_position <= 1.
" First, check that next() has been called at least once.
RAISE EXCEPTION TYPE lcx_illegal_state.
ENDIF.
" Then, remove the last item previously returned by next().
DELETE mt_menu_items INDEX mv_position - 1.
" Finally, because Diner Menu is using a fixed-size internal table,
" we just append an additional element when remove() is called.
mt_menu_items = VALUE #( BASE mt_menu_items ( ) ).
ENDMETHOD.
ENDCLASS.
*&---------------------------------------------------------------------*
*& The Alternating Menu Iterator is another implementation of Iterator
*& that also knows how to iterate over a standard internal table of
*& Menu Items. It allows for alternate menu items on different days;
*& in other words, they will offer some items on even dates, and other
*& items on odd dates.
*&---------------------------------------------------------------------*
CLASS lcl_alternating_menu_iterator DEFINITION FINAL.
PUBLIC SECTION.
TYPES tt_menu_items TYPE STANDARD TABLE
OF REF TO lcl_menu_item WITH EMPTY KEY.
" We implement the Iterator interface.
INTERFACES lif_iterator.
" The constructor takes the internal table of menu items we are
" going to iterate over.
METHODS constructor IMPORTING it_items TYPE tt_menu_items.
PRIVATE SECTION.
DATA:
mt_menu_items TYPE tt_menu_items,
" Instance variable mv_position maintains the current position
" of the iteration over the internal table.
mv_position TYPE i VALUE 1.
ENDCLASS.
CLASS lcl_alternating_menu_iterator IMPLEMENTATION.
METHOD constructor.
mt_menu_items = it_items.
" increase the starting positon by 1 for days with odd date.
DATA(ls_today) = CONV timesdat( sy-datum ).
mv_position = mv_position + ls_today-m_day MOD 2.
ENDMETHOD.
METHOD lif_iterator~next.
" The next() method returns the next item in the standard table
" and increments the position by two places.
ro_menu_item = mt_menu_items[ mv_position ].
ADD 2 TO mv_position.
ENDMETHOD.
METHOD lif_iterator~has_next.
" The has_next() method checks to see if we've seen all the elements
" of the table and returns true if there are more to iterate through
rv_flag = xsdbool( NOT ( mv_position > lines( mt_menu_items ) OR
mt_menu_items[ mv_position ] IS INITIAL ) ).
ENDMETHOD.
METHOD lif_iterator~remove.
" Notice that this Iterator implementation does not support remove()
RAISE EXCEPTION TYPE lcx_unsupported_operation.
ENDMETHOD.
ENDCLASS.
*&---------------------------------------------------------------------*
*& Here's the implementation of the Pancake House menu.
*&---------------------------------------------------------------------*
*& Pancake Menu now implements the Menu interface, which means it
*& needs to implement the new create_iterator() method.
*&---------------------------------------------------------------------*
CLASS lcl_pancake_menu DEFINITION FINAL.
PUBLIC SECTION.
TYPES:
BEGIN OF ts_named_menu_item,
name TYPE string,
item TYPE REF TO lcl_menu_item,
END OF ts_named_menu_item,
" It is using a Sorted Internal Table to store the menu items
" ordered alphabetically by the primary key name.
tt_sorted_menu_items TYPE SORTED TABLE
OF ts_named_menu_item WITH UNIQUE KEY name.
" We implement the Menu interface.
INTERFACES lif_menu.
METHODS:
constructor,
add_item IMPORTING iv_name TYPE string
iv_text TYPE string
iv_vegetarian TYPE abap_bool
iv_price TYPE decfloat16.
" other menu methods here
PRIVATE SECTION.
DATA mt_menu_items TYPE tt_sorted_menu_items.
" We're not going to need the public menu_items() method anymore
" and in fact, we want to mark it private to hide it because it
" exposes our internal implementation!
METHODS menu_items
RETURNING VALUE(rt_items) TYPE tt_sorted_menu_items.
ENDCLASS.
*&---------------------------------------------------------------------*
*& The Pancake Menu Iterator is an implementation of Iterator that
*& knows how to iterate over a sorted internal table of Menu Items.
*&---------------------------------------------------------------------*
CLASS lcl_pancake_menu_iterator DEFINITION FINAL.
PUBLIC SECTION.
" We implement the Iterator interface.
INTERFACES lif_iterator.
" The constructor takes the internal table of menu items we are
" going to iterate over.
METHODS constructor
IMPORTING it_items TYPE lcl_pancake_menu=>tt_sorted_menu_items.
PRIVATE SECTION.
DATA:
mt_menu_items TYPE lcl_pancake_menu=>tt_sorted_menu_items,
" Instance variable mv_position maintains the current position
" of the iteration over the internal table.
mv_position TYPE i VALUE 1.
ENDCLASS.
CLASS lcl_pancake_menu IMPLEMENTATION.
METHOD constructor.
" Each menu item is added to the Sorted Table here, in the
" constructor, and has a name, some descriptive text, whether
" or not it's a vegetarian item, and the price.
add_item( iv_name = |K&B's Pancake Breakfast|
iv_text = |Pancakes with scrambled eggs, and toast|
iv_vegetarian = abap_true iv_price = CONV #( '2.99' ) ).
add_item( iv_name = |Regular Pancake Breakfast|
iv_text = |Pancakes with fried eggs, sausage|
iv_vegetarian = abap_false iv_price = CONV #( '2.99' ) ).
add_item( iv_name = |Blueberry Pancakes|
iv_text = |Pancakes made with fresh blueberries|
iv_vegetarian = abap_true iv_price = CONV #( '3.49' ) ).
add_item( iv_name = |Waffles|
iv_text = |Waffles, with choice of blueberries or strawberries|
iv_vegetarian = abap_true iv_price = CONV #( '3.59' ) ).
ENDMETHOD.
METHOD add_item.
" To add a menu item, create a new Menu Item object, passing in
" each argument, and then insert it into the Sorted Table.
DATA(lo_menu_item) = NEW lcl_menu_item(
iv_name = iv_name
iv_text = iv_text
iv_vegetarian = iv_vegetarian
iv_price = iv_price ).
INSERT VALUE #( name = lo_menu_item->name( )
item = lo_menu_item ) INTO TABLE mt_menu_items.
ENDMETHOD.
METHOD menu_items.
rt_items = mt_menu_items.
ENDMETHOD.
METHOD lif_menu~create_iterator.
" Here's the new create_iterator() method. It creates a Pancake Menu
" Iterator from the Menu Items table and returns it to the client.
ro_iterator = NEW lcl_pancake_menu_iterator( menu_items( ) ).
ENDMETHOD.
" There is a bunch of other menu code that depends on the Sorted Table
" implementation. We don't want to have to rewrite all that code!
ENDCLASS.
CLASS lcl_pancake_menu_iterator IMPLEMENTATION.
METHOD constructor.
mt_menu_items = it_items.
ENDMETHOD.
METHOD lif_iterator~next.
" The next() method returns the next item in the sorted table
" and increments the position.
ro_menu_item = mt_menu_items[ mv_position ]-item.
ADD 1 TO mv_position.
ENDMETHOD.
METHOD lif_iterator~has_next.
" The has_next() method checks to see if we've seen all the elements
" of the table and returns true if there are more to iterate through
rv_flag = xsdbool( NOT mv_position > lines( mt_menu_items ) ).
ENDMETHOD.
METHOD lif_iterator~remove.
IF mv_position <= 1.
RAISE EXCEPTION TYPE lcx_illegal_state.
ENDIF.
DELETE mt_menu_items INDEX mv_position - 1.
ENDMETHOD.
ENDCLASS.
*&---------------------------------------------------------------------*
*& And here's the implementation of the Diner menu.
*&---------------------------------------------------------------------*
*& Each concrete Menu is responsible for creating the appropriate
*& concrete Iterator class.
*&---------------------------------------------------------------------*
CLASS lcl_diner_menu DEFINITION FINAL.
PUBLIC SECTION.
" It takes a different approach, using a Standard Internal Table
" without a key, in order to control the max size of the menu.
TYPES tt_menu_items TYPE STANDARD TABLE
OF REF TO lcl_menu_item WITH EMPTY KEY.
" We implement the Menu interface.
INTERFACES lif_menu.
METHODS:
constructor,
add_item IMPORTING iv_name TYPE string
iv_text TYPE string
iv_vegetarian TYPE abap_bool
iv_price TYPE decfloat16.
" other menu methods here
PRIVATE SECTION.
CONSTANTS c_max_items TYPE i VALUE 6.
DATA:
mv_number_of_items TYPE i VALUE 0,
mt_menu_items TYPE tt_menu_items.
" We're not going to need the public menu_items() method anymore
" and in fact, we want to mark it private to hide it because it
" exposes our internal implementation!
METHODS menu_items RETURNING VALUE(rt_items) TYPE tt_menu_items.
ENDCLASS.
CLASS lcl_diner_menu IMPLEMENTATION.
METHOD constructor.
mt_menu_items = VALUE #( FOR i = 1 UNTIL i > c_max_items ( ) ).
" Like before, we create the menu items in the constructor,
" using the add_item() helper method.
add_item( iv_name = |Vegetarian BLT|
iv_text = |(Fakin') Bacon with lettuce & tomato on whole wheat|
iv_vegetarian = abap_true iv_price = CONV #( '2.99' ) ).
add_item( iv_name = |BLT|
iv_text = |Bacon with lettuce & tomato on whole wheat|
iv_vegetarian = abap_false iv_price = CONV #( '2.99' ) ).
add_item( iv_name = |Soup of the day|
iv_text = |Soup of the day, with a side of potato salad|
iv_vegetarian = abap_false iv_price = CONV #( '3.29' ) ).
add_item( iv_name = |Hotdog|
iv_text = |A hot dog, with saurkraut, relish, topped with cheese|
iv_vegetarian = abap_false iv_price = CONV #( '3.05' ) ).
add_item( iv_name = |Steamed Veggies and Brown Rice|
iv_text = |Steamed vegetables over brown rice|
iv_vegetarian = abap_true iv_price = CONV #( '3.99' ) ).
add_item( iv_name = |Pasta|
iv_text = |Spaghetti with Marinara Sauce, and a slice of bread|
iv_vegetarian = abap_true iv_price = CONV #( '3.89' ) ).
ENDMETHOD.
METHOD add_item.
" add_item() takes all the parameters necessary to create a Menu
" Item and instantiates one. It also checks to make sure we haven't
" hit the menu size limit.
IF mv_number_of_items > c_max_items.
" We specifically want to keep this menu under a certain size.
cl_demo_output=>write( |Sorry, menu is full! | &
|Can't add item to menu| ).
RETURN.
ENDIF.
DATA(lo_menu_item) = NEW lcl_menu_item(
iv_name = iv_name
iv_text = iv_text
iv_vegetarian = iv_vegetarian
iv_price = iv_price ).
ADD 1 TO mv_number_of_items.
mt_menu_items[ mv_number_of_items ] = lo_menu_item.
ENDMETHOD.
METHOD menu_items.
rt_items = mt_menu_items.
ENDMETHOD.
METHOD lif_menu~create_iterator.
" Here's the create_iterator() method. It creates an Alternating
" Menu Iterator from the Menu Items table and returns it.
ro_iterator = NEW lcl_alternating_menu_iterator( menu_items( ) ).
ENDMETHOD.
" Like before, there is a bunch of code that depends on the
" implementation of this menu being a Standard Table. We're
" too busy cooking to rewrite all of this.
ENDCLASS.
*&---------------------------------------------------------------------*
*& And here's the implementation of the newly acquired Cafe menu.
*&---------------------------------------------------------------------*
CLASS lcl_cafe_menu DEFINITION FINAL.
PUBLIC SECTION.
TYPES:
BEGIN OF ts_key_value_pair,
key TYPE string,
value TYPE REF TO object,
END OF ts_key_value_pair,
" We're using a Hashed Table with key/value pair because it's a
" common data structure for storing object references.
tt_hashed_menu_items TYPE HASHED TABLE
OF ts_key_value_pair WITH UNIQUE KEY key.
" Cafe Menu also implments the Menu interface, so the Waitress
" can use it just like the other two Menus.
INTERFACES lif_menu.
METHODS:
constructor,
add_item IMPORTING iv_name TYPE string
iv_text TYPE string
iv_vegetarian TYPE abap_bool
iv_price TYPE decfloat16.
" other menu methods here
PRIVATE SECTION.
DATA mt_menu_items TYPE tt_hashed_menu_items.
" Just like before, we mark menu_items() as private so we don't
" expose the implementation of mt_menu_items to the Waitress.
METHODS menu_items
RETURNING VALUE(rt_items) TYPE tt_hashed_menu_items.
ENDCLASS.
CLASS lcl_cafe_menu IMPLEMENTATION.
METHOD constructor.
" Like the other concrete Menus, the menu items are initialized
" in the constructor.
add_item( iv_name = |Veggie Burger and Air Fries|
iv_text = |Veggie burger on wheat bun, lettuce, tomato, and fries|
iv_vegetarian = abap_true iv_price = CONV #( '3.99' ) ).
add_item( iv_name = |Soup of the day|
iv_text = |A cup of the soup of the day, with a side salad|
iv_vegetarian = abap_false iv_price = CONV #( '3.69' ) ).
add_item( iv_name = |Burrito|
iv_text = |A large burrito, with pinto beans, salsa, guacamole|
iv_vegetarian = abap_true iv_price = CONV #( '4.29' ) ).
ENDMETHOD.
METHOD add_item.
" Here's where we create a new Menu Item and add it to the
" mt_menu_items Hashed Table
DATA(lo_menu_item) = NEW lcl_menu_item(
iv_name = iv_name
iv_text = iv_text
iv_vegetarian = iv_vegetarian
iv_price = iv_price ).
" The key is the item name. The value is the Menu Item object.
INSERT VALUE #( key = lo_menu_item->name( )
value = lo_menu_item ) INTO TABLE mt_menu_items.
ENDMETHOD.
METHOD menu_items.
rt_items = mt_menu_items.
ENDMETHOD.
METHOD lif_menu~create_iterator.
" And here's where we implement the create_iterator() method.
" Notice that we're not getting an Iterator for the whole Hashed
" Table, just for the values.
ro_iterator = NEW lcl_standard_menu_iterator(
VALUE #( FOR item IN menu_items( ) ( CAST #( item-value ) ) ) ).
ENDMETHOD.
" There is a bunch of other menu code that depends on the Hashed Table
" implementation. We don't want to have to rewrite all that code!
ENDCLASS.
*&---------------------------------------------------------------------*
*& The specification for an ABAP-enabled Waitress: code-name "Alice"
*& print_menu()
*& - prints every item on the menu
*& print_vegetarian_menu()
*& - prints all vegetarian menu items
*& is_item_vegetarian( iv_name )
*& - given the name of an item, return true if the item is
*& vegetarian, otherwise, return false
*&---------------------------------------------------------------------*
*& New and improved, now Waitress only needs to be concerned with Menus
*& and Iterators. The two menus implement the exact same methods from
*& the Menu interface. This frees the Waitress from any dependencies
*& on concrete Menus. The Iterator allows the Waitress to be decoupled
*& from the actual implementation of the concrete classes. She doesn't
*& need to know if a Menu is implemented with a Standard Table, Sorted
*& Table, or whatever. All she cares is that she can get an Iterator.
*&---------------------------------------------------------------------*
CLASS lcl_waitress DEFINITION FINAL.
PUBLIC SECTION.
METHODS:
" The cafe menu is passed into the Waitress in the constructor
" with the other menus, and we stash it in an instance variable.
constructor IMPORTING io_pancake_menu TYPE REF TO lif_menu
io_diner_menu TYPE REF TO lif_menu
io_cafe_menu TYPE REF TO lif_menu,
print_menu,
print_vegetarian_menu,
is_item_vegetarian IMPORTING iv_name TYPE string
RETURNING VALUE(rv_flag) TYPE abap_bool.
PRIVATE SECTION.
METHODS:
" The private print_menu_items() method uses the Iterator to
" step through the menu items and print them.
print_menu_items
IMPORTING io_iterator TYPE REF TO lif_iterator,
print_vegetarian_items
IMPORTING io_iterator TYPE REF TO lif_iterator,
is_vegetarian
IMPORTING io_iterator TYPE REF TO lif_iterator
iv_name TYPE string
RETURNING VALUE(rv_flag) TYPE abap_bool.
DATA:
mo_pancake_menu TYPE REF TO lif_menu,
mo_diner_menu TYPE REF TO lif_menu,
mo_cafe_menu TYPE REF TO lif_menu.
ENDCLASS.
CLASS lcl_waitress IMPLEMENTATION.
METHOD constructor.
mo_pancake_menu = io_pancake_menu.
mo_diner_menu = io_diner_menu.
mo_cafe_menu = io_cafe_menu.
ENDMETHOD.
METHOD print_menu.
" The print_menu() method now creates three iterators, one per menu.
DATA(lo_pancake_iterator) = mo_pancake_menu->create_iterator( ).
DATA(lo_diner_iterator) = mo_diner_menu->create_iterator( ).
DATA(lo_cafe_iterator) = mo_cafe_menu->create_iterator( ).
" And then calls the private print_menu_items() with each iterator.
cl_demo_output=>write_text( |MENU\n---------\n\nBREAKFAST| ).
print_menu_items( lo_pancake_iterator ).
cl_demo_output=>write_text( |\nLUNCH| ).
print_menu_items( lo_diner_iterator ).
" We are using the cafe's menu for our dinner menu. All we have
" to do to print it is create the iterator, and pass it to the
" print_menu_items() method. That's it!
cl_demo_output=>write_text( |\nDINNER| ).
print_menu_items( lo_cafe_iterator ).
ENDMETHOD.
METHOD print_menu_items.
WHILE io_iterator->has_next( ). " Test if there are any more items.
DATA(lo_menu_item) = io_iterator->next( ). " Get the next item.
" Use the item to get the description and print it.
cl_demo_output=>write( lo_menu_item->description( ) ).
ENDWHILE. " Note that we're down to one loop.
ENDMETHOD.
METHOD print_vegetarian_menu.
cl_demo_output=>write_text( |VEGETARIAN MENU\n----------------\n| ).
print_vegetarian_items( mo_pancake_menu->create_iterator( ) ).
print_vegetarian_items( mo_diner_menu->create_iterator( ) ).
print_vegetarian_items( mo_cafe_menu->create_iterator( ) ).
ENDMETHOD.
METHOD is_item_vegetarian.
DATA(lo_breakfast_items) = mo_pancake_menu->create_iterator( ).
DATA(lo_lunch_items) = mo_diner_menu->create_iterator( ).
DATA(lo_dinner_items) = mo_cafe_menu->create_iterator( ).
rv_flag = xsdbool(
is_vegetarian( iv_name = iv_name
io_iterator = lo_breakfast_items ) OR
is_vegetarian( iv_name = iv_name
io_iterator = lo_lunch_items ) OR
is_vegetarian( iv_name = iv_name
io_iterator = lo_dinner_items ) ).
ENDMETHOD.
METHOD print_vegetarian_items.
WHILE io_iterator->has_next( ).
DATA(lo_menu_item) = io_iterator->next( ).
CHECK lo_menu_item->is_vegetarian( ).
cl_demo_output=>write( lo_menu_item->description( ) ).
ENDWHILE.
ENDMETHOD.
METHOD is_vegetarian.
WHILE io_iterator->has_next( ).
DATA(lo_menu_item) = io_iterator->next( ).
IF lo_menu_item->name( ) = iv_name.
rv_flag = lo_menu_item->is_vegetarian( ).
RETURN.
ENDIF.
ENDWHILE.
ENDMETHOD.
ENDCLASS.
*&---------------------------------------------------------------------*
*& Here's some test drive code to see how the Waitress works...
*&---------------------------------------------------------------------*
CLASS lcl_menu_test_drive DEFINITION FINAL.
PUBLIC SECTION.
CLASS-METHODS main.
ENDCLASS.
CLASS lcl_menu_test_drive IMPLEMENTATION.
METHOD main.
" First we create the menus, including a Cafe Menu...
DATA(lo_pancake_menu) = NEW lcl_pancake_menu( ).
DATA(lo_diner_menu) = NEW lcl_diner_menu( ).
DATA(lo_cafe_menu) = NEW lcl_cafe_menu( ).
" Then we create a Waitress and pass her the menus.
DATA(lo_waitress) = NEW lcl_waitress(
io_pancake_menu = lo_pancake_menu
io_diner_menu = lo_diner_menu
io_cafe_menu = lo_cafe_menu ).
" Now, when we print we should see all three menus.
lo_waitress->print_menu( ).
cl_demo_output=>line( ).
lo_waitress->print_vegetarian_menu( ).
cl_demo_output=>line( ).
cl_demo_output=>write_text(
|\nCustomer asks, is the Burrito vegetarian?| ).
cl_demo_output=>write( |Waitress says: { COND #(
WHEN lo_waitress->is_item_vegetarian( |Burrito| )
THEN |Yes| ELSE |No| ) }| ).
cl_demo_output=>line( ).
cl_demo_output=>write_text(
|\nCustomer asks, is the Hotdog vegetarian?| ).
cl_demo_output=>write( |Waitress says: { COND #(
WHEN lo_waitress->is_item_vegetarian( |Hotdog| )
THEN |Yes| ELSE |No| ) }| ).
cl_demo_output=>line( ).
cl_demo_output=>write_text(
|\nCustomer asks, are the Waffles vegetarian?| ).
cl_demo_output=>write( |Waitress says: { COND #(
WHEN lo_waitress->is_item_vegetarian( |Waffles| )
THEN |Yes| ELSE |No| ) }| ).
cl_demo_output=>line( ).
ENDMETHOD.
ENDCLASS.
START-OF-SELECTION.
cl_demo_output=>begin_section( |Well-Managed Collections | &
|- the Iterator Pattern (with enhanced interface)| ).
cl_demo_output=>line( ).
lcl_menu_test_drive=>main( ).
cl_demo_output=>display( ).
| [
9,
5,
10097,
30934,
9,
198,
9,
5,
220,
27565,
329,
3894,
12,
5124,
1886,
50004,
532,
262,
40806,
1352,
23939,
198,
9,
5,
220,
220,
220,
1912,
319,
7123,
3274,
8495,
47020,
25,
7006,
860,
198,
9,
5,
10097,
30934,
9,
198,
2200,
15490,
331,
88,
62,
2256,
62,
11085,
62,
48727,
62,
16550,
590,
13,
198,
198,
9,
5,
10097,
30934,
9,
198,
9,
5,
220,
8070,
21860,
9097,
7822,
13,
383,
360,
7274,
6859,
468,
6041,
286,
9965,
198,
9,
5,
220,
3709,
11,
981,
262,
49957,
539,
2097,
6859,
10874,
286,
12607,
3709,
13,
198,
9,
5,
10097,
30934,
9,
198,
31631,
300,
565,
62,
26272,
62,
9186,
5550,
20032,
17941,
25261,
13,
198,
220,
44731,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
366,
317,
21860,
9097,
10874,
286,
257,
1438,
11,
617,
2420,
11,
257,
6056,
284,
7603,
198,
220,
220,
220,
220,
220,
366,
611,
262,
2378,
318,
24053,
11,
290,
257,
2756,
13,
921,
1208,
477,
777,
198,
220,
220,
220,
220,
220,
366,
3815,
656,
262,
23772,
284,
41216,
262,
21860,
9097,
13,
198,
220,
220,
220,
220,
220,
23772,
30023,
9863,
2751,
21628,
62,
3672,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
5239,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
303,
1136,
3699,
41876,
450,
499,
62,
30388,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
20888,
220,
220,
220,
220,
220,
41876,
875,
22468,
1433,
11,
198,
220,
220,
220,
220,
220,
366,
2312,
651,
353,
5050,
1309,
345,
1895,
262,
7032,
286,
262,
6859,
2378,
13,
198,
220,
220,
220,
220,
220,
1438,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
81,
85,
62,
3672,
8,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
2420,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
81,
85,
62,
5239,
8,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
2756,
220,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
81,
85,
62,
20888,
8,
41876,
875,
22468,
1433,
11,
198,
220,
220,
220,
220,
220,
318,
62,
303,
1136,
3699,
30826,
4261,
15871,
26173,
8924,
7,
81,
85,
62,
32109,
8,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
6764,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
81,
85,
62,
5239,
8,
41876,
4731,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42865,
25,
198,
220,
220,
220,
220,
220,
285,
85,
62,
3672,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
285,
85,
62,
5239,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
285,
85,
62,
303,
1136,
3699,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
285,
85,
62,
20888,
220,
220,
220,
220,
220,
41876,
875,
22468,
1433,
13,
198,
10619,
31631,
13,
198,
198,
31631,
300,
565,
62,
26272,
62,
9186,
30023,
2538,
10979,
6234,
13,
198,
220,
337,
36252,
23772,
13,
198,
220,
220,
220,
285,
85,
62,
3672,
796,
21628,
62,
3672,
13,
198,
220,
220,
220,
285,
85,
62,
5239,
796,
21628,
62,
5239,
13,
198,
220,
220,
220,
285,
85,
62,
303,
1136,
3699,
796,
21628,
62,
303,
1136,
3699,
13,
198,
220,
220,
220,
285,
85,
62,
20888,
796,
21628,
62,
20888,
13,
198,
220,
23578,
49273,
13,
198,
220,
337,
36252,
1438,
13,
198,
220,
220,
220,
374,
85,
62,
3672,
796,
285,
85,
62,
3672,
13,
198,
220,
23578,
49273,
13,
198,
220,
337,
36252,
2420,
13,
198,
220,
220,
220,
374,
85,
62,
5239,
796,
285,
85,
62,
5239,
13,
198,
220,
23578,
49273,
13,
198,
220,
337,
36252,
2756,
13,
198,
220,
220,
220,
374,
85,
62,
20888,
796,
285,
85,
62,
20888,
13,
198,
220,
23578,
49273,
13,
198,
220,
337,
36252,
318,
62,
303,
1136,
3699,
13,
198,
220,
220,
220,
374,
85,
62,
32109,
796,
285,
85,
62,
303,
1136,
3699,
13,
198,
220,
23578,
49273,
13,
198,
220,
337,
36252,
6764,
13,
198,
220,
220,
220,
374,
85,
62,
5239,
796,
930,
90,
1438,
7,
1267,
8964,
25597,
2756,
7,
1267,
27196,
3955,
23333,
796,
362,
1782,
59,
77,
59,
83,
90,
2420,
7,
1267,
1782,
91,
13,
198,
220,
23578,
49273,
13,
198,
10619,
31631,
13,
198,
198,
9,
5,
10097,
30934,
9,
198,
9,
5,
220,
1439,
6065,
385,
1276,
3494,
262,
21860,
9097,
40806,
1352,
7071,
26,
2158,
11,
198,
9,
5,
220,
780,
1123,
41313,
39341,
10338,
356,
460,
470,
1464,
8160,
281,
198,
9,
5,
220,
7822,
329,
262,
4781,
3419,
2446,
326,
1838,
2565,
13,
8975,
198,
9,
5,
220,
262,
1266,
356,
460,
466,
318,
3714,
257,
19124,
6631,
13,
198,
9,
5,
10097,
30934,
9,
198,
31631,
300,
66,
87,
62,
403,
15999,
62,
27184,
5550,
20032,
17941,
25261,
198,
220,
3268,
16879,
2043,
2751,
16034,
43213,
62,
67,
28995,
62,
9122,
13,
198,
220,
44731,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
5239,
23848,
36,
20032,
17941,
13,
198,
10619,
31631,
13,
198,
198,
31631,
300,
66,
87,
62,
403,
15999,
62,
27184,
30023,
2538,
10979,
6234,
13,
198,
220,
337,
36252,
651,
62,
5239,
13,
198,
220,
220,
220,
1255,
796,
930,
1212,
21860,
9097,
40806,
1352,
857,
407,
1104,
4781,
3419,
91,
13,
198,
220,
23578,
49273,
13,
198,
10619,
31631,
13,
198,
198,
9,
5,
10097,
30934,
9,
198,
9,
5,
220,
775,
481,
635,
3714,
257,
19124,
6631,
611,
262,
8379
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
"! <p class="shorttext synchronized" lang="en">Byte writer</p>
"!
INTERFACE zif_io_x_writer
PUBLIC .
INTERFACES zif_io_close_resource .
INTERFACES zif_io_writer .
ALIASES close FOR zif_io_writer~close .
ALIASES is_closed FOR zif_io_writer~is_closed .
ALIASES flush FOR zif_io_writer~flush.
METHODS write
IMPORTING
!data TYPE xstring
RAISING
zcx_io_resource_already_closed
zcx_io_stream_error .
ENDINTERFACE.
| [
40484,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
40778,
6260,
3556,
79,
29,
198,
40484,
198,
41358,
49836,
1976,
361,
62,
952,
62,
87,
62,
16002,
198,
220,
44731,
764,
628,
198,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
952,
62,
19836,
62,
31092,
764,
198,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
952,
62,
16002,
764,
628,
220,
8355,
43429,
1546,
1969,
220,
220,
220,
220,
7473,
1976,
361,
62,
952,
62,
16002,
93,
19836,
764,
198,
220,
8355,
43429,
1546,
318,
62,
20225,
7473,
1976,
361,
62,
952,
62,
16002,
93,
271,
62,
20225,
764,
198,
220,
8355,
43429,
1546,
24773,
220,
220,
220,
220,
7473,
1976,
361,
62,
952,
62,
16002,
93,
25925,
13,
628,
198,
220,
337,
36252,
50,
3551,
198,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
5145,
7890,
41876,
2124,
8841,
198,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
952,
62,
31092,
62,
282,
1493,
62,
20225,
198,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
952,
62,
5532,
62,
18224,
764,
198,
198,
10619,
41358,
49836,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
class /GAL/CX_DD_HELPER_EXCEPTION definition
public
inheriting from /GAL/CX_EXCEPTION
final
create public .
*"* public components of class /GAL/CX_DD_HELPER_EXCEPTION
*"* do not include other source files here!!!
public section.
type-pools ABAP .
constants /GAL/CX_DD_HELPER_EXCEPTION type SOTR_CONC value 'E38FFDB35C5885F1BF5100155D012203'. "#EC NOTEXT
constants CANNOT_DETERMINE_KEY_FIELD type SOTR_CONC value 'E38FFDB35C5886F1BF5100155D012203'. "#EC NOTEXT
constants CANNOT_DETERMINE_LANG_FIELD type SOTR_CONC value 'E38FFDB35C5887F1BF5100155D012203'. "#EC NOTEXT
constants CANNOT_DETERMINE_TEXT_FIELD type SOTR_CONC value 'E38FFDB35C5888F1BF5100155D012203'. "#EC NOTEXT
constants ERROR_CALLING_VRM_SET_VALUES type SOTR_CONC value 'E38FFDB35C5889F1BF5100155D012203'. "#EC NOTEXT
constants FIELD_EXCEEDS_MAXIMUM_LENGTH type SOTR_CONC value 'E38FFDB35C588EF1BF5100155D012203'. "#EC NOTEXT
constants CANNOT_DETERMINE_DOMAIN type SOTR_CONC value '00155DF935091ED8A9F020CAC71AB6BE'. "#EC NOTEXT
constants NO_FIXED_VALUES_DEFINED type SOTR_CONC value '00155DF935091ED8A9F020CAC71AD6BE'. "#EC NOTEXT
constants CANNOT_DETERMINE_DATA_ELEMENT type SOTR_CONC value '00155DF935091ED8A9F020CAC71AF6BE'. "#EC NOTEXT
constants ERROR_ANALYZING_CHECKTABLE type SOTR_CONC value '00155DF935091ED8A9F020CAC71B16BE'. "#EC NOTEXT
constants CANNOT_ACCESS_FIELD type SOTR_CONC value '00155DF935091ED8A9F020CAC71B36BE'. "#EC NOTEXT
methods CONSTRUCTOR
importing
!TEXTID like TEXTID optional
!PREVIOUS like PREVIOUS optional
!VAR1 type STRING optional
!VAR2 type STRING optional
!VAR3 type STRING optional
!VAR4 type STRING optional
!VAR5 type STRING optional
!VAR6 type STRING optional
!VAR7 type STRING optional
!VAR8 type STRING optional
!VAR9 type STRING optional .
protected section.
*"* protected components of class /GAL/CX_DD_HELPER_EXCEPTION
*"* do not include other source files here!!!
private section.
*"* private components of class /GAL/CX_DD_HELPER_EXCEPTION
*"* do not include other source files here!!!
ENDCLASS.
CLASS /GAL/CX_DD_HELPER_EXCEPTION IMPLEMENTATION.
method CONSTRUCTOR.
CALL METHOD SUPER->CONSTRUCTOR
EXPORTING
TEXTID = TEXTID
PREVIOUS = PREVIOUS
VAR1 = VAR1
VAR2 = VAR2
VAR3 = VAR3
VAR4 = VAR4
VAR5 = VAR5
VAR6 = VAR6
VAR7 = VAR7
VAR8 = VAR8
VAR9 = VAR9
.
IF textid IS INITIAL.
me->textid = /GAL/CX_DD_HELPER_EXCEPTION .
ENDIF.
endmethod.
ENDCLASS.
| [
4871,
1220,
38,
1847,
14,
34,
55,
62,
16458,
62,
39,
3698,
18973,
62,
6369,
42006,
2849,
6770,
198,
220,
1171,
198,
220,
10639,
1780,
422,
1220,
38,
1847,
14,
34,
55,
62,
6369,
42006,
2849,
198,
220,
2457,
198,
220,
2251,
1171,
764,
198,
198,
9,
1,
9,
1171,
6805,
286,
1398,
1220,
38,
1847,
14,
34,
55,
62,
16458,
62,
39,
3698,
18973,
62,
6369,
42006,
2849,
198,
9,
1,
9,
466,
407,
2291,
584,
2723,
3696,
994,
10185,
198,
11377,
2665,
13,
198,
220,
2099,
12,
7742,
82,
9564,
2969,
764,
628,
220,
38491,
1220,
38,
1847,
14,
34,
55,
62,
16458,
62,
39,
3698,
18973,
62,
6369,
42006,
2849,
2099,
311,
2394,
49,
62,
10943,
34,
1988,
705,
36,
2548,
5777,
11012,
2327,
34,
3365,
5332,
37,
16,
29499,
20,
3064,
18742,
35,
486,
17572,
18,
4458,
25113,
2943,
5626,
13918,
198,
220,
38491,
15628,
11929,
62,
35,
2767,
1137,
44,
8881,
62,
20373,
62,
44603,
2099,
311,
2394,
49,
62,
10943,
34,
1988,
705,
36,
2548,
5777,
11012,
2327,
34,
3365,
4521,
37,
16,
29499,
20,
3064,
18742,
35,
486,
17572,
18,
4458,
25113,
2943,
5626,
13918,
198,
220,
38491,
15628,
11929,
62,
35,
2767,
1137,
44,
8881,
62,
43,
15567,
62,
44603,
2099,
311,
2394,
49,
62,
10943,
34,
1988,
705,
36,
2548,
5777,
11012,
2327,
34,
3365,
5774,
37,
16,
29499,
20,
3064,
18742,
35,
486,
17572,
18,
4458,
25113,
2943,
5626,
13918,
198,
220,
38491,
15628,
11929,
62,
35,
2767,
1137,
44,
8881,
62,
32541,
62,
44603,
2099,
311,
2394,
49,
62,
10943,
34,
1988,
705,
36,
2548,
5777,
11012,
2327,
34,
3365,
3459,
37,
16,
29499,
20,
3064,
18742,
35,
486,
17572,
18,
4458,
25113,
2943,
5626,
13918,
198,
220,
38491,
33854,
62,
34,
7036,
2751,
62,
13024,
44,
62,
28480,
62,
23428,
35409,
2099,
311,
2394,
49,
62,
10943,
34,
1988,
705,
36,
2548,
5777,
11012,
2327,
34,
3365,
4531,
37,
16,
29499,
20,
3064,
18742,
35,
486,
17572,
18,
4458,
25113,
2943,
5626,
13918,
198,
220,
38491,
18930,
24639,
62,
6369,
5222,
1961,
50,
62,
22921,
3955,
5883,
62,
43,
49494,
2099,
311,
2394,
49,
62,
10943,
34,
1988,
705,
36,
2548,
5777,
11012,
2327,
34,
39118,
25425,
16,
29499,
20,
3064,
18742,
35,
486,
17572,
18,
4458,
25113,
2943,
5626,
13918,
198,
220,
38491,
15628,
11929,
62,
35,
2767,
1137,
44,
8881,
62,
39170,
29833,
2099,
311,
2394,
49,
62,
10943,
34,
1988,
705,
405,
18742,
8068,
6052,
1120,
6420,
1961,
23,
32,
24,
37,
33618,
34,
2246,
4869,
6242,
21,
12473,
4458,
25113,
2943,
5626,
13918,
198,
220,
38491,
8005,
62,
47084,
1961,
62,
23428,
35409,
62,
7206,
20032,
1961,
2099,
311,
2394,
49,
62,
10943,
34,
1988,
705,
405,
18742,
8068,
6052,
1120,
6420,
1961,
23,
32,
24,
37,
33618,
34,
2246,
4869,
2885,
21,
12473,
4458,
25113,
2943,
5626,
13918,
198,
220,
38491,
15628,
11929,
62,
35,
2767,
1137,
44,
8881,
62,
26947,
62,
36,
2538,
10979,
2099,
311,
2394,
49,
62,
10943,
34,
1988,
705,
405,
18742,
8068,
6052,
1120,
6420,
1961,
23,
32,
24,
37,
33618,
34,
2246,
4869,
8579,
21,
12473,
4458,
25113,
2943,
5626,
13918,
198,
220,
38491,
33854,
62,
1565,
1847,
56,
57,
2751,
62,
50084,
38148,
2099,
311,
2394,
49,
62,
10943,
34,
1988,
705,
405,
18742,
8068,
6052,
1120,
6420,
1961,
23,
32,
24,
37,
33618,
34,
2246,
4869,
33,
1433,
12473,
4458,
25113,
2943,
5626,
13918,
198,
220,
38491,
15628,
11929,
62,
26861,
7597,
62,
44603,
2099,
311,
2394,
49,
62,
10943,
34,
1988,
705,
405,
18742,
8068,
6052,
1120,
6420,
1961,
23,
32,
24,
37,
33618,
34,
2246,
4869,
33,
2623,
12473,
4458,
25113,
2943,
5626,
13918,
628,
220,
5050,
7102,
46126,
1581,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
32541,
2389,
588,
40383,
2389,
11902,
198,
220,
220,
220,
220,
220,
5145,
46437,
12861,
20958,
588,
22814,
12861,
20958,
11902,
198,
220,
220,
220,
220,
220,
5145,
53,
1503,
16,
2099,
19269,
2751,
11902,
198,
220,
220,
220,
220,
220,
5145,
53,
1503,
17,
2099,
19269,
2751,
11902,
198,
220,
220,
220,
220,
220,
5145,
53,
1503,
18,
2099,
19269,
2751,
11902,
198,
220,
220,
220,
220,
220,
5145,
53,
1503,
19,
2099,
19269,
2751,
11902,
198,
220,
220,
220,
220,
220,
5145,
53,
1503,
20,
2099,
19269,
2751,
11902,
198,
220,
220,
220,
220,
220,
5145,
53,
1503,
21,
2099,
19269,
2751,
11902,
198,
220,
220,
220,
220,
220,
5145,
53,
1503,
22,
2099,
19269,
2751,
11902,
198,
220,
220,
220,
220,
220,
5145,
53,
1503,
23,
2099,
19269,
2751,
11902,
198,
220,
220,
220,
220,
220,
5145,
53,
1503,
24,
2099,
19269,
2751,
11902,
764,
198,
24326,
2665,
13,
198,
9,
1,
9,
6861,
6805,
286,
1398,
1220,
38,
1847,
14,
34,
55,
62,
16458,
62,
39,
3698,
18973,
62,
6369,
42006,
2849,
198,
9,
1,
9,
466,
407,
2291,
584,
2723,
3696,
994,
10185,
198,
19734,
2665,
13,
198,
9,
1,
9,
2839,
6805,
286,
1398,
1220,
38,
1847,
14,
34,
55,
62,
16458,
62,
39,
3698,
18973,
62,
6369,
42006,
2849,
198,
9,
1,
9,
466,
407,
2291,
584,
2723,
3696,
994,
10185,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1220,
38,
1847,
14,
34,
55,
62,
16458,
62,
39,
3698,
18973,
62,
6369,
42006,
2849,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
2446,
7102,
46126,
1581,
13,
198,
34,
7036,
337,
36252,
33088,
3784,
10943,
46126,
1581,
198,
6369,
15490,
2751,
198,
32541,
2389,
796,
40383,
2389,
198,
46437,
12861,
20958,
796,
22814,
12861,
20958,
198,
53,
1503,
16,
796,
569,
1503,
16,
198,
53,
1503,
17,
796,
569,
1503,
17,
198,
53,
1503,
18,
796,
569,
1503,
18,
198,
53,
1503,
19,
796,
569,
1503,
19,
198,
53,
1503,
20,
796,
569,
1503,
20,
198,
53,
1503,
21,
796,
569,
1503,
21,
198,
53,
1503,
22,
796,
569,
1503,
22,
198,
53,
1503,
23,
796,
569,
1503,
23,
198,
53,
1503,
24,
796,
569,
1503,
24,
198,
13,
198,
16876,
2420,
312,
3180,
3268,
2043,
12576,
13,
198,
220,
220,
502,
3784,
5239,
312,
796,
1220,
38,
1847,
14,
34,
55,
62,
16458,
62,
39,
3698
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_abapgit_object_srvd DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL.
PUBLIC SECTION.
INTERFACES zif_abapgit_object.
ALIASES mo_files FOR zif_abapgit_object~mo_files.
METHODS:
constructor
IMPORTING
is_item TYPE zif_abapgit_definitions=>ty_item
iv_language TYPE spras
RAISING
zcx_abapgit_exception.
PROTECTED SECTION.
PRIVATE SECTION.
DATA mv_service_definition_key TYPE seu_objkey .
DATA mr_service_definition TYPE REF TO data .
CONSTANTS mc_source_file TYPE string VALUE 'srvdsrv' ##NO_TEXT.
CONSTANTS mc_xml_parent_name TYPE string VALUE 'SRVD' ##NO_TEXT.
DATA mo_object_operator TYPE REF TO object .
METHODS clear_fields
CHANGING
!cs_metadata TYPE any .
METHODS clear_field
IMPORTING
!iv_fieldname TYPE csequence
CHANGING
!cs_metadata TYPE any .
METHODS get_object_data
IMPORTING
!io_xml TYPE REF TO zif_abapgit_xml_input
RETURNING
VALUE(ro_object_data) TYPE REF TO if_wb_object_data_model
RAISING
zcx_abapgit_exception .
METHODS get_transport_req_if_needed
IMPORTING
!iv_package TYPE devclass
RETURNING
VALUE(rv_transport_request) TYPE trkorr
RAISING
zcx_abapgit_exception .
METHODS get_wb_object_operator
RETURNING
VALUE(ro_object_operator) TYPE REF TO object
RAISING
zcx_abapgit_exception .
METHODS merge_object_data
IMPORTING
!io_object_data TYPE REF TO object
RETURNING
VALUE(ro_object_data_merged) TYPE REF TO if_wb_object_data_model
RAISING
zcx_abapgit_exception .
METHODS is_ddic
RETURNING
VALUE(rv_ddic) TYPE abap_bool .
METHODS is_delete_tadir
RETURNING
VALUE(rv_delete_tadir) TYPE abap_bool .
ENDCLASS.
CLASS ZCL_ABAPGIT_OBJECT_SRVD IMPLEMENTATION.
METHOD constructor.
super->constructor( is_item = is_item
iv_language = iv_language ).
mv_service_definition_key = ms_item-obj_name.
TRY.
CREATE DATA mr_service_definition TYPE ('CL_SRVD_WB_OBJECT_DATA=>TY_SRVD_OBJECT_DATA').
CATCH cx_sy_create_error.
zcx_abapgit_exception=>raise( |SRVD not supported by your NW release| ).
ENDTRY.
ENDMETHOD.
METHOD zif_abapgit_object~changed_by.
DATA:
li_object_data_model TYPE REF TO if_wb_object_data_model,
li_wb_object_operator TYPE REF TO object,
lx_error TYPE REF TO cx_root.
li_wb_object_operator = get_wb_object_operator( ).
TRY.
CALL METHOD li_wb_object_operator->('IF_WB_OBJECT_OPERATOR~READ')
IMPORTING
eo_object_data = li_object_data_model.
rv_user = li_object_data_model->get_changed_by( ).
CATCH cx_root INTO lx_error.
zcx_abapgit_exception=>raise_with_text( lx_error ).
ENDTRY.
ENDMETHOD.
METHOD zif_abapgit_object~delete.
DATA:
lx_error TYPE REF TO cx_root,
li_wb_object_operator TYPE REF TO object,
lv_transport_request TYPE trkorr.
lv_transport_request = get_transport_req_if_needed( iv_package ).
li_wb_object_operator = get_wb_object_operator( ).
TRY.
CALL METHOD li_wb_object_operator->('IF_WB_OBJECT_OPERATOR~DELETE')
EXPORTING
transport_request = lv_transport_request.
CATCH cx_root INTO lx_error.
zcx_abapgit_exception=>raise_with_text( lx_error ).
ENDTRY.
ENDMETHOD.
METHOD zif_abapgit_object~deserialize.
DATA:
lo_object_data TYPE REF TO if_wb_object_data_model,
lx_error TYPE REF TO cx_root,
lv_transport_request TYPE trkorr,
lo_wb_object_operator TYPE REF TO object,
lo_merged_data_all TYPE REF TO if_wb_object_data_model,
lo_merged_data_prop TYPE REF TO if_wb_object_data_model,
lo_merged_data_cont TYPE REF TO if_wb_object_data_model,
lr_wbobjtype TYPE REF TO data,
lr_category TYPE REF TO data.
FIELD-SYMBOLS:
<ls_wbobjtype> TYPE any,
<lv_category> TYPE any,
<lv_field> TYPE any.
TRY.
lo_object_data = get_object_data( io_xml ).
lv_transport_request = get_transport_req_if_needed( iv_package ).
lo_wb_object_operator = get_wb_object_operator( ).
CREATE DATA lr_wbobjtype TYPE ('WBOBJTYPE').
ASSIGN lr_wbobjtype->* TO <ls_wbobjtype>.
ASSIGN COMPONENT 'OBJTYPE_TR' OF STRUCTURE <ls_wbobjtype> TO <lv_field>.
<lv_field> = 'SRVD'.
ASSIGN COMPONENT 'SUBTYPE_WB' OF STRUCTURE <ls_wbobjtype> TO <lv_field>.
<lv_field> = 'SRV'.
CREATE DATA lr_category TYPE ('WBADT_RESOURCE_CATEGORY').
ASSIGN lr_category->* TO <lv_category>.
CALL METHOD ('CL_BLUE_WB_UTILITY')=>('GET_RESOURCE_CATEGORY')
EXPORTING
is_object_type = <ls_wbobjtype>
RECEIVING
result = <lv_category>.
lo_wb_object_operator = get_wb_object_operator( ).
tadir_insert( iv_package ).
IF zif_abapgit_object~exists( ) = abap_false.
CASE <lv_category>.
WHEN '1'. "if_wb_adt_plugin_resource_co=>co_sfs_res_category_atomic.
CALL METHOD lo_wb_object_operator->('IF_WB_OBJECT_OPERATOR~CREATE')
EXPORTING
io_object_data = lo_object_data
data_selection = 'AL' "if_wb_object_data_selection_co=>c_all_data
version = 'I' "swbm_version_inactive
package = iv_package
transport_request = lv_transport_request.
WHEN '2'. "if_wb_adt_plugin_resource_co=>co_sfs_res_category_compound_s.
CALL METHOD lo_wb_object_operator->('IF_WB_OBJECT_OPERATOR~CREATE')
EXPORTING
io_object_data = lo_object_data
data_selection = 'P' "if_wb_object_data_selection_co=>c_properties
version = 'I' "swbm_version_inactive
package = iv_package
transport_request = lv_transport_request.
CALL METHOD lo_wb_object_operator->('IF_WB_OBJECT_OPERATOR~UPDATE')
EXPORTING
io_object_data = lo_object_data
data_selection = 'D' "if_wb_object_data_selection_co=>c_data_content
version = 'I' "swbm_version_inactive
transport_request = lv_transport_request.
WHEN OTHERS.
zcx_abapgit_exception=>raise( |Category '{ <lv_category> }' not supported| ).
ENDCASE.
ELSE.
CASE <lv_category>.
WHEN '1'. "if_wb_adt_plugin_resource_co=>co_sfs_res_category_atomic.
lo_merged_data_all = merge_object_data( lo_object_data ).
CALL METHOD lo_wb_object_operator->('IF_WB_OBJECT_OPERATOR~UPDATE')
EXPORTING
io_object_data = lo_merged_data_all
data_selection = 'AL' "if_wb_object_data_selection_co=>c_all_data
version = 'I' "swbm_version_inactive
transport_request = lv_transport_request.
WHEN '2'. "if_wb_adt_plugin_resource_co=>co_sfs_res_category_compound_s.
lo_merged_data_prop = merge_object_data( lo_object_data ).
lo_merged_data_cont = merge_object_data( lo_object_data ).
CALL METHOD lo_wb_object_operator->('IF_WB_OBJECT_OPERATOR~UPDATE')
EXPORTING
io_object_data = lo_merged_data_prop
data_selection = 'P' "if_wb_object_data_selection_co=>c_properties
version = 'I' "swbm_version_inactive
transport_request = lv_transport_request.
CALL METHOD lo_wb_object_operator->('IF_WB_OBJECT_OPERATOR~UPDATE')
EXPORTING
io_object_data = lo_merged_data_cont
data_selection = 'D' "if_wb_object_data_selection_co=>c_data_content
version = 'I' "swbm_version_inactive
transport_request = lv_transport_request.
WHEN OTHERS.
zcx_abapgit_exception=>raise( |Category '{ <lv_category> }' not supported| ).
ENDCASE.
ENDIF.
corr_insert( iv_package ).
CATCH cx_root INTO lx_error.
zcx_abapgit_exception=>raise_with_text( lx_error ).
ENDTRY.
zcl_abapgit_objects_activation=>add_item( ms_item ).
ENDMETHOD.
METHOD zif_abapgit_object~exists.
DATA lo_object_data TYPE REF TO if_wb_object_data_model.
DATA lo_wb_object_operator TYPE REF TO object.
TRY.
lo_wb_object_operator = get_wb_object_operator( ).
CALL METHOD lo_wb_object_operator->('IF_WB_OBJECT_OPERATOR~READ')
EXPORTING
data_selection = 'P'
IMPORTING
eo_object_data = lo_object_data.
rv_bool = boolc( lo_object_data IS NOT INITIAL AND lo_object_data->get_object_key( ) IS NOT INITIAL ).
CATCH cx_root.
rv_bool = abap_false.
ENDTRY.
ENDMETHOD.
METHOD zif_abapgit_object~get_comparator.
RETURN.
ENDMETHOD.
METHOD zif_abapgit_object~get_deserialize_steps.
APPEND zif_abapgit_object=>gc_step_id-abap TO rt_steps.
ENDMETHOD.
METHOD zif_abapgit_object~get_metadata.
rs_metadata = get_metadata( ).
rs_metadata-ddic = is_ddic( ).
rs_metadata-delete_tadir = is_delete_tadir( ).
ENDMETHOD.
METHOD zif_abapgit_object~is_active.
rv_active = is_active( ).
ENDMETHOD.
METHOD zif_abapgit_object~is_locked.
rv_is_locked = exists_a_lock_entry_for( iv_lock_object = 'ESWB_EO'
iv_argument = |{ ms_item-obj_type }{ ms_item-obj_name }| ).
ENDMETHOD.
METHOD zif_abapgit_object~jump.
CALL FUNCTION 'RS_TOOL_ACCESS'
EXPORTING
operation = 'SHOW'
object_name = ms_item-obj_name
object_type = ms_item-obj_type
in_new_window = abap_true
EXCEPTIONS
not_executed = 1
invalid_object_type = 2
OTHERS = 3.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( |RC={ sy-subrc } from RS_TOOL_ACCESS| ).
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_object~serialize.
DATA:
li_object_data_model TYPE REF TO if_wb_object_data_model,
li_wb_object_operator TYPE REF TO object,
lx_error TYPE REF TO cx_root,
lv_source TYPE string.
FIELD-SYMBOLS:
<ls_service_definition> TYPE any,
<lv_metadata> TYPE any,
<lv_source> TYPE string.
ASSIGN mr_service_definition->* TO <ls_service_definition>.
ASSERT sy-subrc = 0.
TRY.
li_wb_object_operator = get_wb_object_operator( ).
CALL METHOD li_wb_object_operator->('IF_WB_OBJECT_OPERATOR~READ')
EXPORTING
version = 'A'
data_selection = 'AL'
IMPORTING
"data = <ls_service_definition>
eo_object_data = li_object_data_model.
CALL METHOD li_object_data_model->('GET_DATA')
IMPORTING
p_data = <ls_service_definition>.
ASSIGN COMPONENT 'METADATA' OF STRUCTURE <ls_service_definition> TO <lv_metadata>.
ASSERT sy-subrc = 0.
clear_fields( CHANGING cs_metadata = <lv_metadata> ).
ASSIGN COMPONENT 'CONTENT-SOURCE' OF STRUCTURE <ls_service_definition> TO <lv_source>.
ASSERT sy-subrc = 0.
lv_source = <lv_source>.
io_xml->add(
iv_name = mc_xml_parent_name
ig_data = <lv_metadata> ).
mo_files->add_string(
iv_ext = mc_source_file
iv_string = lv_source ).
CATCH cx_root INTO lx_error.
zcx_abapgit_exception=>raise_with_text( lx_error ).
ENDTRY.
ENDMETHOD.
METHOD merge_object_data.
DATA:
lo_object_data TYPE REF TO object,
lo_object_data_old TYPE REF TO if_wb_object_data_model,
lr_new TYPE REF TO data,
lr_old TYPE REF TO data,
lo_wb_object_operator TYPE REF TO object.
FIELD-SYMBOLS:
<ls_new> TYPE any,
<ls_old> TYPE any,
<lv_field_old> TYPE any,
<lv_field_new> TYPE any.
CREATE OBJECT lo_object_data TYPE ('CL_SRVD_WB_OBJECT_DATA').
lo_object_data = io_object_data.
CREATE DATA lr_new TYPE ('CL_SRVD_WB_OBJECT_DATA=>TY_SRVD_OBJECT_DATA').
ASSIGN lr_new->* TO <ls_new>.
ASSERT sy-subrc = 0.
CREATE DATA lr_old TYPE ('CL_SRVD_WB_OBJECT_DATA=>TY_SRVD_OBJECT_DATA').
ASSIGN lr_old->* TO <ls_old>.
ASSERT sy-subrc = 0.
CALL METHOD lo_object_data->('IF_WB_OBJECT_DATA_MODEL~GET_DATA')
EXPORTING
p_metadata_only = abap_false
p_data_selection = 'AL'
IMPORTING
p_data = <ls_new>.
lo_wb_object_operator = get_wb_object_operator( ).
CALL METHOD lo_wb_object_operator->('IF_WB_OBJECT_OPERATOR~READ')
EXPORTING
data_selection = 'AL' " if_wb_object_data_selection_co=>c_all_data
IMPORTING
eo_object_data = lo_object_data_old.
CALL METHOD lo_object_data_old->('GET_DATA')
EXPORTING
p_metadata_only = abap_false
p_data_selection = 'AL' " if_wb_object_data_selection_co=>c_all_data
IMPORTING
p_data = <ls_old>.
ASSIGN COMPONENT 'METADATA-DESCRIPTION' OF STRUCTURE <ls_old> TO <lv_field_old>.
ASSIGN COMPONENT 'METADATA-DESCRIPTION' OF STRUCTURE <ls_new> TO <lv_field_new>.
<lv_field_old> = <lv_field_new>.
ASSIGN COMPONENT 'CONTENT-SOURCE' OF STRUCTURE <ls_old> TO <lv_field_old>.
ASSIGN COMPONENT 'CONTENT-SOURCE' OF STRUCTURE <ls_new> TO <lv_field_new>.
<lv_field_old> = <lv_field_new>.
CREATE OBJECT ro_object_data_merged TYPE ('CL_SRVD_WB_OBJECT_DATA').
CALL METHOD ro_object_data_merged->('SET_DATA')
EXPORTING
p_data = <ls_old>.
ENDMETHOD.
METHOD is_delete_tadir.
rv_delete_tadir = abap_true.
ENDMETHOD.
METHOD is_ddic.
rv_ddic = abap_false.
ENDMETHOD.
METHOD get_wb_object_operator.
DATA:
ls_object_type TYPE wbobjtype,
lx_error TYPE REF TO cx_root.
IF mo_object_operator IS BOUND.
ro_object_operator = mo_object_operator.
ENDIF.
ls_object_type-objtype_tr = 'SRVD'.
ls_object_type-subtype_wb = 'SRV'.
TRY.
CALL METHOD ('CL_WB_OBJECT_OPERATOR')=>('CREATE_INSTANCE')
EXPORTING
object_type = ls_object_type
object_key = mv_service_definition_key
RECEIVING
result = mo_object_operator.
CATCH cx_root INTO lx_error.
zcx_abapgit_exception=>raise_with_text( lx_error ).
ENDTRY.
ro_object_operator = mo_object_operator.
ENDMETHOD.
METHOD get_transport_req_if_needed.
DATA: li_sap_package TYPE REF TO zif_abapgit_sap_package.
li_sap_package = zcl_abapgit_factory=>get_sap_package( iv_package ).
IF li_sap_package->are_changes_recorded_in_tr_req( ) = abap_true.
rv_transport_request = zcl_abapgit_default_transport=>get_instance( )->get( )-ordernum.
ENDIF.
ENDMETHOD.
METHOD get_object_data.
DATA:
lr_metadata TYPE REF TO data,
lr_data TYPE REF TO data.
FIELD-SYMBOLS:
<lv_metadata_node> TYPE any,
<ls_metadata> TYPE any,
<lv_source> TYPE any,
<lg_data> TYPE any.
CREATE DATA lr_data TYPE ('CL_SRVD_WB_OBJECT_DATA=>TY_SRVD_OBJECT_DATA').
ASSIGN lr_data->* TO <lg_data>.
ASSERT sy-subrc = 0.
ASSIGN COMPONENT 'METADATA' OF STRUCTURE <lg_data> TO <lv_metadata_node>.
ASSERT sy-subrc = 0.
CREATE DATA lr_metadata TYPE ('CL_SRVD_WB_OBJECT_DATA=>TY_METADATA_EXTENDED').
ASSIGN lr_metadata->* TO <ls_metadata>.
ASSERT sy-subrc = 0.
io_xml->read(
EXPORTING
iv_name = mc_xml_parent_name
CHANGING
cg_data = <ls_metadata> ).
<lv_metadata_node> = <ls_metadata>.
ASSIGN COMPONENT 'CONTENT-SOURCE' OF STRUCTURE <lg_data> TO <lv_source>.
ASSERT sy-subrc = 0.
<lv_source> = mo_files->read_string( mc_source_file ).
IF <lv_source> IS INITIAL.
<lv_source> = mo_files->read_string( 'assrvd' ).
ENDIF.
CREATE OBJECT ro_object_data TYPE ('CL_SRVD_WB_OBJECT_DATA').
ro_object_data->set_data( p_data = <lg_data> ).
ENDMETHOD.
METHOD clear_fields.
clear_field(
EXPORTING
iv_fieldname = 'VERSION'
CHANGING
cs_metadata = cs_metadata ).
clear_field(
EXPORTING
iv_fieldname = 'CREATED_AT'
CHANGING
cs_metadata = cs_metadata ).
clear_field(
EXPORTING
iv_fieldname = 'CREATED_BY'
CHANGING
cs_metadata = cs_metadata ).
clear_field(
EXPORTING
iv_fieldname = 'CHANGED_AT'
CHANGING
cs_metadata = cs_metadata ).
clear_field(
EXPORTING
iv_fieldname = 'CHANGED_BY'
CHANGING
cs_metadata = cs_metadata ).
clear_field(
EXPORTING
iv_fieldname = 'RESPONSIBLE'
CHANGING
cs_metadata = cs_metadata ).
clear_field(
EXPORTING
iv_fieldname = 'PACKAGE_REF'
CHANGING
cs_metadata = cs_metadata ).
clear_field(
EXPORTING
iv_fieldname = 'MASTER_SYSTEM'
CHANGING
cs_metadata = cs_metadata ).
clear_field(
EXPORTING
iv_fieldname = 'DT_UUID'
CHANGING
cs_metadata = cs_metadata ).
clear_field(
EXPORTING
iv_fieldname = 'ABAP_LANGUAGE_VERSION'
CHANGING
cs_metadata = cs_metadata ).
clear_field(
EXPORTING
iv_fieldname = 'LINKS'
CHANGING
cs_metadata = cs_metadata ).
ENDMETHOD.
METHOD clear_field.
FIELD-SYMBOLS: <lv_value> TYPE data.
ASSIGN COMPONENT iv_fieldname OF STRUCTURE cs_metadata
TO <lv_value>.
ASSERT sy-subrc = 0.
CLEAR: <lv_value>.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
27891,
20306,
5550,
20032,
17941,
44731,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
397,
499,
18300,
62,
48205,
62,
16668,
25261,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
397,
499,
18300,
62,
15252,
13,
198,
220,
220,
220,
8355,
43429,
1546,
6941,
62,
16624,
7473,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
5908,
62,
16624,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
23772,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
62,
9186,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
9186,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
16129,
41876,
7500,
292,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
42865,
285,
85,
62,
15271,
62,
46758,
62,
2539,
41876,
384,
84,
62,
26801,
2539,
764,
198,
220,
220,
220,
42865,
285,
81,
62,
15271,
62,
46758,
41876,
4526,
37,
5390,
1366,
764,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
36650,
62,
10459,
62,
7753,
41876,
4731,
26173,
8924,
705,
27891,
85,
9310,
81,
85,
6,
22492,
15285,
62,
32541,
13,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
36650,
62,
19875,
62,
8000,
62,
3672,
41876,
4731,
26173,
8924,
705,
12562,
8898,
6,
22492,
15285,
62,
32541,
13,
198,
220,
220,
220,
42865,
6941,
62,
15252,
62,
46616,
41876,
4526,
37,
5390,
2134,
764,
628,
220,
220,
220,
337,
36252,
50,
1598,
62,
25747,
198,
220,
220,
220,
220,
220,
5870,
15567,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
6359,
62,
38993,
41876,
597,
764,
198,
220,
220,
220,
337,
36252,
50,
1598,
62,
3245,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
3245,
3672,
41876,
269,
43167,
198,
220,
220,
220,
220,
220,
5870,
15567,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
6359,
62,
38993,
220,
41876,
597,
764,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
15252,
62,
7890,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
952,
62,
19875,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
19875,
62,
15414,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
305,
62,
15252,
62,
7890,
8,
41876,
4526,
37,
5390,
611,
62,
39346,
62,
15252,
62,
7890,
62,
19849,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
7645,
634,
62,
42180,
62,
361,
62,
27938,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
26495,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1614,
4871,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
7645,
634,
62,
25927,
8,
41876,
491,
74,
38890,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
39346,
62,
15252,
62,
46616,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
305,
62,
15252,
62,
46616,
8,
41876,
4526,
37,
5390,
2134,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
20121,
62,
15252,
62,
7890,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
952,
62,
15252,
62,
7890,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
2134,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
305,
62,
15252,
62,
7890,
62,
647,
2004,
8,
41876,
4526,
37,
5390,
611,
62,
39346,
62,
15252,
62,
7890,
62,
19849,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
318,
62,
1860,
291,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
1860,
291,
8,
41876,
450,
499,
62,
30388,
764,
198,
220,
220,
220,
337,
36252,
50,
318,
62,
33678,
62,
83,
324,
343,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
33678,
62,
83,
324,
343,
8,
41876,
450,
499,
62,
30388,
764,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
6242,
2969,
38,
2043,
62,
9864,
23680,
62,
12562,
8898,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
23772,
13,
198,
220,
220,
220,
2208,
3784,
41571,
273,
7,
318,
62,
9186,
796,
318,
62,
9186,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
INTERFACE if_ixml_document PUBLIC.
INTERFACES if_ixml_node.
METHODS:
set_encoding
IMPORTING
encoding TYPE REF TO object,
set_standalone
IMPORTING
standalone TYPE abap_bool,
set_namespace_prefix
IMPORTING
prefix TYPE string,
append_child
IMPORTING
new_child TYPE REF TO if_ixml_node,
get_first_child
RETURNING
VALUE(child) TYPE REF TO if_ixml_node,
create_attribute_ns
IMPORTING
name TYPE string
prefix TYPE string OPTIONAL
RETURNING
VALUE(element) TYPE REF TO if_ixml_attribute,
create_element_ns
IMPORTING
name TYPE string
prefix TYPE string OPTIONAL
RETURNING
VALUE(element) TYPE REF TO if_ixml_element,
create_element
IMPORTING
name TYPE string
RETURNING
VALUE(element) TYPE REF TO if_ixml_element,
create_iterator_filtered
IMPORTING input TYPE any
RETURNING VALUE(val) TYPE REF TO if_ixml_node_iterator,
create_filter_and
IMPORTING
filter1 TYPE any
filter2 TYPE any
RETURNING
VALUE(val) TYPE any,
create_iterator
IMPORTING depth TYPE i DEFAULT 0
RETURNING VALUE(rval) TYPE REF TO if_ixml_node_iterator,
create_filter_node_type
IMPORTING typ TYPE string
RETURNING VALUE(val) TYPE any,
create_simple_element_ns
IMPORTING
name TYPE string
parent TYPE REF TO if_ixml_node
prefix TYPE string OPTIONAL
value TYPE string OPTIONAL
RETURNING VALUE(val) TYPE REF TO if_ixml_element,
create_filter_attribute
IMPORTING name TYPE string
RETURNING VALUE(val) TYPE any,
create_simple_element
IMPORTING
name TYPE string
value TYPE string OPTIONAL
parent TYPE REF TO if_ixml_node
RETURNING VALUE(val) TYPE REF TO if_ixml_element,
find_from_name
IMPORTING
name TYPE string
namespace TYPE string OPTIONAL
RETURNING
VALUE(element) TYPE REF TO if_ixml_element,
find_from_name_ns
IMPORTING
depth TYPE i OPTIONAL
name TYPE string
uri TYPE string OPTIONAL
RETURNING
VALUE(element) TYPE REF TO if_ixml_element,
find_from_path
IMPORTING
path TYPE string
RETURNING
VALUE(val) TYPE REF TO if_ixml_element,
get_elements_by_tag_name_ns
IMPORTING
name TYPE string
namespace TYPE string OPTIONAL
uri TYPE string OPTIONAL
RETURNING VALUE(val) TYPE any,
get_elements_by_tag_name
IMPORTING
depth TYPE i OPTIONAL
name TYPE string
namespace TYPE string OPTIONAL
uri TYPE string OPTIONAL
RETURNING VALUE(val) TYPE any,
create_namespace_decl
IMPORTING
name TYPE string
prefix TYPE string
uri TYPE string
RETURNING
VALUE(attr) TYPE REF TO if_ixml_attribute,
get_root RETURNING VALUE(node) TYPE REF TO if_ixml_node,
create_text IMPORTING text TYPE clike RETURNING VALUE(text) TYPE REF TO object,
get_root_element RETURNING VALUE(root) TYPE REF TO if_ixml_element,
get_first_node RETURNING VALUE(node) TYPE REF TO if_ixml_node,
create_filter_name_ns
IMPORTING
name TYPE string
namespace TYPE string OPTIONAL
RETURNING
VALUE(filter) TYPE REF TO if_ixml_node_filter.
ENDINTERFACE.
| [
41358,
49836,
611,
62,
844,
4029,
62,
22897,
44731,
13,
198,
220,
23255,
37,
2246,
1546,
611,
62,
844,
4029,
62,
17440,
13,
628,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
900,
62,
12685,
7656,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21004,
41876,
4526,
37,
5390,
2134,
11,
198,
220,
220,
220,
900,
62,
1481,
17749,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
27669,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
900,
62,
14933,
10223,
62,
40290,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21231,
41876,
4731,
11,
198,
220,
220,
220,
24443,
62,
9410,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
649,
62,
9410,
41876,
4526,
37,
5390,
611,
62,
844,
4029,
62,
17440,
11,
198,
220,
220,
220,
651,
62,
11085,
62,
9410,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
9410,
8,
41876,
4526,
37,
5390,
611,
62,
844,
4029,
62,
17440,
11,
198,
220,
220,
220,
2251,
62,
42348,
62,
5907,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
21231,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
30854,
8,
41876,
4526,
37,
5390,
611,
62,
844,
4029,
62,
42348,
11,
198,
220,
220,
220,
2251,
62,
30854,
62,
5907,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
21231,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
30854,
8,
41876,
4526,
37,
5390,
611,
62,
844,
4029,
62,
30854,
11,
198,
220,
220,
220,
2251,
62,
30854,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
41876,
4731,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
30854,
8,
41876,
4526,
37,
5390,
611,
62,
844,
4029,
62,
30854,
11,
198,
220,
220,
220,
2251,
62,
48727,
62,
10379,
4400,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
5128,
41876,
597,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
2100,
8,
41876,
4526,
37,
5390,
611,
62,
844,
4029,
62,
17440,
62,
48727,
11,
198,
220,
220,
220,
2251,
62,
24455,
62,
392,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
8106,
16,
41876,
597,
198,
220,
220,
220,
220,
220,
220,
220,
8106,
17,
41876,
597,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
2100,
8,
41876,
597,
11,
198,
220,
220,
220,
2251,
62,
48727,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
6795,
41876,
1312,
5550,
38865,
657,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
81,
2100,
8,
41876,
4526,
37,
5390,
611,
62,
844,
4029,
62,
17440,
62,
48727,
11,
198,
220,
220,
220,
2251,
62,
24455,
62,
17440,
62,
4906,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
2170,
41876,
4731,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
2100,
8,
41876,
597,
11,
198,
220,
220,
220,
2251,
62,
36439,
62,
30854,
62,
5907,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
2560,
41876,
4526,
37,
5390,
611,
62,
844,
4029,
62,
17440,
198,
220,
220,
220,
220,
220,
220,
220,
21231,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
1988,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
2100,
8,
41876,
4526,
37,
5390,
611,
62,
844,
4029,
62,
30854,
11,
198,
220,
220,
220,
2251,
62,
24455,
62,
42348,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
1438,
41876,
4731,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
2100,
8,
41876,
597,
11,
198,
220,
220,
220,
2251,
62,
36439,
62,
30854,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
1988,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
2560,
41876,
4526,
37,
5390,
611,
62,
844,
4029,
62,
17440,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
2100,
8,
41876,
4526,
37,
5390,
611,
62,
844,
4029,
62,
30854,
11,
198,
220,
220,
220,
1064,
62,
6738,
62,
3672,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
25745,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
30854,
8,
41876,
4526,
37,
5390,
611,
62,
844,
4029,
62,
30854,
11,
198,
220,
220,
220,
1064,
62,
6738,
62,
3672,
62,
5907,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
6795,
41876,
1312,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
2956,
72,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
30854,
8,
41876,
4526,
37,
5390,
611,
62,
844,
4029,
62,
30854,
11,
198,
220,
220,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
class ltcl_if_http_client_mock definition
for testing
risk level harmless
duration short
final.
public section.
interfaces:
if_http_client,
if_http_request,
if_http_response.
types:
begin of ty_header_fields,
name type string,
value type string,
end of ty_header_fields,
tt_header_fields type standard table of ty_header_fields.
data mv_send_called type i.
data mv_recv_called type i.
data mv_last_data type xstring.
data mt_req_header_fields type tt_header_fields.
data mt_req_form_fields type tt_header_fields.
data mv_method type string.
data mv_content_type type string.
data mt_multi type table of ref to ltcl_if_http_client_mock.
data mv_resp_cdata type string.
data mv_resp_data type xstring.
data mv_resp_code type i.
class-methods create
returning
value(ro_instance) type ref to ltcl_if_http_client_mock.
private section.
endclass.
class ltcl_if_http_client_mock implementation.
method create.
create object ro_instance.
ro_instance->if_http_client~request = ro_instance.
ro_instance->if_http_client~response = ro_instance.
endmethod.
" if_http_client
method if_http_client~send.
mv_send_called = mv_send_called + 1.
endmethod.
method if_http_client~receive.
mv_recv_called = mv_recv_called + 1.
endmethod.
method if_http_client~get_last_error.
endmethod.
" if_http_request
method if_http_request~get_last_error.
endmethod.
method if_http_request~set_content_type.
mv_content_type = content_type.
endmethod.
method if_http_request~set_data.
mv_last_data = data.
endmethod.
method if_http_request~add_multipart.
data mp like line of mt_multi.
create object mp.
append mp to mt_multi.
entity = mp.
endmethod.
method if_http_request~set_version.
endmethod.
method if_http_request~set_method.
mv_method = method.
endmethod.
method if_http_request~set_form_field.
field-symbols <f> like line of mt_req_form_fields.
append initial line to mt_req_form_fields assigning <f>.
<f>-name = name.
<f>-value = value.
endmethod.
method if_http_request~set_header_field.
field-symbols <f> like line of mt_req_header_fields.
append initial line to mt_req_header_fields assigning <f>.
<f>-name = name.
<f>-value = value.
endmethod.
" if_http_response
method if_http_response~get_data.
data = mv_resp_data.
endmethod.
method if_http_response~get_status.
code = mv_resp_code.
endmethod.
method if_http_response~get_cdata.
data = mv_resp_cdata.
endmethod.
method if_http_response~get_header_fields.
endmethod.
endclass.
**********************************************************************
class ltcl_http_agent_test definition
for testing
risk level harmless
duration short
final.
private section.
data mo_client_mock type ref to ltcl_if_http_client_mock.
methods setup.
methods get for testing raising zcx_aha_error.
* methods get_json for testing raising zcx_aha_error.
methods post for testing raising zcx_aha_error.
methods post_multipart for testing raising zcx_aha_error.
endclass.
class ltcl_http_agent_test implementation.
method setup.
mo_client_mock = ltcl_if_http_client_mock=>create( ).
lcl_client_factory=>inject_http_client( mo_client_mock ).
endmethod.
method get.
data lt_query type zif_aha_http_agent=>tty_key_value.
data lt_header type zif_aha_http_agent=>tty_key_value.
field-symbols <e> like line of lt_query.
append initial line to lt_query assigning <e>.
<e>-key = 'A'.
<e>-val = 'B'.
append initial line to lt_header assigning <e>.
<e>-key = 'X'.
<e>-val = 'Y'.
data lo_cut type ref to zif_aha_http_agent.
data li_resp type ref to zif_aha_http_response.
lo_cut = zcl_aha_http_agent=>create_for_rfc_destination( iv_destination = '???' ).
li_resp = lo_cut->request(
iv_uri = 'service/1'
it_query = lt_query
it_headers = lt_header ).
cl_abap_unit_assert=>assert_equals(
act = mo_client_mock->mv_method
exp = 'GET' ).
cl_abap_unit_assert=>assert_equals(
act = mo_client_mock->mv_send_called
exp = 1 ).
cl_abap_unit_assert=>assert_equals(
act = mo_client_mock->mv_recv_called
exp = 1 ).
" Query
data lt_exp_pairs type ltcl_if_http_client_mock=>tt_header_fields.
field-symbols <f> like line of lt_exp_pairs.
append initial line to lt_exp_pairs assigning <f>.
<f>-name = 'A'.
<f>-value = 'B'.
cl_abap_unit_assert=>assert_equals(
act = mo_client_mock->mt_req_form_fields
exp = lt_exp_pairs ).
" Headers
clear lt_exp_pairs.
append initial line to lt_exp_pairs assigning <f>.
<f>-name = '~request_uri'.
<f>-value = 'service/1'.
append initial line to lt_exp_pairs assigning <f>.
<f>-name = 'x'.
<f>-value = 'Y'.
cl_abap_unit_assert=>assert_equals(
act = mo_client_mock->mt_req_header_fields
exp = lt_exp_pairs ).
" Responce
mo_client_mock->mv_resp_code = 202.
mo_client_mock->mv_resp_data = '102030'.
cl_abap_unit_assert=>assert_equals(
act = li_resp->data( )
exp = '102030' ).
cl_abap_unit_assert=>assert_equals(
act = li_resp->code( )
exp = 202 ).
cl_abap_unit_assert=>assert_equals(
act = li_resp->is_ok( )
exp = abap_true ).
" Failure code
mo_client_mock->mv_resp_code = 404.
cl_abap_unit_assert=>assert_equals(
act = li_resp->is_ok( )
exp = abap_false ).
endmethod.
* method get_json.
*
* data lo_cut type ref to zif_aha_http_agent.
* data li_resp type ref to zif_aha_http_response.
* lo_cut = zcl_aha_http_agent=>create( iv_destination = '???' ).
*
* li_resp = lo_cut->request( iv_uri = 'service/1' ).
*
* " Responce
*
* types:
* begin of lty_dummy,
* a type string,
* b type string,
* end of lty_dummy.
* data ls_act type lty_dummy.
* data ls_exp type lty_dummy.
* ls_exp-a = '123'.
* ls_exp-b = 'qwe'.
*
* mo_client_mock->mv_resp_data = lcl_utils=>string_to_xstring_utf8( '{ "a": "123", "b": "qwe" }' ).
* li_resp->json( changing cv_container = ls_act ).
* cl_abap_unit_assert=>assert_equals(
* act = ls_act
* exp = ls_exp ).
*
* endmethod.
method post.
data lo_cut type ref to zif_aha_http_agent.
constants lc_payload type xstring value '102030'.
lo_cut = zcl_aha_http_agent=>create_for_rfc_destination( iv_destination = '???' ).
lo_cut->request(
iv_method = 'POST'
iv_uri = 'service/1'
iv_payload = lc_payload ).
cl_abap_unit_assert=>assert_equals(
act = mo_client_mock->mv_method
exp = 'POST' ).
cl_abap_unit_assert=>assert_equals(
act = mo_client_mock->mv_send_called
exp = 1 ).
cl_abap_unit_assert=>assert_equals(
act = mo_client_mock->mv_recv_called
exp = 1 ).
cl_abap_unit_assert=>assert_equals(
act = mo_client_mock->mv_last_data
exp = lc_payload ).
endmethod.
method post_multipart.
data lo_cut type ref to zif_aha_http_agent.
data lt_multipart type zif_aha_http_agent=>tt_multipart.
field-symbols <mp> like line of lt_multipart.
append initial line to lt_multipart assigning <mp>.
<mp>-content_type = 'pdf'.
<mp>-data = '102030'.
<mp>-filename = 'myfile.txt'.
<mp>-name = 'myfile'.
lo_cut = zcl_aha_http_agent=>create_for_rfc_destination( iv_destination = '???' ).
lo_cut->request(
iv_method = 'POST'
iv_uri = 'service/1'
iv_payload = lt_multipart ).
cl_abap_unit_assert=>assert_equals(
act = mo_client_mock->mv_method
exp = 'POST' ).
cl_abap_unit_assert=>assert_equals(
act = mo_client_mock->mv_send_called
exp = 1 ).
cl_abap_unit_assert=>assert_equals(
act = mo_client_mock->mv_recv_called
exp = 1 ).
" Headers
data lt_exp_pairs type ltcl_if_http_client_mock=>tt_header_fields.
field-symbols <f> like line of lt_exp_pairs.
append initial line to lt_exp_pairs assigning <f>.
<f>-name = '~request_uri'.
<f>-value = 'service/1'.
append initial line to lt_exp_pairs assigning <f>.
<f>-name = 'content-type'.
<f>-value = 'multipart/form-data'.
cl_abap_unit_assert=>assert_equals(
act = mo_client_mock->mt_req_header_fields
exp = lt_exp_pairs ).
" Multipart
cl_abap_unit_assert=>assert_equals(
act = lines( mo_client_mock->mt_multi )
exp = 1 ).
data lo_mp like line of mo_client_mock->mt_multi.
read table mo_client_mock->mt_multi into lo_mp index 1.
cl_abap_unit_assert=>assert_equals(
act = lo_mp->mv_last_data
exp = '102030' ).
cl_abap_unit_assert=>assert_equals(
act = lo_mp->mv_content_type
exp = 'pdf' ).
" part header
clear lt_exp_pairs.
append initial line to lt_exp_pairs assigning <f>.
<f>-name = 'content-disposition'.
<f>-value = 'form-data; name="myfile"; filename*=UTF-8''''myfile.txt; filename="myfile.txt"'.
cl_abap_unit_assert=>assert_equals(
act = lo_mp->mt_req_header_fields
exp = lt_exp_pairs ).
endmethod.
endclass.
| [
4871,
300,
83,
565,
62,
361,
62,
4023,
62,
16366,
62,
76,
735,
6770,
198,
220,
329,
4856,
198,
220,
2526,
1241,
23585,
198,
220,
9478,
1790,
198,
220,
2457,
13,
628,
220,
1171,
2665,
13,
198,
220,
220,
220,
20314,
25,
198,
220,
220,
220,
220,
220,
611,
62,
4023,
62,
16366,
11,
198,
220,
220,
220,
220,
220,
611,
62,
4023,
62,
25927,
11,
198,
220,
220,
220,
220,
220,
611,
62,
4023,
62,
26209,
13,
628,
220,
220,
220,
3858,
25,
198,
220,
220,
220,
220,
220,
2221,
286,
1259,
62,
25677,
62,
25747,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
2099,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1988,
2099,
4731,
11,
198,
220,
220,
220,
220,
220,
886,
286,
1259,
62,
25677,
62,
25747,
11,
198,
220,
220,
220,
220,
220,
256,
83,
62,
25677,
62,
25747,
2099,
3210,
3084,
286,
1259,
62,
25677,
62,
25747,
13,
628,
220,
220,
220,
1366,
285,
85,
62,
21280,
62,
7174,
2099,
1312,
13,
198,
220,
220,
220,
1366,
285,
85,
62,
8344,
85,
62,
7174,
2099,
1312,
13,
198,
220,
220,
220,
1366,
285,
85,
62,
12957,
62,
7890,
2099,
2124,
8841,
13,
198,
220,
220,
220,
1366,
45079,
62,
42180,
62,
25677,
62,
25747,
2099,
256,
83,
62,
25677,
62,
25747,
13,
198,
220,
220,
220,
1366,
45079,
62,
42180,
62,
687,
62,
25747,
2099,
256,
83,
62,
25677,
62,
25747,
13,
198,
220,
220,
220,
1366,
285,
85,
62,
24396,
2099,
4731,
13,
198,
220,
220,
220,
1366,
285,
85,
62,
11299,
62,
4906,
2099,
4731,
13,
198,
220,
220,
220,
1366,
45079,
62,
41684,
2099,
3084,
286,
1006,
284,
300,
83,
565,
62,
361,
62,
4023,
62,
16366,
62,
76,
735,
13,
628,
220,
220,
220,
1366,
285,
85,
62,
4363,
62,
66,
7890,
2099,
4731,
13,
198,
220,
220,
220,
1366,
285,
85,
62,
4363,
62,
7890,
2099,
2124,
8841,
13,
198,
220,
220,
220,
1366,
285,
85,
62,
4363,
62,
8189,
2099,
1312,
13,
628,
220,
220,
220,
1398,
12,
24396,
82,
2251,
198,
220,
220,
220,
220,
220,
8024,
198,
220,
220,
220,
220,
220,
220,
220,
1988,
7,
305,
62,
39098,
8,
2099,
1006,
284,
300,
83,
565,
62,
361,
62,
4023,
62,
16366,
62,
76,
735,
13,
628,
220,
2839,
2665,
13,
198,
437,
4871,
13,
198,
198,
4871,
300,
83,
565,
62,
361,
62,
4023,
62,
16366,
62,
76,
735,
7822,
13,
198,
220,
2446,
2251,
13,
198,
220,
220,
220,
2251,
2134,
686,
62,
39098,
13,
198,
220,
220,
220,
686,
62,
39098,
3784,
361,
62,
4023,
62,
16366,
93,
25927,
796,
686,
62,
39098,
13,
198,
220,
220,
220,
686,
62,
39098,
3784,
361,
62,
4023,
62,
16366,
93,
26209,
796,
686,
62,
39098,
13,
198,
220,
886,
24396,
13,
628,
220,
366,
611,
62,
4023,
62,
16366,
198,
220,
2446,
611,
62,
4023,
62,
16366,
93,
21280,
13,
198,
220,
220,
220,
285,
85,
62,
21280,
62,
7174,
796,
285,
85,
62,
21280,
62,
7174,
1343,
352,
13,
198,
220,
886,
24396,
13,
628,
220,
2446,
611,
62,
4023,
62,
16366,
93,
260,
15164,
13,
198,
220,
220,
220,
285,
85,
62,
8344,
85,
62,
7174,
796,
285,
85,
62,
8344,
85,
62,
7174,
1343,
352,
13,
198,
220,
886,
24396,
13,
628,
220,
2446,
611,
62,
4023,
62,
16366,
93,
1136,
62,
12957,
62,
18224,
13,
198,
220,
886,
24396,
13,
628,
220,
366,
611,
62,
4023,
62,
25927,
198,
220,
2446,
611,
62,
4023,
62,
25927,
93,
1136,
62,
12957,
62,
18224,
13,
198,
220,
886,
24396,
13,
628,
220,
2446,
611,
62,
4023,
62,
25927,
93,
2617,
62,
11299,
62,
4906,
13,
198,
220,
220,
220,
285,
85,
62,
11299,
62,
4906,
796,
2695,
62,
4906,
13,
198,
220,
886,
24396,
13,
628,
220,
2446,
611,
62,
4023,
62,
25927,
93,
2617,
62,
7890,
13,
198,
220,
220,
220,
285,
85,
62,
12957,
62,
7890,
796,
1366,
13,
198,
220,
886,
24396,
13,
628,
220,
2446,
611,
62,
4023,
62,
25927,
93,
2860,
62,
16680,
541,
433,
13,
198,
220,
220,
220,
1366,
29034,
588,
1627,
286,
45079,
62,
41684,
13,
198,
220,
220,
220,
2251,
2134,
29034,
13,
198,
220,
220,
220,
24443,
29034,
284,
45079,
62,
41684,
13,
198,
220,
220,
220,
9312,
796,
29034,
13,
198,
220,
886,
24396,
13,
628,
220,
2446,
611,
62,
4023,
62,
25927,
93,
2617,
62,
9641,
13,
198,
220,
886,
24396,
13,
628,
220,
2446,
611,
62,
4023,
62,
25927,
93,
2617,
62,
24396,
13,
198,
220,
220,
220,
285,
85,
62,
24396,
796,
2446,
13,
198,
220,
886,
24396,
13,
628,
220,
2446,
611,
62,
4023,
62,
25927,
93,
2617,
62,
687,
62,
3245,
13,
198,
220,
220,
220,
2214,
12,
1837,
2022,
10220,
1279,
69,
29,
588,
1627,
286,
45079,
62,
42180,
62,
687,
62,
25747,
13,
198,
220,
220,
220,
24443,
4238,
1627,
284,
45079,
62,
42180,
62,
687,
62,
25747,
38875,
1279,
69,
28401,
198,
220,
220,
220,
1279,
69,
29,
12,
3672,
220,
796,
1438,
13,
198,
220,
220,
220,
1279,
69,
29,
12,
8367,
796,
1988,
13,
198,
220,
886,
24396,
13,
628,
220,
2446,
611,
62,
4023,
62,
25927,
93,
2617,
62,
25677,
62,
3245,
13,
198,
220,
220,
220,
2214,
12,
1837,
2022,
10220,
1279,
69,
29,
588,
1627,
286,
45079,
62,
42180,
62,
25677,
62,
25747,
13,
198,
220,
220,
220,
24443,
4238,
1627,
284,
45079,
62,
42180,
62,
25677,
62,
25747,
38875,
1279,
69,
28401,
198,
220,
220,
220,
1279,
69,
29,
12,
3672,
220,
796,
1438,
13,
198,
220,
220,
220,
1279,
69,
29,
12,
8367,
796,
1988,
13,
198,
220,
886,
24396,
13,
628,
220,
366,
611,
62,
4023,
62,
26209,
198,
220,
2446,
611,
62,
4023,
62,
26209,
93,
1136,
62,
7890,
13,
198,
220,
220,
220,
1366,
796,
285,
85,
62,
4363,
62,
7890,
13,
198,
220,
886,
24396,
13,
628,
220,
2446,
611,
62,
4023,
62,
26209,
93,
1136,
62,
13376,
13,
198,
220,
220,
220,
2438,
796,
285,
85,
62,
4363,
62,
8189,
13,
198,
220,
886,
24396,
13,
628,
220,
2446,
611,
62,
4023
] | [
1,
1,
1,
1,
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FILE_IO definition
public
inheriting from ZCL_EUI_FILE
final
create public .
public section.
type-pools ABAP .
types:
BEGIN OF TS_EXCEL_MAP,
" Field of internal table
field TYPE fieldname,
" Convenient for Excel
column_name TYPE char3,
" More convenient for CSV. Could be filled automatically
column_index TYPE i,
" FM of conversion. ALPHA for exmple
fm TYPE string,
" Generic type
gen_type TYPE string,
END OF TS_EXCEL_MAP .
types:
TT_EXCEL_MAP type STANDARD TABLE OF TS_EXCEL_MAP WITH DEFAULT KEY .
types:
BEGIN OF s_column_fdt,
id TYPE fdt_uuid,
name TYPE string,
display_name TYPE string,
is_result TYPE abap_bool,
type TYPE REF TO cl_abap_datadescr,
END OF s_column_fdt .
types:
t_column_fdt TYPE STANDARD TABLE OF s_column_fdt WITH DEFAULT KEY .
events MAPPING_ERROR
exporting
value(IV_SOURCE) type ANY
value(IV_ROW) type SYTABIX
value(IS_EXCEL_MAP) type TS_EXCEL_MAP
value(IO_ERROR) type ref to CX_ROOT
value(CV_VALUE) type ref to DATA
value(CS_ROW) type ref to DATA .
methods EXPORT_TO_ITAB
importing
!IV_ROW_FROM type I default 1
!IO_HANDLER type ref to OBJECT optional
!IR_TABLE type ref to DATA
!IT_EXCEL_MAP type ref to TT_EXCEL_MAP optional
returning
value(RO_FILE) type ref to ZCL_EUI_FILE
raising
ZCX_EUI_EXCEPTION .
methods EXPORT_TO_ITAB_XLSX
importing
!IV_ROW_FROM type I default 1
!IV_SHEET_NAME type STRING optional
!IO_HANDLER type ref to OBJECT optional
!IR_TABLE type ref to DATA
!IT_EXCEL_MAP type ref to TT_EXCEL_MAP optional
returning
value(RO_FILE) type ref to ZCL_EUI_FILE
raising
ZCX_EUI_EXCEPTION .
methods EXPORT_TO_ITAB_CSV
importing
!IV_ROW_FROM type I default 1
!IV_ENCODING type ABAP_ENCODING default ZCL_EUI_CONV=>MC_ENCODING-UTF_16LE
!IV_ROW_DELIMITER type CSEQUENCE default CL_ABAP_CHAR_UTILITIES=>CR_LF
!IV_FIELD_DELIMITER type CSEQUENCE default CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB
!IO_HANDLER type ref to OBJECT optional
!IR_TABLE type ref to DATA
!IT_EXCEL_MAP type ref to TT_EXCEL_MAP optional
returning
value(RO_FILE) type ref to ZCL_EUI_FILE
raising
ZCX_EUI_EXCEPTION .
methods IMPORT_FROM_ITAB
importing
!IR_TABLE type ref to DATA
!IT_EXCEL_MAP type ref to TT_EXCEL_MAP optional
returning
value(RO_FILE) type ref to ZCL_EUI_FILE
raising
ZCX_EUI_EXCEPTION .
methods IMPORT_FROM_ITAB_XLSX_0
importing
!IR_TABLE type ref to DATA
!IV_SHEET_NAME type STRING optional
!IT_EXCEL_MAP type ref to TT_EXCEL_MAP optional
returning
value(RO_FILE) type ref to ZCL_EUI_FILE .
methods IMPORT_FROM_ITAB_XLSX_1
importing
!IR_TABLE type ref to DATA
!IT_EXCEL_MAP type ref to TT_EXCEL_MAP optional
returning
value(RO_FILE) type ref to ZCL_EUI_FILE
raising
ZCX_EUI_EXCEPTION .
methods IMPORT_FROM_ITAB_CSV
importing
!IR_TABLE type ref to DATA
!IV_ENCODING type ABAP_ENCODING default ZCL_EUI_CONV=>MC_ENCODING-UTF_16LE
!IV_ROW_DELIMITER type CSEQUENCE default CL_ABAP_CHAR_UTILITIES=>CR_LF
!IV_FIELD_DELIMITER type CSEQUENCE default CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB
!IT_EXCEL_MAP type ref to TT_EXCEL_MAP optional
returning
value(RO_FILE) type ref to ZCL_EUI_FILE .
class-methods COLUMN_2_INT
importing
value(IV_COLUMN) type CSEQUENCE
returning
value(RV_COLUMN) type I .
class-methods INT_2_COLUMN
importing
value(IV_COLUMN) type I
returning
value(RV_COLUMN) type CHAR3
raising
ZCX_EUI_EXCEPTION .
protected section.
private section.
ENDCLASS.
CLASS ZCL_EUI_FILE_IO IMPLEMENTATION.
METHOD column_2_int.
DATA: lv_uccpi TYPE i,
lv_factor TYPE i,
lv_offset TYPE i,
lv_char TYPE c,
lr_col_ind TYPE REF TO lcl_helper=>ts_col_ind,
ls_col_ind TYPE lcl_helper=>ts_col_ind.
* Upper case
TRANSLATE iv_column TO UPPER CASE.
CONDENSE iv_column NO-GAPS.
" For speed
READ TABLE lcl_helper=>mt_col_ind REFERENCE INTO lr_col_ind
WITH TABLE KEY col = iv_column.
IF sy-subrc = 0.
rv_column = lr_col_ind->ind.
RETURN.
ENDIF.
* Get string lenght and align to right
lv_offset = 3 - strlen( iv_column ).
SHIFT iv_column RIGHT BY lv_offset PLACES.
* Claculate column position
DO 3 TIMES.
lv_offset = sy-index - 1.
lv_char = iv_column+lv_offset(1).
IF lv_char IS INITIAL.
CONTINUE.
ENDIF.
lv_uccpi = cl_abap_conv_out_ce=>uccpi( lv_char ).
lv_factor = 26 ** ( 3 - sy-index ).
rv_column = rv_column + ( lv_uccpi MOD 64 ) * lv_factor.
ENDDO.
" Add to both tables
CONDENSE iv_column.
ls_col_ind-col = iv_column.
ls_col_ind-ind = rv_column.
INSERT ls_col_ind INTO TABLE lcl_helper=>mt_col_ind.
INSERT ls_col_ind INTO TABLE lcl_helper=>mt_ind_col.
ENDMETHOD.
METHOD export_to_itab.
**********************************************************************
" Import fill ITAB[]
**********************************************************************
CASE me->mv_extension.
WHEN mc_extension-xlsx.
" defaults IV_SHEET_NAME
export_to_itab_xlsx(
iv_row_from = iv_row_from
io_handler = io_handler
ir_table = ir_table
it_excel_map = it_excel_map ).
WHEN mc_extension-csv.
" defaults IV_ENCODING, IV_ROW_DELIMITER, IV_FIELD_DELIMITER
export_to_itab_csv(
iv_row_from = iv_row_from
io_handler = io_handler
ir_table = ir_table
it_excel_map = it_excel_map ).
WHEN OTHERS.
MESSAGE s010(zeui_message) WITH me->mv_extension INTO sy-msgli.
zcx_eui_exception=>raise_sys_error( ).
ENDCASE.
ro_file = me.
ENDMETHOD.
METHOD export_to_itab_csv.
**********************************************************************
" Create mapping
**********************************************************************
DATA lr_excel_map LIKE it_excel_map.
lcl_helper=>fill_mapping(
EXPORTING
ir_table = ir_table
ir_excel_map = it_excel_map
IMPORTING
er_excel_map = lr_excel_map ).
**********************************************************************
" Fill raw table from ME->MV_FILE_NAME
DATA lr_source TYPE REF TO data.
**********************************************************************
DATA lv_max_column TYPE i VALUE 0.
DATA lv_name TYPE string.
DATA lt_comp TYPE abap_component_tab.
DATA lo_struc TYPE REF TO cl_abap_structdescr.
DATA lo_table TYPE REF TO cl_abap_tabledescr.
FIELD-SYMBOLS <ls_comp> LIKE LINE OF lt_comp.
" Find max column
FIELD-SYMBOLS <ls_excel_map> TYPE ts_excel_map.
LOOP AT lr_excel_map->* ASSIGNING <ls_excel_map>.
IF lv_max_column < <ls_excel_map>-column_index.
lv_max_column = <ls_excel_map>-column_index.
ENDIF.
ENDLOOP.
" What ?
CHECK lv_max_column > 0.
" Create structure for import
DO lv_max_column TIMES.
" New field name
lv_name = sy-index.
CONDENSE lv_name.
CONCATENATE 'FLD_' lv_name INTO lv_name.
APPEND INITIAL LINE TO lt_comp ASSIGNING <ls_comp>.
<ls_comp>-name = lv_name. "confusing int_2_column( sy-index ).
<ls_comp>-type ?= cl_abap_elemdescr=>get_string( ).
ENDDO.
" Create table
lo_struc = cl_abap_structdescr=>create( lt_comp ).
lo_table = cl_abap_tabledescr=>create( p_line_type = lo_struc ).
" Sorce
FIELD-SYMBOLS <lt_source> TYPE STANDARD TABLE.
CREATE DATA lr_source TYPE HANDLE lo_table.
ASSIGN lr_source->* TO <lt_source>.
**********************************************************************
" Fill source
**********************************************************************
DATA lv_document TYPE string.
DATA lt_row TYPE stringtab.
DATA lt_field TYPE stringtab.
DATA lv_len TYPE i.
FIELD-SYMBOLS <lv_row> LIKE LINE OF lt_row.
FIELD-SYMBOLS <lv_field> LIKE LINE OF lt_field.
FIELD-SYMBOLS <ls_source> TYPE any.
FIELD-SYMBOLS <ls_src_field> TYPE any.
" WAS cl_gui_frontend_services=>gui_upload( filetype = 'DAT')
lv_document = zcl_eui_conv=>xstring_to_string(
iv_xstring = me->mv_xstring
iv_encoding = iv_encoding
).
" All rows
SPLIT lv_document AT iv_row_delimiter INTO TABLE lt_row.
LOOP AT lt_row ASSIGNING <lv_row>.
CLEAR lt_field.
SPLIT <lv_row> AT iv_field_delimiter INTO TABLE lt_field.
APPEND INITIAL LINE TO <lt_source> ASSIGNING <ls_source>.
LOOP AT lt_field ASSIGNING <lv_field>.
ASSIGN COMPONENT sy-tabix OF STRUCTURE <ls_source> TO <ls_src_field>.
" No more fields
IF sy-subrc <> 0.
EXIT.
ENDIF.
" TODO in qutes ?
<ls_src_field> = <lv_field>.
" Manage quotes
CHECK <ls_src_field> CP `"*"`.
" Delete first and last char
lv_len = strlen( <ls_src_field> ) - 2.
<ls_src_field> = <ls_src_field>+1(lv_len).
" In CSV "" -> "
REPLACE ALL OCCURRENCES OF `""` IN <ls_src_field> WITH `"`.
ENDLOOP.
ENDLOOP.
**********************************************************************
" And import from lr_source
**********************************************************************
lcl_helper=>export_2_table(
ir_table = ir_table
io_handler = io_handler
ir_source = lr_source
iv_row_from = iv_row_from
io_file = me " for messages only
ir_excel_map = lr_excel_map ).
ro_file = me.
ENDMETHOD.
METHOD export_to_itab_xlsx.
"NOTE: No cl_fdt_xl_spreadsheet in ABAP 7.01
**********************************************************************
" Create mapping
**********************************************************************
DATA lr_excel_map LIKE it_excel_map.
lcl_helper=>fill_mapping(
EXPORTING
ir_table = ir_table
ir_excel_map = it_excel_map
IMPORTING
er_excel_map = lr_excel_map ).
**********************************************************************
" Fill raw table from ME->MV_FILE_NAME
DATA lr_source TYPE REF TO data.
DATA lo_excel TYPE REF TO object. " if_fdt_doc_spreadsheet.
DATA lv_sheet_name LIKE iv_sheet_name.
DATA lt_worksheet TYPE stringtab. " if_fdt_doc_spreadsheet=>t_worksheet_names.
" Create XLSX reader
TRY.
CREATE OBJECT lo_excel TYPE ('CL_FDT_XL_SPREADSHEET')
EXPORTING
document_name = me->mv_file_name
xdocument = me->mv_xstring.
CATCH cx_sy_create_error.
zcx_eui_exception=>raise_dump( iv_message = 'Minimum version 7.02!' ).
ENDTRY.
" Get all sheet names
CALL METHOD lo_excel->('IF_FDT_DOC_SPREADSHEET~GET_WORKSHEET_NAMES')
IMPORTING
worksheet_names = lt_worksheet.
" TODO exception
lv_sheet_name = iv_sheet_name.
IF lv_sheet_name IS NOT INITIAL OR lt_worksheet IS INITIAL.
READ TABLE lt_worksheet TRANSPORTING NO FIELDS
WITH KEY table_line = lv_sheet_name.
IF sy-subrc <> 0.
MESSAGE s001(zeui_message) WITH lv_sheet_name mv_file_name INTO sy-msgli.
zcx_eui_exception=>raise_sys_error( ).
ENDIF.
ELSE.
IF lines( lt_worksheet ) > 1.
MESSAGE s002(zeui_message) WITH mv_file_name INTO sy-msgli.
zcx_eui_exception=>raise_sys_error( ).
ENDIF.
" Get the firsy one
READ TABLE lt_worksheet INTO lv_sheet_name INDEX 1.
ENDIF.
CALL METHOD lo_excel->('IF_FDT_DOC_SPREADSHEET~GET_ITAB_FROM_WORKSHEET')
EXPORTING
worksheet_name = lv_sheet_name
RECEIVING
itab = lr_source.
**********************************************************************
" And import from lr_source
**********************************************************************
lcl_helper=>export_2_table(
EXPORTING
ir_table = ir_table
io_handler = io_handler
ir_source = lr_source
iv_row_from = iv_row_from
io_file = me " for messages only
ir_excel_map = lr_excel_map ).
ro_file = me.
ENDMETHOD.
METHOD import_from_itab.
**********************************************************************
" Generate new file
**********************************************************************
CASE me->mv_extension.
" For more complex reports use XTT
" @see -> https://github.com/bizhuka/xtt/wiki
WHEN mc_extension-xlsx.
TRY.
ro_file = import_from_itab_xlsx_1( " > 7.02 ?
ir_table = ir_table
it_excel_map = it_excel_map ).
CATCH zcx_eui_exception.
ro_file = import_from_itab_xlsx_0( " = 7.02
" iv_sheet_name = `testOk`
ir_table = ir_table
it_excel_map = it_excel_map ).
ENDTRY.
WHEN mc_extension-csv.
" defaults IV_ENCODING, IV_ROW_DELIMITER, IV_FIELD_DELIMITER
ro_file = import_from_itab_csv(
ir_table = ir_table
it_excel_map = it_excel_map ).
WHEN OTHERS.
MESSAGE s011(zeui_message) WITH me->mv_extension INTO sy-msgli.
zcx_eui_exception=>raise_sys_error( ).
ENDCASE.
ENDMETHOD.
METHOD import_from_itab_csv.
DATA lt_fieldcat TYPE lvc_t_fcat.
DATA lv_result TYPE string.
DATA lv_string TYPE string.
DATA lv_char TYPE text10.
FIELD-SYMBOLS <ls_fieldcat> LIKE LINE OF lt_fieldcat.
FIELD-SYMBOLS <lt_table> TYPE STANDARD TABLE.
FIELD-SYMBOLS <ls_row> TYPE any.
FIELD-SYMBOLS <lv_value> TYPE any.
" Fill mapping
lcl_helper=>fill_mapping(
EXPORTING
ir_table = ir_table
ir_excel_map = it_excel_map
IMPORTING
et_fieldcat = lt_fieldcat ).
LOOP AT lt_fieldcat ASSIGNING <ls_fieldcat>.
IF lv_result IS INITIAL.
lv_result = <ls_fieldcat>-reptext.
ELSE.
CONCATENATE lv_result
iv_field_delimiter <ls_fieldcat>-reptext INTO lv_result.
ENDIF.
ENDLOOP.
ASSIGN ir_table->* TO <lt_table>.
LOOP AT <lt_table> ASSIGNING <ls_row>.
" New line
CONCATENATE lv_result iv_row_delimiter INTO lv_result.
LOOP AT lt_fieldcat ASSIGNING <ls_fieldcat>.
" Add delimeter
IF sy-tabix <> 1.
CONCATENATE lv_result iv_field_delimiter INTO lv_result.
ENDIF.
ASSIGN COMPONENT <ls_fieldcat>-fieldname OF STRUCTURE <ls_row> TO <lv_value>.
" TODO other type?
IF <ls_fieldcat>-inttype = cl_abap_typedescr=>typekind_date OR <ls_fieldcat>-inttype = cl_abap_typedescr=>typekind_time.
WRITE <lv_value> TO lv_char.
CONCATENATE lv_result lv_char INTO lv_result.
ELSE.
lv_string = <lv_value>.
" Manage `"`
IF lv_string CS `"`.
REPLACE ALL OCCURRENCES OF `"` IN lv_string WITH `""`.
CONCATENATE `"` lv_string `"` INTO lv_string.
ENDIF.
CONCATENATE lv_result lv_string INTO lv_result.
ENDIF.
ENDLOOP.
ENDLOOP.
ro_file = me->import_from_string(
iv_string = lv_result
iv_encoding = iv_encoding ).
ENDMETHOD.
METHOD import_from_itab_xlsx_0.
"NOTE: No cl_fdt_xl_spreadsheet in ABAP 7.01
DATA lt_fieldcat TYPE lvc_t_fcat.
DATA ls_fieldcat TYPE REF TO lvc_s_fcat.
DATA lt_column TYPE REF TO data. " if_fdt_doc_spreadsheet=>t_column.
DATA ls_column TYPE s_column_fdt. " REF TO if_fdt_doc_spreadsheet=>s_column.
DATA lv_result TYPE xstring.
DATA lv_sheets TYPE string.
FIELD-SYMBOLS <lt_column> TYPE STANDARD TABLE.
FIELD-SYMBOLS <ls_column> TYPE any.
" Fill mapping
lcl_helper=>fill_mapping(
EXPORTING
ir_table = ir_table
ir_excel_map = it_excel_map
IMPORTING
et_fieldcat = lt_fieldcat ).
TRY.
CREATE DATA lt_column TYPE ('IF_FDT_DOC_SPREADSHEET=>T_COLUMN').
ASSIGN lt_column->* TO <lt_column>.
CATCH cx_sy_create_error.
zcx_eui_exception=>raise_dump( iv_message = 'Minimum version 7.02!' ).
ENDTRY.
" List of columns
LOOP AT lt_fieldcat REFERENCE INTO ls_fieldcat WHERE rollname IS NOT INITIAL.
ls_column-id = sy-tabix.
ls_column-name = ls_fieldcat->fieldname.
ls_column-display_name = ls_fieldcat->reptext.
ls_column-is_result = abap_true.
ls_column-type ?= cl_abap_typedescr=>describe_by_name( ls_fieldcat->rollname ).
" And add
APPEND INITIAL LINE TO <lt_column> ASSIGNING <ls_column>.
MOVE-CORRESPONDING ls_column TO <ls_column>.
ENDLOOP.
DATA lo_err TYPE REF TO cx_sy_dyn_call_error.
TRY.
CALL METHOD ('CL_FDT_XL_SPREADSHEET')=>('IF_FDT_DOC_SPREADSHEET~CREATE_DOCUMENT')
EXPORTING
columns = <lt_column>
itab = ir_table
iv_call_type = 1 " 7.02 if_fdt_doc_spreadsheet=>gc_call_dec_table
RECEIVING
xdocument = lv_result.
CATCH cx_sy_dyn_call_error INTO lo_err.
" 7.02
CALL METHOD ('CL_FDT_XL_SPREADSHEET')=>('IF_FDT_DOC_SPREADSHEET~CREATE_DOCUMENT')
EXPORTING
columns = <lt_column>
itab = ir_table
is_dt_excel = abap_false
RECEIVING
xdocument = lv_result.
ENDTRY.
**********************************************************************
" Delete Sheet2 - Sheet4
**********************************************************************
" Load zip archive from XSTRING
DATA lo_zip TYPE REF TO cl_abap_zip.
DATA ls_zip_file TYPE REF TO cl_abap_zip=>t_file.
DATA ls_doc TYPE string.
CREATE OBJECT lo_zip.
lo_zip->load( lv_result ).
zcl_eui_conv=>xml_from_zip(
EXPORTING
io_zip = lo_zip
iv_name = `xl/workbook.xml`
IMPORTING
ev_sdoc = ls_doc ).
" Set sheet name
IF iv_sheet_name IS INITIAL.
lv_sheets = `Sheet1`.
ELSE.
lv_sheets = iv_sheet_name.
ENDIF.
CONCATENATE `<sheets><sheet name= "` lv_sheets `" sheetId="1" r:id="rId1"/></sheets>` INTO lv_sheets.
" Only 1 sheet
REPLACE FIRST OCCURRENCE OF REGEX
`(<sheets>).*(</sheets>)` IN ls_doc WITH
lv_sheets.
IF sy-subrc = 0.
" Update workbook XML
zcl_eui_conv=>xml_to_zip(
io_zip = lo_zip
iv_name = `xl/workbook.xml`
iv_sdoc = ls_doc ).
" Find all sheets
LOOP AT lo_zip->files REFERENCE INTO ls_zip_file WHERE
name CP `xl/worksheets/sheet*.xml` AND name <> `xl/worksheets/sheet1.xml`.
lo_zip->delete(
EXPORTING
name = ls_zip_file->name
EXCEPTIONS
OTHERS = 1 ).
ENDLOOP.
" Return new ZIP
lv_result = lo_zip->save( ).
ENDIF.
ro_file = import_from_xstring( lv_result ).
ENDMETHOD.
METHOD import_from_itab_xlsx_1.
DATA lt_fieldcat TYPE lvc_t_fcat.
DATA lo_salv_ex_res TYPE REF TO cl_salv_ex_result_data_table. " object ?
" Fill mapping
lcl_helper=>fill_mapping(
EXPORTING
ir_table = ir_table
ir_excel_map = it_excel_map
IMPORTING
et_fieldcat = lt_fieldcat ).
TRY.
CALL METHOD ('CL_SALV_EX_UTIL')=>('FACTORY_RESULT_DATA_TABLE')
EXPORTING
r_data = ir_table
t_fieldcatalog = lt_fieldcat
RECEIVING
r_result_data_table = lo_salv_ex_res.
" 7.02
CALL METHOD ('CL_SALV_BS_LEX')=>('EXPORT_FROM_RESULT_DATA_TABLE')
EXPORTING
is_format = 'xlsx' " if_salv_bs_lex_format=>mc_format_xlsx
ir_result_data_table = lo_salv_ex_res
IMPORTING
er_result_file = me->mv_xstring.
CATCH cx_sy_dyn_call_error.
CLEAR me->mv_xstring.
zcx_eui_exception=>raise_sys_error( iv_message = `Old SAP version` ).
ENDTRY.
ro_file = me.
ENDMETHOD.
METHOD int_2_column.
DATA:
lr_col_ind TYPE REF TO lcl_helper=>ts_col_ind,
ls_col_ind TYPE lcl_helper=>ts_col_ind,
lv_module TYPE i,
lv_uccpi TYPE i,
lv_text TYPE sychar02.
" For speed
READ TABLE lcl_helper=>mt_ind_col REFERENCE INTO lr_col_ind
WITH TABLE KEY ind = iv_column.
IF sy-subrc = 0.
rv_column = lr_col_ind->col.
RETURN.
ENDIF.
IF iv_column > 16384 OR iv_column < 1.
MESSAGE s004(zeui_message) WITH iv_column INTO sy-msgli.
zcx_eui_exception=>raise_sys_error( ).
ENDIF.
ls_col_ind-ind = iv_column.
WHILE iv_column GT 0.
lv_module = ( iv_column - 1 ) MOD 26.
lv_uccpi = 65 + lv_module.
iv_column = ( iv_column - lv_module ) / 26.
lv_text = cl_abap_conv_in_ce=>uccpi( lv_uccpi ).
CONCATENATE lv_text rv_column INTO rv_column.
ENDWHILE.
" Add to both tables
ls_col_ind-col = rv_column.
INSERT ls_col_ind INTO TABLE lcl_helper=>mt_col_ind.
INSERT ls_col_ind INTO TABLE lcl_helper=>mt_ind_col.
ENDMETHOD.
ENDCLASS.
| [
4871,
1168,
5097,
62,
36,
10080,
62,
25664,
62,
9399,
6770,
198,
220,
1171,
198,
220,
10639,
1780,
422,
1168,
5097,
62,
36,
10080,
62,
25664,
198,
220,
2457,
198,
220,
2251,
1171,
764,
198,
198,
11377,
2665,
13,
198,
220,
2099,
12,
7742,
82,
9564,
2969,
764,
628,
220,
3858,
25,
198,
220,
220,
220,
347,
43312,
3963,
26136,
62,
6369,
34,
3698,
62,
33767,
11,
198,
220,
220,
220,
220,
366,
7663,
286,
5387,
3084,
198,
220,
220,
220,
220,
2214,
220,
220,
220,
220,
220,
220,
220,
41876,
2214,
3672,
11,
628,
220,
220,
220,
220,
366,
1482,
48109,
329,
24134,
198,
220,
220,
220,
220,
5721,
62,
3672,
220,
41876,
1149,
18,
11,
628,
220,
220,
220,
220,
366,
3125,
11282,
329,
44189,
13,
10347,
307,
5901,
6338,
198,
220,
220,
220,
220,
5721,
62,
9630,
41876,
1312,
11,
628,
220,
220,
220,
220,
366,
18695,
286,
11315,
13,
42674,
7801,
329,
409,
76,
1154,
198,
220,
220,
220,
220,
277,
76,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
628,
220,
220,
220,
220,
366,
42044,
2099,
198,
220,
220,
220,
220,
2429,
62,
4906,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
23578,
3963,
26136,
62,
6369,
34,
3698,
62,
33767,
764,
198,
220,
3858,
25,
198,
220,
220,
220,
26653,
62,
6369,
34,
3698,
62,
33767,
2099,
49053,
9795,
43679,
3963,
26136,
62,
6369,
34,
3698,
62,
33767,
13315,
5550,
38865,
35374,
764,
198,
220,
3858,
25,
198,
220,
220,
220,
347,
43312,
3963,
264,
62,
28665,
62,
16344,
83,
11,
198,
220,
220,
220,
220,
220,
4686,
41876,
277,
28664,
62,
12303,
312,
11,
198,
220,
220,
220,
220,
220,
1438,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
3359,
62,
3672,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
318,
62,
20274,
220,
220,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
2099,
41876,
4526,
37,
5390,
537,
62,
397,
499,
62,
19608,
2367,
6098,
11,
198,
220,
220,
23578,
3963,
264,
62,
28665,
62,
16344,
83,
764,
198,
220,
3858,
25,
198,
220,
220,
220,
256,
62,
28665,
62,
16344,
83,
41876,
49053,
9795,
43679,
3963,
264,
62,
28665,
62,
16344,
83,
13315,
5550,
38865,
35374,
764,
628,
220,
2995,
337,
24805,
2751,
62,
24908,
198,
220,
220,
220,
39133,
198,
220,
220,
220,
220,
220,
1988,
7,
3824,
62,
47690,
8,
2099,
15529,
198,
220,
220,
220,
220,
220,
1988,
7,
3824,
62,
49,
3913,
8,
2099,
19704,
5603,
3483,
55,
198,
220,
220,
220,
220,
220,
1988,
7,
1797,
62,
6369,
34,
3698,
62,
33767,
8,
2099,
26136,
62,
6369,
34,
3698,
62,
33767,
198,
220,
220,
220,
220,
220,
1988,
7,
9399,
62,
24908,
8,
2099,
1006,
284,
327,
55,
62,
13252,
2394,
198,
220,
220,
220,
220,
220,
1988,
7,
33538,
62,
39488,
8,
2099,
1006,
284,
42865,
198,
220,
220,
220,
220,
220,
1988,
7,
7902,
62,
49,
3913,
8,
2099,
1006,
284,
42865,
764,
628,
220,
5050,
7788,
15490,
62,
10468,
62,
2043,
6242,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
3824,
62,
49,
3913,
62,
10913,
2662,
2099,
314,
4277,
352,
198,
220,
220,
220,
220,
220,
5145,
9399,
62,
39,
6981,
39878,
2099,
1006,
284,
25334,
23680,
11902,
198,
220,
220,
220,
220,
220,
5145,
4663,
62,
38148,
2099,
1006,
284,
42865,
198,
220,
220,
220,
220,
220,
5145,
2043,
62,
6369,
34,
3698,
62,
33767,
2099,
1006,
284,
26653,
62,
6369,
34,
3698,
62,
33767,
11902,
198,
220,
220,
220,
8024,
198,
220,
220,
220,
220,
220,
1988,
7,
13252,
62,
25664,
8,
2099,
1006,
284,
1168,
5097,
62,
36,
10080,
62,
25664,
198,
220,
220,
220,
8620,
198,
220,
220,
220,
220,
220,
1168,
34,
55,
62,
36,
10080,
62,
6369,
42006,
2849,
764,
198,
220,
5050,
7788,
15490,
62,
10468,
62,
2043,
6242,
62,
55,
6561,
55,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
3824,
62,
49,
3913,
62,
10913,
2662,
2099,
314,
4277,
352,
198,
220,
220,
220,
220,
220,
5145,
3824,
62,
9693,
36,
2767,
62,
20608,
2099,
19269,
2751,
11902,
198,
220,
220,
220,
220,
220,
5145,
9399,
62,
39,
6981,
39878,
2099,
1006,
284,
25334,
23680,
11902,
198,
220,
220,
220,
220,
220,
5145,
4663,
62,
38148,
2099,
1006,
284,
42865,
198,
220,
220,
220,
220,
220,
5145,
2043,
62,
6369,
34,
3698,
62,
33767,
2099,
1006,
284,
26653,
62,
6369,
34,
3698,
62,
33767,
11902,
198,
220,
220,
220,
8024,
198,
220,
220,
220,
220,
220,
1988,
7,
13252,
62,
25664,
8,
2099,
1006,
284,
1168,
5097,
62,
36,
10080,
62,
25664,
198,
220,
220,
220,
8620,
198,
220,
220,
220,
220,
220,
1168,
34,
55,
62,
36,
10080,
62,
6369,
42006,
2849,
764,
198,
220,
5050,
7788,
15490,
62,
10468,
62,
2043,
6242,
62,
7902,
53,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
3824,
62,
49,
3913,
62,
10913,
2662,
2099,
314,
4277,
352,
198,
220,
220,
220,
220,
220,
5145,
3824,
62,
24181,
3727,
2751,
2099,
9564,
2969,
62,
24181,
3727,
2751,
4277,
1168,
5097,
62,
36,
10080,
62,
10943,
53,
14804,
9655,
62,
24181,
3727,
2751,
12,
48504,
62,
1433,
2538,
198,
220,
220,
220,
220,
220,
5145,
3824,
62,
49,
3913,
62,
35,
3698,
3955,
2043,
1137,
2099,
327,
5188,
10917,
18310,
4277,
7852,
62,
6242,
2969,
62,
38019,
62,
3843,
4146,
30383,
14804,
9419,
62,
43,
37,
198,
220,
220,
220,
220,
220,
5145,
3824,
62,
44603,
62,
35,
3698,
3955,
2043,
1137,
2099,
327,
5188,
10917,
18310,
4277,
7852,
62,
6242,
2969,
62,
38019,
62,
3843,
4146,
30383,
14804,
39,
1581,
14887,
35830,
1847,
62,
5603,
33,
198,
220,
220,
220,
220,
220,
5145,
9399,
62,
39,
6981,
39878,
2099,
1006,
284,
25334,
23680,
11902,
198,
220,
220,
220,
220,
220,
5145,
4663,
62,
38148,
2099,
1006,
284,
42865,
198,
220,
220,
220,
220,
220,
5145,
2043,
62,
6369,
34,
3698,
62,
33767,
2099,
1006,
284,
26653,
62,
6369,
34,
3698,
62,
33767,
11902,
198,
220,
220,
220,
8024,
198,
220,
220,
220,
220,
220,
1988
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
*---------------------------------------------------------------------*
* program for: VIEWPROC_ZDOP_MV_EMPDET2
* generation date: 30.12.2021 at 15:43:33
* view maintenance generator version: #001407#
*---------------------------------------------------------------------*
FUNCTION VIEWPROC_ZDOP_MV_EMPDET2 .
*----------------------------------------------------------------------*
* Initialization: set field-symbols etc. *
*----------------------------------------------------------------------*
IF LAST_VIEW_INFO NE VIEW_NAME.
ASSIGN ZDOP_MV_EMPDET2 TO <TABLE1>.
ASSIGN *ZDOP_MV_EMPDET2 TO <INITIAL>.
ASSIGN STATUS_ZDOP_MV_EMPDET2 TO <STATUS>.
PERFORM INITIALISIEREN.
ENDIF.
PERFORM JUSTIFY_ACTION_MODE.
MOVE: VIEW_ACTION TO MAINT_MODE,
CORR_NUMBER TO CORR_NBR.
*----------------------------------------------------------------------*
* Get data from database *
*----------------------------------------------------------------------*
IF FCODE EQ READ OR FCODE EQ READ_AND_EDIT.
PERFORM PREPARE_READ_REQUEST.
IF X_HEADER-FRM_RP_GET NE SPACE.
PERFORM (X_HEADER-FRM_RP_GET) IN PROGRAM.
ELSE.
PERFORM GET_DATA_ZDOP_MV_EMPDET2.
ENDIF.
IF FCODE EQ READ_AND_EDIT. FCODE = EDIT. ENDIF.
ENDIF.
CASE FCODE.
WHEN EDIT. " Edit read data
PERFORM CALL_DYNPRO.
PERFORM CHECK_UPD.
*....................................................................*
WHEN SAVE. " Write data into database
PERFORM PREPARE_SAVING.
IF <STATUS>-UPD_FLAG NE SPACE.
IF X_HEADER-FRM_RP_UPD NE SPACE.
PERFORM (X_HEADER-FRM_RP_UPD) IN PROGRAM.
ELSE.
IF SY-SUBRC EQ 0.
PERFORM DB_UPD_ZDOP_MV_EMPDET2.
ENDIF.
ENDIF.
PERFORM AFTER_SAVING.
ENDIF.
*....................................................................*
WHEN RESET_LIST. " Refresh all marked entries of EXTRACT from db
PERFORM RESET_ENTRIES USING LIST_BILD.
*....................................................................*
WHEN RESET_ENTRY. " Refresh single entry from database
PERFORM RESET_ENTRIES USING DETAIL_BILD.
*.......................................................................
ENDCASE.
MOVE STATUS_ZDOP_MV_EMPDET2-UPD_FLAG TO UPDATE_REQUIRED.
ENDFUNCTION.
| [
9,
10097,
30934,
9,
198,
9,
220,
220,
220,
1430,
329,
25,
220,
220,
49880,
4805,
4503,
62,
57,
35,
3185,
62,
44,
53,
62,
3620,
5760,
2767,
17,
198,
9,
220,
220,
5270,
3128,
25,
1542,
13,
1065,
13,
1238,
2481,
379,
1315,
25,
3559,
25,
2091,
198,
9,
220,
220,
1570,
9262,
17301,
2196,
25,
1303,
405,
1415,
2998,
2,
198,
9,
10097,
30934,
9,
198,
42296,
4177,
2849,
49880,
4805,
4503,
62,
57,
35,
3185,
62,
44,
53,
62,
3620,
5760,
2767,
17,
220,
220,
220,
220,
220,
764,
198,
9,
10097,
23031,
9,
198,
9,
20768,
1634,
25,
900,
2214,
12,
1837,
2022,
10220,
3503,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
198,
9,
10097,
23031,
9,
198,
220,
220,
16876,
41894,
62,
28206,
62,
10778,
10635,
49880,
62,
20608,
13,
198,
10705,
16284,
1168,
35,
3185,
62,
44,
53,
62,
3620,
5760,
2767,
17,
5390,
1279,
38148,
16,
28401,
198,
10705,
16284,
1635,
57,
35,
3185,
62,
44,
53,
62,
3620,
5760,
2767,
17,
5390,
1279,
1268,
2043,
12576,
28401,
198,
10705,
16284,
15486,
2937,
62,
57,
35,
3185,
62,
44,
53,
62,
3620,
5760,
2767,
17,
5390,
1279,
35744,
2937,
28401,
198,
220,
220,
220,
220,
19878,
21389,
3268,
2043,
12576,
1797,
38311,
1677,
13,
198,
220,
220,
23578,
5064,
13,
198,
220,
220,
19878,
21389,
25848,
5064,
56,
62,
44710,
62,
49058,
13,
198,
220,
220,
13070,
6089,
25,
49880,
62,
44710,
5390,
8779,
12394,
62,
49058,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
23929,
49,
62,
41359,
13246,
5390,
23929,
49,
62,
45,
11473,
13,
198,
198,
9,
10097,
23031,
9,
198,
9,
3497,
1366,
422,
6831,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
198,
9,
10097,
23031,
9,
198,
220,
16876,
10029,
16820,
36529,
20832,
6375,
10029,
16820,
36529,
20832,
62,
6981,
62,
24706,
13,
198,
220,
220,
220,
19878,
21389,
22814,
47,
12203,
62,
15675,
62,
2200,
35780,
13,
198,
220,
220,
220,
16876,
1395,
62,
37682,
1137,
12,
10913,
44,
62,
20031,
62,
18851,
10635,
37253,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19878,
21389,
357,
55,
62,
37682,
1137,
12,
10913,
44,
62,
20031,
62,
18851,
8,
3268,
46805,
13,
198,
220,
220,
220,
17852,
5188,
13,
198,
18973,
21389,
17151,
62,
26947,
62,
57,
35,
3185,
62,
44,
53,
62,
3620,
5760,
2767,
17,
13,
198,
220,
220,
220,
23578,
5064,
13,
198,
220,
220,
220,
16876,
10029,
16820,
36529,
20832,
62,
6981,
62,
24706,
13,
10029,
16820,
796,
48483,
13,
23578,
5064,
13,
198,
220,
23578,
5064,
13,
628,
220,
42001,
10029,
16820,
13,
198,
220,
220,
220,
42099,
220,
48483,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
5312,
1100,
1366,
198,
220,
220,
220,
220,
220,
19878,
21389,
42815,
62,
35,
40760,
31190,
13,
198,
220,
220,
220,
220,
220,
19878,
21389,
5870,
25171,
62,
52,
5760,
13,
198,
9,
23193,
1106,
9,
628,
220,
220,
220,
42099,
14719,
6089,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
19430,
1366,
656,
6831,
198,
220,
220,
220,
220,
220,
19878,
21389,
22814,
47,
12203,
62,
4090,
53,
2751,
13,
198,
220,
220,
220,
220,
220,
16876,
1279,
35744,
2937,
29,
12,
52,
5760,
62,
38948,
10635,
37253,
13,
198,
220,
220,
220,
220,
220,
220,
220,
16876,
1395,
62,
37682,
1137,
12,
10913,
44,
62,
20031,
62,
52,
5760,
10635,
37253,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19878,
21389,
357,
55,
62,
37682,
1137,
12,
10913,
44,
62,
20031,
62,
52,
5760,
8,
3268,
46805,
13,
198,
220,
220,
220,
220,
220,
220,
220,
17852,
5188,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16876,
19704,
12,
50,
10526,
7397,
36529,
657,
13,
198,
18973,
21389,
20137,
62,
52,
5760,
62,
57,
35,
3185,
62,
44,
53,
62,
3620,
5760,
2767,
17,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
5064,
13,
198,
220,
220,
220,
220,
220,
220,
220,
23578,
5064,
13,
198,
220,
220,
220,
220,
220,
220,
220,
19878,
21389,
36050,
62,
4090,
53,
2751,
13,
198,
220,
220,
220,
220,
220,
23578,
5064,
13,
198,
9,
23193,
1106,
9,
628,
220,
220,
220,
42099,
15731,
2767,
62,
45849,
13,
220,
220,
220,
220,
366,
22539,
477,
7498,
12784,
286,
7788,
5446,
10659,
422,
20613,
198,
220,
220,
220,
220,
220,
19878,
21389,
15731,
2767,
62,
3525,
7112,
1546,
1294,
2751,
39498,
62,
3483,
11163,
13,
198,
9,
23193,
1106,
9,
628,
220,
220,
220,
42099,
15731,
2767,
62,
3525,
18276,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
22539,
2060,
5726,
422,
6831,
198,
220,
220,
220,
220,
220,
19878,
21389,
15731,
2767,
62,
3525,
7112,
1546,
1294,
2751,
360,
20892,
4146,
62,
3483,
11163,
13,
198,
9,
23193,
25780,
198,
220,
23578,
34,
11159,
13,
198,
11770,
6089,
15486,
2937,
62,
57,
35,
3185,
62,
44,
53,
62,
3620,
5760,
2767,
17,
12,
52,
5760,
62,
38948,
5390,
35717,
62,
2200,
10917,
37819,
13,
198,
1677,
8068,
4944,
4177,
2849,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_abapgit_gui_chunk_lib DEFINITION
PUBLIC
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
TYPES:
BEGIN OF ty_event_signature,
method TYPE string,
name TYPE string,
END OF ty_event_signature.
CLASS-METHODS class_constructor.
CLASS-METHODS render_error
IMPORTING
!ix_error TYPE REF TO zcx_abapgit_exception OPTIONAL
!iv_error TYPE string OPTIONAL
!iv_extra_style TYPE string OPTIONAL
RETURNING
VALUE(ro_html) TYPE REF TO zcl_abapgit_html .
CLASS-METHODS render_repo_top
IMPORTING
!io_repo TYPE REF TO zcl_abapgit_repo
!iv_show_package TYPE abap_bool DEFAULT abap_true
!iv_show_branch TYPE abap_bool DEFAULT abap_true
!iv_interactive_branch TYPE abap_bool DEFAULT abap_false
!iv_branch TYPE string OPTIONAL
!io_news TYPE REF TO zcl_abapgit_news OPTIONAL
RETURNING
VALUE(ro_html) TYPE REF TO zcl_abapgit_html
RAISING
zcx_abapgit_exception .
CLASS-METHODS render_item_state
IMPORTING
!iv_lstate TYPE char1
!iv_rstate TYPE char1
RETURNING
VALUE(rv_html) TYPE string .
CLASS-METHODS render_js_error_banner
RETURNING
VALUE(ro_html) TYPE REF TO zcl_abapgit_html
RAISING
zcx_abapgit_exception .
CLASS-METHODS render_news
IMPORTING
!io_news TYPE REF TO zcl_abapgit_news
RETURNING
VALUE(ro_html) TYPE REF TO zcl_abapgit_html
RAISING
zcx_abapgit_exception .
CLASS-METHODS render_commit_popup
IMPORTING
iv_content TYPE csequence
iv_id TYPE csequence
RETURNING
VALUE(ro_html) TYPE REF TO zcl_abapgit_html
RAISING
zcx_abapgit_exception .
CLASS-METHODS render_error_message_box
IMPORTING
ix_error TYPE REF TO zcx_abapgit_exception
RETURNING
VALUE(ro_html) TYPE REF TO zcl_abapgit_html.
CLASS-METHODS parse_change_order_by
IMPORTING
iv_query_str TYPE clike
RETURNING
VALUE(rv_order_by) TYPE string.
CLASS-METHODS parse_direction
IMPORTING
iv_query_str TYPE clike
RETURNING
VALUE(rv_order_descending) TYPE abap_bool.
CLASS-METHODS render_order_by_header_cells
IMPORTING
it_col_spec TYPE zif_abapgit_definitions=>tty_col_spec
iv_order_by TYPE string
iv_order_descending TYPE abap_bool
RETURNING
VALUE(ro_html) TYPE REF TO zcl_abapgit_html.
CLASS-METHODS render_warning_banner
IMPORTING
iv_text TYPE string
RETURNING
VALUE(ro_html) TYPE REF TO zcl_abapgit_html.
CLASS-METHODS render_infopanel
IMPORTING
iv_div_id TYPE string
iv_title TYPE string
iv_hide TYPE abap_bool DEFAULT abap_true
iv_hint TYPE string OPTIONAL
iv_scrollable TYPE abap_bool DEFAULT abap_true
io_content TYPE REF TO zif_abapgit_html
RETURNING
VALUE(ro_html) TYPE REF TO zcl_abapgit_html
RAISING
zcx_abapgit_exception .
CLASS-METHODS render_event_as_form
IMPORTING
is_event TYPE ty_event_signature
RETURNING
VALUE(ro_html) TYPE REF TO zcl_abapgit_html.
CLASS-METHODS render_repo_palette
IMPORTING
iv_action TYPE string
RETURNING
VALUE(ri_html) TYPE REF TO zif_abapgit_html
RAISING
zcx_abapgit_exception .
CLASS-METHODS advanced_submenu
RETURNING VALUE(ro_menu) TYPE REF TO zcl_abapgit_html_toolbar.
CLASS-METHODS help_submenu
RETURNING VALUE(ro_menu) TYPE REF TO zcl_abapgit_html_toolbar.
PROTECTED SECTION.
PRIVATE SECTION.
CLASS-DATA gv_time_zone TYPE timezone.
CLASS-METHODS render_branch_span
IMPORTING
!iv_branch TYPE string
!io_repo TYPE REF TO zcl_abapgit_repo_online
!iv_interactive TYPE abap_bool
RETURNING
VALUE(ro_html) TYPE REF TO zcl_abapgit_html
RAISING
zcx_abapgit_exception .
CLASS-METHODS get_t100_text
IMPORTING
iv_msgid TYPE scx_t100key-msgid
iv_msgno TYPE scx_t100key-msgno
RETURNING
VALUE(rv_text) TYPE string.
CLASS-METHODS normalize_program_name
IMPORTING
iv_program_name TYPE sy-repid
RETURNING
VALUE(rv_normalized_program_name) TYPE string.
ENDCLASS.
CLASS ZCL_ABAPGIT_GUI_CHUNK_LIB IMPLEMENTATION.
METHOD advanced_submenu.
CREATE OBJECT ro_menu.
ro_menu->add(
iv_txt = 'Database util'
iv_act = zif_abapgit_definitions=>c_action-go_db
)->add(
iv_txt = 'Package to zip'
iv_act = zif_abapgit_definitions=>c_action-zip_package
)->add(
iv_txt = 'Transport to zip'
iv_act = zif_abapgit_definitions=>c_action-zip_transport
)->add(
iv_txt = 'Object to files'
iv_act = zif_abapgit_definitions=>c_action-zip_object
)->add(
iv_txt = 'Test changed by'
iv_act = zif_abapgit_definitions=>c_action-changed_by
)->add(
iv_txt = 'Debug info'
iv_act = zif_abapgit_definitions=>c_action-go_debuginfo
)->add(
iv_txt = 'Settings'
iv_act = zif_abapgit_definitions=>c_action-go_settings ).
ENDMETHOD.
METHOD class_constructor.
CALL FUNCTION 'GET_SYSTEM_TIMEZONE'
IMPORTING
timezone = gv_time_zone
EXCEPTIONS
customizing_missing = 1
OTHERS = 2.
ASSERT sy-subrc = 0.
ENDMETHOD.
METHOD get_t100_text.
SELECT SINGLE text
FROM t100
INTO rv_text
WHERE arbgb = iv_msgid
AND msgnr = iv_msgno
AND sprsl = sy-langu.
ENDMETHOD.
METHOD help_submenu.
CREATE OBJECT ro_menu.
ro_menu->add(
iv_txt = 'Tutorial'
iv_act = zif_abapgit_definitions=>c_action-go_tutorial
)->add(
iv_txt = 'Documentation'
iv_act = zif_abapgit_definitions=>c_action-documentation
)->add(
iv_txt = 'Explore'
iv_act = zif_abapgit_definitions=>c_action-go_explore
)->add(
iv_txt = 'Changelog'
iv_act = zif_abapgit_definitions=>c_action-changelog ).
ENDMETHOD.
METHOD normalize_program_name.
rv_normalized_program_name = substring_before(
val = iv_program_name
regex = `(=+CP)?$` ).
ENDMETHOD.
METHOD parse_change_order_by.
FIND FIRST OCCURRENCE OF REGEX `orderBy=(.*)`
IN iv_query_str
SUBMATCHES rv_order_by.
rv_order_by = condense( rv_order_by ).
ENDMETHOD.
METHOD parse_direction.
DATA: lv_direction TYPE string.
FIND FIRST OCCURRENCE OF REGEX `direction=(.*)`
IN iv_query_str
SUBMATCHES lv_direction.
rv_order_descending = boolc( condense( lv_direction ) = 'DESCENDING' ).
ENDMETHOD.
METHOD render_branch_span.
DATA: lv_text TYPE string,
lv_class TYPE string.
lv_text = zcl_abapgit_git_branch_list=>get_display_name( iv_branch ).
IF zcl_abapgit_git_branch_list=>get_type( iv_branch ) = zif_abapgit_definitions=>c_git_branch_type-branch.
lv_class = 'branch branch_branch'.
ELSE.
lv_class = 'branch'.
ENDIF.
CREATE OBJECT ro_html.
ro_html->add( |<span class="{ lv_class }">| ).
ro_html->add_icon( iv_name = 'code-branch/grey70'
iv_hint = 'Current branch' ).
IF iv_interactive = abap_true.
ro_html->add_a( iv_act = |{ zif_abapgit_definitions=>c_action-git_branch_switch }?{ io_repo->get_key( ) }|
iv_txt = lv_text ).
ELSE.
ro_html->add( lv_text ).
ENDIF.
ro_html->add( '</span>' ).
ENDMETHOD.
METHOD render_commit_popup.
CREATE OBJECT ro_html.
ro_html->add( '<ul class="hotkeys">' ).
ro_html->add( |<li>| && |<span>{ iv_content }</span>| && |</li>| ).
ro_html->add( '</ul>' ).
ro_html = render_infopanel(
iv_div_id = |{ iv_id }|
iv_title = 'Commit details'
iv_hide = abap_true
iv_scrollable = abap_false
io_content = ro_html ).
ENDMETHOD.
METHOD render_error.
DATA lv_error TYPE string.
DATA lv_class TYPE string VALUE 'panel error center'.
IF iv_extra_style IS NOT INITIAL.
lv_class = lv_class && ` ` && iv_extra_style.
ENDIF.
CREATE OBJECT ro_html.
IF ix_error IS BOUND.
lv_error = ix_error->get_text( ).
ELSE.
lv_error = iv_error.
ENDIF.
ro_html->add( |<div class="{ lv_class }">| ).
ro_html->add( |{ zcl_abapgit_html=>icon( 'exclamation-circle/red' ) } Error: { lv_error }| ).
ro_html->add( '</div>' ).
ENDMETHOD.
METHOD render_error_message_box.
DATA:
lv_error_text TYPE string,
lv_longtext TYPE string,
lv_program_name TYPE sy-repid,
lv_title TYPE string,
lv_text TYPE string.
CREATE OBJECT ro_html.
lv_error_text = ix_error->get_text( ).
lv_longtext = ix_error->get_longtext( abap_true ).
REPLACE FIRST OCCURRENCE OF REGEX |(<br>{ zcl_abapgit_message_helper=>gc_section_text-cause }<br>)|
IN lv_longtext
WITH |<h3>$1</h3>|.
REPLACE FIRST OCCURRENCE OF REGEX |(<br>{ zcl_abapgit_message_helper=>gc_section_text-system_response }<br>)|
IN lv_longtext
WITH |<h3>$1</h3>|.
REPLACE FIRST OCCURRENCE OF REGEX |(<br>{ zcl_abapgit_message_helper=>gc_section_text-what_to_do }<br>)|
IN lv_longtext
WITH |<h3>$1</h3>|.
REPLACE FIRST OCCURRENCE OF REGEX |(<br>{ zcl_abapgit_message_helper=>gc_section_text-sys_admin }<br>)|
IN lv_longtext
WITH |<h3>$1</h3>|.
ro_html->add( |<div id="message" class="message-panel">| ).
ro_html->add( |{ lv_error_text }| ).
ro_html->add( |<div class="float-right">| ).
ro_html->add_a(
iv_txt = `❌`
iv_act = `toggleDisplay('message')`
iv_class = `close-btn`
iv_typ = zif_abapgit_html=>c_action_type-onclick ).
ro_html->add( |</div>| ).
ro_html->add( |<div class="float-right message-panel-commands">| ).
IF ix_error->if_t100_message~t100key-msgid IS NOT INITIAL.
lv_title = get_t100_text(
iv_msgid = ix_error->if_t100_message~t100key-msgid
iv_msgno = ix_error->if_t100_message~t100key-msgno ).
lv_text = |Message ({ ix_error->if_t100_message~t100key-msgid }/{ ix_error->if_t100_message~t100key-msgno })|.
ro_html->add_a(
iv_txt = lv_text
iv_typ = zif_abapgit_html=>c_action_type-sapevent
iv_act = zif_abapgit_definitions=>c_action-goto_message
iv_title = lv_title
iv_id = `a_goto_message` ).
ENDIF.
ix_error->get_source_position( IMPORTING program_name = lv_program_name ).
lv_title = normalize_program_name( lv_program_name ).
ro_html->add_a(
iv_txt = `Goto source`
iv_act = zif_abapgit_definitions=>c_action-goto_source
iv_typ = zif_abapgit_html=>c_action_type-sapevent
iv_title = lv_title
iv_id = `a_goto_source` ).
ro_html->add_a(
iv_txt = `Callstack`
iv_act = zif_abapgit_definitions=>c_action-show_callstack
iv_typ = zif_abapgit_html=>c_action_type-sapevent
iv_id = `a_callstack` ).
ro_html->add( |</div>| ).
ro_html->add( |<div class="message-panel-commands">| ).
ro_html->add( |{ lv_longtext }| ).
ro_html->add( |</div>| ).
ro_html->add( |</div>| ).
ENDMETHOD.
METHOD render_event_as_form.
CREATE OBJECT ro_html.
ro_html->add(
|<form id='form_{ is_event-name }' method={ is_event-method } action='sapevent:{ is_event-name }'></form>| ).
ENDMETHOD.
METHOD render_infopanel.
DATA lv_display TYPE string.
DATA lv_class TYPE string.
CREATE OBJECT ro_html.
IF iv_hide = abap_true. " Initially hide
lv_display = 'display:none'.
ENDIF.
lv_class = 'info-panel'.
IF iv_scrollable = abap_false. " Initially hide
lv_class = lv_class && ' info-panel-fixed'.
ENDIF.
ro_html->add( |<div id="{ iv_div_id }" class="{ lv_class }" style="{ lv_display }">| ).
ro_html->add( |<div class="info-title">{ iv_title }|
&& '<div class="float-right">'
&& zcl_abapgit_html=>a(
iv_txt = '❌'
iv_typ = zif_abapgit_html=>c_action_type-onclick
iv_act = |toggleDisplay('{ iv_div_id }')|
iv_class = 'close-btn' )
&& '</div></div>' ).
IF iv_hint IS NOT INITIAL.
ro_html->add( '<div class="info-hint">'
&& zcl_abapgit_html=>icon( iv_name = 'exclamation-triangle'
iv_class = 'pad-right' )
&& iv_hint
&& '</div>' ).
ENDIF.
ro_html->add( |<div class="info-list">| ).
ro_html->add( io_content ).
ro_html->add( '</div>' ).
ro_html->add( '</div>' ).
ENDMETHOD.
METHOD render_item_state.
DATA: lv_system TYPE string.
FIELD-SYMBOLS <lv_state> TYPE char1.
rv_html = '<span class="state-block">'.
DO 2 TIMES.
CASE sy-index.
WHEN 1.
ASSIGN iv_lstate TO <lv_state>.
lv_system = 'Local:'.
WHEN 2.
ASSIGN iv_rstate TO <lv_state>.
lv_system = 'Remote:'.
ENDCASE.
CASE <lv_state>.
WHEN zif_abapgit_definitions=>c_state-unchanged. "None or unchanged
IF iv_lstate = zif_abapgit_definitions=>c_state-added OR iv_rstate = zif_abapgit_definitions=>c_state-added.
rv_html = rv_html && |<span class="none" title="{ lv_system } Not exists">X</span>|.
ELSE.
rv_html = rv_html && |<span class="none" title="{ lv_system } No changes"> </span>|.
ENDIF.
WHEN zif_abapgit_definitions=>c_state-modified. "Changed
rv_html = rv_html && |<span class="changed" title="{ lv_system } Modified">M</span>|.
WHEN zif_abapgit_definitions=>c_state-added. "Added new
rv_html = rv_html && |<span class="added" title="{ lv_system } Added new">A</span>|.
WHEN zif_abapgit_definitions=>c_state-mixed. "Multiple changes (multifile)
rv_html = rv_html && |<span class="mixed" title="{ lv_system } Multiple changes">■</span>|.
WHEN zif_abapgit_definitions=>c_state-deleted. "Deleted
rv_html = rv_html && |<span class="deleted" title="{ lv_system } Deleted">D</span>|.
ENDCASE.
ENDDO.
rv_html = rv_html && '</span>'.
ENDMETHOD.
METHOD render_js_error_banner.
CREATE OBJECT ro_html.
ro_html->add( '<div id="js-error-banner" class="dummydiv error">' ).
ro_html->add( |{ zcl_abapgit_html=>icon( 'exclamation-triangle/red' ) }| &&
' If this does not disappear soon,' &&
' then there is a JS init error, please log an issue' ).
ro_html->add( '</div>' ).
ENDMETHOD.
METHOD render_news.
DATA: lv_text TYPE string,
lv_hint TYPE string,
lt_log TYPE zcl_abapgit_news=>tt_log.
FIELD-SYMBOLS: <ls_line> LIKE LINE OF lt_log.
CREATE OBJECT ro_html.
IF io_news IS NOT BOUND OR io_news->has_news( ) = abap_false.
RETURN.
ENDIF.
lt_log = io_news->get_log( ).
" Render news
LOOP AT lt_log ASSIGNING <ls_line>.
IF <ls_line>-is_header = abap_true.
IF <ls_line>-pos_to_cur > 0.
lv_text = <ls_line>-text && '<span class="version-marker update">update</span>'.
ELSEIF <ls_line>-pos_to_cur = 0.
lv_text = <ls_line>-text && '<span class="version-marker">current</span>'.
ELSE. " < 0
lv_text = <ls_line>-text.
ENDIF.
ro_html->add( |<h1>{ lv_text }</h1>| ).
ELSE.
ro_html->add( |<li>{ <ls_line>-text }</li>| ).
ENDIF.
ENDLOOP.
" Wrap
IF io_news->has_important( ) = abap_true.
lv_hint = 'Please note changes marked with "!"'.
ENDIF.
ro_html = render_infopanel(
iv_div_id = 'news'
iv_title = 'Announcement of the latest changes'
iv_hint = lv_hint
iv_hide = boolc( io_news->has_unseen( ) = abap_false )
io_content = ro_html ).
ENDMETHOD.
METHOD render_order_by_header_cells.
DATA:
lt_colspec TYPE zif_abapgit_definitions=>tty_col_spec,
lv_tmp TYPE string,
lv_disp_name TYPE string.
FIELD-SYMBOLS <ls_col> LIKE LINE OF lt_colspec.
CREATE OBJECT ro_html.
LOOP AT it_col_spec ASSIGNING <ls_col>.
" e.g. <th class="ro-detail">Created at [{ gv_time_zone }]</th>
lv_tmp = '<th'.
IF <ls_col>-css_class IS NOT INITIAL.
lv_tmp = lv_tmp && | class="{ <ls_col>-css_class }"|.
ENDIF.
lv_tmp = lv_tmp && '>'.
IF <ls_col>-display_name IS NOT INITIAL.
lv_disp_name = <ls_col>-display_name.
IF <ls_col>-add_tz = abap_true.
lv_disp_name = lv_disp_name && | [{ gv_time_zone }]|.
ENDIF.
IF <ls_col>-tech_name = iv_order_by.
IF iv_order_descending = abap_true.
lv_tmp = lv_tmp && zcl_abapgit_html=>a(
iv_txt = lv_disp_name
iv_act = |{ zif_abapgit_definitions=>c_action-direction }?direction=ASCENDING|
iv_title = <ls_col>-title ).
ELSE.
lv_tmp = lv_tmp && zcl_abapgit_html=>a(
iv_txt = lv_disp_name
iv_act = |{ zif_abapgit_definitions=>c_action-direction }?direction=DESCENDING|
iv_title = <ls_col>-title ).
ENDIF.
ELSE.
lv_tmp = lv_tmp && zcl_abapgit_html=>a(
iv_txt = lv_disp_name
iv_act = |{ zif_abapgit_definitions=>c_action-change_order_by }?orderBy={ <ls_col>-tech_name }|
iv_title = <ls_col>-title ).
ENDIF.
ENDIF.
IF <ls_col>-tech_name = iv_order_by
AND iv_order_by IS NOT INITIAL.
IF iv_order_descending = abap_true.
lv_tmp = lv_tmp && | ▴|. " arrow up
ELSE.
lv_tmp = lv_tmp && | ▾|. " arrow down
ENDIF.
ENDIF.
lv_tmp = lv_tmp && '</th>'.
ro_html->add( lv_tmp ).
ENDLOOP.
ENDMETHOD.
METHOD render_repo_palette.
DATA li_repo_srv TYPE REF TO zif_abapgit_repo_srv.
DATA lt_repo_list TYPE zif_abapgit_persistence=>tt_repo.
DATA lv_repo_json TYPE string.
DATA lv_size TYPE i.
DATA lo_repo TYPE REF TO zcl_abapgit_repo.
FIELD-SYMBOLS <ls_repo> LIKE LINE OF lt_repo_list.
li_repo_srv = zcl_abapgit_repo_srv=>get_instance( ).
lt_repo_list = zcl_abapgit_persist_factory=>get_repo( )->list( ).
lv_size = lines( lt_repo_list ).
ri_html = zcl_abapgit_html=>create( ).
ri_html->add( 'var repoCatalog = [' ). " Maybe separate this into another method if needed in more places
LOOP AT lt_repo_list ASSIGNING <ls_repo>.
lo_repo = li_repo_srv->get( <ls_repo>-key ). " inefficient
lv_repo_json = |\{ key: "{ <ls_repo>-key
}", isOffline: "{ <ls_repo>-offline
}", displayName: "{ lo_repo->get_name( ) }" \}|.
IF sy-tabix < lv_size.
lv_repo_json = lv_repo_json && ','.
ENDIF.
ri_html->add( lv_repo_json ).
ENDLOOP.
ri_html->add( '];' ).
ri_html->add( |var gGoRepoPalette = new CommandPalette(createRepoCatalogEnumerator(repoCatalog, "{
iv_action }"), \{| ).
ri_html->add( ' toggleKey: "F2",' ).
ri_html->add( ' hotkeyDescription: "Go to repo ..."' ).
ri_html->add( '});' ).
ENDMETHOD.
METHOD render_repo_top.
DATA: lo_repo_online TYPE REF TO zcl_abapgit_repo_online,
lo_pback TYPE REF TO zcl_abapgit_persist_background,
lv_hint TYPE string,
lv_icon TYPE string,
lv_package_jump_data TYPE string.
CREATE OBJECT ro_html.
CREATE OBJECT lo_pback.
IF io_repo->is_offline( ) = abap_true.
lv_icon = 'plug/darkgrey' ##NO_TEXT.
lv_hint = 'Offline repository' ##NO_TEXT.
ELSE.
lv_icon = 'cloud-upload-alt/blue' ##NO_TEXT.
lv_hint = 'On-line repository' ##NO_TEXT.
ENDIF.
ro_html->add( '<table class="w100"><tr>' ).
ro_html->add( '<td class="repo_name">' ).
" Repo type and name
ro_html->add_icon( iv_name = lv_icon
iv_hint = lv_hint ).
ro_html->add( |<span class="name">{ io_repo->get_name( ) }</span>| ).
IF io_repo->is_offline( ) = abap_false.
lo_repo_online ?= io_repo.
ro_html->add_a( iv_txt = lo_repo_online->get_url( )
iv_act = |{ zif_abapgit_definitions=>c_action-url }?|
&& |{ lo_repo_online->get_url( ) }|
iv_class = |url| ).
ENDIF.
" News
IF io_news IS BOUND AND io_news->has_news( ) = abap_true.
IF io_news->has_updates( ) = abap_true.
lv_icon = 'arrow-circle-up/warning'.
ELSE.
lv_icon = 'arrow-circle-up/grey80'.
ENDIF.
ro_html->add_a( iv_act = |toggleDisplay('news')|
iv_typ = zif_abapgit_html=>c_action_type-onclick
iv_txt = zcl_abapgit_html=>icon( iv_name = lv_icon
iv_class = 'pad-sides'
iv_hint = 'Display changelog' ) ).
ENDIF.
ro_html->add( '</td>' ).
ro_html->add( '<td class="repo_attr right">' ).
" Fav
IF abap_true = zcl_abapgit_persistence_user=>get_instance( )->is_favorite_repo( io_repo->get_key( ) ).
lv_icon = 'star/blue' ##NO_TEXT.
ELSE.
lv_icon = 'star/grey' ##NO_TEXT.
ENDIF.
ro_html->add_a( iv_act = |{ zif_abapgit_definitions=>c_action-repo_toggle_fav }?{ io_repo->get_key( ) }|
iv_txt = zcl_abapgit_html=>icon( iv_name = lv_icon
iv_class = 'pad-sides'
iv_hint = 'Click to toggle favorite' ) ).
" BG
IF lo_pback->exists( io_repo->get_key( ) ) = abap_true.
ro_html->add( '<span class="bg_marker" title="background">BG</span>' ).
ENDIF.
" Write protect
IF io_repo->get_local_settings( )-write_protected = abap_true.
ro_html->add_icon( iv_name = 'lock/grey70'
iv_hint = 'Locked from pulls' ).
ENDIF.
" Branch
IF io_repo->is_offline( ) = abap_false.
lo_repo_online ?= io_repo.
IF iv_show_branch = abap_true.
IF iv_branch IS INITIAL.
ro_html->add( render_branch_span( iv_branch = lo_repo_online->get_branch_name( )
io_repo = lo_repo_online
iv_interactive = iv_interactive_branch ) ).
ELSE.
ro_html->add( render_branch_span( iv_branch = iv_branch
io_repo = lo_repo_online
iv_interactive = iv_interactive_branch ) ).
ENDIF.
ENDIF.
ENDIF.
" Package
IF iv_show_package = abap_true.
ro_html->add_icon( iv_name = 'box/grey70'
iv_hint = 'SAP package' ).
ro_html->add( '<span>' ).
lv_package_jump_data = zcl_abapgit_html_action_utils=>jump_encode(
iv_obj_type = 'DEVC'
iv_obj_name = io_repo->get_package( ) ).
ro_html->add_a( iv_txt = io_repo->get_package( )
iv_act = |{ zif_abapgit_definitions=>c_action-jump }?{ lv_package_jump_data }| ).
ro_html->add( '</span>' ).
ENDIF.
ro_html->add( '</td>' ).
ro_html->add( '</tr></table>' ).
ENDMETHOD.
METHOD render_warning_banner.
CREATE OBJECT ro_html.
ro_html->add( '<div class="dummydiv warning">' ).
ro_html->add( |{ zcl_abapgit_html=>icon( 'exclamation-triangle/yellow' ) }| && | { iv_text }| ).
ro_html->add( '</div>' ).
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
48317,
62,
354,
2954,
62,
8019,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
1259,
62,
15596,
62,
12683,
1300,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2446,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
220,
1259,
62,
15596,
62,
12683,
1300,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
1398,
62,
41571,
273,
13,
198,
220,
220,
220,
42715,
12,
49273,
50,
8543,
62,
18224,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
844,
62,
18224,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
18224,
220,
220,
220,
220,
220,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
26086,
62,
7635,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
305,
62,
6494,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
6494,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
8543,
62,
260,
7501,
62,
4852,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
952,
62,
260,
7501,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
260,
7501,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
12860,
62,
26495,
220,
220,
220,
220,
220,
220,
41876,
450,
499,
62,
30388,
5550,
38865,
450,
499,
62,
7942,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
12860,
62,
1671,
3702,
220,
220,
220,
220,
220,
220,
220,
41876,
450,
499,
62,
30388,
5550,
38865,
450,
499,
62,
7942,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
3849,
5275,
62,
1671,
3702,
41876,
450,
499,
62,
30388,
5550,
38865,
450,
499,
62,
9562,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
1671,
3702,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
952,
62,
10827,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
10827,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
305,
62,
6494,
8,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
6494,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
8543,
62,
9186,
62,
5219,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
75,
5219,
220,
220,
220,
220,
41876,
1149,
16,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
81,
5219,
220,
220,
220,
220,
41876,
1149,
16,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
6494,
8,
41876,
4731,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
8543,
62,
8457,
62,
18224,
62,
3820,
1008,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
305,
62,
6494,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
6494,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
8543,
62,
10827,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
952,
62,
10827,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
10827,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
305,
62,
6494,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
6494,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
8543,
62,
41509,
62,
12924,
929,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
11299,
220,
220,
220,
220,
41876,
269,
43167,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
312,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
269,
43167,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
305,
62,
6494,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
6494,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
8543,
62,
18224,
62,
20500,
62,
3524,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
844,
62,
18224,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
interface ZIF_GUIDRASIL_CONTROL_FUNC
public .
data MR_ENHEMA_CONTROL type ref to ZCL_GUIDRASIL_CONTROL_BASE .
methods ON_FUNCTION_SELECTED
importing
!IV_FCODE type CLIKE
!IR_CONTROL type ref to CL_GUI_CONTROL .
methods ON_DROPDOWN_SELECTED
importing
!IV_FCODE type CLIKE optional
!IR_MENU type ref to CL_CTMENU .
methods GET_DESIGN_FUNCTIONS
returning
value(ET_FUNCTIONS) type TTB_BUTTON .
methods SAVE .
methods SET_CONTROL
importing
!CONTROL type ref to ZCL_GUIDRASIL_CONTROL_BASE .
endinterface.
| [
39994,
1168,
5064,
62,
38,
27586,
49,
1921,
4146,
62,
10943,
5446,
3535,
62,
42296,
34,
198,
220,
1171,
764,
628,
198,
220,
1366,
17242,
62,
1677,
39,
27630,
62,
10943,
5446,
3535,
2099,
1006,
284,
1168,
5097,
62,
38,
27586,
49,
1921,
4146,
62,
10943,
5446,
3535,
62,
33,
11159,
764,
628,
220,
5050,
6177,
62,
42296,
4177,
2849,
62,
46506,
1961,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
3824,
62,
4851,
16820,
2099,
43749,
7336,
198,
220,
220,
220,
220,
220,
5145,
4663,
62,
10943,
5446,
3535,
2099,
1006,
284,
7852,
62,
40156,
62,
10943,
5446,
3535,
764,
198,
220,
5050,
6177,
62,
7707,
3185,
41925,
62,
46506,
1961,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
3824,
62,
4851,
16820,
2099,
43749,
7336,
11902,
198,
220,
220,
220,
220,
220,
5145,
4663,
62,
49275,
52,
2099,
1006,
284,
7852,
62,
4177,
49275,
52,
764,
198,
220,
5050,
17151,
62,
30910,
16284,
62,
42296,
4177,
11053,
198,
220,
220,
220,
8024,
198,
220,
220,
220,
220,
220,
1988,
7,
2767,
62,
42296,
4177,
11053,
8,
2099,
309,
22737,
62,
47526,
11357,
764,
198,
220,
5050,
14719,
6089,
764,
198,
220,
5050,
25823,
62,
10943,
5446,
3535,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
10943,
5446,
3535,
2099,
1006,
284,
1168,
5097,
62,
38,
27586,
49,
1921,
4146,
62,
10943,
5446,
3535,
62,
33,
11159,
764,
198,
437,
39994,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
*&---------------------------------------------------------------------*
*& Report Z_FORMAT
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
REPORT Z_FORMAT LINE-SIZE 45.
* example 1
DATA: BEGIN OF LINE,
land(3) TYPE C,
name(10) TYPE C,
age TYPE I,
weight TYPE p DECIMALS 2,
END OF LINE.
DATA itab LIKE SORTED TABLE OF LINE
WITH NON-UNIQUE KEY land name age weight.
LINE-land = 'G'. LINE-name = 'Hans'.
LINE-age = 20. LINE-weight = '80.00'.
INSERT LINE INTO TABLE itab.
LINE-land = 'USA'. LINE-name = 'Nancy'.
LINE-age = 35. LINE-weight = '45.00'.
INSERT LINE INTO TABLE itab.
LINE-land = 'USA'. LINE-name = 'Howard'.
LINE-age = 40. LINE-weight = '95.00'.
INSERT LINE INTO TABLE itab.
LINE-land = 'GB'. LINE-name = 'Jenny'.
LINE-age = 18. LINE-weight = '50.00'.
INSERT LINE INTO TABLE itab.
LINE-land = 'F'. LINE-name = 'Michele'.
LINE-age = 30. LINE-weight = '60.00'.
INSERT LINE INTO TABLE itab.
LINE-land = 'G'. LINE-name = 'Karl'.
LINE-age = 60. LINE-weight = '75.00'.
INSERT LINE INTO TABLE itab.
ULINE.
FORMAT COLOR COL_HEADING.
WRITE: / sy-vline, AT 2(6) 'land',
* Goto > Text Elements > Text symbols
* Goto > Translation
sy-vline, AT 13(10) 'name'(001),
sy-vline, AT 28(6) 'age',
sy-vline, AT 38(6) 'weight',
AT 45 sy-vline.
ULINE.
FORMAT RESET.
LOOP AT itab INTO LINE.
WRITE: / sy-vline, AT 2(6) LINE-land LEFT-JUSTIFIED,
sy-vline, AT 13(10) LINE-name COLOR COL_KEY LEFT-JUSTIFIED,
sy-vline, AT 28(6) LINE-age LEFT-JUSTIFIED,
sy-vline, AT 38(6) LINE-weight LEFT-JUSTIFIED,
* REPORT Z_1_4_INTERNALTABLES LINE-SIZE 45(36 = 38 + 6 + 1).
sy-vline.
ENDLOOP.
ULINE. | [
9,
5,
10097,
30934,
9,
198,
9,
5,
6358,
220,
1168,
62,
21389,
1404,
198,
9,
5,
198,
9,
5,
10097,
30934,
9,
198,
9,
5,
198,
9,
5,
198,
9,
5,
10097,
30934,
9,
198,
198,
2200,
15490,
220,
1168,
62,
21389,
1404,
48920,
12,
33489,
4153,
13,
198,
198,
9,
1672,
352,
198,
26947,
25,
347,
43312,
3963,
48920,
11,
198,
220,
1956,
7,
18,
8,
220,
41876,
327,
11,
198,
220,
1438,
7,
940,
8,
41876,
327,
11,
198,
220,
2479,
220,
220,
220,
220,
220,
41876,
314,
11,
198,
220,
3463,
220,
220,
41876,
279,
27196,
3955,
23333,
362,
11,
198,
10619,
3963,
48920,
13,
198,
198,
26947,
340,
397,
34178,
311,
9863,
1961,
43679,
3963,
48920,
198,
220,
220,
220,
220,
220,
13315,
44521,
12,
4944,
33866,
8924,
35374,
1956,
1438,
2479,
3463,
13,
198,
198,
24027,
12,
1044,
796,
705,
38,
4458,
220,
220,
48920,
12,
3672,
220,
220,
796,
705,
39,
504,
4458,
198,
24027,
12,
496,
220,
796,
1160,
13,
220,
220,
220,
48920,
12,
6551,
796,
705,
1795,
13,
405,
4458,
198,
20913,
17395,
48920,
39319,
43679,
340,
397,
13,
198,
198,
24027,
12,
1044,
796,
705,
14053,
4458,
48920,
12,
3672,
220,
220,
796,
705,
45,
3883,
4458,
198,
24027,
12,
496,
220,
796,
3439,
13,
220,
220,
220,
48920,
12,
6551,
796,
705,
2231,
13,
405,
4458,
198,
20913,
17395,
48920,
39319,
43679,
340,
397,
13,
198,
198,
24027,
12,
1044,
796,
705,
14053,
4458,
48920,
12,
3672,
220,
220,
796,
705,
32434,
4458,
198,
24027,
12,
496,
220,
796,
2319,
13,
220,
220,
220,
48920,
12,
6551,
796,
705,
3865,
13,
405,
4458,
198,
20913,
17395,
48920,
39319,
43679,
340,
397,
13,
198,
198,
24027,
12,
1044,
796,
705,
4579,
4458,
220,
48920,
12,
3672,
220,
220,
796,
705,
41,
11870,
4458,
198,
24027,
12,
496,
220,
796,
1248,
13,
220,
220,
220,
48920,
12,
6551,
796,
705,
1120,
13,
405,
4458,
198,
20913,
17395,
48920,
39319,
43679,
340,
397,
13,
198,
198,
24027,
12,
1044,
796,
705,
37,
4458,
220,
220,
48920,
12,
3672,
220,
220,
796,
705,
44,
14234,
293,
4458,
198,
24027,
12,
496,
220,
796,
1542,
13,
220,
220,
220,
48920,
12,
6551,
796,
705,
1899,
13,
405,
4458,
198,
20913,
17395,
48920,
39319,
43679,
340,
397,
13,
198,
198,
24027,
12,
1044,
796,
705,
38,
4458,
220,
220,
48920,
12,
3672,
220,
220,
796,
705,
46063,
4458,
198,
24027,
12,
496,
220,
796,
3126,
13,
220,
220,
220,
48920,
12,
6551,
796,
705,
2425,
13,
405,
4458,
198,
20913,
17395,
48920,
39319,
43679,
340,
397,
13,
198,
198,
6239,
8881,
13,
198,
21389,
1404,
20444,
1581,
20444,
62,
37682,
2751,
13,
198,
18564,
12709,
25,
1220,
827,
12,
85,
1370,
11,
5161,
362,
7,
21,
8,
705,
1044,
3256,
198,
198,
9,
402,
2069,
1875,
8255,
26632,
1875,
8255,
14354,
198,
9,
402,
2069,
1875,
33322,
198,
1837,
12,
85,
1370,
11,
5161,
1511,
7,
940,
8,
705,
3672,
6,
7,
8298,
828,
198,
1837,
12,
85,
1370,
11,
5161,
2579,
7,
21,
8,
705,
496,
3256,
198,
1837,
12,
85,
1370,
11,
5161,
4353,
7,
21,
8,
705,
6551,
3256,
198,
1404,
4153,
827,
12,
85,
1370,
13,
198,
6239,
8881,
13,
198,
198,
21389,
1404,
15731,
2767,
13,
198,
21982,
3185,
5161,
340,
397,
39319,
48920,
13,
198,
220,
44423,
25,
1220,
827,
12,
85,
1370,
11,
5161,
362,
7,
21,
8,
48920,
12,
1044,
12509,
9792,
12,
25008,
28343,
11,
198,
220,
827,
12,
85,
1370,
11,
5161,
1511,
7,
940,
8,
48920,
12,
3672,
20444,
1581,
20444,
62,
20373,
12509,
9792,
12,
25008,
28343,
11,
198,
220,
827,
12,
85,
1370,
11,
5161,
2579,
7,
21,
8,
48920,
12,
496,
12509,
9792,
12,
25008,
28343,
11,
198,
220,
827,
12,
85,
1370,
11,
5161,
4353,
7,
21,
8,
48920,
12,
6551,
12509,
9792,
12,
25008,
28343,
11,
198,
9,
39099,
220,
1168,
62,
16,
62,
19,
62,
1268,
31800,
1847,
5603,
9148,
1546,
48920,
12,
33489,
4153,
7,
2623,
796,
4353,
1343,
718,
1343,
352,
737,
198,
220,
827,
12,
85,
1370,
13,
198,
10619,
21982,
3185,
13,
198,
6239,
8881,
13
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
class ZCL_PT_A_CREATE_TR_CU definition
public
inheriting from ZCL_PT_A_TASK_CREATE_TR
final
create public .
public section.
protected section.
methods GET_TR_TYPE
redefinition .
private section.
ENDCLASS.
CLASS ZCL_PT_A_CREATE_TR_CU IMPLEMENTATION.
method GET_TR_TYPE.
type = 'W'.
endmethod.
ENDCLASS.
| [
4871,
1168,
5097,
62,
11571,
62,
32,
62,
43387,
6158,
62,
5446,
62,
43633,
6770,
198,
220,
1171,
198,
220,
10639,
1780,
422,
1168,
5097,
62,
11571,
62,
32,
62,
51,
1921,
42,
62,
43387,
6158,
62,
5446,
198,
220,
2457,
198,
220,
2251,
1171,
764,
198,
198,
11377,
2665,
13,
198,
24326,
2665,
13,
628,
220,
5050,
17151,
62,
5446,
62,
25216,
198,
220,
220,
220,
34087,
17750,
764,
198,
19734,
2665,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
11571,
62,
32,
62,
43387,
6158,
62,
5446,
62,
43633,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
2446,
17151,
62,
5446,
62,
25216,
13,
628,
220,
220,
220,
2099,
796,
705,
54,
4458,
628,
220,
886,
24396,
13,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS ltcl_prime DEFINITION FOR TESTING
DURATION SHORT RISK LEVEL HARMLESS FINAL.
PRIVATE SECTION.
METHODS:
check1 FOR TESTING,
check2 FOR TESTING,
check3 FOR TESTING,
check4 FOR TESTING,
check5 FOR TESTING,
check6 FOR TESTING,
check7 FOR TESTING,
check8 FOR TESTING,
check9 FOR TESTING,
check10 FOR TESTING.
METHODS:
test IMPORTING iv_str TYPE string
iv_expected TYPE abap_bool,
test_true IMPORTING iv_str TYPE string,
test_false IMPORTING iv_str TYPE string.
ENDCLASS. "ltcl_Prime
CLASS ltcl_prime IMPLEMENTATION.
METHOD test.
DATA: lv_bool TYPE abap_bool,
lo_integer TYPE REF TO zcl_abappgp_integer.
lo_integer = zcl_abappgp_integer=>from_string( iv_str ).
lv_bool = zcl_abappgp_prime=>check(
iv_iterations = 20
io_integer = lo_integer ).
cl_abap_unit_assert=>assert_equals(
act = lv_bool
exp = iv_expected ).
ENDMETHOD.
METHOD test_true.
test( iv_str = iv_str
iv_expected = abap_true ).
ENDMETHOD.
METHOD test_false.
test( iv_str = iv_str
iv_expected = abap_false ).
ENDMETHOD.
METHOD check1.
test_false( '0' ).
ENDMETHOD.
METHOD check2.
test_false( '1' ).
ENDMETHOD.
METHOD check3.
test_true( '5' ).
ENDMETHOD.
METHOD check4.
test_false( '6' ).
ENDMETHOD.
METHOD check5.
test_true( '97' ).
ENDMETHOD.
METHOD check6.
test_false( '99' ).
ENDMETHOD.
METHOD check7.
test_false( '44377' ).
ENDMETHOD.
METHOD check8.
test_true( '44449' ).
ENDMETHOD.
METHOD check9.
test_true( '5915587277' ).
ENDMETHOD.
METHOD check10.
test_true( '48112959837082048697' ).
ENDMETHOD.
ENDCLASS.
| [
198,
31631,
300,
83,
565,
62,
35505,
5550,
20032,
17941,
7473,
43001,
2751,
198,
220,
220,
220,
360,
4261,
6234,
6006,
9863,
45698,
42,
49277,
43638,
5805,
7597,
25261,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
2198,
16,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
2198,
17,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
2198,
18,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
2198,
19,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
2198,
20,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
2198,
21,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
2198,
22,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
2198,
23,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
2198,
24,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
2198,
940,
7473,
43001,
2751,
13,
628,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
1332,
30023,
9863,
2751,
21628,
62,
2536,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
40319,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
1332,
62,
7942,
30023,
9863,
2751,
21628,
62,
2536,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
1332,
62,
9562,
30023,
9863,
2751,
21628,
62,
2536,
41876,
4731,
13,
198,
198,
10619,
31631,
13,
220,
220,
220,
220,
220,
220,
366,
2528,
565,
62,
26405,
198,
198,
31631,
300,
83,
565,
62,
35505,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
1332,
13,
628,
220,
220,
220,
42865,
25,
300,
85,
62,
30388,
220,
220,
220,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2376,
62,
41433,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
1324,
31197,
62,
41433,
13,
628,
198,
220,
220,
220,
2376,
62,
41433,
796,
1976,
565,
62,
397,
1324,
31197,
62,
41433,
14804,
6738,
62,
8841,
7,
21628,
62,
2536,
6739,
628,
220,
220,
220,
300,
85,
62,
30388,
796,
1976,
565,
62,
397,
1324,
31197,
62,
35505,
14804,
9122,
7,
198,
220,
220,
220,
220,
220,
21628,
62,
2676,
602,
796,
1160,
198,
220,
220,
220,
220,
220,
33245,
62,
41433,
220,
220,
220,
796,
2376,
62,
41433,
6739,
628,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
198,
220,
220,
220,
220,
220,
719,
796,
300,
85,
62,
30388,
198,
220,
220,
220,
220,
220,
1033,
796,
21628,
62,
40319,
6739,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1332,
62,
7942,
13,
198,
220,
220,
220,
1332,
7,
21628,
62,
2536,
220,
220,
220,
220,
220,
796,
21628,
62,
2536,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
40319,
796,
450,
499,
62,
7942,
6739,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
1332,
62,
9562,
13,
198,
220,
220,
220,
1332,
7,
21628,
62,
2536,
220,
220,
220,
220,
220,
796,
21628,
62,
2536,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
40319,
796,
450,
499,
62,
9562,
6739,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
2198,
16,
13,
198,
220,
220,
220,
1332,
62,
9562,
7,
705,
15,
6,
6739,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
2198,
17,
13,
198,
220,
220,
220,
1332,
62,
9562,
7,
705,
16,
6,
6739,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
2198,
18,
13,
198,
220,
220,
220,
1332,
62,
7942,
7,
705,
20,
6,
6739,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
2198,
19,
13,
198,
220,
220,
220,
1332,
62,
9562,
7,
705,
21,
6,
6739,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
2198,
20,
13,
198,
220,
220,
220,
1332,
62,
7942,
7,
705,
5607,
6,
6739,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
2198,
21,
13,
198,
220,
220,
220,
1332,
62,
9562,
7,
705,
2079,
6,
6739,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
2198,
22,
13,
198,
220,
220,
220,
1332,
62,
9562,
7,
705,
2598,
26514,
6,
6739,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
2198,
23,
13,
198,
220,
220,
220,
1332,
62,
7942,
7,
705,
2598,
31911,
6,
6739,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
2198,
24,
13,
198,
220,
220,
220,
1332,
62,
7942,
7,
705,
3270,
1314,
44617,
27019,
6,
6739,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
2198,
940,
13,
198,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_new_syntax DEFINITION
PUBLIC
CREATE PUBLIC .
PUBLIC SECTION.
METHODS constructor
IMPORTING
it_method_calls TYPE stringtab.
PROTECTED SECTION.
PRIVATE SECTION.
"! Meshes
"! https://help.sap.com/doc/abapdocu_750_index_htm/7.50/de-de/abenabap_meshes.htm
METHODS mesh.
"! Inline-Deklarationen
"! https://blogs.sap.com/2013/05/23/abap-news-for-release-740-inline-declarations/
METHODS inline.
"! SWITCH und COND
"! https://blogs.sap.com/2013/05/28/abap-news-for-release-740-constructor-operators-cond-and-switch/
METHODS sw_co.
"! Tabellenausdrücke
"! https://blogs.sap.com/2013/05/29/abap-news-for-release-740-table-expressions/
"! https://blogs.sap.com/2013/06/22/abap-news-for-release-740-new-internal-table-functions/
METHODS itab.
"! For-Ausdrücke
"! https://blogs.sap.com/2014/09/30/abap-news-for-740-sp08-iteration-expressions/
METHODS for.
ENDCLASS.
CLASS zcl_new_syntax IMPLEMENTATION.
METHOD constructor.
LOOP AT it_method_calls ASSIGNING FIELD-SYMBOL(<lv_method>).
CALL METHOD (<lv_method>).
ENDLOOP.
ENDMETHOD.
METHOD mesh.
TYPES:
t_scarr TYPE HASHED TABLE OF scarr
WITH UNIQUE KEY carrid,
t_spfli TYPE HASHED TABLE OF spfli
WITH UNIQUE KEY carrid connid ,
t_sflight TYPE HASHED TABLE OF sflight
WITH UNIQUE KEY carrid connid fldate,
t_sairport TYPE HASHED TABLE OF sairport
WITH UNIQUE KEY id,
BEGIN OF MESH t_flights,
scarr TYPE t_scarr
ASSOCIATION _spfli TO spfli
ON carrid = carrid,
spfli TYPE t_spfli
ASSOCIATION _sflight TO sflight
ON carrid = carrid AND
connid = connid
ASSOCIATION _sairport TO sairport
ON id = airpfrom,
sflight TYPE t_sflight,
sairport TYPE t_sairport,
END OF MESH t_flights.
DATA:
flights TYPE t_flights,
name TYPE scarr-carrname VALUE 'Lufthansa',
id TYPE spfli-carrid VALUE 'LH',
connection TYPE spfli-connid VALUE '0400',
date TYPE sflight-fldate.
SELECT *
FROM scarr
INTO TABLE @flights-scarr.
SELECT *
FROM spfli
INTO TABLE @flights-spfli.
SELECT *
FROM sflight
INTO TABLE @flights-sflight.
SELECT *
FROM sairport
INTO TABLE @flights-sairport.
date = flights-sflight[ carrid = id
connid = connection ]-fldate.
BREAK-POINT.
"Inner Join von scarr und spfli mit den entsprechenden Bedingungen im Tabellenausdruck
"scarr und spfli sind über eine Assoziation miteinander verbunden
DATA(spfli_wa) =
flights-scarr\_spfli[ flights-scarr[ carrname = name ]
connid = connection ].
"Die Assoziation wird jetzt quasi rückwärts gegangen, da scarr auf spfli zeigt
DATA(scarr_wa) =
flights-spfli\^_spfli~scarr[
flights-spfli[ carrid = id connid = connection ] ].
"Erstes Beispiel + eine Verlängerung auf das Ergebnis des Tabellenausrucks mit der Assoziation sflight
DATA(sflight_wa) =
flights-scarr\_spfli[ flights-scarr[ carrname = name ]
connid = connection
]\_sflight[ fldate = date ].
"Das obige Beispiel erweitert um einen Feldzugriff aus der Workarea
DATA(price) =
flights-scarr\_spfli[ flights-scarr[ carrname = name ]
connid = connection
]\_sflight[ fldate = date ]-price.
"Feldsymbol Zuweisung
ASSIGN
flights-scarr\_spfli[ flights-scarr[ carrname = name ]
connid = connection
]\_sflight[ fldate = date ]
TO FIELD-SYMBOL(<sflight_wa>).
"Zuweisung eines Wertes über Assoziation bzw. MESH-Pfade
flights-scarr\_spfli[ flights-scarr[ carrname = name ]
connid = connection
]\_sflight[ fldate = date
]-price = price - 10.
"Prüfung ob eine Zeile innerhalb des MESHES existiert
IF line_exists(
flights-scarr\_spfli[ flights-scarr[ carrname = name ]
connid = connection
]\_sflight[ fldate = date
price = price - 10 ] ).
ENDIF.
ENDMETHOD.
METHOD for.
BREAK-POINT.
ENDMETHOD.
METHOD inline.
BREAK-POINT.
ENDMETHOD.
METHOD itab.
BREAK-POINT.
ENDMETHOD.
METHOD sw_co.
BREAK-POINT.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
3605,
62,
1837,
41641,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
23772,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
340,
62,
24396,
62,
66,
5691,
41876,
4731,
8658,
13,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
366,
0,
14937,
956,
198,
220,
220,
220,
366,
0,
3740,
1378,
16794,
13,
82,
499,
13,
785,
14,
15390,
14,
397,
499,
15390,
84,
62,
15426,
62,
9630,
62,
19211,
14,
22,
13,
1120,
14,
2934,
12,
2934,
14,
397,
268,
397,
499,
62,
6880,
956,
13,
19211,
198,
220,
220,
220,
337,
36252,
50,
19609,
13,
198,
220,
220,
220,
366,
0,
554,
1370,
12,
35,
988,
75,
10186,
268,
198,
220,
220,
220,
366,
0,
3740,
1378,
49096,
13,
82,
499,
13,
785,
14,
6390,
14,
2713,
14,
1954,
14,
397,
499,
12,
10827,
12,
1640,
12,
20979,
12,
45598,
12,
45145,
12,
32446,
24355,
14,
198,
220,
220,
220,
337,
36252,
50,
26098,
13,
198,
220,
220,
220,
366,
0,
12672,
31949,
3318,
7102,
35,
198,
220,
220,
220,
366,
0,
3740,
1378,
49096,
13,
82,
499,
13,
785,
14,
6390,
14,
2713,
14,
2078,
14,
397,
499,
12,
10827,
12,
1640,
12,
20979,
12,
45598,
12,
41571,
273,
12,
3575,
2024,
12,
17561,
12,
392,
12,
31943,
14,
198,
220,
220,
220,
337,
36252,
50,
1509,
62,
1073,
13,
198,
220,
220,
220,
366,
0,
16904,
695,
8107,
385,
7109,
9116,
66,
365,
198,
220,
220,
220,
366,
0,
3740,
1378,
49096,
13,
82,
499,
13,
785,
14,
6390,
14,
2713,
14,
1959,
14,
397,
499,
12,
10827,
12,
1640,
12,
20979,
12,
45598,
12,
11487,
12,
42712,
507,
14,
198,
220,
220,
220,
366,
0,
3740,
1378,
49096,
13,
82,
499,
13,
785,
14,
6390,
14,
3312,
14,
1828,
14,
397,
499,
12,
10827,
12,
1640,
12,
20979,
12,
45598,
12,
3605,
12,
32538,
12,
11487,
12,
12543,
2733,
14,
198,
220,
220,
220,
337,
36252,
50,
340,
397,
13,
198,
220,
220,
220,
366,
0,
1114,
12,
32,
385,
7109,
9116,
66,
365,
198,
220,
220,
220,
366,
0,
3740,
1378,
49096,
13,
82,
499,
13,
785,
14,
4967,
14,
2931,
14,
1270,
14,
397,
499,
12,
10827,
12,
1640,
12,
45598,
12,
2777,
2919,
12,
2676,
341,
12,
42712,
507,
14,
198,
220,
220,
220,
337,
36252,
50,
329,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
565,
62,
3605,
62,
1837,
41641,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
23772,
13,
198,
220,
220,
220,
17579,
3185,
5161,
340,
62,
24396,
62,
66,
5691,
24994,
3528,
15871,
18930,
24639,
12,
23060,
10744,
3535,
7,
27,
6780,
62,
24396,
29,
737,
198,
220,
220,
220,
220,
220,
42815,
337,
36252,
38155,
6780,
62,
24396,
29,
737,
198,
220,
220,
220,
23578,
21982,
3185,
13,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
19609,
13,
198,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
256,
62,
1416,
3258,
220,
220,
220,
41876,
367,
11211,
1961,
43679,
3963,
629,
3258,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13315,
4725,
33866,
8924,
35374,
1097,
6058,
11,
198,
220,
220,
220,
220,
220,
256,
62,
2777,
2704,
72,
220,
220,
220,
41876,
367,
11211,
1961,
43679,
3963,
599,
2704,
72,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13315,
4725,
33866,
8924,
35374,
1097,
6058,
48260,
312,
837,
198,
220,
220,
220,
220,
220,
256,
62,
82,
22560,
220,
41876,
367,
11211,
1961,
43679,
3963,
264,
22560,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13315,
4725,
33866,
8924,
35374,
1097,
6058,
48260,
312,
277,
335,
378,
11,
198,
220,
220,
220,
220,
220,
256,
62,
82,
958,
634,
41876,
367,
11211,
1961,
43679,
3963,
473,
343,
634,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13315,
4725,
33866,
8924,
35374,
4686,
11,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
337,
44011,
256,
62,
2704,
2337,
11,
198,
220,
220,
220,
220,
220,
220,
220,
629,
3258,
220,
220,
220,
41876,
256,
62,
1416,
3258,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
24994,
4503,
40,
6234,
4808,
2777,
2704,
72,
5390,
599,
2704,
72,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6177,
1097,
6058,
796,
1097,
6058,
11,
198,
220,
220,
220,
220,
220,
220,
220,
599,
2704,
72,
220,
220,
220,
41876,
256,
62,
2777,
2704,
72,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
24994,
4503,
40,
6234,
4808,
82,
22560,
5390,
264,
22560,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6177,
1097,
6058,
796,
1097,
6058,
5357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
48260,
312,
796,
48260,
312,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
24994,
4503,
40,
6234,
4808,
82,
958,
634,
5390,
473,
343,
634,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6177,
4686,
796,
1633,
79,
6738,
11,
198,
220,
220,
220,
220,
220,
220,
220,
264,
22560,
220,
41876,
256,
62,
82,
22560,
11,
198,
220,
220,
220,
220,
220,
220,
220,
473,
343,
634,
41876,
256,
62,
82,
958,
634,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
337,
44011,
256,
62,
2704,
2337,
13,
628,
220,
220,
220,
42865,
25,
198,
220,
220,
220,
220,
220,
13956,
220,
220,
220,
41876,
256,
62,
2704,
2337,
11,
198,
220,
220,
220,
220,
220,
1438,
220,
220,
220,
220,
220,
220,
41876,
629,
3258,
12
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_abapgit_repo_srv DEFINITION
PUBLIC
FINAL
CREATE PRIVATE .
PUBLIC SECTION.
INTERFACES zif_abapgit_repo_srv .
INTERFACES zif_abapgit_repo_listener .
CLASS-METHODS get_instance
RETURNING
VALUE(ri_srv) TYPE REF TO zif_abapgit_repo_srv .
PROTECTED SECTION.
PRIVATE SECTION.
ALIASES delete
FOR zif_abapgit_repo_srv~delete .
ALIASES get
FOR zif_abapgit_repo_srv~get .
ALIASES list
FOR zif_abapgit_repo_srv~list .
ALIASES validate_package
FOR zif_abapgit_repo_srv~validate_package .
CLASS-DATA gi_ref TYPE REF TO zif_abapgit_repo_srv .
DATA mv_init TYPE abap_bool VALUE abap_false ##NO_TEXT.
DATA mt_list TYPE zif_abapgit_definitions=>ty_repo_ref_tt .
METHODS refresh
RAISING
zcx_abapgit_exception .
METHODS is_sap_object_allowed
RETURNING
VALUE(rv_allowed) TYPE abap_bool .
METHODS instantiate_and_add
IMPORTING
!is_repo_meta TYPE zif_abapgit_persistence=>ty_repo
RETURNING
VALUE(ro_repo) TYPE REF TO zcl_abapgit_repo
RAISING
zcx_abapgit_exception .
METHODS add
IMPORTING
!io_repo TYPE REF TO zcl_abapgit_repo
RAISING
zcx_abapgit_exception .
METHODS reinstantiate_repo
IMPORTING
!iv_key TYPE zif_abapgit_persistence=>ty_repo-key
!is_meta TYPE zif_abapgit_persistence=>ty_repo_xml
RAISING
zcx_abapgit_exception .
METHODS validate_sub_super_packages
IMPORTING
!iv_package TYPE devclass
!it_repos TYPE zif_abapgit_persistence=>tt_repo
!iv_ign_subpkg TYPE abap_bool DEFAULT abap_false
RAISING
zcx_abapgit_exception .
ENDCLASS.
CLASS ZCL_ABAPGIT_REPO_SRV IMPLEMENTATION.
METHOD add.
DATA: lo_repo LIKE LINE OF mt_list.
LOOP AT mt_list INTO lo_repo.
IF lo_repo->get_key( ) = io_repo->get_key( ).
IF lo_repo = io_repo.
RETURN.
ENDIF.
zcx_abapgit_exception=>raise( 'identical keys' ).
ENDIF.
ENDLOOP.
io_repo->bind_listener( me ).
APPEND io_repo TO mt_list.
ENDMETHOD.
METHOD get_instance.
IF gi_ref IS INITIAL.
CREATE OBJECT gi_ref TYPE zcl_abapgit_repo_srv.
ENDIF.
ri_srv = gi_ref.
ENDMETHOD.
METHOD instantiate_and_add.
IF is_repo_meta-offline = abap_false.
CREATE OBJECT ro_repo TYPE zcl_abapgit_repo_online
EXPORTING
is_data = is_repo_meta.
ELSE.
CREATE OBJECT ro_repo TYPE zcl_abapgit_repo_offline
EXPORTING
is_data = is_repo_meta.
ENDIF.
add( ro_repo ).
ENDMETHOD.
METHOD is_sap_object_allowed.
rv_allowed = cl_enh_badi_def_utility=>is_sap_system( ).
IF rv_allowed = abap_true.
RETURN.
ENDIF.
rv_allowed = zcl_abapgit_exit=>get_instance( )->allow_sap_objects( ).
ENDMETHOD.
METHOD refresh.
DATA: lt_list TYPE zif_abapgit_persistence=>tt_repo.
FIELD-SYMBOLS: <ls_list> LIKE LINE OF lt_list.
CLEAR mt_list.
lt_list = zcl_abapgit_persist_factory=>get_repo( )->list( ).
LOOP AT lt_list ASSIGNING <ls_list>.
instantiate_and_add( <ls_list> ).
ENDLOOP.
mv_init = abap_true.
ENDMETHOD.
METHOD reinstantiate_repo.
DATA lo_repo TYPE REF TO zcl_abapgit_repo.
DATA ls_full_meta TYPE zif_abapgit_persistence=>ty_repo.
lo_repo = get( iv_key ).
DELETE TABLE mt_list FROM lo_repo.
ASSERT sy-subrc IS INITIAL.
MOVE-CORRESPONDING is_meta TO ls_full_meta.
ls_full_meta-key = iv_key.
instantiate_and_add( ls_full_meta ).
ENDMETHOD.
METHOD validate_sub_super_packages.
DATA:
ls_repo LIKE LINE OF it_repos,
lo_package TYPE REF TO zif_abapgit_sap_package,
lt_packages TYPE zif_abapgit_sap_package=>ty_devclass_tt,
lo_repo TYPE REF TO zcl_abapgit_repo.
LOOP AT it_repos INTO ls_repo.
lo_repo = get( ls_repo-key ).
lo_package = zcl_abapgit_factory=>get_sap_package( ls_repo-package ).
IF lo_package->exists( ) = abap_false.
" Skip dangling repository
CONTINUE.
ENDIF.
CLEAR lt_packages.
IF lo_repo->get_local_settings( )-ignore_subpackages = abap_false.
APPEND LINES OF lo_package->list_subpackages( ) TO lt_packages.
ENDIF.
IF iv_ign_subpkg = abap_false.
APPEND LINES OF lo_package->list_superpackages( ) TO lt_packages.
ENDIF.
READ TABLE lt_packages TRANSPORTING NO FIELDS
WITH KEY table_line = iv_package.
IF sy-subrc = 0.
zcx_abapgit_exception=>raise( |Repository { lo_repo->get_name( ) } already contains { iv_package } | ).
ENDIF.
ENDLOOP.
ENDMETHOD.
METHOD zif_abapgit_repo_listener~on_meta_change.
DATA li_persistence TYPE REF TO zif_abapgit_persist_repo.
li_persistence = zcl_abapgit_persist_factory=>get_repo( ).
li_persistence->update_metadata(
iv_key = iv_key
is_meta = is_meta
is_change_mask = is_change_mask ).
" Recreate repo instance if type changed
" Instances in mt_list are of *_online and *_offline type
" If type is changed object should be recreated from the proper class
" TODO refactor, e.g. unify repo logic in one class
IF is_change_mask-offline = abap_true.
reinstantiate_repo(
iv_key = iv_key
is_meta = is_meta ).
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_repo_srv~delete.
zcl_abapgit_persist_factory=>get_repo( )->delete( io_repo->get_key( ) ).
DELETE TABLE mt_list FROM io_repo.
ASSERT sy-subrc = 0.
ENDMETHOD.
METHOD zif_abapgit_repo_srv~get.
FIELD-SYMBOLS: <lo_list> LIKE LINE OF mt_list.
IF mv_init = abap_false.
refresh( ).
ENDIF.
LOOP AT mt_list ASSIGNING <lo_list>.
IF <lo_list>->get_key( ) = iv_key.
ro_repo = <lo_list>.
RETURN.
ENDIF.
ENDLOOP.
zcx_abapgit_exception=>raise( 'repo not found, get' ).
ENDMETHOD.
METHOD zif_abapgit_repo_srv~is_repo_installed.
DATA: lt_repo TYPE zif_abapgit_definitions=>ty_repo_ref_tt,
lo_repo TYPE REF TO zcl_abapgit_repo,
lv_url TYPE string,
lv_package TYPE devclass,
lo_repo_online TYPE REF TO zcl_abapgit_repo_online,
lv_err TYPE string.
lt_repo = list( ).
LOOP AT lt_repo INTO lo_repo.
CHECK lo_repo->is_offline( ) = abap_false.
lo_repo_online ?= lo_repo.
lv_url = lo_repo_online->get_url( ).
lv_package = lo_repo_online->get_package( ).
CHECK to_upper( lv_url ) = to_upper( iv_url ).
" Validate bindings
"TODO refactor: move this message out of this method
IF iv_target_package IS NOT INITIAL AND iv_target_package <> lv_package.
lv_err = |Installation to package { lv_package } detected. |
&& |Cancelling installation|.
zcx_abapgit_exception=>raise( lv_err ).
ENDIF.
rv_installed = abap_true.
EXIT.
ENDLOOP.
ENDMETHOD.
METHOD zif_abapgit_repo_srv~list.
IF mv_init = abap_false.
refresh( ).
ENDIF.
rt_list = mt_list.
ENDMETHOD.
METHOD zif_abapgit_repo_srv~new_offline.
DATA: ls_repo TYPE zif_abapgit_persistence=>ty_repo,
lv_key TYPE zif_abapgit_persistence=>ty_repo-key,
lo_dot_abapgit TYPE REF TO zcl_abapgit_dot_abapgit.
IF zcl_abapgit_auth=>is_allowed( zif_abapgit_auth=>gc_authorization-create_repo ) = abap_false.
zcx_abapgit_exception=>raise( 'Not authorized' ).
ENDIF.
validate_package( iv_package ).
lo_dot_abapgit = zcl_abapgit_dot_abapgit=>build_default( ).
lo_dot_abapgit->set_folder_logic( iv_folder_logic ).
lv_key = zcl_abapgit_persist_factory=>get_repo( )->add(
iv_url = iv_url
iv_branch_name = ''
iv_package = iv_package
iv_offline = abap_true
is_dot_abapgit = lo_dot_abapgit->get_data( ) ).
TRY.
ls_repo = zcl_abapgit_persist_factory=>get_repo( )->read( lv_key ).
CATCH zcx_abapgit_not_found.
zcx_abapgit_exception=>raise( 'new_offline not found' ).
ENDTRY.
ro_repo ?= instantiate_and_add( ls_repo ).
ENDMETHOD.
METHOD zif_abapgit_repo_srv~new_online.
DATA: ls_repo TYPE zif_abapgit_persistence=>ty_repo,
lv_key TYPE zif_abapgit_persistence=>ty_repo-key,
ls_dot_abapgit TYPE zif_abapgit_dot_abapgit=>ty_dot_abapgit.
ASSERT NOT iv_url IS INITIAL
AND NOT iv_branch_name IS INITIAL
AND NOT iv_package IS INITIAL.
IF zcl_abapgit_auth=>is_allowed( zif_abapgit_auth=>gc_authorization-create_repo ) = abap_false.
zcx_abapgit_exception=>raise( 'Not authorized' ).
ENDIF.
validate_package( iv_package = iv_package
iv_ign_subpkg = iv_ign_subpkg ).
zcl_abapgit_url=>validate( |{ iv_url }| ).
ls_dot_abapgit = zcl_abapgit_dot_abapgit=>build_default( )->get_data( ).
ls_dot_abapgit-folder_logic = iv_folder_logic.
lv_key = zcl_abapgit_persist_factory=>get_repo( )->add(
iv_url = iv_url
iv_branch_name = iv_branch_name
iv_display_name = iv_display_name
iv_package = iv_package
iv_offline = abap_false
is_dot_abapgit = ls_dot_abapgit ).
TRY.
ls_repo = zcl_abapgit_persist_factory=>get_repo( )->read( lv_key ).
CATCH zcx_abapgit_not_found.
zcx_abapgit_exception=>raise( 'new_online not found' ).
ENDTRY.
ro_repo ?= instantiate_and_add( ls_repo ).
IF ls_repo-local_settings-ignore_subpackages <> iv_ign_subpkg.
ls_repo-local_settings-ignore_subpackages = iv_ign_subpkg.
ro_repo->set_local_settings( ls_repo-local_settings ).
ENDIF.
ro_repo->refresh( ).
ro_repo->find_remote_dot_abapgit( ).
ENDMETHOD.
METHOD zif_abapgit_repo_srv~purge.
* todo, this should be a method on the repo instead
DATA: lt_tadir TYPE zif_abapgit_definitions=>ty_tadir_tt.
IF io_repo->get_local_settings( )-write_protected = abap_true.
zcx_abapgit_exception=>raise( 'Cannot purge. Local code is write-protected by repo config' ).
ELSEIF zcl_abapgit_auth=>is_allowed( zif_abapgit_auth=>gc_authorization-uninstall ) = abap_false.
zcx_abapgit_exception=>raise( 'Not authorized' ).
ENDIF.
lt_tadir = zcl_abapgit_factory=>get_tadir( )->read( io_repo->get_package( ) ).
zcl_abapgit_objects=>delete( it_tadir = lt_tadir
is_checks = is_checks ).
delete( io_repo ).
ENDMETHOD.
METHOD zif_abapgit_repo_srv~validate_package.
DATA: lv_as4user TYPE tdevc-as4user,
lt_repos TYPE zif_abapgit_persistence=>tt_repo,
lv_name TYPE zif_abapgit_persistence=>ty_local_settings-display_name,
lv_owner TYPE zif_abapgit_persistence=>ty_local_settings-display_name.
FIELD-SYMBOLS:
<ls_repo> LIKE LINE OF lt_repos.
IF iv_package IS INITIAL.
zcx_abapgit_exception=>raise( 'add, package empty' ).
ENDIF.
IF iv_package = '$TMP'.
zcx_abapgit_exception=>raise( 'not possible to use $TMP, create new (local) package' ).
ENDIF.
SELECT SINGLE as4user FROM tdevc
INTO lv_as4user
WHERE devclass = iv_package. "#EC CI_GENBUFF
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( |Package { iv_package } not found| ).
ENDIF.
IF is_sap_object_allowed( ) = abap_false AND lv_as4user = 'SAP'.
zcx_abapgit_exception=>raise( |Package { iv_package } not allowed| ).
ENDIF.
" make sure its not already in use for a different repository
lt_repos = zcl_abapgit_persist_factory=>get_repo( )->list( ).
READ TABLE lt_repos WITH KEY package = iv_package ASSIGNING <ls_repo>.
IF sy-subrc = 0.
lv_name = zcl_abapgit_repo_srv=>get_instance( )->get( <ls_repo>-key )->get_name( ).
lv_owner = <ls_repo>-created_by.
zcx_abapgit_exception=>raise( |Package { iv_package } already versioned as { lv_name } by { lv_owner }| ).
ENDIF.
validate_sub_super_packages(
iv_package = iv_package
it_repos = lt_repos
iv_ign_subpkg = iv_ign_subpkg ).
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
260,
7501,
62,
27891,
85,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
25261,
198,
220,
29244,
6158,
4810,
3824,
6158,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
397,
499,
18300,
62,
260,
7501,
62,
27891,
85,
764,
198,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
397,
499,
18300,
62,
260,
7501,
62,
4868,
877,
764,
628,
220,
220,
220,
42715,
12,
49273,
50,
651,
62,
39098,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
380,
62,
27891,
85,
8,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
260,
7501,
62,
27891,
85,
764,
628,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
8355,
43429,
1546,
12233,
198,
220,
220,
220,
220,
220,
7473,
1976,
361,
62,
397,
499,
18300,
62,
260,
7501,
62,
27891,
85,
93,
33678,
764,
198,
220,
220,
220,
8355,
43429,
1546,
651,
198,
220,
220,
220,
220,
220,
7473,
1976,
361,
62,
397,
499,
18300,
62,
260,
7501,
62,
27891,
85,
93,
1136,
764,
198,
220,
220,
220,
8355,
43429,
1546,
1351,
198,
220,
220,
220,
220,
220,
7473,
1976,
361,
62,
397,
499,
18300,
62,
260,
7501,
62,
27891,
85,
93,
4868,
764,
198,
220,
220,
220,
8355,
43429,
1546,
26571,
62,
26495,
198,
220,
220,
220,
220,
220,
7473,
1976,
361,
62,
397,
499,
18300,
62,
260,
7501,
62,
27891,
85,
93,
12102,
378,
62,
26495,
764,
628,
220,
220,
220,
42715,
12,
26947,
308,
72,
62,
5420,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
260,
7501,
62,
27891,
85,
764,
198,
220,
220,
220,
42865,
285,
85,
62,
15003,
41876,
450,
499,
62,
30388,
26173,
8924,
450,
499,
62,
9562,
22492,
15285,
62,
32541,
13,
198,
220,
220,
220,
42865,
45079,
62,
4868,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
260,
7501,
62,
5420,
62,
926,
764,
628,
220,
220,
220,
337,
36252,
50,
14976,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
318,
62,
82,
499,
62,
15252,
62,
40845,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
40845,
8,
41876,
450,
499,
62,
30388,
764,
198,
220,
220,
220,
337,
36252,
50,
9113,
9386,
62,
392,
62,
2860,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
271,
62,
260,
7501,
62,
28961,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
305,
62,
260,
7501,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
260,
7501,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
751,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
952,
62,
260,
7501,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
260,
7501,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
6865,
18797,
9386,
62,
260,
7501,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
2539,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
12,
2539,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
271,
62,
28961,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
774,
62,
260,
7501,
62,
19875,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
26571,
62,
7266,
62,
16668,
62,
43789,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
26495,
220,
220,
220,
41876,
1614,
4871,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
270,
62,
260,
1930,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
19276,
13274,
14804,
926,
62,
260,
7501,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
570,
62,
7266,
35339,
41876,
450,
499,
62,
30388,
5550,
38865,
450,
499,
62,
9562,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
6242,
2969,
38,
2043,
62,
2200,
16402,
62,
12562,
53,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
751,
13,
628,
220,
220,
220,
42865,
25,
2376,
62,
260,
7501,
34178,
48920,
3963,
45079,
62,
4868,
13,
628,
198,
220,
220,
220,
17579,
3185,
5161,
45079,
62,
4868,
39319,
2376,
62,
260,
7501,
13,
198,
220,
220,
220,
220,
220,
16876,
2376,
62,
260,
7501,
3784,
1136,
62,
2539,
7,
1267,
796,
33245,
62,
260,
7501,
3784,
1136,
62,
2539,
7,
6739,
198,
220,
220,
220,
220,
220,
220,
220,
16876,
2376,
62,
260,
7501,
796,
33245,
62,
260,
7501,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30826,
27064,
13,
198,
220,
220,
220,
220,
220,
220,
220,
23578,
5064,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
14804,
40225,
7,
705,
738,
605,
8251,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
*&---------------------------------------------------------------------*
*& Report Z_SWLT_ONE
*&---------------------------------------------------------------------*
*&
*&---------------------------------------------------------------------*
REPORT Z_SWLT_ONE.
START-OF-SELECTION.
SELECT *
FROM ztmonster_header
INTO TABLE @DATA(all_monsters).
DATA(neurotic_monsters) = VALUE ztt_monster_header(
FOR monster_details IN all_monsters WHERE ( sanity_percentage < 20 )
( name = monster_details-name
monster_number = monster_details-monster_number ) ).
| [
9,
5,
10097,
30934,
9,
198,
9,
5,
6358,
1168,
62,
17887,
27734,
62,
11651,
198,
9,
5,
10097,
30934,
9,
198,
9,
5,
198,
9,
5,
10097,
30934,
9,
198,
2200,
15490,
1168,
62,
17887,
27734,
62,
11651,
13,
198,
198,
2257,
7227,
12,
19238,
12,
46506,
2849,
13,
628,
33493,
1635,
198,
220,
220,
220,
16034,
1976,
83,
39050,
62,
25677,
198,
220,
220,
220,
39319,
43679,
2488,
26947,
7,
439,
62,
2144,
5937,
737,
628,
220,
220,
220,
42865,
7,
710,
1434,
13370,
62,
2144,
5937,
8,
796,
26173,
8924,
1976,
926,
62,
39050,
62,
25677,
7,
198,
220,
220,
220,
220,
7473,
9234,
62,
36604,
3268,
477,
62,
2144,
5937,
33411,
357,
34182,
62,
25067,
496,
1279,
1160,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
357,
1438,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
9234,
62,
36604,
12,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
9234,
62,
17618,
796,
9234,
62,
36604,
12,
39050,
62,
17618,
1267,
6739,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_abapgit_gui_page_debuginfo DEFINITION
PUBLIC
INHERITING FROM zcl_abapgit_gui_component
FINAL
CREATE PRIVATE .
PUBLIC SECTION.
INTERFACES zif_abapgit_gui_event_handler .
INTERFACES zif_abapgit_gui_renderable .
CLASS-METHODS create
RETURNING
VALUE(ri_page) TYPE REF TO zif_abapgit_gui_renderable
RAISING
zcx_abapgit_exception .
METHODS constructor
RAISING
zcx_abapgit_exception .
PROTECTED SECTION.
PRIVATE SECTION.
CONSTANTS c_exit_standalone TYPE progname VALUE 'ZABAPGIT_USER_EXIT' ##NO_TEXT.
CONSTANTS c_exit_class TYPE seoclsname VALUE 'ZCL_ABAPGIT_USER_EXIT' ##NO_TEXT.
CONSTANTS c_exit_interface TYPE seoclsname VALUE 'ZIF_ABAPGIT_EXIT' ##NO_TEXT.
CONSTANTS:
BEGIN OF c_action,
save TYPE string VALUE 'save',
back TYPE string VALUE 'back',
END OF c_action.
DATA mv_html TYPE string .
CLASS-METHODS build_toolbar
RETURNING
VALUE(ro_menu) TYPE REF TO zcl_abapgit_html_toolbar.
METHODS render_debug_info
RETURNING
VALUE(ri_html) TYPE REF TO zif_abapgit_html
RAISING
zcx_abapgit_exception .
METHODS render_exit_info
RETURNING
VALUE(ri_html) TYPE REF TO zif_abapgit_html
RAISING
zcx_abapgit_exception .
METHODS render_exit_info_methods
IMPORTING
!it_source TYPE string_table
RETURNING
VALUE(ri_html) TYPE REF TO zif_abapgit_html
RAISING
zcx_abapgit_exception .
METHODS render_supported_object_types
RETURNING
VALUE(rv_html) TYPE string .
METHODS render_scripts
RETURNING
VALUE(ri_html) TYPE REF TO zif_abapgit_html
RAISING
zcx_abapgit_exception .
METHODS get_jump_object
IMPORTING
!iv_obj_type TYPE csequence DEFAULT 'CLAS'
!iv_obj_name TYPE csequence
RETURNING
VALUE(rv_html) TYPE string .
ENDCLASS.
CLASS zcl_abapgit_gui_page_debuginfo IMPLEMENTATION.
METHOD build_toolbar.
CREATE OBJECT ro_menu EXPORTING iv_id = 'toolbar-debug'.
ro_menu->add(
iv_txt = 'Save'
iv_act = c_action-save ).
ro_menu->add(
iv_txt = 'Back'
iv_act = c_action-back ).
ENDMETHOD.
METHOD constructor.
super->constructor( ).
ENDMETHOD.
METHOD create.
DATA lo_component TYPE REF TO zcl_abapgit_gui_page_debuginfo.
CREATE OBJECT lo_component.
ri_page = zcl_abapgit_gui_page_hoc=>create(
iv_page_title = 'Debug Info'
io_page_menu = build_toolbar( )
ii_child_component = lo_component ).
ENDMETHOD.
METHOD get_jump_object.
DATA lv_encode TYPE string.
DATA li_html TYPE REF TO zif_abapgit_html.
CREATE OBJECT li_html TYPE zcl_abapgit_html.
lv_encode = zcl_abapgit_html_action_utils=>jump_encode( iv_obj_type = |{ iv_obj_type }|
iv_obj_name = |{ iv_obj_name }| ).
rv_html = li_html->a(
iv_txt = |{ iv_obj_name }|
iv_act = |{ zif_abapgit_definitions=>c_action-jump }?{ lv_encode }| ).
ENDMETHOD.
METHOD render_debug_info.
DATA: lt_ver_tab TYPE filetable,
lv_rc TYPE i,
ls_release TYPE zif_abapgit_environment=>ty_release_sp,
lv_gui_version TYPE string,
ls_version LIKE LINE OF lt_ver_tab,
lv_devclass TYPE devclass.
cl_gui_frontend_services=>get_gui_version(
CHANGING version_table = lt_ver_tab rc = lv_rc
EXCEPTIONS OTHERS = 1 ).
READ TABLE lt_ver_tab INTO ls_version INDEX 1. " gui release
lv_gui_version = ls_version-filename.
READ TABLE lt_ver_tab INTO ls_version INDEX 2. " gui sp
lv_gui_version = |{ lv_gui_version }.{ ls_version-filename }|.
READ TABLE lt_ver_tab INTO ls_version INDEX 3. " gui patch
lv_gui_version = |{ lv_gui_version }.{ ls_version-filename }|.
CREATE OBJECT ri_html TYPE zcl_abapgit_html.
IF zcl_abapgit_factory=>get_environment( )->is_merged( ) = abap_true.
ri_html->add( '<h2>abapGit - Standalone Version</h2>' ).
ri_html->add( '<div>To keep abapGit up-to-date (or also to contribute) you need to' ).
ri_html->add( |install it as a repository ({ ri_html->a(
iv_txt = 'Developer Version'
iv_act = 'https://github.com/abapGit/abapGit'
iv_typ = zif_abapgit_html=>c_action_type-url ) }).</div>| ).
ELSE.
lv_devclass = zcl_abapgit_services_abapgit=>is_installed( ).
ri_html->add( '<h2>abapGit - Developer Version</h2>' ).
ri_html->add( |<div>abapGit is installed in package { lv_devclass }</div>| ).
ENDIF.
ri_html->add( '<br><div>' ).
ri_html->add_a(
iv_txt = 'Contribution guidelines for abapGit'
iv_act = 'https://github.com/abapGit/abapGit/blob/main/CONTRIBUTING.md'
iv_typ = zif_abapgit_html=>c_action_type-url ).
ri_html->add( '</div>' ).
ls_release = zcl_abapgit_factory=>get_environment( )->get_basis_release( ).
ri_html->add( '<h2>Environment</h2>' ).
ri_html->add( |<table>| ).
ri_html->add( |<tr><td>abapGit version:</td><td>{ zif_abapgit_version=>c_abap_version }</td></tr>| ).
ri_html->add( |<tr><td>XML version: </td><td>{ zif_abapgit_version=>c_xml_version }</td></tr>| ).
ri_html->add( |<tr><td>GUI version: </td><td>{ lv_gui_version }</td></tr>| ).
ri_html->add( |<tr><td>APACK version: </td><td>{
zcl_abapgit_apack_migration=>c_apack_interface_version }</td></tr>| ).
ri_html->add( |<tr><td>LCL_TIME: </td><td>{ zcl_abapgit_time=>get_unix( ) }</td></tr>| ).
ri_html->add( |<tr><td>SY time: </td><td>{ sy-datum } { sy-uzeit } { sy-tzone }</td></tr>| ).
ri_html->add( |<tr><td>SY release: </td><td>{ ls_release-release } SP { ls_release-sp }</td></tr>| ).
ri_html->add( |</table>| ).
ri_html->add( |<br>| ).
ENDMETHOD.
METHOD render_exit_info.
DATA lt_source TYPE string_table.
DATA ls_class_key TYPE seoclskey.
DATA lo_oo_serializer TYPE REF TO zcl_abapgit_oo_serializer.
CREATE OBJECT ri_html TYPE zcl_abapgit_html.
ri_html->add( '<h2>User Exits</h2>' ).
IF zcl_abapgit_factory=>get_environment( )->is_merged( ) = abap_true.
" Standalone version
READ REPORT c_exit_standalone INTO lt_source.
IF sy-subrc = 0.
ri_html->add( |<div>User exits are active (include { get_jump_object(
iv_obj_type = 'PROG'
iv_obj_name = c_exit_standalone ) } found)</div><br>| ).
ri_html->add( render_exit_info_methods( lt_source ) ).
ELSE.
ri_html->add( |<div>No user exits implemented (include { c_exit_standalone } not found)</div><br>| ).
ENDIF.
ELSE.
" Developer version
TRY.
ls_class_key-clsname = c_exit_class.
CREATE OBJECT lo_oo_serializer.
lt_source = lo_oo_serializer->serialize_abap_clif_source( ls_class_key ).
ri_html->add( |<div>User exits are active (class { get_jump_object( c_exit_class ) } found)</div><br>| ).
ri_html->add( render_exit_info_methods( lt_source ) ).
CATCH cx_root.
ri_html->add( |<div>No user exits implemented (class { c_exit_class } not found)</div><br>| ).
ENDTRY.
ENDIF.
ENDMETHOD.
METHOD render_exit_info_methods.
DATA:
lo_scanner TYPE REF TO cl_oo_source_scanner_class,
lx_exc TYPE REF TO cx_root,
lt_methods TYPE cl_oo_source_scanner_class=>type_method_implementations,
lv_method LIKE LINE OF lt_methods,
lt_source TYPE seop_source_string,
lv_source TYPE string,
lv_rest TYPE string.
CREATE OBJECT ri_html TYPE zcl_abapgit_html.
ri_html->add( '<table border="1px"><thead><tr>' ).
ri_html->add( '<td>Exit</td><td class="center">Implemented?</td>' ).
ri_html->add( '</tr></thead><tbody>' ).
TRY.
lo_scanner = cl_oo_source_scanner_class=>create_class_scanner(
clif_name = c_exit_class
source = it_source ).
lo_scanner->scan( ).
lt_methods = lo_scanner->get_method_implementations( ).
LOOP AT lt_methods INTO lv_method WHERE table_line CS c_exit_interface.
lt_source = lo_scanner->get_method_impl_source( lv_method ).
DELETE lt_source INDEX 1.
DELETE lt_source INDEX lines( lt_source ).
CONCATENATE LINES OF lt_source INTO lv_source.
lv_source = to_upper( condense(
val = lv_source
del = ` ` ) ).
SPLIT lv_method AT '~' INTO lv_rest lv_method.
ri_html->add( |<tr><td>{ lv_method }</td><td class="center">| ).
IF lv_source IS INITIAL OR lv_source = 'RETURN.' OR lv_source = 'EXIT.'.
ri_html->add( 'No' ).
ELSE.
ri_html->add( '<strong>Yes</strong>' ).
ENDIF.
ri_html->add( |</td></tr>| ).
ENDLOOP.
CATCH cx_root INTO lx_exc.
ri_html->add( |<tr><td colspan="2">{ lx_exc->get_text( ) }</td></tr>| ).
ENDTRY.
ri_html->add( '</tbody></table>' ).
ENDMETHOD.
METHOD render_scripts.
CREATE OBJECT ri_html TYPE zcl_abapgit_html.
ri_html->set_title( cl_abap_typedescr=>describe_by_object_ref( me )->get_relative_name( ) ).
ri_html->add( 'debugOutput("<table><tr><td>Browser:</td><td>" + navigator.userAgent + ' &&
'"</td></tr><tr><td>Frontend time:</td><td>" + new Date() + "</td></tr></table>", "debug_info");' ).
ENDMETHOD.
METHOD render_supported_object_types.
DATA: lv_list TYPE string,
li_html TYPE REF TO zif_abapgit_html,
lt_types TYPE zcl_abapgit_objects=>ty_types_tt,
lv_type LIKE LINE OF lt_types,
lt_obj TYPE STANDARD TABLE OF ko100 WITH DEFAULT KEY,
lv_class TYPE seoclsname,
li_object TYPE REF TO zif_abapgit_object,
ls_item TYPE zif_abapgit_definitions=>ty_item,
ls_metadata TYPE zif_abapgit_definitions=>ty_metadata,
lv_step TYPE zif_abapgit_definitions=>ty_deserialization_step,
lt_steps TYPE zif_abapgit_definitions=>ty_deserialization_step_tt.
FIELD-SYMBOLS: <ls_obj> TYPE ko100.
CALL FUNCTION 'TR_OBJECT_TABLE'
TABLES
wt_object_text = lt_obj.
lt_types = zcl_abapgit_objects=>supported_list( ).
CREATE OBJECT li_html TYPE zcl_abapgit_html.
rv_html = '<h2>Object Types</h2>'.
rv_html = rv_html && li_html->a(
iv_txt = 'Complete list of object types supported by abapGit'
iv_act = 'https://docs.abapgit.org/ref-supported.html'
iv_typ = zif_abapgit_html=>c_action_type-url ).
rv_html = rv_html && |<br><br>Supported object types in <strong>this</strong> system:<br><br>|.
rv_html = rv_html && |<table border="1px"><thead><tr>|.
rv_html = rv_html && |<td>Object</td><td>Description</td><td>Class</td><td>Version</td>|.
rv_html = rv_html && |<td class="center">DDIC</td>|.
rv_html = rv_html && |<td class="center">Delete TADIR</td><td>Steps</td>|.
rv_html = rv_html && |</tr></thead><tbody>|.
LOOP AT lt_types INTO lv_type.
lv_class = 'ZCL_ABAPGIT_OBJECT_' && lv_type.
rv_html = rv_html && |<tr>|.
rv_html = rv_html && |<td>{ lv_type }</td>|.
READ TABLE lt_obj ASSIGNING <ls_obj> WITH KEY pgmid = 'R3TR' object = lv_type.
IF sy-subrc = 0.
rv_html = rv_html && |<td>{ <ls_obj>-text }</td>|.
ELSE.
rv_html = rv_html && |<td class="warning">No description</td>|.
ENDIF.
TRY.
ls_item-obj_type = lv_type.
ls_item-obj_name = 'TEST'.
CREATE OBJECT li_object TYPE (lv_class)
EXPORTING
is_item = ls_item
iv_language = sy-langu.
rv_html = rv_html && |<td>{ get_jump_object( lv_class ) }</td>|.
CATCH cx_sy_create_object_error.
TRY. " 2nd step, try looking for plugins
CREATE OBJECT li_object TYPE zcl_abapgit_objects_bridge
EXPORTING
is_item = ls_item.
CATCH cx_sy_create_object_error.
rv_html = rv_html && |<td class="error" colspan="5">{ lv_class } - error instantiating class</td>|.
CONTINUE.
ENDTRY.
rv_html = rv_html && |<td>{ get_jump_object( lv_class ) } (Plug-in)</td>|.
ENDTRY.
ls_metadata = li_object->get_metadata( ).
rv_html = rv_html && |<td>{ ls_metadata-version }</td>|.
rv_html = rv_html && |<td class="center">{ ls_metadata-ddic }</td>|.
rv_html = rv_html && |<td class="center">{ ls_metadata-delete_tadir }</td>|.
lt_steps = li_object->get_deserialize_steps( ).
CLEAR lv_list.
LOOP AT lt_steps INTO lv_step.
IF lv_list IS INITIAL.
lv_list = lv_step.
ELSE.
lv_list = lv_list && `, ` && lv_step.
ENDIF.
ENDLOOP.
rv_html = rv_html && |<td>{ lv_list }</td>|.
rv_html = rv_html && |</tr>|.
ENDLOOP.
rv_html = rv_html && |</tbody></table>|.
rv_html = rv_html && |<br>|.
ENDMETHOD.
METHOD zif_abapgit_gui_event_handler~on_event.
DATA:
lv_path TYPE string,
lv_filename TYPE string,
li_fe_serv TYPE REF TO zif_abapgit_frontend_services.
CASE ii_event->mv_action.
WHEN c_action-save.
CONCATENATE 'abapGit_Debug_Info_' sy-datlo '_' sy-timlo '.html' INTO lv_filename.
li_fe_serv = zcl_abapgit_ui_factory=>get_frontend_services( ).
lv_path = li_fe_serv->show_file_save_dialog(
iv_title = 'abapGit - Debug Info'
iv_extension = 'html'
iv_default_filename = lv_filename ).
li_fe_serv->file_download(
iv_path = lv_path
iv_xstr = zcl_abapgit_convert=>string_to_xstring_utf8( mv_html ) ).
MESSAGE 'abapGit Debug Info successfully saved' TYPE 'S'.
rs_handled-state = zcl_abapgit_gui=>c_event_state-re_render.
WHEN c_action-back.
rs_handled-state = zcl_abapgit_gui=>c_event_state-go_back.
ENDCASE.
ENDMETHOD.
METHOD zif_abapgit_gui_renderable~render.
gui_services( )->register_event_handler( me ).
CREATE OBJECT ri_html TYPE zcl_abapgit_html.
ri_html->add( '<div id="debug_info" class="debug_container">' ).
ri_html->add( render_debug_info( ) ).
ri_html->add( '</div>' ).
ri_html->add( '<div id="exit_info" class="debug_container">' ).
ri_html->add( render_exit_info( ) ).
ri_html->add( '</div>' ).
ri_html->add( '<div id="supported_objects" class="debug_container">' ).
ri_html->add( render_supported_object_types( ) ).
ri_html->add( '</div>' ).
mv_html = '<!DOCTYPE html><html lang="en"><title>abapGit Debug Info</title></head>'.
mv_html = |<body>{ ri_html->render( ) }</body></html>|.
register_deferred_script( render_scripts( ) ).
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
48317,
62,
7700,
62,
24442,
10951,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
397,
499,
18300,
62,
48317,
62,
42895,
198,
220,
25261,
198,
220,
29244,
6158,
4810,
3824,
6158,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
15596,
62,
30281,
764,
198,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
13287,
540,
764,
628,
220,
220,
220,
42715,
12,
49273,
50,
2251,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
380,
62,
7700,
8,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
13287,
540,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
23772,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
37023,
62,
1481,
17749,
41876,
1172,
3672,
26173,
8924,
705,
57,
6242,
2969,
38,
2043,
62,
29904,
62,
6369,
2043,
6,
22492,
15285,
62,
32541,
13,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
37023,
62,
4871,
41876,
384,
420,
7278,
3672,
26173,
8924,
705,
57,
5097,
62,
6242,
2969,
38,
2043,
62,
29904,
62,
6369,
2043,
6,
22492,
15285,
62,
32541,
13,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
37023,
62,
39994,
41876,
384,
420,
7278,
3672,
26173,
8924,
705,
57,
5064,
62,
6242,
2969,
38,
2043,
62,
6369,
2043,
6,
22492,
15285,
62,
32541,
13,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
269,
62,
2673,
11,
198,
220,
220,
220,
220,
220,
220,
220,
3613,
41876,
4731,
26173,
8924,
705,
21928,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
736,
41876,
4731,
26173,
8924,
705,
1891,
3256,
198,
220,
220,
220,
220,
220,
23578,
3963,
269,
62,
2673,
13,
198,
220,
220,
220,
42865,
285,
85,
62,
6494,
41876,
4731,
764,
628,
220,
220,
220,
42715,
12,
49273,
50,
1382,
62,
25981,
5657,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
305,
62,
26272,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
6494,
62,
25981,
5657,
13,
198,
220,
220,
220,
337,
36252,
50,
8543,
62,
24442,
62,
10951,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
380,
62,
6494,
8,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
6494,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
8543,
62,
37023,
62,
10951,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
380,
62,
6494,
8,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
6494,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
8543,
62,
37023,
62,
10951,
62,
24396,
82,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
270,
62,
10459,
220,
220,
220,
220,
41876,
4731,
62,
11487,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
380,
62,
6494,
8,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
6494,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
8543,
62,
15999,
62,
15252,
62,
19199,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
6494,
8,
41876,
4731,
764,
198,
220,
220,
220,
337,
36252,
50,
8543,
62,
46521,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
380,
62,
6494,
8,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
6494,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
43327,
62,
15252,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
26801,
62,
4906,
220,
220,
41876,
269,
43167,
5550,
38865,
705,
5097,
1921,
6,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
26801,
62,
3672,
220,
220,
41876,
269,
43167,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
6494,
8,
41876,
4731,
764,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
565,
62,
397,
499,
18300,
62,
48317,
62,
7700,
62,
24442,
10951,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
1382,
62,
25981,
5657,
13,
628,
220,
220,
220,
29244,
6158,
25334,
23680,
686,
62,
26272,
7788,
15490,
2751,
21628,
62,
312,
796,
705,
25981,
5657,
12,
24442,
4458,
628,
220,
220,
220,
686,
62,
26272,
3784,
2860,
7,
198,
220,
220,
220,
220,
220,
21628,
62,
14116,
796,
705,
16928,
6,
198,
220,
220,
220,
220,
220,
21628,
62,
529,
796
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
FUNCTION zpof_gtt_ee_sh_hdr_le.
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" REFERENCE(I_APPSYS) TYPE /SAPTRX/APPLSYSTEM
*" REFERENCE(I_EVENT_TYPE) TYPE /SAPTRX/EVTYPES
*" REFERENCE(I_ALL_APPL_TABLES) TYPE TRXAS_TABCONTAINER
*" REFERENCE(I_EVENT_TYPE_CNTL_TABS) TYPE TRXAS_EVENTTYPE_TABS
*" REFERENCE(I_EVENTS) TYPE TRXAS_EVT_CTABS
*" TABLES
*" CT_TRACKINGHEADER STRUCTURE /SAPTRX/BAPI_EVM_HEADER
*" CT_TRACKLOCATION STRUCTURE /SAPTRX/BAPI_EVM_LOCATIONID
*" OPTIONAL
*" CT_TRACKADDRESS STRUCTURE /SAPTRX/BAPI_EVM_ADDRESS OPTIONAL
*" CT_TRACKLOCATIONDESCR STRUCTURE /SAPTRX/BAPI_EVM_LOCDESCR
*" OPTIONAL
*" CT_TRACKLOCADDITIONALID STRUCTURE /SAPTRX/BAPI_EVM_LOCADDID
*" OPTIONAL
*" CT_TRACKPARTNERID STRUCTURE /SAPTRX/BAPI_EVM_PARTNERID
*" OPTIONAL
*" CT_TRACKPARTNERADDID STRUCTURE /SAPTRX/BAPI_EVM_PARTNERADDID
*" OPTIONAL
*" CT_TRACKESTIMDEADLINE STRUCTURE /SAPTRX/BAPI_EVM_ESTIMDEADL
*" OPTIONAL
*" CT_TRACKCONFIRMSTATUS STRUCTURE /SAPTRX/BAPI_EVM_CONFSTAT
*" OPTIONAL
*" CT_TRACKNEXTEVENT STRUCTURE /SAPTRX/BAPI_EVM_NEXTEVENT
*" OPTIONAL
*" CT_TRACKNEXTEVDEADLINES STRUCTURE /SAPTRX/BAPI_EVM_NEXTEVDEADL
*" OPTIONAL
*" CT_TRACKREFERENCES STRUCTURE /SAPTRX/BAPI_EVM_REFERENCE
*" OPTIONAL
*" CT_TRACKMEASURESULTS STRUCTURE /SAPTRX/BAPI_EVM_MEASRESULT
*" OPTIONAL
*" CT_TRACKSTATUSATTRIB STRUCTURE /SAPTRX/BAPI_EVM_STATUSATTR
*" OPTIONAL
*" CT_TRACKPARAMETERS STRUCTURE /SAPTRX/BAPI_EVM_PARAMETERS
*" OPTIONAL
*" CT_TRACKFILEHEADER STRUCTURE /SAPTRX/BAPI_EVM_FILEHEADER
*" OPTIONAL
*" CT_TRACKFILEREF STRUCTURE /SAPTRX/BAPI_EVM_FILEREF OPTIONAL
*" CT_TRACKFILEBIN STRUCTURE /SAPTRX/BAPI_EVM_FILEBIN OPTIONAL
*" CT_TRACKFILECHAR STRUCTURE /SAPTRX/BAPI_EVM_FILECHAR OPTIONAL
*" CT_TRACKTEXTHEADER STRUCTURE /SAPTRX/BAPI_EVM_TEXTHEADER
*" OPTIONAL
*" CT_TRACKTEXTLINES STRUCTURE /SAPTRX/BAPI_EVM_TEXTLINES
*" OPTIONAL
*" CT_TRACKEEMODIFY STRUCTURE /SAPTRX/BAPI_EVM_EE_MODIFY OPTIONAL
*" CT_EXTENSIONIN STRUCTURE BAPIPAREX OPTIONAL
*" CT_EXTENSIONOUT STRUCTURE BAPIPAREX OPTIONAL
*" CT_LOGTABLE STRUCTURE BAPIRET2 OPTIONAL
*" CHANGING
*" REFERENCE(C_EVENTID_MAP) TYPE TRXAS_EVTID_EVTCNT_MAP
*" EXCEPTIONS
*" PARAMETER_ERROR
*" EVENT_DATA_ERROR
*" STOP_PROCESSING
*"----------------------------------------------------------------------
DATA: lo_udm_message TYPE REF TO cx_udm_message,
ls_bapiret TYPE bapiret2.
TRY.
lcl_ae_performer=>get_event_data(
EXPORTING
is_definition = VALUE #( maintab = lif_app_constants=>cs_tabledef-sh_header_new )
io_ae_factory = NEW lcl_ae_factory_sh_header_le( )
iv_appsys = i_appsys
is_event_type = i_event_type
it_all_appl_tables = i_all_appl_tables
it_event_type_cntl_tabs = i_event_type_cntl_tabs
it_events = i_events
CHANGING
ct_eventid_map = c_eventid_map[]
ct_trackingheader = ct_trackingheader[]
ct_tracklocation = ct_tracklocation[]
ct_trackreferences = ct_trackreferences[]
ct_trackparameters = ct_trackparameters[]
).
CATCH cx_udm_message INTO lo_udm_message.
lcl_tools=>get_errors_log(
EXPORTING
io_umd_message = lo_udm_message
iv_appsys = i_appsys
IMPORTING
es_bapiret = ls_bapiret ).
" add error message
APPEND ls_bapiret TO ct_logtable.
" throw corresponding exception
CASE lo_udm_message->textid.
WHEN lif_ef_constants=>cs_errors-stop_processing.
RAISE stop_processing.
WHEN lif_ef_constants=>cs_errors-table_determination.
RAISE event_data_error.
ENDCASE.
ENDTRY.
ENDFUNCTION.
| [
42296,
4177,
2849,
1976,
79,
1659,
62,
70,
926,
62,
1453,
62,
1477,
62,
71,
7109,
62,
293,
13,
198,
9,
1,
10097,
23031,
198,
9,
1,
9,
1,
14565,
26491,
25,
198,
9,
1,
220,
30023,
9863,
2751,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
40,
62,
2969,
3705,
16309,
8,
41876,
220,
1220,
50,
2969,
5446,
55,
14,
2969,
6489,
23060,
25361,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
40,
62,
20114,
3525,
62,
25216,
8,
41876,
220,
1220,
50,
2969,
5446,
55,
14,
20114,
9936,
47,
1546,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
40,
62,
7036,
62,
2969,
6489,
62,
5603,
9148,
1546,
8,
41876,
220,
7579,
55,
1921,
62,
5603,
2749,
1340,
30339,
1137,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
40,
62,
20114,
3525,
62,
25216,
62,
34,
11251,
43,
62,
5603,
4462,
8,
41876,
220,
7579,
55,
1921,
62,
20114,
3525,
25216,
62,
5603,
4462,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
40,
62,
20114,
15365,
8,
41876,
220,
7579,
55,
1921,
62,
20114,
51,
62,
4177,
32,
4462,
198,
9,
1,
220,
309,
6242,
28378,
198,
9,
1,
220,
220,
220,
220,
220,
16356,
62,
5446,
8120,
2751,
37682,
1137,
19269,
18415,
11335,
220,
1220,
50,
2969,
5446,
55,
14,
33,
17614,
62,
36,
15996,
62,
37682,
1137,
198,
9,
1,
220,
220,
220,
220,
220,
16356,
62,
5446,
8120,
29701,
6234,
19269,
18415,
11335,
220,
1220,
50,
2969,
5446,
55,
14,
33,
17614,
62,
36,
15996,
62,
29701,
6234,
2389,
198,
9,
1,
220,
220,
220,
220,
220,
220,
39852,
2849,
1847,
198,
9,
1,
220,
220,
220,
220,
220,
16356,
62,
5446,
8120,
2885,
7707,
7597,
19269,
18415,
11335,
220,
1220,
50,
2969,
5446,
55,
14,
33,
17614,
62,
36,
15996,
62,
2885,
7707,
7597,
39852,
2849,
1847,
198,
9,
1,
220,
220,
220,
220,
220,
16356,
62,
5446,
8120,
29701,
6234,
30910,
9419,
19269,
18415,
11335,
220,
1220,
50,
2969,
5446,
55,
14,
33,
17614,
62,
36,
15996,
62,
29701,
30910,
9419,
198,
9,
1,
220,
220,
220,
220,
220,
220,
39852,
2849,
1847,
198,
9,
1,
220,
220,
220,
220,
220,
16356,
62,
5446,
8120,
29701,
29266,
17941,
1847,
2389,
19269,
18415,
11335,
220,
1220,
50,
2969,
5446,
55,
14,
33,
17614,
62,
36,
15996,
62,
29701,
29266,
2389,
198,
9,
1,
220,
220,
220,
220,
220,
220,
39852,
2849,
1847,
198,
9,
1,
220,
220,
220,
220,
220,
16356,
62,
5446,
8120,
30709,
21479,
2389,
19269,
18415,
11335,
220,
1220,
50,
2969,
5446,
55,
14,
33,
17614,
62,
36,
15996,
62,
30709,
21479,
2389,
198,
9,
1,
220,
220,
220,
220,
220,
220,
39852,
2849,
1847,
198,
9,
1,
220,
220,
220,
220,
220,
16356,
62,
5446,
8120,
30709,
21479,
29266,
2389,
19269,
18415,
11335,
220,
1220,
50,
2969,
5446,
55,
14,
33,
17614,
62,
36,
15996,
62,
30709,
21479,
29266,
2389,
198,
9,
1,
220,
220,
220,
220,
220,
220,
39852,
2849,
1847,
198,
9,
1,
220,
220,
220,
220,
220,
16356,
62,
5446,
8120,
6465,
3955,
7206,
2885,
24027,
19269,
18415,
11335,
220,
1220,
50,
2969,
5446,
55,
14,
33,
17614,
62,
36,
15996,
62,
6465,
3955,
7206,
2885,
43,
198,
9,
1,
220,
220,
220,
220,
220,
220,
39852,
2849,
1847,
198,
9,
1,
220,
220,
220,
220,
220,
16356,
62,
5446,
8120,
10943,
39776,
44,
35744,
2937,
19269,
18415,
11335,
220,
1220,
50,
2969,
5446,
55,
14,
33,
17614,
62,
36,
15996,
62,
10943,
37,
35744,
198,
9,
1,
220,
220,
220,
220,
220,
220,
39852,
2849,
1847,
198,
9,
1,
220,
220,
220,
220,
220,
16356,
62,
5446,
8120,
45,
6369,
9328,
53,
3525,
19269,
18415,
11335,
220,
1220,
50,
2969,
5446,
55,
14,
33,
17614,
62,
36,
15996,
62,
45,
6369,
9328,
53,
3525,
198,
9,
1,
220,
220,
220,
220,
220,
220,
39852,
2849,
1847,
198,
9,
1,
220,
220,
220,
220,
220,
16356,
62,
5446,
8120,
45,
6369,
9328,
53,
7206,
2885,
34509,
1546,
19269,
18415,
11335,
220,
1220,
50,
2969,
5446,
55,
14,
33,
17614,
62,
36,
15996,
62,
45,
6369,
9328,
53,
7206,
2885,
43,
198,
9,
1,
220,
220,
220,
220,
220,
220,
39852,
2849,
1847,
198,
9,
1,
220,
220,
220,
220,
220,
16356,
62,
5446,
8120,
2200,
24302,
24181,
1546,
19269,
18415,
11335,
220,
1220,
50,
2969,
5446,
55,
14,
33,
17614,
62,
36,
15996,
62,
2200,
24302,
18310,
198,
9,
1,
220,
220,
220,
220,
220,
220,
39852,
2849,
1847,
198,
9,
1,
220,
220,
220,
220,
220,
16356,
62,
5446,
8120,
11682,
1921,
29514,
35342,
19269,
18415,
11335,
220,
1220,
50,
2969,
5446,
55,
14,
33,
17614,
62,
36,
15996,
62,
11682,
1921,
19535,
16724,
198,
9,
1,
220,
220,
220,
220,
220,
220,
39852,
2849,
1847,
198,
9,
1,
220,
220,
220,
220,
220,
16356,
62,
5446,
8120,
35744,
2937,
1404,
5446,
9865,
19269,
18415,
11335,
220,
1220,
50,
2969,
5446,
55,
14,
33,
17614,
62,
36,
15996,
62,
35744,
2937,
1404,
5446,
198,
9,
1,
220,
220,
220,
220,
220,
220,
39852,
2849,
1847,
198,
9,
1,
220,
220,
220,
220,
220,
16356,
62,
5446,
8120,
27082,
2390,
2767,
4877,
19269,
18415,
11335,
220,
1220,
50,
2969,
5446,
55,
14,
33,
17614,
62,
36,
15996,
62,
27082,
2390,
2767,
4877,
198,
9,
1,
220,
220,
220,
220,
220,
220,
39852,
2849,
1847,
198,
9,
1,
220,
220,
220,
220,
220,
16356,
62,
5446,
8120,
25664,
37682,
1137,
19269,
18415,
11335,
220,
1220,
50,
2969,
5446,
55,
14,
33,
17614,
62,
36,
15996,
62,
25664,
37682,
1137,
198,
9,
1,
220,
220,
220,
220,
220,
220,
39852,
2849,
1847,
198,
9,
1,
220,
220,
220,
220,
220,
16356,
62,
5446,
8120,
46700,
9338,
37,
19269,
18415,
11335,
220,
1220,
50,
2969,
5446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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_abapgit_gui_functions DEFINITION
PUBLIC
CREATE PUBLIC .
PUBLIC SECTION.
INTERFACES:
zif_abapgit_gui_functions.
ENDCLASS.
CLASS zcl_abapgit_gui_functions IMPLEMENTATION.
METHOD zif_abapgit_gui_functions~gui_is_available.
CALL FUNCTION 'GUI_IS_AVAILABLE'
IMPORTING
return = rv_gui_is_available.
ENDMETHOD.
METHOD zif_abapgit_gui_functions~is_sapgui_for_java.
CALL FUNCTION 'GUI_HAS_JAVABEANS'
IMPORTING
return = rv_result.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
48317,
62,
12543,
2733,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
25,
198,
220,
220,
220,
220,
220,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
12543,
2733,
13,
198,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
565,
62,
397,
499,
18300,
62,
48317,
62,
12543,
2733,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
12543,
2733,
93,
48317,
62,
271,
62,
15182,
13,
628,
220,
220,
220,
42815,
29397,
4177,
2849,
705,
40156,
62,
1797,
62,
10116,
32,
4146,
17534,
6,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
796,
374,
85,
62,
48317,
62,
271,
62,
15182,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
12543,
2733,
93,
271,
62,
82,
499,
48317,
62,
1640,
62,
12355,
13,
628,
220,
220,
220,
42815,
29397,
4177,
2849,
705,
40156,
62,
39,
1921,
62,
41,
10116,
6242,
36,
15037,
6,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1441,
796,
374,
85,
62,
20274,
13,
628,
220,
23578,
49273,
13,
198,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
class ZCL_ZODATA4_MPC definition
public
inheriting from /IWBEP/CL_V4_ABS_MODEL_PROV
create public .
public section.
types:
TS_ZENTITYNAME type USR02 .
types:
TT_ZENTITYNAME type standard table of TS_ZENTITYNAME .
methods /IWBEP/IF_V4_MP_BASIC~DEFINE
redefinition .
protected section.
private section.
methods DEFINE_ZENTITYNAME
importing
!IO_MODEL type ref to /IWBEP/IF_V4_MED_MODEL
raising
/IWBEP/CX_GATEWAY .
ENDCLASS.
CLASS ZCL_ZODATA4_MPC IMPLEMENTATION.
method /IWBEP/IF_V4_MP_BASIC~DEFINE.
*&----------------------------------------------------------------------------------------------*
*&* This class has been generated on 28.05.2019 10:22:32 in client 001
*&*
*&* WARNING--> NEVER MODIFY THIS CLASS <--WARNING
*&* If you want to change the MPC implementation, use the
*&* generated methods inside MPC subclass - ZCL_ZODATA4_MPC_EXT
*&-----------------------------------------------------------------------------------------------*
define_zentityname( io_model ).
endmethod.
method DEFINE_ZENTITYNAME.
*&----------------------------------------------------------------------------------------------*
*&* This class has been generated on 28.05.2019 10:22:32 in client 001
*&*
*&* WARNING--> NEVER MODIFY THIS CLASS <--WARNING
*&* If you want to change the MPC implementation, use the
*&* generated methods inside MPC subclass - ZCL_ZODATA4_MPC_EXT
*&-----------------------------------------------------------------------------------------------*
DATA lo_entity_type TYPE REF TO /iwbep/if_v4_med_entity_type.
DATA lo_property TYPE REF TO /iwbep/if_v4_med_prim_prop.
DATA lv_zentityname TYPE usr02.
***********************************************************************************************************************************
* ENTITY - zentityname
***********************************************************************************************************************************
lo_entity_type = io_model->create_entity_type_by_struct( iv_entity_type_name = 'ZENTITYNAME' is_structure = lv_zentityname
iv_add_conv_to_prim_props = abap_true ). "#EC NOTEXT
lo_entity_type->set_edm_name( 'zentityname' ). "#EC NOTEXT
***********************************************************************************************************************************
* Properties
***********************************************************************************************************************************
lo_property = lo_entity_type->create_prim_property( iv_property_name = 'BNAME' ). "#EC NOTEXT
lo_property->set_add_annotations( abap_true ).
lo_property->set_edm_name( 'bname' ). "#EC NOTEXT
lo_property->set_edm_type( iv_edm_type = 'String' ). "#EC NOTEXT
lo_property->set_is_key( ).
lo_property->set_max_length( iv_max_length = '12' ). "#EC NOTEXT
endmethod.
ENDCLASS.
| [
4871,
1168,
5097,
62,
57,
3727,
13563,
19,
62,
44,
5662,
6770,
198,
220,
1171,
198,
220,
10639,
1780,
422,
1220,
40,
45607,
8905,
14,
5097,
62,
53,
19,
62,
32,
4462,
62,
33365,
3698,
62,
41283,
198,
220,
2251,
1171,
764,
198,
198,
11377,
2665,
13,
628,
220,
3858,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
26136,
62,
57,
3525,
9050,
20608,
2099,
1294,
49,
2999,
764,
198,
220,
3858,
25,
198,
220,
220,
220,
220,
220,
220,
220,
220,
26653,
62,
57,
3525,
9050,
20608,
2099,
3210,
3084,
286,
26136,
62,
57,
3525,
9050,
20608,
764,
628,
220,
5050,
1220,
40,
45607,
8905,
14,
5064,
62,
53,
19,
62,
7378,
62,
33,
1921,
2149,
93,
7206,
29940,
198,
220,
220,
220,
34087,
17750,
764,
198,
24326,
2665,
13,
198,
19734,
2665,
13,
628,
220,
5050,
23449,
8881,
62,
57,
3525,
9050,
20608,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
9399,
62,
33365,
3698,
2099,
1006,
284,
1220,
40,
45607,
8905,
14,
5064,
62,
53,
19,
62,
30733,
62,
33365,
3698,
198,
220,
220,
220,
8620,
198,
220,
220,
220,
220,
220,
1220,
40,
45607,
8905,
14,
34,
55,
62,
38,
6158,
27285,
764,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
57,
3727,
13563,
19,
62,
44,
5662,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
2446,
1220,
40,
45607,
8905,
14,
5064,
62,
53,
19,
62,
7378,
62,
33,
1921,
2149,
93,
7206,
29940,
13,
198,
9,
5,
10097,
1783,
26171,
9,
198,
9,
5,
9,
770,
1398,
468,
587,
7560,
319,
2579,
13,
2713,
13,
23344,
838,
25,
1828,
25,
2624,
287,
5456,
3571,
16,
198,
9,
5,
9,
198,
9,
5,
9,
220,
220,
220,
220,
220,
220,
39410,
46904,
33602,
19164,
5064,
56,
12680,
42715,
1279,
438,
31502,
198,
9,
5,
9,
220,
220,
1002,
345,
765,
284,
1487,
262,
4904,
34,
7822,
11,
779,
262,
198,
9,
5,
9,
220,
220,
7560,
5050,
2641,
4904,
34,
47611,
532,
1168,
5097,
62,
57,
3727,
13563,
19,
62,
44,
5662,
62,
13918,
198,
9,
5,
10097,
1783,
24305,
9,
198,
220,
8160,
62,
89,
26858,
3672,
7,
33245,
62,
19849,
6739,
198,
220,
886,
24396,
13,
628,
198,
220,
2446,
23449,
8881,
62,
57,
3525,
9050,
20608,
13,
198,
9,
5,
10097,
1783,
26171,
9,
198,
9,
5,
9,
770,
1398,
468,
587,
7560,
319,
2579,
13,
2713,
13,
23344,
838,
25,
1828,
25,
2624,
287,
5456,
3571,
16,
198,
9,
5,
9,
198,
9,
5,
9,
220,
220,
220,
220,
220,
220,
39410,
46904,
33602,
19164,
5064,
56,
12680,
42715,
1279,
438,
31502,
198,
9,
5,
9,
220,
220,
1002,
345,
765,
284,
1487,
262,
4904,
34,
7822,
11,
779,
262,
198,
9,
5,
9,
220,
220,
7560,
5050,
2641,
4904,
34,
47611,
532,
1168,
5097,
62,
57,
3727,
13563,
19,
62,
44,
5662,
62,
13918,
198,
9,
5,
10097,
1783,
24305,
9,
628,
42865,
2376,
62,
26858,
62,
4906,
220,
220,
220,
41876,
4526,
37,
5390,
1220,
14246,
65,
538,
14,
361,
62,
85,
19,
62,
1150,
62,
26858,
62,
4906,
13,
198,
42865,
2376,
62,
26745,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1220,
14246,
65,
538,
14,
361,
62,
85,
19,
62,
1150,
62,
19795,
62,
22930,
13,
198,
42865,
300,
85,
62,
89,
26858,
3672,
220,
41876,
514,
81,
2999,
13,
198,
17174,
17174,
17174,
17174,
8162,
198,
9,
220,
220,
47353,
9050,
532,
1976,
26858,
3672,
198,
17174,
17174,
17174,
17174,
8162,
198,
2376,
62,
26858,
62,
4906,
796,
33245,
62,
19849,
3784,
17953,
62,
26858,
62,
4906,
62,
1525,
62,
7249,
7,
21628,
62,
26858,
62,
4906,
62,
3672,
796,
705,
57,
3525,
9050,
20608,
6,
318,
62,
301,
5620,
796,
300,
85,
62,
89,
26858,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
2860,
62,
42946,
62,
1462,
62,
19795,
62,
1676,
862,
796,
450,
499,
62,
7942,
6739,
25113,
2943,
5626,
13918,
628,
2376,
62,
26858,
62,
4906,
3784,
2617,
62,
276,
76,
62,
3672,
7,
705,
89,
26858,
3672,
6,
6739,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25113,
2943,
5626,
13918,
198,
198,
17174,
17174,
17174,
17174,
8162,
198,
9,
220,
220,
24946,
198,
17174,
17174,
17174,
17174,
8162,
198,
2376,
62,
26745,
796,
2376,
62,
26858,
62,
4906,
3784,
17953,
62,
19795,
62,
26745,
7,
21628,
62,
26745,
62,
3672,
796,
705,
15766,
10067,
6,
6739,
25113,
2943,
5626,
13918,
198,
2376,
62,
26745,
3784,
2617,
62,
2860,
62,
34574,
602,
7,
450,
499,
62,
7942,
6739,
198,
2376,
62,
26745,
3784,
2617,
62,
276,
76,
62,
3672,
7,
705,
65,
3672,
6,
6739,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25113,
2943,
5626,
13918,
198,
2376,
62,
26745,
3784,
2617,
62,
276,
76,
62,
4906,
7,
21628,
62,
276,
76,
62,
4906,
796,
705,
10100,
6,
6739,
220,
220,
220,
220,
220,
220,
25113,
2943,
5626,
13918,
198,
2376,
62,
26745,
3784,
2617,
62,
271,
62,
2539,
7,
6739,
198,
2376,
62,
26745,
3784,
2617,
62,
9806,
62,
13664,
7,
21628,
62,
9806,
62,
13664,
796,
705,
1065,
6,
6739,
220,
220,
220,
220,
220,
220,
25113,
2943,
5626,
13918,
198,
220,
886,
24396,
13,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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.
PUBLIC SECTION.
TYPES:
BEGIN OF ty_cache_signature,
url TYPE string,
type TYPE string,
data TYPE string,
END OF ty_cache_signature.
INTERFACES zif_abapgit_gui_services.
METHODS get_asset RETURNING VALUE(rs_asset) TYPE ty_cache_signature.
PRIVATE SECTION.
DATA ms_last_cache_signature TYPE ty_cache_signature.
ENDCLASS.
CLASS ltcl_gui_mock IMPLEMENTATION.
METHOD zif_abapgit_gui_services~cache_asset.
ms_last_cache_signature-url = iv_url.
ms_last_cache_signature-type = iv_type && '/' && iv_subtype.
ms_last_cache_signature-data = iv_text.
ENDMETHOD.
METHOD get_asset.
rs_asset = ms_last_cache_signature.
ENDMETHOD.
ENDCLASS.
CLASS ltcl_html_processor_test DEFINITION DEFERRED.
CLASS zcl_abapgit_gui_html_processor DEFINITION LOCAL FRIENDS ltcl_html_processor_test.
CLASS ltcl_html_processor_test DEFINITION
FOR TESTING
DURATION SHORT
RISK LEVEL HARMLESS
FINAL.
PRIVATE SECTION.
DATA mv_source TYPE string.
DATA mo_cut TYPE REF TO zcl_abapgit_gui_html_processor.
DATA mo_gui_mock TYPE REF TO ltcl_gui_mock.
METHODS render_html
IMPORTING
iv_src TYPE string
RETURNING
VALUE(rv_html) TYPE string.
METHODS setup.
METHODS process_typical FOR TESTING RAISING zcx_abapgit_exception.
METHODS process_with_preserve FOR TESTING RAISING zcx_abapgit_exception.
METHODS process_no_css FOR TESTING RAISING zcx_abapgit_exception.
METHODS process_fails FOR TESTING RAISING zcx_abapgit_exception.
METHODS find_head_closing_tag FOR TESTING RAISING zcx_abapgit_exception.
ENDCLASS.
CLASS ltcl_html_processor_test IMPLEMENTATION.
METHOD render_html.
rv_html = iv_src.
REPLACE ALL OCCURRENCES OF '\n' IN rv_html WITH cl_abap_char_utilities=>newline.
ENDMETHOD.
METHOD setup.
DATA lo_asset_man TYPE REF TO zcl_abapgit_gui_asset_manager.
CREATE OBJECT lo_asset_man.
lo_asset_man->register_asset( iv_url = 'css/style1.css' iv_type = 'text/css' iv_inline = 'dummy1' ).
lo_asset_man->register_asset( iv_url = 'css/style2.css' iv_type = 'text/css' iv_inline = 'dummy2' ).
lo_asset_man->register_asset( iv_url = 'css/style3.css' iv_type = 'text/css' iv_inline = 'dummy3' ).
CREATE OBJECT mo_cut
EXPORTING
ii_asset_man = lo_asset_man.
CREATE OBJECT mo_gui_mock.
mv_source = render_html(
`<html>\n` &&
` <head>\n` &&
` <title>abapGit</title>\n` &&
` <LINK rel="stylesheet" type="text/css" href="css/style1.css">\n` && " +case & extra space
` <link rel="stylesheet" type="text/css" href="css/style2.css">\n` &&
` <link rel="stylesheet" type="text/css" href="css/style3.css">\n` &&
` <script type="text/javascript" src="js/common.js"></script>\n` &&
` </head>\n` &&
` <body>hello</body>\n` &&
`</html>\n` ).
ENDMETHOD.
METHOD process_typical.
DATA lv_act TYPE string.
lv_act = mo_cut->zif_abapgit_gui_html_processor~process(
iv_html = mv_source
ii_gui_services = mo_gui_mock ).
cl_abap_unit_assert=>assert_equals(
act = lv_act
exp = render_html(
`<html>\n` &&
` <head>\n` &&
` <title>abapGit</title>\n` &&
` <!--<LINK rel="stylesheet" type="text/css" href="css/style1.css">-->\n` &&
` <!--<link rel="stylesheet" type="text/css" href="css/style2.css">-->\n` &&
` <!--<link rel="stylesheet" type="text/css" href="css/style3.css">-->\n` &&
` <script type="text/javascript" src="js/common.js"></script>\n` &&
` <!-- abapgit HTML preprocessor -->\n` &&
` <link rel="stylesheet" type="text/css" href="css/bundle.css">\n` &&
` </head>\n` &&
` <body>hello</body>\n` &&
`</html>\n`
) ).
" GUI call checks
cl_abap_unit_assert=>assert_equals(
act = mo_gui_mock->get_asset( )-url
exp = 'css/bundle.css' ).
cl_abap_unit_assert=>assert_equals(
act = mo_gui_mock->get_asset( )-type
exp = 'text/css' ).
cl_abap_unit_assert=>assert_equals(
act = mo_gui_mock->get_asset( )-data
exp = render_html( 'dummy1\ndummy2\ndummy3' ) ).
ENDMETHOD.
METHOD process_with_preserve.
DATA lv_act TYPE string.
mo_cut->preserve_css( 'css/style2.css' ).
lv_act = mo_cut->zif_abapgit_gui_html_processor~process(
iv_html = mv_source
ii_gui_services = mo_gui_mock ).
cl_abap_unit_assert=>assert_equals(
act = lv_act
exp = render_html(
`<html>\n` &&
` <head>\n` &&
` <title>abapGit</title>\n` &&
` <!--<LINK rel="stylesheet" type="text/css" href="css/style1.css">-->\n` &&
` <link rel="stylesheet" type="text/css" href="css/style2.css">\n` && " Preserved
` <!--<link rel="stylesheet" type="text/css" href="css/style3.css">-->\n` &&
` <script type="text/javascript" src="js/common.js"></script>\n` &&
` <!-- abapgit HTML preprocessor -->\n` &&
` <link rel="stylesheet" type="text/css" href="css/bundle.css">\n` &&
` </head>\n` &&
` <body>hello</body>\n` &&
`</html>\n`
) ).
ENDMETHOD.
METHOD process_no_css.
DATA lv_act TYPE string.
lv_act = mo_cut->zif_abapgit_gui_html_processor~process(
iv_html = '<html><head></head></html>'
ii_gui_services = mo_gui_mock ).
cl_abap_unit_assert=>assert_equals(
act = lv_act
exp = '<html><head></head></html>' ).
ENDMETHOD.
METHOD process_fails.
TRY.
" BTW this is valid HTML, maybe refactor the code ...
mo_cut->zif_abapgit_gui_html_processor~process(
iv_html = '<html><body></body></html>'
ii_gui_services = mo_gui_mock ).
cl_abap_unit_assert=>fail( ).
CATCH zcx_abapgit_exception ##NO_HANDLER.
ENDTRY.
ENDMETHOD.
METHOD find_head_closing_tag.
"given
DATA: lv_head_end TYPE i,
lv_html TYPE string.
lv_html = '<!DOCTYPE html><html><head><title>abapGit</title><link rel="stylesheet" type="text/css" ' &&
'href="css/common.css"><link rel="stylesheet" type="text/css" href="css/ag-icons.css">' &&
'<link rel="stylesheet" type="text/css" href="css/theme-default.css"><script type="text/javascript"' &&
' src="js/common.js"></script></head>'.
"when
TRY.
lv_head_end = mo_cut->find_head_offset( iv_html = lv_html ).
CATCH zcx_abapgit_exception.
cl_abap_unit_assert=>fail( msg = 'HEAD closing tag could not be found' ).
ENDTRY.
"then
cl_abap_unit_assert=>assert_equals(
act = lv_head_end
exp = 299
msg = 'Head closing tag was not found' ).
ENDMETHOD.
ENDCLASS.
| [
31631,
300,
83,
565,
62,
48317,
62,
76,
735,
5550,
20032,
17941,
7473,
43001,
2751,
25261,
13,
198,
220,
44731,
44513,
13,
198,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
1259,
62,
23870,
62,
12683,
1300,
11,
198,
220,
220,
220,
220,
220,
220,
220,
19016,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2099,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1366,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
23870,
62,
12683,
1300,
13,
628,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
30416,
13,
628,
220,
220,
220,
337,
36252,
50,
651,
62,
562,
316,
30826,
4261,
15871,
26173,
8924,
7,
3808,
62,
562,
316,
8,
41876,
1259,
62,
23870,
62,
12683,
1300,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42865,
13845,
62,
12957,
62,
23870,
62,
12683,
1300,
41876,
1259,
62,
23870,
62,
12683,
1300,
13,
198,
10619,
31631,
13,
198,
198,
31631,
300,
83,
565,
62,
48317,
62,
76,
735,
30023,
2538,
10979,
6234,
13,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
30416,
93,
23870,
62,
562,
316,
13,
198,
220,
220,
220,
13845,
62,
12957,
62,
23870,
62,
12683,
1300,
12,
6371,
220,
796,
21628,
62,
6371,
13,
198,
220,
220,
220,
13845,
62,
12957,
62,
23870,
62,
12683,
1300,
12,
4906,
796,
21628,
62,
4906,
11405,
31051,
6,
11405,
21628,
62,
7266,
4906,
13,
198,
220,
220,
220,
13845,
62,
12957,
62,
23870,
62,
12683,
1300,
12,
7890,
796,
21628,
62,
5239,
13,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
651,
62,
562,
316,
13,
198,
220,
220,
220,
44608,
62,
562,
316,
796,
13845,
62,
12957,
62,
23870,
62,
12683,
1300,
13,
198,
220,
23578,
49273,
13,
198,
10619,
31631,
13,
628,
198,
31631,
300,
83,
565,
62,
6494,
62,
41341,
62,
9288,
5550,
20032,
17941,
23449,
1137,
22083,
13,
198,
31631,
1976,
565,
62,
397,
499,
18300,
62,
48317,
62,
6494,
62,
41341,
5550,
20032,
17941,
37347,
1847,
48167,
1677,
5258,
300,
83,
565,
62,
6494,
62,
41341,
62,
9288,
13,
198,
198,
31631,
300,
83,
565,
62,
6494,
62,
41341,
62,
9288,
5550,
20032,
17941,
198,
220,
7473,
43001,
2751,
198,
220,
360,
4261,
6234,
6006,
9863,
198,
220,
45698,
42,
49277,
43638,
5805,
7597,
198,
220,
25261,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42865,
285,
85,
62,
10459,
41876,
4731,
13,
198,
220,
220,
220,
42865,
6941,
62,
8968,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
48317,
62,
6494,
62,
41341,
13,
198,
220,
220,
220,
42865,
6941,
62,
48317,
62,
76,
735,
41876,
4526,
37,
5390,
300,
83,
565,
62,
48317,
62,
76,
735,
13,
628,
220,
220,
220,
337,
36252,
50,
8543,
62,
6494,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
10677,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
6494,
8,
41876,
4731,
13,
628,
220,
220,
220,
337,
36252,
50,
9058,
13,
198,
220,
220,
220,
337,
36252,
50,
1429,
62,
28004,
605,
7473,
43001,
2751,
17926,
1797,
2751,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
198,
220,
220,
220,
337,
36252,
50,
1429,
62,
4480,
62,
18302,
3760,
7473,
43001,
2751,
17926,
1797,
2751,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
198,
220,
220,
220,
337,
36252,
50,
1429,
62,
3919,
62,
25471,
7473,
43001,
2751,
17926,
1797,
2751,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
198,
220,
220,
220,
337,
36252,
50,
1429,
62,
69,
1768,
7473,
43001,
2751,
17926,
1797,
2751,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
198,
220,
220,
220,
337,
36252,
50,
1064,
62,
2256,
62,
565,
2752,
62,
12985,
7473,
43001,
2751,
17926,
1797,
2751,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
198,
10619,
31631,
13,
198,
198,
31631,
300,
83,
565,
62,
6494,
62,
41341,
62,
9288,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
8543,
62,
6494,
13,
198,
220,
220,
220,
374,
85,
62,
6494,
796,
21628,
62,
10677,
13,
198,
220,
220,
220,
45285,
11598,
11096,
440,
4093,
31302,
24181,
1546,
3963,
705,
59,
77,
6,
3268,
374,
85,
62,
6494,
13315,
537,
62,
397,
499,
62,
10641,
62,
315,
2410,
14804,
3605,
1370,
13,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
9058,
13,
628,
220,
220,
220,
42865,
2376,
62,
562,
316,
62,
805,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
48317,
62,
562,
316,
62,
37153,
13,
628,
220,
220,
220,
29244,
6158,
25334,
23680,
2376,
62,
562,
316,
62,
805,
13,
198,
220,
220,
220,
2376,
62,
562,
316,
62,
805,
3784,
30238,
62,
562,
316,
7,
21628,
62,
6371,
796,
705,
25471,
14,
7635,
16,
13,
25471,
6,
21628,
62,
4906,
796,
705,
5239,
14,
25471,
6,
21628,
62,
45145,
796,
705,
67,
13513,
16,
6,
6739,
198,
220,
220,
220,
2376,
62,
562,
316,
62,
805,
3784,
30238,
62,
562,
316,
7,
21628,
62,
6371,
796,
705,
25471,
14,
7635,
17,
13,
25471,
6,
21628,
62,
4906,
796,
705,
5239,
14,
25471,
6,
21628,
62,
45145,
796,
705,
67,
13513,
17,
6,
6739,
198,
220,
220,
220,
2376,
62,
562,
316,
62,
805,
3784,
30238,
62,
562,
316,
7,
21628,
62,
6371,
796,
705,
25471,
14,
7635,
18,
13,
25471,
6,
21628,
62,
4906,
796,
705,
5239,
14,
25471,
6,
21628,
62,
45145,
796,
705,
67,
13513,
18,
6,
6739,
628,
220,
220,
220,
29244,
6158,
25334,
23680,
6941,
62,
8968,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21065,
62,
562,
316,
62,
805,
796,
2376,
62,
562,
316,
62,
805,
13,
628,
220,
220,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
"! <p class="shorttext synchronized" lang="en">Czech</p>
"!
CLASS zcl_csr_8859_2_cs DEFINITION
PUBLIC
INHERITING FROM zcl_csr_8859_2
CREATE PUBLIC .
PUBLIC SECTION.
METHODS constructor .
METHODS get_language
REDEFINITION .
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS zcl_csr_8859_2_cs IMPLEMENTATION.
METHOD constructor.
super->constructor( ).
CONCATENATE
'20612020627920646F206A65206E61206E65206F20206F6420706F2070722070F820726F20736520736F20737420746F'
'207620207679207A61612070636520636820652070652073652076656D20656EED686F20686F646973746A65206B7465'
'6C65206C69206E61206EE9206EEC206EED206F20706F646E6F6A696F73746F75206F7661706F64706F6A70726F70F865'
'736520736F7573746173746973746E746572746EED746F20752070BE6520E16EEDE9686FED2070ED2073ED6D20F86564'
INTO ngrams.
ENDMETHOD.
METHOD get_language.
language = 'cs'.
ENDMETHOD.
ENDCLASS.
| [
40484,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
34,
15356,
3556,
79,
29,
198,
40484,
198,
31631,
1976,
565,
62,
6359,
81,
62,
3459,
3270,
62,
17,
62,
6359,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
6359,
81,
62,
3459,
3270,
62,
17,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
337,
36252,
50,
23772,
764,
628,
220,
220,
220,
337,
36252,
50,
651,
62,
16129,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
764,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
565,
62,
6359,
81,
62,
3459,
3270,
62,
17,
62,
6359,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
23772,
13,
628,
220,
220,
220,
2208,
3784,
41571,
273,
7,
6739,
198,
220,
220,
220,
39962,
1404,
1677,
6158,
198,
220,
220,
220,
705,
22136,
10232,
22136,
26050,
1238,
27720,
37,
22136,
32,
2996,
22136,
36,
43610,
3312,
36,
2996,
22136,
37,
1238,
22136,
37,
2414,
1238,
35402,
37,
1238,
2154,
4761,
1238,
2154,
37,
23,
22745,
2075,
37,
22745,
24760,
22745,
2623,
37,
22745,
31020,
22745,
3510,
37,
6,
198,
220,
220,
220,
705,
1238,
4304,
1238,
22745,
37601,
22745,
32,
44214,
10232,
35402,
24760,
22136,
27412,
1238,
2996,
1238,
2154,
2996,
22745,
24760,
22745,
2791,
3980,
35,
1238,
37466,
41841,
33808,
37,
1238,
33808,
37,
2414,
40035,
2718,
3510,
32,
2996,
22136,
33,
4524,
2996,
6,
198,
220,
220,
220,
705,
21,
34,
2996,
22136,
34,
3388,
22136,
36,
43610,
3312,
6500,
24,
22136,
36,
2943,
22136,
41841,
22136,
37,
1238,
35402,
37,
27720,
36,
21,
37,
21,
32,
38205,
37,
22,
2718,
3510,
37,
2425,
22136,
37,
22,
2791,
1558,
3312,
37,
2414,
35402,
37,
21,
32,
24038,
2075,
37,
2154,
37,
23,
2996,
6,
198,
220,
220,
220,
705,
22,
24760,
22745,
2623,
37,
39251,
2718,
3510,
1558,
31020,
40035,
2718,
3510,
36,
4524,
37680,
1983,
3510,
41841,
22,
3510,
37,
1238,
2425,
1238,
2154,
12473,
2996,
1238,
36,
1433,
41841,
36,
24,
33808,
37,
1961,
1238,
2154,
1961,
1238,
4790,
1961,
21,
35,
1238,
37,
23,
2996,
2414,
6,
198,
220,
220,
220,
39319,
299,
4546,
82,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
651,
62,
16129,
13,
628,
220,
220,
220,
3303,
796,
705,
6359,
4458,
628,
220,
23578,
49273,
13,
628,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS ycl_a2g_json_treemapchart DEFINITION
PUBLIC
INHERITING FROM ycl_a2g_jsonbase
CREATE PUBLIC .
PUBLIC SECTION.
"! Build the class
"! @parameter if_msg_manager | message managere where soter alla message triggered by the applicaition
METHODS constructor
IMPORTING if_msg_manager TYPE REF TO yif_a2g_msg_manager.
TYPES: BEGIN OF ty_s_json_treemapchart,
labels TYPE ycl_a2g_json_chartdata=>ty_s_json_chartdata,
parentlabels TYPE ycl_a2g_json_chartdata=>ty_s_json_chartdata,
sizedata TYPE ycl_a2g_json_chartdata=>ty_s_json_chartdata,
colordata TYPE ycl_a2g_json_chartdata=>ty_s_json_chartdata,
textformat TYPE ycl_a2g_json_textformat=>ty_s_json_textformat,
levels TYPE i,
hintedlevels TYPE i,
minvalue TYPE i,
maxvalue TYPE i,
headercolor TYPE ycl_a2g_json_color=>ty_s_json_color,
colorscale TYPE ycl_a2g_json_treemapchartcols=>ty_s_json_treemapchartcols,
hidetooltips TYPE string,
END OF ty_s_json_treemapchart.
TYPES ty_t_json_treemapchart TYPE STANDARD TABLE OF ty_s_json_treemapchart WITH NON-UNIQUE DEFAULT KEY.
PROTECTED SECTION.
METHODS generate_rules REDEFINITION.
METHODS rebuild_data REDEFINITION.
METHODS push_data REDEFINITION.
DATA: gs_treemapchart TYPE ty_s_json_treemapchart.
PRIVATE SECTION.
ENDCLASS.
CLASS ycl_a2g_json_treemapchart IMPLEMENTATION.
METHOD push_data.
ENDMETHOD.
METHOD rebuild_data.
ENDMETHOD.
METHOD constructor.
super->constructor( if_msg_manager ).
me->gv_data = REF #( me->gs_treemapchart ).
ENDMETHOD.
METHOD generate_rules.
ENDMETHOD.
ENDCLASS.
| [
31631,
331,
565,
62,
64,
17,
70,
62,
17752,
62,
33945,
368,
499,
40926,
5550,
20032,
17941,
198,
220,
44731,
198,
3268,
16879,
2043,
2751,
16034,
331,
565,
62,
64,
17,
70,
62,
17752,
8692,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
366,
0,
10934,
262,
1398,
198,
220,
220,
220,
366,
0,
2488,
17143,
2357,
611,
62,
19662,
62,
37153,
930,
3275,
6687,
260,
810,
264,
19543,
477,
64,
3275,
13973,
416,
262,
2161,
64,
653,
198,
220,
220,
220,
337,
36252,
50,
23772,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
611,
62,
19662,
62,
37153,
41876,
4526,
37,
5390,
331,
361,
62,
64,
17,
70,
62,
19662,
62,
37153,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
347,
43312,
3963,
1259,
62,
82,
62,
17752,
62,
33945,
368,
499,
40926,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
14722,
220,
220,
220,
220,
220,
220,
41876,
331,
565,
62,
64,
17,
70,
62,
17752,
62,
40926,
7890,
14804,
774,
62,
82,
62,
17752,
62,
40926,
7890,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2560,
23912,
1424,
41876,
331,
565,
62,
64,
17,
70,
62,
17752,
62,
40926,
7890,
14804,
774,
62,
82,
62,
17752,
62,
40926,
7890,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
19943,
1045,
220,
220,
220,
220,
41876,
331,
565,
62,
64,
17,
70,
62,
17752,
62,
40926,
7890,
14804,
774,
62,
82,
62,
17752,
62,
40926,
7890,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
951,
585,
1045,
220,
220,
220,
41876,
331,
565,
62,
64,
17,
70,
62,
17752,
62,
40926,
7890,
14804,
774,
62,
82,
62,
17752,
62,
40926,
7890,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2420,
18982,
220,
220,
41876,
331,
565,
62,
64,
17,
70,
62,
17752,
62,
5239,
18982,
14804,
774,
62,
82,
62,
17752,
62,
5239,
18982,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2974,
220,
220,
220,
220,
220,
220,
41876,
1312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
27388,
46170,
41876,
1312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
949,
8367,
220,
220,
220,
220,
41876,
1312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3509,
8367,
220,
220,
220,
220,
41876,
1312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1182,
2798,
45621,
220,
41876,
331,
565,
62,
64,
17,
70,
62,
17752,
62,
8043,
14804,
774,
62,
82,
62,
17752,
62,
8043,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7577,
38765,
220,
220,
41876,
331,
565,
62,
64,
17,
70,
62,
17752,
62,
33945,
368,
499,
40926,
4033,
82,
14804,
774,
62,
82,
62,
17752,
62,
33945,
368,
499,
40926,
4033,
82,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
24519,
316,
970,
41315,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
82,
62,
17752,
62,
33945,
368,
499,
40926,
13,
198,
220,
220,
220,
24412,
47,
1546,
1259,
62,
83,
62,
17752,
62,
33945,
368,
499,
40926,
41876,
49053,
9795,
43679,
3963,
1259,
62,
82,
62,
17752,
62,
33945,
368,
499,
40926,
13315,
44521,
12,
4944,
33866,
8924,
5550,
38865,
35374,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
7716,
62,
38785,
23848,
36,
20032,
17941,
13,
198,
220,
220,
220,
337,
36252,
50,
17884,
62,
7890,
220,
220,
23848,
36,
20032,
17941,
13,
198,
220,
220,
220,
337,
36252,
50,
4574,
62,
7890,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
13,
628,
220,
220,
220,
42865,
25,
308,
82,
62,
33945,
368,
499,
40926,
220,
41876,
1259,
62,
82,
62,
17752,
62,
33945,
368,
499,
40926,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
331,
565,
62,
64,
17,
70,
62,
17752,
62,
33945,
368,
499,
40926,
30023,
2538,
10979,
6234,
13,
198,
220,
337,
36252,
4574,
62,
7890,
13,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
17884,
62,
7890,
13,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
23772,
13,
198,
220,
220,
220,
2208,
3784,
41571,
273,
7,
611,
62,
19662,
62,
37153,
6739,
198,
220,
220,
220,
502,
3784,
70,
85,
62,
7890,
796,
4526,
37,
1303,
7,
502,
3784,
14542,
62,
33945,
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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
******************************************************************************
* Report : ZMSA_R_CHAPTER6_2
* Author : Pawel Grzeskowiak
* Email : [email protected], [email protected]
* WWW : http://pawelgrzeskowiak.pl, http://sapported.com
* Company : Capgemini
*----------------------------------------------------------------------------*
* Change XML content using CL_XML_DOCUMENT class
******************************************************************************
* CHANGE HISTORY : (Latest change first, descending order) *
*----------------------------------------------------------------------------*
* AUTHOR | YYYYMMDD | Description *
*----------------------------------------------------------------------------*
* PawelGrzeskowiak | 20180606 | Initial Version
*----------------------------------------------------------------------------
REPORT zmsa_r_chapter6_2.
CLASS lcl_demo DEFINITION.
PUBLIC SECTION.
CLASS-METHODS main.
ENDCLASS.
CLASS lcl_demo IMPLEMENTATION.
METHOD main.
CONSTANTS: lv_filepath TYPE localfile VALUE 'C:\temp\carr.xml'.
DATA: lo_xml TYPE REF TO cl_xml_document.
CREATE OBJECT lo_xml.
lo_xml->import_from_file( filename = lv_filepath ).
CONSTANTS: cv_currname TYPE string VALUE 'CURRCODE'.
CONSTANTS: cv_currcode_old TYPE string VALUE 'AQD'.
CONSTANTS: cv_currcode_new TYPE string VALUE 'AQQ'.
DATA(lo_node) = lo_xml->find_node( EXPORTING name = cv_currname ).
IF lo_node->get_value( ) = cv_currcode_old.
lo_node->set_value( value = cv_currcode_new ).
ENDIF.
lo_xml->display( ).
ENDMETHOD.
ENDCLASS.
START-OF-SELECTION.
lcl_demo=>main( ). | [
17174,
17174,
46068,
1174,
198,
9,
6358,
220,
1058,
1168,
44,
4090,
62,
49,
62,
41481,
21,
62,
17,
198,
9,
6434,
220,
1058,
35553,
417,
1902,
12271,
74,
322,
32994,
198,
9,
9570,
220,
220,
1058,
35553,
417,
8642,
12271,
74,
322,
32994,
31,
14816,
13,
785,
11,
35553,
417,
8642,
12271,
74,
322,
32994,
31,
11128,
24090,
5362,
13,
785,
198,
9,
13505,
54,
220,
220,
220,
220,
1058,
2638,
1378,
79,
707,
417,
2164,
12271,
74,
322,
32994,
13,
489,
11,
2638,
1378,
82,
1324,
9741,
13,
785,
198,
9,
5834,
1058,
4476,
24090,
5362,
198,
9,
10097,
10541,
9,
198,
9,
9794,
23735,
2695,
1262,
7852,
62,
55,
5805,
62,
38715,
5883,
3525,
1398,
198,
17174,
17174,
46068,
1174,
198,
9,
5870,
27746,
367,
42480,
1058,
357,
39478,
1487,
717,
11,
31491,
1502,
8,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
198,
9,
10097,
10541,
9,
198,
9,
44746,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
575,
26314,
56,
12038,
16458,
930,
12489,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1635,
198,
9,
10097,
10541,
9,
198,
9,
35553,
417,
8642,
12271,
74,
322,
32994,
930,
580,
1795,
33206,
930,
20768,
10628,
198,
9,
10097,
10541,
198,
2200,
15490,
1976,
907,
64,
62,
81,
62,
43582,
21,
62,
17,
13,
198,
198,
31631,
300,
565,
62,
9536,
78,
5550,
20032,
17941,
13,
198,
220,
44731,
44513,
13,
198,
220,
220,
220,
42715,
12,
49273,
50,
1388,
13,
198,
10619,
31631,
13,
198,
198,
31631,
300,
565,
62,
9536,
78,
30023,
2538,
10979,
6234,
13,
198,
220,
337,
36252,
1388,
13,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
300,
85,
62,
7753,
6978,
220,
220,
41876,
1179,
1604,
576,
26173,
8924,
705,
34,
7479,
29510,
59,
66,
3258,
13,
19875,
4458,
198,
220,
220,
220,
42865,
25,
2376,
62,
19875,
220,
220,
220,
220,
41876,
4526,
37,
5390,
537,
62,
19875,
62,
22897,
13,
628,
220,
220,
220,
29244,
6158,
25334,
23680,
2376,
62,
19875,
13,
628,
220,
220,
220,
2376,
62,
19875,
3784,
11748,
62,
6738,
62,
7753,
7,
29472,
796,
300,
85,
62,
7753,
6978,
6739,
628,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
269,
85,
62,
22019,
81,
3672,
41876,
4731,
26173,
8924,
705,
34,
4261,
7397,
16820,
4458,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
269,
85,
62,
22019,
6015,
1098,
62,
727,
41876,
4731,
26173,
8924,
705,
32,
48,
35,
4458,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
269,
85,
62,
22019,
6015,
1098,
62,
3605,
41876,
4731,
26173,
8924,
705,
32,
48,
48,
4458,
628,
220,
220,
220,
42865,
7,
5439,
62,
17440,
8,
796,
2376,
62,
19875,
3784,
19796,
62,
17440,
7,
7788,
15490,
2751,
1438,
796,
269,
85,
62,
22019,
81,
3672,
6739,
628,
220,
220,
220,
16876,
2376,
62,
17440,
3784,
1136,
62,
8367,
7,
1267,
796,
269,
85,
62,
22019,
6015,
1098,
62,
727,
13,
198,
220,
220,
220,
220,
220,
220,
220,
2376,
62,
17440,
3784,
2617,
62,
8367,
7,
1988,
796,
269,
85,
62,
22019,
6015,
1098,
62,
3605,
6739,
198,
220,
220,
220,
23578,
5064,
13,
628,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_excel_style_font DEFINITION
PUBLIC
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
*"* public components of class ZCL_EXCEL_STYLE_FONT
*"* do not include other source files here!!!
DATA bold TYPE flag .
DATA color TYPE zexcel_s_style_color .
CONSTANTS c_family_decorative TYPE zexcel_style_font_family VALUE 5. "#EC NOTEXT
CONSTANTS c_family_modern TYPE zexcel_style_font_family VALUE 3. "#EC NOTEXT
CONSTANTS c_family_none TYPE zexcel_style_font_family VALUE 0. "#EC NOTEXT
CONSTANTS c_family_roman TYPE zexcel_style_font_family VALUE 1. "#EC NOTEXT
CONSTANTS c_family_script TYPE zexcel_style_font_family VALUE 4. "#EC NOTEXT
CONSTANTS c_family_swiss TYPE zexcel_style_font_family VALUE 2. "#EC NOTEXT
CONSTANTS c_name_arial TYPE zexcel_style_font_name VALUE 'Arial'. "#EC NOTEXT
CONSTANTS c_name_calibri TYPE zexcel_style_font_name VALUE 'Calibri'. "#EC NOTEXT
CONSTANTS c_name_cambria TYPE zexcel_style_font_name VALUE 'Cambria'. "#EC NOTEXT
CONSTANTS c_name_roman TYPE zexcel_style_font_name VALUE 'Times New Roman'. "#EC NOTEXT
CONSTANTS c_scheme_major TYPE zexcel_style_font_scheme VALUE 'major'. "#EC NOTEXT
CONSTANTS c_scheme_none TYPE zexcel_style_font_scheme VALUE ''. "#EC NOTEXT
CONSTANTS c_scheme_minor TYPE zexcel_style_font_scheme VALUE 'minor'. "#EC NOTEXT
CONSTANTS c_underline_double TYPE zexcel_style_font_underline VALUE 'double'. "#EC NOTEXT
CONSTANTS c_underline_doubleaccounting TYPE zexcel_style_font_underline VALUE 'doubleAccounting'. "#EC NOTEXT
CONSTANTS c_underline_none TYPE zexcel_style_font_underline VALUE 'none'. "#EC NOTEXT
CONSTANTS c_underline_single TYPE zexcel_style_font_underline VALUE 'single'. "#EC NOTEXT
CONSTANTS c_underline_singleaccounting TYPE zexcel_style_font_underline VALUE 'singleAccounting'. "#EC NOTEXT
DATA family TYPE zexcel_style_font_family VALUE 2. "#EC NOTEXT . . . . . . . . . . . . " .
DATA italic TYPE flag .
DATA name TYPE zexcel_style_font_name VALUE 'Calibri'. "#EC NOTEXT . . . . . . . . . . . . " .
DATA scheme TYPE zexcel_style_font_scheme VALUE 'minor'. "#EC NOTEXT . . . . . . . . . . . . " .
DATA size TYPE zexcel_style_font_size VALUE 11. "#EC NOTEXT . . . . . . . . . . . . " .
DATA strikethrough TYPE flag .
DATA underline TYPE flag .
DATA underline_mode TYPE zexcel_style_font_underline .
METHODS constructor .
METHODS get_structure
RETURNING
VALUE(es_font) TYPE zexcel_s_style_font .
METHODS calculate_text_width
IMPORTING
!i_text TYPE zexcel_cell_value
RETURNING
VALUE(r_width) TYPE i .
*"* protected components of class ZCL_EXCEL_STYLE_FONT
*"* do not include other source files here!!!
*"* protected components of class ZCL_EXCEL_STYLE_FONT
*"* do not include other source files here!!!
PROTECTED SECTION.
PRIVATE SECTION.
*"* private components of class ZCL_EXCEL_STYLE_FONT
*"* do not include other source files here!!!
ENDCLASS.
CLASS zcl_excel_style_font IMPLEMENTATION.
METHOD calculate_text_width.
" Addition to solve issue #120, contribution by Stefan Schmoecker
r_width = strlen( i_text ).
" use scale factor based on default 11
" ( don't know where defaultsetting is stored currently )
r_width = r_width * me->size / 11.
ENDMETHOD.
METHOD constructor.
me->color-rgb = zcl_excel_style_color=>c_black.
me->color-theme = zcl_excel_style_color=>c_theme_not_set.
me->color-indexed = zcl_excel_style_color=>c_indexed_not_set.
me->scheme = zcl_excel_style_font=>c_scheme_minor.
me->underline_mode = zcl_excel_style_font=>c_underline_single.
ENDMETHOD.
METHOD get_structure.
es_font-bold = me->bold.
es_font-italic = me->italic.
es_font-underline = me->underline.
es_font-underline_mode = me->underline_mode.
es_font-strikethrough = me->strikethrough.
es_font-size = me->size.
es_font-color = me->color.
es_font-name = me->name.
es_font-family = me->family.
es_font-scheme = me->scheme.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
1069,
5276,
62,
7635,
62,
10331,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
198,
9,
1,
9,
1171,
6805,
286,
1398,
1168,
5097,
62,
6369,
34,
3698,
62,
2257,
56,
2538,
62,
37,
35830,
198,
9,
1,
9,
466,
407,
2291,
584,
2723,
3696,
994,
10185,
628,
220,
220,
220,
42865,
10758,
41876,
6056,
764,
198,
220,
220,
220,
42865,
3124,
41876,
1976,
1069,
5276,
62,
82,
62,
7635,
62,
8043,
764,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
17989,
62,
12501,
36478,
41876,
1976,
1069,
5276,
62,
7635,
62,
10331,
62,
17989,
26173,
8924,
642,
13,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
17989,
62,
23922,
41876,
1976,
1069,
5276,
62,
7635,
62,
10331,
62,
17989,
26173,
8924,
513,
13,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
17989,
62,
23108,
41876,
1976,
1069,
5276,
62,
7635,
62,
10331,
62,
17989,
26173,
8924,
657,
13,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
17989,
62,
47119,
41876,
1976,
1069,
5276,
62,
7635,
62,
10331,
62,
17989,
26173,
8924,
352,
13,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
17989,
62,
12048,
41876,
1976,
1069,
5276,
62,
7635,
62,
10331,
62,
17989,
26173,
8924,
604,
13,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
17989,
62,
2032,
747,
41876,
1976,
1069,
5276,
62,
7635,
62,
10331,
62,
17989,
26173,
8924,
362,
13,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
3672,
62,
36098,
41876,
1976,
1069,
5276,
62,
7635,
62,
10331,
62,
3672,
26173,
8924,
705,
32,
4454,
4458,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
3672,
62,
9948,
571,
380,
41876,
1976,
1069,
5276,
62,
7635,
62,
10331,
62,
3672,
26173,
8924,
705,
9771,
571,
380,
4458,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
3672,
62,
66,
4131,
7496,
41876,
1976,
1069,
5276,
62,
7635,
62,
10331,
62,
3672,
26173,
8924,
705,
34,
4131,
7496,
4458,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
3672,
62,
47119,
41876,
1976,
1069,
5276,
62,
7635,
62,
10331,
62,
3672,
26173,
8924,
705,
28595,
968,
7993,
4458,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
15952,
1326,
62,
22478,
41876,
1976,
1069,
5276,
62,
7635,
62,
10331,
62,
15952,
1326,
26173,
8924,
705,
22478,
4458,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
15952,
1326,
62,
23108,
41876,
1976,
1069,
5276,
62,
7635,
62,
10331,
62,
15952,
1326,
26173,
8924,
705,
4458,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
15952,
1326,
62,
1084,
273,
41876,
1976,
1069,
5276,
62,
7635,
62,
10331,
62,
15952,
1326,
26173,
8924,
705,
1084,
273,
4458,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
4625,
1370,
62,
23352,
41876,
1976,
1069,
5276,
62,
7635,
62,
10331,
62,
4625,
1370,
26173,
8924,
705,
23352,
4458,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
4625,
1370,
62,
23352,
23317,
278,
41876,
1976,
1069,
5276,
62,
7635,
62,
10331,
62,
4625,
1370,
26173,
8924,
705,
23352,
30116,
278,
4458,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
4625,
1370,
62,
23108,
41876,
1976,
1069,
5276,
62,
7635,
62,
10331,
62,
4625,
1370,
26173,
8924,
705,
23108,
4458,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
4625,
1370,
62,
29762,
41876,
1976,
1069,
5276,
62,
7635,
62,
10331,
62,
4625,
1370,
26173,
8924,
705,
29762,
4458,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
269,
62,
4625,
1370,
62,
29762,
23317,
278,
41876,
1976,
1069,
5276,
62,
7635,
62,
10331,
62,
4625,
1370,
26173,
8924,
705,
29762,
30116,
278,
4458,
25113,
2943,
5626,
13918,
198,
220,
220,
220,
42865,
1641,
41876,
1976,
1069,
5276,
62,
7635,
62,
10331,
62,
17989,
26173,
8924,
362,
13,
25113,
2943,
5626,
13918,
764,
220,
764,
220,
764,
220,
764,
220,
764,
220,
764,
220,
764,
220,
764,
220,
764,
220,
764,
220,
764,
220,
764,
366,
764,
198,
220,
220,
220,
42865,
46127,
291,
41876,
6056,
764,
198,
220,
220,
220,
42865,
1438,
41876,
1976,
1069,
5276,
62,
7635,
62,
10331,
62,
3672,
26173,
8924,
705,
9771,
571,
380,
4458,
25113,
2943,
5626,
13918,
764,
220,
764,
220,
764,
220,
764,
220,
764,
220,
764,
220,
764,
220,
764,
220,
764,
220,
764,
220,
764,
220,
764,
366,
764,
198,
220,
220,
220,
42865,
7791,
41876,
1976,
1069,
5276,
62,
7635,
62,
10331,
62,
15952,
1326,
26173,
8924,
705,
1084,
273,
4458,
25113,
2943,
5626,
13918,
764,
220,
764,
220,
764,
220,
764,
220,
764,
220,
764,
220,
764,
220,
764,
220,
764,
220,
764,
220,
764,
220,
764,
366,
764,
198,
220,
220,
220,
42865,
2546,
41876,
1976,
1069,
5276,
62,
7635,
62,
10331,
62,
7857,
26173,
8924,
1367,
13,
25113,
2943,
5626,
13918,
764,
220,
764,
220,
764,
220,
764,
220,
764,
220,
764,
220,
764,
220,
764,
220,
764,
220,
764,
220,
764,
220,
764,
366,
764,
198,
220,
220,
220,
42865,
2338,
74,
2788,
740,
41876,
6056,
764,
198,
220,
220,
220,
42865,
739,
1370,
41876,
6056,
764,
198,
220,
220,
220,
42865,
739,
1370,
62,
14171,
41876,
1976,
1069,
5276,
62,
7635,
62,
10331,
62,
4625,
1370,
764,
628,
220,
220,
220,
337,
36252,
50,
23772,
764,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
301,
5620,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
274,
62,
10331,
8,
41876,
1976,
1069,
5276,
62,
82,
62,
7635,
62,
10331,
764,
198,
220,
220,
220,
337,
36252,
50,
15284,
62,
5239,
62,
10394,
198,
220,
220,
220,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS ltcl_zcl_strust DEFINITION FINAL FOR TESTING
DURATION SHORT
RISK LEVEL HARMLESS.
PRIVATE SECTION.
METHODS:
parse_pem_file FOR TESTING RAISING cx_static_check.
ENDCLASS.
class ltcl_ZCL_STRUST implementation.
METHOD parse_pem_file.
DATA: lv_pem TYPE xstring,
lv_spem TYPE string.
CONCATENATE
'-----BEGIN CERTIFICATE-----' cl_abap_char_utilities=>cr_lf
'MI' cl_abap_char_utilities=>cr_lf
'A1' cl_abap_char_utilities=>cr_lf
'kg==' cl_abap_char_utilities=>cr_lf
'-----END CERTIFICATE-----' cl_abap_char_utilities=>cr_lf
'-----BEGIN CERTIFICATE-----' cl_abap_char_utilities=>cr_lf
'MI' cl_abap_char_utilities=>cr_lf
'A1' cl_abap_char_utilities=>cr_lf
'kg==' cl_abap_char_utilities=>cr_lf
'-----END CERTIFICATE-----'
INTO lv_spem.
CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
EXPORTING
text = lv_spem
IMPORTING
buffer = lv_pem.
DATA(lo_strust) = NEW zcl_strust( ).
DATA(lt_certs) = lo_strust->parse_pem_file( lv_pem ).
cl_abap_unit_assert=>assert_equals( msg = '3 certificate expected!' exp = 2 act = lines( lt_certs ) ).
ENDMETHOD.
endclass.
| [
31631,
300,
83,
565,
62,
89,
565,
62,
2536,
436,
5550,
20032,
17941,
25261,
7473,
43001,
2751,
198,
220,
360,
4261,
6234,
6006,
9863,
198,
220,
45698,
42,
49277,
43638,
5805,
7597,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
21136,
62,
79,
368,
62,
7753,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
13,
198,
10619,
31631,
13,
628,
198,
4871,
300,
83,
565,
62,
57,
5097,
62,
18601,
7759,
7822,
13,
628,
220,
337,
36252,
21136,
62,
79,
368,
62,
7753,
13,
198,
220,
220,
220,
42865,
25,
300,
85,
62,
79,
368,
220,
41876,
2124,
8841,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
2777,
368,
41876,
4731,
13,
628,
220,
220,
220,
39962,
1404,
1677,
6158,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
30934,
33,
43312,
327,
17395,
30643,
6158,
650,
19355,
220,
537,
62,
397,
499,
62,
10641,
62,
315,
2410,
14804,
6098,
62,
1652,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
8895,
6,
537,
62,
397,
499,
62,
10641,
62,
315,
2410,
14804,
6098,
62,
1652,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
32,
16,
6,
537,
62,
397,
499,
62,
10641,
62,
315,
2410,
14804,
6098,
62,
1652,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
10025,
855,
6,
537,
62,
397,
499,
62,
10641,
62,
315,
2410,
14804,
6098,
62,
1652,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
30934,
10619,
327,
17395,
30643,
6158,
650,
19355,
537,
62,
397,
499,
62,
10641,
62,
315,
2410,
14804,
6098,
62,
1652,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
30934,
33,
43312,
327,
17395,
30643,
6158,
650,
19355,
537,
62,
397,
499,
62,
10641,
62,
315,
2410,
14804,
6098,
62,
1652,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
8895,
6,
537,
62,
397,
499,
62,
10641,
62,
315,
2410,
14804,
6098,
62,
1652,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
32,
16,
6,
537,
62,
397,
499,
62,
10641,
62,
315,
2410,
14804,
6098,
62,
1652,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
10025,
855,
6,
537,
62,
397,
499,
62,
10641,
62,
315,
2410,
14804,
6098,
62,
1652,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
30934,
10619,
327,
17395,
30643,
6158,
650,
19355,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
39319,
300,
85,
62,
2777,
368,
13,
628,
220,
220,
220,
42815,
29397,
4177,
2849,
705,
6173,
5653,
62,
18601,
2751,
62,
10468,
62,
55,
18601,
2751,
6,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
2420,
220,
220,
796,
300,
85,
62,
2777,
368,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
11876,
796,
300,
85,
62,
79,
368,
13,
628,
220,
220,
220,
42865,
7,
5439,
62,
2536,
436,
8,
796,
12682,
1976,
565,
62,
2536,
436,
7,
220,
6739,
198,
220,
220,
220,
42865,
7,
2528,
62,
22583,
82,
8,
796,
2376,
62,
2536,
436,
3784,
29572,
62,
79,
368,
62,
7753,
7,
300,
85,
62,
79,
368,
6739,
198,
220,
220,
220,
537,
62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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
INTERFACE zif_abapgit_apack_definitions PUBLIC.
TYPES:
BEGIN OF ty_dependency,
group_id TYPE string,
artifact_id TYPE string,
version TYPE string,
sem_version TYPE zif_abapgit_definitions=>ty_version,
git_url TYPE string,
target_package TYPE devclass,
END OF ty_dependency,
ty_dependencies TYPE STANDARD TABLE OF ty_dependency
WITH NON-UNIQUE DEFAULT KEY,
ty_repository_type TYPE string,
BEGIN OF ty_descriptor_wo_dependencies,
group_id TYPE string,
artifact_id TYPE string,
version TYPE string,
sem_version TYPE zif_abapgit_definitions=>ty_version,
repository_type TYPE ty_repository_type,
git_url TYPE string,
END OF ty_descriptor_wo_dependencies,
BEGIN OF ty_descriptor.
INCLUDE TYPE ty_descriptor_wo_dependencies.
TYPES:
dependencies TYPE ty_dependencies,
END OF ty_descriptor,
ty_descriptors TYPE STANDARD TABLE OF ty_descriptor WITH NON-UNIQUE DEFAULT KEY.
CONSTANTS c_dot_apack_manifest TYPE string VALUE '.apack-manifest.xml' ##NO_TEXT.
CONSTANTS c_repository_type_abapgit TYPE ty_repository_type VALUE 'abapGit' ##NO_TEXT.
ENDINTERFACE.
| [
41358,
49836,
1976,
361,
62,
397,
499,
18300,
62,
499,
441,
62,
4299,
50101,
44731,
13,
628,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
347,
43312,
3963,
1259,
62,
45841,
1387,
11,
198,
220,
220,
220,
220,
220,
1448,
62,
312,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
24127,
62,
312,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
2196,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
5026,
62,
9641,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
9641,
11,
198,
220,
220,
220,
220,
220,
17606,
62,
6371,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
2496,
62,
26495,
41876,
1614,
4871,
11,
198,
220,
220,
220,
23578,
3963,
1259,
62,
45841,
1387,
11,
628,
220,
220,
220,
1259,
62,
45841,
3976,
220,
220,
220,
41876,
49053,
9795,
43679,
3963,
1259,
62,
45841,
1387,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13315,
44521,
12,
4944,
33866,
8924,
5550,
38865,
35374,
11,
628,
220,
220,
220,
1259,
62,
260,
1930,
37765,
62,
4906,
41876,
4731,
11,
628,
220,
220,
220,
347,
43312,
3963,
1259,
62,
20147,
1968,
273,
62,
21638,
62,
45841,
3976,
11,
198,
220,
220,
220,
220,
220,
1448,
62,
312,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
24127,
62,
312,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
2196,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
5026,
62,
9641,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
9641,
11,
198,
220,
220,
220,
220,
220,
16099,
62,
4906,
41876,
1259,
62,
260,
1930,
37765,
62,
4906,
11,
198,
220,
220,
220,
220,
220,
17606,
62,
6371,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
23578,
3963,
1259,
62,
20147,
1968,
273,
62,
21638,
62,
45841,
3976,
11,
628,
220,
220,
220,
347,
43312,
3963,
1259,
62,
20147,
1968,
273,
13,
198,
220,
220,
220,
220,
220,
3268,
5097,
52,
7206,
41876,
1259,
62,
20147,
1968,
273,
62,
21638,
62,
45841,
3976,
13,
198,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
20086,
41876,
1259,
62,
45841,
3976,
11,
198,
220,
220,
220,
23578,
3963,
1259,
62,
20147,
1968,
273,
11,
628,
220,
220,
220,
1259,
62,
20147,
1968,
669,
41876,
49053,
9795,
43679,
3963,
1259,
62,
20147,
1968,
273,
13315,
44521,
12,
4944,
33866,
8924,
5550,
38865,
35374,
13,
628,
220,
7102,
2257,
1565,
4694,
269,
62,
26518,
62,
499,
441,
62,
805,
8409,
41876,
4731,
26173,
8924,
45302,
499,
441,
12,
805,
8409,
13,
19875,
6,
22492,
15285,
62,
32541,
13,
198,
220,
7102,
2257,
1565,
4694,
269,
62,
260,
1930,
37765,
62,
4906,
62,
397,
499,
18300,
41876,
1259,
62,
260,
1930,
37765,
62,
4906,
26173,
8924,
705,
397,
499,
38,
270,
6,
22492,
15285,
62,
32541,
13,
198,
198,
10619,
41358,
49836,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
*&---------------------------------------------------------------------*
*& Report zauth_check_vs_cds_dcl
*&---------------------------------------------------------------------*
*&
*&---------------------------------------------------------------------*
REPORT zauth_check_vs_cds_dcl.
TYPES: _flight_plan TYPE STANDARD TABLE OF zflight_plan_association.
START-OF-SELECTION.
DATA: from_filter_with_auth_check TYPE _flight_plan,
from_cds_view_with_ac TYPE _flight_plan.
PERFORM: authority_check CHANGING from_filter_with_auth_check,
cds_dcl CHANGING from_cds_view_with_ac.
ASSERT from_filter_with_auth_check = from_cds_view_with_ac.
cl_demo_output=>display_data( from_cds_view_with_ac ).
FORM authority_check CHANGING flight_plan TYPE _flight_plan.
CLEAR flight_plan.
AUTHORITY-CHECK OBJECT 'ZAIRLINE'
ID 'ACTVT' FIELD '02'.
IF sy-subrc = 12.
RETURN.
ENDIF.
SELECT p~carrid, p~connid, p~countryfr, p~cityfrom,
p~countryto, p~cityto, a~carrname
FROM spfli AS p LEFT OUTER JOIN scarr AS a ON a~carrid = p~carrid
INTO CORRESPONDING FIELDS OF TABLE @flight_plan.
LOOP AT flight_plan REFERENCE INTO DATA(a_flight_plan).
AUTHORITY-CHECK OBJECT 'ZAIRLINE'
ID 'ACTVT' FIELD '02'
ID 'CARRID' FIELD a_flight_plan->*-carrid.
IF sy-subrc <> 0.
DELETE flight_plan INDEX sy-tabix.
ENDIF.
ENDLOOP.
ENDFORM.
FORM cds_dcl CHANGING flight_plan TYPE _flight_plan.
SELECT * FROM zflight_plan_association INTO TABLE @flight_plan.
ENDFORM.
| [
9,
5,
10097,
30934,
9,
198,
9,
5,
6358,
1976,
18439,
62,
9122,
62,
14259,
62,
66,
9310,
62,
67,
565,
198,
9,
5,
10097,
30934,
9,
198,
9,
5,
198,
9,
5,
10097,
30934,
9,
198,
2200,
15490,
1976,
18439,
62,
9122,
62,
14259,
62,
66,
9310,
62,
67,
565,
13,
198,
198,
9936,
47,
1546,
25,
4808,
22560,
62,
11578,
41876,
49053,
9795,
43679,
3963,
1976,
22560,
62,
11578,
62,
562,
41003,
13,
198,
2257,
7227,
12,
19238,
12,
46506,
2849,
13,
198,
220,
42865,
25,
422,
62,
24455,
62,
4480,
62,
18439,
62,
9122,
41876,
4808,
22560,
62,
11578,
11,
198,
220,
220,
220,
220,
220,
220,
220,
422,
62,
66,
9310,
62,
1177,
62,
4480,
62,
330,
41876,
4808,
22560,
62,
11578,
13,
628,
220,
19878,
21389,
25,
4934,
62,
9122,
5870,
15567,
2751,
422,
62,
24455,
62,
4480,
62,
18439,
62,
9122,
11,
198,
220,
220,
220,
269,
9310,
62,
67,
565,
5870,
15567,
2751,
422,
62,
66,
9310,
62,
1177,
62,
4480,
62,
330,
13,
198,
220,
24994,
17395,
422,
62,
24455,
62,
4480,
62,
18439,
62,
9122,
796,
422,
62,
66,
9310,
62,
1177,
62,
4480,
62,
330,
13,
198,
220,
537,
62,
9536,
78,
62,
22915,
14804,
13812,
62,
7890,
7,
422,
62,
66,
9310,
62,
1177,
62,
4480,
62,
330,
6739,
198,
198,
21389,
4934,
62,
9122,
5870,
15567,
2751,
5474,
62,
11578,
41876,
4808,
22560,
62,
11578,
13,
628,
220,
30301,
1503,
5474,
62,
11578,
13,
198,
220,
44746,
9050,
12,
50084,
25334,
23680,
705,
34892,
4663,
24027,
6,
198,
220,
220,
220,
4522,
705,
2246,
6849,
51,
6,
18930,
24639,
705,
2999,
4458,
198,
220,
16876,
827,
12,
7266,
6015,
796,
1105,
13,
198,
220,
220,
220,
30826,
27064,
13,
198,
220,
23578,
5064,
13,
628,
220,
33493,
279,
93,
66,
3258,
312,
11,
279,
93,
37043,
312,
11,
279,
93,
19315,
8310,
11,
279,
93,
19205,
6738,
11,
198,
220,
220,
279,
93,
19315,
1462,
11,
279,
93,
19205,
1462,
11,
257,
93,
66,
3258,
3672,
198,
220,
220,
16034,
599,
2704,
72,
7054,
279,
12509,
9792,
16289,
1137,
32357,
1268,
629,
3258,
7054,
257,
6177,
257,
93,
66,
3258,
312,
796,
279,
93,
66,
3258,
312,
198,
220,
220,
39319,
23929,
19535,
47,
18672,
2751,
18930,
3698,
5258,
3963,
43679,
2488,
22560,
62,
11578,
13,
628,
220,
17579,
3185,
5161,
5474,
62,
11578,
4526,
24302,
18310,
39319,
42865,
7,
64,
62,
22560,
62,
11578,
737,
198,
220,
220,
220,
44746,
9050,
12,
50084,
25334,
23680,
705,
34892,
4663,
24027,
6,
198,
220,
220,
220,
220,
220,
220,
220,
4522,
705,
2246,
6849,
51,
6,
18930,
24639,
705,
2999,
6,
198,
220,
220,
220,
220,
220,
220,
220,
4522,
705,
20034,
49,
2389,
6,
18930,
24639,
257,
62,
22560,
62,
11578,
3784,
9,
12,
66,
3258,
312,
13,
198,
220,
220,
220,
16876,
827,
12,
7266,
6015,
1279,
29,
657,
13,
198,
220,
220,
220,
220,
220,
5550,
2538,
9328,
5474,
62,
11578,
24413,
6369,
827,
12,
8658,
844,
13,
198,
220,
220,
220,
23578,
5064,
13,
198,
220,
23578,
21982,
3185,
13,
198,
198,
1677,
8068,
1581,
44,
13,
198,
198,
21389,
269,
9310,
62,
67,
565,
5870,
15567,
2751,
5474,
62,
11578,
41876,
4808,
22560,
62,
11578,
13,
628,
220,
33493,
1635,
16034,
1976,
22560,
62,
11578,
62,
562,
41003,
39319,
43679,
2488,
22560,
62,
11578,
13,
198,
198,
1677,
8068,
1581,
44,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_abapgit_git_utils DEFINITION
PUBLIC
CREATE PUBLIC .
PUBLIC SECTION.
TYPES:
ty_null TYPE c LENGTH 1 .
CLASS-METHODS get_null
RETURNING
VALUE(rv_c) TYPE ty_null .
CLASS-METHODS pkt_string
IMPORTING
!iv_string TYPE string
RETURNING
VALUE(rv_pkt) TYPE string
RAISING
zcx_abapgit_exception .
CLASS-METHODS length_utf8_hex
IMPORTING
!iv_data TYPE xstring
RETURNING
VALUE(rv_len) TYPE i
RAISING
zcx_abapgit_exception .
PROTECTED SECTION.
PRIVATE SECTION.
CLASS-DATA go_convert_in TYPE REF TO cl_abap_conv_in_ce.
ENDCLASS.
CLASS zcl_abapgit_git_utils IMPLEMENTATION.
METHOD get_null.
* must be length 4, or it gives a syntax error on lower versions
DATA: lv_x TYPE x LENGTH 4 VALUE '00000000'.
FIELD-SYMBOLS <lv_y> TYPE c.
ASSIGN lv_x TO <lv_y> CASTING.
rv_c = <lv_y>.
ENDMETHOD.
METHOD length_utf8_hex.
DATA: lv_xstring TYPE xstring,
lv_char4 TYPE c LENGTH 4,
lv_x TYPE x LENGTH 2.
IF xstrlen( iv_data ) < 4.
zcx_abapgit_exception=>raise( 'error converting to hex, LENGTH_UTF8_HEX' ).
ENDIF.
lv_xstring = iv_data(4).
IF go_convert_in IS INITIAL.
go_convert_in = cl_abap_conv_in_ce=>create( encoding = 'UTF-8' ).
ENDIF.
TRY.
go_convert_in->convert(
EXPORTING
input = lv_xstring
n = 4
IMPORTING
data = lv_char4 ).
CATCH cx_sy_codepage_converter_init
cx_sy_conversion_codepage
cx_parameter_invalid_type.
zcx_abapgit_exception=>raise( 'error converting to hex, LENGTH_UTF8_HEX' ).
ENDTRY.
TRANSLATE lv_char4 TO UPPER CASE.
lv_x = lv_char4.
rv_len = lv_x.
ENDMETHOD.
METHOD pkt_string.
DATA: lv_x TYPE x,
lv_len TYPE i.
lv_len = strlen( iv_string ).
IF lv_len >= 255.
zcx_abapgit_exception=>raise( 'PKT, todo' ).
ENDIF.
lv_x = lv_len + 4.
rv_pkt = '00' && lv_x && iv_string.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
18300,
62,
26791,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
1259,
62,
8423,
41876,
269,
406,
49494,
352,
764,
628,
220,
220,
220,
42715,
12,
49273,
50,
651,
62,
8423,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
66,
8,
41876,
1259,
62,
8423,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
279,
21841,
62,
8841,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
8841,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
79,
21841,
8,
41876,
4731,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
42715,
12,
49273,
50,
4129,
62,
40477,
23,
62,
33095,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
7890,
220,
220,
220,
220,
220,
41876,
2124,
8841,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
11925,
8,
41876,
1312,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42715,
12,
26947,
467,
62,
1102,
1851,
62,
259,
41876,
4526,
37,
5390,
537,
62,
397,
499,
62,
42946,
62,
259,
62,
344,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
565,
62,
397,
499,
18300,
62,
18300,
62,
26791,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
651,
62,
8423,
13,
198,
198,
9,
1276,
307,
4129,
604,
11,
393,
340,
3607,
257,
15582,
4049,
319,
2793,
6300,
198,
220,
220,
220,
42865,
25,
300,
85,
62,
87,
41876,
2124,
406,
49494,
604,
26173,
8924,
705,
8269,
4458,
198,
220,
220,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
1279,
6780,
62,
88,
29,
41876,
269,
13,
628,
220,
220,
220,
24994,
16284,
300,
85,
62,
87,
5390,
1279,
6780,
62,
88,
29,
327,
11262,
2751,
13,
198,
220,
220,
220,
374,
85,
62,
66,
796,
1279,
6780,
62,
88,
28401,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
4129,
62,
40477,
23,
62,
33095,
13,
628,
220,
220,
220,
42865,
25,
300,
85,
62,
87,
8841,
41876,
2124,
8841,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
10641,
19,
220,
220,
41876,
269,
406,
49494,
604,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
87,
220,
220,
220,
220,
220,
220,
41876,
2124,
406,
49494,
362,
13,
628,
220,
220,
220,
16876,
2124,
2536,
11925,
7,
21628,
62,
7890,
1267,
1279,
604,
13,
198,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
14804,
40225,
7,
705,
18224,
23202,
284,
17910,
11,
406,
49494,
62,
48504,
23,
62,
39,
6369,
6,
6739,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
300,
85,
62,
87,
8841,
796,
21628,
62,
7890,
7,
19,
737,
628,
220,
220,
220,
16876,
467,
62,
1102,
1851,
62,
259,
3180,
3268,
2043,
12576,
13,
198,
220,
220,
220,
220,
220,
467,
62,
1102,
1851,
62,
259,
796,
537,
62,
397,
499,
62,
42946,
62,
259,
62,
344,
14804,
17953,
7,
21004,
796,
705,
48504,
12,
23,
6,
6739,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
7579,
56,
13,
198,
220,
220,
220,
220,
220,
220,
220,
467,
62,
1102,
1851,
62,
259,
3784,
1102,
1851,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5128,
796,
300,
85,
62,
87,
8841,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
299,
220,
220,
220,
220,
796,
604,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1366,
220,
796,
300,
85,
62,
10641,
19,
6739,
628,
220,
220,
220,
220,
220,
327,
11417,
43213,
62,
1837,
62,
19815,
538,
496,
62,
1102,
332,
353,
62,
15003,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
43213,
62,
1837,
62,
1102,
9641,
62,
19815,
538,
496,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
43213,
62,
17143,
2357,
62,
259,
12102,
62,
4906,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
14804,
40225,
7,
705,
18224,
23202,
284,
17910,
11,
406,
49494,
62,
48504,
23,
62,
39,
6369,
6,
6739,
198,
220,
220,
220,
23578,
40405,
13,
628,
220,
220,
220,
48213,
8634,
6158,
300,
85,
62,
10641,
19,
5390,
471,
10246,
1137,
42001,
13,
198,
220,
220,
220,
300,
85,
62,
87,
796,
300,
85,
62,
10641,
19,
13,
198,
220,
220,
220,
374,
85,
62,
11925,
796,
300,
85,
62,
87,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
279,
21841,
62,
8841,
13,
628,
220,
220,
220,
42865,
25,
300,
85,
62,
87,
220,
220,
41876,
2124,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
11925,
41876,
1312,
13,
628,
198,
220,
220,
220,
300,
85,
62,
11925,
796,
965,
11925,
7,
21628,
62,
8841,
6739,
628,
220,
220,
220,
16876,
300,
85,
62,
11925,
18189,
14280,
13,
198,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
14804,
40225,
7,
705,
40492,
51
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
*&---------------------------------------------------------------------*
*& Report ZBOX_REBOOKING
*&---------------------------------------------------------------------*
*&
*&---------------------------------------------------------------------*
REPORT zbox_rebooking_refactor MESSAGE-ID zbox_management.
TABLES: zbox_master, zbox_delivery.
PARAMETERS: p_plant TYPE werks_d.
SELECT-OPTIONS: s_matnr FOR zbox_delivery-matnr,
s_charg FOR zbox_delivery-charg.
TYPES: BEGIN OF lty_box,
idx TYPE i,
box_no TYPE zbox_no,
END OF lty_box.
DATA: boxes TYPE STANDARD TABLE OF zbox_delivery,
lt_boxes TYPE STANDARD TABLE OF lty_box,
spool_job_output_info TYPE ssfcrescl.
CONTROLS: box_table_control TYPE TABLEVIEW USING SCREEN '0100'.
START-OF-SELECTION.
SELECT * FROM zbox_delivery INTO TABLE boxes
WHERE plant = p_plant AND matnr IN s_matnr AND charg IN s_charg.
CALL SCREEN '0100'.
MODULE status_0100 OUTPUT.
SET PF-STATUS 'MAIN'.
ENDMODULE.
MODULE on_box_no_changed INPUT.
DATA: ls_box TYPE zbox_delivery,
ls_box1 TYPE lty_box,
netw(10) TYPE p DECIMALS 2.
READ TABLE boxes INTO ls_box INDEX box_table_control-current_line.
ls_box1-box_no = ls_box-box_no.
IF ls_box-box_no <> zbox_delivery-box_no.
SELECT SINGLE * FROM zbox_master
WHERE plant = ls_box-plant AND box_no = ls_box-box_no.
netw = ls_box-gross_weight - zbox_master-tare.
ls_box-box_no = zbox_delivery-box_no.
SELECT SINGLE * FROM zbox_master
WHERE plant = ls_box-plant AND box_no = ls_box-box_no.
IF sy-subrc <> 0.
MESSAGE e001(00) WITH 'Box no. not found'.
ENDIF.
ls_box-gross_weight = netw + zbox_master-tare.
MODIFY boxes FROM ls_box INDEX box_table_control-current_line.
READ TABLE lt_boxes TRANSPORTING NO FIELDS WITH KEY idx = box_table_control-current_line.
IF sy-subrc <> 0.
ls_box1-idx = box_table_control-current_line.
APPEND ls_box1 TO lt_boxes.
ENDIF.
ENDIF.
ENDMODULE.
MODULE user_command_0100 INPUT.
DATA: lt_ubox TYPE STANDARD TABLE OF zbox_delivery,
l_fm_name TYPE rs38l_fnam.
CASE sy-ucomm.
WHEN 'SAVE'.
LOOP AT boxes INTO ls_box.
READ TABLE lt_boxes INTO ls_box1 WITH KEY idx = sy-tabix.
IF sy-subrc = 0.
SELECT SINGLE * FROM zbox_delivery WHERE plant = ls_box-plant AND box_no = ls_box-box_no
AND delivery_note_no <> ''.
IF sy-subrc <> 0.
UPDATE zbox_delivery SET box_no = ls_box-box_no gross_weight = ls_box-gross_weight
WHERE plant = ls_box-plant
AND box_no = ls_box1-box_no.
APPEND ls_box TO lt_ubox.
ELSE.
MESSAGE e001(00) WITH |Box { ls_box-box_no } exists already|.
ENDIF.
ENDIF.
ENDLOOP.
IF lt_ubox IS NOT INITIAL.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZBOX_LABEL'
IMPORTING
fm_name = l_fm_name.
CALL FUNCTION l_fm_name
IMPORTING
job_output_info = spool_job_output_info
TABLES
boxes = lt_ubox.
PERFORM alert_spool_requests.
ENDIF.
WHEN 'BACK'.
SET SCREEN 0.
LEAVE SCREEN.
WHEN 'CANCEL'.
SET SCREEN 0.
LEAVE SCREEN.
ENDCASE.
ENDMODULE.
FORM alert_spool_requests.
DATA: c_spool_request_id(10).
IF spool_job_output_info-outputdone = abap_true AND spool_job_output_info-tdnewid = abap_true.
LOOP AT spool_job_output_info-spoolids INTO DATA(spool_request_id).
c_spool_request_id = spool_request_id.
CONDENSE c_spool_request_id.
MESSAGE s000 WITH c_spool_request_id.
ENDLOOP.
ENDIF.
ENDFORM.
| [
9,
5,
10097,
30934,
9,
198,
9,
5,
6358,
1168,
39758,
62,
2200,
39453,
2751,
198,
9,
5,
10097,
30934,
9,
198,
9,
5,
198,
9,
5,
10097,
30934,
9,
198,
2200,
15490,
1976,
3524,
62,
260,
2070,
278,
62,
5420,
11218,
337,
1546,
4090,
8264,
12,
2389,
1976,
3524,
62,
27604,
13,
198,
198,
5603,
9148,
1546,
25,
1976,
3524,
62,
9866,
11,
1976,
3524,
62,
12381,
6315,
13,
198,
198,
27082,
2390,
2767,
4877,
25,
279,
62,
15060,
41876,
266,
263,
591,
62,
67,
13,
198,
46506,
12,
3185,
51,
11053,
25,
264,
62,
6759,
48624,
7473,
1976,
3524,
62,
12381,
6315,
12,
6759,
48624,
11,
198,
220,
264,
62,
11121,
7473,
1976,
3524,
62,
12381,
6315,
12,
11121,
13,
198,
198,
9936,
47,
1546,
25,
347,
43312,
3963,
300,
774,
62,
3524,
11,
198,
220,
4686,
87,
41876,
1312,
11,
198,
220,
3091,
62,
3919,
41876,
1976,
3524,
62,
3919,
11,
198,
10619,
3963,
300,
774,
62,
3524,
13,
198,
26947,
25,
10559,
41876,
49053,
9795,
43679,
3963,
1976,
3524,
62,
12381,
6315,
11,
198,
220,
220,
220,
220,
220,
300,
83,
62,
29305,
220,
41876,
49053,
9795,
43679,
3963,
300,
774,
62,
3524,
11,
198,
220,
220,
220,
220,
220,
599,
970,
62,
21858,
62,
22915,
62,
10951,
41876,
37786,
16072,
411,
565,
13,
198,
10943,
5446,
3535,
50,
25,
3091,
62,
11487,
62,
13716,
41876,
43679,
28206,
1294,
2751,
6374,
2200,
1677,
705,
39103,
4458,
198,
198,
2257,
7227,
12,
19238,
12,
46506,
2849,
13,
628,
220,
33493,
1635,
16034,
1976,
3524,
62,
12381,
6315,
39319,
43679,
10559,
198,
220,
220,
220,
33411,
4618,
796,
279,
62,
15060,
5357,
2603,
48624,
3268,
264,
62,
6759,
48624,
5357,
2609,
3268,
264,
62,
11121,
13,
628,
220,
42815,
6374,
2200,
1677,
705,
39103,
4458,
198,
198,
33365,
24212,
3722,
62,
39103,
16289,
30076,
13,
628,
220,
25823,
28223,
12,
35744,
2937,
705,
5673,
1268,
4458,
198,
198,
10619,
33365,
24212,
13,
198,
198,
33365,
24212,
319,
62,
3524,
62,
3919,
62,
40985,
3268,
30076,
13,
198,
220,
42865,
25,
43979,
62,
3524,
220,
220,
41876,
1976,
3524,
62,
12381,
6315,
11,
198,
220,
220,
220,
220,
220,
220,
220,
43979,
62,
3524,
16,
220,
41876,
300,
774,
62,
3524,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2010,
86,
7,
940,
8,
41876,
279,
27196,
3955,
23333,
362,
13,
628,
220,
20832,
43679,
10559,
39319,
43979,
62,
3524,
24413,
6369,
3091,
62,
11487,
62,
13716,
12,
14421,
62,
1370,
13,
198,
220,
43979,
62,
3524,
16,
12,
3524,
62,
3919,
796,
43979,
62,
3524,
12,
3524,
62,
3919,
13,
198,
220,
16876,
43979,
62,
3524,
12,
3524,
62,
3919,
1279,
29,
1976,
3524,
62,
12381,
6315,
12,
3524,
62,
3919,
13,
198,
220,
220,
220,
33493,
311,
2751,
2538,
1635,
16034,
1976,
3524,
62,
9866,
198,
220,
220,
220,
220,
220,
33411,
4618,
796,
43979,
62,
3524,
12,
15060,
5357,
3091,
62,
3919,
796,
43979,
62,
3524,
12,
3524,
62,
3919,
13,
198,
220,
220,
220,
2010,
86,
796,
43979,
62,
3524,
12,
47181,
62,
6551,
532,
1976,
3524,
62,
9866,
12,
83,
533,
13,
628,
220,
220,
220,
43979,
62,
3524,
12,
3524,
62,
3919,
796,
1976,
3524,
62,
12381,
6315,
12,
3524,
62,
3919,
13,
198,
220,
220,
220,
33493,
311,
2751,
2538,
1635,
16034,
1976,
3524,
62,
9866,
198,
220,
220,
220,
220,
220,
33411,
4618,
796,
43979,
62,
3524,
12,
15060,
5357,
3091,
62,
3919,
796,
43979,
62,
3524,
12,
3524,
62,
3919,
13,
198,
220,
220,
220,
16876,
827,
12,
7266,
6015,
1279,
29,
657,
13,
198,
220,
220,
220,
220,
220,
337,
1546,
4090,
8264,
304,
8298,
7,
405,
8,
13315,
705,
14253,
645,
13,
407,
1043,
4458,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
43979,
62,
3524,
12,
47181,
62,
6551,
796,
2010,
86,
1343,
1976,
3524,
62,
9866,
12,
83,
533,
13,
198,
220,
220,
220,
19164,
5064,
56,
10559,
16034,
43979,
62,
3524,
24413,
6369,
3091,
62,
11487,
62,
13716,
12,
14421,
62,
1370,
13,
628,
220,
220,
220,
20832,
43679,
300,
83,
62,
29305,
48213,
4303,
9863,
2751,
8005,
18930,
3698,
5258,
13315,
35374,
4686,
87,
796,
220,
3091,
62,
11487,
62,
13716,
12,
14421,
62,
1370,
13,
198,
220,
220,
220,
16876,
827,
12,
7266,
6015,
1279,
29,
657,
13,
198,
220,
220,
220,
220,
220,
43979,
62,
3524,
16,
12,
312,
87,
796,
3091,
62,
11487,
62,
13716,
12,
14421,
62,
1370,
13,
198,
220,
220,
220,
220,
220,
43504,
10619,
43979,
62,
3524,
16,
5390,
300,
83,
62,
29305,
13,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
23578,
5064,
13,
198,
198,
10619,
33365,
24212,
13,
198,
198,
33365,
24212,
2836,
62,
21812,
62,
39103,
3268,
30076,
13,
198,
220,
42865,
25,
300,
83,
62,
549,
1140,
41876,
49053,
9795,
43679,
3963,
1976,
3524,
62,
12381,
6315,
11,
198,
220,
220,
220,
220,
220,
220,
220,
300,
62,
38353,
62,
3672,
41876,
44608,
2548,
75,
62,
69,
7402,
13,
628,
220,
42001,
827,
12,
84,
9503,
13,
198,
220,
220,
220,
42099,
705,
4090,
6089,
4458,
628,
220,
220,
220,
220,
220,
17579,
3185,
5161,
10559,
39319,
43979,
62,
3524,
13,
628,
220,
220,
220,
220,
220,
220,
220,
20832,
43679,
300,
83,
62,
29305,
39319,
43979,
62,
3524,
16,
13315,
35374,
4686,
87,
796,
827,
12,
8658,
844,
13,
198,
220,
220,
220,
220,
220,
220,
220,
16876,
827,
12,
7266,
6015,
796,
657,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
33493,
311,
2751,
2538,
1635,
16034,
1976,
3524,
62,
12381,
6315,
33411,
4618,
796,
43979,
62,
3524,
12,
15060,
5357,
3091,
62,
3919,
796,
43979,
62,
3524,
12,
3524,
62,
3919,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5357,
7585,
62,
11295,
62,
3919,
1279,
29,
705,
4458,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
16876,
827,
12,
7266,
6015,
1279,
29,
657,
13,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
35717,
1976,
3524,
62,
12381,
6315,
25823,
3091,
62,
3919,
796,
43979,
62,
3524,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,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
*---------------------------------------------------------------------*
* view related PAI modules
* generation date: 19.03.2018 at 12:05:53
* view maintenance generator version: #001407#
*---------------------------------------------------------------------*
INCLUDE LSVIMITX . "base table related PAI modules
| [
9,
10097,
30934,
9,
198,
9,
220,
220,
220,
1570,
3519,
8147,
40,
13103,
198,
9,
220,
220,
5270,
3128,
25,
678,
13,
3070,
13,
7908,
379,
1105,
25,
2713,
25,
4310,
198,
9,
220,
220,
1570,
9262,
17301,
2196,
25,
1303,
405,
1415,
2998,
2,
198,
9,
10097,
30934,
9,
198,
198,
1268,
5097,
52,
7206,
30948,
53,
3955,
2043,
55,
764,
366,
8692,
3084,
3519,
8147,
40,
13103,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_abapgit_objects_ci_tests DEFINITION
PUBLIC
FINAL
CREATE PUBLIC
FOR TESTING
DURATION SHORT
RISK LEVEL CRITICAL .
PUBLIC SECTION.
CLASS-METHODS:
run
IMPORTING
iv_object TYPE tadir-object
iv_url TYPE string OPTIONAL.
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS zcl_abapgit_objects_ci_tests IMPLEMENTATION.
METHOD run.
DATA:
ls_repo TYPE zif_abapgit_exit=>ty_ci_repo,
lt_repos TYPE zif_abapgit_exit=>ty_ci_repos,
lo_ci_repos TYPE REF TO object,
ld_options TYPE REF TO data,
ld_results TYPE REF TO data,
lv_msg TYPE string,
lv_check TYPE string,
lx_error TYPE REF TO zcx_abapgit_exception.
FIELD-SYMBOLS:
<ls_options> TYPE any,
<lv_option> TYPE any,
<lt_repo_result> TYPE ANY TABLE,
<ls_repo_result> TYPE any,
<lv_result> TYPE any,
<lv_repo> TYPE any.
" Add the default test repo from https://github.com/abapGit-tests
ls_repo-name = iv_object.
IF iv_url IS NOT INITIAL.
ls_repo-clone_url = iv_url.
ELSE.
ls_repo-clone_url = |https://github.com/abapGit-tests/{ iv_object }|.
ENDIF.
APPEND ls_repo TO lt_repos.
" Get list of repos via exit
zcl_abapgit_exit=>get_instance( )->get_ci_tests(
EXPORTING
iv_object = iv_object
CHANGING
ct_ci_repos = lt_repos ).
IF lines( lt_repos ) = 0.
RETURN.
ENDIF.
" Objects will be created and deleted, do not run in customer system!
" These tests may fail if you are locking the entries (e.g. the ZABAPGIT transaction is open)
IF zcl_abapgit_persist_settings=>get_instance( )->read( )->get_run_critical_tests( ) = abap_false.
cl_abap_unit_assert=>fail(
msg = 'Cancelled. You can enable these tests in abapGit settings'
level = if_aunit_constants=>tolerable ).
ENDIF.
" Check if abapGit-CI is installed
SELECT SINGLE clsname FROM seoclass INTO lv_check WHERE clsname = 'ZCL_ABAPGIT_CI_REPOS'.
IF sy-subrc <> 0.
cl_abap_unit_assert=>fail(
msg = 'Cancelled. abapGit-CI is not installed (https://github.com/abapGit/CI)'
level = if_aunit_constants=>tolerable ).
ENDIF.
TRY.
" Prepare input for CI repo test
CREATE DATA ld_options TYPE ('ZIF_ABAPGIT_CI_DEFINITIONS=>TY_REPO_CHECK_OPTIONS').
ASSIGN ld_options->* TO <ls_options>.
ASSIGN COMPONENT 'CHECK_LOCAL' OF STRUCTURE <ls_options> TO <lv_option>.
ASSERT sy-subrc = 0.
<lv_option> = abap_true.
CREATE DATA ld_results TYPE ('ZIF_ABAPGIT_CI_DEFINITIONS=>TY_RESULT-REPO_RESULT_LIST').
ASSIGN ld_results->* TO <lt_repo_result>.
" Run CI repo tests
CREATE OBJECT lo_ci_repos TYPE ('ZCL_ABAPGIT_CI_REPOS').
CALL METHOD lo_ci_repos->('PROCESS_REPOS')
EXPORTING
it_repos = lt_repos
is_options = <ls_options>
RECEIVING
rt_result_list = <lt_repo_result>.
" Check results for individual repos
LOOP AT <lt_repo_result> ASSIGNING <ls_repo_result>.
ASSIGN COMPONENT 'NAME' OF STRUCTURE <ls_repo_result> TO <lv_repo>.
ASSERT sy-subrc = 0.
CLEAR lv_msg.
DO 7 TIMES.
CASE sy-index.
WHEN 1.
lv_check = 'CREATE_PACKAGE'.
WHEN 2.
lv_check = 'CLONE'.
WHEN 3.
lv_check = 'PULL'.
WHEN 4.
lv_check = 'SYNTAX_CHECK'.
WHEN 5.
lv_check = 'OBJECT_CHECK'.
WHEN 6.
lv_check = 'PURGE'.
WHEN 7.
lv_check = 'CHECK_LEFTOVERS'.
ENDCASE.
ASSIGN COMPONENT lv_check OF STRUCTURE <ls_repo_result> TO <lv_result>.
ASSERT sy-subrc = 0.
IF <lv_result> <> 'OK'.
IF lv_msg IS INITIAL.
lv_msg = |{ lv_check }:{ <lv_result> }|.
ELSE.
lv_msg = |{ lv_msg } { lv_check }:{ <lv_result> }|.
ENDIF.
ENDIF.
ENDDO.
cl_abap_unit_assert=>assert_equals(
exp = ''
act = lv_msg
msg = |{ <lv_repo> } { lv_msg }| ).
ENDLOOP.
CATCH zcx_abapgit_exception INTO lx_error.
cl_abap_unit_assert=>fail( msg = lx_error->get_text( ) ).
ENDTRY.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
48205,
62,
979,
62,
41989,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
198,
220,
7473,
43001,
2751,
198,
220,
360,
4261,
6234,
6006,
9863,
198,
220,
45698,
42,
49277,
8740,
2043,
20151,
764,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
42715,
12,
49273,
50,
25,
198,
220,
220,
220,
220,
220,
1057,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
15252,
41876,
36264,
343,
12,
15252,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
6371,
220,
220,
220,
41876,
4731,
39852,
2849,
1847,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
565,
62,
397,
499,
18300,
62,
48205,
62,
979,
62,
41989,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
1057,
13,
628,
220,
220,
220,
42865,
25,
198,
220,
220,
220,
220,
220,
43979,
62,
260,
7501,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
37023,
14804,
774,
62,
979,
62,
260,
7501,
11,
198,
220,
220,
220,
220,
220,
300,
83,
62,
260,
1930,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
37023,
14804,
774,
62,
979,
62,
260,
1930,
11,
198,
220,
220,
220,
220,
220,
2376,
62,
979,
62,
260,
1930,
41876,
4526,
37,
5390,
2134,
11,
198,
220,
220,
220,
220,
220,
300,
67,
62,
25811,
220,
41876,
4526,
37,
5390,
1366,
11,
198,
220,
220,
220,
220,
220,
300,
67,
62,
43420,
220,
41876,
4526,
37,
5390,
1366,
11,
198,
220,
220,
220,
220,
220,
300,
85,
62,
19662,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
300,
85,
62,
9122,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
300,
87,
62,
18224,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
628,
220,
220,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
25,
198,
220,
220,
220,
220,
220,
1279,
7278,
62,
25811,
29,
220,
220,
220,
220,
41876,
597,
11,
198,
220,
220,
220,
220,
220,
1279,
6780,
62,
18076,
29,
220,
220,
220,
220,
220,
41876,
597,
11,
198,
220,
220,
220,
220,
220,
1279,
2528,
62,
260,
7501,
62,
20274,
29,
41876,
15529,
43679,
11,
198,
220,
220,
220,
220,
220,
1279,
7278,
62,
260,
7501,
62,
20274,
29,
41876,
597,
11,
198,
220,
220,
220,
220,
220,
1279,
6780,
62,
20274,
29,
220,
220,
220,
220,
220,
41876,
597,
11,
198,
220,
220,
220,
220,
220,
1279,
6780,
62,
260,
7501,
29,
220,
220,
220,
220,
220,
220,
220,
41876,
597,
13,
628,
220,
220,
220,
366,
3060,
262,
4277,
1332,
29924,
422,
3740,
1378,
12567,
13,
785,
14,
397,
499,
38,
270,
12,
41989,
198,
220,
220,
220,
43979,
62,
260,
7501,
12,
3672,
796,
21628,
62,
15252,
13,
198,
220,
220,
220,
16876,
21628,
62,
6371,
3180,
5626,
3268,
2043,
12576,
13,
198,
220,
220,
220,
220,
220,
43979,
62,
260,
7501,
12,
21018,
62,
6371,
796,
21628,
62,
6371,
13,
198,
220,
220,
220,
17852,
5188,
13,
198,
220,
220,
220,
220,
220,
43979,
62,
260,
7501,
12,
21018,
62,
6371,
796,
930,
5450,
1378,
12567,
13,
785,
14,
397,
499,
38,
270,
12,
41989,
14,
90,
21628,
62,
15252,
1782,
91,
13,
198,
220,
220,
220,
23578,
5064,
13,
198,
220,
220,
220,
43504,
10619,
43979,
62,
260,
7501,
5390,
300,
83,
62,
260,
1930,
13,
628,
220,
220,
220,
366,
3497,
1351,
286,
1128,
418,
2884,
8420,
198,
220,
220,
220,
1976,
565,
62,
397,
499,
18300,
62,
37023,
14804,
1136,
62,
39098,
7,
1267,
3784,
1136,
62,
979,
62,
41989,
7,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
15252,
220,
220,
220,
796,
21628,
62,
15252,
198,
220,
220,
220,
220,
220,
5870,
15567,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
269,
83,
62,
979,
62,
260,
1930,
220,
796,
300,
83,
62,
260,
1930,
6739,
628,
220,
220,
220,
16876,
3951,
7,
300,
83,
62,
260,
1930,
1267,
796,
657,
13,
198,
220,
220,
220,
220,
220,
30826,
27064,
13,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
366,
35832,
481,
307,
2727,
290,
13140,
11,
466,
407,
1057,
287,
6491,
1080,
0,
198,
220,
220,
220,
366,
2312,
5254,
743,
2038,
611,
345,
389,
22656,
262,
12784,
357,
68,
13,
70,
13,
262,
1168,
6242,
2969,
38,
2043,
8611,
318,
1280,
8,
198,
220,
220,
220,
16876,
1976,
565,
62,
397,
499,
18300,
62,
19276,
396,
62,
33692,
14804,
1136,
62,
39098,
7,
1267,
3784,
961,
7,
1267,
3784,
1136,
62,
5143,
62,
34666,
62,
41989,
7,
1267,
796,
450,
499,
62,
9562,
13,
198,
220,
220,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
32165,
7,
198,
220,
220,
220,
220,
220,
220,
220,
31456,
220,
220,
796,
705,
34,
590,
3353,
13,
921,
460,
7139,
777,
5254,
287,
450,
499,
38,
270,
6460,
6,
198,
220,
220,
220,
220,
220,
220,
220,
1241,
796,
611,
62,
1942,
270,
62,
9979,
1187,
14804,
83,
13625,
540,
6739,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
366,
6822,
611,
450,
499,
38,
270,
12,
25690,
318,
6589,
198,
220,
220,
220,
33493,
311,
2751,
2538,
537,
82,
3672,
16034,
384,
420,
31172,
39319,
300,
85,
62,
9122,
33411,
537,
82,
3672,
796,
705,
57,
5097,
62,
6242,
2969,
38,
2043,
62,
25690,
62,
35316,
2640,
4458,
198,
220,
220,
220,
16876,
827,
12,
7266,
6015,
1279,
29,
657,
13,
198,
220,
220,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
32165,
7,
198,
220,
220,
220,
220,
220,
220,
220,
31456,
220,
220,
796,
705,
34,
590,
3353,
13,
450,
499,
38,
270,
12,
25690,
318,
407,
6589,
357,
5450,
1378,
12567,
13,
785,
14,
397,
499
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
1
] |
CLASS zcl_abapgit_object_ssfo DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL.
PUBLIC SECTION.
INTERFACES zif_abapgit_object.
PROTECTED SECTION.
PRIVATE SECTION.
TYPES:
ty_string_range TYPE RANGE OF string .
CLASS-DATA gt_range_node_codes TYPE ty_string_range .
CONSTANTS attrib_abapgit_leadig_spaces TYPE string VALUE 'abapgit-leadig-spaces' ##NO_TEXT.
METHODS fix_ids
IMPORTING
!ii_xml_doc TYPE REF TO if_ixml_document .
METHODS handle_attrib_leading_spaces
IMPORTING
!iv_name TYPE string
!ii_node TYPE REF TO if_ixml_node
CHANGING
!cv_within_code_section TYPE abap_bool .
METHODS get_range_node_codes
RETURNING
VALUE(rt_range_node_codes) TYPE ty_string_range .
METHODS code_item_section_handling
IMPORTING
!iv_name TYPE string
!ii_node TYPE REF TO if_ixml_node
EXPORTING
!ei_code_item_element TYPE REF TO if_ixml_element
CHANGING
!cv_within_code_section TYPE abap_bool
RAISING
zcx_abapgit_exception .
ENDCLASS.
CLASS zcl_abapgit_object_ssfo IMPLEMENTATION.
METHOD code_item_section_handling.
CONSTANTS: lc_node_item TYPE string VALUE 'item'.
CONSTANTS: lc_node_text TYPE string VALUE '#text'.
IF iv_name IN get_range_node_codes( ).
cv_within_code_section = abap_true.
ENDIF.
IF cv_within_code_section = abap_true.
IF iv_name = lc_node_item.
TRY.
ei_code_item_element ?= ii_node.
RETURN.
CATCH cx_sy_move_cast_error ##NO_HANDLER.
ENDTRY.
ELSEIF iv_name NOT IN get_range_node_codes( ) AND
iv_name <> lc_node_text.
cv_within_code_section = abap_false.
ENDIF.
ENDIF.
RAISE EXCEPTION TYPE zcx_abapgit_exception.
ENDMETHOD.
METHOD fix_ids.
" makes sure ID and IDREF values are the same values for each serialization run
" the standard code has a counter that keeps increasing values.
"
" It is important that IDs and IDREFs which are the same before the fix
" are also the same after the fix.
TYPES:
BEGIN OF ty_id_mapping,
old TYPE string,
new TYPE string,
END OF ty_id_mapping,
ty_id_mappings TYPE HASHED TABLE OF ty_id_mapping
WITH UNIQUE KEY old.
DATA: lv_name TYPE string,
li_idref TYPE REF TO if_ixml_node,
li_node TYPE REF TO if_ixml_node,
li_attr TYPE REF TO if_ixml_named_node_map,
li_iterator TYPE REF TO if_ixml_node_iterator,
lt_id_mapping TYPE ty_id_mappings,
ls_id_mapping LIKE LINE OF lt_id_mapping.
li_iterator = ii_xml_doc->create_iterator( ).
li_node = li_iterator->get_next( ).
WHILE NOT li_node IS INITIAL.
lv_name = li_node->get_name( ).
IF lv_name = 'NODE' OR lv_name = 'WINDOW'.
li_idref = li_node->get_attributes( )->get_named_item( 'IDREF' ).
IF li_idref IS BOUND.
ls_id_mapping-old = li_idref->get_value( ).
READ TABLE lt_id_mapping WITH KEY old = ls_id_mapping-old
INTO ls_id_mapping.
IF sy-subrc <> 0.
lv_name = lines( lt_id_mapping ) + 1.
ls_id_mapping-new = condense( lv_name ).
INSERT ls_id_mapping INTO TABLE lt_id_mapping.
ENDIF.
li_idref->set_value( |{ ls_id_mapping-new }| ).
ENDIF.
ENDIF.
li_node = li_iterator->get_next( ).
ENDWHILE.
li_iterator = ii_xml_doc->create_iterator( ).
li_node = li_iterator->get_next( ).
WHILE NOT li_node IS INITIAL.
lv_name = li_node->get_name( ).
IF lv_name = 'NODE' OR lv_name = 'WINDOW'.
li_idref = li_node->get_attributes( )->get_named_item( 'ID' ).
IF li_idref IS BOUND.
ls_id_mapping-old = li_idref->get_value( ).
READ TABLE lt_id_mapping WITH KEY old = ls_id_mapping-old
INTO ls_id_mapping.
IF sy-subrc = 0.
li_idref->set_value( |{ ls_id_mapping-new }| ).
ELSE.
li_attr = li_node->get_attributes( ).
li_attr->remove_named_item( 'ID' ).
ENDIF.
ENDIF.
ENDIF.
li_node = li_iterator->get_next( ).
ENDWHILE.
ENDMETHOD.
METHOD get_range_node_codes.
DATA: ls_range_node_code TYPE LINE OF ty_string_range.
IF gt_range_node_codes IS INITIAL.
ls_range_node_code-sign = 'I'.
ls_range_node_code-option = 'EQ'.
ls_range_node_code-low = 'CODE'.
INSERT ls_range_node_code INTO TABLE gt_range_node_codes.
ls_range_node_code-low = 'GTYPES'.
INSERT ls_range_node_code INTO TABLE gt_range_node_codes.
ls_range_node_code-low = 'GCODING'.
INSERT ls_range_node_code INTO TABLE gt_range_node_codes.
ls_range_node_code-low = 'FCODING'.
INSERT ls_range_node_code INTO TABLE gt_range_node_codes.
ENDIF.
rt_range_node_codes = gt_range_node_codes.
ENDMETHOD.
METHOD handle_attrib_leading_spaces.
DATA li_element TYPE REF TO if_ixml_element.
DATA lv_leading_spaces TYPE string.
DATA lv_coding_line TYPE string.
TRY.
code_item_section_handling( EXPORTING iv_name = iv_name
ii_node = ii_node
IMPORTING ei_code_item_element = li_element
CHANGING cv_within_code_section = cv_within_code_section ).
* for downwards compatibility, this code can be removed sometime in the future
lv_leading_spaces = li_element->get_attribute_ns( name = attrib_abapgit_leadig_spaces ).
lv_coding_line = li_element->get_value( ).
IF strlen( lv_coding_line ) >= 1 AND lv_coding_line(1) <> | |.
SHIFT lv_coding_line RIGHT BY lv_leading_spaces PLACES.
li_element->set_value( lv_coding_line ).
ENDIF.
CATCH zcx_abapgit_exception ##NO_HANDLER.
ENDTRY.
ENDMETHOD.
METHOD zif_abapgit_object~changed_by.
SELECT SINGLE lastuser FROM stxfadm INTO rv_user
WHERE formname = ms_item-obj_name.
IF sy-subrc <> 0.
rv_user = c_user_unknown.
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_object~delete.
DATA: lv_formname TYPE tdsfname.
lv_formname = ms_item-obj_name.
CALL FUNCTION 'FB_DELETE_FORM'
EXPORTING
i_formname = lv_formname
i_with_dialog = abap_false
i_with_confirm_dialog = abap_false
EXCEPTIONS
no_form = 1
OTHERS = 2.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise_t100( ).
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_object~deserialize.
* see function module FB_UPLOAD_FORM
DATA: li_node TYPE REF TO if_ixml_node,
lv_formname TYPE tdsfname,
lv_name TYPE string,
li_iterator TYPE REF TO if_ixml_node_iterator,
lo_sf TYPE REF TO cl_ssf_fb_smart_form,
lo_res TYPE REF TO cl_ssf_fb_smart_form,
lx_error TYPE REF TO cx_ssf_fb,
lv_text TYPE string,
lv_within_code_section TYPE abap_bool.
CREATE OBJECT lo_sf.
* set "created by" and "changed by" to current user
li_iterator = io_xml->get_raw( )->get_root_element( )->create_iterator( ).
li_node = li_iterator->get_next( ).
WHILE NOT li_node IS INITIAL.
lv_name = li_node->get_name( ).
CASE lv_name.
WHEN 'LASTDATE'.
li_node->set_value( sy-datum(4) && '-' && sy-datum+4(2) && '-' && sy-datum+6(2) ).
WHEN 'LASTTIME'.
li_node->set_value( sy-uzeit(2) && ':' && sy-uzeit+2(2) && ':' && sy-uzeit+4(2) ).
WHEN 'FIRSTUSER' OR 'LASTUSER'.
li_node->set_value( sy-uname && '' ).
ENDCASE.
handle_attrib_leading_spaces( EXPORTING iv_name = lv_name
ii_node = li_node
CHANGING cv_within_code_section = lv_within_code_section ).
li_node = li_iterator->get_next( ).
ENDWHILE.
tadir_insert( iv_package ).
lv_formname = ms_item-obj_name.
TRY.
lo_sf->enqueue( suppress_corr_check = space
master_language = mv_language
mode = 'INSERT'
formname = lv_formname ).
lo_sf->xml_upload( EXPORTING dom = io_xml->get_raw( )->get_root_element( )
formname = lv_formname
language = mv_language
CHANGING sform = lo_res ).
lo_res->store( im_formname = lo_res->header-formname
im_language = mv_language
im_active = abap_true ).
lo_sf->dequeue( lv_formname ).
CATCH cx_ssf_fb INTO lx_error.
lv_text = lx_error->get_text( ).
zcx_abapgit_exception=>raise( |{ ms_item-obj_type } { ms_item-obj_name }: { lv_text } | ).
ENDTRY.
ENDMETHOD.
METHOD zif_abapgit_object~exists.
DATA: lv_formname TYPE stxfadm-formname.
SELECT SINGLE formname FROM stxfadm INTO lv_formname
WHERE formname = ms_item-obj_name.
rv_bool = boolc( sy-subrc = 0 ).
ENDMETHOD.
METHOD zif_abapgit_object~get_comparator.
RETURN.
ENDMETHOD.
METHOD zif_abapgit_object~get_deserialize_steps.
APPEND zif_abapgit_object=>gc_step_id-abap TO rt_steps.
ENDMETHOD.
METHOD zif_abapgit_object~get_metadata.
rs_metadata = get_metadata( ).
rs_metadata-delete_tadir = abap_true.
ENDMETHOD.
METHOD zif_abapgit_object~is_active.
DATA: lv_ssfo_formname TYPE tdsfname.
DATA lv_inactive TYPE abap_bool.
lv_ssfo_formname = ms_item-obj_name.
CALL FUNCTION 'SSF_STATUS_INFO'
EXPORTING
i_formname = lv_ssfo_formname
IMPORTING
o_inactive = lv_inactive.
rv_active = boolc( lv_inactive = abap_false ).
ENDMETHOD.
METHOD zif_abapgit_object~is_locked.
rv_is_locked = exists_a_lock_entry_for( iv_lock_object = 'E_SMFORM'
iv_argument = |{ ms_item-obj_name }| ).
ENDMETHOD.
METHOD zif_abapgit_object~jump.
DATA: lt_bdcdata TYPE TABLE OF bdcdata,
lv_formtype TYPE stxfadm-formtype.
FIELD-SYMBOLS: <ls_bdcdata> LIKE LINE OF lt_bdcdata.
APPEND INITIAL LINE TO lt_bdcdata ASSIGNING <ls_bdcdata>.
<ls_bdcdata>-program = 'SAPMSSFO'.
<ls_bdcdata>-dynpro = '0100'.
<ls_bdcdata>-dynbegin = abap_true.
SELECT SINGLE formtype FROM stxfadm INTO lv_formtype
WHERE formname = ms_item-obj_name.
IF lv_formtype = cssf_formtype_text.
APPEND INITIAL LINE TO lt_bdcdata ASSIGNING <ls_bdcdata>.
<ls_bdcdata>-fnam = 'RB_TX'.
<ls_bdcdata>-fval = abap_true.
APPEND INITIAL LINE TO lt_bdcdata ASSIGNING <ls_bdcdata>.
<ls_bdcdata>-fnam = 'BDC_OKCODE'.
<ls_bdcdata>-fval = '=RB'.
APPEND INITIAL LINE TO lt_bdcdata ASSIGNING <ls_bdcdata>.
<ls_bdcdata>-program = 'SAPMSSFO'.
<ls_bdcdata>-dynpro = '0100'.
<ls_bdcdata>-dynbegin = abap_true.
APPEND INITIAL LINE TO lt_bdcdata ASSIGNING <ls_bdcdata>.
<ls_bdcdata>-fnam = 'SSFSCREEN-TNAME'.
<ls_bdcdata>-fval = ms_item-obj_name.
ELSE.
APPEND INITIAL LINE TO lt_bdcdata ASSIGNING <ls_bdcdata>.
<ls_bdcdata>-fnam = 'SSFSCREEN-FNAME'.
<ls_bdcdata>-fval = ms_item-obj_name.
ENDIF.
APPEND INITIAL LINE TO lt_bdcdata ASSIGNING <ls_bdcdata>.
<ls_bdcdata>-fnam = 'BDC_OKCODE'.
<ls_bdcdata>-fval = '=DISPLAY'.
zcl_abapgit_ui_factory=>get_gui_jumper( )->jump_batch_input(
iv_tcode = 'SMARTFORMS'
it_bdcdata = lt_bdcdata ).
rv_exit = abap_true.
ENDMETHOD.
METHOD zif_abapgit_object~serialize.
* see function module FB_DOWNLOAD_FORM
DATA: lo_sf TYPE REF TO cl_ssf_fb_smart_form,
lv_name TYPE string,
li_node TYPE REF TO if_ixml_node,
li_element TYPE REF TO if_ixml_element,
li_iterator TYPE REF TO if_ixml_node_iterator,
lv_formname TYPE tdsfname,
li_ixml TYPE REF TO if_ixml,
li_xml_doc TYPE REF TO if_ixml_document.
li_ixml = cl_ixml=>create( ).
li_xml_doc = li_ixml->create_document( ).
CREATE OBJECT lo_sf.
lv_formname = ms_item-obj_name. " convert type
TRY.
lo_sf->load( im_formname = lv_formname
im_language = '' ).
CATCH cx_ssf_fb.
* the smartform is not present in system, or other error occured
RETURN.
ENDTRY.
lo_sf->xml_download( EXPORTING parent = li_xml_doc
CHANGING document = li_xml_doc ).
li_iterator = li_xml_doc->create_iterator( ).
li_node = li_iterator->get_next( ).
WHILE NOT li_node IS INITIAL.
lv_name = li_node->get_name( ).
IF lv_name = 'DEVCLASS'
OR lv_name = 'LASTDATE'
OR lv_name = 'LASTTIME'.
li_node->set_value( '' ).
ENDIF.
IF lv_name = 'FIRSTUSER'
OR lv_name = 'LASTUSER'.
li_node->set_value( 'DUMMY' ).
ENDIF.
li_node = li_iterator->get_next( ).
ENDWHILE.
fix_ids( li_xml_doc ).
li_element = li_xml_doc->get_root_element( ).
li_element->set_attribute(
name = 'sf'
namespace = 'xmlns'
value = 'urn:sap-com:SmartForms:2000:internal-structure' ).
li_element->set_attribute(
name = 'xmlns'
value = 'urn:sap-com:sdixml-ifr:2000' ).
io_xml->set_raw( li_xml_doc->get_root_element( ) ).
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
824,
6513,
5550,
20032,
17941,
44731,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
397,
499,
18300,
62,
48205,
62,
16668,
25261,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
397,
499,
18300,
62,
15252,
13,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
1259,
62,
8841,
62,
9521,
41876,
371,
27746,
3963,
4731,
764,
628,
220,
220,
220,
42715,
12,
26947,
308,
83,
62,
9521,
62,
17440,
62,
40148,
41876,
1259,
62,
8841,
62,
9521,
764,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
708,
822,
62,
397,
499,
18300,
62,
28230,
328,
62,
2777,
2114,
41876,
4731,
26173,
8924,
705,
397,
499,
18300,
12,
28230,
328,
12,
2777,
2114,
6,
22492,
15285,
62,
32541,
13,
628,
220,
220,
220,
337,
36252,
50,
4259,
62,
2340,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
4178,
62,
19875,
62,
15390,
41876,
4526,
37,
5390,
611,
62,
844,
4029,
62,
22897,
764,
198,
220,
220,
220,
337,
36252,
50,
5412,
62,
1078,
822,
62,
12294,
62,
2777,
2114,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
3672,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
4178,
62,
17440,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
611,
62,
844,
4029,
62,
17440,
198,
220,
220,
220,
220,
220,
5870,
15567,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
33967,
62,
33479,
62,
8189,
62,
5458,
41876,
450,
499,
62,
30388,
764,
198,
220,
220,
220,
337,
36252,
50,
651,
62,
9521,
62,
17440,
62,
40148,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
17034,
62,
9521,
62,
17440,
62,
40148,
8,
41876,
1259,
62,
8841,
62,
9521,
764,
198,
220,
220,
220,
337,
36252,
50,
2438,
62,
9186,
62,
5458,
62,
4993,
1359,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
452,
62,
3672,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
4178,
62,
17440,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
611,
62,
844,
4029,
62,
17440,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
20295,
62,
8189,
62,
9186,
62,
30854,
220,
220,
41876,
4526,
37,
5390,
611,
62,
844,
4029,
62,
30854,
198,
220,
220,
220,
220,
220,
5870,
15567,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
33967,
62,
33479,
62,
8189,
62,
5458,
41876,
450,
499,
62,
30388,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
824,
6513,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
2438,
62,
9186,
62,
5458,
62,
4993,
1359,
13,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
300,
66,
62,
17440,
62,
9186,
41876,
4731,
26173,
8924,
705,
9186,
4458,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
300,
66,
62,
17440,
62,
5239,
41876,
4731,
26173,
8924,
705,
2,
5239,
4458,
628,
220,
220,
220,
16876,
21628,
62,
3672,
3268,
651,
62,
9521,
62,
17440,
62,
40148,
7,
6739,
198,
220,
220,
220,
220,
220,
269,
85,
62,
33479,
62,
8189,
62,
5458,
796,
450,
499,
62,
7942,
13,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
16876,
269,
85,
62,
33479,
62,
8189,
62,
5458,
796,
450,
499,
62,
7942,
13,
198,
220,
220,
220,
220,
220,
16876,
21628,
62,
3672,
796,
300,
66,
62,
17440,
62,
9186,
13,
198,
220,
220,
220,
220,
220,
220,
220,
7579,
56,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
304,
72,
62,
8189,
62,
9186,
62,
30854,
5633,
28,
21065,
62,
17440,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30826,
27064,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
327,
11417,
43213,
62,
1837,
62,
21084,
62,
2701,
62,
18224,
22492,
15285,
62,
39,
6981,
39878,
13,
198,
220,
220,
220,
220,
220,
220,
220,
23578,
40405,
13,
628,
220,
220,
220,
220,
220,
17852,
5188,
5064,
21628,
62,
3672,
5626,
3268,
651,
62,
9521,
62,
17440,
62,
40148,
7,
1267,
5357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
3672,
1279,
29,
300,
66,
62,
17440,
62,
5239,
13,
198,
220,
220,
220,
220,
220,
220,
220,
269,
85,
62,
33479,
62,
8189,
62,
5458,
796,
450,
499,
62,
9562,
13,
198,
220,
220,
220,
220,
220,
23578,
5064,
13,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
17926,
24352,
7788,
42006,
2849,
41876,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
4259,
62,
2340,
13,
628,
220,
220,
220,
366,
1838,
1654,
4522,
290,
4522,
31688,
3815,
389,
262,
976,
3815,
329,
1123,
11389,
1634,
1057,
198,
220,
220,
220,
366,
262,
3210,
2438,
468,
257,
3753,
326,
7622,
3649,
3815,
13,
198,
220,
220,
220,
366,
198,
220,
220,
220,
366,
632,
318,
1593,
326,
32373,
290,
4522,
31688,
82,
543,
389,
262,
976,
878,
262,
4259,
198,
220,
220,
220,
366,
389,
635,
262,
976,
706,
262,
4259,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_abapgit_object_smtg DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL.
PUBLIC SECTION.
INTERFACES zif_abapgit_object.
ALIASES mo_files FOR zif_abapgit_object~mo_files.
METHODS:
constructor
IMPORTING
is_item TYPE zif_abapgit_definitions=>ty_item
iv_language TYPE spras
RAISING
zcx_abapgit_exception.
PROTECTED SECTION.
PRIVATE SECTION.
DATA:
mv_template_id TYPE c LENGTH 30,
mo_structdescr TYPE REF TO cl_abap_structdescr.
METHODS:
clear_field
IMPORTING
iv_fieldname TYPE string
CHANGING
cg_header TYPE any,
get_structure
RETURNING
VALUE(ro_structdescr) TYPE REF TO cl_abap_structdescr
RAISING
zcx_abapgit_exception,
add_component
IMPORTING
iv_fielname TYPE string
iv_structure_name TYPE string
CHANGING
ct_components TYPE abap_component_tab
RAISING
zcx_abapgit_exception.
ENDCLASS.
CLASS ZCL_ABAPGIT_OBJECT_SMTG IMPLEMENTATION.
METHOD add_component.
DATA:
ls_component LIKE LINE OF ct_components,
lo_typedescr TYPE REF TO cl_abap_typedescr.
cl_abap_structdescr=>describe_by_name(
EXPORTING
p_name = iv_structure_name
RECEIVING
p_descr_ref = lo_typedescr
EXCEPTIONS
type_not_found = 1
OTHERS = 2 ).
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( |SMTG not supported| ).
ENDIF.
ls_component-name = iv_fielname.
ls_component-type ?= lo_typedescr.
INSERT ls_component INTO TABLE ct_components.
ENDMETHOD.
METHOD clear_field.
FIELD-SYMBOLS: <lg_field> TYPE data.
ASSIGN
COMPONENT iv_fieldname
OF STRUCTURE cg_header
TO <lg_field>.
ASSERT sy-subrc = 0.
CLEAR: <lg_field>.
ENDMETHOD.
METHOD constructor.
super->constructor(
is_item = is_item
iv_language = iv_language ).
mv_template_id = ms_item-obj_name.
mo_structdescr = get_structure( ).
ENDMETHOD.
METHOD get_structure.
DATA: lt_components TYPE abap_component_tab.
add_component(
EXPORTING
iv_fielname = `HEADER`
iv_structure_name = `IF_SMTG_EMAIL_TEMPLATE=>TY_GS_TMPL_HDR`
CHANGING
ct_components = lt_components ).
add_component(
EXPORTING
iv_fielname = `HEADER_T`
iv_structure_name = `IF_SMTG_EMAIL_TEMPLATE=>TY_GT_TMPL_HDR_T`
CHANGING
ct_components = lt_components ).
add_component(
EXPORTING
iv_fielname = `CONTENT`
iv_structure_name = `IF_SMTG_EMAIL_TEMPLATE=>TY_GT_TMPL_CONT`
CHANGING
ct_components = lt_components ).
ro_structdescr = cl_abap_structdescr=>create( lt_components ).
ENDMETHOD.
METHOD zif_abapgit_object~changed_by.
rv_user = c_user_unknown.
ENDMETHOD.
METHOD zif_abapgit_object~delete.
DATA: lx_error TYPE REF TO cx_root.
TRY.
CALL METHOD ('CL_SMTG_EMAIL_TEMPLATE')=>delete
EXPORTING
iv_id = mv_template_id.
CATCH cx_root INTO lx_error.
zcx_abapgit_exception=>raise( iv_text = lx_error->get_text( )
ix_previous = lx_error ).
ENDTRY.
ENDMETHOD.
METHOD zif_abapgit_object~deserialize.
DATA:
lr_template TYPE REF TO data,
lx_error TYPE REF TO cx_root,
lo_template TYPE REF TO object.
FIELD-SYMBOLS:
<lg_template> TYPE data,
<lg_header> TYPE data,
<lt_header> TYPE INDEX TABLE,
<lt_content> TYPE INDEX TABLE,
<lg_name> TYPE data,
<lg_description> TYPE data,
<lg_header_text> TYPE data.
mo_structdescr = get_structure( ).
CREATE DATA lr_template TYPE HANDLE mo_structdescr.
ASSIGN lr_template->* TO <lg_template>.
ASSERT sy-subrc = 0.
io_xml->read(
EXPORTING
iv_name = 'SMTG'
CHANGING
cg_data = <lg_template> ).
ASSIGN
COMPONENT 'HEADER'
OF STRUCTURE <lg_template>
TO <lg_header>.
ASSERT sy-subrc = 0.
ASSIGN
COMPONENT 'HEADER_T'
OF STRUCTURE <lg_template>
TO <lt_header>.
ASSERT sy-subrc = 0.
ASSIGN
COMPONENT 'CONTENT'
OF STRUCTURE <lg_template>
TO <lt_content>.
ASSERT sy-subrc = 0.
TRY.
IF zif_abapgit_object~exists( ) = abap_true.
CALL METHOD ('CL_SMTG_EMAIL_TEMPLATE')=>get
EXPORTING
iv_id = mv_template_id
RECEIVING
ro_instance = lo_template.
ELSE.
CALL METHOD ('CL_SMTG_EMAIL_TEMPLATE')=>create
EXPORTING
is_tmpl_hdr = <lg_header>
RECEIVING
ro_email_template = lo_template.
ENDIF.
CALL METHOD lo_template->('IF_SMTG_EMAIL_TEMPLATE~SET_TMPL_CONT_ALL')
EXPORTING
it_tmpl_cont = <lt_content>.
READ TABLE <lt_header> ASSIGNING <lg_header_text>
INDEX 1.
IF sy-subrc = 0.
ASSIGN
COMPONENT 'NAME'
OF STRUCTURE <lg_header_text>
TO <lg_name>.
ASSERT sy-subrc = 0.
ASSIGN
COMPONENT 'DESCRIPTION'
OF STRUCTURE <lg_header_text>
TO <lg_description>.
ASSERT sy-subrc = 0.
CALL METHOD lo_template->('IF_SMTG_EMAIL_TEMPLATE~SET_TEXT')
EXPORTING
iv_name = <lg_name>
iv_description = <lg_description>.
ENDIF.
tadir_insert( iv_package ).
corr_insert( iv_package ).
CALL METHOD lo_template->('IF_SMTG_EMAIL_TEMPLATE~SAVE')
EXPORTING
iv_lock = abap_true
iv_commit = abap_true
iv_wait = abap_true.
CATCH cx_root INTO lx_error.
zcx_abapgit_exception=>raise( iv_text = lx_error->get_text( )
ix_previous = lx_error ).
ENDTRY.
ENDMETHOD.
METHOD zif_abapgit_object~exists.
TRY.
CALL METHOD ('CL_SMTG_EMAIL_TEMPLATE')=>get
EXPORTING
iv_id = mv_template_id.
rv_bool = abap_true.
CATCH cx_root.
rv_bool = abap_false.
ENDTRY.
ENDMETHOD.
METHOD zif_abapgit_object~get_comparator.
RETURN.
ENDMETHOD.
METHOD zif_abapgit_object~get_deserialize_steps.
APPEND zif_abapgit_object=>gc_step_id-late TO rt_steps.
ENDMETHOD.
METHOD zif_abapgit_object~get_metadata.
rs_metadata = get_metadata( ).
rs_metadata-delete_tadir = abap_true.
ENDMETHOD.
METHOD zif_abapgit_object~is_active.
rv_active = is_active( ).
ENDMETHOD.
METHOD zif_abapgit_object~is_locked.
rv_is_locked = exists_a_lock_entry_for( iv_lock_object = 'E_SMTG'
iv_argument = |{ mv_template_id }| ).
ENDMETHOD.
METHOD zif_abapgit_object~jump.
CALL FUNCTION 'RS_TOOL_ACCESS_REMOTE'
STARTING NEW TASK 'GIT'
EXPORTING
operation = 'SHOW'
object_name = ms_item-obj_name
object_type = ms_item-obj_type
EXCEPTIONS
not_executed = 1
invalid_object_type = 2
OTHERS = 3.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( |SMTG Jump Error. RS_TOOL_ACCESS subrc={ sy-subrc }| ).
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_object~serialize.
DATA:
lr_template TYPE REF TO data,
lx_error TYPE REF TO cx_root,
lo_template TYPE REF TO object.
FIELD-SYMBOLS:
<lg_template> TYPE data,
<lg_header> TYPE data,
<lt_header> TYPE INDEX TABLE,
<lt_content> TYPE INDEX TABLE.
mo_structdescr = get_structure( ).
CREATE DATA lr_template TYPE HANDLE mo_structdescr.
ASSIGN lr_template->* TO <lg_template>.
ASSERT sy-subrc = 0.
ASSIGN
COMPONENT 'HEADER'
OF STRUCTURE <lg_template>
TO <lg_header>.
ASSERT sy-subrc = 0.
ASSIGN
COMPONENT 'HEADER_T'
OF STRUCTURE <lg_template>
TO <lt_header>.
ASSERT sy-subrc = 0.
ASSIGN
COMPONENT 'CONTENT'
OF STRUCTURE <lg_template>
TO <lt_content>.
ASSERT sy-subrc = 0.
TRY.
CALL METHOD ('CL_SMTG_EMAIL_TEMPLATE')=>get
EXPORTING
iv_id = mv_template_id
RECEIVING
ro_instance = lo_template.
CALL METHOD lo_template->('IF_SMTG_EMAIL_TEMPLATE~GET_TMPL_HDR')
RECEIVING
rs_tmpl_hdr = <lg_header>.
CALL METHOD lo_template->('IF_SMTG_EMAIL_TEMPLATE~GET_TMPL_HDR_T_ALL')
RECEIVING
rt_tmpl_hdr_t = <lt_header>.
CALL METHOD lo_template->('IF_SMTG_EMAIL_TEMPLATE~GET_TMPL_CONT_ALL')
RECEIVING
rt_tmpl_cont = <lt_content>.
clear_field( EXPORTING iv_fieldname = 'CREA_DATE_TIME' CHANGING cg_header = <lg_header> ).
clear_field( EXPORTING iv_fieldname = 'CREA_USER_ACCT' CHANGING cg_header = <lg_header> ).
clear_field( EXPORTING iv_fieldname = 'LST_CH_DATE_TIME' CHANGING cg_header = <lg_header> ).
clear_field( EXPORTING iv_fieldname = 'LST_CH_USER_ACCT' CHANGING cg_header = <lg_header> ).
io_xml->add(
iv_name = 'SMTG'
ig_data = <lg_template> ).
CATCH cx_root INTO lx_error.
zcx_abapgit_exception=>raise(
iv_text = lx_error->get_text( )
ix_previous = lx_error ).
ENDTRY.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
5796,
25297,
5550,
20032,
17941,
44731,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
397,
499,
18300,
62,
48205,
62,
16668,
25261,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
397,
499,
18300,
62,
15252,
13,
198,
220,
220,
220,
8355,
43429,
1546,
6941,
62,
16624,
7473,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
5908,
62,
16624,
13,
628,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
23772,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
62,
9186,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
9186,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
16129,
41876,
7500,
292,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42865,
25,
198,
220,
220,
220,
220,
220,
285,
85,
62,
28243,
62,
312,
41876,
269,
406,
49494,
1542,
11,
198,
220,
220,
220,
220,
220,
6941,
62,
7249,
20147,
81,
41876,
4526,
37,
5390,
537,
62,
397,
499,
62,
7249,
20147,
81,
13,
628,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
1598,
62,
3245,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
3245,
3672,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
5870,
15567,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
70,
62,
25677,
220,
220,
220,
41876,
597,
11,
628,
220,
220,
220,
220,
220,
651,
62,
301,
5620,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
305,
62,
7249,
20147,
81,
8,
41876,
4526,
37,
5390,
537,
62,
397,
499,
62,
7249,
20147,
81,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
11,
628,
220,
220,
220,
220,
220,
751,
62,
42895,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
69,
8207,
3672,
220,
220,
220,
220,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
301,
5620,
62,
3672,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
5870,
15567,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
269,
83,
62,
5589,
3906,
220,
220,
220,
220,
41876,
450,
499,
62,
42895,
62,
8658,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
6242,
2969,
38,
2043,
62,
9864,
23680,
62,
12310,
35990,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
751,
62,
42895,
13,
628,
220,
220,
220,
42865,
25,
198,
220,
220,
220,
220,
220,
43979,
62,
42895,
34178,
48920,
3963,
269,
83,
62,
5589,
3906,
11,
198,
220,
220,
220,
220,
220,
2376,
62,
774,
9124,
3798,
81,
41876,
4526,
37,
5390,
537,
62,
397,
499,
62,
774,
9124,
3798,
81,
13,
628,
220,
220,
220,
537,
62,
397,
499,
62,
7249,
20147,
81,
14804,
20147,
4892,
62,
1525,
62,
3672,
7,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
279,
62,
3672,
220,
220,
220,
220,
220,
220,
220,
220,
796,
21628,
62,
301,
5620,
62,
3672,
198,
220,
220,
220,
220,
220,
19644,
36,
3824,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
279,
62,
20147,
81,
62,
5420,
220,
220,
220,
796,
2376,
62,
774,
9124,
3798,
81,
198,
220,
220,
220,
220,
220,
7788,
42006,
11053,
198,
220,
220,
220,
220,
220,
220,
220,
2099,
62,
1662,
62,
9275,
796,
352,
198,
220,
220,
220,
220,
220,
220,
220,
440,
4221,
4877,
220,
220,
220,
220,
220,
220,
220,
220,
796,
362,
6739,
628,
220,
220,
220,
16876,
827,
12,
7266,
6015,
1279,
29,
657,
13,
198,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
14804,
40225,
7,
930,
12310,
35990,
407,
4855,
91,
6739,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
43979,
62,
42895,
12,
3672,
796,
220,
21628,
62,
69,
8207,
3672,
13,
198,
220,
220,
220,
43979,
62,
42895,
12,
4906,
5633,
28,
2376,
62,
774,
9124,
3798,
81,
13,
198,
220,
220,
220,
29194,
17395,
43979,
62,
42895,
39319,
43679,
269,
83,
62,
5589,
3906,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1598,
62,
3245,
13,
628,
220,
220,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
25,
1279,
75,
70,
62,
3245,
29,
41876,
1366,
13,
628,
220,
220,
220,
24994,
16284,
198,
220,
220,
220,
220,
220,
24301,
1340,
3525,
21628,
62,
3245,
3672,
198,
220,
220,
220,
220,
220,
3963,
19269,
18415,
11335,
269,
70,
62,
25677,
198,
220,
220,
220,
220,
220,
5390,
1279,
75,
70,
62,
3245,
28401,
198,
220,
220,
220,
24994,
17395,
827,
12,
7266,
6015,
796,
657,
13,
628,
220,
220,
220,
30301,
1503,
25,
1279,
75,
70,
62,
3245,
28401,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
23772,
13,
628,
220,
220,
220,
2208,
3784,
41571,
273,
7,
198,
220,
220,
220,
220,
220,
318,
62,
9186,
220,
220,
220,
220,
796,
318,
62,
9186,
198,
220,
220,
220,
220,
220,
21628,
62,
16129,
796,
21628,
62,
16129,
6739,
628,
220,
220,
220,
285,
85,
62,
28243,
62,
312,
796,
13845
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_abapgit_object_cus1 DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL.
PUBLIC SECTION.
INTERFACES zif_abapgit_object.
ALIASES mo_files FOR zif_abapgit_object~mo_files.
METHODS constructor
IMPORTING
is_item TYPE zif_abapgit_definitions=>ty_item
iv_language TYPE spras.
PROTECTED SECTION.
PRIVATE SECTION.
TYPES: ty_activity_titles TYPE STANDARD TABLE OF cus_actt
WITH NON-UNIQUE DEFAULT KEY,
ty_objects TYPE STANDARD TABLE OF cus_actobj
WITH NON-UNIQUE DEFAULT KEY,
ty_objects_title TYPE STANDARD TABLE OF cus_actobt
WITH NON-UNIQUE DEFAULT KEY,
BEGIN OF ty_customzing_activity,
activity_header TYPE cus_acth,
activity_customer_exit TYPE cus_actext,
activity_title TYPE ty_activity_titles,
objects TYPE ty_objects,
objects_title TYPE ty_objects_title,
END OF ty_customzing_activity.
DATA: mv_customizing_activity TYPE cus_img_ac.
ENDCLASS.
CLASS zcl_abapgit_object_cus1 IMPLEMENTATION.
METHOD constructor.
super->constructor( is_item = is_item
iv_language = iv_language ).
mv_customizing_activity = ms_item-obj_name.
ENDMETHOD.
METHOD zif_abapgit_object~changed_by.
rv_user = c_user_unknown.
ENDMETHOD.
METHOD zif_abapgit_object~delete.
DATA: ls_message TYPE hier_mess.
CALL FUNCTION 'S_CUS_ACTIVITY_DELETE'
EXPORTING
activity = mv_customizing_activity
IMPORTING
message = ls_message.
IF ls_message-msgty <> 'S'.
zcx_abapgit_exception=>raise( |error from delete CUS1 { mv_customizing_activity } S_CUS_ACTIVITY_DELETE| ).
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_object~deserialize.
DATA: ls_customzing_activity TYPE ty_customzing_activity,
ls_message TYPE hier_mess.
io_xml->read(
EXPORTING
iv_name = 'CUS1'
CHANGING
cg_data = ls_customzing_activity ).
CALL FUNCTION 'S_CUS_ACTIVITY_SAVE'
EXPORTING
activity = ls_customzing_activity-activity_header-act_id
activity_type = ls_customzing_activity-activity_header-act_type
tcode = ls_customzing_activity-activity_header-tcode
customer_exit = ls_customzing_activity-activity_customer_exit-exit_name
customer_exit_enhancement = ls_customzing_activity-activity_customer_exit-enhancement
customer_exit_implementation = ls_customzing_activity-activity_customer_exit-impl_name
IMPORTING
message = ls_message
TABLES
activity_title = ls_customzing_activity-activity_title
objects = ls_customzing_activity-objects
objects_texts = ls_customzing_activity-objects_title.
IF ls_message-msgty <> 'S'.
zcx_abapgit_exception=>raise( |error from deserialize CUS1 { mv_customizing_activity } S_CUS_ACTIVITY_SAVE| ).
ENDIF.
CALL FUNCTION 'RS_CORR_INSERT'
EXPORTING
object = ms_item-obj_name
object_class = ms_item-obj_type
mode = 'I'
global_lock = abap_true
devclass = iv_package
master_language = mv_language
suppress_dialog = abap_true
EXCEPTIONS
cancelled = 1
permission_failure = 2
unknown_objectclass = 3
OTHERS = 4.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise_t100( ).
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_object~exists.
CALL FUNCTION 'S_CUS_ACTIVITY_EXIST'
EXPORTING
activity = mv_customizing_activity
EXCEPTIONS
activity_exists_not = 1
OTHERS = 2.
rv_bool = boolc( sy-subrc = 0 ).
ENDMETHOD.
METHOD zif_abapgit_object~get_comparator.
RETURN.
ENDMETHOD.
METHOD zif_abapgit_object~get_deserialize_steps.
APPEND zif_abapgit_object=>gc_step_id-abap TO rt_steps.
ENDMETHOD.
METHOD zif_abapgit_object~get_metadata.
rs_metadata = get_metadata( ).
rs_metadata-delete_tadir = abap_true.
ENDMETHOD.
METHOD zif_abapgit_object~is_active.
rv_active = abap_true.
ENDMETHOD.
METHOD zif_abapgit_object~is_locked.
rv_is_locked = abap_false.
ENDMETHOD.
METHOD zif_abapgit_object~jump.
DATA: lt_bdc_data TYPE STANDARD TABLE OF bdcdata.
FIELD-SYMBOLS: <ls_bdc_data> TYPE bdcdata.
APPEND INITIAL LINE TO lt_bdc_data ASSIGNING <ls_bdc_data>.
<ls_bdc_data>-program = 'SAPLS_CUS_ACTIVITY'.
<ls_bdc_data>-dynpro = '0200'.
<ls_bdc_data>-dynbegin = 'X'.
APPEND INITIAL LINE TO lt_bdc_data ASSIGNING <ls_bdc_data>.
<ls_bdc_data>-fnam = 'CUS_ACTH-ACT_ID'.
<ls_bdc_data>-fval = mv_customizing_activity.
APPEND INITIAL LINE TO lt_bdc_data ASSIGNING <ls_bdc_data>.
<ls_bdc_data>-fnam = 'BDC_OKCODE'.
<ls_bdc_data>-fval = '=ACT_DISP'.
zcl_abapgit_ui_factory=>get_gui_jumper( )->jump_batch_input(
iv_tcode = 'S_CUS_ACTIVITY'
it_bdcdata = lt_bdc_data ).
ENDMETHOD.
METHOD zif_abapgit_object~serialize.
DATA: ls_customzing_activity TYPE ty_customzing_activity.
CALL FUNCTION 'S_CUS_ACTIVITY_READ'
EXPORTING
activity = mv_customizing_activity
IMPORTING
activity_header = ls_customzing_activity-activity_header
activity_customer_exit = ls_customzing_activity-activity_customer_exit
TABLES
activity_title = ls_customzing_activity-activity_title
objects = ls_customzing_activity-objects
objects_title = ls_customzing_activity-objects_title.
CLEAR: ls_customzing_activity-activity_header-fdatetime,
ls_customzing_activity-activity_header-fuser,
ls_customzing_activity-activity_header-ldatetime,
ls_customzing_activity-activity_header-luser.
IF io_xml->i18n_params( )-main_language_only = abap_true.
DELETE ls_customzing_activity-activity_title WHERE spras <> mv_language.
ENDIF.
io_xml->add( iv_name = 'CUS1'
ig_data = ls_customzing_activity ).
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
9042,
16,
5550,
20032,
17941,
44731,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
397,
499,
18300,
62,
48205,
62,
16668,
25261,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
397,
499,
18300,
62,
15252,
13,
198,
220,
220,
220,
8355,
43429,
1546,
6941,
62,
16624,
7473,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
5908,
62,
16624,
13,
628,
220,
220,
220,
337,
36252,
50,
23772,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
318,
62,
9186,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
9186,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
16129,
41876,
7500,
292,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
24412,
47,
1546,
25,
1259,
62,
21797,
62,
83,
30540,
41876,
49053,
9795,
43679,
3963,
269,
385,
62,
529,
83,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13315,
44521,
12,
4944,
33866,
8924,
5550,
38865,
35374,
11,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1259,
62,
48205,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
49053,
9795,
43679,
3963,
269,
385,
62,
529,
26801,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13315,
44521,
12,
4944,
33866,
8924,
5550,
38865,
35374,
11,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1259,
62,
48205,
62,
7839,
220,
220,
41876,
49053,
9795,
43679,
3963,
269,
385,
62,
529,
672,
83,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13315,
44521,
12,
4944,
33866,
8924,
5550,
38865,
35374,
11,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
347,
43312,
3963,
1259,
62,
23144,
9510,
62,
21797,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3842,
62,
25677,
220,
220,
220,
220,
220,
220,
220,
41876,
269,
385,
62,
529,
71,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3842,
62,
23144,
263,
62,
37023,
41876,
269,
385,
62,
529,
2302,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3842,
62,
7839,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1259,
62,
21797,
62,
83,
30540,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5563,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1259,
62,
48205,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5563,
62,
7839,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1259,
62,
48205,
62,
7839,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
23144,
9510,
62,
21797,
13,
628,
220,
220,
220,
42865,
25,
285,
85,
62,
23144,
2890,
62,
21797,
41876,
269,
385,
62,
9600,
62,
330,
13,
198,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
9042,
16,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
23772,
13,
628,
220,
220,
220,
2208,
3784,
41571,
273,
7,
318,
62,
9186,
796,
318,
62,
9186,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
16129,
796,
21628,
62,
16129,
6739,
628,
220,
220,
220,
285,
85,
62,
23144,
2890,
62,
21797,
796,
13845,
62,
9186,
12,
26801,
62,
3672,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
40985,
62,
1525,
13,
198,
220,
220,
220,
374,
85,
62,
7220,
796,
269,
62,
7220,
62,
34680,
13,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
33678,
13,
628,
220,
220,
220,
42865,
25,
43979,
62,
20500,
41876,
13550,
62,
37348,
13,
628,
220,
220,
220,
42815,
29397,
4177,
2849,
705,
50,
62,
34,
2937,
62,
10659,
3824,
9050,
62,
7206,
2538,
9328,
6,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
3842,
796,
285,
85,
62,
23144,
2890,
62,
21797,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
3275,
220,
796,
43979,
62,
20500,
13,
628,
220,
220,
220,
16876,
43979,
62,
20500,
12,
19662,
774,
1279,
29,
705,
50,
4458,
198,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
14804,
40225,
7,
930,
18224,
422,
12233,
327,
2937,
16,
1391,
285,
85,
62,
23144,
2890,
62,
21797,
1782,
311,
62,
34,
2937,
62,
10659,
3824,
9050,
62,
7206,
2538,
9328,
91,
6739,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
8906,
48499,
1096,
13,
628,
220,
220,
220,
42865,
25,
43979,
62,
23144,
9510,
62,
21797,
41876,
1259,
62,
23144,
9510,
62,
21797,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
43979,
62,
20500,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
13550,
62,
37348,
13,
628,
220,
220,
220,
33245,
62,
19875,
3784,
961,
7,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
3672,
796,
705,
34,
2937,
16,
6,
198,
220,
220,
220,
220,
220,
5870,
15567,
2751,
198,
220,
220,
220,
220,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS ltcl_test DEFINITION FOR TESTING DURATION SHORT RISK LEVEL HARMLESS.
PRIVATE SECTION.
METHODS:
repo_host FOR TESTING RAISING zcx_abapgit_exception,
repo_name1 FOR TESTING RAISING zcx_abapgit_exception,
repo_name2 FOR TESTING RAISING zcx_abapgit_exception,
repo_name3 FOR TESTING RAISING zcx_abapgit_exception,
repo_name4 FOR TESTING RAISING zcx_abapgit_exception,
repo_name5 FOR TESTING RAISING zcx_abapgit_exception,
repo_error FOR TESTING,
url_validate1 FOR TESTING,
url_validate2 FOR TESTING,
url_validate3 FOR TESTING.
ENDCLASS.
CLASS ltcl_test IMPLEMENTATION.
METHOD repo_error.
TRY.
zcl_abapgit_url=>host( 'not a real url' ).
cl_abap_unit_assert=>fail( ).
CATCH zcx_abapgit_exception. "#EC NO_HANDLER
ENDTRY.
ENDMETHOD.
METHOD repo_host.
DATA: lv_host TYPE string.
lv_host = zcl_abapgit_url=>host( 'https://github.com/larshp/Foobar.git' ).
cl_abap_unit_assert=>assert_equals(
exp = 'https://github.com'
act = lv_host ).
ENDMETHOD.
METHOD repo_name1.
DATA: lv_name TYPE string.
lv_name = zcl_abapgit_url=>name( 'https://github.com/larshp/Foobar.git' ).
cl_abap_unit_assert=>assert_equals(
exp = 'Foobar'
act = lv_name ).
ENDMETHOD.
METHOD repo_name2.
DATA: lv_name TYPE string.
lv_name = zcl_abapgit_url=>name( 'https://git.hanatrial.ondemand.com/p12345trial/yay' ).
cl_abap_unit_assert=>assert_equals(
exp = 'yay'
act = lv_name ).
ENDMETHOD.
METHOD repo_name3.
DATA: lv_name TYPE string.
lv_name = zcl_abapgit_url=>name( 'https://github.com/larshp/Foobar/' ).
cl_abap_unit_assert=>assert_equals(
exp = 'Foobar'
act = lv_name ).
ENDMETHOD.
METHOD repo_name4.
DATA: lv_name TYPE string.
lv_name = zcl_abapgit_url=>name( 'https://github.com/larshp/foo-bar/' ).
cl_abap_unit_assert=>assert_equals(
exp = 'foo-bar'
act = lv_name ).
ENDMETHOD.
METHOD repo_name5.
DATA: lv_name TYPE string.
lv_name = zcl_abapgit_url=>name( 'https://github.com/larshp/foo_bar/' ).
cl_abap_unit_assert=>assert_equals(
exp = 'foo_bar'
act = lv_name ).
ENDMETHOD.
METHOD url_validate1.
TRY.
zcl_abapgit_url=>validate( 'http://github.com/larshp/Foobar.git' ).
CATCH zcx_abapgit_exception. "#EC NO_HANDLER
cl_abap_unit_assert=>fail( ).
ENDTRY.
ENDMETHOD.
METHOD url_validate2.
TRY.
zcl_abapgit_url=>validate( 'https://github.com/larshp/Foobar.git' ).
CATCH zcx_abapgit_exception. "#EC NO_HANDLER
cl_abap_unit_assert=>fail( ).
ENDTRY.
ENDMETHOD.
METHOD url_validate3.
TRY.
zcl_abapgit_url=>validate( 'XYZ://github.com/larshp/Foobar.git' ).
cl_abap_unit_assert=>fail( ).
CATCH zcx_abapgit_exception. "#EC NO_HANDLER
ENDTRY.
ENDMETHOD.
ENDCLASS.
| [
31631,
300,
83,
565,
62,
9288,
5550,
20032,
17941,
7473,
43001,
2751,
360,
4261,
6234,
6006,
9863,
45698,
42,
49277,
43638,
5805,
7597,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
29924,
62,
4774,
7473,
43001,
2751,
17926,
1797,
2751,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
11,
198,
220,
220,
220,
220,
220,
29924,
62,
3672,
16,
7473,
43001,
2751,
17926,
1797,
2751,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
11,
198,
220,
220,
220,
220,
220,
29924,
62,
3672,
17,
7473,
43001,
2751,
17926,
1797,
2751,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
11,
198,
220,
220,
220,
220,
220,
29924,
62,
3672,
18,
7473,
43001,
2751,
17926,
1797,
2751,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
11,
198,
220,
220,
220,
220,
220,
29924,
62,
3672,
19,
7473,
43001,
2751,
17926,
1797,
2751,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
11,
198,
220,
220,
220,
220,
220,
29924,
62,
3672,
20,
7473,
43001,
2751,
17926,
1797,
2751,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
11,
198,
220,
220,
220,
220,
220,
29924,
62,
18224,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
19016,
62,
12102,
378,
16,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
19016,
62,
12102,
378,
17,
7473,
43001,
2751,
11,
198,
220,
220,
220,
220,
220,
19016,
62,
12102,
378,
18,
7473,
43001,
2751,
13,
198,
198,
10619,
31631,
13,
628,
198,
31631,
300,
83,
565,
62,
9288,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
29924,
62,
18224,
13,
628,
220,
220,
220,
7579,
56,
13,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
565,
62,
397,
499,
18300,
62,
6371,
14804,
4774,
7,
705,
1662,
257,
1103,
19016,
6,
6739,
198,
220,
220,
220,
220,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
32165,
7,
6739,
198,
220,
220,
220,
220,
220,
327,
11417,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25113,
2943,
8005,
62,
39,
6981,
39878,
198,
220,
220,
220,
23578,
40405,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
29924,
62,
4774,
13,
628,
220,
220,
220,
42865,
25,
300,
85,
62,
4774,
41876,
4731,
13,
628,
220,
220,
220,
300,
85,
62,
4774,
796,
1976,
565,
62,
397,
499,
18300,
62,
6371,
14804,
4774,
7,
705,
5450,
1378,
12567,
13,
785,
14,
75,
5406,
79,
14,
37,
78,
30973,
13,
18300,
6,
6739,
628,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
198,
220,
220,
220,
220,
220,
220,
220,
1033,
796,
705,
5450,
1378,
12567,
13,
785,
6,
198,
220,
220,
220,
220,
220,
220,
220,
719,
796,
300,
85,
62,
4774,
6739,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
29924,
62,
3672,
16,
13,
628,
220,
220,
220,
42865,
25,
300,
85,
62,
3672,
41876,
4731,
13,
628,
220,
220,
220,
300,
85,
62,
3672,
796,
1976,
565,
62,
397,
499,
18300,
62,
6371,
14804,
3672,
7,
705,
5450,
1378,
12567,
13,
785,
14,
75,
5406,
79,
14,
37,
78,
30973,
13,
18300,
6,
6739,
628,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
198,
220,
220,
220,
220,
220,
220,
220,
1033,
796,
705,
37,
78,
30973,
6,
198,
220,
220,
220,
220,
220,
220,
220,
719,
796,
300,
85,
62,
3672,
6739,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
29924,
62,
3672,
17,
13,
628,
220,
220,
220,
42865,
25,
300,
85,
62,
3672,
41876,
4731,
13,
628,
220,
220,
220,
300,
85,
62,
3672,
796,
1976,
565,
62,
397,
499,
18300,
62,
6371,
14804,
3672,
7,
705,
5450,
1378,
18300,
13,
7637,
265,
4454,
13,
623,
368,
392,
13,
785,
14,
79,
10163,
2231,
45994,
14,
88,
323,
6,
6739,
628,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
198,
220,
220,
220,
220,
220,
220,
220,
1033,
796,
705,
88,
323,
6,
198,
220,
220,
220,
220,
220,
220,
220,
719,
796,
300,
85,
62,
3672,
6739,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
29924,
62,
3672,
18,
13,
628,
220,
220,
220,
42865,
25,
300,
85,
62,
3672,
41876,
4731,
13,
628,
220,
220,
220,
300,
85,
62,
3672,
796,
1976,
565,
62,
397,
499,
18300,
62,
6371,
14804,
3672,
7,
705,
5450,
1378,
12567,
13,
785,
14,
75,
5406,
79,
14,
37,
78,
30973,
14,
6,
6739,
628,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
198,
220,
220,
220,
220,
220,
220,
220,
1033,
796,
705,
37,
78,
30973,
6,
198,
220,
220,
220,
220,
220,
220,
220,
719,
796,
300,
85,
62,
3672,
6739,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
29924,
62,
3672,
19,
13,
628,
220,
220,
220,
42865,
25,
300,
85,
62,
3672,
41876,
4731,
13,
628,
220,
220,
220,
300,
85,
62,
3672,
796,
1976,
565,
62,
397,
499,
18300,
62,
6371,
14804,
3672,
7,
705,
5450,
1378,
12567,
13,
785,
14,
75,
5406,
79,
14,
21943,
12,
5657,
14,
6,
6739,
628,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
198,
220,
220,
220,
220,
220,
220,
220,
1033,
796,
705,
21943,
12,
5657,
6,
198,
220,
220,
220,
220,
220,
220,
220,
719,
796,
300,
85,
62,
3672,
6739,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
29924,
62,
3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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_abapgit_gui_page DEFINITION PUBLIC ABSTRACT CREATE PUBLIC.
PUBLIC SECTION.
INTERFACES:
zif_abapgit_gui_renderable,
zif_abapgit_gui_event_handler,
zif_abapgit_gui_error_handler.
CONSTANTS:
" You should remember that these actions are handled in the UI.
" Have a look at the JS file.
BEGIN OF c_global_page_action,
showhotkeys TYPE string VALUE `showHotkeys` ##NO_TEXT,
END OF c_global_page_action.
CLASS-METHODS:
get_global_hotkeys
RETURNING
VALUE(rt_hotkey) TYPE zif_abapgit_gui_page_hotkey=>tty_hotkey_with_name.
METHODS:
constructor.
PROTECTED SECTION.
TYPES: BEGIN OF ty_control,
redirect_url TYPE string,
page_title TYPE string,
page_menu TYPE REF TO zcl_abapgit_html_toolbar,
END OF ty_control.
TYPES: BEGIN OF ty_event,
method TYPE string,
name TYPE string,
END OF ty_event.
TYPES: tt_events TYPE STANDARD TABLE OF ty_event WITH DEFAULT KEY.
DATA: ms_control TYPE ty_control.
METHODS render_content ABSTRACT
RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html
RAISING zcx_abapgit_exception.
METHODS get_events
RETURNING VALUE(rt_events) TYPE tt_events
RAISING zcx_abapgit_exception.
METHODS render_event_as_form
IMPORTING is_event TYPE ty_event
RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html
RAISING zcx_abapgit_exception.
METHODS scripts
RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html
RAISING zcx_abapgit_exception.
PRIVATE SECTION.
DATA: mo_settings TYPE REF TO zcl_abapgit_settings,
mt_hotkeys TYPE zif_abapgit_gui_page_hotkey=>tty_hotkey_with_name,
mx_error TYPE REF TO zcx_abapgit_exception,
mo_exception_viewer TYPE REF TO zcl_abapgit_exception_viewer.
METHODS html_head
RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html.
METHODS title
RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html.
METHODS footer
RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html.
METHODS redirect
RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html.
METHODS link_hints
IMPORTING
io_html TYPE REF TO zcl_abapgit_html
RAISING
zcx_abapgit_exception.
METHODS insert_hotkeys_to_page
IMPORTING
io_html TYPE REF TO zcl_abapgit_html
RAISING
zcx_abapgit_exception.
METHODS render_hotkey_overview
RETURNING
VALUE(ro_html) TYPE REF TO zcl_abapgit_html
RAISING
zcx_abapgit_exception.
METHODS call_browser
IMPORTING
iv_url TYPE csequence
RAISING
zcx_abapgit_exception.
METHODS define_hotkeys
RETURNING
VALUE(rt_hotkeys) TYPE zif_abapgit_gui_page_hotkey=>tty_hotkey_with_name
RAISING
zcx_abapgit_exception.
METHODS get_default_hotkeys
RETURNING
VALUE(rt_default_hotkeys) TYPE zif_abapgit_gui_page_hotkey=>tty_hotkey_with_name.
METHODS render_error_message_box
RETURNING
VALUE(ro_html) TYPE REF TO zcl_abapgit_html
RAISING
zcx_abapgit_exception.
ENDCLASS.
CLASS ZCL_ABAPGIT_GUI_PAGE IMPLEMENTATION.
METHOD call_browser.
cl_gui_frontend_services=>execute(
EXPORTING
document = |{ iv_url }|
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
bad_parameter = 3
file_not_found = 4
path_not_found = 5
file_extension_unknown = 6
error_execute_failed = 7
synchronous_failed = 8
not_supported_by_gui = 9
OTHERS = 10 ).
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise_t100( ).
ENDIF.
ENDMETHOD.
METHOD constructor.
mo_settings = zcl_abapgit_persist_settings=>get_instance( )->read( ).
ENDMETHOD.
METHOD define_hotkeys.
DATA: lo_settings TYPE REF TO zcl_abapgit_settings,
lt_user_defined_hotkeys TYPE zif_abapgit_definitions=>tty_hotkey.
FIELD-SYMBOLS: <ls_hotkey> TYPE zif_abapgit_gui_page_hotkey=>ty_hotkey_with_name,
<ls_user_defined_hotkey> LIKE LINE OF lt_user_defined_hotkeys.
rt_hotkeys = get_default_hotkeys( ).
" Override default hotkeys with user defined
lo_settings = zcl_abapgit_persist_settings=>get_instance( )->read( ).
lt_user_defined_hotkeys = lo_settings->get_hotkeys( ).
LOOP AT rt_hotkeys ASSIGNING <ls_hotkey>.
READ TABLE lt_user_defined_hotkeys ASSIGNING <ls_user_defined_hotkey>
WITH TABLE KEY action
COMPONENTS action = <ls_hotkey>-action.
IF sy-subrc = 0.
<ls_hotkey>-hotkey = <ls_user_defined_hotkey>-hotkey.
ELSEIF lines( lt_user_defined_hotkeys ) > 0.
" User removed the hotkey
DELETE TABLE rt_hotkeys FROM <ls_hotkey>.
ENDIF.
ENDLOOP.
ENDMETHOD.
METHOD footer.
CREATE OBJECT ro_html.
ro_html->add( '<div id="footer">' ). "#EC NOTEXT
ro_html->add( zcl_abapgit_html=>a( iv_txt = '<img src="img/logo" alt="logo">'
iv_id = 'abapGitLogo'
iv_act = zif_abapgit_definitions=>c_action-abapgit_home ) ).
ro_html->add( '<table class="w100"><tr>' ). "#EC NOTEXT
ro_html->add( '<td class="w40"></td>' ). "#EC NOTEXT
ro_html->add( |<td><span class="version">{ zif_abapgit_version=>gc_abap_version }</span></td>| ). "#EC NOTEXT
ro_html->add( '<td id="debug-output" class="w40"></td>' ). "#EC NOTEXT
ro_html->add( '</tr></table>' ). "#EC NOTEXT
ro_html->add( '</div>' ). "#EC NOTEXT
ENDMETHOD.
METHOD get_default_hotkeys.
DATA: lt_page_hotkeys LIKE mt_hotkeys.
rt_default_hotkeys = get_global_hotkeys( ).
TRY.
CALL METHOD me->('ZIF_ABAPGIT_GUI_PAGE_HOTKEY~GET_HOTKEY_ACTIONS')
RECEIVING
rt_hotkey_actions = lt_page_hotkeys.
INSERT LINES OF lt_page_hotkeys INTO TABLE rt_default_hotkeys.
CATCH cx_root.
" Current page doesn't implement hotkey interface, do nothing
ENDTRY.
ENDMETHOD.
METHOD get_events.
" Return actions you need on your page.
ENDMETHOD.
METHOD get_global_hotkeys.
" these are the global shortcuts active on all pages
DATA: ls_hotkey_action LIKE LINE OF rt_hotkey.
ls_hotkey_action-name = |Show hotkeys help|.
ls_hotkey_action-action = c_global_page_action-showhotkeys.
ls_hotkey_action-hotkey = |?|.
INSERT ls_hotkey_action INTO TABLE rt_hotkey.
ENDMETHOD.
METHOD html_head.
CREATE OBJECT ro_html.
ro_html->add( '<head>' ). "#EC NOTEXT
ro_html->add( '<meta http-equiv="content-type" content="text/html; charset=utf-8">' ). "#EC NOTEXT
ro_html->add( '<meta http-equiv="X-UA-Compatible" content="IE=11,10,9,8" />' ). "#EC NOTEXT
ro_html->add( '<title>abapGit</title>' ). "#EC NOTEXT
ro_html->add( '<link rel="stylesheet" type="text/css" href="css/common.css">' ).
ro_html->add( '<link rel="stylesheet" type="text/css" href="css/ag-icons.css">' ).
" Themes
ro_html->add( '<link rel="stylesheet" type="text/css" href="css/theme-default.css">' ). " Theme basis
CASE mo_settings->get_ui_theme( ).
WHEN zcl_abapgit_settings=>c_ui_theme-dark.
ro_html->add( '<link rel="stylesheet" type="text/css" href="css/theme-dark.css">' ).
WHEN zcl_abapgit_settings=>c_ui_theme-belize.
ro_html->add( '<link rel="stylesheet" type="text/css" href="css/theme-belize-blue.css">' ).
ENDCASE.
ro_html->add( '<script type="text/javascript" src="js/common.js"></script>' ). "#EC NOTEXT
CASE mo_settings->get_icon_scaling( ). " Enforce icon scaling
WHEN mo_settings->c_icon_scaling-large.
ro_html->add( '<style>.icon { font-size: 200% }</style>' ).
WHEN mo_settings->c_icon_scaling-small.
ro_html->add( '<style>.icon.large { font-size: inherit }</style>' ).
ENDCASE.
ro_html->add( '</head>' ). "#EC NOTEXT
ENDMETHOD.
METHOD insert_hotkeys_to_page.
DATA: lv_json TYPE string.
FIELD-SYMBOLS: <ls_hotkey> LIKE LINE OF mt_hotkeys.
lv_json = `{`.
LOOP AT mt_hotkeys ASSIGNING <ls_hotkey>.
IF sy-tabix > 1.
lv_json = lv_json && |,|.
ENDIF.
lv_json = lv_json && | "{ <ls_hotkey>-hotkey }" : "{ <ls_hotkey>-action }" |.
ENDLOOP.
lv_json = lv_json && `}`.
io_html->add( |setKeyBindings({ lv_json });| ).
ENDMETHOD.
METHOD link_hints.
DATA: lv_link_hint_key TYPE char01.
lv_link_hint_key = mo_settings->get_link_hint_key( ).
IF mo_settings->get_link_hints_enabled( ) = abap_true AND lv_link_hint_key IS NOT INITIAL.
io_html->add( |activateLinkHints("{ lv_link_hint_key }");| ).
io_html->add( |setInitialFocusWithQuerySelector('a span', true);| ).
io_html->add( |enableArrowListNavigation();| ).
ENDIF.
ENDMETHOD.
METHOD redirect.
CREATE OBJECT ro_html.
ro_html->add( '<!DOCTYPE html>' ). "#EC NOTEXT
ro_html->add( '<html>' ). "#EC NOTEXT
ro_html->add( '<head>' ). "#EC NOTEXT
ro_html->add( |<meta http-equiv="refresh" content="0; url={ ms_control-redirect_url }">| ). "#EC NOTEXT
ro_html->add( '</head>' ). "#EC NOTEXT
ro_html->add( '</html>' ). "#EC NOTEXT
ENDMETHOD.
METHOD render_error_message_box.
" You should remember that the we have to instantiate ro_html even
" it's overwritten further down. Because ADD checks whether it's
" bound.
CREATE OBJECT ro_html.
" You should remember that we render the message panel only
" if we have an error.
IF mx_error IS NOT BOUND.
RETURN.
ENDIF.
ro_html = zcl_abapgit_gui_chunk_lib=>render_error_message_box( mx_error ).
" You should remember that the exception viewer dispatches the events of
" error message panel
CREATE OBJECT mo_exception_viewer
EXPORTING
ix_error = mx_error.
" You should remember that we render the message panel just once
" for each exception/error text.
CLEAR:
mx_error.
ENDMETHOD.
METHOD render_event_as_form.
CREATE OBJECT ro_html.
ro_html->add(
|<form id='form_{ is_event-name }' method={ is_event-method } action='sapevent:{ is_event-name }'></from>| ).
ENDMETHOD.
METHOD render_hotkey_overview.
ro_html = zcl_abapgit_gui_chunk_lib=>render_hotkey_overview( me ).
ENDMETHOD.
METHOD scripts.
CREATE OBJECT ro_html.
link_hints( ro_html ).
insert_hotkeys_to_page( ro_html ).
ro_html->add( 'var gGoRepoPalette = new CommandPalette(enumerateTocAllRepos, {' ).
ro_html->add( ' toggleKey: "F2",' ).
ro_html->add( ' hotkeyDescription: "Go to repo ..."' ).
ro_html->add( '});' ).
ro_html->add( 'var gCommandPalette = new CommandPalette(enumerateToolbarActions, {' ).
ro_html->add( ' toggleKey: "F1",' ).
ro_html->add( ' hotkeyDescription: "Command ..."' ).
ro_html->add( '});' ).
ENDMETHOD.
METHOD title.
CREATE OBJECT ro_html.
ro_html->add( '<div id="header">' ). "#EC NOTEXT
ro_html->add( '<table class="w100"><tr>' ). "#EC NOTEXT
ro_html->add( |<td class="logo">{
zcl_abapgit_html=>a( iv_txt = '<img src="img/logo" alt="logo">'
iv_id = 'abapGitLogo'
iv_act = zif_abapgit_definitions=>c_action-abapgit_home )
}</td>| ). "#EC NOTEXT
ro_html->add( |<td><span class="page_title"> ► { ms_control-page_title }</span></td>| ). "#EC NOTEXT
IF ms_control-page_menu IS BOUND.
ro_html->add( '<td class="right">' ). "#EC NOTEXT
ro_html->add( ms_control-page_menu->render( iv_right = abap_true ) ).
ro_html->add( '</td>' ). "#EC NOTEXT
ENDIF.
ro_html->add( '</tr></table>' ). "#EC NOTEXT
ro_html->add( '</div>' ). "#EC NOTEXT
ENDMETHOD.
METHOD zif_abapgit_gui_error_handler~handle_error.
mx_error = ix_error.
rv_handled = abap_true.
ENDMETHOD.
METHOD zif_abapgit_gui_event_handler~on_event.
CASE iv_action.
WHEN zif_abapgit_definitions=>c_action-url.
call_browser( iv_getdata ).
ev_state = zcl_abapgit_gui=>c_event_state-no_more_act.
WHEN zif_abapgit_definitions=>c_action-goto_source.
IF mo_exception_viewer IS BOUND.
mo_exception_viewer->goto_source( ).
ENDIF.
ev_state = zcl_abapgit_gui=>c_event_state-no_more_act.
WHEN zif_abapgit_definitions=>c_action-show_callstack.
IF mo_exception_viewer IS BOUND.
mo_exception_viewer->show_callstack( ).
ENDIF.
ev_state = zcl_abapgit_gui=>c_event_state-no_more_act.
WHEN zif_abapgit_definitions=>c_action-goto_message.
IF mo_exception_viewer IS BOUND.
mo_exception_viewer->goto_message( ).
ENDIF.
ev_state = zcl_abapgit_gui=>c_event_state-no_more_act.
WHEN OTHERS.
ev_state = zcl_abapgit_gui=>c_event_state-not_handled.
ENDCASE.
ENDMETHOD.
METHOD zif_abapgit_gui_renderable~render.
DATA: lo_script TYPE REF TO zcl_abapgit_html,
lt_events TYPE tt_events.
FIELD-SYMBOLS:
<ls_event> LIKE LINE OF lt_events.
" Redirect
IF ms_control-redirect_url IS NOT INITIAL.
ri_html = redirect( ).
RETURN.
ENDIF.
mt_hotkeys = define_hotkeys( ).
" Real page
CREATE OBJECT ri_html TYPE zcl_abapgit_html.
ri_html->add( '<!DOCTYPE html>' ). "#EC NOTEXT
ri_html->add( '<html>' ). "#EC NOTEXT
ri_html->add( html_head( ) ).
ri_html->add( '<body>' ). "#EC NOTEXT
ri_html->add( title( ) ).
ri_html->add( render_hotkey_overview( ) ).
ri_html->add( render_content( ) ).
ri_html->add( render_error_message_box( ) ).
lt_events = me->get_events( ).
LOOP AT lt_events ASSIGNING <ls_event>.
ri_html->add( render_event_as_form( <ls_event> ) ).
ENDLOOP.
ri_html->add( footer( ) ).
ri_html->add( '</body>' ). "#EC NOTEXT
lo_script = scripts( ).
IF lo_script IS BOUND AND lo_script->is_empty( ) = abap_false.
ri_html->add( '<script type="text/javascript">' ).
ri_html->add( lo_script ).
ri_html->add( 'confirmInitialized();' ).
ri_html->add( '</script>' ).
ENDIF.
ri_html->add( '</html>' ). "#EC NOTEXT
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
48317,
62,
7700,
5550,
20032,
17941,
44731,
9564,
18601,
10659,
29244,
6158,
44731,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
25,
198,
220,
220,
220,
220,
220,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
13287,
540,
11,
198,
220,
220,
220,
220,
220,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
15596,
62,
30281,
11,
198,
220,
220,
220,
220,
220,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
18224,
62,
30281,
13,
628,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
198,
220,
220,
220,
220,
220,
366,
921,
815,
3505,
326,
777,
4028,
389,
12118,
287,
262,
12454,
13,
198,
220,
220,
220,
220,
220,
366,
8192,
257,
804,
379,
262,
26755,
2393,
13,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
269,
62,
20541,
62,
7700,
62,
2673,
11,
198,
220,
220,
220,
220,
220,
220,
220,
905,
8940,
13083,
41876,
4731,
26173,
8924,
4600,
12860,
21352,
13083,
63,
22492,
15285,
62,
32541,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
269,
62,
20541,
62,
7700,
62,
2673,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
25,
198,
220,
220,
220,
220,
220,
651,
62,
20541,
62,
8940,
13083,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
17034,
62,
8940,
2539,
8,
41876,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
7700,
62,
8940,
2539,
14804,
42852,
62,
8940,
2539,
62,
4480,
62,
3672,
13,
628,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
23772,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
220,
220,
24412,
47,
1546,
25,
347,
43312,
3963,
1259,
62,
13716,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
18941,
62,
6371,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2443,
62,
7839,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2443,
62,
26272,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
6494,
62,
25981,
5657,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
220,
1259,
62,
13716,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
347,
43312,
3963,
1259,
62,
15596,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2446,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
220,
1259,
62,
15596,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
256,
83,
62,
31534,
41876,
49053,
9795,
43679,
3963,
1259,
62,
15596,
13315,
5550,
38865,
35374,
13,
628,
220,
220,
220,
42865,
25,
13845,
62,
13716,
41876,
1259,
62,
13716,
13,
628,
220,
220,
220,
337,
36252,
50,
8543,
62,
11299,
9564,
18601,
10659,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
305,
62,
6494,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
6494,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
628,
220,
220,
220,
337,
36252,
50,
651,
62,
31534,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
17034,
62,
31534,
8,
41876,
256,
83,
62,
31534,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
628,
220,
220,
220,
337,
36252,
50,
8543,
62,
15596,
62,
292,
62,
687,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
318,
62,
15596,
220,
220,
220,
220,
220,
220,
41876,
1259,
62,
15596,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
305,
62,
6494,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
6494,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
628,
220,
220,
220,
337,
36252,
50,
14750,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
305,
62,
6494,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
6494,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42865,
25,
6941,
62,
33692,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
33692,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45079,
62,
8940,
13083,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
7700,
62,
8940,
2539,
14804,
42852,
62,
8940,
2539,
62,
4480,
62,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
285,
87,
62,
18224,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
6941,
62,
1069,
4516,
62,
1177,
263,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
1069,
4516,
62,
1177,
263,
13,
198,
220,
220,
220,
337,
36252,
50,
27711,
62,
2256,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
305,
62,
6494,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
6494,
13,
628,
220,
220,
220,
337,
36252,
50,
3670,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
305,
62,
6494,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
6494,
13,
628,
220,
220,
220,
337,
36252,
50,
2366,
263,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
305,
62,
6494
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS ltcl_test DEFINITION DEFERRED.
CLASS zunitdemo_ex1_cl_migrator_4 DEFINITION LOCAL FRIENDS ltcl_test.
CLASS ltcl_test DEFINITION FINAL FOR TESTING
DURATION SHORT
RISK LEVEL HARMLESS.
PRIVATE SECTION.
DATA f_cut TYPE REF TO zunitdemo_ex1_cl_migrator_4.
DATA: test_data TYPE STANDARD TABLE OF sflight WITH DEFAULT KEY,
expecteds TYPE STANDARD TABLE OF sflight WITH DEFAULT KEY.
METHODS:
setup,
_migrate,
_check
IMPORTING
message TYPE string,
simple FOR TESTING RAISING cx_static_check,
simple2 FOR TESTING RAISING cx_static_check.
ENDCLASS.
CLASS ltcl_test IMPLEMENTATION.
METHOD setup.
f_cut = NEW #( ).
TEST-INJECTION sflight_select.
" Do test seams correct. Otherwise tests may not work as expected
" This coding is equivalent to a select statement
DATA: sft TYPE sflight.
LOOP AT test_container=>sflight_mock INTO sft WHERE carrid IN carrid_range.
sfs = VALUE #( BASE sfs ( sft ) ).
ENDLOOP.
END-TEST-INJECTION.
TEST-INJECTION sflight_modify.
" Do test seams correct. Otherwise tests may not work as expected
DATA: m TYPE sflight.
FIELD-SYMBOLS: <f> TYPE sflight.
LOOP AT modifieds INTO m.
" This simulates a modify. All three key fields are checked.
" This coding is equivalent to a modify statement on a database table
READ TABLE test_container=>sflight_mock ASSIGNING <f> WITH KEY carrid = m-carrid connid = m-connid fldate = m-fldate.
IF sy-subrc EQ 0.
<f> = m.
ENDIF.
ENDLOOP.
END-TEST-INJECTION.
ENDMETHOD.
METHOD simple.
test_container=>sflight_mock = VALUE #( (
carrid = |TST|
connid = 1
fldate = |20200101|
price = 1
) ).
_migrate( ).
expecteds = VALUE #( (
carrid = |TST|
connid = 1
fldate = |20200101|
price = 2
) ).
_check( 'Expect correctly migrated data' ).
ENDMETHOD.
METHOD simple2.
test_container=>sflight_mock = VALUE #( (
carrid = |TST|
connid = 1
fldate = |20200101|
price = 100
) ).
_migrate( ).
expecteds = VALUE #( (
carrid = |TST|
connid = 1
fldate = |20200101|
price = 110
) ).
_check( 'Expect correctly migrated data' ).
ENDMETHOD.
METHOD _migrate.
" Migrate
f_cut->migrate( carrid_range = VALUE #( ( sign = |I| option = |EQ| low = 'TST' ) ) ).
COMMIT WORK AND WAIT.
ENDMETHOD.
METHOD _check.
SORT test_container=>sflight_mock.
SORT expecteds.
cl_abap_unit_assert=>assert_equals( msg = message exp = expecteds act = test_container=>sflight_mock ).
ENDMETHOD.
ENDCLASS.
| [
31631,
300,
83,
565,
62,
9288,
5550,
20032,
17941,
23449,
1137,
22083,
13,
198,
31631,
1976,
20850,
9536,
78,
62,
1069,
16,
62,
565,
62,
76,
3692,
1352,
62,
19,
5550,
20032,
17941,
37347,
1847,
48167,
1677,
5258,
300,
83,
565,
62,
9288,
13,
198,
31631,
300,
83,
565,
62,
9288,
5550,
20032,
17941,
25261,
7473,
43001,
2751,
198,
220,
360,
4261,
6234,
6006,
9863,
198,
220,
45698,
42,
49277,
43638,
5805,
7597,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42865,
277,
62,
8968,
41876,
4526,
37,
5390,
1976,
20850,
9536,
78,
62,
1069,
16,
62,
565,
62,
76,
3692,
1352,
62,
19,
13,
628,
220,
220,
220,
42865,
25,
1332,
62,
7890,
41876,
49053,
9795,
43679,
3963,
264,
22560,
13315,
5550,
38865,
35374,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2938,
82,
41876,
49053,
9795,
43679,
3963,
264,
22560,
13315,
5550,
38865,
35374,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
9058,
11,
198,
220,
220,
220,
220,
220,
4808,
76,
42175,
11,
198,
220,
220,
220,
220,
220,
4808,
9122,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3275,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
2829,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
11,
198,
220,
220,
220,
220,
220,
2829,
17,
7473,
43001,
2751,
17926,
1797,
2751,
43213,
62,
12708,
62,
9122,
13,
198,
10619,
31631,
13,
628,
198,
31631,
300,
83,
565,
62,
9288,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
9058,
13,
198,
220,
220,
220,
277,
62,
8968,
796,
12682,
1303,
7,
6739,
198,
220,
220,
220,
43001,
12,
1268,
23680,
2849,
264,
22560,
62,
19738,
13,
198,
220,
220,
220,
220,
220,
366,
2141,
1332,
41280,
3376,
13,
15323,
5254,
743,
407,
670,
355,
2938,
198,
220,
220,
220,
220,
220,
366,
770,
19617,
318,
7548,
284,
257,
2922,
2643,
198,
220,
220,
220,
220,
220,
42865,
25,
264,
701,
41876,
264,
22560,
13,
198,
220,
220,
220,
220,
220,
17579,
3185,
5161,
1332,
62,
34924,
14804,
82,
22560,
62,
76,
735,
39319,
264,
701,
33411,
1097,
6058,
3268,
1097,
6058,
62,
9521,
13,
198,
220,
220,
220,
220,
220,
220,
220,
264,
9501,
796,
26173,
8924,
1303,
7,
49688,
264,
9501,
357,
264,
701,
1267,
6739,
198,
220,
220,
220,
220,
220,
23578,
21982,
3185,
13,
198,
220,
220,
220,
23578,
12,
51,
6465,
12,
1268,
23680,
2849,
13,
198,
220,
220,
220,
43001,
12,
1268,
23680,
2849,
264,
22560,
62,
4666,
1958,
13,
198,
220,
220,
220,
220,
220,
366,
2141,
1332,
41280,
3376,
13,
15323,
5254,
743,
407,
670,
355,
2938,
198,
220,
220,
220,
220,
220,
42865,
25,
285,
41876,
264,
22560,
13,
198,
220,
220,
220,
220,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
25,
1279,
69,
29,
41876,
264,
22560,
13,
198,
220,
220,
220,
220,
220,
17579,
3185,
5161,
9518,
82,
39319,
285,
13,
198,
220,
220,
220,
220,
220,
220,
220,
366,
770,
985,
15968,
257,
13096,
13,
1439,
1115,
1994,
7032,
389,
10667,
13,
198,
220,
220,
220,
220,
220,
220,
220,
366,
770,
19617,
318,
7548,
284,
257,
13096,
2643,
319,
257,
6831,
3084,
198,
220,
220,
220,
220,
220,
220,
220,
20832,
43679,
1332,
62,
34924,
14804,
82,
22560,
62,
76,
735,
24994,
3528,
15871,
1279,
69,
29,
13315,
35374,
1097,
6058,
796,
285,
12,
66,
3258,
312,
48260,
312,
796,
285,
12,
37043,
312,
277,
335,
378,
796,
285,
12,
69,
335,
378,
13,
198,
220,
220,
220,
220,
220,
220,
220,
16876,
827,
12,
7266,
6015,
36529,
657,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1279,
69,
29,
796,
285,
13,
198,
220,
220,
220,
220,
220,
220,
220,
23578,
5064,
13,
198,
220,
220,
220,
220,
220,
23578,
21982,
3185,
13,
628,
220,
220,
220,
23578,
12,
51,
6465,
12,
1268,
23680,
2849,
13,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
2829,
13,
628,
220,
220,
220,
1332,
62,
34924,
14804,
82,
22560,
62,
76,
735,
796,
26173,
8924,
1303,
7,
357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1097,
6058,
796,
930,
51,
2257,
91,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
48260,
312,
796,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
277,
335,
378,
796,
930,
1238,
2167,
8784,
91,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2756,
796,
352,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
6739,
628,
220,
220,
220,
4808,
76,
42175,
7,
6739,
628,
220,
220,
220,
2938,
82,
796,
26173,
8924,
1303,
7,
357,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1097,
6058,
796,
930,
51,
2257,
91,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
48260,
312
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_abapgit_object_acid DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL.
PUBLIC SECTION.
INTERFACES zif_abapgit_object.
ALIASES mo_files FOR zif_abapgit_object~mo_files.
PROTECTED SECTION.
PRIVATE SECTION.
METHODS: create_object
RETURNING VALUE(ro_aab) TYPE REF TO cl_aab_id
RAISING zcx_abapgit_exception.
ENDCLASS.
CLASS ZCL_ABAPGIT_OBJECT_ACID IMPLEMENTATION.
METHOD create_object.
DATA: lv_name TYPE aab_id_name.
lv_name = ms_item-obj_name.
CREATE OBJECT ro_aab
EXPORTING
im_name = lv_name
EXCEPTIONS
name_not_allowed = 1
OTHERS = 2.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'error creating CL_AAB_ID object' ).
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_object~changed_by.
* looks like "changed by user" is not stored in the database
rv_user = c_user_unknown.
ENDMETHOD.
METHOD zif_abapgit_object~delete.
DATA: lo_aab TYPE REF TO cl_aab_id.
lo_aab = create_object( ).
lo_aab->enqueue( ).
lo_aab->delete(
EXCEPTIONS
prop_error = 1
propt_error = 2
act_error = 3
cts_error = 4
cts_devclass = 5
id_not_found = 6
no_authorization = 7
id_still_used = 8
where_used_error = 9
OTHERS = 10 ).
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'error deleting ACID object' ).
ENDIF.
lo_aab->dequeue( ).
ENDMETHOD.
METHOD zif_abapgit_object~deserialize.
DATA: lv_description TYPE aab_id_descript,
lo_aab TYPE REF TO cl_aab_id.
io_xml->read( EXPORTING iv_name = 'DESCRIPTION'
CHANGING cg_data = lv_description ).
lo_aab = create_object( ).
lo_aab->enqueue( ).
lo_aab->set_descript( lv_description ).
tadir_insert( iv_package ).
lo_aab->save( ).
ENDMETHOD.
METHOD zif_abapgit_object~exists.
DATA: lv_state TYPE abap_bool,
lo_aab TYPE REF TO cl_aab_id.
lo_aab = create_object( ).
lo_aab->get_state(
IMPORTING
ex_state = lv_state ).
rv_bool = boolc( lv_state = abap_true ).
ENDMETHOD.
METHOD zif_abapgit_object~get_comparator.
RETURN.
ENDMETHOD.
METHOD zif_abapgit_object~get_metadata.
rs_metadata = get_metadata( ).
ENDMETHOD.
METHOD zif_abapgit_object~is_active.
rv_active = is_active( ).
ENDMETHOD.
METHOD zif_abapgit_object~is_locked.
rv_is_locked = abap_false.
ENDMETHOD.
METHOD zif_abapgit_object~jump.
CALL FUNCTION 'RS_TOOL_ACCESS'
EXPORTING
operation = 'SHOW'
object_name = ms_item-obj_name
object_type = 'ACID'
in_new_window = abap_true.
ENDMETHOD.
METHOD zif_abapgit_object~serialize.
DATA: lo_aab TYPE REF TO cl_aab_id,
lv_description TYPE aab_id_descript.
IF zif_abapgit_object~exists( ) = abap_false.
RETURN.
ENDIF.
lo_aab = create_object( ).
lo_aab->get_descript(
IMPORTING ex_descript = lv_description
EXCEPTIONS no_description_found = 1 ).
io_xml->add( iv_name = 'DESCRIPTION'
ig_data = lv_description ).
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
46309,
5550,
20032,
17941,
44731,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
397,
499,
18300,
62,
48205,
62,
16668,
25261,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
397,
499,
18300,
62,
15252,
13,
198,
220,
220,
220,
8355,
43429,
1546,
6941,
62,
16624,
7473,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
5908,
62,
16624,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
2251,
62,
15252,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
305,
62,
64,
397,
8,
41876,
4526,
37,
5390,
537,
62,
64,
397,
62,
312,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
198,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
6242,
2969,
38,
2043,
62,
9864,
23680,
62,
2246,
2389,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
2251,
62,
15252,
13,
628,
220,
220,
220,
42865,
25,
300,
85,
62,
3672,
41876,
257,
397,
62,
312,
62,
3672,
13,
628,
198,
220,
220,
220,
300,
85,
62,
3672,
796,
13845,
62,
9186,
12,
26801,
62,
3672,
13,
628,
220,
220,
220,
29244,
6158,
25334,
23680,
686,
62,
64,
397,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
545,
62,
3672,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
300,
85,
62,
3672,
198,
220,
220,
220,
220,
220,
7788,
42006,
11053,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
62,
1662,
62,
40845,
796,
352,
198,
220,
220,
220,
220,
220,
220,
220,
440,
4221,
4877,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
362,
13,
198,
220,
220,
220,
16876,
827,
12,
7266,
6015,
1279,
29,
657,
13,
198,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
14804,
40225,
7,
705,
18224,
4441,
7852,
62,
3838,
33,
62,
2389,
2134,
6,
6739,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
40985,
62,
1525,
13,
198,
9,
3073,
588,
366,
40985,
416,
2836,
1,
318,
407,
8574,
287,
262,
6831,
198,
220,
220,
220,
374,
85,
62,
7220,
796,
269,
62,
7220,
62,
34680,
13,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
33678,
13,
628,
220,
220,
220,
42865,
25,
2376,
62,
64,
397,
41876,
4526,
37,
5390,
537,
62,
64,
397,
62,
312,
13,
628,
198,
220,
220,
220,
2376,
62,
64,
397,
796,
2251,
62,
15252,
7,
6739,
198,
220,
220,
220,
2376,
62,
64,
397,
3784,
268,
36560,
7,
6739,
198,
220,
220,
220,
2376,
62,
64,
397,
3784,
33678,
7,
198,
220,
220,
220,
220,
220,
7788,
42006,
11053,
198,
220,
220,
220,
220,
220,
220,
220,
2632,
62,
18224,
220,
220,
220,
220,
220,
220,
796,
352,
198,
220,
220,
220,
220,
220,
220,
220,
386,
457,
62,
18224,
220,
220,
220,
220,
220,
796,
362,
198,
220,
220,
220,
220,
220,
220,
220,
719,
62,
18224,
220,
220,
220,
220,
220,
220,
220,
796,
513,
198,
220,
220,
220,
220,
220,
220,
220,
269,
912,
62,
18224,
220,
220,
220,
220,
220,
220,
220,
796,
604,
198,
220,
220,
220,
220,
220,
220,
220,
269,
912,
62,
7959,
4871,
220,
220,
220,
220,
796,
642,
198,
220,
220,
220,
220,
220,
220,
220,
4686,
62,
1662,
62,
9275,
220,
220,
220,
220,
796,
718,
198,
220,
220,
220,
220,
220,
220,
220,
645,
62,
9800,
1634,
796,
767,
198,
220,
220,
220,
220,
220,
220,
220,
4686,
62,
24219,
62,
1484,
220,
220,
220,
796,
807,
198,
220,
220,
220,
220,
220,
220,
220,
810,
62,
1484,
62,
18224,
796,
860,
198,
220,
220,
220,
220,
220,
220,
220,
440,
4221,
4877,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
838,
6739,
198,
220,
220,
220,
16876,
827,
12,
7266,
6015,
1279,
29,
657,
13,
198,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
14804,
40225,
7,
705,
18224,
34817,
7125,
2389,
2134,
6,
6739,
198,
220,
220,
220,
23578,
5064,
13,
198,
220,
220,
220,
2376,
62,
64,
397,
3784,
2934,
36560,
7,
6739,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
8906,
48499,
1096,
13,
628,
220,
220,
220,
42865,
25,
300,
85,
62,
11213,
41876,
257,
397,
62,
312,
62,
20147,
1968,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2376,
62,
64,
397,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
537,
62,
64,
397,
62,
312,
13,
628,
198,
220,
220,
220,
33245,
62,
19875,
3784,
961,
7,
7788,
15490,
2751,
21628,
62,
3672,
796,
705,
30910,
40165,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5870,
15567,
2751,
269,
70,
62,
7890,
796,
300,
85,
62,
11213,
6739,
628,
220,
220,
220,
2376,
62,
64,
397,
796,
2251,
62,
15252,
7,
6739,
198,
220,
220,
220,
2376,
62,
64,
397,
3784,
268,
36560,
7,
6739,
198,
220,
220,
220,
2376,
62,
64,
397,
3784,
2617,
62,
20147,
1968,
7,
300,
85,
62,
11213,
6739,
198,
220,
220,
220,
36264,
343,
62,
28463,
7,
21628,
62,
26495,
6739,
198,
220,
220,
220,
2376,
62,
64,
397,
3784,
21928,
7,
6739,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
1069,
1023,
13,
628,
220,
220,
220,
42865,
25,
300,
85,
62,
5219,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2376,
62,
64,
397,
220,
220,
41876,
4526,
37,
5390,
537,
62,
64,
397,
62,
312,
13
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_aoc_check_35 DEFINITION
PUBLIC
INHERITING FROM zcl_aoc_super_root
CREATE PUBLIC.
PUBLIC SECTION.
METHODS constructor.
METHODS get_message_text
REDEFINITION.
METHODS run
REDEFINITION.
PROTECTED SECTION.
PRIVATE SECTION.
TYPES:
ty_t100_tt TYPE STANDARD TABLE OF t100 WITH DEFAULT KEY.
METHODS analyze
IMPORTING
!it_t100 TYPE ty_t100_tt
RETURNING
VALUE(rv_code) TYPE sci_errc.
ENDCLASS.
CLASS ZCL_AOC_CHECK_35 IMPLEMENTATION.
METHOD analyze.
TYPES: BEGIN OF ty_cross,
name TYPE cross-name,
END OF ty_cross.
DATA: lt_cross TYPE TABLE OF ty_cross,
lt_name TYPE TABLE OF cross-name,
lv_name LIKE LINE OF lt_name.
FIELD-SYMBOLS: <ls_t100> LIKE LINE OF it_t100.
LOOP AT it_t100 ASSIGNING <ls_t100>.
CONCATENATE <ls_t100>-arbgb <ls_t100>-msgnr INTO lv_name RESPECTING BLANKS.
APPEND lv_name TO lt_name.
ENDLOOP.
ASSERT lines( lt_name ) > 0.
SELECT name FROM cross INTO TABLE lt_cross
FOR ALL ENTRIES IN lt_name
WHERE ( type = '3' OR type = 'N' )
AND name = lt_name-table_line. "#EC CI_SUBRC
SORT lt_cross BY name ASCENDING.
LOOP AT it_t100 ASSIGNING <ls_t100>.
CONCATENATE <ls_t100>-arbgb <ls_t100>-msgnr
INTO lv_name RESPECTING BLANKS.
READ TABLE lt_cross WITH KEY name = lv_name
BINARY SEARCH TRANSPORTING NO FIELDS.
IF sy-subrc = 0.
CONTINUE.
ENDIF.
SELECT COUNT( * ) FROM dd08l
WHERE arbgb = <ls_t100>-arbgb
AND msgnr = <ls_t100>-msgnr ##WARN_OK.
IF sy-subrc = 0.
CONTINUE.
ENDIF.
rv_code = '001'.
inform( p_sub_obj_type = object_type
p_sub_obj_name = object_name
p_test = myname
p_kind = mv_errty
p_code = rv_code
p_param_1 = <ls_t100>-msgnr ).
ENDLOOP.
ENDMETHOD.
METHOD constructor.
super->constructor( ).
description = 'Message not in use'. "#EC NOTEXT
category = 'ZCL_AOC_CATEGORY'.
version = '001'.
position = '035'.
has_documentation = c_true.
has_attributes = abap_true.
attributes_ok = abap_true.
mv_errty = c_error.
add_obj_type( 'MSAG' ).
ENDMETHOD. "CONSTRUCTOR
METHOD get_message_text.
CLEAR p_text.
CASE p_code.
WHEN '001'.
p_text = 'Message not in use, &1'. "#EC NOTEXT
WHEN OTHERS.
super->get_message_text( EXPORTING p_test = p_test
p_code = p_code
IMPORTING p_text = p_text ).
ENDCASE.
ENDMETHOD.
METHOD run.
* abapOpenChecks
* https://github.com/larshp/abapOpenChecks
* MIT License
DATA: lt_t100 TYPE ty_t100_tt.
IF object_type <> 'MSAG'.
RETURN.
ENDIF.
SELECT * FROM t100 INTO TABLE lt_t100
WHERE sprsl = sy-langu
AND arbgb = object_name. "#EC CI_GENBUFF
IF sy-subrc <> 0.
RETURN.
ENDIF.
analyze( lt_t100 ).
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
64,
420,
62,
9122,
62,
2327,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
64,
420,
62,
16668,
62,
15763,
198,
220,
29244,
6158,
44731,
13,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
337,
36252,
50,
23772,
13,
628,
220,
220,
220,
337,
36252,
50,
651,
62,
20500,
62,
5239,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
13,
198,
220,
220,
220,
337,
36252,
50,
1057,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
13,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
1259,
62,
83,
3064,
62,
926,
41876,
49053,
9795,
43679,
3963,
256,
3064,
13315,
5550,
38865,
35374,
13,
628,
220,
220,
220,
337,
36252,
50,
16602,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
270,
62,
83,
3064,
220,
220,
220,
220,
220,
220,
41876,
1259,
62,
83,
3064,
62,
926,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
8189,
8,
41876,
20681,
62,
263,
6015,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
32,
4503,
62,
50084,
62,
2327,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
16602,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
347,
43312,
3963,
1259,
62,
19692,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
41876,
3272,
12,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
19692,
13,
628,
220,
220,
220,
42865,
25,
300,
83,
62,
19692,
41876,
43679,
3963,
1259,
62,
19692,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
83,
62,
3672,
220,
41876,
43679,
3963,
3272,
12,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
3672,
220,
34178,
48920,
3963,
300,
83,
62,
3672,
13,
628,
220,
220,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
25,
1279,
7278,
62,
83,
3064,
29,
34178,
48920,
3963,
340,
62,
83,
3064,
13,
628,
198,
220,
220,
220,
17579,
3185,
5161,
340,
62,
83,
3064,
24994,
3528,
15871,
1279,
7278,
62,
83,
3064,
28401,
198,
220,
220,
220,
220,
220,
39962,
1404,
1677,
6158,
1279,
7278,
62,
83,
3064,
29,
12,
38039,
22296,
1279,
7278,
62,
83,
3064,
29,
12,
907,
4593,
81,
39319,
300,
85,
62,
3672,
47203,
9782,
2751,
9878,
15154,
50,
13,
198,
220,
220,
220,
220,
220,
43504,
10619,
300,
85,
62,
3672,
5390,
300,
83,
62,
3672,
13,
198,
220,
220,
220,
23578,
21982,
3185,
13,
628,
220,
220,
220,
24994,
17395,
3951,
7,
300,
83,
62,
3672,
1267,
1875,
657,
13,
198,
220,
220,
220,
33493,
1438,
16034,
3272,
39319,
43679,
300,
83,
62,
19692,
198,
220,
220,
220,
220,
220,
7473,
11096,
12964,
5446,
11015,
3268,
300,
83,
62,
3672,
198,
220,
220,
220,
220,
220,
33411,
357,
2099,
796,
705,
18,
6,
6375,
2099,
796,
705,
45,
6,
1267,
198,
220,
220,
220,
220,
220,
5357,
1438,
796,
300,
83,
62,
3672,
12,
11487,
62,
1370,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25113,
2943,
14514,
62,
50,
10526,
7397,
198,
220,
220,
220,
311,
9863,
300,
83,
62,
19692,
11050,
1438,
25400,
10619,
2751,
13,
628,
220,
220,
220,
17579,
3185,
5161,
340,
62,
83,
3064,
24994,
3528,
15871,
1279,
7278,
62,
83,
3064,
28401,
628,
220,
220,
220,
220,
220,
39962,
1404,
1677,
6158,
1279,
7278,
62,
83,
3064,
29,
12,
38039,
22296,
1279,
7278,
62,
83,
3064,
29,
12,
907,
4593,
81,
198,
220,
220,
220,
220,
220,
220,
220,
39319,
300,
85,
62,
3672,
47203,
9782,
2751,
9878,
15154,
50,
13,
198,
220,
220,
220,
220,
220,
20832,
43679,
300,
83,
62,
19692,
13315,
35374,
1438,
796,
300,
85,
62,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
347,
1268,
13153,
7946,
31315,
48213,
4303,
9863,
2751,
8005,
18930,
3698,
5258,
13,
198,
220,
220,
220,
220,
220,
16876,
827,
12,
7266,
6015,
796,
657,
13,
198,
220,
220,
220,
220,
220,
220,
220,
43659,
8924,
13,
198,
220,
220,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
220,
220,
33493,
327,
28270,
7,
1635,
1267,
16034,
49427,
2919,
75,
198,
220,
220,
220,
220,
220,
220,
220,
33411,
610,
65,
22296,
796,
1279,
7278,
62,
83,
3064,
29,
12,
38039,
22296,
198,
220,
220,
220,
220,
220,
220,
220,
5357,
13845,
4593,
81,
796,
1279,
7278,
62,
83,
3064,
29,
12,
907,
4593,
81,
22492,
37771,
62,
11380,
13,
198,
220,
220,
220,
220,
220,
16876,
827,
12,
7266,
6015,
796,
657,
13,
198,
220,
220,
220,
220,
220,
220,
220,
43659,
8924,
13,
198,
220,
220,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
220,
220,
374,
85,
62,
8189,
796,
705,
8298,
4458,
198,
220,
220,
220,
220,
220,
4175,
7,
279,
62,
7266,
62,
26801,
62,
4906,
796,
2134,
62,
4906,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
279,
62,
7266,
62,
26801,
62,
3672,
796,
2134,
62,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
279,
62,
9288,
220,
220,
220,
220,
220,
220,
220,
220,
796,
616,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
279,
62,
11031,
220,
220,
220,
220,
220,
220,
220,
220,
796,
285,
85,
62,
8056,
774,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
279,
62,
8189,
220,
220,
220,
220,
220,
220,
220,
220,
796,
374,
85,
62,
8189,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
279,
62,
17143,
62,
16,
220,
220,
220,
220,
220,
796,
1279,
7278,
62,
83,
3064
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS y_check_number_interfaces DEFINITION PUBLIC INHERITING FROM y_check_base CREATE PUBLIC .
PUBLIC SECTION.
METHODS constructor.
PROTECTED SECTION.
METHODS inspect_statements REDEFINITION.
METHODS inspect_tokens REDEFINITION.
PRIVATE SECTION.
DATA interface_counter TYPE i VALUE 0.
METHODS check_result IMPORTING structure TYPE sstruc.
ENDCLASS.
CLASS y_check_number_interfaces IMPLEMENTATION.
METHOD constructor.
super->constructor( ).
settings-pseudo_comment = '"#EC NMBR_INTERFACES' ##NO_TEXT.
settings-threshold = 4.
settings-documentation = |{ c_docs_path-checks }number-interfaces.md|.
relevant_statement_types = VALUE #( ( scan_struc_stmnt_type-class_definition )
( scan_struc_stmnt_type-interface ) ).
relevant_structure_types = VALUE #( ).
set_check_message( 'Number of interfaces must be lower than &2! (&1>=&2)' ).
ENDMETHOD.
METHOD inspect_statements.
interface_counter = 0.
super->inspect_statements( structure ).
check_result( structure ).
ENDMETHOD.
METHOD inspect_tokens.
IF get_token_abs( statement-from ) = 'INTERFACES'.
interface_counter = interface_counter + 1.
ENDIF.
ENDMETHOD.
METHOD check_result.
DATA(statement) = ref_scan_manager->statements[ structure-stmnt_from ].
DATA(check_configuration) = detect_check_configuration( error_count = interface_counter
statement = statement ).
IF check_configuration IS INITIAL.
RETURN.
ENDIF.
raise_error( statement_level = statement-level
statement_index = structure-stmnt_from
statement_from = statement-from
error_priority = check_configuration-prio
parameter_01 = |{ interface_counter }|
parameter_02 = |{ check_configuration-threshold }| ).
ENDMETHOD.
ENDCLASS.
| [
31631,
331,
62,
9122,
62,
17618,
62,
3849,
32186,
5550,
20032,
17941,
44731,
3268,
16879,
2043,
2751,
16034,
331,
62,
9122,
62,
8692,
29244,
6158,
44731,
764,
198,
220,
44731,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
23772,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
10104,
62,
14269,
3196,
23848,
36,
20032,
17941,
13,
198,
220,
220,
220,
337,
36252,
50,
10104,
62,
83,
482,
641,
23848,
36,
20032,
17941,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42865,
7071,
62,
24588,
41876,
1312,
26173,
8924,
657,
13,
628,
220,
220,
220,
337,
36252,
50,
2198,
62,
20274,
30023,
9863,
2751,
4645,
41876,
264,
19554,
66,
13,
198,
198,
10619,
31631,
13,
628,
198,
198,
31631,
331,
62,
9122,
62,
17618,
62,
3849,
32186,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
23772,
13,
198,
220,
220,
220,
2208,
3784,
41571,
273,
7,
6739,
628,
220,
220,
220,
6460,
12,
7752,
12003,
62,
23893,
796,
705,
1,
2,
2943,
399,
10744,
49,
62,
41358,
37,
2246,
1546,
6,
22492,
15285,
62,
32541,
13,
198,
220,
220,
220,
6460,
12,
400,
10126,
796,
604,
13,
198,
220,
220,
220,
6460,
12,
22897,
341,
796,
930,
90,
269,
62,
31628,
62,
6978,
12,
42116,
1782,
17618,
12,
3849,
32186,
13,
9132,
91,
13,
628,
220,
220,
220,
5981,
62,
26090,
62,
19199,
796,
26173,
8924,
1303,
7,
357,
9367,
62,
19554,
66,
62,
301,
76,
429,
62,
4906,
12,
4871,
62,
46758,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
9367,
62,
19554,
66,
62,
301,
76,
429,
62,
4906,
12,
39994,
1267,
6739,
628,
220,
220,
220,
5981,
62,
301,
5620,
62,
19199,
796,
26173,
8924,
1303,
7,
6739,
628,
220,
220,
220,
900,
62,
9122,
62,
20500,
7,
705,
15057,
286,
20314,
1276,
307,
2793,
621,
1222,
17,
0,
35494,
16,
29,
28,
5,
17,
33047,
6739,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
10104,
62,
14269,
3196,
13,
198,
220,
220,
220,
7071,
62,
24588,
796,
657,
13,
628,
220,
220,
220,
2208,
3784,
1040,
806,
62,
14269,
3196,
7,
4645,
6739,
628,
220,
220,
220,
2198,
62,
20274,
7,
4645,
6739,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
10104,
62,
83,
482,
641,
13,
198,
220,
220,
220,
16876,
651,
62,
30001,
62,
8937,
7,
2643,
12,
6738,
1267,
796,
705,
41358,
37,
2246,
1546,
4458,
198,
220,
220,
220,
220,
220,
7071,
62,
24588,
796,
7071,
62,
24588,
1343,
352,
13,
198,
220,
220,
220,
23578,
5064,
13,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
2198,
62,
20274,
13,
198,
220,
220,
220,
42865,
7,
26090,
8,
796,
1006,
62,
35836,
62,
37153,
3784,
14269,
3196,
58,
4645,
12,
301,
76,
429,
62,
6738,
20740,
628,
220,
220,
220,
42865,
7,
9122,
62,
11250,
3924,
8,
796,
4886,
62,
9122,
62,
11250,
3924,
7,
4049,
62,
9127,
796,
7071,
62,
24588,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2643,
796,
2643,
6739,
198,
220,
220,
220,
16876,
2198,
62,
11250,
3924,
3180,
3268,
2043,
12576,
13,
198,
220,
220,
220,
220,
220,
30826,
27064,
13,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
5298,
62,
18224,
7,
2643,
62,
5715,
220,
220,
220,
220,
220,
796,
2643,
12,
5715,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2643,
62,
9630,
220,
220,
220,
220,
220,
796,
4645,
12,
301,
76,
429,
62,
6738,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2643,
62,
6738,
220,
220,
220,
220,
220,
220,
796,
2643,
12,
6738,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4049,
62,
49336,
220,
220,
220,
220,
220,
220,
796,
2198,
62,
11250,
3924,
12,
3448,
78,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11507,
62,
486,
220,
220,
220,
220,
220,
220,
220,
220,
796,
930,
90,
7071,
62,
24588,
1782,
91,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11507,
62,
2999,
220,
220,
220,
220,
220,
220,
220,
220,
796,
930,
90,
2198,
62,
11250,
3924,
12,
400,
10126,
1782,
91,
6739,
198,
220,
23578,
49273,
13,
628,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
class zaws_sigv4_utilities definition
public
final
create public .
public section.
types: begin of name,
name type string,
end of name.
types: begin of name_value_pair,
name type string,
value type string,
end of name_value_pair.
types http_query_parameters type standard table of name_value_pair.
types http_headers type standard table of name_value_pair.
types http_header_names type standard table of name.
constants default_hash_function type string value 'SHA256'.
class-methods sign importing hash_function type string default default_hash_function
key type xstring
message type xstring
returning value(signed_message) type xstring.
class-methods get_signature_key importing key type string
datestamp type string
region_name type string
service_name type string
returning value(signature_key) type xstring.
class-methods get_hash importing hash_function type string default default_hash_function
message type string
returning value(hashed_message) type string.
class-methods get_current_timestamp exporting amz_date type string
datestamp type string.
class-methods get_canonical_headers importing value(http_headers) type http_headers
returning value(canonical_headers) type string.
class-methods get_signed_headers importing value(http_header_names) type http_header_names
returning value(signed_headers) type string.
class-methods get_canonical_querystring importing value(http_query_parameters) type http_query_parameters
returning value(canonical_querystring) type string.
class-methods get_canonical_request importing http_method type string
canonical_uri type string
canonical_querystring type string
canonical_headers type string
signed_headers type string
payload_hash type string
returning value(canonical_request) type string.
class-methods get_credential_scope importing datestamp type string
region type string
service type string
returning value(credential_scope) type string.
class-methods get_credential importing access_key type string
credential_scope type string
returning value(credential) type string.
class-methods get_algorithm importing hash_function type string default default_hash_function
returning value(algorithm) type string.
class-methods get_string_to_sign importing algorithm type string
amz_date type string
credential_scope type string
canonical_request type string
returning value(string_to_sign) type string.
class-methods get_signature importing signing_key type xstring
string_to_sign type string
returning value(signature) type string.
class-methods get_authorization_header importing algorithm type string
credential type string
signed_headers type string
signature type string
returning value(authorization_header) type string.
protected section.
private section.
class-methods escape_url importing url type string
returning value(escaped_url) type string.
endclass.
class zaws_sigv4_utilities implementation.
method sign.
try.
cl_abap_hmac=>calculate_hmac_for_raw(
exporting if_algorithm = hash_function
if_key = key
if_data = message
importing ef_hmacxstring = signed_message ).
catch cx_root.
endtry.
endmethod.
method get_signature_key.
try.
data(k_date) = zaws_sigv4_utilities=>sign( key = cl_abap_hmac=>string_to_xstring( |AWS4{ key }| )
message = cl_abap_hmac=>string_to_xstring( datestamp ) ).
data(k_region) = zaws_sigv4_utilities=>sign( key = k_date
message = cl_abap_hmac=>string_to_xstring( region_name ) ).
data(k_service) = zaws_sigv4_utilities=>sign( key = k_region
message = cl_abap_hmac=>string_to_xstring( service_name ) ).
signature_key = zaws_sigv4_utilities=>sign( key = k_service
message = cl_abap_hmac=>string_to_xstring( 'aws4_request' ) ).
catch cx_root.
endtry.
endmethod.
method get_hash.
try.
data(msg_digest) = cl_abap_message_digest=>get_instance( hash_function ).
msg_digest->digest( exporting if_data = cl_abap_message_digest=>string_to_xstring( message )
importing ef_hashstring = hashed_message ).
hashed_message = to_lower( hashed_message ).
catch cx_root.
endtry.
endmethod.
method get_current_timestamp.
get time stamp field data(_timestamp).
data(timestamp) = conv string( _timestamp ).
amz_date = |{ timestamp(8) }T{ timestamp+8(6) }Z|.
datestamp = timestamp(8).
endmethod.
method get_canonical_headers.
loop at http_headers assigning field-symbol(<http_header>).
<http_header>-name = condense( to_lower( <http_header>-name ) ).
endloop.
sort http_headers by name ascending.
canonical_headers = reduce string(
init text = ``
for http_header in http_headers
next text = |{ text }{ http_header-name }:{ http_header-value }{ cl_abap_char_utilities=>newline }| ).
endmethod.
method get_signed_headers.
loop at http_header_names assigning field-symbol(<name>).
<name>-name = condense( to_lower( <name>-name ) ).
endloop.
sort http_header_names ascending.
loop at http_header_names into data(name).
if signed_headers is initial.
signed_headers = name-name.
else.
signed_headers = |{ signed_headers };{ name-name }|.
endif.
endloop.
endmethod.
method get_canonical_querystring.
sort http_query_parameters by name ascending.
loop at http_query_parameters into data(query_parameter).
query_parameter-value = zaws_sigv4_utilities=>escape_url( query_parameter-value ).
if canonical_querystring is initial.
canonical_querystring = |{ query_parameter-name }={ query_parameter-value }|.
else.
canonical_querystring = |{ canonical_querystring }&{ query_parameter-name }={ query_parameter-value }|.
endif.
endloop.
endmethod.
method get_canonical_request.
canonical_request = |{ http_method }| &
|{ cl_abap_char_utilities=>newline }| &
|{ canonical_uri }| &
|{ cl_abap_char_utilities=>newline }| &
|{ canonical_querystring }| &
|{ cl_abap_char_utilities=>newline }| &
|{ canonical_headers }| &
|{ cl_abap_char_utilities=>newline }| &
|{ signed_headers }| &
|{ cl_abap_char_utilities=>newline }| &
|{ payload_hash }|.
endmethod.
method get_credential_scope.
credential_scope = |{ datestamp }/{ region }/{ service }/aws4_request|.
endmethod.
method get_credential.
credential = |{ access_key }/{ credential_scope }|.
endmethod.
method get_algorithm.
algorithm = |AWS4-HMAC-{ hash_function }|.
endmethod.
method get_string_to_sign.
string_to_sign = |{ algorithm }| &
|{ cl_abap_char_utilities=>newline }| &
|{ amz_date }| &
|{ cl_abap_char_utilities=>newline }| &
|{ credential_scope }| &
|{ cl_abap_char_utilities=>newline }| &
|{ get_hash( message = canonical_request ) }|.
endmethod.
method get_signature.
try.
signature = |{ sign( key = signing_key
message = cl_abap_hmac=>string_to_xstring( string_to_sign ) ) }|.
signature = to_lower( signature ).
catch cx_root.
endtry.
endmethod.
method get_authorization_header.
authorization_header = |{ algorithm } Credential={ credential }, SignedHeaders={ signed_headers }, Signature={ signature }|.
endmethod.
method escape_url.
data(escaped) = cl_http_utility=>if_http_utility~escape_url( url ).
escaped_url = escaped.
find all occurrences of regex `%\w{2}` in escaped results data(results).
loop at results into data(result).
data(target) = substring( val = escaped off = result-offset len = result-length ).
replace all occurrences of target
in escaped_url
with to_upper( target ).
endloop.
endmethod.
endclass.
| [
4871,
1976,
8356,
62,
82,
328,
85,
19,
62,
315,
2410,
6770,
198,
220,
1171,
198,
220,
2457,
198,
220,
2251,
1171,
764,
628,
220,
1171,
2665,
13,
198,
220,
220,
220,
3858,
25,
2221,
286,
1438,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
2099,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
286,
1438,
13,
628,
220,
220,
220,
3858,
25,
2221,
286,
1438,
62,
8367,
62,
24874,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
220,
2099,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1988,
2099,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
886,
286,
1438,
62,
8367,
62,
24874,
13,
628,
220,
220,
220,
3858,
2638,
62,
22766,
62,
17143,
7307,
2099,
3210,
3084,
286,
1438,
62,
8367,
62,
24874,
13,
198,
220,
220,
220,
3858,
2638,
62,
50145,
2099,
3210,
3084,
286,
1438,
62,
8367,
62,
24874,
13,
198,
220,
220,
220,
3858,
2638,
62,
25677,
62,
14933,
2099,
3210,
3084,
286,
1438,
13,
628,
220,
220,
220,
38491,
4277,
62,
17831,
62,
8818,
2099,
4731,
1988,
705,
37596,
11645,
4458,
628,
220,
220,
220,
1398,
12,
24396,
82,
1051,
33332,
12234,
62,
8818,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
4731,
4277,
4277,
62,
17831,
62,
8818,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1994,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
2124,
8841,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3275,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
2124,
8841,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8024,
1988,
7,
32696,
62,
20500,
8,
2099,
2124,
8841,
13,
628,
220,
220,
220,
1398,
12,
24396,
82,
651,
62,
12683,
1300,
62,
2539,
33332,
1994,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4818,
27823,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3814,
62,
3672,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2139,
62,
3672,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8024,
1988,
7,
12683,
1300,
62,
2539,
8,
2099,
2124,
8841,
13,
628,
220,
220,
220,
1398,
12,
24396,
82,
651,
62,
17831,
33332,
12234,
62,
8818,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
4731,
4277,
4277,
62,
17831,
62,
8818,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3275,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2099,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8024,
1988,
7,
71,
5263,
62,
20500,
8,
2099,
4731,
13,
628,
220,
220,
220,
1398,
12,
24396,
82,
651,
62,
14421,
62,
16514,
27823,
39133,
716,
89,
62,
4475,
220,
2099,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4818,
27823,
2099,
4731,
13,
628,
220,
220,
220,
1398,
12,
24396,
82,
651,
62,
49883,
605,
62,
50145,
33332,
1988,
7,
4023,
62,
50145,
8,
220,
220,
220,
220,
220,
2099,
2638,
62,
50145,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8024,
1988,
7,
49883,
605,
62,
50145,
8,
2099,
4731,
13,
628,
220,
220,
220,
1398,
12,
24396,
82,
651,
62,
32696,
62,
50145,
33332,
1988,
7,
4023,
62,
25677,
62,
14933,
8,
2099,
2638,
62,
25677,
62,
14933,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
8024,
1988,
7,
32696,
62,
50145,
8,
220,
220,
220,
2099,
4731,
13,
628,
220,
220,
220,
1398,
12,
24396,
82,
651,
62,
49883,
605,
62,
22766,
8841,
33332,
1988,
7,
4023,
62,
22766,
62,
17143
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS y_check_function DEFINITION PUBLIC INHERITING FROM y_check_base CREATE PUBLIC .
PUBLIC SECTION.
METHODS constructor.
PROTECTED SECTION.
METHODS inspect_tokens REDEFINITION.
PRIVATE SECTION.
DATA db_reader TYPE REF TO lif_db_reader.
ENDCLASS.
CLASS Y_CHECK_FUNCTION IMPLEMENTATION.
METHOD constructor.
super->constructor( ).
settings-pseudo_comment = '"#EC CI_FUNCTION' ##NO_TEXT.
settings-disable_threshold_selection = abap_true.
settings-threshold = 0.
settings-documentation = |{ c_docs_path-checks }function-routine.md|.
relevant_statement_types = VALUE #( ( scan_struc_stmnt_type-function ) ).
relevant_structure_types = VALUE #( ).
set_check_message( 'Function-Module should not be created!' ).
IF db_reader IS NOT BOUND.
db_reader = NEW lcl_db_reader( ).
ENDIF.
ENDMETHOD.
METHOD inspect_tokens.
CHECK statement-type <> scan_stmnt_type-comment.
CHECK statement-type <> scan_stmnt_type-comment_in_stmnt.
CHECK statement-type <> scan_stmnt_type-pragma.
CHECK get_token_abs( statement-from ) = 'FUNCTION'.
DATA fm_name TYPE c LENGTH 30.
fm_name = get_token_abs( statement-from + 1 ).
IF db_reader->is_fm_rfc_enabled( fm_name ) EQ abap_false.
DATA(check_configuration) = detect_check_configuration( statement ).
IF check_configuration IS INITIAL.
RETURN.
ENDIF.
raise_error( statement_level = statement-level
statement_index = index
statement_from = statement-from
error_priority = check_configuration-prio ).
ENDIF.
ENDMETHOD.
ENDCLASS.
| [
31631,
331,
62,
9122,
62,
8818,
5550,
20032,
17941,
44731,
3268,
16879,
2043,
2751,
16034,
331,
62,
9122,
62,
8692,
29244,
6158,
44731,
764,
198,
220,
44731,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
23772,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
10104,
62,
83,
482,
641,
23848,
36,
20032,
17941,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42865,
20613,
62,
46862,
41876,
4526,
37,
5390,
3868,
62,
9945,
62,
46862,
13,
198,
198,
10619,
31631,
13,
628,
198,
198,
31631,
575,
62,
50084,
62,
42296,
4177,
2849,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
23772,
13,
198,
220,
220,
220,
2208,
3784,
41571,
273,
7,
6739,
628,
220,
220,
220,
6460,
12,
7752,
12003,
62,
23893,
796,
705,
1,
2,
2943,
14514,
62,
42296,
4177,
2849,
6,
22492,
15285,
62,
32541,
13,
198,
220,
220,
220,
6460,
12,
40223,
62,
400,
10126,
62,
49283,
796,
450,
499,
62,
7942,
13,
198,
220,
220,
220,
6460,
12,
400,
10126,
796,
657,
13,
198,
220,
220,
220,
6460,
12,
22897,
341,
796,
930,
90,
269,
62,
31628,
62,
6978,
12,
42116,
1782,
8818,
12,
81,
28399,
13,
9132,
91,
13,
628,
220,
220,
220,
5981,
62,
26090,
62,
19199,
796,
26173,
8924,
1303,
7,
357,
9367,
62,
19554,
66,
62,
301,
76,
429,
62,
4906,
12,
8818,
1267,
6739,
198,
220,
220,
220,
5981,
62,
301,
5620,
62,
19199,
796,
26173,
8924,
1303,
7,
6739,
628,
220,
220,
220,
900,
62,
9122,
62,
20500,
7,
705,
22203,
12,
26796,
815,
407,
307,
2727,
13679,
6739,
628,
220,
220,
220,
16876,
20613,
62,
46862,
3180,
5626,
347,
15919,
13,
198,
220,
220,
220,
220,
220,
20613,
62,
46862,
796,
12682,
300,
565,
62,
9945,
62,
46862,
7,
6739,
198,
220,
220,
220,
23578,
5064,
13,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
10104,
62,
83,
482,
641,
13,
198,
220,
220,
220,
5870,
25171,
2643,
12,
4906,
1279,
29,
9367,
62,
301,
76,
429,
62,
4906,
12,
23893,
13,
198,
220,
220,
220,
5870,
25171,
2643,
12,
4906,
1279,
29,
9367,
62,
301,
76,
429,
62,
4906,
12,
23893,
62,
259,
62,
301,
76,
429,
13,
198,
220,
220,
220,
5870,
25171,
2643,
12,
4906,
1279,
29,
9367,
62,
301,
76,
429,
62,
4906,
12,
1050,
363,
2611,
13,
628,
220,
220,
220,
5870,
25171,
651,
62,
30001,
62,
8937,
7,
2643,
12,
6738,
1267,
796,
705,
42296,
4177,
2849,
4458,
628,
220,
220,
220,
42865,
277,
76,
62,
3672,
41876,
269,
406,
49494,
1542,
13,
198,
220,
220,
220,
277,
76,
62,
3672,
796,
651,
62,
30001,
62,
8937,
7,
2643,
12,
6738,
1343,
352,
6739,
628,
220,
220,
220,
16876,
20613,
62,
46862,
3784,
271,
62,
38353,
62,
81,
16072,
62,
25616,
7,
277,
76,
62,
3672,
1267,
36529,
450,
499,
62,
9562,
13,
628,
220,
220,
220,
220,
220,
42865,
7,
9122,
62,
11250,
3924,
8,
796,
4886,
62,
9122,
62,
11250,
3924,
7,
2643,
6739,
628,
220,
220,
220,
220,
220,
16876,
2198,
62,
11250,
3924,
3180,
3268,
2043,
12576,
13,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
27064,
13,
198,
220,
220,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
220,
220,
5298,
62,
18224,
7,
2643,
62,
5715,
220,
220,
220,
220,
796,
2643,
12,
5715,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2643,
62,
9630,
220,
220,
220,
220,
796,
6376,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2643,
62,
6738,
220,
220,
220,
220,
220,
796,
2643,
12,
6738,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4049,
62,
49336,
220,
220,
220,
220,
220,
796,
2198,
62,
11250,
3924,
12,
3448,
78,
6739,
628,
220,
220,
220,
23578,
5064,
13,
198,
220,
23578,
49273,
13,
198,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS y_check_deprecated_key_words DEFINITION
PUBLIC
INHERITING FROM y_check_base
CREATE PUBLIC .
PUBLIC SECTION.
METHODS constructor .
PROTECTED SECTION.
METHODS inspect_tokens REDEFINITION.
PRIVATE SECTION.
METHODS check_if_error
IMPORTING index TYPE i
keyword TYPE string
statement TYPE sstmnt.
ENDCLASS.
CLASS Y_CHECK_DEPRECATED_KEY_WORDS IMPLEMENTATION.
METHOD constructor.
super->constructor( ).
settings-pseudo_comment = '"#EC DEPRECATED_KEY' ##NO_TEXT.
settings-disable_threshold_selection = abap_true.
settings-threshold = 0.
settings-documentation = |{ c_docs_path-checks }deprecated-key-word.md|.
set_check_message( '"&1" is deprecated' ).
ENDMETHOD.
METHOD inspect_tokens.
DATA(keyword) = get_token_abs( statement-from ).
CASE keyword.
WHEN 'MOVE' OR 'TRANSLATE'.
check_if_error( index = index
keyword = keyword
statement = statement ).
ENDCASE.
ENDMETHOD.
METHOD check_if_error.
DATA(check_configuration) = detect_check_configuration( statement ).
IF check_configuration IS INITIAL.
RETURN.
ENDIF.
raise_error( statement_level = statement-level
statement_index = index
statement_from = statement-from
error_priority = check_configuration-prio
parameter_01 = |{ keyword }| ).
ENDMETHOD.
ENDCLASS.
| [
31631,
331,
62,
9122,
62,
10378,
31023,
62,
2539,
62,
10879,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
331,
62,
9122,
62,
8692,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
337,
36252,
50,
23772,
764,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
10104,
62,
83,
482,
641,
23848,
36,
20032,
17941,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
2198,
62,
361,
62,
18224,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
6376,
220,
220,
220,
220,
41876,
1312,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21179,
220,
220,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2643,
41876,
264,
301,
76,
429,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
575,
62,
50084,
62,
46162,
38827,
11617,
62,
20373,
62,
45359,
5258,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
23772,
13,
198,
220,
220,
220,
2208,
3784,
41571,
273,
7,
6739,
628,
220,
220,
220,
6460,
12,
7752,
12003,
62,
23893,
796,
705,
1,
2,
2943,
5550,
47,
38827,
11617,
62,
20373,
6,
22492,
15285,
62,
32541,
13,
198,
220,
220,
220,
6460,
12,
40223,
62,
400,
10126,
62,
49283,
796,
450,
499,
62,
7942,
13,
198,
220,
220,
220,
6460,
12,
400,
10126,
796,
657,
13,
198,
220,
220,
220,
6460,
12,
22897,
341,
796,
930,
90,
269,
62,
31628,
62,
6978,
12,
42116,
1782,
10378,
31023,
12,
2539,
12,
4775,
13,
9132,
91,
13,
628,
220,
220,
220,
900,
62,
9122,
62,
20500,
7,
705,
1,
5,
16,
1,
318,
39224,
6,
6739,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
10104,
62,
83,
482,
641,
13,
198,
220,
220,
220,
42865,
7,
2539,
4775,
8,
796,
651,
62,
30001,
62,
8937,
7,
2643,
12,
6738,
6739,
198,
220,
220,
220,
42001,
21179,
13,
198,
220,
220,
220,
220,
220,
42099,
705,
11770,
6089,
6,
6375,
705,
5446,
1565,
8634,
6158,
4458,
198,
220,
220,
220,
220,
220,
220,
220,
2198,
62,
361,
62,
18224,
7,
6376,
220,
220,
796,
6376,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21179,
796,
21179,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2643,
796,
2643,
6739,
198,
220,
220,
220,
23578,
34,
11159,
13,
198,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
2198,
62,
361,
62,
18224,
13,
198,
220,
220,
220,
42865,
7,
9122,
62,
11250,
3924,
8,
796,
4886,
62,
9122,
62,
11250,
3924,
7,
2643,
6739,
628,
220,
220,
220,
16876,
2198,
62,
11250,
3924,
3180,
3268,
2043,
12576,
13,
198,
220,
220,
220,
220,
220,
30826,
27064,
13,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
5298,
62,
18224,
7,
2643,
62,
5715,
220,
220,
220,
220,
796,
2643,
12,
5715,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2643,
62,
9630,
220,
220,
220,
220,
796,
6376,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2643,
62,
6738,
220,
220,
220,
220,
220,
796,
2643,
12,
6738,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4049,
62,
49336,
220,
220,
220,
220,
220,
796,
2198,
62,
11250,
3924,
12,
3448,
78,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
11507,
62,
486,
220,
220,
220,
220,
220,
220,
220,
796,
930,
90,
21179,
1782,
91,
6739,
198,
220,
23578,
49273,
13,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
*&---------------------------------------------------------------------*
*& Report ZDEMO_TECHED3
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
REPORT zdemo_teched3.
*******************************
* Data Object declaration *
*******************************
DATA: lo_excel TYPE REF TO zcl_excel,
lo_excel_writer TYPE REF TO zif_excel_writer,
lo_worksheet TYPE REF TO zcl_excel_worksheet.
DATA: lo_style_title TYPE REF TO zcl_excel_style,
lo_style_green TYPE REF TO zcl_excel_style,
lo_style_yellow TYPE REF TO zcl_excel_style,
lo_style_red TYPE REF TO zcl_excel_style,
lo_drawing TYPE REF TO zcl_excel_drawing,
lo_range TYPE REF TO zcl_excel_range,
lo_data_validation TYPE REF TO zcl_excel_data_validation,
lo_column TYPE REF TO zcl_excel_column,
lo_style_conditional TYPE REF TO zcl_excel_style_cond,
lv_style_title_guid TYPE zexcel_cell_style,
lv_style_green_guid TYPE zexcel_cell_style,
lv_style_yellow_guid TYPE zexcel_cell_style,
lv_style_red_guid TYPE zexcel_cell_style,
ls_cellis TYPE zexcel_conditional_cellis,
ls_key TYPE wwwdatatab.
DATA: lv_file TYPE xstring,
lv_bytecount TYPE i,
lt_file_tab TYPE solix_tab.
DATA: lv_full_path TYPE string,
lv_workdir TYPE string,
lv_file_separator TYPE c.
CONSTANTS: lv_default_file_name TYPE string VALUE 'TechEd01.xlsx'.
*******************************
* Selection screen management *
*******************************
PARAMETERS: p_path TYPE zexcel_export_dir.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_path.
lv_workdir = p_path.
cl_gui_frontend_services=>directory_browse( EXPORTING initial_folder = lv_workdir
CHANGING selected_folder = lv_workdir ).
p_path = lv_workdir.
INITIALIZATION.
cl_gui_frontend_services=>get_sapgui_workdir( CHANGING sapworkdir = lv_workdir ).
cl_gui_cfw=>flush( ).
p_path = lv_workdir.
START-OF-SELECTION.
IF p_path IS INITIAL.
p_path = lv_workdir.
ENDIF.
cl_gui_frontend_services=>get_file_separator( CHANGING file_separator = lv_file_separator ).
CONCATENATE p_path lv_file_separator lv_default_file_name INTO lv_full_path.
*******************************
* abap2xlsx create XLSX *
*******************************
" Create excel instance
CREATE OBJECT lo_excel.
" Styles
lo_style_title = lo_excel->add_new_style( ).
lo_style_title->font->bold = abap_true.
lo_style_title->font->color-rgb = zcl_excel_style_color=>c_blue.
lv_style_title_guid = lo_style_title->get_guid( ).
" Get active sheet
lo_worksheet = lo_excel->get_active_worksheet( ).
lo_worksheet->set_title( ip_title = 'Demo TechEd' ).
lo_worksheet->set_cell( ip_column = 'B' ip_row = 5 ip_value = 'TechEd demo' ip_style = lv_style_title_guid ).
lo_worksheet->set_cell( ip_column = 'B' ip_row = 7 ip_value = 'Is abap2xlsx simple' ).
lo_worksheet->set_cell( ip_column = 'B' ip_row = 8 ip_value = 'Is abap2xlsx CooL' ).
lo_worksheet->set_cell( ip_column = 'B' ip_row = 10 ip_value = 'Total score' ).
lo_worksheet->set_cell( ip_column = 'C' ip_row = 10 ip_formula = 'SUM(C7:C8)' ).
" add logo from SMWO
lo_drawing = lo_excel->add_new_drawing( ).
lo_drawing->set_position( ip_from_row = 2
ip_from_col = 'B' ).
ls_key-relid = 'MI'.
ls_key-objid = 'SIWB_KW_LOGO'.
lo_drawing->set_media_www( ip_key = ls_key
ip_width = 140
ip_height = 64 ).
" assign drawing to the worksheet
lo_worksheet->add_drawing( lo_drawing ).
" Add new sheet
lo_worksheet = lo_excel->add_new_worksheet( ).
lo_worksheet->set_title( ip_title = 'Values' ).
" Set values for range
lo_worksheet->set_cell( ip_row = 4 ip_column = 'A' ip_value = 1 ).
lo_worksheet->set_cell( ip_row = 5 ip_column = 'A' ip_value = 2 ).
lo_worksheet->set_cell( ip_row = 6 ip_column = 'A' ip_value = 3 ).
lo_worksheet->set_cell( ip_row = 7 ip_column = 'A' ip_value = 4 ).
lo_worksheet->set_cell( ip_row = 8 ip_column = 'A' ip_value = 5 ).
lo_range = lo_excel->add_new_range( ).
lo_range->name = 'Values'.
lo_range->set_value( ip_sheet_name = 'Values'
ip_start_column = 'A'
ip_start_row = 4
ip_stop_column = 'A'
ip_stop_row = 8 ).
lo_excel->set_active_sheet_index( 1 ).
" add data validation
lo_worksheet = lo_excel->get_active_worksheet( ).
lo_data_validation = lo_worksheet->add_new_data_validation( ).
lo_data_validation->type = zcl_excel_data_validation=>c_type_list.
lo_data_validation->formula1 = 'Values'.
lo_data_validation->cell_row = 7.
lo_data_validation->cell_column = 'C'.
lo_worksheet->set_cell( ip_row = 7 ip_column = 'C' ip_value = 'Select a value' ).
lo_data_validation = lo_worksheet->add_new_data_validation( ).
lo_data_validation->type = zcl_excel_data_validation=>c_type_list.
lo_data_validation->formula1 = 'Values'.
lo_data_validation->cell_row = 8.
lo_data_validation->cell_column = 'C'.
lo_worksheet->set_cell( ip_row = 8 ip_column = 'C' ip_value = 'Select a value' ).
" add autosize (column width)
lo_column = lo_worksheet->get_column( ip_column = 'B' ).
lo_column->set_auto_size( ip_auto_size = abap_true ).
lo_column = lo_worksheet->get_column( ip_column = 'C' ).
lo_column->set_auto_size( ip_auto_size = abap_true ).
" defne conditional styles
lo_style_green = lo_excel->add_new_style( ).
lo_style_green->fill->filltype = zcl_excel_style_fill=>c_fill_solid.
lo_style_green->fill->bgcolor-rgb = zcl_excel_style_color=>c_green.
lv_style_green_guid = lo_style_green->get_guid( ).
lo_style_yellow = lo_excel->add_new_style( ).
lo_style_yellow->fill->filltype = zcl_excel_style_fill=>c_fill_solid.
lo_style_yellow->fill->bgcolor-rgb = zcl_excel_style_color=>c_yellow.
lv_style_yellow_guid = lo_style_yellow->get_guid( ).
lo_style_red = lo_excel->add_new_style( ).
lo_style_red->fill->filltype = zcl_excel_style_fill=>c_fill_solid.
lo_style_red->fill->bgcolor-rgb = zcl_excel_style_color=>c_red.
lv_style_red_guid = lo_style_red->get_guid( ).
" add conditional formatting
lo_style_conditional = lo_worksheet->add_new_style_cond( ).
lo_style_conditional->rule = zcl_excel_style_cond=>c_rule_cellis.
ls_cellis-formula = '5'.
ls_cellis-operator = zcl_excel_style_cond=>c_operator_greaterthan.
ls_cellis-cell_style = lv_style_green_guid.
lo_style_conditional->mode_cellis = ls_cellis.
lo_style_conditional->priority = 1.
lo_style_conditional->set_range( ip_start_column = 'C'
ip_start_row = 10
ip_stop_column = 'C'
ip_stop_row = 10 ).
lo_style_conditional = lo_worksheet->add_new_style_cond( ).
lo_style_conditional->rule = zcl_excel_style_cond=>c_rule_cellis.
ls_cellis-formula = '5'.
ls_cellis-operator = zcl_excel_style_cond=>c_operator_equal.
ls_cellis-cell_style = lv_style_yellow_guid.
lo_style_conditional->mode_cellis = ls_cellis.
lo_style_conditional->priority = 2.
lo_style_conditional->set_range( ip_start_column = 'C'
ip_start_row = 10
ip_stop_column = 'C'
ip_stop_row = 10 ).
lo_style_conditional = lo_worksheet->add_new_style_cond( ).
lo_style_conditional->rule = zcl_excel_style_cond=>c_rule_cellis.
ls_cellis-formula = '0'.
ls_cellis-operator = zcl_excel_style_cond=>c_operator_greaterthan.
ls_cellis-cell_style = lv_style_red_guid.
lo_style_conditional->mode_cellis = ls_cellis.
lo_style_conditional->priority = 3.
lo_style_conditional->set_range( ip_start_column = 'C'
ip_start_row = 10
ip_stop_column = 'C'
ip_stop_row = 10 ).
" Create xlsx stream
CREATE OBJECT lo_excel_writer TYPE zcl_excel_writer_2007.
lv_file = lo_excel_writer->write_file( lo_excel ).
*******************************
* Output *
*******************************
" Convert to binary
lt_file_tab = cl_bcs_convert=>xstring_to_solix( iv_xstring = lv_file ).
lv_bytecount = xstrlen( lv_file ).
" Save the file
cl_gui_frontend_services=>gui_download( EXPORTING bin_filesize = lv_bytecount
filename = lv_full_path
filetype = 'BIN'
CHANGING data_tab = lt_file_tab ).
| [
9,
5,
10097,
30934,
9,
198,
9,
5,
6358,
220,
1168,
39429,
46,
62,
51,
25994,
1961,
18,
198,
9,
5,
198,
9,
5,
10097,
30934,
9,
198,
9,
5,
198,
9,
5,
198,
9,
5,
10097,
30934,
9,
198,
198,
2200,
15490,
1976,
9536,
78,
62,
660,
1740,
18,
13,
198,
198,
8412,
46068,
8162,
198,
9,
220,
220,
6060,
9515,
14305,
220,
220,
1635,
198,
8412,
46068,
8162,
198,
198,
26947,
25,
2376,
62,
1069,
5276,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
1069,
5276,
11,
198,
220,
220,
220,
220,
220,
2376,
62,
1069,
5276,
62,
16002,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
361,
62,
1069,
5276,
62,
16002,
11,
198,
220,
220,
220,
220,
220,
2376,
62,
5225,
25473,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
1069,
5276,
62,
5225,
25473,
13,
198,
198,
26947,
25,
2376,
62,
7635,
62,
7839,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
1069,
5276,
62,
7635,
11,
198,
220,
220,
220,
220,
220,
2376,
62,
7635,
62,
14809,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
1069,
5276,
62,
7635,
11,
198,
220,
220,
220,
220,
220,
2376,
62,
7635,
62,
36022,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
1069,
5276,
62,
7635,
11,
198,
220,
220,
220,
220,
220,
2376,
62,
7635,
62,
445,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
1069,
5276,
62,
7635,
11,
198,
220,
220,
220,
220,
220,
2376,
62,
19334,
278,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
1069,
5276,
62,
19334,
278,
11,
198,
220,
220,
220,
220,
220,
2376,
62,
9521,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
1069,
5276,
62,
9521,
11,
198,
220,
220,
220,
220,
220,
2376,
62,
7890,
62,
12102,
341,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
1069,
5276,
62,
7890,
62,
12102,
341,
11,
198,
220,
220,
220,
220,
220,
2376,
62,
28665,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
1069,
5276,
62,
28665,
11,
198,
220,
220,
220,
220,
220,
2376,
62,
7635,
62,
17561,
1859,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
1069,
5276,
62,
7635,
62,
17561,
11,
198,
220,
220,
220,
220,
220,
300,
85,
62,
7635,
62,
7839,
62,
5162,
312,
220,
220,
220,
220,
220,
41876,
1976,
1069,
5276,
62,
3846,
62,
7635,
11,
198,
220,
220,
220,
220,
220,
300,
85,
62,
7635,
62,
14809,
62,
5162,
312,
220,
220,
220,
220,
220,
41876,
1976,
1069,
5276,
62,
3846,
62,
7635,
11,
198,
220,
220,
220,
220,
220,
300,
85,
62,
7635,
62,
36022,
62,
5162,
312,
220,
220,
220,
220,
41876,
1976,
1069,
5276,
62,
3846,
62,
7635,
11,
198,
220,
220,
220,
220,
220,
300,
85,
62,
7635,
62,
445,
62,
5162,
312,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
1069,
5276,
62,
3846,
62,
7635,
11,
198,
220,
220,
220,
220,
220,
43979,
62,
3846,
271,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
1069,
5276,
62,
17561,
1859,
62,
3846,
271,
11,
198,
220,
220,
220,
220,
220,
43979,
62,
2539,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
7324,
19608,
265,
397,
13,
198,
198,
26947,
25,
300,
85,
62,
7753,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
2124,
8841,
11,
198,
220,
220,
220,
220,
220,
300,
85,
62,
26327,
9127,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1312,
11,
198,
220,
220,
220,
220,
220,
300,
83,
62,
7753,
62,
8658,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1540,
844,
62,
8658,
13,
198,
198,
26947,
25,
300,
85,
62,
12853,
62,
6978,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
300,
85,
62,
1818,
15908,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
300,
85,
62,
7753,
62,
25512,
1352,
41876,
269,
13,
198,
198,
10943,
2257,
1565,
4694,
25,
300,
85,
62,
12286,
62,
7753,
62,
3672,
41876,
4731,
26173,
8924,
705,
17760,
7407,
486,
13,
87,
7278,
87,
4458,
198,
198,
8412,
46068,
8162,
198,
9,
29538,
3159,
4542,
1635,
198,
8412,
46068,
8162,
198,
198,
27082,
2390,
2767,
4877,
25,
279,
62,
6978,
41876,
1976,
1069,
5276,
62,
39344,
62,
15908,
13,
198,
198,
1404,
33493,
2849,
12,
6173,
2200,
1677,
6177,
26173,
8924,
12,
2200,
35780,
7473,
279,
62,
6978,
13,
198,
220,
300,
85,
62,
1818,
15908,
796,
279,
62,
6978,
13,
198,
220,
537,
62,
48317,
62,
8534,
437,
62,
30416,
14804,
34945,
62,
25367,
325,
7,
7788,
15490,
2751,
4238,
62,
43551,
220,
796,
300,
85,
62,
1818,
15908,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5870,
15567,
2751,
220,
6163,
62,
43551,
796,
300,
85,
62,
1818,
15908,
6739,
198,
220,
279,
62,
6978,
796,
300,
85,
62,
1818,
15908,
13,
198,
198,
1268,
2043,
12576,
14887,
6234,
13,
198,
220,
537,
62,
48317,
62,
8534,
437,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
"! <p class="shorttext synchronized" lang="en">Validator for Database Table/View Search query</p>
CLASS zcl_sat_dbtabview_qv DEFINITION
PUBLIC
INHERITING FROM zcl_sat_general_qv
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
METHODS zif_sat_query_validator~validate_option
REDEFINITION.
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS zcl_sat_dbtabview_qv IMPLEMENTATION.
METHOD zif_sat_query_validator~validate_option.
DATA: lf_invalid TYPE abap_bool.
super->validate(
iv_option = iv_option
iv_value = iv_value
iv_value2 = iv_value2
).
IF iv_option = zif_sat_c_object_search=>c_general_search_params-type.
CASE iv_value.
WHEN zif_sat_c_object_search=>c_type_option_value-table OR
zif_sat_c_object_search=>c_type_option_value-view.
WHEN OTHERS.
lf_invalid = abap_true.
ENDCASE.
ENDIF.
IF lf_invalid = abap_true.
RAISE EXCEPTION TYPE zcx_sat_object_search
EXPORTING
textid = zcx_sat_object_search=>invalid_option_value
msgv1 = |{ iv_option }|
msgv2 = |{ iv_value }|.
ENDIF.
ENDMETHOD.
ENDCLASS.
| [
40484,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
47139,
1352,
329,
24047,
8655,
14,
7680,
11140,
12405,
3556,
79,
29,
198,
31631,
1976,
565,
62,
49720,
62,
9945,
8658,
1177,
62,
44179,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
49720,
62,
24622,
62,
44179,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
1976,
361,
62,
49720,
62,
22766,
62,
12102,
1352,
93,
12102,
378,
62,
18076,
198,
220,
220,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
13,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
565,
62,
49720,
62,
9945,
8658,
1177,
62,
44179,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
1976,
361,
62,
49720,
62,
22766,
62,
12102,
1352,
93,
12102,
378,
62,
18076,
13,
198,
220,
220,
220,
42865,
25,
300,
69,
62,
259,
12102,
41876,
450,
499,
62,
30388,
13,
628,
220,
220,
220,
2208,
3784,
12102,
378,
7,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
18076,
796,
21628,
62,
18076,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
8367,
220,
796,
21628,
62,
8367,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
8367,
17,
796,
21628,
62,
8367,
17,
198,
220,
220,
220,
6739,
628,
220,
220,
220,
16876,
21628,
62,
18076,
796,
1976,
361,
62,
49720,
62,
66,
62,
15252,
62,
12947,
14804,
66,
62,
24622,
62,
12947,
62,
37266,
12,
4906,
13,
628,
220,
220,
220,
220,
220,
42001,
21628,
62,
8367,
13,
628,
220,
220,
220,
220,
220,
220,
220,
42099,
1976,
361,
62,
49720,
62,
66,
62,
15252,
62,
12947,
14804,
66,
62,
4906,
62,
18076,
62,
8367,
12,
11487,
6375,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1976,
361,
62,
49720,
62,
66,
62,
15252,
62,
12947,
14804,
66,
62,
4906,
62,
18076,
62,
8367,
12,
1177,
13,
628,
220,
220,
220,
220,
220,
220,
220,
42099,
440,
4221,
4877,
13,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
69,
62,
259,
12102,
796,
450,
499,
62,
7942,
13,
198,
220,
220,
220,
220,
220,
23578,
34,
11159,
13,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
16876,
300,
69,
62,
259,
12102,
796,
450,
499,
62,
7942,
13,
198,
220,
220,
220,
220,
220,
17926,
24352,
7788,
42006,
2849,
41876,
1976,
66,
87,
62,
49720,
62,
15252,
62,
12947,
198,
220,
220,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2420,
312,
796,
1976,
66,
87,
62,
49720,
62,
15252,
62,
12947,
14804,
259,
12102,
62,
18076,
62,
8367,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31456,
85,
16,
220,
796,
930,
90,
21628,
62,
18076,
1782,
91,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
31456,
85,
17,
220,
796,
930,
90,
21628,
62,
8367,
1782,
91,
13,
198,
220,
220,
220,
23578,
5064,
13,
198,
220,
23578,
49273,
13,
198,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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ODS validate
CHANGING
cs_token TYPE zif_dbbr_fe_types=>ty_token
RAISING
zcx_dbbr_fe_stmnt_valid_exc.
ENDINTERFACE.
| [
40484,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
30642,
48951,
1352,
3556,
79,
29,
198,
41358,
49836,
1976,
361,
62,
9945,
1671,
62,
30001,
62,
12102,
1352,
198,
220,
44731,
764,
198,
220,
337,
36252,
50,
26571,
198,
220,
220,
220,
5870,
15567,
2751,
198,
220,
220,
220,
220,
220,
50115,
62,
30001,
41876,
1976,
361,
62,
9945,
1671,
62,
5036,
62,
19199,
14804,
774,
62,
30001,
198,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
9945,
1671,
62,
5036,
62,
301,
76,
429,
62,
12102,
62,
41194,
13,
198,
10619,
41358,
49836,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
INTERFACE lif_package_interface_facade.
TYPES ty_tpak_package_interf_elem_tt TYPE STANDARD TABLE OF tpak_package_interf_elem_ref WITH DEFAULT KEY.
METHODS:
get_elements
RETURNING
VALUE(rt_elements) TYPE ty_tpak_package_interf_elem_tt
RAISING
zcx_abapgit_exception,
set_elements_changeable
IMPORTING
VALUE(iv_changeable) TYPE flag
RAISING
zcx_abapgit_exception,
save_elements
RAISING
zcx_abapgit_exception,
get_all_attributes
RETURNING
VALUE(rs_package_interface_data) TYPE scompidtln
RAISING
zcx_abapgit_exception,
set_changeable
IMPORTING
VALUE(iv_changeable) TYPE flag
RAISING
zcx_abapgit_exception,
delete
RAISING
zcx_abapgit_exception,
save
RAISING
zcx_abapgit_exception,
remove_elements
IMPORTING
it_elements TYPE tpak_package_interf_elem_list
RAISING
zcx_abapgit_exception,
add_elements
IMPORTING
it_elements_data TYPE scomeldata
RAISING
zcx_abapgit_exception,
set_all_attributes
IMPORTING
is_package_interface_data TYPE scompidtln
is_data_sign TYPE scompisign
RAISING
zcx_abapgit_exception,
get_changeable
RETURNING
VALUE(rv_changeable) TYPE flag
RAISING
zcx_abapgit_exception.
ENDINTERFACE.
CLASS lcl_package_interface_facade DEFINITION.
PUBLIC SECTION.
INTERFACES:
lif_package_interface_facade.
METHODS:
constructor
IMPORTING
ii_interface TYPE REF TO if_package_interface.
PRIVATE SECTION.
DATA: mi_interface TYPE REF TO if_package_interface.
ENDCLASS.
| [
41358,
49836,
3868,
62,
26495,
62,
39994,
62,
38942,
671,
13,
198,
220,
24412,
47,
1546,
1259,
62,
34788,
461,
62,
26495,
62,
3849,
69,
62,
68,
10671,
62,
926,
41876,
49053,
9795,
43679,
3963,
256,
41091,
62,
26495,
62,
3849,
69,
62,
68,
10671,
62,
5420,
13315,
5550,
38865,
35374,
13,
628,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
651,
62,
68,
3639,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
17034,
62,
68,
3639,
8,
41876,
1259,
62,
34788,
461,
62,
26495,
62,
3849,
69,
62,
68,
10671,
62,
926,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
11,
628,
220,
220,
220,
900,
62,
68,
3639,
62,
3803,
540,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
452,
62,
3803,
540,
8,
41876,
6056,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
11,
628,
220,
220,
220,
3613,
62,
68,
3639,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
11,
628,
220,
220,
220,
651,
62,
439,
62,
1078,
7657,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
3808,
62,
26495,
62,
39994,
62,
7890,
8,
41876,
629,
3361,
312,
83,
18755,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
11,
628,
220,
220,
220,
900,
62,
3803,
540,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
452,
62,
3803,
540,
8,
41876,
6056,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
11,
628,
220,
220,
220,
12233,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
11,
628,
220,
220,
220,
3613,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
11,
628,
220,
220,
220,
4781,
62,
68,
3639,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
340,
62,
68,
3639,
41876,
256,
41091,
62,
26495,
62,
3849,
69,
62,
68,
10671,
62,
4868,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
11,
628,
220,
220,
220,
751,
62,
68,
3639,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
340,
62,
68,
3639,
62,
7890,
41876,
629,
462,
335,
1045,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
11,
628,
220,
220,
220,
900,
62,
439,
62,
1078,
7657,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
318,
62,
26495,
62,
39994,
62,
7890,
41876,
629,
3361,
312,
83,
18755,
198,
220,
220,
220,
220,
220,
220,
220,
318,
62,
7890,
62,
12683,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
629,
3361,
271,
570,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
11,
628,
220,
220,
220,
651,
62,
3803,
540,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
3803,
540,
8,
41876,
6056,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
198,
198,
10619,
41358,
49836,
13,
198,
198,
31631,
300,
565,
62,
26495,
62,
39994,
62,
38942,
671,
5550,
20032,
17941,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
25,
198,
220,
220,
220,
220,
220,
3868,
62,
26495,
62,
39994,
62,
38942,
671,
13,
628,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
23772,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21065,
62,
39994,
41876,
4526,
37,
5390,
611,
62,
26495,
62,
39994,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
42865,
25,
21504,
62,
39994,
41876,
4526,
37,
5390,
611,
62,
26495,
62,
39994,
13,
198,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
INTERFACE lif_data_generator.
CLASS-METHODS:
create
IMPORTING out TYPE REF TO if_oo_adt_classrun_out OPTIONAL.
ENDINTERFACE.
CLASS lcl_agency_data_generator DEFINITION CREATE PRIVATE.
PUBLIC SECTION.
INTERFACES: lif_data_generator.
TYPES: tt_agency TYPE STANDARD TABLE OF /dmo/agency13 WITH KEY agency_id.
CLASS-METHODS: get_data
RETURNING VALUE(rt_data) TYPE tt_agency.
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS lcl_agency_data_generator IMPLEMENTATION.
METHOD lif_data_generator~create.
IF out IS BOUND. out->write( '--> Delete Content.' ). ENDIF.
DELETE FROM /dmo/agency13. "#EC CI_NOWHERE
IF out IS BOUND. out->write( '--> Build Content.' ). ENDIF.
DATA(lt_data) = get_data( ).
IF out IS BOUND. out->write( '--> Insert Content.' ). ENDIF.
INSERT /dmo/agency13 FROM TABLE @lt_data.
IF out IS BOUND. out->write( '--> Done.' ). ENDIF.
ENDMETHOD.
METHOD get_data.
rt_data = VALUE tt_agency(
( agency_id = '070001'
name = 'Sunshine Travel'
street = '134 West Street '
postal_code = '54323 '
city = 'Rochester '
country_code = 'US '
phone_number = '+1 901-632-5620 '
web_address = 'http://www.sunshine-travel.sap '
email_address = '[email protected] '
)
( agency_id = '070002'
name = 'Fly High'
street = 'Berliner Allee 11 '
postal_code = '40880 '
city = 'Duesseldorf '
country_code = 'DE '
phone_number = '+49 2102 69555 '
web_address = 'http://www.flyhigh.sap '
email_address = '[email protected] '
)
( agency_id = '070003'
name = 'Happy Hopping'
street = 'Calvinstr. 36 '
postal_code = '13467 '
city = 'Berlin '
country_code = 'DE '
phone_number = '+49 30-8853-0 '
web_address = 'http://www.haphop.sap '
email_address = '[email protected] '
)
( agency_id = '070004'
name = 'Pink Panther'
street = 'Auf der Schanz 54 '
postal_code = '65936 '
city = 'Frankfurt '
country_code = 'DE '
phone_number = '+49 69-467653-0 '
web_address = 'http://www.pinkpanther.sap'
email_address = '[email protected] '
)
( agency_id = '070005'
name = 'Your Choice'
street = 'Gustav-Jung-Str. 425 '
postal_code = '90455'
city = 'Nuernberg'
country_code = 'DE'
phone_number = '+49 9256-4548-0'
web_address = 'http://www.yc.sap'
email_address = '[email protected]'
)
( agency_id = '070006'
name = 'Bella Italia'
street = 'Via Marconi 123'
postal_code = '00139'
city = 'Roma'
country_code = 'IT'
phone_number = '+39 6 893546721'
web_address = 'http://www.tours.it/Adventure/'
email_address = '[email protected]/Adventure/'
)
( agency_id = '070007'
name = 'Hot Socks Travel'
street = '224 Balnagask Rd '
postal_code = '8053 '
city = 'Sydney'
country_code = 'AU '
phone_number = '+61 2 2004 5000 '
web_address = 'http://www.hst.co.au'
email_address = '[email protected]'
)
( agency_id = '070008'
name = 'Burns Nuclear'
street = '14 Science Park Drive'
postal_code = '118228'
city = 'Singapore'
country_code = 'SG'
phone_number = '+65 777-5566'
web_address = 'http://www.burns-burns-burns.sg'
email_address = '[email protected]'
)
( agency_id = '070009'
name = 'Honauer Reisen GmbH'
street = 'Baumgarten 8'
postal_code = '4212'
city = 'Neumarkt'
country_code = 'AT'
phone_number = '+43 7941 8903'
web_address = 'http://www.honauer.at'
email_address = '[email protected]'
)
( agency_id = '070010'
name = 'Travel from Walldorf'
street = 'Altonaer Str. 24 '
postal_code = '10557 '
city = 'Berlin '
country_code = 'DE '
phone_number = '+49 30-622860 '
web_address = 'http://www.travel-from-walldorf'
email_address = 'info@travel-from-walldorf'
)
( agency_id = '070011'
name = 'Voyager Enterprises'
street = 'Gustavslundsvaegen 151'
postal_code = '70563 '
city = 'Stockholm '
country_code = 'SE '
phone_number = '+46 8/ 587 70000'
web_address = 'http://www.starfleet.ufp'
email_address = '[email protected]'
)
( agency_id = '070012'
name = 'Ben McCloskey Ltd.'
street = '74 Court Oak Rd'
postal_code = 'B17 9TN'
city = 'Birmingham'
country_code = 'GB'
phone_number = '+44 121 365-2251 '
web_address = 'http://www.ben-mcCloskey.co.uk'
email_address = '[email protected]'
)
( agency_id = '070013'
name = 'Pillepalle Trips'
street = 'Gorki Park 4 '
postal_code = '8008 '
city = 'Zuerich '
country_code = 'CH '
phone_number = '+41 1 345-5321 '
web_address = 'http://www.pi-pa-tri.sap'
email_address = '[email protected]'
)
( agency_id = '070014'
name = 'Kangeroos'
street = 'Lancaster drive 435 '
postal_code = '20001 '
city = 'London '
country_code = 'GB '
phone_number = '+44 171-2937638 '
web_address = 'http://www.hopp.sap '
email_address = '[email protected] '
)
( agency_id = '070015'
name = 'Bavarian Castle'
street = 'Pilnizerstr. 241 '
postal_code = '01069 '
city = 'Dresden '
country_code = 'DE '
phone_number = '+49 98-32832732 '
web_address = 'http://www.neu.schwanstein.sap '
email_address = '[email protected] '
)
( agency_id = '070016'
name = 'Ali''s Bazar'
street = '45, Mac Arthur Boulevard '
postal_code = '19113 '
city = 'Boston '
country_code = 'US '
phone_number = '+1 508-692-5200 '
web_address = 'http://www.ali.sap '
email_address = '[email protected] '
)
( agency_id = '070017'
name = 'Super Agency'
street = '50 Cranworth St'
postal_code = 'G12 8AG'
city = 'Glasgow'
country_code = 'GB'
phone_number = '+44 141 711-5643'
web_address = 'http://www.super.sap'
email_address = '[email protected]'
)
( agency_id = '070018'
name = 'Wang Chong'
street = 'Gagarine Park '
postal_code = '150021 '
city = 'Moscow '
country_code = 'RU '
phone_number = '+7 3287-213321 '
web_address = 'http://www.wang.chong.sap'
email_address = '[email protected]'
)
( agency_id = '070019'
name = 'Around the World'
street = 'An der Breiten Wiese 122 '
postal_code = '30625 '
city = 'Hannover '
country_code = 'DE '
phone_number = '+49 511-347589-0 '
web_address = 'http://www.atw.sap'
email_address = '[email protected]'
)
( agency_id = '070020'
name = 'No Return'
street = 'Wahnheider Str. 57 '
postal_code = '51105 '
city = 'Koeln '
country_code = 'DE '
phone_number = '+49 221-5689-100 '
web_address = 'http://www.bye-bye.sap '
email_address = '[email protected] '
)
( agency_id = '070021'
name = 'Special Agency Peru'
street = 'Triberger Str. 42 '
postal_code = '70569 '
city = 'Stuttgart '
country_code = 'DE '
phone_number = '+49 711-7100 '
web_address = 'http://www.sap.com '
email_address = '[email protected] '
)
( agency_id = '070022'
name = 'Caribian Dreams'
street = 'Deichstrasse 45 '
postal_code = '26721 '
city = 'Emden '
country_code = 'DE '
phone_number = '+49 2670-8560-0 '
web_address = 'http://www.cuba-libre.sap '
email_address = '[email protected] '
)
( agency_id = '070023'
name = 'Asia By Plane'
street = '6-9 Iidabashi 7-chome'
postal_code = '102-0072'
city = 'Tokyo '
country_code = 'JP'
phone_number = '+81 3-3239-3501 '
web_address = 'http://www.asia-by-plane.co.jp'
email_address = '[email protected]'
)
( agency_id = '070024'
name = 'Everywhere'
street = 'Regensburger Platz 23 '
postal_code = '81679 '
city = 'Muenchen '
country_code = 'DE '
phone_number = '+49 89-2499239 '
web_address = 'http://www.everywhere.sap'
email_address = '[email protected]'
)
( agency_id = '070025'
name = 'Happy Holiday'
street = 'Rastenburger Str. 12'
postal_code = '28779 '
city = 'Bremen '
country_code = 'DE '
phone_number = '+49 3266-288817 '
web_address = 'http://www.haphol.sap'
email_address = '[email protected]'
)
( agency_id = '070026'
name = 'No Name'
street = 'Schwalbenweg 43 '
postal_code = '52078 '
city = 'Aachen '
country_code = 'DE '
phone_number = '+49 241-77729 '
web_address = 'http://www.nn.sap'
email_address = '[email protected]'
)
( agency_id = '070027'
name = 'Fly Low'
street = 'Chemnitzer Str. 42 '
postal_code = '01187 '
city = 'Dresden '
country_code = 'DE '
phone_number = '+49 351-5423-00 '
web_address = 'http://www.fly-low.sap'
email_address = '[email protected]'
)
( agency_id = '070028'
name = 'Aussie Travel'
street = 'Queens Road '
postal_code = 'M8 7RYP '
city = 'Manchester '
country_code = 'GB '
phone_number = '+44 161 2052000 '
web_address = 'http://www.down-under.sap'
email_address = '[email protected]'
)
( agency_id = '070029'
name = 'Up ''n'' Away'
street = 'Nackenbergerstr. 92 '
postal_code = '30625 '
city = 'Hannover '
country_code = 'DE '
phone_number = '+49 511 403266-0 '
web_address = 'http://www.una.sap '
email_address = '[email protected] '
)
( agency_id = '070030'
name = 'Trans World Travel'
street = '100 Industrial Drive '
postal_code = '60804 '
city = 'Chicago '
country_code = 'US '
phone_number = '+1 708-454-8723 '
web_address = 'http://www.twt.sap '
email_address = '[email protected] '
)
( agency_id = '070031'
name = 'Bright Side of Life'
street = '340 State Street '
postal_code = '30432 '
city = 'San Francisco '
country_code = 'US '
phone_number = '+1 415-454-9877 '
web_address = 'http://www.ruebennase.sap '
email_address = '[email protected] '
)
( agency_id = '070032'
name = 'Sunny, Sunny, Sunny'
street = '1300 State Street '
postal_code = '19003 '
city = 'Philadelphia '
country_code = 'US '
phone_number = '+1 215-090-7659 '
web_address = 'http://www.s3.sap '
email_address = '[email protected] '
)
( agency_id = '070033'
name = 'Fly & Smile'
street = 'Zeppelinstr. 17 '
postal_code = '60318 '
city = 'Frankfurt '
country_code = 'DE '
phone_number = '+49 69-99-0 '
web_address = 'http://www.fly-and-smile.sap '
email_address = '[email protected] '
)
( agency_id = '070034'
name = 'Supercheap'
street = '1400, Washington Circle '
postal_code = '30439 '
city = 'Los Angeles '
country_code = 'US '
phone_number = '+1 251-369-2510 '
web_address = 'http://www.supercheap.sap '
email_address = '[email protected] '
)
( agency_id = '070035'
name = 'Hitchhiker'
street = '21 Rue de Moselle '
postal_code = '92132 '
city = 'Issy-les-Moulineaux '
country_code = 'FR '
phone_number = '+33 1-405-555-888 '
web_address = 'http://www.42.sap '
email_address = '[email protected] '
)
( agency_id = '070036'
name = 'Fly Now, Pay Later'
street = '100 Madison '
postal_code = '11012 '
city = 'New York '
country_code = 'US '
phone_number = '+1 512 343-8543 '
web_address = 'http://www.fn-pl.sap '
email_address = '[email protected] '
)
( agency_id = '070037'
name = 'Real Weird Vacation'
street = '949 5th Street '
postal_code = 'V6T 1Z4'
city = 'Vancouver'
country_code = 'CA '
phone_number = '+1 604 827-8024'
web_address = 'http://www.reweva.sap '
email_address = '[email protected] '
)
( agency_id = '070038'
name = 'Cap Travels Ltd.'
street = '10 Mandela St'
postal_code = '2128'
city = 'Johannesburg'
country_code = 'ZA'
phone_number = '+27 11 886-8981'
web_address = 'http://www.cap-travels.co.za'
email_address = '[email protected]'
)
( agency_id = '070039'
name = 'Rainy, Stormy, Cloudy'
street = 'Lindenstr. 462 '
postal_code = '70563 '
city = 'Stuttgart '
country_code = 'DE '
phone_number = '+49 711-7992-00 '
web_address = 'http://www.windy.sap/rsc/ '
email_address = '[email protected]/rsc/ '
)
( agency_id = '070040'
name = 'Women only'
street = 'Kirchstr. 53 '
postal_code = '55124 '
city = 'Mainz '
country_code = 'DE '
phone_number = '+49 6131-543-00 '
web_address = 'http://www.women-only.sap '
email_address = '[email protected] '
)
( agency_id = '070041'
name = 'Maxitrip'
street = 'Flugfeld 17'
postal_code = '65128'
city = 'Wiesbaden'
country_code = 'DE'
phone_number = '+49 611-55 66 77'
web_address = 'http://www.maxitrip.sap'
email_address = '[email protected]'
)
( agency_id = '070042'
name = 'The Ultimate Answer'
street = 'Manchester Rd 20 '
postal_code = 'AB1 1SA '
city = 'Avon '
country_code = 'GB '
phone_number = '+44 934-66799 '
web_address = 'http://www.thulan.sap '
email_address = '[email protected] '
)
( agency_id = '070043'
name = 'Intertravel'
street = 'Michigan Ave '
postal_code = '60154 '
city = 'Chicago '
country_code = 'US '
phone_number = '+1 788 798-6555 '
web_address = 'http://www.intertravel.sap '
email_address = '[email protected] '
)
( agency_id = '070044'
name = 'Ultimate Goal'
street = '300 Peach tree street Sou'
postal_code = '01069 '
city = 'Atlanta '
country_code = 'US '
phone_number = '+1 874-654-6686'
web_address = 'http://www.ultimate-goal.sap '
email_address = '[email protected] '
)
( agency_id = '070045'
name = 'Submit and Return'
street = '20890 East Central Ave '
postal_code = '30987 '
city = 'Palo Alto '
country_code = 'US '
phone_number = '+1 652 645-5236 '
web_address = 'http://www.sar.sap '
email_address = '[email protected] '
)
( agency_id = '070046'
name = 'Hendrik''s'
street = '1200 Industrial Drive '
postal_code = '60153 '
city = 'Chicago '
country_code = 'US '
phone_number = '+1 08-924-9884 '
web_address = 'http://www.essen.sap/150596 '
email_address = '[email protected]/150596 '
)
( agency_id = '070047'
name = 'All British Air Planes'
street = '224 Tomato Lane '
postal_code = '08965 '
city = 'Vineland '
country_code = 'US '
phone_number = '+44 609-896-Moore '
web_address = 'http://www.abap.sap '
email_address = '[email protected] '
)
( agency_id = '070048'
name = 'Rocky Horror Tours'
street = '789 Santa Monica Blvd. '
postal_code = '08934 '
city = 'Santa Monica '
country_code = 'US '
phone_number = '+1 64351-6455-654 '
web_address = 'http://www.frank.furter.sap '
email_address = '[email protected] '
)
( agency_id = '070049'
name = 'Miles and More'
street = '777 Arlington Blvd. '
postal_code = '46515 '
city = 'Elkhart '
country_code = 'US '
phone_number = '+1 646 867-6888 '
web_address = 'http://www.mam.sap'
email_address = '[email protected]'
)
( agency_id = '070050'
name = 'Not Only By Bike'
street = 'Saalburgstr. 765 '
postal_code = '60385 '
city = 'Frankfurt '
country_code = 'DE '
phone_number = '+49 69 465789-0'
web_address = 'http://www.nobb.sap'
email_address = '[email protected]'
)
).
ENDMETHOD.
ENDCLASS.
CLASS lcl_airport_data_generator DEFINITION CREATE PRIVATE.
PUBLIC SECTION.
INTERFACES: lif_data_generator.
TYPES: tt_airport TYPE STANDARD TABLE OF /dmo/airport13 WITH KEY airport_id.
CLASS-METHODS: get_data
RETURNING VALUE(rt_data) TYPE lcl_airport_data_generator=>tt_airport.
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS lcl_airport_data_generator IMPLEMENTATION.
METHOD lif_data_generator~create.
IF out IS BOUND. out->write( '--> Delete Content.' ). ENDIF.
DELETE FROM /dmo/airport13. "#EC CI_NOWHERE
IF out IS BOUND. out->write( '--> Build Content.' ). ENDIF.
DATA(lt_data) = get_data( ).
IF out IS BOUND. out->write( '--> Insert Content.' ). ENDIF.
INSERT /dmo/airport13 FROM TABLE @lt_data.
IF out IS BOUND. out->write( '--> Done.' ). ENDIF.
ENDMETHOD.
METHOD get_data.
rt_data = VALUE tt_airport(
" Europe
( airport_id = 'FRA' name = 'Frankfurt Airport' city = 'Frankfurt/Main' country = 'DE' )
( airport_id = 'HAM' name = 'Hamburg Airport' city = 'Hamburg' country = 'DE' )
( airport_id = 'MUC' name = 'Munich Airport' city = 'Munich' country = 'DE' )
( airport_id = 'SXF' name = 'Berlin Schönefeld Airport' city = 'Berlin' country = 'DE' )
( airport_id = 'THF' name = 'Berlin Tempelhof Airport' city = 'Berlin' country = 'DE' )
( airport_id = 'TXL' name = 'Berlin Tegel Airport' city = 'Berlin' country = 'DE' )
( airport_id = 'CDG' name = 'Charles de Gaulle Airport' city = 'Paris' country = 'FR' )
( airport_id = 'ORY' name = 'Orly Airport' city = 'Paris' country = 'FR' )
( airport_id = 'VIE' name = 'Vienna International Airport' city = 'Vienna' country = 'AT' )
( airport_id = 'ZRH' name = 'Zürich Airport' city = 'Zurich' country = 'CH' )
( airport_id = 'RTM' name = 'Rotterdam The Hague Airport' city = 'Rotterdam' country = 'NL' )
( airport_id = 'FCO' name = 'Leonardo da Vinci–Fiumicino Airport' city = 'Rome' country = 'IT' )
( airport_id = 'VCE' name = 'Venice Marco Polo Airport' city = 'Venice' country = 'IT' )
( airport_id = 'LCY' name = 'London City Airport' city = 'London' country = 'UK' )
( airport_id = 'LGW' name = 'Gatwick Airport' city = 'London' country = 'UK' )
( airport_id = 'LHR' name = 'Heathrow Airport' city = 'London' country = 'UK' )
( airport_id = 'MAD' name = 'Adolfo Suárez Madrid–Barajas Airport' city = 'Madrid' country = 'ES' )
( airport_id = 'VKO' name = 'Vnukovo International Airport' city = 'Moscow' country = 'RU' )
( airport_id = 'SVO' name = 'Sheremetyevo International Airport' city = 'Moscow' country = 'RU' )
" America
( airport_id = 'JFK' name = 'John F. Kennedy International Airport' city = 'New York City, New York' country = 'US' )
( airport_id = 'BNA' name = 'Nashville International Airport' city = 'Nashville, Tennessee' country = 'US' )
( airport_id = 'BOS' name = 'Logan International Airport' city = 'Boston, Massachusetts' country = 'US' )
( airport_id = 'ELP' name = 'El Paso International Airport' city = 'El Paso, Texas' country = 'US' )
( airport_id = 'DEN' name = 'Denver International Airport' city = 'Denver, Colorado' country = 'US' )
( airport_id = 'HOU' name = 'William P. Hobby Airport' city = 'Houston, Texas' country = 'US' )
( airport_id = 'LAS' name = 'McCarran International Airport' city = 'Las Vegas, Nevada' country = 'US' )
( airport_id = 'LAX' name = 'Los Angeles International Airport' city = 'Los Angeles, California' country = 'US' )
( airport_id = 'MCI' name = 'Kansas City International Airport' city = 'Kansas City, Missouri' country = 'US' )
( airport_id = 'MIA' name = 'Miami International Airport' city = 'Miami, Florida' country = 'US' )
( airport_id = 'SFO' name = 'San Francisco International Airport' city = 'San Francisco, California' country = 'US' )
( airport_id = 'EWR' name = 'Newark Liberty International Airport' city = 'Newark, New Jersey' country = 'US' )
( airport_id = 'YOW' name = 'Ottawa Macdonald–Cartier Int. Airport' city = 'Ottawa, Ontario' country = 'CA' )
( airport_id = 'ACA' name = 'General Juan N. Álvarez Int. Airport' city = 'Acapulco, Guerrero' country = 'MX' )
( airport_id = 'GIG' name = 'Rio de Janeiro–Galeão Int. Airport' city = 'Rio de Janeiro' country = 'BR' )
( airport_id = 'HAV' name = 'José Martí International Airport' city = 'Havana' country = 'CU' )
" Australia
( airport_id = 'ASP' name = 'Alice Springs Airport' city = 'Alice Springs, Northern Territory' country = 'AU' )
" Africa
( airport_id = 'ACE' name = 'Lanzarote Airport' city = 'Lanzarote, Canary Islands' country = 'ES' )
( airport_id = 'HRE' name = 'Harare International Airport' city = 'Harare' country = 'ZW' )
( airport_id = 'GCJ' name = 'Grand Central Airport' city = 'Johannesburg' country = 'SA' )
" Asia
( airport_id = 'NRT' name = 'Narita International Airport' city = 'Tokyo, Honshu' country = 'JP' )
( airport_id = 'ITM' name = 'Osaka International Airport' city = 'Osaka, Honshu' country = 'JP' )
( airport_id = 'KIX' name = 'Kansai International Airport' city = 'Osaka, Honshu' country = 'JP' )
( airport_id = 'HIJ' name = 'Hiroshima Airport' city = 'Hiroshima, Honshu' country = 'JP' )
( airport_id = 'SIN' name = 'Singapore Changi Airport' city = 'Singapore' country = 'SG' )
( airport_id = 'KUL' name = 'Kuala Lumpur International Airport' city = 'Kuala Lumpur' country = 'MY' )
( airport_id = 'HKG' name = 'Hong Kong International Airport' city = 'Hongkong' country = 'CN' )
( airport_id = 'BKK' name = 'Suvarnabhumi Airport' city = 'Bangkok' country = 'TH' )
).
ENDMETHOD.
ENDCLASS.
CLASS lcl_carrier_data_generator DEFINITION CREATE PRIVATE.
PUBLIC SECTION.
INTERFACES: lif_data_generator.
TYPES: tt_carrier TYPE STANDARD TABLE OF /dmo/carrier13 WITH KEY carrier_id.
CLASS-METHODS: get_data
RETURNING
VALUE(rt_data) TYPE tt_carrier.
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS lcl_carrier_data_generator IMPLEMENTATION.
METHOD lif_data_generator~create.
IF out IS BOUND. out->write( '--> Delete Content.' ). ENDIF.
DELETE FROM /dmo/carrier13. "#EC CI_NOWHERE
IF out IS BOUND. out->write( '--> Build Content.' ). ENDIF.
DATA(lt_data) = get_data( ).
IF out IS BOUND. out->write( '--> Insert Content.' ). ENDIF.
INSERT /dmo/carrier13 FROM TABLE @lt_data.
IF out IS BOUND. out->write( '--> Done.' ). ENDIF.
ENDMETHOD.
METHOD get_data.
rt_data = VALUE tt_carrier(
( carrier_id = 'AA' name = 'American Airlines Inc.' currency_code = 'USD' )
( carrier_id = 'AC' name = 'Air Canada' currency_code = 'CAD' )
( carrier_id = 'AF' name = 'Air France' currency_code = 'EUR' )
( carrier_id = 'AZ' name = 'Alitalia Societa Aerea Italiana S.p.A.' currency_code = 'EUR' )
( carrier_id = 'BA' name = 'British Airways p.l.c.' currency_code = 'GBP' )
( carrier_id = 'FJ' name = 'Air Pacific Limited t/a Fiji Airway' currency_code = 'USD' )
( carrier_id = 'CO' name = 'Cobaltair Ltd. dba Cobalt' currency_code = 'USD' )
( carrier_id = 'DL' name = 'Delta Air Lines, Inc.' currency_code = 'USD' )
( carrier_id = 'LH' name = 'Deutsche Lufthansa AG' currency_code = 'EUR' )
( carrier_id = 'NG' name = 'AL-Naser Wings' currency_code = 'EUR' )
( carrier_id = 'JL' name = 'Japan Airlines Co., Ltd.' currency_code = 'JPY' )
( carrier_id = 'QF' name = 'Qantas Airways Ltd.' currency_code = 'AUD' )
( carrier_id = 'SA' name = 'South African Airways' currency_code = 'ZAR' )
( carrier_id = 'SQ' name = 'Singapore Airlines Limited' currency_code = 'SGD' )
( carrier_id = 'SR' name = 'Sundair GmbH' currency_code = 'CHF' )
( carrier_id = 'UA' name = 'United Airlines, Inc.' currency_code = 'USD' )
).
ENDMETHOD.
ENDCLASS.
CLASS lcl_connection_data_generator DEFINITION CREATE PRIVATE.
PUBLIC SECTION.
INTERFACES: lif_data_generator.
TYPES: tt_connection TYPE STANDARD TABLE OF /dmo/connecti_13 WITH KEY carrier_id connection_id.
TYPES:
"! Structure for additional information for generation. <br/>
"! <em>weekday</em> '1' means Monday, '7' is Sunday
BEGIN OF ty_connection_additional_info.
INCLUDE TYPE /dmo/connecti_13.
TYPES: weekday TYPE i,
END OF ty_connection_additional_info.
TYPES: tt_connection_additional_info TYPE STANDARD TABLE OF ty_connection_additional_info WITH KEY connection_id.
CLASS-METHODS: get_data "provide data public
RETURNING VALUE(rt_data) TYPE tt_connection_additional_info.
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS lcl_connection_data_generator IMPLEMENTATION.
METHOD lif_data_generator~create.
IF out IS BOUND. out->write( '--> Delete Content.' ). ENDIF.
DELETE FROM /dmo/connecti_13. "#EC CI_NOWHERE
IF out IS BOUND. out->write( '--> Build Content.' ). ENDIF.
DATA(lt_data) = get_data( ).
DATA(lt_data_db) = CORRESPONDING tt_connection( lt_data ).
IF out IS BOUND. out->write( '--> Insert Content.' ). ENDIF.
INSERT /dmo/connecti_13 FROM TABLE @lt_data.
IF out IS BOUND. out->write( '--> Done.' ). ENDIF.
ENDMETHOD.
METHOD get_data.
rt_data = VALUE tt_connection_additional_info(
( carrier_id = 'SQ' connection_id = '0001' airport_from_id = 'SFO' airport_to_id = 'SIN' departure_time = '011500' arrival_time = '115000' distance = 13523 distance_unit = 'KM' weekday = 3 ) "1-7
( carrier_id = 'SQ' connection_id = '0002' airport_from_id = 'SIN' airport_to_id = 'SFO' departure_time = '063000' arrival_time = '091500' distance = 13523 distance_unit = 'KM' weekday = 4 ) "1-7
( carrier_id = 'SQ' connection_id = '0011' airport_from_id = 'NRT' airport_to_id = 'SIN' departure_time = '145500' arrival_time = '205000' distance = 5363 distance_unit = 'KM' weekday = 4 ) "1-7
( carrier_id = 'SQ' connection_id = '0012' airport_from_id = 'SIN' airport_to_id = 'NRT' departure_time = '095300' arrival_time = '175400' distance = 5363 distance_unit = 'KM' weekday = 6 ) "1-7
( carrier_id = 'UA' connection_id = '0058' airport_from_id = 'SFO' airport_to_id = 'FRA' departure_time = '134500' arrival_time = '095500' distance = 9608 distance_unit = 'KM' weekday = 1 ) "1-7
( carrier_id = 'UA' connection_id = '0059' airport_from_id = 'FRA' airport_to_id = 'SFO' departure_time = '135500' arrival_time = '163000' distance = 9608 distance_unit = 'KM' weekday = 2 ) "1-7
( carrier_id = 'UA' connection_id = '1537' airport_from_id = 'EWR' airport_to_id = 'MIA' departure_time = '215600' arrival_time = '004700' distance = 1752 distance_unit = 'KM' weekday = 5 ) "1-7
( carrier_id = 'AA' connection_id = '0322' airport_from_id = 'MIA' airport_to_id = 'EWR' departure_time = '201700' arrival_time = '231900' distance = 1752 distance_unit = 'KM' weekday = 7 ) "1-7
( carrier_id = 'AA' connection_id = '0017' airport_from_id = 'MIA' airport_to_id = 'HAV' departure_time = '071900' arrival_time = '080300' distance = 520 distance_unit = 'KM' weekday = 3 ) "1-7
( carrier_id = 'AA' connection_id = '2678' airport_from_id = 'HAV' airport_to_id = 'MIA' departure_time = '061500' arrival_time = '103000' distance = 520 distance_unit = 'KM' weekday = 6 ) "1-7
( carrier_id = 'AA' connection_id = '0015' airport_from_id = 'JFK' airport_to_id = 'SFO' departure_time = '071300' arrival_time = '100400' distance = 4156 distance_unit = 'KM' weekday = 5 ) "1-7
( carrier_id = 'AA' connection_id = '0018' airport_from_id = 'SFO' airport_to_id = 'JFK' departure_time = '064000' arrival_time = '150600' distance = 4156 distance_unit = 'KM' weekday = 4 ) "1-7
( carrier_id = 'LH' connection_id = '0400' airport_from_id = 'FRA' airport_to_id = 'JFK' departure_time = '101000' arrival_time = '113400' distance = 6162 distance_unit = 'KM' weekday = 6 ) "1-7
( carrier_id = 'LH' connection_id = '0401' airport_from_id = 'JFK' airport_to_id = 'FRA' departure_time = '183000' arrival_time = '074500' distance = 6162 distance_unit = 'KM' weekday = 5 ) "1-7
( carrier_id = 'LH' connection_id = '0402' airport_from_id = 'FRA' airport_to_id = 'EWR' departure_time = '133000' arrival_time = '153500' distance = 6217 distance_unit = 'KM' weekday = 1 ) "1-7
( carrier_id = 'LH' connection_id = '0403' airport_from_id = 'EWR' airport_to_id = 'FRA' departure_time = '180900' arrival_time = '073000' distance = 6217 distance_unit = 'KM' weekday = 1 ) "1-7
( carrier_id = 'JL' connection_id = '0407' airport_from_id = 'NRT' airport_to_id = 'FRA' departure_time = '132300' arrival_time = '155600' distance = 9379 distance_unit = 'KM' weekday = 5 ) "1-7
( carrier_id = 'JL' connection_id = '0408' airport_from_id = 'FRA' airport_to_id = 'NRT' departure_time = '202500' arrival_time = '154000' distance = 9379 distance_unit = 'KM' weekday = 6 ) "1-7
( carrier_id = 'AZ' connection_id = '0788' airport_from_id = 'VCE' airport_to_id = 'NRT' departure_time = '132500' arrival_time = '101300' distance = 9595 distance_unit = 'KM' weekday = 6 )
( carrier_id = 'AZ' connection_id = '0789' airport_from_id = 'NRT' airport_to_id = 'VCE' departure_time = '142600' arrival_time = '213100' distance = 9595 distance_unit = 'KM' weekday = 5 )
).
ENDMETHOD.
ENDCLASS.
CLASS lcl_flight_data_generator DEFINITION DEFERRED.
CLASS /dmo/cl_flight_data_generat_13 DEFINITION LOCAL FRIENDS lcl_flight_data_generator.
CLASS lcl_flight_data_generator DEFINITION CREATE PRIVATE.
PUBLIC SECTION.
INTERFACES: lif_data_generator.
TYPES: tt_flights TYPE STANDARD TABLE OF /dmo/flight13
WITH KEY carrier_id connection_id flight_date
WITH NON-UNIQUE SORTED KEY key_sorted_seats COMPONENTS seats_occupied
WITH NON-UNIQUE SORTED KEY key_sorted_date COMPONENTS connection_id flight_date.
CLASS-METHODS: get_data
RETURNING VALUE(rt_data) TYPE tt_flights.
PROTECTED SECTION.
PRIVATE SECTION.
TYPES: BEGIN OF ty_plane_type,
id TYPE /dmo/plane_type_id13,
seats_max TYPE /dmo/plane_seats_max13,
long_distance TYPE abap_bool,
index TYPE int1,
END OF ty_plane_type,
BEGIN OF ty_flight_info,
id TYPE /dmo/plane_type_id13,
long_distance TYPE abap_bool,
seats_max TYPE /dmo/plane_seats_max13,
seats_occupied TYPE /dmo/plane_seats_occupied13,
price TYPE /dmo/flight_price13,
END OF ty_flight_info,
BEGIN OF ty_connection_recurrency,
id TYPE /dmo/connection_id13,
recurrency TYPE STANDARD TABLE OF /dmo/flight_date13 WITH EMPTY KEY,
END OF ty_connection_recurrency.
TYPES: tt_plane_type TYPE STANDARD TABLE OF ty_plane_type WITH KEY id,
tt_connection_recurrency TYPE STANDARD TABLE OF ty_connection_recurrency WITH KEY id.
CONSTANTS: cv_random_offset TYPE i VALUE 25,
cv_random_percent TYPE i VALUE 70.
CLASS-DATA: gt_connections TYPE lcl_connection_data_generator=>tt_connection,
gt_carrier TYPE lcl_carrier_data_generator=>tt_carrier,
gt_plane_types TYPE tt_plane_type,
go_random_int_distance_long TYPE REF TO cl_abap_random_int,
go_random_int_distance_short TYPE REF TO cl_abap_random_int,
gv_plane_distance_long TYPE i,
gv_plane_distance_short TYPE i,
gt_connection_recurrency TYPE lcl_flight_data_generator=>tt_connection_recurrency,
gt_flights TYPE lcl_flight_data_generator=>tt_flights,
go_random_seats TYPE REF TO cl_abap_random_int.
CLASS-METHODS: build_dependent_content,
get_flight_info
IMPORTING
iv_connection_id TYPE /dmo/connection_id13
RETURNING
VALUE(rs_plane_info) TYPE ty_flight_info,
build_plane_types
RETURNING
VALUE(rt_data) TYPE lcl_flight_data_generator=>tt_plane_type,
build_connection_recurrency
RETURNING
VALUE(rt_data) TYPE lcl_flight_data_generator=>tt_connection_recurrency,
calc_next_monday
IMPORTING
iv_date TYPE d
RETURNING
VALUE(rv_date) TYPE d.
ENDCLASS.
CLASS lcl_flight_data_generator IMPLEMENTATION.
METHOD lif_data_generator~create.
IF out IS BOUND. out->write( '--> Delete Content.' ). ENDIF.
DELETE FROM /dmo/flight13. "#EC CI_NOWHERE
IF out IS BOUND. out->write( '--> Build Dependent Content.' ). ENDIF.
build_dependent_content( ).
IF out IS BOUND. out->write( '--> Build Content.' ). ENDIF.
get_data( ).
IF out IS BOUND. out->write( '--> Insert Content.' ). ENDIF.
INSERT /dmo/flight13 FROM TABLE @gt_flights.
IF out IS BOUND. out->write( '--> Done.' ). ENDIF.
ENDMETHOD.
METHOD get_data.
DATA: lt_flights TYPE tt_flights,
ls_flight TYPE lcl_flight_data_generator=>ty_flight_info.
IF gt_flights IS NOT INITIAL.
rt_data = gt_flights.
EXIT.
ENDIF.
LOOP AT gt_connections INTO DATA(ls_connection).
LOOP AT gt_connection_recurrency[ id = ls_connection-connection_id ]-recurrency INTO DATA(lv_flight_date).
ls_flight = get_flight_info( ls_connection-connection_id ).
APPEND VALUE /dmo/flight13(
carrier_id = ls_connection-carrier_id
connection_id = ls_connection-connection_id
flight_date = lv_flight_date
price = ls_flight-price
currency_code = VALUE /dmo/flight13-currency_code(
gt_carrier[ carrier_id = ls_connection-carrier_id ]-currency_code
DEFAULT 'EUR' )
plane_type_id = ls_flight-id
seats_max = ls_flight-seats_max
seats_occupied = ls_flight-seats_occupied
) TO gt_flights.
ENDLOOP.
rt_data = gt_flights.
ENDLOOP.
ENDMETHOD.
METHOD build_dependent_content.
gt_connections = CORRESPONDING #( lcl_connection_data_generator=>get_data( ) ).
gt_carrier = lcl_carrier_data_generator=>get_data( ).
gt_plane_types = build_plane_types( ).
go_random_seats = cl_abap_random_int=>create(
min = cv_random_percent - cv_random_offset
max = cv_random_percent + cv_random_offset
).
gt_connection_recurrency = build_connection_recurrency( ).
ENDMETHOD.
METHOD get_flight_info.
DATA: lv_count TYPE i,
lo_random TYPE REF TO cl_abap_random_int.
DATA(lt_connections) = lcl_connection_data_generator=>get_data( ).
DATA(lv_is_long_distance) = COND abap_bool( WHEN lt_connections[ connection_id = iv_connection_id ]-distance > 3000
THEN abap_true
ELSE abap_false ).
IF lv_is_long_distance = abap_true.
IF gv_plane_distance_long IS INITIAL.
SELECT COUNT(*) FROM @gt_plane_types AS planes WHERE long_distance = @lv_is_long_distance INTO @gv_plane_distance_long.
ENDIF.
lv_count = gv_plane_distance_long.
IF go_random_int_distance_long IS NOT BOUND.
go_random_int_distance_long = cl_abap_random_int=>create( seed = 1337 min = 1 max = gv_plane_distance_long ).
ENDIF.
lo_random = go_random_int_distance_long.
ELSE.
IF gv_plane_distance_short IS INITIAL.
SELECT COUNT(*) FROM @gt_plane_types AS planes WHERE long_distance = @lv_is_long_distance INTO @gv_plane_distance_short.
ENDIF.
lv_count = gv_plane_distance_short.
IF go_random_int_distance_short IS NOT BOUND.
go_random_int_distance_short = cl_abap_random_int=>create( seed = 1337 min = 1 max = gv_plane_distance_short ).
ENDIF.
lo_random = go_random_int_distance_short.
ENDIF.
DATA(ls_plane_type) = gt_plane_types[
long_distance = lv_is_long_distance
index = lo_random->get_next( )
].
DATA(lv_seats_occupied_percent) = go_random_seats->get_next( ).
rs_plane_info = VALUE ty_flight_info(
id = ls_plane_type-id
long_distance = ls_plane_type-long_distance
seats_max = ls_plane_type-seats_max
seats_occupied = ls_plane_type-seats_max * lv_seats_occupied_percent DIV 100
price = /dmo/cl_flight_data_generat_13=>calculate_flight_price(
iv_seats_occupied_percent = lv_seats_occupied_percent
iv_flight_distance = lt_connections[ connection_id = iv_connection_id ]-distance
)
).
ENDMETHOD.
METHOD build_plane_types.
rt_data = VALUE tt_plane_type(
( id = 'A320-200' seats_max = 130 long_distance = ' ' index = 1 )
( id = 'A321-200' seats_max = 150 long_distance = ' ' index = 2 )
( id = '737-800' seats_max = 140 long_distance = ' ' index = 3 )
( id = 'A319-100' seats_max = 120 long_distance = ' ' index = 4 )
( id = '747-400' seats_max = 385 long_distance = 'X' index = 1 )
( id = '767-200' seats_max = 260 long_distance = 'X' index = 2 )
( id = 'A340-600' seats_max = 330 long_distance = 'X' index = 3 )
( id = 'A380-800' seats_max = 475 long_distance = 'X' index = 4 )
).
ENDMETHOD.
METHOD build_connection_recurrency.
CONSTANTS:
cv_days_between_test TYPE i VALUE 300,
cv_days_between_8weeks TYPE i VALUE 56,
cv_days_between_4weeks TYPE i VALUE 28,
cv_days_between_2weeks TYPE i VALUE 14,
cv_days_between_1weeks TYPE i VALUE 7.
DATA:
flight_date_max TYPE d,
flight_date_min TYPE d.
DATA(lv_days_between) = cv_days_between_test.
GET TIME STAMP FIELD DATA(current_timestamp).
DATA(tmp) = CONV string( current_timestamp ).
DATA lv_datum TYPE d.
lv_datum = tmp(8).
" flight_date_max is a Monday 8 months in the future
flight_date_max = calc_next_monday( CONV /dmo/flight_date13( lv_datum + 217 ) ).
" flight_date_min is a Monday 5 months in the past
flight_date_min = calc_next_monday( CONV /dmo/flight_date13( lv_datum - 148 ) ).
LOOP AT lcl_connection_data_generator=>get_data( ) INTO DATA(ls_connection).
APPEND VALUE ty_connection_recurrency(
id = ls_connection-connection_id
recurrency = VALUE ty_connection_recurrency-recurrency(
FOR flightdate = flight_date_max + ls_connection-weekday - 1
THEN flightdate - lv_days_between
UNTIL flightdate < flight_date_min + ls_connection-weekday - 1
( CONV /dmo/flight_date13( flightdate ) )
)
) TO rt_data.
ENDLOOP.
ENDMETHOD.
METHOD calc_next_monday.
* 01.01.1900 was a Saturday.
DATA(lv_weekday) = iv_date MOD 7.
* Therefore 0 is a Saturday, 1 for Sunday, etc.. and will be mapped to 1 for Monday, 2 for Tuesday, etc..
IF lv_weekday > 1.
lv_weekday = lv_weekday - 1.
ELSE.
lv_weekday = lv_weekday + 6.
ENDIF.
rv_date = iv_date - lv_weekday + 8.
ENDMETHOD.
ENDCLASS.
CLASS lcl_customer_data_generator DEFINITION CREATE PRIVATE.
PUBLIC SECTION.
INTERFACES: lif_data_generator.
TYPES: BEGIN OF ty_last_name,
last_name TYPE /dmo/last_name13,
END OF ty_last_name.
TYPES: tt_customer TYPE STANDARD TABLE OF /dmo/customer13 WITH KEY customer_id,
tt_last_name TYPE STANDARD TABLE OF ty_last_name WITH KEY last_name.
CLASS-METHODS: get_data
RETURNING VALUE(rt_data) TYPE tt_customer,
build_last_names
RETURNING
VALUE(rt_data) TYPE tt_last_name.
PROTECTED SECTION.
PRIVATE SECTION.
TYPES:
" Names
BEGIN OF ty_first_name,
first_name TYPE /dmo/first_name13,
gender TYPE c LENGTH 1,
END OF ty_first_name,
BEGIN OF ty_name,
first_name TYPE /dmo/first_name13,
last_name TYPE /dmo/last_name13,
title TYPE /dmo/title13,
END OF ty_name,
" Addresses
BEGIN OF ty_city,
country TYPE land1,
postal_code TYPE /dmo/postal_code13,
city TYPE /dmo/city13,
END OF ty_city,
tt_street_per_country TYPE STANDARD TABLE OF /dmo/street13 WITH EMPTY KEY,
BEGIN OF ty_street,
country TYPE land1,
streets TYPE tt_street_per_country,
END OF ty_street,
BEGIN OF ty_address,
country TYPE land1,
postal_code TYPE /dmo/postal_code13,
city TYPE /dmo/city13,
street TYPE /dmo/street13,
phone_number TYPE /dmo/phone_number13,
email_address TYPE /dmo/email_address13,
END OF ty_address.
TYPES:
" Names
tt_first_name TYPE STANDARD TABLE OF ty_first_name WITH KEY first_name,
tt_name TYPE STANDARD TABLE OF ty_name WITH KEY first_name last_name,
" Addresses
tt_city TYPE STANDARD TABLE OF ty_city WITH KEY country city,
tt_street TYPE STANDARD TABLE OF ty_street WITH KEY country,
tt_address TYPE STANDARD TABLE OF ty_address WITH KEY country city street.
CONSTANTS cv_email_host TYPE string VALUE `flight.example` ##NO_TEXT.
CONSTANTS cv_phone_number_seperator TYPE string VALUE `-` ##NO_TEXT.
CONSTANTS cv_phone_number_min TYPE int8 VALUE 1234567890.
CONSTANTS cv_phone_number_max TYPE int8 VALUE 9999999999.
CLASS-DATA gt_data TYPE lcl_customer_data_generator=>tt_customer.
CLASS-METHODS:
" Names
generate_names
RETURNING
VALUE(rt_data) TYPE tt_name,
build_first_names
RETURNING
VALUE(rt_data) TYPE tt_first_name,
" Adresses
generate_addresses
RETURNING
VALUE(rt_data) TYPE tt_address,
build_city
RETURNING
VALUE(rt_data) TYPE tt_city,
build_street
RETURNING
VALUE(rt_data) TYPE tt_street.
ENDCLASS.
CLASS lcl_customer_data_generator IMPLEMENTATION.
METHOD lif_data_generator~create.
IF out IS BOUND. out->write( '--> Delete Content.' ). ENDIF.
DELETE FROM /dmo/customer13. "#EC CI_NOWHERE
IF out IS BOUND. out->write( '--> Build Content.' ). ENDIF.
DATA(lt_data) = get_data( ).
IF out IS BOUND. out->write( '--> Insert Content.' ). ENDIF.
INSERT /dmo/customer13 FROM TABLE @lt_data.
IF out IS BOUND. out->write( '--> Done.' ). ENDIF.
ENDMETHOD.
METHOD build_first_names.
rt_data = VALUE tt_first_name(
( first_name = 'Simon' gender = 'M')
( first_name = 'Harish' gender = 'M')
( first_name = 'Volker' gender = 'M')
( first_name = 'Jasmin' gender = 'F')
( first_name = 'Felix' gender = 'M')
( first_name = 'Kristina' gender = 'F')
( first_name = 'Thilo' gender = 'M')
( first_name = 'Andrej' gender = 'M')
( first_name = 'Anna' gender = 'F')
( first_name = 'Johannes' gender = 'M')
( first_name = 'Johann' gender = 'M')
( first_name = 'Christoph' gender = 'M')
( first_name = 'Andreas' gender = 'M')
( first_name = 'Stephen' gender = 'M')
( first_name = 'Mathilde' gender = 'F')
( first_name = 'August' gender = 'M')
( first_name = 'Illya' gender = 'M')
( first_name = 'Georg' gender = 'M')
( first_name = 'Gisela' gender = 'F')
( first_name = 'Christa' gender = 'F')
( first_name = 'Holm' gender = 'M')
( first_name = 'Irmtraut' gender = 'F')
( first_name = 'Ludwig' gender = 'M')
( first_name = 'Laura' gender = 'F')
( first_name = 'Kurt' gender = 'M')
( first_name = 'Guenther' gender = 'M')
( first_name = 'Horst' gender = 'M')
( first_name = 'Matthias' gender = 'M')
( first_name = 'Amelie' gender = 'F')
( first_name = 'Walter' gender = 'M')
( first_name = 'Sophie' gender = 'F')
( first_name = 'Claire' gender = 'F')
( first_name = 'Chantal' gender = 'F')
( first_name = 'Jean' gender = 'M')
( first_name = 'Cindy' gender = 'F')
( first_name = 'Pierre' gender = 'M')
( first_name = 'Irene' gender = 'F')
( first_name = 'Adam' gender = 'M')
( first_name = 'Fabio' gender = 'M')
( first_name = 'Lothar' gender = 'M')
( first_name = 'Annemarie' gender = 'F')
( first_name = 'Ida' gender = 'F')
( first_name = 'Roland' gender = 'M')
( first_name = 'Achim' gender = 'M')
( first_name = 'Allen' gender = 'M')
( first_name = 'Lee' gender = 'M')
( first_name = 'Guillermo' gender = 'M')
( first_name = 'Florian' gender = 'M')
( first_name = 'Ulla' gender = 'F')
( first_name = 'Juan' gender = 'M')
( first_name = 'Marta' gender = 'F')
( first_name = 'Salvador' gender = 'M')
( first_name = 'Christine' gender = 'F')
( first_name = 'Dominik' gender = 'M')
( first_name = 'Astrid' gender = 'F')
( first_name = 'Ruth' gender = 'F')
( first_name = 'Theresia' gender = 'F')
( first_name = 'Thomas' gender = 'M')
( first_name = 'Friedrich' gender = 'M')
( first_name = 'Anneliese' gender = 'F')
( first_name = 'Peter' gender = 'M')
( first_name = 'Anne-Marie' gender = 'F')
( first_name = 'James' gender = 'M')
( first_name = 'Jean-Luc' gender = 'M')
( first_name = 'Benjamin' gender = 'M')
( first_name = 'Hendrik' gender = 'M')
( first_name = 'Uli' gender = 'F')
( first_name = 'Siegfried' gender = 'M')
( first_name = 'Max' gender = 'M')
).
ENDMETHOD.
METHOD build_last_names.
rt_data = VALUE tt_last_name(
( last_name = 'Buchholm')
( last_name = 'Vrsic')
( last_name = 'Jeremias')
( last_name = 'Gutenberg')
( last_name = 'Fischmann')
( last_name = 'Columbo')
( last_name = 'Neubasler')
( last_name = 'Martin')
( last_name = 'Detemple')
( last_name = 'Barth')
( last_name = 'Benz')
( last_name = 'Hansmann')
( last_name = 'Koslowski')
( last_name = 'Wohl')
( last_name = 'Koller')
( last_name = 'Hoffen')
( last_name = 'Dumbach')
( last_name = 'Goelke')
( last_name = 'Waldmann')
( last_name = 'Mechler')
( last_name = 'Buehler')
( last_name = 'Heller')
( last_name = 'Simonen')
( last_name = 'Henry')
( last_name = 'Marshall')
( last_name = 'Legrand')
( last_name = 'Jacqmain')
( last_name = 'D´Oultrement')
( last_name = 'Hunter')
( last_name = 'Delon')
( last_name = 'Kreiss')
( last_name = 'Trensch')
( last_name = 'Cesari')
( last_name = 'Matthaeus')
( last_name = 'Babilon')
( last_name = 'Zimmermann')
( last_name = 'Kramer')
( last_name = 'Illner')
( last_name = 'Pratt')
( last_name = 'Gahl')
( last_name = 'Benjamin')
( last_name = 'Miguel')
( last_name = 'Weiss')
( last_name = 'Sessler')
( last_name = 'Montero')
( last_name = 'Domenech')
( last_name = 'Moyano')
( last_name = 'Sommer')
( last_name = 'Schneider')
( last_name = 'Eichbaum')
( last_name = 'Gueldenpfennig')
( last_name = 'Sudhoff')
( last_name = 'Lautenbach')
( last_name = 'Ryan')
( last_name = 'Prinz')
( last_name = 'Deichgraeber')
( last_name = 'Pan')
( last_name = 'Lindwurm')
( last_name = 'Kirk')
( last_name = 'Picard')
( last_name = 'Sisko')
( last_name = 'Madeira')
( last_name = 'Meier')
( last_name = 'Rahn')
( last_name = 'Leisert')
( last_name = 'Müller')
( last_name = 'Mustermann')
( last_name = 'Becker')
( last_name = 'Fischer')
).
ENDMETHOD.
METHOD get_data.
IF gt_data IS NOT INITIAL.
rt_data = gt_data.
EXIT.
ENDIF.
DATA(lt_names) = generate_names( ).
DATA(lt_addresses) = generate_addresses( ).
DATA(lo_random_phone_number) = cl_abap_random_int8=>create( min = cv_phone_number_min
max = cv_phone_number_max ).
DATA(lo_random_city) = cl_abap_random_int=>create( min = 1 max = lines( lt_addresses ) ).
DATA(lo_random_street_number) = cl_abap_random_int=>create( min = 1 max = 100 ).
gt_data = VALUE tt_customer(
FOR i = 1 THEN i + 1 WHILE i <= lines( lt_names ) LET j = lo_random_city->get_next( ) IN
(
customer_id = i
first_name = lt_names[ i ]-first_name
last_name = lt_names[ i ]-last_name
title = lt_names[ i ]-title
street = lt_addresses[ j ]-street && ` ` && lo_random_street_number->get_next( )
postal_code = lt_addresses[ j ]-postal_code
city = lt_addresses[ j ]-city
country_code = lt_addresses[ j ]-country
phone_number = '+' && COND string(
WHEN lt_addresses[ j ]-country = 'AT' THEN '43'
WHEN lt_addresses[ j ]-country = 'BE' THEN '32'
WHEN lt_addresses[ j ]-country = 'CH' THEN '41'
WHEN lt_addresses[ j ]-country = 'DE' THEN '49'
WHEN lt_addresses[ j ]-country = 'ES' THEN '34'
WHEN lt_addresses[ j ]-country = 'FR' THEN '33'
WHEN lt_addresses[ j ]-country = 'IT' THEN '39'
WHEN lt_addresses[ j ]-country = 'SI' THEN '386'
WHEN lt_addresses[ j ]-country = 'US' THEN '1'
ELSE '89'
)
&& cv_phone_number_seperator
&& |{ replace( val = lo_random_phone_number->get_next( ) off = 3 len = 1 with = cv_phone_number_seperator ) }|
email_address = to_lower( lt_names[ i ]-first_name && `.` && lt_names[ i ]-last_name && `@` && cv_email_host && `.` && lt_addresses[ j ]-country )
)
).
rt_data = gt_data.
ENDMETHOD.
METHOD generate_names.
DATA: lo_random_counter TYPE REF TO cl_abap_random_int,
lo_random_first_name TYPE REF TO cl_abap_random_int,
lo_random_title TYPE REF TO cl_abap_random_int,
ls_first_name TYPE lcl_customer_data_generator=>ty_first_name.
DATA(lt_first_names) = build_first_names( ).
lo_random_counter = cl_abap_random_int=>create( min = 5 max = 15 ).
lo_random_first_name = cl_abap_random_int=>create( min = 1 max = lines( lt_first_names ) ).
LOOP AT build_last_names( ) INTO DATA(ls_last_name).
DO lo_random_counter->get_next( ) TIMES.
ls_first_name = lt_first_names[ lo_random_first_name->get_next( ) ].
APPEND VALUE ty_name(
first_name = ls_first_name-first_name
last_name = ls_last_name-last_name
title = COND /dmo/title13( WHEN ls_first_name-gender = 'M' THEN 'Mr.'
WHEN ls_first_name-gender = 'F' THEN 'Mrs.'
ELSE 'Martian' )
) TO rt_data.
ENDDO.
ENDLOOP.
ENDMETHOD.
METHOD build_city.
rt_data = VALUE tt_city(
( country = 'DE' postal_code = '23496' city = 'Dielheim')
( country = 'SI' postal_code = '1000' city = 'Ljubljana')
( country = 'DE' postal_code = '86343' city = 'Koenigsbrunn')
( country = 'DE' postal_code = '55128' city = 'Mainz')
( country = 'DE' postal_code = '11111' city = 'Berlin')
( country = 'US' postal_code = '17844' city = 'Washington')
( country = 'AT' postal_code = '4020' city = 'Linz')
( country = 'DE' postal_code = '68723' city = 'Schwetzingen')
( country = 'DE' postal_code = '68789' city = 'St. Leon-Rot')
( country = 'DE' postal_code = '66464' city = 'Homburg')
( country = 'DE' postal_code = '69231' city = 'Rauenberg')
( country = 'DE' postal_code = '69190' city = 'Walldorf')
( country = 'DE' postal_code = '58332' city = 'Schwelm')
( country = 'DE' postal_code = '64342' city = 'Seeheim-Jugenheim')
( country = 'DE' postal_code = '69121' city = 'Heidelberg')
( country = 'DE' postal_code = '63150' city = 'Heusenstamm')
( country = 'DE' postal_code = '64283' city = 'Darmstadt')
( country = 'DE' postal_code = '69207' city = 'Kurt')
( country = 'DE' postal_code = '79104' city = 'Freiburg')
( country = 'DE' postal_code = '79312' city = 'Emmendingen')
( country = 'DE' postal_code = '68753' city = 'Amelie')
( country = 'DE' postal_code = '68163' city = 'Mannheim')
( country = 'DE' postal_code = '67105' city = 'Schifferstadt')
( country = 'DE' postal_code = '68163' city = 'Mannheim-Lindenhof')
( country = 'FR' postal_code = '78140' city = 'Vélizy')
( country = 'CH' postal_code = '1211' city = 'Genève')
( country = 'BE' postal_code = 'B - 1030' city = 'Bruxelles')
( country = 'US' postal_code = '76018' city = 'Arlington')
( country = 'FR' postal_code = '06130' city = 'Grasse')
( country = 'DE' postal_code = '27299' city = 'Langwedel')
( country = 'DE' postal_code = '69483' city = 'Wald-Michelbach')
( country = 'IT' postal_code = '00195' city = 'Roma')
( country = 'DE' postal_code = '81375' city = 'Muenchen')
( country = 'DE' postal_code = '67663' city = 'Kaiserslautern')
( country = 'DE' postal_code = '66386' city = 'St. Ingbert')
( country = 'DE' postal_code = '79761' city = 'Waldshut')
( country = 'DE' postal_code = '76137' city = 'Karlsruhe')
( country = 'US' postal_code = '07666' city = 'Teaneck')
( country = 'US' postal_code = '17758' city = 'N. Massapequa')
( country = 'US' postal_code = '09765' city = 'Boulder')
( country = 'ES' postal_code = '28020' city = 'Madrid')
( country = 'DE' postal_code = '69180' city = 'Wiesloch')
( country = 'ES' postal_code = '08014' city = 'Barcelona')
( country = 'ES' postal_code = '41006' city = 'Sevilla')
( country = 'DE' postal_code = '75305' city = 'Neuenburg')
( country = 'DE' postal_code = '41466' city = 'Neuss')
( country = 'DE' postal_code = '71116' city = 'Gaertringen')
( country = 'US' postal_code = '60657' city = 'Chicago')
( country = 'DE' postal_code = '63263' city = 'Neu-Isenburg')
( country = 'DE' postal_code = '23056' city = 'Buxtehude')
( country = 'DE' postal_code = '16233' city = 'Potsdam')
( country = 'DE' postal_code = '90419' city = 'Nuernberg')
( country = 'US' postal_code = '22334' city = 'San Francisco')
( country = 'FR' postal_code = '75839' city = 'Paris')
( country = 'US' postal_code = '63728' city = 'New Orleans')
( country = 'DE' postal_code = '75757' city = 'Elsenz')
( country = 'DE' postal_code = '70111' city = 'Reutlingen')
( country = 'DE' postal_code = '15344' city = 'Strausberg')
).
ENDMETHOD.
METHOD generate_addresses.
TYPES: BEGIN OF ty_random_street,
country TYPE land1,
random TYPE REF TO cl_abap_random_int,
END OF ty_random_street,
tt_random_street TYPE STANDARD TABLE OF ty_random_street WITH KEY country.
DATA: lo_random_counter TYPE REF TO cl_abap_random_int,
lo_random_city TYPE REF TO cl_abap_random_int,
lt_random_street TYPE tt_random_street,
lo_phone_number TYPE REF TO cl_abap_random_int.
DATA(lt_street) = build_street( ).
lo_random_counter = cl_abap_random_int=>create( min = 5 max = 15 ).
lo_phone_number = cl_abap_random_int=>create( min = 1 max = 100 ).
LOOP AT lt_street INTO DATA(ls_street).
APPEND VALUE ty_random_street(
country = ls_street-country
random = cl_abap_random_int=>create( min = 1 max = lines( ls_street-streets ) )
) TO lt_random_street.
ENDLOOP.
LOOP AT build_city( ) INTO DATA(ls_city).
DO lo_random_counter->get_next( ) TIMES.
APPEND VALUE ty_address(
country = ls_city-country
postal_code = ls_city-postal_code
city = ls_city-city
street = |{ lt_street[
country = ls_city-country
]-streets[
lt_random_street[ country = ls_city-country ]-random->get_next( )
] }|
) TO rt_data.
ENDDO.
ENDLOOP.
ENDMETHOD.
METHOD build_street.
rt_data = VALUE tt_street(
( country = 'AT' streets = VALUE tt_street_per_country( ( 'Hasnerstrasse' ) ) )
( country = 'BE' streets = VALUE tt_street_per_country( ( 'rue Voltaire' ) ) )
( country = 'CH' streets = VALUE tt_street_per_country( ( 'rue de Moillebeau' ) ) )
( country = 'DE' streets = VALUE tt_street_per_country( ( 'Akazienweg' )
( 'Albert-Schweitzer-Str.' )
( 'Alte Reichsstr.' )
( 'Am Deich' )
( 'Arionweg' )
( 'Arndtstrasse' )
( 'Auf dem Huegel' )
( 'Ausfallstr.' )
( 'Ausserhalb' )
( 'Carl-Metz Strasse' )
( 'Caspar-David-Friedrich-Str.' )
( 'Dudweilerstr.' )
( 'Elzstrasse' )
( 'Emil-Heckel-Str.' )
( 'Erlengrund' )
( 'Franz-Marc-Str.' )
( 'Friedensallee' )
( 'Froschstr.' )
( 'Gartenstr.' )
( 'Gemeindestr.' )
( 'Goeckinghofstr.' )
( 'Gruenlingweg' )
( 'Hauptstr.' )
( 'Heidelberger Str.' )
( 'Im Warmet' )
( 'Jacobistrasse' )
( 'Karl-Marx-Allee' )
( 'Karl-Schwaner-Str.' )
( 'Leichhof' )
( 'Lerchenstr.' )
( 'Marktplatz' )
( 'Max-Planck-Str.' )
( 'Meerfeldstr.' )
( 'Melissenstr.' )
( 'Muehltalstr.' )
( 'Mutterstadter Str.' )
( 'N7,' )
( 'Rankestr.' )
( 'Raupelsweg' )
( 'Schillerstr.' )
( 'Stauboernchenstrasse' )
( 'Stiftsbogen' )
( 'Waldmann' )
( 'Wilhelminentr.' )
( 'Zwischergasse' ) ) )
( country = 'ES' streets = VALUE tt_street_per_country( ( 'Camelias' )
( 'Fuenlabrada' )
( 'Piedad' )
( 'Pza. Pablo Ruiz Picasso' ) ) )
( country = 'FR' streets = VALUE tt_street_per_country( ( 'Rue Balzac' )
( 'route de Pégomas' )
( 'rue Nieuport' ) ) )
( country = 'IT' streets = VALUE tt_street_per_country( ( 'Via Giulio Cesare' ) ) )
( country = 'SI' streets = VALUE tt_street_per_country( ( 'Poklukarjeva' ) ) )
( country = 'US' streets = VALUE tt_street_per_country( ( '17th St.' )
( 'Federal Avenue' )
( 'Golden Gate Drive' )
( 'Lake Shore Drive' )
( 'Oak Street' )
( 'Sagamore St.' )
( 'Voodoo Avenue' )
( 'Windstone Drive' ) ) )
).
ENDMETHOD.
ENDCLASS.
CLASS lcl_supplement_data_generator DEFINITION CREATE PRIVATE.
PUBLIC SECTION.
INTERFACES: lif_data_generator.
TYPES: tt_supplement TYPE STANDARD TABLE OF /dmo/suppleme_13 WITH KEY supplement_id,
tt_supplement_text TYPE STANDARD TABLE OF /dmo/suppl_te_13 WITH KEY supplement_id.
" Merged types
TYPES BEGIN OF ty_supplement_complete.
INCLUDE TYPE /dmo/suppleme_13.
TYPES language_code TYPE spras.
TYPES description TYPE /dmo/description13.
TYPES END OF ty_supplement_complete.
TYPES tt_supplement_complete TYPE STANDARD TABLE OF ty_supplement_complete WITH KEY supplement_id.
CLASS-METHODS: get_data
RETURNING VALUE(rt_data) TYPE tt_supplement_complete.
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS lcl_supplement_data_generator IMPLEMENTATION.
METHOD lif_data_generator~create.
IF out IS BOUND. out->write( '--> Delete Content.' ). ENDIF.
DELETE FROM /dmo/suppleme_13. "#EC CI_NOWHERE
DELETE FROM /dmo/suppl_te_13. "#EC CI_NOWHERE
IF out IS BOUND. out->write( '--> Build Content.' ). ENDIF.
DATA(lt_data) = get_data( ).
IF out IS BOUND. out->write( '--> Insert Content.' ). ENDIF.
INSERT /dmo/suppleme_13 FROM TABLE @( CORRESPONDING tt_supplement( lt_data ) ).
INSERT /dmo/suppl_te_13 FROM TABLE @( CORRESPONDING tt_supplement_text( lt_data ) ).
IF out IS BOUND. out->write( '--> Done.' ). ENDIF.
ENDMETHOD.
METHOD get_data.
" BV = beverage
" ML = meal
" LU = luggage
" EX = extra
rt_data = VALUE tt_supplement_complete(
( supplement_id = 'BV-0001' price = '2.30' currency_code = 'EUR' language_code = 'E' description = 'Hot Chocolate' )
( supplement_id = 'BV-0002' price = '7.50' currency_code = 'EUR' language_code = 'E' description = 'Alcohol free Champagne' )
( supplement_id = 'BV-0003' price = '3.50' currency_code = 'EUR' language_code = 'E' description = 'Cola' )
( supplement_id = 'BV-0004' price = '3.50' currency_code = 'EUR' language_code = 'E' description = 'Orange Limonade' )
( supplement_id = 'BV-0005' price = '3.50' currency_code = 'EUR' language_code = 'E' description = 'Apple Juice' )
( supplement_id = 'BV-0006' price = '3.50' currency_code = 'EUR' language_code = 'E' description = 'Pear Juice' )
( supplement_id = 'BV-0007' price = '3.50' currency_code = 'EUR' language_code = 'E' description = 'Mango Juice' )
( supplement_id = 'BV-0008' price = '3.50' currency_code = 'EUR' language_code = 'E' description = 'Lemon Limonade' )
( supplement_id = 'BV-0009' price = '4.50' currency_code = 'EUR' language_code = 'E' description = 'Tomato Juice' )
( supplement_id = 'ML-0001' price = '3.00' currency_code = 'EUR' language_code = 'E' description = 'Black Forest Cake' )
( supplement_id = 'ML-0002' price = '2.00' currency_code = 'EUR' language_code = 'E' description = 'Chocolate Cake' )
( supplement_id = 'ML-0003' price = '1.50' currency_code = 'EUR' language_code = 'E' description = 'Apple Pie' )
( supplement_id = 'ML-0004' price = '1.50' currency_code = 'EUR' language_code = 'E' description = 'Pear Pie' )
( supplement_id = 'ML-0005' price = '8.00' currency_code = 'EUR' language_code = 'E' description = 'Nice Salad')
( supplement_id = 'ML-0006' price = '9.00' currency_code = 'EUR' language_code = 'E' description = 'Paris Salad')
( supplement_id = 'ML-0007' price = '12.00' currency_code = 'EUR' language_code = 'E' description = 'Hamburg Salad with Eggs' )
( supplement_id = 'ML-0008' price = '25.00' currency_code = 'EUR' language_code = 'E' description = 'Quail with French Salad and Black Forest Cake')
( supplement_id = 'ML-0009' price = '13.00' currency_code = 'EUR' language_code = 'E' description = 'Duck on Lettuce' )
( supplement_id = 'ML-0010' price = '5.00' currency_code = 'EUR' language_code = 'E' description = 'Carpaccio')
( supplement_id = 'ML-0011' price = '7.00' currency_code = 'EUR' language_code = 'E' description = 'Seasonal Salad')
( supplement_id = 'ML-0012' price = '16.00' currency_code = 'EUR' language_code = 'E' description = 'Hamburg Salad with Fresh Shrimps')
( supplement_id = 'ML-0013' price = '17.00' currency_code = 'EUR' language_code = 'E' description = 'Quail')
( supplement_id = 'ML-0014' price = '14.00' currency_code = 'EUR' language_code = 'E' description = 'Wiener Schnitzel')
( supplement_id = 'ML-0015' price = '13.00' currency_code = 'EUR' language_code = 'E' description = 'Pork Schnitzel')
( supplement_id = 'ML-0016' price = '14.00' currency_code = 'EUR' language_code = 'E' description = 'Schnitzel with Pepper Sauce')
( supplement_id = 'ML-0017' price = '11.00' currency_code = 'EUR' language_code = 'E' description = 'Chicken and French Fries')
( supplement_id = 'ML-0018' price = '12.00' currency_code = 'EUR' language_code = 'E' description = 'Turkey Steak')
( supplement_id = 'ML-0019' price = '15.00' currency_code = 'EUR' language_code = 'E' description = 'Bavarian Duck')
( supplement_id = 'ML-0020' price = '14.00' currency_code = 'EUR' language_code = 'E' description = 'Knuckle of Pork')
( supplement_id = 'ML-0021' price = '22.00' currency_code = 'EUR' language_code = 'E' description = 'Fillet of Beef')
( supplement_id = 'ML-0022' price = '21.00' currency_code = 'EUR' language_code = 'E' description = 'Trout Au Bleu')
( supplement_id = 'ML-0023' price = '20.00' currency_code = 'EUR' language_code = 'E' description = 'Trout Meuniere')
( supplement_id = 'ML-0024' price = '17.00' currency_code = 'EUR' language_code = 'E' description = 'Monkfish')
( supplement_id = 'ML-0025' price = '12.00' currency_code = 'EUR' language_code = 'E' description = 'Sole')
( supplement_id = 'ML-0026' price = '6.00' currency_code = 'EUR' language_code = 'E' description = 'Mini Fried Sole')
( supplement_id = 'ML-0027' price = '14.00' currency_code = 'EUR' language_code = 'E' description = 'Salmon in a Bearnaise Sauce')
( supplement_id = 'ML-0028' price = '15.00' currency_code = 'EUR' language_code = 'E' description = 'Salmon Lasagne')
( supplement_id = 'ML-0029' price = '3.00' currency_code = 'EUR' language_code = 'E' description = 'Chocolate Ice Cream')
( supplement_id = 'ML-0030' price = '2.50' currency_code = 'EUR' language_code = 'E' description = 'Vanilla Ice Cream')
( supplement_id = 'ML-0031' price = '4.50' currency_code = 'EUR' language_code = 'E' description = 'Vanilla Ice Cream with Hot Cherries')
( supplement_id = 'ML-0032' price = '4.50' currency_code = 'EUR' language_code = 'E' description = 'Vanilla Ice Cream with Hot Raspberries')
( supplement_id = 'ML-0033' price = '4.00' currency_code = 'EUR' language_code = 'E' description = 'Apple Strudel')
( supplement_id = 'ML-0034' price = '4.00' currency_code = 'EUR' language_code = 'E' description = 'Raspberry Sorbet')
( supplement_id = 'ML-0035' price = '4.00' currency_code = 'EUR' language_code = 'E' description = 'Strawberry Sorbet')
( supplement_id = 'LU-0001' price = '40.00' currency_code = 'EUR' language_code = 'E' description = 'Extra baggage 5 kgs')
( supplement_id = 'LU-0002' price = '15.00' currency_code = 'EUR' language_code = 'E' description = 'Luggage transfer from airport to hotel')
( supplement_id = 'LU-0003' price = '75.00' currency_code = 'EUR' language_code = 'E' description = 'Luggage pickup from home and return ' )
( supplement_id = 'LU-0004' price = '80.00' currency_code = 'EUR' language_code = 'E' description = 'Bulky goods like sports equipment' )
) .
ENDMETHOD.
ENDCLASS.
CLASS lcl_travel_data_generator DEFINITION DEFERRED.
CLASS /dmo/cl_flight_data_generat_13 DEFINITION LOCAL FRIENDS lcl_travel_data_generator.
CLASS lcl_travel_data_generator DEFINITION CREATE PRIVATE.
PUBLIC SECTION.
INTERFACES: lif_data_generator.
TYPES: tt_travel TYPE STANDARD TABLE OF /dmo/travel13 WITH KEY travel_id,
tt_bookings TYPE STANDARD TABLE OF /dmo/booking13 WITH KEY travel_id booking_id,
tt_booking_supplements TYPE STANDARD TABLE OF /dmo/book_sup_13 WITH KEY travel_id booking_id booking_supplement_id.
" Build nested tables
TYPES BEGIN OF ty_booking_complete.
INCLUDE TYPE /dmo/booking13.
TYPES booking_supplements TYPE tt_booking_supplements.
TYPES END OF ty_booking_complete.
TYPES tt_booking_complete TYPE STANDARD TABLE OF ty_booking_complete WITH KEY travel_id booking_id.
TYPES BEGIN OF ty_travel_complete.
INCLUDE TYPE /dmo/travel13.
TYPES bookings TYPE tt_booking_complete.
TYPES END OF ty_travel_complete.
"! <em>Travel</em> structure <br/>
"! <em>Bookings</em> table <br/>
"! --> <em>Booking</em> structure <br/>
"! --> <em>Booking Supplement</em> table <br/>
"! -----> <em>Booking Supplement</em> structure
TYPES tt_travel_complete TYPE STANDARD TABLE OF ty_travel_complete WITH KEY travel_id.
PROTECTED SECTION.
PRIVATE SECTION.
TYPES: BEGIN OF ty_countryname,
country TYPE i_countrytext-country,
countryname TYPE i_countrytext-countryname,
END OF ty_countryname.
CONSTANTS: cv_travel_group_amount_max TYPE i VALUE 3,
cv_trip_length_center TYPE i VALUE 3,
cv_trip_length_offset TYPE i VALUE 2,
cv_booking_date_min TYPE i VALUE 0,
cv_booking_date_max TYPE i VALUE 20,
cv_travel_create_dat_befor_min TYPE i VALUE 0,
cv_travel_create_dat_befor_max TYPE i VALUE 40,
cv_travel_change_date_min TYPE i VALUE 0,
cv_travel_change_date_max TYPE i VALUE 10,
cv_booking_supplement_amount TYPE i VALUE 5,
cv_booking_days_before TYPE i VALUE 15.
CLASS-DATA:
go_random_seats TYPE REF TO cl_abap_random_int,
gt_flights_seats_decrease TYPE lcl_flight_data_generator=>tt_flights,
go_ran_travel_group_amount TYPE REF TO cl_abap_random_int,
go_ran_trip_length TYPE REF TO cl_abap_random_int,
go_ran_customer TYPE REF TO cl_abap_random_int,
gt_agency TYPE lcl_agency_data_generator=>tt_agency,
gt_customer TYPE lcl_customer_data_generator=>tt_customer,
gt_flights_final TYPE lcl_flight_data_generator=>tt_flights,
go_ran_booking_date TYPE REF TO cl_abap_random_int,
go_ran_agency TYPE REF TO cl_abap_random_int,
gt_connections TYPE lcl_connection_data_generator=>tt_connection_additional_info,
go_ran_booking_supplement_id TYPE REF TO cl_abap_random_int,
go_ran_booking_supplement_amnt TYPE REF TO cl_abap_random_int,
gt_supplements TYPE lcl_supplement_data_generator=>tt_supplement_complete,
go_ran_travel_description TYPE REF TO cl_abap_random_int,
go_ran_travel_create_dat_befor TYPE REF TO cl_abap_random_int,
go_ran_travel_change_date TYPE REF TO cl_abap_random_int,
go_ran_hour TYPE REF TO cl_abap_random_int,
go_ran_min_sec TYPE REF TO cl_abap_random_int,
gt_airports TYPE lcl_airport_data_generator=>tt_airport,
gt_countryname TYPE STANDARD TABLE OF ty_countryname WITH KEY country,
go_ran_status_description TYPE REF TO cl_abap_random_int,
gt_last_names TYPE lcl_customer_data_generator=>tt_last_name,
go_ran_last_name TYPE REF TO cl_abap_random_int,
go_ran_customer_travel TYPE REF TO cl_abap_random_int,
mv_datum TYPE d.
CLASS-METHODS:
get_data
RETURNING
VALUE(rt_data) TYPE tt_travel_complete,
build_booking
IMPORTING
iv_travel_id TYPE /dmo/booking13-travel_id
RETURNING
VALUE(rt_bookings) TYPE tt_booking_complete,
build_dependend_content,
find_next_fitting_flight
IMPORTING
iv_seats_required TYPE i
is_flight_previous TYPE /dmo/flight13 OPTIONAL
RETURNING
VALUE(rs_flight) TYPE /dmo/flight13,
generate_booking_supplements
IMPORTING
iv_travel_id TYPE /dmo/booking13-travel_id
iv_booking_id TYPE /dmo/booking13-booking_id
RETURNING
VALUE(rt_data) TYPE tt_booking_supplements,
generate_description
IMPORTING
it_bookings TYPE lcl_travel_data_generator=>tt_booking_complete
RETURNING
VALUE(rv_description) TYPE /dmo/travel13-description,
generate_random_time
RETURNING
VALUE(r_result) TYPE i,
calculate_booking_fee
IMPORTING
it_bookings TYPE lcl_travel_data_generator=>tt_booking_complete
RETURNING
VALUE(rv_booking_fee) TYPE /dmo/travel13-booking_fee,
generate_travel_customer_id
IMPORTING
it_bookings TYPE lcl_travel_data_generator=>tt_booking_complete
RETURNING
VALUE(rv_customer_id) TYPE /dmo/travel13-customer_id,
set_today,
calc_days_before_book_or_today
IMPORTING
iv_booking_date TYPE lcl_travel_data_generator=>ty_booking_complete-booking_date
RETURNING
VALUE(rv_travel_create_date_dats) TYPE d
RAISING
cx_parameter_invalid_range
cx_parameter_invalid_type .
ENDCLASS.
CLASS lcl_travel_data_generator IMPLEMENTATION.
METHOD lif_data_generator~create.
DATA: lt_travels TYPE tt_travel,
lt_bookings TYPE tt_bookings,
lt_booking_supplements TYPE tt_booking_supplements.
IF out IS BOUND. out->write( '--> Delete Travel Content.' ). ENDIF.
DELETE FROM /dmo/travel13. "#EC CI_NOWHERE
IF out IS BOUND. out->write( '--> Delete Booking Content.' ). ENDIF.
DELETE FROM /dmo/booking13. "#EC CI_NOWHERE
IF out IS BOUND. out->write( '--> Delete Booking Supplement Content.' ). ENDIF.
DELETE FROM /dmo/book_sup_13. "#EC CI_NOWHERE
IF out IS BOUND. out->write( '--> Build Content.' ). ENDIF.
DATA(lt_data) = get_data( ).
IF out IS BOUND. out->write( '--> Convert Content to Table Format' ). ENDIF.
LOOP AT lt_data INTO DATA(ls_travel).
APPEND CORRESPONDING /dmo/travel13( ls_travel ) TO lt_travels.
LOOP AT ls_travel-bookings INTO DATA(ls_booking).
APPEND CORRESPONDING /dmo/booking13( ls_booking ) TO lt_bookings.
APPEND LINES OF ls_booking-booking_supplements TO lt_booking_supplements.
ENDLOOP.
ENDLOOP.
IF out IS BOUND. out->write( '--> Insert Travel Content' ). ENDIF.
INSERT /dmo/travel13 FROM TABLE @lt_travels.
IF out IS BOUND. out->write( '--> Insert Booking Content' ). ENDIF.
INSERT /dmo/booking13 FROM TABLE @lt_bookings.
IF out IS BOUND. out->write( '--> Insert Booking Supplement Content' ). ENDIF.
INSERT /dmo/book_sup_13 FROM TABLE @lt_booking_supplements.
IF out IS BOUND. out->write( '--> Done.' ). ENDIF.
ENDMETHOD.
METHOD get_data.
DATA: lv_travel_id TYPE /dmo/booking13-travel_id.
build_dependend_content( ).
set_today( ).
lv_travel_id = 1.
DATA(lt_bookings) = build_booking( lv_travel_id ).
WHILE lt_bookings IS NOT INITIAL.
DATA(lv_travel_create_date_dats) = calc_days_before_book_or_today( lt_bookings[ 1 ]-booking_date ).
DATA(lv_booking_fee) = calculate_booking_fee( lt_bookings ).
DATA(lastchanged_date) = lv_travel_create_date_dats.
lastchanged_date = lastchanged_date + go_ran_travel_change_date->get_next( ).
DATA(lastchangedat_stamp) = CONV timestampl( ( CONV string( lastchanged_date ) * 1000000 ) ).
lastchangedat_stamp = lastchangedat_stamp + generate_random_time( ).
APPEND VALUE ty_travel_complete(
travel_id = lv_travel_id
agency_id = gt_agency[ go_ran_agency->get_next( ) ]-agency_id
customer_id = generate_travel_customer_id( lt_bookings )
begin_date = lt_bookings[ 1 ]-flight_date
end_date = lt_bookings[ lines( lt_bookings ) ]-flight_date
booking_fee = lv_booking_fee
total_price = lv_booking_fee + REDUCE /dmo/travel13-total_price( INIT sum = 0
FOR booking IN lt_bookings
NEXT
sum = sum
+ booking-flight_price
+ REDUCE /dmo/flight_price13( INIT sum_supplement = 0
FOR booking_supplement IN booking-booking_supplements
NEXT sum_supplement = sum_supplement + booking_supplement-price )
)
currency_code = lt_bookings[ 1 ]-currency_code
description = generate_description( lt_bookings )
status = SWITCH /dmo/travel13-status( go_ran_status_description->get_next( )
WHEN 1 OR 2 THEN /dmo/if_flight_legacy13=>travel_status-new
WHEN 3 THEN /dmo/if_flight_legacy13=>travel_status-booked
WHEN 4 THEN /dmo/if_flight_legacy13=>travel_status-planned )
createdby = gt_last_names[ go_ran_last_name->get_next( ) ]-last_name
createdat = CONV timestampl( CONV string( lv_travel_create_date_dats ) * 1000000 + generate_random_time( ) )
lastchangedby = gt_last_names[ go_ran_last_name->get_next( ) ]-last_name
lastchangedat = lastchangedat_stamp
bookings = lt_bookings
) TO rt_data.
lv_travel_id = lv_travel_id + 1.
lt_bookings = build_booking( lv_travel_id ).
ENDWHILE.
ENDMETHOD.
METHOD calc_days_before_book_or_today.
cl_abap_tstmp=>td_add(
EXPORTING
date = COND d( WHEN mv_datum > iv_booking_date
THEN iv_booking_date
ELSE mv_datum )
time = CONV t( 0 )
secs = -86400 * cv_booking_days_before
IMPORTING
res_date = rv_travel_create_date_dats ).
ENDMETHOD.
METHOD set_today.
GET TIME STAMP FIELD DATA(current_timestamp).
DATA(tmp) = CONV string( current_timestamp ).
mv_datum = tmp(8).
mv_datum = mv_datum - 1.
ENDMETHOD.
METHOD generate_random_time.
r_result = go_ran_hour->get_next( ) * 10000 + go_ran_min_sec->get_next( ) * 100 + go_ran_min_sec->get_next( ).
ENDMETHOD.
METHOD build_dependend_content.
go_ran_hour = cl_abap_random_int=>create( min = 0 max = 23 ).
go_ran_min_sec = cl_abap_random_int=>create( min = 0 max = 59 ).
gt_agency = lcl_agency_data_generator=>get_data( ).
go_ran_agency = cl_abap_random_int=>create( min = 1 max = lines( gt_agency ) ).
gt_customer = lcl_customer_data_generator=>get_data( ).
go_ran_customer = cl_abap_random_int=>create( min = 1 max = lines( gt_customer ) ).
gt_last_names = lcl_customer_data_generator=>build_last_names( ).
go_ran_last_name = cl_abap_random_int=>create( min = 1 max = lines( gt_last_names ) ).
go_ran_customer_travel = cl_abap_random_int=>create( min = 1 max = 4 ).
gt_connections = lcl_connection_data_generator=>get_data( ).
gt_airports = lcl_airport_data_generator=>get_data( ).
SELECT FROM i_countrytext FIELDS country, countryname WHERE language = 'E' INTO TABLE @gt_countryname.
gt_flights_final = lcl_flight_data_generator=>get_data( ).
SORT gt_flights_final BY flight_date ASCENDING.
gt_flights_seats_decrease = lcl_flight_data_generator=>get_data( ).
SORT gt_flights_seats_decrease BY flight_date ASCENDING.
go_ran_travel_group_amount = cl_abap_random_int=>create( min = 1 max = cv_travel_group_amount_max ).
go_ran_trip_length = cl_abap_random_int=>create( min = cv_trip_length_center - cv_trip_length_offset max = cv_trip_length_center + cv_trip_length_offset ).
go_ran_booking_date = cl_abap_random_int=>create( min = cv_booking_date_min max = cv_booking_date_max ).
go_ran_travel_create_dat_befor = cl_abap_random_int=>create( min = cv_booking_date_min max = cv_booking_date_max ).
go_ran_travel_change_date = cl_abap_random_int=>create( min = cv_booking_date_min max = cv_booking_date_max ).
gt_supplements = lcl_supplement_data_generator=>get_data( ).
go_ran_booking_supplement_id = cl_abap_random_int=>create( min = 1 max = lines( lcl_supplement_data_generator=>get_data( ) ) ).
go_ran_booking_supplement_amnt = cl_abap_random_int=>create( min = 0 max = cv_booking_supplement_amount ).
go_ran_status_description = cl_abap_random_int=>create( min = 1 max = 4 ).
go_ran_travel_description = cl_abap_random_int=>create( min = 0 max = 9 ).
ENDMETHOD.
METHOD build_booking.
TYPES: tt_customer_id TYPE TABLE OF /dmo/customer13-customer_id WITH EMPTY KEY.
DATA: lv_booking_id TYPE /dmo/booking13-booking_id,
lt_customer_id TYPE tt_customer_id,
lv_customer_amount TYPE i.
DATA(lv_trip_length) = go_ran_trip_length->get_next( ).
lt_customer_id = VALUE tt_customer_id(
FOR i = 1 THEN i + 1 WHILE i <= go_ran_travel_group_amount->get_next( )
LET j = go_ran_customer->get_next( ) IN
( gt_customer[ j ]-customer_id )
).
lt_customer_id = CORRESPONDING tt_customer_id( lt_customer_id DISCARDING DUPLICATES ).
lv_customer_amount = lines( lt_customer_id ).
lv_booking_id = 0.
DATA(ls_flight) = find_next_fitting_flight( iv_seats_required = lv_customer_amount ).
CHECK ls_flight IS NOT INITIAL.
DO lv_trip_length TIMES.
READ TABLE gt_flights_seats_decrease
WITH KEY key_sorted_date
COMPONENTS
carrier_id = ls_flight-carrier_id
connection_id = ls_flight-connection_id
flight_date = ls_flight-flight_date
ASSIGNING FIELD-SYMBOL(<flight>).
DATA(lv_booking_date) = CONV /dmo/booking13-booking_date( <flight>-flight_date - go_ran_booking_date->get_next( ) ).
DATA(lv_price) = /dmo/cl_flight_data_generat_13=>calculate_flight_price(
iv_flight_distance = gt_connections[ carrier_id = <flight>-carrier_id connection_id = <flight>-connection_id ]-distance
iv_seats_occupied_percent = ( gt_flights_final[ KEY primary_key ##PRIMKEY[KEY_SORTED_DATE]
carrier_id = <flight>-carrier_id
connection_id = <flight>-connection_id
flight_date = <flight>-flight_date
]-seats_occupied
- <flight>-seats_occupied
) * 100 DIV <flight>-seats_max
).
<flight>-seats_occupied = <flight>-seats_occupied - lv_customer_amount.
APPEND LINES OF VALUE tt_booking_complete(
FOR i = 1 THEN i + 1 WHILE i <= lines( lt_customer_id )
(
travel_id = iv_travel_id
booking_id = lv_booking_id + i
booking_date = lv_booking_date
customer_id = lt_customer_id[ i ]
carrier_id = <flight>-carrier_id
connection_id = <flight>-connection_id
flight_date = <flight>-flight_date
flight_price = lv_price
currency_code = <flight>-currency_code
booking_supplements = generate_booking_supplements( iv_travel_id = iv_travel_id iv_booking_id = CONV /dmo/booking13-booking_id( lv_booking_id + i ) )
)
) TO rt_bookings.
lv_booking_id = lv_booking_id + lines( lt_customer_id ).
ls_flight = find_next_fitting_flight(
iv_seats_required = lv_customer_amount
is_flight_previous = <flight>
).
IF ls_flight IS INITIAL.
EXIT.
ENDIF.
ENDDO.
ENDMETHOD.
METHOD find_next_fitting_flight.
DATA(lt_flights_filtered) = FILTER lcl_flight_data_generator=>tt_flights(
gt_flights_seats_decrease
USING KEY key_sorted_seats
WHERE seats_occupied >= iv_seats_required
).
CHECK lt_flights_filtered IS NOT INITIAL.
IF is_flight_previous IS SUPPLIED.
DATA(lv_connection_id_new) = VALUE /dmo/connecti_13-connection_id( gt_connections[
airport_from_id = gt_connections[
connection_id = is_flight_previous-connection_id
]-airport_to_id
]-connection_id
OPTIONAL ).
CHECK lv_connection_id_new IS NOT INITIAL.
DATA(lt_flights_filtered2) = FILTER lcl_flight_data_generator=>tt_flights(
lt_flights_filtered
USING KEY key_sorted_date
WHERE connection_id = lv_connection_id_new
AND flight_date >= is_flight_previous-flight_date
).
CHECK lt_flights_filtered2 IS NOT INITIAL.
rs_flight = lt_flights_filtered2[ 1 ].
ELSE.
rs_flight = lt_flights_filtered[ 1 ].
ENDIF.
ENDMETHOD.
METHOD generate_booking_supplements.
rt_data = VALUE tt_booking_supplements(
FOR i = 1
THEN i + 1
WHILE i <= go_ran_booking_supplement_amnt->get_next( )
LET j = go_ran_booking_supplement_id->get_next( ) IN
( travel_id = iv_travel_id
booking_id = iv_booking_id
booking_supplement_id = i
supplement_id = gt_supplements[ j ]-supplement_id
price = gt_supplements[ j ]-price
currency_code = gt_supplements[ j ]-currency_code )
).
ENDMETHOD.
METHOD generate_description.
TYPES: tt_customers TYPE SORTED TABLE OF /dmo/customer13 WITH UNIQUE KEY customer_id.
rv_description = SWITCH /dmo/travel13-description(
go_ran_travel_description->get_next( )
WHEN 1 THEN `Business Trip for ` &&
REDUCE /dmo/travel13-description(
LET travelers = CORRESPONDING tt_customers( it_bookings DISCARDING DUPLICATES MAPPING customer_id = customer_id ) IN
INIT s = `` i = 1
FOR traveler IN travelers
NEXT s = s && gt_customer[ customer_id = traveler-customer_id ]-first_name
&& COND /dmo/travel13-description( WHEN i < lines( it_bookings ) THEN `, ` )
i = i + 1 )
WHEN 2 THEN `Vacation for ` &&
REDUCE /dmo/travel13-description(
LET travelers2 = CORRESPONDING tt_customers( it_bookings DISCARDING DUPLICATES MAPPING customer_id = customer_id ) IN
INIT s = `` i = 1
FOR traveler IN travelers2
NEXT s = s && gt_customer[ customer_id = traveler-customer_id ]-first_name
&& COND /dmo/travel13-description( WHEN i < lines( it_bookings ) THEN `, ` )
i = i + 1 )
WHEN 3 THEN `Business Trip to ` &&
gt_countryname[
country = gt_airports[
airport_id = gt_connections[
carrier_id = it_bookings[ 1 ]-carrier_id connection_id = it_bookings[ 1 ]-connection_id
]-airport_to_id
]-country
]-countryname
WHEN 4 THEN `Vacation to ` &&
gt_countryname[
country = gt_airports[
airport_id = gt_connections[
carrier_id = it_bookings[ 1 ]-carrier_id connection_id = it_bookings[ 1 ]-connection_id
]-airport_to_id
]-country
]-countryname
WHEN 5 THEN `Sightseeing in ` && gt_airports[
airport_id = gt_connections[
carrier_id = it_bookings[ 1 ]-carrier_id connection_id = it_bookings[ 1 ]-connection_id
]-airport_to_id
]-city
WHEN 6 THEN `Visiting ` && gt_customer[ go_ran_customer->get_next( ) ]-first_name
WHEN 7 THEN `Business Trip`
ELSE `Vacation`
).
ENDMETHOD.
METHOD calculate_booking_fee.
rv_booking_fee = 10 * lines( it_bookings ).
ENDMETHOD.
METHOD generate_travel_customer_id.
rv_customer_id = COND /dmo/travel13-customer_id(
WHEN go_ran_customer_travel->get_next( ) = 1
THEN gt_customer[ go_ran_customer->get_next( ) ]-customer_id
ELSE it_bookings[ 1 ]-customer_id
).
ENDMETHOD.
ENDCLASS.
| [
41358,
49836,
3868,
62,
7890,
62,
8612,
1352,
13,
198,
220,
42715,
12,
49273,
50,
25,
198,
220,
220,
220,
2251,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
503,
41876,
4526,
37,
5390,
611,
62,
2238,
62,
324,
83,
62,
4871,
5143,
62,
448,
39852,
2849,
1847,
13,
198,
10619,
41358,
49836,
13,
198,
198,
31631,
300,
565,
62,
40955,
62,
7890,
62,
8612,
1352,
5550,
20032,
17941,
29244,
6158,
4810,
3824,
6158,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
25,
3868,
62,
7890,
62,
8612,
1352,
13,
198,
220,
220,
220,
24412,
47,
1546,
25,
256,
83,
62,
40955,
41876,
49053,
9795,
43679,
3963,
1220,
67,
5908,
14,
40955,
1485,
13315,
35374,
4086,
62,
312,
13,
198,
220,
220,
220,
42715,
12,
49273,
50,
25,
651,
62,
7890,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
26173,
8924,
7,
17034,
62,
7890,
8,
41876,
256,
83,
62,
40955,
13,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
198,
198,
31631,
300,
565,
62,
40955,
62,
7890,
62,
8612,
1352,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
3868,
62,
7890,
62,
8612,
1352,
93,
17953,
13,
198,
220,
220,
220,
16876,
503,
3180,
347,
15919,
13,
220,
503,
3784,
13564,
7,
705,
46904,
23520,
14041,
2637,
6739,
220,
23578,
5064,
13,
198,
220,
220,
220,
5550,
2538,
9328,
16034,
1220,
67,
5908,
14,
40955,
1485,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25113,
2943,
14514,
62,
45669,
39,
9338,
628,
220,
220,
220,
16876,
503,
3180,
347,
15919,
13,
220,
503,
3784,
13564,
7,
705,
46904,
10934,
14041,
2637,
6739,
23578,
5064,
13,
198,
220,
220,
220,
42865,
7,
2528,
62,
7890,
8,
796,
651,
62,
7890,
7,
6739,
628,
220,
220,
220,
16876,
503,
3180,
347,
15919,
13,
220,
503,
3784,
13564,
7,
705,
46904,
35835,
14041,
2637,
6739,
23578,
5064,
13,
198,
220,
220,
220,
29194,
17395,
1220,
67,
5908,
14,
40955,
1485,
16034,
43679,
2488,
2528,
62,
7890,
13,
628,
220,
220,
220,
16876,
503,
3180,
347,
15919,
13,
220,
503,
3784,
13564,
7,
705,
46904,
24429,
2637,
6739,
23578,
5064,
13,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
651,
62,
7890,
13,
198,
220,
220,
220,
374,
83,
62,
7890,
796,
26173,
8924,
256,
83,
62,
40955,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
4086,
62,
312,
796,
705,
2998,
18005,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
220,
220,
220,
220,
220,
796,
705,
16012,
19489,
13524,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4675,
220,
220,
220,
796,
705,
19880,
2688,
3530,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30793,
62,
8189,
220,
796,
705,
20,
3559,
1954,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1748,
220,
220,
220,
220,
220,
796,
705,
49,
420,
19593,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1499,
62,
8189,
220,
220,
796,
705,
2937,
705,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3072,
62,
17618,
796,
705,
10,
16,
860,
486,
12,
21,
2624,
12,
3980,
1238,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3992,
62,
21975,
220,
220,
220,
220,
220,
220,
796,
705,
4023,
1378,
2503,
13,
19155,
19489,
12,
35927,
13,
82,
499,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3053,
62,
21975,
796,
705,
10951,
31,
19155,
19489,
12,
35927,
13,
82,
499,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
357,
4086,
62,
312,
796,
705,
2998,
34215,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1438,
220,
220,
220,
220,
220,
796,
705,
33771,
3334,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4675,
220,
220,
220,
796,
705,
24814,
24683,
978,
7197,
1367,
220,
220,
220,
220,
220,
220,
220,
705,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
30793,
62,
8189,
220,
796,
705,
26200,
1795,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1748,
220,
220,
220,
220,
220,
796,
705,
35,
947,
325,
335,
24263,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1499,
62,
8189,
220,
220,
796,
705,
7206,
705,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3072,
62,
17618,
796,
705,
10,
2920,
362,
15377,
8644,
31046,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3992,
62,
21975,
220,
220,
220,
220,
220,
220,
796,
705,
4023,
1378,
2503,
13,
12254,
8929,
13,
82,
499,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
705,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3053,
62,
21975,
796,
705,
10951,
31,
12254,
8929,
13,
82
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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ory,
o_data TYPE REF TO zif_abak_data.
METHODS: setup.
METHODS: check_class
IMPORTING
i_classname TYPE string.
METHODS: standard_normal FOR TESTING RAISING zcx_abak.
METHODS: standard_sho FOR TESTING RAISING zcx_abak.
METHODS: custom FOR TESTING RAISING zcx_abak.
METHODS: cache FOR TESTING RAISING zcx_abak.
METHODS: bypass_cache FOR TESTING RAISING zcx_abak.
ENDCLASS. "lcl_Unittest
CLASS lcl_unittest IMPLEMENTATION.
METHOD setup.
CREATE OBJECT f_cut.
ENDMETHOD.
METHOD check_class.
cl_abap_unit_assert=>assert_equals( exp = i_classname
act = cl_abap_objectdescr=>describe_by_object_ref( o_data )->get_relative_name( ) ).
ENDMETHOD.
METHOD standard_normal.
o_data = f_cut->get_standard_instance(
i_format_type = zif_abak_consts=>format_type-xml
i_source_type = zif_abak_consts=>source_type-inline
i_content = 'dummy' ).
check_class( 'ZCL_ABAK_DATA_NORMAL' ).
ENDMETHOD.
METHOD standard_sho.
o_data = f_cut->get_standard_instance(
i_format_type = zif_abak_consts=>format_type-xml
i_source_type = zif_abak_consts=>source_type-inline
i_content = 'dummy'
i_use_shm = abap_true ).
check_class( 'ZCL_ABAK_DATA_SHM' ).
ENDMETHOD.
METHOD custom.
DATA: o_format_factory TYPE REF TO zcl_abak_format_factory,
o_source_factory TYPE REF TO zcl_abak_source_factory.
CREATE OBJECT o_format_factory.
CREATE OBJECT o_source_factory.
o_data = f_cut->get_custom_instance(
io_format = o_format_factory->get_instance( zif_abak_consts=>format_type-xml )
io_source = o_source_factory->get_instance( i_source_type = zif_abak_consts=>source_type-inline
i_content = 'dummy' ) ).
check_class( 'ZCL_ABAK_DATA_NORMAL' ).
ENDMETHOD.
METHOD cache.
DATA: o_data2 TYPE REF TO zif_abak_data.
o_data = f_cut->get_standard_instance(
i_format_type = zif_abak_consts=>format_type-xml
i_source_type = zif_abak_consts=>source_type-inline
i_content = 'dummy' ).
o_data2 = f_cut->get_standard_instance(
i_format_type = zif_abak_consts=>format_type-xml
i_source_type = zif_abak_consts=>source_type-inline
i_content = 'dummy'
i_bypass_cache = abap_false ).
cl_abap_unit_assert=>assert_equals( exp = o_data
act = o_data2 ).
ENDMETHOD.
METHOD bypass_cache.
DATA: o_data2 TYPE REF TO zif_abak_data.
o_data = f_cut->get_standard_instance(
i_format_type = zif_abak_consts=>format_type-xml
i_source_type = zif_abak_consts=>source_type-inline
i_content = 'dummy' ).
o_data2 = f_cut->get_standard_instance(
i_format_type = zif_abak_consts=>format_type-xml
i_source_type = zif_abak_consts=>source_type-inline
i_content = 'dummy'
i_bypass_cache = abap_true ).
IF o_data = o_data2.
cl_abap_unit_assert=>fail( msg = 'Instances should be different' ).
ENDIF.
ENDMETHOD.
ENDCLASS.
| [
9,
1,
9,
779,
428,
2723,
2393,
329,
534,
9564,
2969,
4326,
1332,
6097,
198,
31631,
300,
565,
62,
403,
715,
395,
5550,
20032,
17941,
7473,
43001,
2751,
198,
220,
360,
4261,
6234,
6006,
9863,
198,
220,
45698,
42,
49277,
43638,
5805,
7597,
198,
220,
25261,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
42865,
25,
198,
220,
220,
220,
220,
220,
277,
62,
8968,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
461,
62,
7890,
62,
69,
9548,
11,
198,
220,
220,
220,
220,
220,
267,
62,
7890,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
461,
62,
7890,
13,
628,
220,
220,
220,
337,
36252,
50,
25,
9058,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
2198,
62,
4871,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1312,
62,
4871,
3672,
41876,
4731,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
3210,
62,
11265,
7473,
43001,
2751,
17926,
1797,
2751,
1976,
66,
87,
62,
397,
461,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
3210,
62,
1477,
78,
7473,
43001,
2751,
17926,
1797,
2751,
1976,
66,
87,
62,
397,
461,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
2183,
7473,
43001,
2751,
17926,
1797,
2751,
1976,
66,
87,
62,
397,
461,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
12940,
7473,
43001,
2751,
17926,
1797,
2751,
1976,
66,
87,
62,
397,
461,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
17286,
62,
23870,
7473,
43001,
2751,
17926,
1797,
2751,
1976,
66,
87,
62,
397,
461,
13,
198,
10619,
31631,
13,
220,
220,
220,
220,
220,
220,
366,
75,
565,
62,
3118,
715,
395,
628,
198,
31631,
300,
565,
62,
403,
715,
395,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
9058,
13,
198,
220,
220,
220,
29244,
6158,
25334,
23680,
277,
62,
8968,
13,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
2198,
62,
4871,
13,
198,
220,
220,
220,
537,
62,
397,
499,
62,
20850,
62,
30493,
14804,
30493,
62,
4853,
874,
7,
1033,
796,
1312,
62,
4871,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
719,
796,
537,
62,
397,
499,
62,
15252,
20147,
81,
14804,
20147,
4892,
62,
1525,
62,
15252,
62,
5420,
7,
267,
62,
7890,
1267,
3784,
1136,
62,
43762,
62,
3672,
7,
1267,
6739,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
3210,
62,
11265,
13,
198,
220,
220,
220,
267,
62,
7890,
796,
277,
62,
8968,
3784,
1136,
62,
20307,
62,
39098,
7,
198,
220,
220,
220,
220,
220,
220,
220,
1312,
62,
18982,
62,
4906,
220,
796,
1976,
361,
62,
397,
461,
62,
1102,
6448,
14804,
18982,
62,
4906,
12,
19875,
198,
220,
220,
220,
220,
220,
220,
220,
1312,
62,
10459,
62,
4906,
796,
1976,
361,
62,
397,
461,
62,
1102,
6448,
14804,
10459,
62,
4906,
12,
45145,
198,
220,
220,
220,
220,
220,
220,
220,
1312,
62,
11299,
220,
220,
220,
220,
220,
796,
705,
67,
13513,
6,
6739,
198,
220,
220,
220,
2198,
62,
4871,
7,
705,
57,
5097,
62,
32,
4339,
42,
62,
26947,
62,
35510,
42126,
6,
6739,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
3210,
62,
1477,
78,
13,
198,
220,
220,
220,
267,
62,
7890,
796,
277,
62,
8968,
3784,
1136,
62,
20307,
62,
39098,
7,
198,
220,
220,
220,
220,
220,
220,
220,
1312,
62,
18982,
62,
4906,
220,
796,
1976,
361,
62,
397,
461,
62,
1102,
6448,
14804,
18982,
62,
4906,
12,
19875,
198,
220,
220,
220,
220,
220,
220,
220,
1312,
62,
10459,
62,
4906,
796,
1976,
361,
62,
397,
461,
62,
1102,
6448,
14804,
10459,
62,
4906,
12,
45145,
198,
220,
220,
220,
220,
220,
220,
220,
1312,
62,
11299,
220,
220,
220,
220,
220,
796,
705,
67,
13513,
6,
198,
220,
220,
220,
220,
220,
220,
220,
1312,
62,
1904,
62,
1477,
76,
220,
220,
220,
220,
220,
796,
450,
499,
62,
7942,
6739,
198,
220,
220,
220,
2198,
62,
4871,
7,
705,
57,
5097,
62,
32,
4339,
42,
62,
26947,
62,
9693,
44,
6,
6739,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
2183,
13,
198,
220,
220,
220,
42865,
25,
267,
62,
18982,
62,
69,
9548,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
461,
62,
18982,
62,
69,
9548,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
267,
62,
10459,
62,
69,
9548,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
461,
62,
10459,
62,
69,
9548,
13,
628,
220,
220,
220,
29244,
6158,
25334,
23680,
267,
62,
18982,
62,
69,
9548,
13,
198,
220,
220,
220,
29244,
6158,
25334,
23680,
267,
62,
10459,
62,
69,
9548,
13,
198,
220,
220,
220,
267,
62,
7890,
796,
277,
62,
8968,
3784,
1136,
62,
23144,
62,
39098,
7,
198,
220,
220,
220,
220,
220,
220,
220,
33245,
62,
18982,
796,
267,
62,
18982,
62,
69,
9548,
3784,
1136,
62,
39098,
7,
1976,
361,
62,
397,
461,
62,
1102,
6448,
14804,
18982,
62,
4906,
12,
19875,
1267,
198,
220,
220,
220,
220,
220,
220,
220,
33245,
62,
10459,
796,
267,
62,
10459,
62,
69,
9548,
3784,
1136,
62,
39098,
7,
1312,
62,
10459,
62,
4906,
796,
1976,
361,
62,
397,
461,
62,
1102,
6448,
14804,
10459,
62,
4906,
12,
45145,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1312,
62,
11299,
220,
220,
220,
220,
220,
796,
705,
67,
13513,
6,
1267,
6739,
198,
220,
220,
220,
2198,
62,
4871,
7,
705,
57,
5097,
62,
32,
4339,
42,
62,
26947,
62,
35510,
42126,
6,
6739,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
12940,
13,
198,
220,
220,
220,
42865,
25,
267,
62
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
class ZCL_SWAG_MAP_TYPE definition
public
create public .
public section.
constants TYPEKIND_INT8 type ABAP_TYPEKIND value '8' ##NO_TEXT.
class-methods GET_TYPEDESCR
importing
!IS_PARM type SEOSUBCODF
returning
value(RO_TYPEDESCR) type ref to CL_ABAP_TYPEDESCR .
methods MAP
returning
value(RV_TYPE) type STRING .
methods CONSTRUCTOR
importing
!IS_PARAM type SEOSUBCODF
!IV_SCHEMA type ABAP_BOOL default ABAP_TRUE .
PROTECTED SECTION.
DATA mv_schema TYPE abap_bool .
DATA ms_param TYPE seosubcodf .
METHODS map_element
IMPORTING
!io_typedescr TYPE REF TO cl_abap_typedescr
RETURNING
VALUE(rv_type) TYPE string .
METHODS map_internal
IMPORTING
!io_typedescr TYPE REF TO cl_abap_typedescr
RETURNING
VALUE(rv_type) TYPE string .
METHODS map_structure
IMPORTING
!io_typedescr TYPE REF TO cl_abap_typedescr
RETURNING
VALUE(rv_type) TYPE string .
METHODS map_table
IMPORTING
!io_typedescr TYPE REF TO cl_abap_typedescr
RETURNING
VALUE(rv_type) TYPE string .
PRIVATE SECTION.
ENDCLASS.
CLASS ZCL_SWAG_MAP_TYPE IMPLEMENTATION.
METHOD constructor.
ms_param = is_param.
mv_schema = iv_schema.
ENDMETHOD.
METHOD get_typedescr.
DATA: lv_name TYPE string.
cl_abap_typedescr=>describe_by_name(
EXPORTING
p_name = is_parm-type
RECEIVING
p_descr_ref = ro_typedescr
EXCEPTIONS
type_not_found = 1
OTHERS = 2 ).
IF sy-subrc <> 0.
* try looking in the class
ASSERT NOT is_parm-clsname IS INITIAL.
CONCATENATE
'\CLASS=' is_parm-clsname
'\TYPE=' is_parm-type
INTO lv_name.
ro_typedescr = cl_abap_typedescr=>describe_by_name( lv_name ).
ENDIF.
ENDMETHOD. "get_typedescr
METHOD map.
rv_type = map_internal( get_typedescr( ms_param ) ).
ENDMETHOD.
METHOD map_element.
DATA: lo_elemdescr TYPE REF TO cl_abap_elemdescr.
lo_elemdescr ?= io_typedescr.
CASE lo_elemdescr->type_kind.
WHEN cl_abap_elemdescr=>typekind_string
OR cl_abap_elemdescr=>typekind_date
OR cl_abap_elemdescr=>typekind_time
OR cl_abap_elemdescr=>typekind_num
OR cl_abap_elemdescr=>typekind_hex.
rv_type = '"type":"string"'.
WHEN cl_abap_elemdescr=>typekind_char.
rv_type = |"type":"string", "maxLength": { lo_elemdescr->output_length }|.
WHEN cl_abap_elemdescr=>typekind_int1
OR cl_abap_elemdescr=>typekind_int
OR cl_abap_elemdescr=>typekind_int2
OR typekind_int8. " does not exist before ABAP 7.50
rv_type = '"type":"integer"'.
WHEN cl_abap_elemdescr=>typekind_packed.
rv_type = '"type":"number"'.
WHEN cl_abap_elemdescr=>typekind_xstring.
rv_type = '"type":"string", "format": "binary"'.
WHEN OTHERS.
ASSERT 0 = 1.
ENDCASE.
ENDMETHOD.
METHOD map_internal.
CASE io_typedescr->kind.
WHEN cl_abap_typedescr=>kind_elem.
rv_type = map_element( io_typedescr ).
WHEN cl_abap_typedescr=>kind_struct.
rv_type = map_structure( io_typedescr ).
WHEN cl_abap_typedescr=>kind_table.
rv_type = map_table( io_typedescr ).
WHEN OTHERS.
ASSERT 0 = 1.
ENDCASE.
ENDMETHOD. "map_internal
METHOD map_structure.
DATA: lv_index TYPE i,
lv_type TYPE string,
lt_components TYPE cl_abap_structdescr=>component_table,
lo_struct TYPE REF TO cl_abap_structdescr.
FIELD-SYMBOLS: <ls_component> LIKE LINE OF lt_components.
lo_struct ?= io_typedescr.
lt_components = lo_struct->get_components( ).
* todo, this only works with 1 level
LOOP AT lt_components ASSIGNING <ls_component> WHERE as_include = abap_true.
lo_struct ?= <ls_component>-type.
APPEND LINES OF lo_struct->get_components( ) TO lt_components.
ENDLOOP.
DELETE lt_components WHERE as_include = abap_true.
IF mv_schema = abap_true.
rv_type = '"schema":{"type":"object", "properties":{'.
ELSE.
rv_type = '"type":"object", "properties":{'.
ENDIF.
LOOP AT lt_components ASSIGNING <ls_component>.
lv_index = sy-tabix.
ASSERT NOT <ls_component>-name IS INITIAL.
lv_type = map_internal( <ls_component>-type ).
rv_type = rv_type && '"' && <ls_component>-name && '":{ ' && lv_type && ' }'.
IF lv_index <> lines( lt_components ).
rv_type = rv_type && ','.
ENDIF.
ENDLOOP.
rv_type = rv_type && '}'.
IF mv_schema = abap_true.
rv_type = rv_type && '}'.
ENDIF.
ENDMETHOD. "map_structure
METHOD map_table.
DATA: lv_type TYPE string,
lo_table TYPE REF TO cl_abap_tabledescr.
lo_table ?= io_typedescr.
lv_type = map_internal( lo_table->get_table_line_type( ) ).
IF mv_schema = abap_true.
rv_type = '"schema":{"type":"array", "items":{' && lv_type && '}}'.
ELSE.
rv_type = '"type":"array", "items":{' && lv_type && '}'.
ENDIF.
ENDMETHOD. "map_table
ENDCLASS.
| [
4871,
1168,
5097,
62,
17887,
4760,
62,
33767,
62,
25216,
6770,
198,
220,
1171,
198,
220,
2251,
1171,
764,
628,
220,
1171,
2665,
13,
628,
220,
220,
220,
38491,
41876,
42,
12115,
62,
12394,
23,
2099,
9564,
2969,
62,
25216,
42,
12115,
1988,
705,
23,
6,
22492,
15285,
62,
32541,
13,
628,
220,
1398,
12,
24396,
82,
17151,
62,
9936,
47,
1961,
1546,
9419,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
1797,
62,
27082,
44,
2099,
7946,
2640,
52,
2749,
3727,
37,
198,
220,
220,
220,
8024,
198,
220,
220,
220,
220,
220,
1988,
7,
13252,
62,
9936,
47,
1961,
1546,
9419,
8,
2099,
1006,
284,
7852,
62,
6242,
2969,
62,
9936,
47,
1961,
1546,
9419,
764,
198,
220,
5050,
34645,
198,
220,
220,
220,
8024,
198,
220,
220,
220,
220,
220,
1988,
7,
49,
53,
62,
25216,
8,
2099,
19269,
2751,
764,
198,
220,
5050,
7102,
46126,
1581,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
1797,
62,
27082,
2390,
2099,
7946,
2640,
52,
2749,
3727,
37,
198,
220,
220,
220,
220,
220,
5145,
3824,
62,
50,
3398,
27630,
2099,
9564,
2969,
62,
8202,
3535,
4277,
9564,
2969,
62,
5446,
8924,
764,
198,
220,
48006,
9782,
1961,
44513,
13,
628,
220,
220,
220,
42865,
285,
85,
62,
15952,
2611,
41876,
450,
499,
62,
30388,
764,
198,
220,
220,
220,
42865,
13845,
62,
17143,
41876,
384,
418,
549,
19815,
69,
764,
628,
220,
220,
220,
337,
36252,
50,
3975,
62,
30854,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
952,
62,
774,
9124,
3798,
81,
220,
41876,
4526,
37,
5390,
537,
62,
397,
499,
62,
774,
9124,
3798,
81,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
4906,
8,
41876,
4731,
764,
198,
220,
220,
220,
337,
36252,
50,
3975,
62,
32538,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
952,
62,
774,
9124,
3798,
81,
220,
41876,
4526,
37,
5390,
537,
62,
397,
499,
62,
774,
9124,
3798,
81,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
4906,
8,
41876,
4731,
764,
198,
220,
220,
220,
337,
36252,
50,
3975,
62,
301,
5620,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
952,
62,
774,
9124,
3798,
81,
220,
41876,
4526,
37,
5390,
537,
62,
397,
499,
62,
774,
9124,
3798,
81,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
4906,
8,
41876,
4731,
764,
198,
220,
220,
220,
337,
36252,
50,
3975,
62,
11487,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
952,
62,
774,
9124,
3798,
81,
220,
41876,
4526,
37,
5390,
537,
62,
397,
499,
62,
774,
9124,
3798,
81,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
4906,
8,
41876,
4731,
764,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
17887,
4760,
62,
33767,
62,
25216,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
23772,
13,
628,
220,
220,
220,
13845,
62,
17143,
220,
796,
318,
62,
17143,
13,
198,
220,
220,
220,
285,
85,
62,
15952,
2611,
796,
21628,
62,
15952,
2611,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
651,
62,
774,
9124,
3798,
81,
13,
628,
220,
220,
220,
42865,
25,
300,
85,
62,
3672,
41876,
4731,
13,
628,
198,
220,
220,
220,
537,
62,
397,
499,
62,
774,
9124,
3798,
81,
14804,
20147,
4892,
62,
1525,
62,
3672,
7,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
279,
62,
3672,
220,
220,
220,
220,
220,
220,
220,
220,
796,
318,
62,
79,
1670,
12,
4906,
198,
220,
220,
220,
220,
220,
19644,
36,
3824,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
279,
62,
20147,
81,
62,
5420,
220,
220,
220,
796,
686,
62,
774,
9124,
3798,
81,
198,
220,
220,
220,
220,
220,
7788,
42006,
11053,
198,
220,
220,
220,
220,
220,
220,
220,
2099,
62,
1662,
62,
9275,
796,
352,
198,
220,
220,
220,
220,
220,
220,
220,
440,
4221,
4877,
220,
220,
220,
220,
220,
220,
220,
220,
796,
362,
6739,
198,
220,
220,
220,
16876,
827,
12,
7266,
6015,
1279,
29,
657,
13,
198,
9,
1949,
2045,
287,
262,
1398,
198,
220,
220,
220,
220,
220,
24994,
17395,
5626,
318,
62,
79,
1670,
12,
565,
82,
3672,
3180,
3268,
2043,
12576,
13,
198,
220,
220,
220,
220,
220,
39962,
1404,
1677,
6158,
198,
220,
220,
220,
220,
220,
220,
220,
705,
59,
31631,
11639,
318,
62,
79,
1670,
12,
565,
82,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
705,
59,
25216,
11639,
318,
62,
79,
1670,
12,
4906,
198,
220,
220,
220,
220,
220,
220,
220,
39319,
300,
85,
62,
3672,
13,
198,
220,
220,
220,
220,
220,
686,
62,
774,
9124,
3798,
81,
796,
537,
62,
397,
499,
62,
774,
9124,
3798,
81,
14804,
20147,
4892,
62,
1525,
62,
3672,
7,
300,
85,
62,
3672,
6739,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
23578,
49273,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
1136,
62,
774,
9124,
3798,
81,
628,
198,
220,
337,
36252,
3975,
13,
628,
220,
220,
220,
374,
85,
62,
4906,
796,
3975,
62,
32538,
7,
651,
62,
774,
9124,
3798,
81,
7,
13845,
62,
17143,
1267,
6739,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
3975,
62,
30854,
13,
628,
220,
220,
220,
42865,
25,
2376,
62,
11129,
9132,
3798,
81,
41876,
4526,
37,
5390,
537,
62,
397,
499,
62,
11129,
9132,
3798,
81
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
class ZCL_ATTACHEMENT_PERSIST definition
public
final
create protected
global friends ZCB_ATTACHEMENT_PERSIST .
*"* public components of class ZCL_ATTACHEMENT_PERSIST
*"* do not include other source files here!!!
public section.
interfaces IF_OS_STATE .
methods GET_ATTATCHMENT
returning
value(RESULT) type ZBT_ATTATCHMENT
raising
CX_OS_OBJECT_NOT_FOUND .
methods GET_BUG
returning
value(RESULT) type ZBT_ID_BUG
raising
CX_OS_OBJECT_NOT_FOUND .
methods GET_COMENTARIO
returning
value(RESULT) type ZBT_ID_COMENTARIO
raising
CX_OS_OBJECT_NOT_FOUND .
methods GET_NAME
returning
value(RESULT) type VTEXT
raising
CX_OS_OBJECT_NOT_FOUND .
methods GET_PRODUCTO
returning
value(RESULT) type ZBT_ID_PRODUCTO
raising
CX_OS_OBJECT_NOT_FOUND .
methods SET_COMENTARIO
importing
!I_COMENTARIO type ZBT_ID_COMENTARIO
raising
CX_OS_OBJECT_NOT_FOUND .
methods SET_NAME
importing
!I_NAME type VTEXT
raising
CX_OS_OBJECT_NOT_FOUND .
class CL_OS_SYSTEM definition load .
protected section.
*"* protected components of class ZCL_ATTACHEMENT_PERSIST
*"* do not include other source files here!!!
data ATTATCHMENT type ZBT_ATTATCHMENT .
data BUG type ZBT_ID_BUG .
data COMENTARIO type ZBT_ID_COMENTARIO .
data NAME type VTEXT .
data PRODUCTO type ZBT_ID_PRODUCTO .
private section.
*"* private components of class ZCL_ATTACHEMENT_PERSIST
*"* do not include other source files here!!!
ENDCLASS.
CLASS ZCL_ATTACHEMENT_PERSIST IMPLEMENTATION.
method GET_ATTATCHMENT.
***BUILD 051401
" returning RESULT
" raising CX_OS_OBJECT_NOT_FOUND
************************************************************************
* Purpose : Get Attribute ATTATCHMENT
*
* Version : 2.0
*
* Precondition : -
*
* Postcondition : The object state is loaded, result is set
*
* OO Exceptions : CX_OS_OBJECT_NOT_FOUND
*
* Implementation : -
*
************************************************************************
* Changelog:
* - 2000-03-14 : (BGR) Version 2.0
* - 2000-07-28 : (SB) OO Exceptions
************************************************************************
* * Inform class agent and handle exceptions
state_read_access.
result = ATTATCHMENT.
" GET_ATTATCHMENT
endmethod.
method GET_BUG.
***BUILD 051401
" returning RESULT
" raising CX_OS_OBJECT_NOT_FOUND
************************************************************************
* Purpose : Get Attribute BUG
*
* Version : 2.0
*
* Precondition : -
*
* Postcondition : The object state is loaded, result is set
*
* OO Exceptions : CX_OS_OBJECT_NOT_FOUND
*
* Implementation : -
*
************************************************************************
* Changelog:
* - 2000-03-14 : (BGR) Version 2.0
* - 2000-07-28 : (SB) OO Exceptions
************************************************************************
* * Inform class agent and handle exceptions
state_read_access.
result = BUG.
" GET_BUG
endmethod.
method GET_COMENTARIO.
***BUILD 051401
" returning RESULT
" raising CX_OS_OBJECT_NOT_FOUND
************************************************************************
* Purpose : Get Attribute COMENTARIO
*
* Version : 2.0
*
* Precondition : -
*
* Postcondition : The object state is loaded, result is set
*
* OO Exceptions : CX_OS_OBJECT_NOT_FOUND
*
* Implementation : -
*
************************************************************************
* Changelog:
* - 2000-03-14 : (BGR) Version 2.0
* - 2000-07-28 : (SB) OO Exceptions
************************************************************************
* * Inform class agent and handle exceptions
state_read_access.
result = COMENTARIO.
" GET_COMENTARIO
endmethod.
method GET_NAME.
***BUILD 051401
" returning RESULT
" raising CX_OS_OBJECT_NOT_FOUND
************************************************************************
* Purpose : Get Attribute NAME
*
* Version : 2.0
*
* Precondition : -
*
* Postcondition : The object state is loaded, result is set
*
* OO Exceptions : CX_OS_OBJECT_NOT_FOUND
*
* Implementation : -
*
************************************************************************
* Changelog:
* - 2000-03-14 : (BGR) Version 2.0
* - 2000-07-28 : (SB) OO Exceptions
************************************************************************
* * Inform class agent and handle exceptions
state_read_access.
result = NAME.
" GET_NAME
endmethod.
method GET_PRODUCTO.
***BUILD 051401
" returning RESULT
" raising CX_OS_OBJECT_NOT_FOUND
************************************************************************
* Purpose : Get Attribute PRODUCTO
*
* Version : 2.0
*
* Precondition : -
*
* Postcondition : The object state is loaded, result is set
*
* OO Exceptions : CX_OS_OBJECT_NOT_FOUND
*
* Implementation : -
*
************************************************************************
* Changelog:
* - 2000-03-14 : (BGR) Version 2.0
* - 2000-07-28 : (SB) OO Exceptions
************************************************************************
* * Inform class agent and handle exceptions
state_read_access.
result = PRODUCTO.
" GET_PRODUCTO
endmethod.
method IF_OS_STATE~GET.
***BUILD 051401
" returning result type ref to object
************************************************************************
* Purpose : Get state.
*
* Version : 2.0
*
* Precondition : -
*
* Postcondition : -
*
* OO Exceptions : -
*
* Implementation : -
*
************************************************************************
* Changelog:
* - 2000-03-07 : (BGR) Initial Version 2.0
************************************************************************
* GENERATED: Do not modify
************************************************************************
data: STATE_OBJECT type ref to CL_OS_STATE.
create object STATE_OBJECT.
call method STATE_OBJECT->SET_STATE_FROM_OBJECT( ME ).
result = STATE_OBJECT.
endmethod.
method IF_OS_STATE~HANDLE_EXCEPTION.
***BUILD 051401
" importing I_EXCEPTION type ref to IF_OS_EXCEPTION_INFO optional
" importing I_EX_OS type ref to CX_OS_OBJECT_NOT_FOUND optional
************************************************************************
* Purpose : Handles exceptions during attribute access.
*
* Version : 2.0
*
* Precondition : -
*
* Postcondition : -
*
* OO Exceptions : CX_OS_OBJECT_NOT_FOUND
*
* Implementation : If an exception is raised during attribut access,
* this method is called and the exception is passed
* as a paramater. The default is to raise the exception
* again, so that the caller can handle the exception.
* But it is also possible to handle the exception
* here in the callee.
*
************************************************************************
* Changelog:
* - 2000-03-07 : (BGR) Initial Version 2.0
* - 2000-08-02 : (SB) OO Exceptions
************************************************************************
* Modify if you like
************************************************************************
if i_ex_os is not initial.
raise exception i_ex_os.
endif.
endmethod.
method IF_OS_STATE~INIT.
***BUILD 051401
************************************************************************
* Purpose : Initialisation of the transient state partition.
*
* Version : 2.0
*
* Precondition : -
*
* Postcondition : Transient state is initial.
*
* OO Exceptions : -
*
* Implementation : Caution!: Avoid Throwing ACCESS Events.
*
************************************************************************
* Changelog:
* - 2000-03-07 : (BGR) Initial Version 2.0
************************************************************************
* Modify if you like
************************************************************************
endmethod.
method IF_OS_STATE~INVALIDATE.
***BUILD 051401
************************************************************************
* Purpose : Do something before all persistent attributes are
* cleared.
*
* Version : 2.0
*
* Precondition : -
*
* Postcondition : -
*
* OO Exceptions : -
*
* Implementation : Whatever you like to do.
*
************************************************************************
* Changelog:
* - 2000-03-07 : (BGR) Initial Version 2.0
************************************************************************
* Modify if you like
************************************************************************
endmethod.
method IF_OS_STATE~SET.
***BUILD 051401
" importing I_STATE type ref to object
************************************************************************
* Purpose : Set state.
*
* Version : 2.0
*
* Precondition : -
*
* Postcondition : -
*
* OO Exceptions : -
*
* Implementation : -
*
************************************************************************
* Changelog:
* - 2000-03-07 : (BGR) Initial Version 2.0
************************************************************************
* GENERATED: Do not modify
************************************************************************
data: STATE_OBJECT type ref to CL_OS_STATE.
STATE_OBJECT ?= I_STATE.
call method STATE_OBJECT->SET_OBJECT_FROM_STATE( ME ).
endmethod.
method SET_COMENTARIO.
***BUILD 051401
" importing I_COMENTARIO
" raising CX_OS_OBJECT_NOT_FOUND
************************************************************************
* Purpose : Set attribute COMENTARIO
*
* Version : 2.0
*
* Precondition : -
*
* Postcondition : The object state is loaded, attribute is set
*
* OO Exceptions : CX_OS_OBJECT_NOT_FOUND
*
* Implementation : -
*
************************************************************************
* Changelog:
* - 2000-03-14 : (BGR) Version 2.0
* - 2000-07-28 : (SB) OO Exceptions
* - 2000-10-04 : (SB) Namespaces
************************************************************************
* * Inform class agent and handle exceptions
state_write_access.
if ( I_COMENTARIO <> COMENTARIO ).
COMENTARIO = I_COMENTARIO.
* * Inform class agent and handle exceptions
state_changed.
endif. "( I_COMENTARIO <> COMENTARIO )
" GET_COMENTARIO
endmethod.
method SET_NAME.
***BUILD 051401
" importing I_NAME
" raising CX_OS_OBJECT_NOT_FOUND
************************************************************************
* Purpose : Set attribute NAME
*
* Version : 2.0
*
* Precondition : -
*
* Postcondition : The object state is loaded, attribute is set
*
* OO Exceptions : CX_OS_OBJECT_NOT_FOUND
*
* Implementation : -
*
************************************************************************
* Changelog:
* - 2000-03-14 : (BGR) Version 2.0
* - 2000-07-28 : (SB) OO Exceptions
* - 2000-10-04 : (SB) Namespaces
************************************************************************
* * Inform class agent and handle exceptions
state_write_access.
if ( I_NAME <> NAME ).
NAME = I_NAME.
* * Inform class agent and handle exceptions
state_changed.
endif. "( I_NAME <> NAME )
" GET_NAME
endmethod.
ENDCLASS.
| [
4871,
1168,
5097,
62,
17139,
16219,
12529,
62,
47,
4877,
8808,
6770,
198,
220,
1171,
198,
220,
2457,
198,
220,
2251,
6861,
628,
220,
3298,
2460,
1168,
23199,
62,
17139,
16219,
12529,
62,
47,
4877,
8808,
764,
198,
198,
9,
1,
9,
1171,
6805,
286,
1398,
1168,
5097,
62,
17139,
16219,
12529,
62,
47,
4877,
8808,
198,
9,
1,
9,
466,
407,
2291,
584,
2723,
3696,
994,
10185,
198,
11377,
2665,
13,
628,
220,
20314,
16876,
62,
2640,
62,
44724,
764,
628,
220,
5050,
17151,
62,
17139,
11417,
10979,
198,
220,
220,
220,
8024,
198,
220,
220,
220,
220,
220,
1988,
7,
19535,
16724,
8,
2099,
1168,
19313,
62,
17139,
11417,
10979,
198,
220,
220,
220,
8620,
198,
220,
220,
220,
220,
220,
327,
55,
62,
2640,
62,
9864,
23680,
62,
11929,
62,
37,
15919,
764,
198,
220,
5050,
17151,
62,
12953,
198,
220,
220,
220,
8024,
198,
220,
220,
220,
220,
220,
1988,
7,
19535,
16724,
8,
2099,
1168,
19313,
62,
2389,
62,
12953,
198,
220,
220,
220,
8620,
198,
220,
220,
220,
220,
220,
327,
55,
62,
2640,
62,
9864,
23680,
62,
11929,
62,
37,
15919,
764,
198,
220,
5050,
17151,
62,
9858,
3525,
1503,
9399,
198,
220,
220,
220,
8024,
198,
220,
220,
220,
220,
220,
1988,
7,
19535,
16724,
8,
2099,
1168,
19313,
62,
2389,
62,
9858,
3525,
1503,
9399,
198,
220,
220,
220,
8620,
198,
220,
220,
220,
220,
220,
327,
55,
62,
2640,
62,
9864,
23680,
62,
11929,
62,
37,
15919,
764,
198,
220,
5050,
17151,
62,
20608,
198,
220,
220,
220,
8024,
198,
220,
220,
220,
220,
220,
1988,
7,
19535,
16724,
8,
2099,
569,
32541,
198,
220,
220,
220,
8620,
198,
220,
220,
220,
220,
220,
327,
55,
62,
2640,
62,
9864,
23680,
62,
11929,
62,
37,
15919,
764,
198,
220,
5050,
17151,
62,
4805,
28644,
46,
198,
220,
220,
220,
8024,
198,
220,
220,
220,
220,
220,
1988,
7,
19535,
16724,
8,
2099,
1168,
19313,
62,
2389,
62,
4805,
28644,
46,
198,
220,
220,
220,
8620,
198,
220,
220,
220,
220,
220,
327,
55,
62,
2640,
62,
9864,
23680,
62,
11929,
62,
37,
15919,
764,
198,
220,
5050,
25823,
62,
9858,
3525,
1503,
9399,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
40,
62,
9858,
3525,
1503,
9399,
2099,
1168,
19313,
62,
2389,
62,
9858,
3525,
1503,
9399,
198,
220,
220,
220,
8620,
198,
220,
220,
220,
220,
220,
327,
55,
62,
2640,
62,
9864,
23680,
62,
11929,
62,
37,
15919,
764,
198,
220,
5050,
25823,
62,
20608,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
40,
62,
20608,
2099,
569,
32541,
198,
220,
220,
220,
8620,
198,
220,
220,
220,
220,
220,
327,
55,
62,
2640,
62,
9864,
23680,
62,
11929,
62,
37,
15919,
764,
198,
220,
1398,
7852,
62,
2640,
62,
23060,
25361,
6770,
3440,
764,
198,
24326,
2665,
13,
198,
9,
1,
9,
6861,
6805,
286,
1398,
1168,
5097,
62,
17139,
16219,
12529,
62,
47,
4877,
8808,
198,
9,
1,
9,
466,
407,
2291,
584,
2723,
3696,
994,
10185,
628,
220,
1366,
26195,
11417,
10979,
2099,
1168,
19313,
62,
17139,
11417,
10979,
764,
198,
220,
1366,
347,
7340,
2099,
1168,
19313,
62,
2389,
62,
12953,
764,
198,
220,
1366,
9440,
3525,
1503,
9399,
2099,
1168,
19313,
62,
2389,
62,
9858,
3525,
1503,
9399,
764,
198,
220,
1366,
36751,
2099,
569,
32541,
764,
198,
220,
1366,
41458,
46,
2099,
1168,
19313,
62,
2389,
62,
4805,
28644,
46,
764,
198,
19734,
2665,
13,
198,
9,
1,
9,
2839,
6805,
286,
1398,
1168,
5097,
62,
17139,
16219,
12529,
62,
47,
4877,
8808,
198,
9,
1,
9,
466,
407,
2291,
584,
2723,
3696,
994,
10185,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
17139,
16219,
12529,
62,
47,
4877,
8808,
30023,
2538,
10979,
6234,
13,
628,
198,
24396,
17151,
62,
17139,
11417,
10979,
13,
198,
8162,
19499,
26761,
8870,
1415,
486,
198,
220,
220,
220,
220,
366,
8024,
15731,
16724,
198,
220,
220,
220,
220,
366,
8620,
327,
55,
62,
2640,
62,
9864,
23680,
62,
11929,
62,
37,
15919,
198,
17174,
17174,
4557,
198,
9,
32039,
220,
220,
220,
220,
220,
220,
220,
1058,
3497,
3460,
4163,
26195,
11417,
10979,
198,
9,
198,
9,
10628,
220,
220,
220,
220,
220,
220,
220,
1058,
362,
13,
15,
198,
9,
198,
9,
3771,
31448,
220,
220,
1058,
532,
198,
9,
198,
9,
2947,
31448,
220,
1058,
383,
2134,
1181,
318,
9639,
11,
1255,
318,
900,
198,
9,
198,
9,
440,
46,
1475,
11755,
220,
1058,
327,
55,
62,
2640,
62,
9864,
23680,
62,
11929,
62,
37,
15919,
198,
9,
198,
9,
46333,
1058,
532,
198,
9,
198,
17174,
17174,
4557,
198,
9,
609,
8368,
519,
25,
198,
9,
532,
4751,
12,
3070,
12,
1415,
220,
220,
1058,
357,
33,
10761,
8,
10628,
362,
13,
15,
198,
9,
532,
4751,
12,
2998,
12,
2078,
220,
220,
1058,
357,
16811,
8,
220,
440,
46,
1475,
11755,
198,
17174,
17174,
4557,
198,
198,
9,
1635,
45255,
1398,
5797,
290,
5412,
13269,
198,
220,
1181,
62,
961,
62,
15526,
13,
628,
220,
1255,
796,
26195,
11417,
10979,
13,
628,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
366,
17151,
62,
17139,
11417,
10979,
198,
437,
24396,
13,
628,
198,
24396,
17151,
62,
12953,
13,
198,
8162,
19499,
26761,
8870,
1415,
486,
198,
220,
220,
220,
220,
366,
8024,
15731,
16724,
198,
220,
220,
220,
220,
366,
8620,
327,
55,
62,
2640,
62,
9864,
23680,
62,
11929,
62,
37,
15919,
198,
17174,
17174,
4557,
198,
9,
32039,
220,
220,
220,
220,
220,
220,
220,
1058,
3497,
3460,
4163,
347,
7340,
198,
9,
198,
9,
10628,
220,
220,
220,
220,
220,
220,
220,
1058,
362,
13,
15,
198,
9,
198,
9,
3771,
31448,
220,
220,
1058,
532,
198,
9,
198,
9,
2947,
31448,
220,
1058,
383,
2134,
1181,
318,
9639,
11,
1255,
318,
900,
198,
9,
198,
9,
440,
46,
1475,
11755,
220,
1058,
327,
55,
62,
2640,
62,
9864,
23680,
62,
11929,
62,
37,
15919,
198,
9,
198,
9,
46333,
1058,
532,
198,
9,
198,
17174,
17174,
4557,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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
REPORT ZHELLO_WORLD.
START-OF-SELECTION.
WRITE: 'Fuck You Github!'.
| [
2200,
15490,
1168,
13909,
3069,
46,
62,
45359,
11163,
13,
198,
198,
2257,
7227,
12,
19238,
12,
46506,
2849,
13,
198,
220,
220,
220,
44423,
25,
705,
34094,
921,
38994,
0,
4458,
628,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
FUNCTION /GAL/JS_RUN_JOBS_ASYNC_PART.
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" REFERENCE(RFC_ROUTE_INFO) TYPE /GAL/RFC_ROUTE_INFO OPTIONAL
*" REFERENCE(RFC_ROUTE_INFO_STEP2) TYPE /GAL/RFC_ROUTE_INFO
*" OPTIONAL
*" REFERENCE(JS_JOB_ID) TYPE /GAL/JOB_ID
*" REFERENCE(JOB_NAME) TYPE BTCJOB DEFAULT 'BACKGROUND_JOB'
*" REFERENCE(RELEASE_SAP_JOB_ONLY) TYPE ABAP_BOOL DEFAULT
*" ABAP_FALSE
*" EXPORTING
*" REFERENCE(JOB_COUNT) TYPE BTCJOBCNT
*" EXCEPTIONS
*" CANNOT_SUBMIT_JOB
*" RFC_EXCEPTION
*"----------------------------------------------------------------------
DATA:
l_dummy TYPE trdir, "#EC NEEDED
l_job TYPE REF TO /gal/job,
l_ex TYPE REF TO /gal/cx_js_exception,
l_enqueued TYPE flag,
l_rfc_ex_info TYPE /gal/exception_info,
l_config_store TYPE REF TO /gal/config_store_local,
l_config_folder TYPE REF TO /gal/config_node,
l_jobclass TYPE btcjobclas,
l_message TYPE string.
DATA l_program TYPE syrepid.
DATA l_print_parameters TYPE pri_params.
DATA l_print_params_valid TYPE abap_bool.
DATA l_start_immediately TYPE boolean.
* Initialize result
CLEAR job_count.
* Follow RFC route
cfw_follow_rfc_route rfc_route_info.
cfw_pass_exception rfc_exception.
cfw_pass_exception cannot_submit_job.
cfw_remote_coding.
* Schedule job on target system if different from central system
IF rfc_route_info_step2 IS NOT INITIAL.
CALL FUNCTION '/GAL/JS_RUN_JOBS_ASYNC_PART'
EXPORTING
rfc_route_info = rfc_route_info_step2
js_job_id = js_job_id
job_name = job_name
release_sap_job_only = release_sap_job_only
IMPORTING
job_count = job_count
EXCEPTIONS
rfc_exception = 1
OTHERS = 2.
IF sy-subrc = 1.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING rfc_exception.
ELSEIF sy-subrc = 2.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING cannot_submit_job.
ENDIF.
RETURN.
ENDIF.
* Check connection to central system
CALL FUNCTION '/GAL/RFC_ROUTE_PING'
EXPORTING
rfc_route_info = /gal/job=>store_rfc_route_info
IMPORTING
exception_info = l_rfc_ex_info.
IF l_rfc_ex_info IS NOT INITIAL.
IF l_rfc_ex_info-message_text IS NOT INITIAL.
/gal/trace=>write_text( text = l_rfc_ex_info-message_text ).
ENDIF.
/gal/string=>string_to_message_vars( EXPORTING input = TEXT-001
IMPORTING msgv1 = sy-msgv1
msgv2 = sy-msgv2
msgv3 = sy-msgv3
msgv4 = sy-msgv4 ).
MESSAGE e012(/gal/js) WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING rfc_exception.
ENDIF.
* Jobklasse aus dem Konfigurationseditor lesen
TRY.
* Create instance of configuration store
CREATE OBJECT l_config_store.
* Get instance of node
l_config_folder = l_config_store->get_node( path = '/Galileo Group AG/Open Source Components/Job Scheduler/Job class for satellite system' ). "#EC NOTEXT
l_config_folder->get_value( IMPORTING value = l_jobclass ).
CATCH /gal/cx_config_exception.
CLEAR l_jobclass.
ENDTRY.
* Open new background job
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = job_name
jobclass = l_jobclass
IMPORTING
jobcount = job_count
EXCEPTIONS
OTHERS = 1.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING cannot_submit_job.
ENDIF.
* Update job data
TRY.
l_job = /gal/job=>read_job_from_db( id = js_job_id
enqueue = abap_true ).
l_enqueued = abap_true.
l_job->set_jobdata( job_name = job_name
job_count = job_count ).
l_job->dequeue( ).
CATCH /gal/cx_js_exception INTO l_ex.
IF l_enqueued = abap_true.
TRY.
l_job->dequeue( ).
CATCH /gal/cx_js_exception. "#EC NO_HANDLER
ENDTRY.
ENDIF.
l_message = l_ex->get_text( ).
/gal/string=>string_to_message_vars( EXPORTING input = l_message
IMPORTING msgv1 = sy-msgv1
msgv2 = sy-msgv2
msgv3 = sy-msgv3
msgv4 = sy-msgv4 ).
MESSAGE e012(/gal/js) WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING cannot_submit_job.
ENDTRY.
* Get output parameters
CLEAR l_print_parameters.
l_program = l_job->get_program_name( ).
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
in_parameters = l_print_parameters
no_dialog = abap_true
report = l_program
IMPORTING
out_parameters = l_print_parameters
valid_for_spool_creation = l_print_params_valid
EXCEPTIONS
OTHERS = 1.
* Schedule job execution report
IF sy-subrc = 0 AND l_print_params_valid = abap_true.
SUBMIT /gal/js_run_jobs_async_part
WITH p_job_id = js_job_id
TO SAP-SPOOL
SPOOL PARAMETERS l_print_parameters
WITHOUT SPOOL DYNPRO
VIA JOB job_name NUMBER job_count
AND RETURN. "#EC CI_SUBMIT
ELSE.
SUBMIT /gal/js_run_jobs_async_part
WITH p_job_id = js_job_id
VIA JOB job_name NUMBER job_count
AND RETURN. "#EC CI_SUBMIT
ENDIF.
* Close job
IF release_sap_job_only = abap_false.
l_start_immediately = abap_true.
ELSE.
l_start_immediately = abap_false.
ENDIF.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = job_count
jobname = job_name
strtimmed = l_start_immediately
EXCEPTIONS
OTHERS = 1.
IF sy-subrc <> 0.
* TODO: Delete Job
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING cannot_submit_job.
ENDIF.
ENDFUNCTION.
| [
42296,
4177,
2849,
1220,
38,
1847,
14,
20120,
62,
49,
4944,
62,
45006,
4462,
62,
26483,
7792,
62,
30709,
13,
198,
9,
1,
10097,
23031,
198,
9,
1,
9,
1,
14565,
26491,
25,
198,
9,
1,
220,
30023,
9863,
2751,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
41150,
62,
49,
2606,
9328,
62,
10778,
8,
41876,
220,
1220,
38,
1847,
14,
41150,
62,
49,
2606,
9328,
62,
10778,
39852,
2849,
1847,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
41150,
62,
49,
2606,
9328,
62,
10778,
62,
42135,
17,
8,
41876,
220,
1220,
38,
1847,
14,
41150,
62,
49,
2606,
9328,
62,
10778,
198,
9,
1,
220,
220,
220,
220,
220,
220,
39852,
2849,
1847,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
20120,
62,
41,
9864,
62,
2389,
8,
41876,
220,
1220,
38,
1847,
14,
41,
9864,
62,
2389,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
41,
9864,
62,
20608,
8,
41876,
220,
14503,
41,
9864,
5550,
38865,
705,
31098,
46025,
62,
41,
9864,
6,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
2200,
22781,
62,
50,
2969,
62,
41,
9864,
62,
1340,
11319,
8,
41876,
220,
9564,
2969,
62,
8202,
3535,
5550,
38865,
198,
9,
1,
220,
220,
220,
220,
220,
220,
9564,
2969,
62,
37,
23719,
198,
9,
1,
220,
7788,
15490,
2751,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
41,
9864,
62,
34,
28270,
8,
41876,
220,
14503,
45006,
2749,
11251,
198,
9,
1,
220,
7788,
42006,
11053,
198,
9,
1,
220,
220,
220,
220,
220,
15628,
11929,
62,
50,
10526,
36393,
62,
41,
9864,
198,
9,
1,
220,
220,
220,
220,
220,
30978,
62,
6369,
42006,
2849,
198,
9,
1,
10097,
23031,
628,
220,
42865,
25,
198,
220,
220,
220,
300,
62,
67,
13513,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
491,
15908,
11,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
25113,
2943,
36465,
1961,
198,
220,
220,
220,
300,
62,
21858,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1220,
13528,
14,
21858,
11,
198,
220,
220,
220,
300,
62,
1069,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1220,
13528,
14,
66,
87,
62,
8457,
62,
1069,
4516,
11,
198,
220,
220,
220,
300,
62,
268,
4188,
1739,
220,
220,
220,
220,
220,
41876,
6056,
11,
198,
220,
220,
220,
300,
62,
81,
16072,
62,
1069,
62,
10951,
220,
220,
41876,
1220,
13528,
14,
1069,
4516,
62,
10951,
11,
198,
220,
220,
220,
300,
62,
11250,
62,
8095,
220,
41876,
4526,
37,
5390,
1220,
13528,
14,
11250,
62,
8095,
62,
12001,
11,
198,
220,
220,
220,
300,
62,
11250,
62,
43551,
41876,
4526,
37,
5390,
1220,
13528,
14,
11250,
62,
17440,
11,
198,
220,
220,
220,
300,
62,
21858,
4871,
220,
220,
220,
220,
220,
41876,
275,
23047,
21858,
565,
292,
11,
198,
220,
220,
220,
300,
62,
20500,
220,
220,
220,
220,
220,
220,
41876,
4731,
13,
628,
220,
42865,
300,
62,
23065,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
827,
7856,
312,
13,
628,
220,
42865,
300,
62,
4798,
62,
17143,
7307,
220,
220,
41876,
1293,
62,
37266,
13,
198,
220,
42865,
300,
62,
4798,
62,
37266,
62,
12102,
41876,
450,
499,
62,
30388,
13,
628,
220,
42865,
300,
62,
9688,
62,
320,
23802,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
25131,
13,
198,
198,
9,
20768,
1096,
1255,
198,
220,
30301,
1503,
1693,
62,
9127,
13,
198,
198,
9,
7281,
30978,
6339,
198,
220,
30218,
86,
62,
27780,
62,
81,
16072,
62,
38629,
374,
16072,
62,
38629,
62,
10951,
13,
198,
220,
30218,
86,
62,
6603,
62,
1069,
4516,
374,
16072,
62,
1069,
4516,
13,
198,
220,
30218,
86,
62,
6603,
62,
1069,
4516,
2314,
62,
46002,
62,
21858,
13,
198,
220,
30218,
86,
62,
47960,
62,
66,
7656,
13,
198,
198,
9,
19281,
1693,
319,
2496,
1080,
611,
1180,
422,
4318,
1080,
198,
220,
16876,
374,
16072,
62,
38629,
62,
10951,
62,
9662,
17,
3180,
5626,
3268,
2043,
12576,
13,
198,
220,
220,
220,
42815,
29397,
4177,
2849,
31051,
38,
1847,
14,
20120,
62,
49,
4944,
62,
45006,
4462,
62,
26483,
7792,
62,
30709,
6,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
374,
16072,
62,
38629,
62,
10951,
220,
220,
220,
220,
220,
220,
796,
374,
16072,
62,
38629,
62,
10951,
62,
9662,
17,
198,
220,
220,
220,
220,
220,
220,
220,
44804,
62,
21858,
62,
312,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
44804,
62,
21858,
62,
312,
198,
220,
220,
220,
220,
220,
220,
220,
1693,
62,
3672,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
1693,
62,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
2650,
62,
82,
499,
62,
21858,
62,
8807,
796,
2650,
62,
82,
499,
62,
21858,
62,
8807,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1693,
62,
9127,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
1693,
62,
9127,
198,
220,
220,
220,
220,
220,
7788,
42006,
11053,
198,
220,
220,
220,
220,
220,
220,
220,
374,
16072,
62,
1069,
4516,
220,
220,
220,
220,
220,
220,
220,
796,
352,
198,
220,
220,
220,
220,
220,
220,
220,
440,
4221,
4877,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
362,
13,
198,
220,
220,
220,
16876,
827,
12,
7266,
6015,
796,
352,
13,
198,
220,
220,
220,
220,
220,
337,
1546,
4090,
8264,
4522,
827,
12,
19662,
312,
41876,
827,
12,
19662,
774,
36871,
13246,
827,
12,
19662,
3919,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
13315,
827,
12,
19662,
85,
16,
827,
12,
19662,
85,
17,
827,
12,
19662,
85,
18
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS cl_abapgit_res_repo_pull DEFINITION
PUBLIC
INHERITING FROM cl_adt_rest_resource
FINAL
CREATE PUBLIC.
PUBLIC SECTION.
TYPES:
BEGIN OF ty_request_pull_data,
branch TYPE string,
transportrequest TYPE string,
user TYPE string,
password TYPE string,
END OF ty_request_pull_data.
CONSTANTS co_st_name_pull TYPE string VALUE 'ABAPGIT_ST_REPO_PULL' ##NO_TEXT.
CONSTANTS co_root_name_pull TYPE string VALUE 'REPOSITORY' ##NO_TEXT.
CONSTANTS co_content_type_repo_v1 TYPE string VALUE 'application/abapgit.adt.repo.v1+xml' ##NO_TEXT.
CONSTANTS co_content_type_repos_v1 TYPE string VALUE 'application/abapgit.adt.repos.v1+xml' ##NO_TEXT.
CONSTANTS co_st_name_pull_v2 TYPE string VALUE 'ABAPGIT_ST_REPO_PULL_V2' ##NO_TEXT.
CONSTANTS co_content_type_repo_v3 TYPE string VALUE 'application/abapgit.adt.repo.v3+xml' ##NO_TEXT.
CONSTANTS co_content_type_repos_v2 TYPE string VALUE 'application/abapgit.adt.repos.v2+xml' ##NO_TEXT.
METHODS post REDEFINITION.
METHODS get REDEFINITION.
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS cl_abapgit_res_repo_pull IMPLEMENTATION.
METHOD get.
DATA(ls_requested_content_type) =
request->get_inner_rest_request( )->get_header_field( if_http_header_fields=>content_type ).
" case co_content_type_repos_v2 to handle pull for emf model of abapGit Repositories view.
CASE ls_requested_content_type.
WHEN co_content_type_repos_v1.
DATA(lo_resp_content_handler) =
cl_adt_rest_cnt_hdl_factory=>get_instance( )->get_handler_for_plain_text(
content_type = co_content_type_repos_v1
strict_conversion = abap_true ).
WHEN co_content_type_repos_v2.
lo_resp_content_handler =
cl_adt_rest_cnt_hdl_factory=>get_instance( )->get_handler_for_plain_text(
content_type = co_content_type_repos_v2
strict_conversion = abap_true ).
WHEN OTHERS.
response->set_status( cl_rest_status_code=>gc_client_error_bad_request ).
ENDCASE.
" validation of request 'Accept:' header
cl_adt_rest_comp_cnt_handler=>create( request = request
content_handler = lo_resp_content_handler )->check_cnt_type_is_supported( ).
TRY.
response->set_body_data(
content_handler = lo_resp_content_handler
data = |DEMO STATUS| ).
CATCH cx_st_error cx_abapgit_exception INTO DATA(lx_error).
cx_adt_rest_abapgit=>raise_with_error(
ix_error = lx_error
iv_http_status = cl_rest_status_code=>gc_server_error_internal ).
ENDTRY.
ENDMETHOD.
METHOD post.
DATA:
ls_request_data TYPE ty_request_pull_data,
lv_repo_key TYPE if_abapgit_persistence=>ty_value.
TRY.
" Get Repository Key
request->get_uri_attribute( EXPORTING
name = 'key'
mandatory = abap_true
IMPORTING
value = lv_repo_key ).
" case co_content_type_repo_v3 to handle pull request for emf model of abapGit Repositories view.
DATA(ls_requested_content_type) =
request->get_inner_rest_request( )->get_header_field( if_http_header_fields=>content_type ).
CASE ls_requested_content_type.
WHEN co_content_type_repo_v1.
DATA(lo_request_content_handler) = cl_adt_rest_comp_cnt_handler=>create(
request = request
content_handler = cl_adt_rest_cnt_hdl_factory=>get_instance( )->get_handler_for_xml_using_st(
st_name = co_st_name_pull
root_name = co_root_name_pull
content_type = co_content_type_repo_v1 ) ).
WHEN co_content_type_repo_v3.
lo_request_content_handler = cl_adt_rest_comp_cnt_handler=>create(
request = request
content_handler = cl_adt_rest_cnt_hdl_factory=>get_instance( )->get_handler_for_xml_using_st(
st_name = co_st_name_pull_v2
root_name = co_root_name_pull
content_type = co_content_type_repo_v3 ) ).
WHEN OTHERS.
response->set_status( cl_rest_status_code=>gc_client_error_bad_request ).
ENDCASE.
" Retrieve request data
request->get_body_data(
EXPORTING
content_handler = lo_request_content_handler
IMPORTING
data = ls_request_data ).
" Trigger pull as background job
DATA(lo_bg_action) =
cl_abapgit_bg_action_factory=>get_action_instance( iv_repo_key = lv_repo_key
iv_action = if_abapgit_app_log=>c_action_pull ).
" define parameter for background job
DATA(lv_type) = lo_bg_action->get_param_type( ).
DATA ls_param TYPE REF TO data.
FIELD-SYMBOLS <lv_field> TYPE any.
CREATE DATA ls_param TYPE (lv_type).
ASSIGN ls_param->* TO FIELD-SYMBOL(<ls_param>).
ASSIGN COMPONENT 'BRANCH' OF STRUCTURE <ls_param> TO <lv_field>.
<lv_field> = ls_request_data-branch.
ASSIGN COMPONENT 'TRANSPORTREQUEST' OF STRUCTURE <ls_param> TO <lv_field>.
<lv_field> = ls_request_data-transportrequest.
lo_bg_action->set_param( ir_param = REF #( <ls_param> ) ).
" provide repository credentials
DATA ls_credentials TYPE tsa4c_abapgit_credentials.
ls_credentials-user = ls_request_data-user.
ls_credentials-password = ls_request_data-password.
lo_bg_action->set_credentials( ls_credentials ).
" schedule pull
lo_bg_action->schedule_job( ).
response->set_status( cl_rest_status_code=>gc_success_accepted ).
" Handle issues
CATCH cx_abapgit_bg_action_running INTO DATA(lx_bg_action_running).
cx_adt_rest_abapgit=>raise_with_error(
ix_error = lx_bg_action_running
iv_http_status = cl_rest_status_code=>gc_client_error_conflict ). "409
CATCH cx_abapgit_exception cx_abapgit_app_log cx_a4c_logger cx_cbo_job_scheduler cx_uuid_error
cx_abapgit_not_found INTO DATA(lx_exception).
ROLLBACK WORK.
cx_adt_rest_abapgit=>raise_with_error(
ix_error = lx_exception
iv_http_status = cl_rest_status_code=>gc_server_error_internal ).
ENDTRY.
ENDMETHOD.
ENDCLASS.
| [
31631,
537,
62,
397,
499,
18300,
62,
411,
62,
260,
7501,
62,
31216,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
537,
62,
324,
83,
62,
2118,
62,
31092,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
13,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
1259,
62,
25927,
62,
31216,
62,
7890,
11,
198,
220,
220,
220,
220,
220,
220,
220,
8478,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
4839,
25927,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2836,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
9206,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
25927,
62,
31216,
62,
7890,
13,
628,
220,
220,
220,
7102,
2257,
1565,
4694,
763,
62,
301,
62,
3672,
62,
31216,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
220,
220,
220,
220,
26173,
8924,
705,
6242,
2969,
38,
2043,
62,
2257,
62,
2200,
16402,
62,
5105,
3069,
6,
22492,
15285,
62,
32541,
13,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
763,
62,
15763,
62,
3672,
62,
31216,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
220,
220,
220,
220,
26173,
8924,
705,
35316,
2640,
2043,
15513,
6,
22492,
15285,
62,
32541,
13,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
763,
62,
11299,
62,
4906,
62,
260,
7501,
62,
85,
16,
220,
220,
41876,
4731,
220,
220,
220,
220,
26173,
8924,
705,
31438,
14,
397,
499,
18300,
13,
324,
83,
13,
260,
7501,
13,
85,
16,
10,
19875,
6,
22492,
15285,
62,
32541,
13,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
763,
62,
11299,
62,
4906,
62,
260,
1930,
62,
85,
16,
220,
41876,
4731,
220,
220,
220,
220,
26173,
8924,
705,
31438,
14,
397,
499,
18300,
13,
324,
83,
13,
260,
1930,
13,
85,
16,
10,
19875,
6,
22492,
15285,
62,
32541,
13,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
763,
62,
301,
62,
3672,
62,
31216,
62,
85,
17,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
220,
220,
220,
220,
26173,
8924,
705,
6242,
2969,
38,
2043,
62,
2257,
62,
2200,
16402,
62,
5105,
3069,
62,
53,
17,
6,
22492,
15285,
62,
32541,
13,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
763,
62,
11299,
62,
4906,
62,
260,
7501,
62,
85,
18,
220,
220,
41876,
4731,
220,
220,
220,
220,
26173,
8924,
705,
31438,
14,
397,
499,
18300,
13,
324,
83,
13,
260,
7501,
13,
85,
18,
10,
19875,
6,
22492,
15285,
62,
32541,
13,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
763,
62,
11299,
62,
4906,
62,
260,
1930,
62,
85,
17,
220,
41876,
4731,
220,
220,
220,
220,
26173,
8924,
705,
31438,
14,
397,
499,
18300,
13,
324,
83,
13,
260,
1930,
13,
85,
17,
10,
19875,
6,
22492,
15285,
62,
32541,
13,
628,
220,
220,
220,
337,
36252,
50,
1281,
23848,
36,
20032,
17941,
13,
198,
220,
220,
220,
337,
36252,
50,
651,
220,
23848,
36,
20032,
17941,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
198,
10619,
31631,
13,
628,
198,
198,
31631,
537,
62,
397,
499,
18300,
62,
411,
62,
260,
7501,
62,
31216,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
651,
13,
628,
220,
220,
220,
42865,
7,
7278,
62,
25927,
276,
62,
11299,
62,
4906,
8,
796,
198,
220,
220,
220,
220,
220,
2581,
3784,
1136,
62,
5083,
62,
2118,
62,
25927,
7,
1267,
3784,
1136,
62,
25677,
62,
3245,
7,
611,
62,
4023,
62,
25677,
62,
25747,
14804,
11299,
62,
4906,
6739,
628,
220,
220,
220,
366,
1339,
763,
62,
11299,
62,
4906,
62,
260,
1930,
62,
85,
17,
284,
5412,
2834,
329,
795,
69,
2746,
286,
450,
499,
38,
270,
1432,
35061,
1570,
13,
628,
220,
220,
220,
42001,
43979,
62,
25927,
276,
62,
11299,
62,
4906,
13,
198,
220,
220,
220,
220,
220,
42099,
763,
62,
11299,
62,
4906,
62,
260,
1930,
62,
85,
16,
13,
198,
220,
220,
220,
220,
220,
220,
220,
42865,
7,
5439,
62,
4363,
62,
11299,
62,
30281,
8,
796,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
537,
62,
324,
83,
62,
2118,
62,
66,
429,
62,
71,
25404,
62,
69,
9548,
14804,
1136,
62,
39098,
7,
1267,
3784,
1136,
62,
30281,
62,
1640,
62,
25638,
62,
5239,
7,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2695,
62,
4906,
220,
220,
220,
220,
220,
796,
763,
62,
11299,
62,
4906,
62,
260,
1930,
62,
85,
16,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
7646,
62,
1102,
9641,
796,
450,
499,
62,
7942,
6739,
198,
220,
220,
220,
220,
220,
42099,
763,
62,
11299,
62,
4906,
62,
260,
1930,
62,
85,
17,
13,
198,
220,
220,
220,
220,
220,
220,
220,
2376,
62,
4363,
62,
11299,
62,
30281,
796,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
537,
62,
324,
83,
62,
2118,
62,
66,
429,
62,
71,
25404,
62,
69,
9548,
14804,
1136,
62,
39098,
7,
1267,
3784,
1136,
62,
30281,
62,
1640,
62,
25638,
62,
5239
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
"! <p class="shorttext synchronized" lang="en">Object does not exist error</p>
CLASS zcx_dutils_not_exists DEFINITION
PUBLIC
INHERITING FROM zcx_dutils_exception
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
METHODS:
"! <p class="shorttext synchronized" lang="en">CONSTRUCTOR</p>
constructor
IMPORTING
previous LIKE previous OPTIONAL
text TYPE string OPTIONAL.
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS zcx_dutils_not_exists IMPLEMENTATION.
METHOD constructor ##ADT_SUPPRESS_GENERATION.
super->constructor( previous = previous text = text ).
ENDMETHOD.
ENDCLASS.
| [
40484,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
10267,
857,
407,
2152,
4049,
3556,
79,
29,
198,
31631,
1976,
66,
87,
62,
67,
26791,
62,
1662,
62,
1069,
1023,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
1976,
66,
87,
62,
67,
26791,
62,
1069,
4516,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
10943,
46126,
1581,
3556,
79,
29,
198,
220,
220,
220,
220,
220,
23772,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2180,
34178,
2180,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2420,
220,
220,
220,
220,
41876,
4731,
39852,
2849,
1847,
13,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
66,
87,
62,
67,
26791,
62,
1662,
62,
1069,
1023,
30023,
2538,
10979,
6234,
13,
628,
220,
337,
36252,
23772,
22492,
2885,
51,
62,
40331,
32761,
62,
35353,
1137,
6234,
13,
198,
220,
220,
220,
2208,
3784,
41571,
273,
7,
2180,
796,
2180,
2420,
796,
2420,
6739,
198,
220,
23578,
49273,
13,
198,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
"! Annotated class for examples
CLASS zcl_aap_example_class DEFINITION
PUBLIC
FINAL
CREATE PUBLIC.
PUBLIC SECTION.
INTERFACES:
zif_aap_annotatable.
METHODS:
annotated_method IMPORTING iv_annotated_parameter TYPE string.
DATA:
mv_not_annotated_inst_attr TYPE string.
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS ZCL_AAP_EXAMPLE_CLASS IMPLEMENTATION.
METHOD annotated_method ##NEEDED.
ENDMETHOD.
ENDCLASS.
| [
40484,
1052,
1662,
515,
1398,
329,
6096,
198,
31631,
1976,
565,
62,
64,
499,
62,
20688,
62,
4871,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
25,
198,
220,
220,
220,
220,
220,
1976,
361,
62,
64,
499,
62,
34574,
21156,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
24708,
515,
62,
24396,
30023,
9863,
2751,
21628,
62,
34574,
515,
62,
17143,
2357,
41876,
4731,
13,
198,
220,
220,
220,
42865,
25,
198,
220,
220,
220,
220,
220,
285,
85,
62,
1662,
62,
34574,
515,
62,
8625,
62,
35226,
41876,
4731,
13,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
32,
2969,
62,
6369,
2390,
16437,
62,
31631,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
24708,
515,
62,
24396,
22492,
12161,
1961,
1961,
13,
198,
220,
23578,
49273,
13,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
FUNCTION zgtt_sof_ee_de_hd.
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" REFERENCE(I_APPSYS) TYPE /SAPTRX/APPLSYSTEM
*" REFERENCE(I_APP_OBJ_TYPES) TYPE /SAPTRX/AOTYPES
*" REFERENCE(I_ALL_APPL_TABLES) TYPE TRXAS_TABCONTAINER
*" REFERENCE(I_APP_TYPE_CNTL_TABS) TYPE TRXAS_APPTYPE_TABS
*" REFERENCE(I_APP_OBJECTS) TYPE TRXAS_APPOBJ_CTABS
*" TABLES
*" E_EXPEVENTDATA STRUCTURE /SAPTRX/EXP_EVENTS
*" E_MEASRMNTDATA STRUCTURE /SAPTRX/MEASR_DATA OPTIONAL
*" E_INFODATA STRUCTURE /SAPTRX/INFO_DATA OPTIONAL
*" E_LOGTABLE STRUCTURE BAPIRET2 OPTIONAL
*" EXCEPTIONS
*" PARAMETER_ERROR
*" EXP_EVENT_DETERM_ERROR
*" TABLE_DETERMINATION_ERROR
*" STOP_PROCESSING
*"----------------------------------------------------------------------
DATA:
* Definition of all application objects
ls_app_objects TYPE trxas_appobj_ctab_wa,
* Work Structure for Expected Event
ls_expeventdata TYPE /saptrx/exp_events,
* Event expected date/time
lv_tsmp TYPE /saptrx/event_exp_datetime,
* System Timezone
lv_timezone TYPE timezone,
* header status new
lt_xvbuk TYPE STANDARD TABLE OF vbukvb,
* Planned Event relevance
ls_eerel TYPE zgtt_sof_ee_rel.
DATA: ls_vbfa_new TYPE vbfavb,
lt_vbfa_new TYPE STANDARD TABLE OF vbfavb,
ls_stop TYPE zgtt_stop_info,
ls_dlv_watching_stop TYPE zgtt_dlv_watch_stop,
lt_stops_tmp TYPE zgtt_stops,
lt_dlv_watching_stops_tmp TYPE zgtt_dlv_watch_stops,
lt_stops TYPE zgtt_stops,
lt_dlv_watching_stops TYPE zgtt_dlv_watch_stops.
FIELD-SYMBOLS:
* Delivery Header
<ls_xlikp> TYPE likpvb,
* Header Status New
<ls_xvbuk> TYPE vbukvb.
* <1> Read necessary application tables
* Read Header Status Data New
PERFORM read_appl_table
USING i_all_appl_tables
gc_bpt_delivery_hdrstatus_new
CHANGING lt_xvbuk.
* Read Header Status Data New
PERFORM read_appl_table
USING i_all_appl_tables
gc_bpt_document_flow_new
CHANGING lt_vbfa_new.
* <2> Fill general data for all control data records
CLEAR ls_expeventdata.
* Logical System ID of an application system
ls_expeventdata-appsys = i_appsys.
* Application Object type
ls_expeventdata-appobjtype = i_app_obj_types-aotype.
* Login Language
ls_expeventdata-language = sy-langu.
* Get System TimeZone
CALL FUNCTION 'GET_SYSTEM_TIMEZONE'
IMPORTING
timezone = lv_timezone
EXCEPTIONS
customizing_missing = 1
OTHERS = 2.
* <3> Loop at application objects
LOOP AT i_app_objects INTO ls_app_objects.
* Application Object ID
ls_expeventdata-appobjid = ls_app_objects-appobjid.
* Check if Main table is Delivery Header or not.
IF ls_app_objects-maintabdef >< gc_bpt_delivery_header_new.
PERFORM create_logtable_aot
TABLES e_logtable
USING ls_app_objects-maintabdef
space
i_app_obj_types-expeventfunc
ls_app_objects-appobjtype
i_appsys.
EXIT.
ENDIF.
* Read Main Table
ASSIGN ls_app_objects-maintabref->* TO <ls_xlikp>.
READ TABLE lt_xvbuk ASSIGNING <ls_xvbuk> WITH KEY vbeln = <ls_xlikp>-vbeln.
CLEAR ls_eerel.
SELECT SINGLE * INTO ls_eerel FROM zgtt_sof_ee_rel WHERE appobjid = ls_app_objects-appobjid.
ls_eerel-mandt = sy-mandt.
ls_eerel-appobjid = ls_app_objects-appobjid.
IF <ls_xvbuk>-kostk = 'A'.
ls_eerel-z_kostk = gc_true.
ELSEIF <ls_xvbuk>-kostk = ''.
ls_eerel-z_kostk = gc_false.
ENDIF.
IF <ls_xvbuk>-pkstk = 'A'.
ls_eerel-z_pkstk = gc_true.
ELSEIF <ls_xvbuk>-pkstk = ''.
ls_eerel-z_pkstk = gc_false.
ENDIF.
IF <ls_xvbuk>-trsta = 'A'.
ls_eerel-z_trsta = gc_true.
ELSEIF <ls_xvbuk>-trsta = ''.
ls_eerel-z_trsta = gc_false.
ENDIF.
IF <ls_xvbuk>-wbstk = 'A'.
ls_eerel-z_wbstk = gc_true.
ELSEIF <ls_xvbuk>-wbstk = ''.
ls_eerel-z_wbstk = gc_false.
ENDIF.
IF <ls_xvbuk>-pdstk = 'A'.
ls_eerel-z_pdstk = gc_true.
ELSEIF <ls_xvbuk>-pdstk = ''.
ls_eerel-z_pdstk = gc_false.
ENDIF.
MODIFY zgtt_sof_ee_rel FROM ls_eerel.
COMMIT WORK.
CLEAR ls_expeventdata-locid2.
IF ls_eerel-z_wbstk = gc_true.
* < Goods Issued >
ls_expeventdata-milestone = 'GOODS_ISSUE'.
* Get Planned GI datetime
PERFORM set_local_timestamp
USING <ls_xlikp>-wadat
<ls_xlikp>-wauhr
CHANGING ls_expeventdata-evt_exp_datetime.
ls_expeventdata-evt_exp_tzone = lv_timezone.
ls_expeventdata-loctype = 'ShippingPoint'.
ls_expeventdata-locid1 = <ls_xlikp>-vstel.
APPEND ls_expeventdata TO e_expeventdata.
ENDIF.
CLEAR: lt_stops, lt_dlv_watching_stops.
DELETE lt_vbfa_new WHERE vbtyp_n NE '8' OR vbtyp_v NE 'J' OR vbelv NE <ls_xlikp>-vbeln.
LOOP AT lt_vbfa_new INTO ls_vbfa_new.
CLEAR: lt_stops_tmp, lt_dlv_watching_stops_tmp.
CALL FUNCTION 'ZGTT_GET_STOPS_FROM_SHIPMENT'
EXPORTING
iv_tknum = ls_vbfa_new-vbeln
IMPORTING
et_stops = lt_stops_tmp
et_dlv_watching_stops = lt_dlv_watching_stops_tmp.
APPEND LINES OF lt_stops_tmp TO lt_stops.
APPEND LINES OF lt_dlv_watching_stops_tmp TO lt_dlv_watching_stops.
ENDLOOP.
SORT lt_stops BY stopid loccat.
SORT lt_dlv_watching_stops BY vbeln stopid loccat.
DELETE ADJACENT DUPLICATES FROM lt_stops COMPARING stopid loccat.
DELETE ADJACENT DUPLICATES FROM lt_dlv_watching_stops COMPARING vbeln stopid loccat.
ls_expeventdata-milestone = 'DEPARTURE'.
LOOP AT lt_dlv_watching_stops INTO ls_dlv_watching_stop WHERE vbeln = <ls_xlikp>-vbeln
AND loccat = 'S'.
READ TABLE lt_stops INTO ls_stop WITH KEY stopid = ls_dlv_watching_stop-stopid
loccat = ls_dlv_watching_stop-loccat.
ls_expeventdata-locid2 = ls_stop-stopid.
ls_expeventdata-loctype = ls_stop-loctype.
ls_expeventdata-locid1 = ls_stop-locid.
ls_expeventdata-evt_exp_datetime = ls_stop-pln_evt_datetime.
ls_expeventdata-evt_exp_tzone = ls_stop-pln_evt_timezone.
APPEND ls_expeventdata TO e_expeventdata.
ENDLOOP.
ls_expeventdata-milestone = 'ARRIV_DEST'.
LOOP AT lt_dlv_watching_stops INTO ls_dlv_watching_stop WHERE vbeln = <ls_xlikp>-vbeln
AND loccat = 'D'.
READ TABLE lt_stops INTO ls_stop WITH KEY stopid = ls_dlv_watching_stop-stopid
loccat = ls_dlv_watching_stop-loccat.
ls_expeventdata-locid2 = ls_stop-stopid.
ls_expeventdata-loctype = ls_stop-loctype.
ls_expeventdata-locid1 = ls_stop-locid.
ls_expeventdata-evt_exp_datetime = ls_stop-pln_evt_datetime.
ls_expeventdata-evt_exp_tzone = ls_stop-pln_evt_timezone.
APPEND ls_expeventdata TO e_expeventdata.
ENDLOOP.
ls_expeventdata-milestone = 'POD'.
LOOP AT lt_dlv_watching_stops INTO ls_dlv_watching_stop WHERE vbeln = <ls_xlikp>-vbeln
AND loccat = 'D'.
READ TABLE lt_stops INTO ls_stop WITH KEY stopid = ls_dlv_watching_stop-stopid
loccat = ls_dlv_watching_stop-loccat.
IF <ls_xlikp>-kunnr EQ ls_stop-locid AND ls_eerel-z_pdstk = 'X'.
ls_expeventdata-locid2 = ls_stop-stopid.
ls_expeventdata-loctype = ls_stop-loctype.
ls_expeventdata-locid1 = ls_stop-locid.
ls_expeventdata-evt_exp_datetime = ls_stop-pln_evt_datetime.
ls_expeventdata-evt_exp_tzone = ls_stop-pln_evt_timezone.
APPEND ls_expeventdata TO e_expeventdata.
ENDIF.
ENDLOOP.
READ TABLE e_expeventdata WITH KEY appobjid = ls_app_objects-appobjid TRANSPORTING NO FIELDS.
IF sy-subrc NE 0.
ls_expeventdata-evt_exp_datetime = '000000000000000'.
ls_expeventdata-milestone = ''.
ls_expeventdata-evt_exp_tzone = ''.
ls_expeventdata-loctype = ''.
ls_expeventdata-locid1 = ''.
ls_expeventdata-locid2 = ''.
APPEND ls_expeventdata TO e_expeventdata.
ENDIF.
ENDLOOP.
ENDFUNCTION.
| [
42296,
4177,
2849,
1976,
70,
926,
62,
568,
69,
62,
1453,
62,
2934,
62,
31298,
13,
198,
9,
1,
10097,
23031,
198,
9,
1,
9,
1,
14565,
26491,
25,
198,
9,
1,
220,
30023,
9863,
2751,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
40,
62,
2969,
3705,
16309,
8,
41876,
220,
1220,
50,
2969,
5446,
55,
14,
2969,
6489,
23060,
25361,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
40,
62,
24805,
62,
9864,
41,
62,
9936,
47,
1546,
8,
41876,
220,
1220,
50,
2969,
5446,
55,
14,
32,
2394,
48232,
1546,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
40,
62,
7036,
62,
2969,
6489,
62,
5603,
9148,
1546,
8,
41876,
220,
7579,
55,
1921,
62,
5603,
2749,
1340,
30339,
1137,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
40,
62,
24805,
62,
25216,
62,
34,
11251,
43,
62,
5603,
4462,
8,
41876,
220,
7579,
55,
1921,
62,
24805,
25216,
62,
5603,
4462,
198,
9,
1,
220,
220,
220,
220,
4526,
24302,
18310,
7,
40,
62,
24805,
62,
9864,
41,
2943,
4694,
8,
41876,
220,
7579,
55,
1921,
62,
24805,
9864,
41,
62,
4177,
32,
4462,
198,
9,
1,
220,
309,
6242,
28378,
198,
9,
1,
220,
220,
220,
220,
220,
412,
62,
6369,
11401,
53,
3525,
26947,
19269,
18415,
11335,
220,
1220,
50,
2969,
5446,
55,
14,
49864,
62,
20114,
15365,
198,
9,
1,
220,
220,
220,
220,
220,
412,
62,
11682,
1921,
29138,
11251,
26947,
19269,
18415,
11335,
220,
1220,
50,
2969,
5446,
55,
14,
11682,
1921,
49,
62,
26947,
39852,
2849,
1847,
198,
9,
1,
220,
220,
220,
220,
220,
412,
62,
1268,
37,
3727,
13563,
19269,
18415,
11335,
220,
1220,
50,
2969,
5446,
55,
14,
10778,
62,
26947,
39852,
2849,
1847,
198,
9,
1,
220,
220,
220,
220,
220,
412,
62,
25294,
38148,
19269,
18415,
11335,
220,
347,
17614,
26087,
17,
39852,
2849,
1847,
198,
9,
1,
220,
7788,
42006,
11053,
198,
9,
1,
220,
220,
220,
220,
220,
29463,
2390,
2767,
1137,
62,
24908,
198,
9,
1,
220,
220,
220,
220,
220,
25703,
62,
20114,
3525,
62,
35,
2767,
1137,
44,
62,
24908,
198,
9,
1,
220,
220,
220,
220,
220,
43679,
62,
35,
2767,
1137,
23678,
6234,
62,
24908,
198,
9,
1,
220,
220,
220,
220,
220,
44934,
62,
4805,
4503,
7597,
2751,
198,
9,
1,
10097,
23031,
198,
220,
42865,
25,
198,
9,
220,
220,
30396,
286,
477,
3586,
5563,
198,
220,
220,
220,
43979,
62,
1324,
62,
48205,
220,
41876,
491,
87,
292,
62,
1324,
26801,
62,
310,
397,
62,
10247,
11,
198,
9,
220,
220,
5521,
32522,
329,
1475,
7254,
8558,
198,
220,
220,
220,
43979,
62,
1069,
431,
1151,
7890,
41876,
1220,
82,
2373,
40914,
14,
11201,
62,
31534,
11,
198,
9,
220,
220,
8558,
2938,
3128,
14,
2435,
198,
220,
220,
220,
300,
85,
62,
912,
3149,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1220,
82,
2373,
40914,
14,
15596,
62,
11201,
62,
19608,
8079,
11,
198,
9,
220,
220,
4482,
3862,
11340,
198,
220,
220,
220,
300,
85,
62,
2435,
11340,
220,
220,
220,
220,
41876,
640,
11340,
11,
198,
9,
220,
220,
13639,
3722,
649,
198,
220,
220,
220,
300,
83,
62,
87,
85,
65,
2724,
220,
220,
220,
220,
220,
220,
220,
41876,
49053,
9795,
43679,
3963,
410,
65,
2724,
85,
65,
11,
198,
9,
220,
220,
18451,
8558,
23082,
198,
220,
220,
220,
43979,
62,
68,
567,
75,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
70,
926,
62,
568,
69,
62,
1453,
62,
2411,
13,
628,
220,
42865,
25,
43979,
62,
85,
65,
13331,
62,
3605,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
410,
19881,
615,
65,
11,
198,
220,
220,
220,
220,
220,
220,
220,
300,
83,
62,
85,
65,
13331,
62,
3605,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
49053,
9795,
43679,
3963,
410,
19881,
615,
65,
11,
198,
220,
220,
220,
220,
220,
220,
220,
43979,
62,
11338,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1976,
70,
926,
62,
11338,
62,
10951,
11,
198,
220,
220,
220,
220,
220,
220,
220,
43979,
62,
67,
6780,
62,
50042,
62,
11338,
220,
220,
220,
220,
220,
41876,
220,
1976,
70,
926,
62,
67,
6780,
62,
8340,
62,
11338,
11,
198,
220,
220,
220,
220,
220,
220,
220,
300,
83,
62,
301,
2840,
62,
22065,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
220,
1976,
70,
926,
62,
301,
2840,
11,
198,
220,
220,
220,
220,
220,
220,
220,
300,
83,
62,
67,
6780,
62,
50042,
62,
301,
2840,
62,
22065,
41876,
220,
1976,
70,
926,
62,
67,
6780,
62,
8340,
62,
301,
2840,
11,
198,
220,
220,
220,
220,
220,
220,
220,
300,
83,
62,
301,
2840,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
220,
1976,
70,
926,
62,
301,
2840,
11,
198,
220,
220,
220,
220,
220,
220,
220,
300,
83,
62,
67,
6780,
62,
50042,
62,
301,
2840,
220,
220,
220,
220,
41876,
220,
1976,
70,
926,
62,
67,
6780,
62,
8340,
62,
301,
2840,
13,
628,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
25,
198,
9,
220,
220,
28682,
48900,
198,
220,
220,
220,
1279,
7278,
62,
87,
46965,
79,
29,
41876,
4300,
79,
85,
65,
11,
198,
9,
220,
220,
48900,
12678,
968,
198,
220,
220,
220,
1279,
7278,
62,
87,
85,
65,
2724,
29,
41876,
410,
65,
2724,
85,
65,
13,
198,
198,
9,
1279,
16,
29,
4149,
3306,
3586,
8893,
198,
9,
4149,
48900,
12678,
6060,
968,
198,
220,
19878,
21389,
1100,
62,
1324,
75,
62,
11487,
198,
220,
220,
220,
1294,
2751,
220,
220,
220,
1312,
62,
439,
62,
1324,
75,
62,
83,
2977,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
308,
66,
62,
65,
457,
62,
12381,
6315,
62,
71,
7109,
13376,
62,
3605,
198,
220,
220,
220,
5870,
15567
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_abapgit_gui_page_sett_remo DEFINITION
PUBLIC
INHERITING FROM zcl_abapgit_gui_component
FINAL
CREATE PRIVATE .
PUBLIC SECTION.
INTERFACES zif_abapgit_gui_event_handler .
INTERFACES zif_abapgit_gui_renderable .
INTERFACES zif_abapgit_gui_hotkeys.
CLASS-METHODS create
IMPORTING
!io_repo TYPE REF TO zcl_abapgit_repo
RETURNING
VALUE(ri_page) TYPE REF TO zif_abapgit_gui_renderable
RAISING
zcx_abapgit_exception .
METHODS constructor
IMPORTING
!io_repo TYPE REF TO zcl_abapgit_repo
RAISING
zcx_abapgit_exception.
PROTECTED SECTION.
PRIVATE SECTION.
TYPES:
BEGIN OF ty_commit_value_tab,
sha1 TYPE zif_abapgit_definitions=>ty_sha1,
message TYPE c LENGTH 50,
datetime TYPE c LENGTH 20,
END OF ty_commit_value_tab .
TYPES:
ty_commit_value_tab_tt TYPE STANDARD TABLE OF ty_commit_value_tab WITH DEFAULT KEY .
CONSTANTS:
BEGIN OF c_mode,
offline TYPE i VALUE 0,
branch TYPE i VALUE 1,
tag TYPE i VALUE 2,
commit TYPE i VALUE 3,
pull_request TYPE i VALUE 4,
END OF c_mode .
CONSTANTS:
BEGIN OF c_id,
general TYPE string VALUE 'general',
repo_type TYPE string VALUE 'repo_type',
head TYPE string VALUE 'head',
url TYPE string VALUE 'url',
branch TYPE string VALUE 'branch',
tag TYPE string VALUE 'tag',
commit TYPE string VALUE 'commmit',
pull_request TYPE string VALUE 'pull_request',
END OF c_id .
CONSTANTS:
BEGIN OF c_event,
go_back TYPE string VALUE 'go-back',
save TYPE string VALUE 'save',
switch TYPE string VALUE 'switch',
choose_url TYPE string VALUE 'choose_url',
choose_branch TYPE string VALUE 'choose_branch',
choose_tag TYPE string VALUE 'choose_tag',
choose_commit TYPE string VALUE 'choose_commit',
choose_pull_req TYPE string VALUE 'choose_pull_req',
END OF c_event .
DATA mo_form TYPE REF TO zcl_abapgit_html_form .
DATA mo_form_data TYPE REF TO zcl_abapgit_string_map .
DATA mo_form_util TYPE REF TO zcl_abapgit_html_form_utils .
DATA mo_validation_log TYPE REF TO zcl_abapgit_string_map .
DATA mo_repo TYPE REF TO zcl_abapgit_repo .
DATA ms_repo_current TYPE zif_abapgit_persistence=>ty_repo .
DATA ms_repo_new TYPE zif_abapgit_persistence=>ty_repo .
DATA mo_dot TYPE REF TO zcl_abapgit_dot_abapgit .
DATA mv_pull_req TYPE string .
DATA mv_mode TYPE i .
DATA mv_original_url TYPE string .
METHODS init
IMPORTING
!io_repo TYPE REF TO zcl_abapgit_repo
RAISING
zcx_abapgit_exception .
METHODS choose_url
RETURNING
VALUE(rv_url) TYPE string
RAISING
zcx_abapgit_exception .
METHODS choose_branch
RETURNING
VALUE(rv_branch) TYPE string
RAISING
zcx_abapgit_exception .
METHODS choose_tag
RETURNING
VALUE(rv_tag) TYPE string
RAISING
zcx_abapgit_exception .
METHODS choose_commit
RETURNING
VALUE(rv_commit) TYPE string
RAISING
zcx_abapgit_exception .
METHODS choose_pull_req
RETURNING
VALUE(rv_pull) TYPE string
RAISING
zcx_abapgit_exception .
METHODS check_protection
RAISING
zcx_abapgit_exception .
METHODS switch_online_offline
RAISING
zcx_abapgit_exception .
METHODS switch_to_branch_tag
IMPORTING
!iv_name TYPE string OPTIONAL
RAISING
zcx_abapgit_exception .
METHODS switch_to_commit
IMPORTING
!iv_revert TYPE abap_bool DEFAULT abap_false
!iv_commit TYPE string OPTIONAL
RAISING
zcx_abapgit_exception .
METHODS switch_to_pull_req
IMPORTING
!iv_revert TYPE abap_bool DEFAULT abap_false
!iv_pull TYPE string OPTIONAL
RAISING
zcx_abapgit_exception .
METHODS validate_form
IMPORTING
!io_form_data TYPE REF TO zcl_abapgit_string_map
RETURNING
VALUE(ro_validation_log) TYPE REF TO zcl_abapgit_string_map
RAISING
zcx_abapgit_exception .
METHODS get_form_schema
RETURNING
VALUE(ro_form) TYPE REF TO zcl_abapgit_html_form
RAISING
zcx_abapgit_exception .
METHODS read_settings
RAISING
zcx_abapgit_exception .
METHODS save_settings
RAISING
zcx_abapgit_exception .
METHODS checkout_commit_build_list
IMPORTING
!io_repo TYPE REF TO zcl_abapgit_repo_online
EXPORTING
!et_value_tab TYPE ty_commit_value_tab_tt
!et_commits TYPE zif_abapgit_definitions=>ty_commit_tt
RAISING
zcx_abapgit_exception .
METHODS checkout_commit_build_popup
IMPORTING
!it_commits TYPE zif_abapgit_definitions=>ty_commit_tt
!it_value_tab TYPE ty_commit_value_tab_tt
RETURNING
VALUE(rs_selected_commit) TYPE zif_abapgit_definitions=>ty_commit
RAISING
zcx_abapgit_exception .
METHODS get_mode
IMPORTING
!is_repo TYPE zif_abapgit_persistence=>ty_repo
RETURNING
VALUE(rv_mode) TYPE i .
ENDCLASS.
CLASS zcl_abapgit_gui_page_sett_remo IMPLEMENTATION.
METHOD checkout_commit_build_list.
DATA: lv_unix_time TYPE zcl_abapgit_time=>ty_unixtime,
lv_date TYPE sy-datum,
lv_date_string TYPE c LENGTH 12,
lv_time TYPE sy-uzeit,
lv_time_string TYPE c LENGTH 10.
FIELD-SYMBOLS: <ls_commit> TYPE zif_abapgit_definitions=>ty_commit,
<ls_value_tab> TYPE ty_commit_value_tab.
CLEAR: et_commits, et_value_tab.
et_commits = zcl_abapgit_git_commit=>get_by_branch( iv_branch_name = io_repo->get_selected_branch( )
iv_repo_url = io_repo->get_url( )
iv_deepen_level = 99 )-commits.
DELETE et_commits WHERE sha1 = io_repo->get_selected_commit( ).
SORT et_commits BY time DESCENDING.
IF et_commits IS INITIAL.
zcx_abapgit_exception=>raise( |No commits are available in this branch.| ).
ENDIF.
LOOP AT et_commits ASSIGNING <ls_commit>.
APPEND INITIAL LINE TO et_value_tab ASSIGNING <ls_value_tab>.
<ls_value_tab>-sha1 = <ls_commit>-sha1.
<ls_value_tab>-message = <ls_commit>-message.
lv_unix_time = <ls_commit>-time.
zcl_abapgit_time=>get_utc(
EXPORTING
iv_unix = lv_unix_time
IMPORTING
ev_time = lv_time
ev_date = lv_date ).
WRITE: lv_date TO lv_date_string,
lv_time TO lv_time_string.
<ls_value_tab>-datetime = |{ lv_date_string }, | &&
|{ lv_time_string }|.
ENDLOOP.
ENDMETHOD.
METHOD checkout_commit_build_popup.
DATA: lt_columns TYPE zif_abapgit_definitions=>ty_alv_column_tt,
li_popups TYPE REF TO zif_abapgit_popups,
lt_selected_values TYPE ty_commit_value_tab_tt.
FIELD-SYMBOLS: <ls_value_tab> TYPE ty_commit_value_tab,
<ls_column> TYPE zif_abapgit_definitions=>ty_alv_column.
APPEND INITIAL LINE TO lt_columns ASSIGNING <ls_column>.
<ls_column>-name = 'SHA1'.
<ls_column>-text = 'Hash'.
<ls_column>-length = 8.
APPEND INITIAL LINE TO lt_columns ASSIGNING <ls_column>.
<ls_column>-name = 'MESSAGE'.
<ls_column>-text = 'Message'.
APPEND INITIAL LINE TO lt_columns ASSIGNING <ls_column>.
<ls_column>-name = 'DATETIME'.
<ls_column>-text = 'Datetime'.
li_popups = zcl_abapgit_ui_factory=>get_popups( ).
li_popups->popup_to_select_from_list(
EXPORTING
it_list = it_value_tab
iv_title = |Checkout Commit|
iv_end_column = 83
iv_striped_pattern = abap_true
iv_optimize_col_width = abap_false
iv_selection_mode = if_salv_c_selection_mode=>single
it_columns_to_display = lt_columns
IMPORTING
et_list = lt_selected_values ).
IF lt_selected_values IS INITIAL.
RAISE EXCEPTION TYPE zcx_abapgit_cancel.
ENDIF.
READ TABLE lt_selected_values
ASSIGNING <ls_value_tab>
INDEX 1.
IF <ls_value_tab> IS NOT ASSIGNED.
zcx_abapgit_exception=>raise( |Though result set of popup wasn't empty selected value couldn't retrieved.| ).
ENDIF.
READ TABLE it_commits
INTO rs_selected_commit
WITH KEY sha1 = <ls_value_tab>-sha1.
ENDMETHOD.
METHOD check_protection.
IF mo_repo->is_offline( ) = abap_true.
zcx_abapgit_exception=>raise( 'Unexpected switch for offline repo' ).
ENDIF.
IF mo_repo->get_local_settings( )-write_protected = abap_true.
zcx_abapgit_exception=>raise( 'Cannot switch. Repository is write-protected in local settings' ).
ENDIF.
ENDMETHOD.
METHOD choose_branch.
DATA:
lo_repo TYPE REF TO zcl_abapgit_repo_online,
lv_url LIKE lo_repo->ms_data-url,
lv_branch_name LIKE lo_repo->ms_data-branch_name,
ls_branch TYPE zif_abapgit_definitions=>ty_git_branch.
IF mo_repo->is_offline( ) = abap_true.
RETURN.
ENDIF.
lo_repo ?= mo_repo.
IF lo_repo->ms_data-switched_origin IS NOT INITIAL.
SPLIT lo_repo->ms_data-switched_origin AT '@' INTO lv_url lv_branch_name.
ELSE.
lv_url = lo_repo->get_url( ).
lv_branch_name = lo_repo->get_selected_branch( ).
ENDIF.
ls_branch = zcl_abapgit_ui_factory=>get_popups( )->branch_list_popup(
iv_url = lv_url
iv_default_branch = lv_branch_name
iv_show_new_option = abap_false ).
IF ls_branch IS NOT INITIAL.
rv_branch = ls_branch-name.
ENDIF.
ENDMETHOD.
METHOD choose_commit.
DATA:
lo_repo TYPE REF TO zcl_abapgit_repo_online,
lt_value_tab TYPE ty_commit_value_tab_tt,
lt_commits TYPE zif_abapgit_definitions=>ty_commit_tt,
ls_selected_commit TYPE zif_abapgit_definitions=>ty_commit.
IF mo_repo->is_offline( ) = abap_true.
RETURN.
ENDIF.
lo_repo ?= mo_repo.
checkout_commit_build_list(
EXPORTING
io_repo = lo_repo
IMPORTING
et_value_tab = lt_value_tab
et_commits = lt_commits ).
ls_selected_commit = checkout_commit_build_popup(
it_commits = lt_commits
it_value_tab = lt_value_tab ).
IF ls_selected_commit IS NOT INITIAL.
rv_commit = ls_selected_commit-sha1.
ENDIF.
ENDMETHOD.
METHOD choose_pull_req.
DATA:
lo_repo TYPE REF TO zcl_abapgit_repo_online,
lt_pulls TYPE zif_abapgit_pr_enum_provider=>ty_pull_requests,
ls_pull LIKE LINE OF lt_pulls.
IF mo_repo->is_offline( ) = abap_true.
RETURN.
ENDIF.
lo_repo ?= mo_repo.
lt_pulls = zcl_abapgit_pr_enumerator=>new( lo_repo )->get_pulls( ).
IF lines( lt_pulls ) = 0.
MESSAGE 'No pull requests found' TYPE 'S'.
RETURN.
ENDIF.
ls_pull = zcl_abapgit_ui_factory=>get_popups( )->choose_pr_popup( lt_pulls ).
IF ls_pull IS NOT INITIAL.
rv_pull = ls_pull-head_url && '@' && ls_pull-head_branch.
ENDIF.
ENDMETHOD.
METHOD choose_tag.
DATA:
lo_repo TYPE REF TO zcl_abapgit_repo_online,
ls_tag TYPE zif_abapgit_definitions=>ty_git_tag.
IF mo_repo->is_offline( ) = abap_true.
RETURN.
ENDIF.
lo_repo ?= mo_repo.
ls_tag = zcl_abapgit_ui_factory=>get_tag_popups( )->tag_select_popup( lo_repo ).
IF ls_tag IS NOT INITIAL.
rv_tag = ls_tag-name.
ENDIF.
ENDMETHOD.
METHOD choose_url.
" todo, get url history from DB and show selection popup #3639
ENDMETHOD.
METHOD constructor.
super->constructor( ).
CREATE OBJECT mo_validation_log.
CREATE OBJECT mo_form_data.
init( io_repo ).
mv_original_url = ms_repo_current-url.
mo_form = get_form_schema( ).
mo_form_util = zcl_abapgit_html_form_utils=>create( mo_form ).
read_settings( ).
ENDMETHOD.
METHOD create.
DATA lo_component TYPE REF TO zcl_abapgit_gui_page_sett_remo.
CREATE OBJECT lo_component
EXPORTING
io_repo = io_repo.
ri_page = zcl_abapgit_gui_page_hoc=>create(
iv_page_title = 'Remote Settings'
io_page_menu = zcl_abapgit_gui_chunk_lib=>settings_repo_toolbar(
iv_key = io_repo->get_key( )
iv_act = zif_abapgit_definitions=>c_action-repo_remote_settings )
ii_child_component = lo_component ).
ENDMETHOD.
METHOD get_form_schema.
DATA:
lv_button TYPE string,
lv_label TYPE string,
lv_icon TYPE string,
lv_hint TYPE string,
lv_placeholder TYPE string.
ro_form = zcl_abapgit_html_form=>create(
iv_form_id = 'repo-remote-settings-form'
iv_help_page = 'https://docs.abapgit.org/settings-remote.html' ).
IF mv_mode = c_mode-offline.
lv_button = 'Switch to Online'.
lv_icon = 'plug/darkgrey'.
lv_label = 'Repository Name'.
ELSE.
lv_button = 'Switch to Offline'.
lv_icon = 'cloud-upload-alt/darkgrey'.
lv_label = 'Git Repository URL'.
lv_hint = 'URL of original repository'.
lv_placeholder = 'https://github.com/...git'.
ENDIF.
ro_form->start_group(
iv_name = c_id-general
iv_label = 'General'
iv_hint = 'Change the general type and origin of the repository'
)->text(
iv_name = c_id-repo_type
iv_label = |Type of Repository: { zcl_abapgit_html=>icon( lv_icon ) }|
iv_readonly = abap_true
)->text(
iv_name = c_id-url
iv_condense = abap_true
iv_label = lv_label
iv_hint = lv_hint
iv_placeholder = lv_placeholder ).
IF mv_mode <> c_mode-offline.
ro_form->start_group(
iv_name = c_id-head
iv_label = 'Head'
)->text(
iv_name = c_id-branch
iv_label = 'Branch'
iv_hint = 'Switch to a branch of the repository'
iv_readonly = abap_true
iv_side_action = c_event-choose_branch
)->text(
iv_name = c_id-tag
iv_label = 'Tag'
iv_hint = 'Switch to a tag of the repository'
iv_readonly = abap_true
iv_side_action = c_event-choose_tag
)->text(
iv_name = c_id-commit
iv_label = 'Commit'
iv_hint = 'Switch to a commit of the repository'
iv_readonly = abap_true
iv_side_action = c_event-choose_commit
)->text(
iv_name = c_id-pull_request
iv_label = 'Pull Request'
iv_hint = 'Switch to a pull request of the repository or its forks'
iv_readonly = abap_true
iv_side_action = c_event-choose_pull_req ).
ENDIF.
ro_form->command(
iv_label = 'Save Settings'
iv_cmd_type = zif_abapgit_html_form=>c_cmd_type-input_main
iv_action = c_event-save
)->command(
iv_label = lv_button
iv_action = c_event-switch
)->command(
iv_label = 'Back'
iv_action = c_event-go_back ).
ENDMETHOD.
METHOD get_mode.
IF is_repo-offline = abap_true.
rv_mode = c_mode-offline.
ELSEIF is_repo-selected_commit IS NOT INITIAL.
rv_mode = c_mode-commit.
ELSEIF is_repo-switched_origin IS NOT INITIAL.
rv_mode = c_mode-pull_request.
ELSEIF is_repo-branch_name CP zif_abapgit_definitions=>c_git_branch-tags.
rv_mode = c_mode-tag.
ELSE.
rv_mode = c_mode-branch.
ENDIF.
ENDMETHOD.
METHOD init.
DATA lv_branch TYPE string.
mo_repo = io_repo.
" Get repo settings when starting dialog
TRY.
ms_repo_current = zcl_abapgit_persist_factory=>get_repo( )->read( mo_repo->get_key( ) ).
CATCH zcx_abapgit_not_found.
zcx_abapgit_exception=>raise( 'Repository not found' ).
ENDTRY.
" Initialize new repo settings which are modified using this form (and saved)
mv_mode = get_mode( ms_repo_current ).
IF mv_mode = c_mode-pull_request.
lv_branch = ms_repo_current-branch_name.
REPLACE zif_abapgit_definitions=>c_git_branch-heads_prefix IN lv_branch WITH ''.
mv_pull_req = ms_repo_current-url && '@' && lv_branch.
SPLIT ms_repo_current-switched_origin AT '@' INTO ms_repo_current-url ms_repo_current-branch_name.
ENDIF.
ms_repo_new = ms_repo_current.
ENDMETHOD.
METHOD read_settings.
DATA:
lv_type TYPE string,
lv_url TYPE string,
lv_rest TYPE string,
lv_branch TYPE string,
lv_tag TYPE string,
lv_commit TYPE string,
lv_pull_req TYPE string.
lv_type = 'Online repository'.
lv_url = ms_repo_new-url.
CASE mv_mode.
WHEN c_mode-offline.
lv_type = 'Offline repository'.
WHEN c_mode-branch.
lv_branch = ms_repo_new-branch_name.
WHEN c_mode-tag.
lv_tag = ms_repo_new-branch_name.
WHEN c_mode-commit.
lv_commit = ms_repo_new-selected_commit.
WHEN c_mode-pull_request.
SPLIT ms_repo_new-switched_origin AT '@' INTO lv_url lv_rest."original repo URL
lv_pull_req = mv_pull_req.
ENDCASE.
mo_form_data->set(
iv_key = c_id-repo_type
iv_val = lv_type ).
mo_form_data->set(
iv_key = c_id-url
iv_val = lv_url ).
mo_form_data->set(
iv_key = c_id-branch
iv_val = lv_branch ).
mo_form_data->set(
iv_key = c_id-tag
iv_val = lv_tag ).
mo_form_data->set(
iv_key = c_id-commit
iv_val = lv_commit ).
mo_form_data->set(
iv_key = c_id-pull_request
iv_val = lv_pull_req ).
" Set for is_dirty check
mo_form_util->set_data( mo_form_data ).
ENDMETHOD.
METHOD save_settings.
DATA:
lv_key TYPE zif_abapgit_persistence=>ty_repo-key,
lo_repo_online TYPE REF TO zcl_abapgit_repo_online,
lo_repo_offline TYPE REF TO zcl_abapgit_repo_offline,
lo_branch_list TYPE REF TO zcl_abapgit_git_branch_list,
lv_url TYPE string,
lv_branch TYPE string,
lv_tag TYPE string,
lv_commit TYPE string,
lv_pull TYPE string.
lv_url = mo_form_data->get( c_id-url ).
lv_branch = mo_form_data->get( c_id-branch ).
lv_tag = mo_form_data->get( c_id-tag ).
lv_commit = mo_form_data->get( c_id-commit ).
lv_pull = mo_form_data->get( c_id-pull_request ).
" Switch online / offline
IF ms_repo_new-offline <> ms_repo_current-offline.
" Remember key, switch, retrieve new instance (todo, refactor #2244)
lv_key = ms_repo_current-key.
mo_repo->switch_repo_type( ms_repo_new-offline ).
mo_repo = zcl_abapgit_repo_srv=>get_instance( )->get( lv_key ).
ENDIF.
IF mo_repo->is_offline( ) = abap_true.
" Offline: Save repo name
lo_repo_offline ?= mo_repo.
lo_repo_offline->set_name( lv_url ).
ELSE.
" Online: Save url
lo_repo_online ?= mo_repo.
lo_repo_online->set_url( lv_url ).
" Check branch/tag and reset to default if not found
lo_branch_list = zcl_abapgit_git_transport=>branches( lv_url ).
TRY.
IF lv_branch IS INITIAL AND lv_tag IS INITIAL.
lv_branch = lo_branch_list->get_head_symref( ).
ELSEIF lv_tag IS INITIAL.
lo_branch_list->find_by_name( lv_branch ).
ELSE.
lo_branch_list->find_by_name( lv_tag ).
ENDIF.
CATCH zcx_abapgit_exception.
lv_branch = lo_branch_list->get_head_symref( ).
ENDTRY.
mv_original_url = lv_url.
ENDIF.
CASE mv_mode.
WHEN c_mode-branch.
switch_to_pull_req( iv_revert = abap_true ).
switch_to_commit( iv_revert = abap_true ).
switch_to_branch_tag( lv_branch ).
WHEN c_mode-tag.
switch_to_pull_req( iv_revert = abap_true ).
switch_to_commit( iv_revert = abap_true ).
switch_to_branch_tag( lv_tag ).
WHEN c_mode-commit.
switch_to_pull_req( iv_revert = abap_true ).
switch_to_commit( iv_commit = lv_commit ).
WHEN c_mode-pull_request.
switch_to_commit( iv_revert = abap_true ).
switch_to_pull_req( iv_pull = lv_pull ).
ENDCASE.
COMMIT WORK AND WAIT.
MESSAGE 'Settings succesfully saved' TYPE 'S'.
init( mo_repo ).
ENDMETHOD.
METHOD switch_online_offline.
DATA lv_url TYPE string.
ms_repo_new-offline = boolc( ms_repo_new-offline = abap_false ).
mv_mode = get_mode( ms_repo_new ).
lv_url = mo_form_data->get( c_id-url ).
IF mv_mode = c_mode-offline AND lv_url CP 'http*'.
" Switch from URL to name
lv_url = zcl_abapgit_url=>name( lv_url ).
ENDIF.
IF mv_mode <> c_mode-offline AND lv_url NP 'http*' AND mv_original_url CP 'http*'.
" Switch back to original URL
lv_url = mv_original_url.
ENDIF.
mo_form_data->set(
iv_key = c_id-url
iv_val = lv_url ).
ENDMETHOD.
METHOD switch_to_branch_tag.
DATA lo_repo TYPE REF TO zcl_abapgit_repo_online.
check_protection( ).
lo_repo ?= mo_repo.
lo_repo->select_branch( iv_name ).
ENDMETHOD.
METHOD switch_to_commit.
DATA lo_repo TYPE REF TO zcl_abapgit_repo_online.
check_protection( ).
lo_repo ?= mo_repo.
IF iv_revert = abap_true.
lo_repo->select_commit( '' ).
ELSE.
lo_repo->select_commit( |{ iv_commit }| ).
ENDIF.
ENDMETHOD.
METHOD switch_to_pull_req.
DATA:
lo_repo TYPE REF TO zcl_abapgit_repo_online,
lv_url TYPE string,
lv_branch TYPE string.
check_protection( ).
lo_repo ?= mo_repo.
" Switching twice does not work so reset to original repo first
lo_repo->switch_origin( '' ).
IF iv_revert = abap_false.
SPLIT iv_pull AT '@' INTO lv_url lv_branch.
lo_repo->switch_origin(
iv_url = lv_url
iv_branch = zif_abapgit_definitions=>c_git_branch-heads_prefix && lv_branch ).
ENDIF.
ENDMETHOD.
METHOD validate_form.
DATA:
lv_url TYPE string,
lx_error TYPE REF TO zcx_abapgit_exception.
ro_validation_log = mo_form_util->validate( io_form_data ).
lv_url = mo_form_data->get( c_id-url ).
IF mv_mode = c_mode-offline AND lv_url IS INITIAL.
ro_validation_log->set(
iv_key = c_id-url
iv_val = 'Enter a name for the repository and save' ).
ENDIF.
IF mv_mode <> c_mode-offline AND lv_url NP 'http*'.
ro_validation_log->set(
iv_key = c_id-url
iv_val = 'Enter the URL of the repository and save' ).
ELSEIF mv_mode <> c_mode-offline.
TRY.
zcl_abapgit_url=>name(
iv_url = lv_url
iv_validate = abap_true ).
CATCH zcx_abapgit_exception INTO lx_error.
ro_validation_log->set(
iv_key = c_id-url
iv_val = lx_error->get_text( ) ).
ENDTRY.
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_gui_event_handler~on_event.
DATA:
lv_url TYPE string,
lv_branch TYPE string,
lv_tag TYPE string,
lv_pull TYPE string,
lv_commit TYPE string.
mo_form_data = mo_form_util->normalize( ii_event->form_data( ) ).
CASE ii_event->mv_action.
WHEN c_event-go_back.
IF ms_repo_new <> ms_repo_current.
mo_repo->refresh( ).
ENDIF.
rs_handled-state = zcl_abapgit_gui=>c_event_state-go_back_to_bookmark.
WHEN c_event-choose_url.
lv_url = choose_url( ).
IF lv_url IS INITIAL.
rs_handled-state = zcl_abapgit_gui=>c_event_state-no_more_act.
ELSE.
ms_repo_new-url = lv_url.
rs_handled-state = zcl_abapgit_gui=>c_event_state-re_render.
ENDIF.
WHEN c_event-choose_branch.
lv_branch = choose_branch( ).
IF lv_branch IS INITIAL.
rs_handled-state = zcl_abapgit_gui=>c_event_state-no_more_act.
ELSE.
ms_repo_new-branch_name = lv_branch.
mv_mode = c_mode-branch.
rs_handled-state = zcl_abapgit_gui=>c_event_state-re_render.
ENDIF.
WHEN c_event-choose_tag.
lv_tag = choose_tag( ).
IF lv_tag IS INITIAL.
rs_handled-state = zcl_abapgit_gui=>c_event_state-no_more_act.
ELSE.
ms_repo_new-branch_name = lv_tag.
mv_mode = c_mode-tag.
rs_handled-state = zcl_abapgit_gui=>c_event_state-re_render.
ENDIF.
WHEN c_event-choose_commit.
lv_commit = choose_commit( ).
IF lv_commit IS INITIAL.
rs_handled-state = zcl_abapgit_gui=>c_event_state-no_more_act.
ELSE.
ms_repo_new-selected_commit = lv_commit.
mv_mode = c_mode-commit.
rs_handled-state = zcl_abapgit_gui=>c_event_state-re_render.
ENDIF.
WHEN c_event-choose_pull_req.
lv_pull = choose_pull_req( ).
IF lv_pull IS INITIAL.
rs_handled-state = zcl_abapgit_gui=>c_event_state-no_more_act.
ELSE.
ms_repo_new-switched_origin = ms_repo_new-url.
mv_pull_req = lv_pull.
mv_mode = c_mode-pull_request.
rs_handled-state = zcl_abapgit_gui=>c_event_state-re_render.
ENDIF.
WHEN c_event-switch OR c_event-save.
IF ii_event->mv_action = c_event-switch.
switch_online_offline( ).
ENDIF.
mo_validation_log = validate_form( mo_form_data ).
IF mo_validation_log->is_empty( ) = abap_true.
save_settings( ).
ENDIF.
rs_handled-state = zcl_abapgit_gui=>c_event_state-re_render.
ENDCASE.
" If staying on form, initialize it with current settings
IF rs_handled-state = zcl_abapgit_gui=>c_event_state-re_render.
mo_form = get_form_schema( ).
read_settings( ).
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_gui_hotkeys~get_hotkey_actions.
DATA: ls_hotkey_action LIKE LINE OF rt_hotkey_actions.
ls_hotkey_action-ui_component = 'Remote'.
ls_hotkey_action-description = |Choose branch|.
ls_hotkey_action-action = c_event-choose_branch.
ls_hotkey_action-hotkey = |b|.
INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions.
ls_hotkey_action-description = |Choose commit|.
ls_hotkey_action-action = c_event-choose_commit.
ls_hotkey_action-hotkey = |c|.
INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions.
ls_hotkey_action-description = |Choose pull request|.
ls_hotkey_action-action = c_event-choose_pull_req.
ls_hotkey_action-hotkey = |p|.
INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions.
ls_hotkey_action-description = |Choose tag|.
ls_hotkey_action-action = c_event-choose_tag.
ls_hotkey_action-hotkey = |t|.
INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions.
ls_hotkey_action-description = |Choose url|.
ls_hotkey_action-action = c_event-choose_url.
ls_hotkey_action-hotkey = |u|.
INSERT ls_hotkey_action INTO TABLE rt_hotkey_actions.
ENDMETHOD.
METHOD zif_abapgit_gui_renderable~render.
gui_services( )->register_event_handler( me ).
IF mo_form_util->is_empty( mo_form_data ) = abap_true.
read_settings( ).
ENDIF.
CREATE OBJECT ri_html TYPE zcl_abapgit_html.
ri_html->add( `<div class="repo">` ).
ri_html->add( zcl_abapgit_gui_chunk_lib=>render_repo_top(
io_repo = mo_repo
iv_show_commit = abap_false
iv_interactive_branch = abap_false ) ).
ri_html->add( mo_form->render(
io_values = mo_form_data
io_validation_log = mo_validation_log ) ).
ri_html->add( `</div>` ).
gui_services( )->get_hotkeys_ctl( )->register_hotkeys( zif_abapgit_gui_hotkeys~get_hotkey_actions( ) ).
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
48317,
62,
7700,
62,
17744,
62,
2787,
78,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
397,
499,
18300,
62,
48317,
62,
42895,
198,
220,
25261,
198,
220,
29244,
6158,
4810,
3824,
6158,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
15596,
62,
30281,
764,
198,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
13287,
540,
764,
198,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
8940,
13083,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
2251,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
952,
62,
260,
7501,
220,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
260,
7501,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
380,
62,
7700,
8,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
48317,
62,
13287,
540,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
764,
198,
220,
220,
220,
337,
36252,
50,
23772,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
952,
62,
260,
7501,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
260,
7501,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
1259,
62,
41509,
62,
8367,
62,
8658,
11,
198,
220,
220,
220,
220,
220,
220,
220,
427,
64,
16,
220,
220,
220,
220,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
26270,
16,
11,
198,
220,
220,
220,
220,
220,
220,
220,
3275,
220,
41876,
269,
406,
49494,
2026,
11,
198,
220,
220,
220,
220,
220,
220,
220,
4818,
8079,
41876,
269,
406,
49494,
1160,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
41509,
62,
8367,
62,
8658,
764,
198,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
1259,
62,
41509,
62,
8367,
62,
8658,
62,
926,
41876,
49053,
9795,
43679,
3963,
1259,
62,
41509,
62,
8367,
62,
8658,
13315,
5550,
38865,
35374,
764,
628,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
269,
62,
14171,
11,
198,
220,
220,
220,
220,
220,
220,
220,
18043,
220,
220,
220,
220,
220,
41876,
1312,
26173,
8924,
657,
11,
198,
220,
220,
220,
220,
220,
220,
220,
8478,
220,
220,
220,
220,
220,
220,
41876,
1312,
26173,
8924,
352,
11,
198,
220,
220,
220,
220,
220,
220,
220,
7621,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1312,
26173,
8924,
362,
11,
198,
220,
220,
220,
220,
220,
220,
220,
4589,
220,
220,
220,
220,
220,
220,
41876,
1312,
26173,
8924,
513,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2834,
62,
25927,
41876,
1312,
26173,
8924,
604,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
269,
62,
14171,
764,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
269,
62,
312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2276,
220,
220,
220,
220,
220,
41876,
4731,
26173,
8924,
705,
24622,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
29924,
62,
4906,
220,
220,
220,
41876,
4731,
26173,
8924,
705,
260,
7501,
62,
4906,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
1182,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
26173,
8924,
705,
2256,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
19016,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
26173,
8924,
705,
6371,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
8478,
220,
220,
220,
220,
220,
220,
41876,
4731,
26173,
8924,
705,
1671,
3702,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
7621,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
26173,
8924,
705,
12985,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
4589,
220,
220,
220,
220,
220,
220,
41876,
4731,
26173,
8924,
705,
9503,
2781,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
2834,
62,
25927,
41876,
4731,
26173,
8924,
705,
31216,
62,
25927,
3256,
198,
220,
220,
220,
220,
220,
23578,
3963,
269,
62,
312,
764,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
269,
62,
15596,
11,
198,
220,
220,
220,
220,
220,
220,
220,
467,
62,
1891,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
26173,
8924,
705,
2188,
12,
1891,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
3613,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
26173,
8924,
705,
21928,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
5078,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
4731,
26173,
8924,
705,
31943,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
3853,
62,
6371,
220,
220,
220,
220,
220,
41876,
4731,
26173,
8924,
705,
6679,
577,
62,
6371,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
3853,
62,
1671,
3702,
220,
220,
41876,
4731,
26173,
8924,
705,
6679,
577,
62,
1671,
3702,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
3853,
62,
12985,
220,
220,
220,
220,
220,
41876,
4731,
26173,
8924,
705,
6679,
577,
62,
12985,
3256,
198,
220,
220,
220,
220,
220,
220,
220,
3853,
62,
41509,
220,
220,
41876,
4731,
26173,
8924,
705,
6679,
577,
62,
41509,
3256,
198,
220,
220,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_abapgit_object_enqu DEFINITION
PUBLIC
INHERITING FROM zcl_abapgit_objects_super
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
INTERFACES zif_abapgit_object .
ALIASES mo_files
FOR zif_abapgit_object~mo_files .
PROTECTED SECTION.
PRIVATE SECTION.
TYPES: ty_dd27p TYPE STANDARD TABLE OF dd27p WITH DEFAULT KEY.
METHODS _clear_dd27p_fields CHANGING ct_dd27p TYPE ty_dd27p.
ENDCLASS.
CLASS zcl_abapgit_object_enqu IMPLEMENTATION.
METHOD zif_abapgit_object~changed_by.
SELECT SINGLE as4user FROM dd25l
INTO rv_user
WHERE viewname = ms_item-obj_name
AND as4local = 'A'
AND as4vers = '0000'.
IF sy-subrc <> 0.
rv_user = c_user_unknown.
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_object~delete.
IF zif_abapgit_object~exists( ) = abap_false.
RETURN.
ENDIF.
delete_ddic( 'L' ).
ENDMETHOD.
METHOD zif_abapgit_object~deserialize.
DATA: lv_name TYPE ddobjname,
ls_dd25v TYPE dd25v,
lt_dd26e TYPE TABLE OF dd26e,
lt_dd27p TYPE ty_dd27p.
io_xml->read( EXPORTING iv_name = 'DD25V'
CHANGING cg_data = ls_dd25v ).
io_xml->read( EXPORTING iv_name = 'DD26E_TABLE'
CHANGING cg_data = lt_dd26e ).
io_xml->read( EXPORTING iv_name = 'DD27P_TABLE'
CHANGING cg_data = lt_dd27p ).
corr_insert( iv_package = iv_package
ig_object_class = 'DICT' ).
lv_name = ms_item-obj_name.
CALL FUNCTION 'DDIF_ENQU_PUT'
EXPORTING
name = lv_name
dd25v_wa = ls_dd25v
TABLES
dd26e_tab = lt_dd26e
dd27p_tab = lt_dd27p
EXCEPTIONS
enqu_not_found = 1
name_inconsistent = 2
enqu_inconsistent = 3
put_failure = 4
put_refused = 5
OTHERS = 6.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise_t100( ).
ENDIF.
zcl_abapgit_objects_activation=>add_item( ms_item ).
ENDMETHOD.
METHOD zif_abapgit_object~exists.
DATA: lv_viewname TYPE dd25l-viewname.
SELECT SINGLE viewname FROM dd25l INTO lv_viewname
WHERE viewname = ms_item-obj_name.
rv_bool = boolc( sy-subrc = 0 ).
ENDMETHOD.
METHOD zif_abapgit_object~get_comparator.
RETURN.
ENDMETHOD.
METHOD zif_abapgit_object~get_deserialize_steps.
APPEND zif_abapgit_object=>gc_step_id-ddic TO rt_steps.
ENDMETHOD.
METHOD zif_abapgit_object~get_metadata.
rs_metadata = get_metadata( ).
rs_metadata-ddic = abap_true.
ENDMETHOD.
METHOD zif_abapgit_object~is_active.
rv_active = is_active( ).
ENDMETHOD.
METHOD zif_abapgit_object~is_locked.
rv_is_locked = abap_false.
ENDMETHOD.
METHOD zif_abapgit_object~jump.
jump_se11( ).
ENDMETHOD.
METHOD zif_abapgit_object~serialize.
DATA: lv_name TYPE ddobjname,
ls_dd25v TYPE dd25v,
lt_dd26e TYPE TABLE OF dd26e,
lt_dd27p TYPE ty_dd27p.
lv_name = ms_item-obj_name.
CALL FUNCTION 'DDIF_ENQU_GET'
EXPORTING
name = lv_name
state = 'A'
langu = mv_language
IMPORTING
dd25v_wa = ls_dd25v
TABLES
dd26e_tab = lt_dd26e
dd27p_tab = lt_dd27p
EXCEPTIONS
illegal_input = 1
OTHERS = 2.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise_t100( ).
ENDIF.
IF ls_dd25v IS INITIAL.
zcx_abapgit_exception=>raise( |No active version found for { ms_item-obj_type } { ms_item-obj_name }| ).
ENDIF.
CLEAR: ls_dd25v-as4user,
ls_dd25v-as4date,
ls_dd25v-as4time,
ls_dd25v-as4local,
ls_dd25v-as4vers.
_clear_dd27p_fields( CHANGING ct_dd27p = lt_dd27p ).
io_xml->add( iv_name = 'DD25V'
ig_data = ls_dd25v ).
io_xml->add( ig_data = lt_dd26e
iv_name = 'DD26E_TABLE' ).
io_xml->add( ig_data = lt_dd27p
iv_name = 'DD27P_TABLE' ).
ENDMETHOD.
METHOD _clear_dd27p_fields.
FIELD-SYMBOLS <ls_dd27p> TYPE dd27p.
LOOP AT ct_dd27p ASSIGNING <ls_dd27p>.
"taken from table
CLEAR <ls_dd27p>-headlen.
CLEAR <ls_dd27p>-scrlen1.
CLEAR <ls_dd27p>-scrlen2.
CLEAR <ls_dd27p>-scrlen3.
CLEAR <ls_dd27p>-intlen.
CLEAR <ls_dd27p>-outputlen.
CLEAR <ls_dd27p>-flength.
CLEAR <ls_dd27p>-ddtext.
CLEAR <ls_dd27p>-reptext.
CLEAR <ls_dd27p>-scrtext_s.
CLEAR <ls_dd27p>-scrtext_m.
CLEAR <ls_dd27p>-scrtext_l.
CLEAR <ls_dd27p>-rollname.
CLEAR <ls_dd27p>-rollnamevi.
CLEAR <ls_dd27p>-entitytab.
CLEAR <ls_dd27p>-datatype.
CLEAR <ls_dd27p>-inttype.
CLEAR <ls_dd27p>-ddlanguage.
CLEAR <ls_dd27p>-domname.
CLEAR <ls_dd27p>-signflag.
ENDLOOP.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
268,
421,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
397,
499,
18300,
62,
48205,
62,
16668,
198,
220,
25261,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
397,
499,
18300,
62,
15252,
764,
628,
220,
220,
220,
8355,
43429,
1546,
6941,
62,
16624,
198,
220,
220,
220,
220,
220,
7473,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
5908,
62,
16624,
764,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
24412,
47,
1546,
25,
1259,
62,
1860,
1983,
79,
41876,
49053,
9795,
43679,
3963,
49427,
1983,
79,
13315,
5550,
38865,
35374,
13,
198,
220,
220,
220,
337,
36252,
50,
4808,
20063,
62,
1860,
1983,
79,
62,
25747,
5870,
15567,
2751,
269,
83,
62,
1860,
1983,
79,
41876,
1259,
62,
1860,
1983,
79,
13,
198,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
268,
421,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
40985,
62,
1525,
13,
628,
220,
220,
220,
33493,
311,
2751,
2538,
355,
19,
7220,
16034,
49427,
1495,
75,
198,
220,
220,
220,
220,
220,
39319,
374,
85,
62,
7220,
198,
220,
220,
220,
220,
220,
33411,
1570,
3672,
796,
13845,
62,
9186,
12,
26801,
62,
3672,
198,
220,
220,
220,
220,
220,
5357,
355,
19,
12001,
796,
705,
32,
6,
198,
220,
220,
220,
220,
220,
5357,
355,
19,
690,
220,
796,
705,
2388,
4458,
198,
220,
220,
220,
16876,
827,
12,
7266,
6015,
1279,
29,
657,
13,
198,
220,
220,
220,
220,
220,
374,
85,
62,
7220,
796,
269,
62,
7220,
62,
34680,
13,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
33678,
13,
628,
220,
220,
220,
16876,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
1069,
1023,
7,
1267,
796,
450,
499,
62,
9562,
13,
198,
220,
220,
220,
220,
220,
30826,
27064,
13,
198,
220,
220,
220,
23578,
5064,
13,
628,
220,
220,
220,
12233,
62,
1860,
291,
7,
705,
43,
6,
6739,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
8906,
48499,
1096,
13,
628,
220,
220,
220,
42865,
25,
300,
85,
62,
3672,
220,
41876,
49427,
26801,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
43979,
62,
1860,
1495,
85,
41876,
49427,
1495,
85,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
83,
62,
1860,
2075,
68,
41876,
43679,
3963,
49427,
2075,
68,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
83,
62,
1860,
1983,
79,
41876,
1259,
62,
1860,
1983,
79,
13,
628,
198,
220,
220,
220,
33245,
62,
19875,
3784,
961,
7,
7788,
15490,
2751,
21628,
62,
3672,
796,
705,
16458,
1495,
53,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5870,
15567,
2751,
269,
70,
62,
7890,
796,
43979,
62,
1860,
1495,
85,
6739,
198,
220,
220,
220,
33245,
62,
19875,
3784,
961,
7,
7788,
15490,
2751,
21628,
62,
3672,
796,
705,
16458,
2075,
36,
62,
38148,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5870,
15567,
2751,
269,
70,
62,
7890,
796,
300,
83,
62,
1860,
2075,
68,
6739,
198,
220,
220,
220,
33245,
62,
19875,
3784,
961,
7,
7788,
15490,
2751,
21628,
62,
3672,
796,
705,
16458,
1983,
47,
62,
38148,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5870,
15567,
2751,
269,
70,
62,
7890,
796,
300,
83,
62,
1860,
1983,
79,
6739,
628,
220,
220,
220,
1162,
81,
62,
28463,
7,
21628,
62,
26495,
796,
21628,
62,
26495,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
45329,
62,
15252,
62,
4871,
796,
705,
35,
18379,
6,
6739,
628,
220,
220,
220,
300,
85,
62,
3672,
796,
13845,
62,
9186,
12,
26801,
62,
3672,
13,
628,
220,
220,
220,
42815,
29397,
4177,
2849,
705,
16458,
5064,
62,
1677,
10917,
62,
30076,
6,
198,
220,
220,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
300,
85,
62,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
49427,
1495,
85,
62,
10247,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
43979,
62,
1860,
1495,
85,
198,
220,
220,
220,
220,
220,
309,
6242,
28378,
198,
220,
220,
220,
220,
220,
220,
220,
49427,
2075,
68,
62,
8658,
220,
220,
220,
220,
220,
220,
220,
220,
796,
300,
83,
62,
1860,
2075,
68,
198,
220,
220,
220,
220,
220,
220,
220,
49427,
1983,
79,
62,
8658,
220,
220,
220,
220,
220,
220,
220,
220,
796,
300,
83,
62,
1860,
1983,
79,
198,
220,
220,
220,
220,
220,
7788,
42006,
11053,
198,
220,
220,
220,
220,
220,
220,
220,
34593,
62,
1662,
62,
9275,
220,
220,
220,
796,
352,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
62,
1939,
684,
7609,
796,
362,
198,
220,
220,
220,
220,
220,
220,
220,
34593,
62,
1939,
684,
7609,
796,
513,
198,
220,
220,
220,
220,
220,
220,
220,
1234,
62,
32165,
495,
220,
220,
220,
220,
220,
220,
796,
604,
198,
220,
220,
220,
220,
220,
220,
220,
1234,
62,
5420,
1484,
220,
220,
220,
220,
220,
220,
796,
642,
198,
220,
220,
220,
220,
220,
220,
220,
440,
4221,
4877,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
718,
13,
198,
220,
220,
220,
16876,
827,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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
"! <p class="shorttext synchronized" lang="en">UTF-8</p>
"!
CLASS zcl_csr_utf_16_sbcs DEFINITION
PUBLIC
INHERITING FROM zcl_csr_unicode
CREATE PUBLIC .
PUBLIC SECTION.
CONSTANTS:
"! Number of bytes for representing one character
char_size TYPE i VALUE 2,
offset_3rd_char TYPE i VALUE 4,
"! N-Gram = 3 characters
ngram_size TYPE i VALUE 6.
TYPES:
ty_ngram_x TYPE x LENGTH ngram_size,
ty_ngrams_x TYPE x LENGTH 384, " 64 N-Grams each made of 6 bytes
" Some N-Grams may occur twice
ty_ngrams TYPE SORTED TABLE OF ty_ngram_x WITH NON-UNIQUE KEY table_line,
ty_char TYPE x LENGTH char_size,
BEGIN OF ty_charmap_line,
from TYPE ty_char,
to TYPE ty_char,
END OF ty_charmap_line,
ty_charmap TYPE HASHED TABLE OF ty_charmap_line WITH UNIQUE KEY from.
DATA:
csr_sbcs TYPE REF TO zcl_csr_sbcs READ-ONLY,
big_endian TYPE abap_bool READ-ONLY,
little_endian TYPE abap_bool READ-ONLY,
ngrams TYPE ty_ngrams READ-ONLY,
charmap TYPE ty_charmap READ-ONLY.
"! <p class="shorttext synchronized" lang="en">CONSTRUCTOR</p>
"! @parameter csr_sbcs | <p class="shorttext synchronized" lang="en"></p>
"! @parameter big_endian | <p class="shorttext synchronized" lang="en"></p>
"! @raising cx_parameter_invalid_range | Code page is not defined in SAP
METHODS constructor
IMPORTING
!csr_sbcs TYPE REF TO zcl_csr_sbcs
!big_endian TYPE abap_bool DEFAULT abap_true
RAISING
cx_parameter_invalid_range.
METHODS: match REDEFINITION,
get_name REDEFINITION,
get_language REDEFINITION.
PROTECTED SECTION.
PRIVATE SECTION.
METHODS lookup
IMPORTING
!ngram TYPE ty_ngram_x .
METHODS add_char
IMPORTING
!char TYPE ty_char.
DATA:
"! Current N-Gram during parsing
ngram TYPE ty_ngram_x,
" Space
space_x TYPE ty_char,
"! Does not count invalid characters
ngram_count TYPE i,
hit_count TYPE i,
codepage_utf_16 TYPE string.
ENDCLASS.
CLASS zcl_csr_utf_16_sbcs IMPLEMENTATION.
METHOD add_char.
SHIFT ngram LEFT BY char_size PLACES IN BYTE MODE.
ngram+offset_3rd_char = char.
lookup( ngram ).
ENDMETHOD.
METHOD constructor.
super->constructor( ).
me->csr_sbcs = csr_sbcs.
me->big_endian = big_endian.
" If the code page does not exist, raise the exception CX_PARAMETER_INVALID_RANGE
cl_abap_codepage=>sap_codepage( csr_sbcs->get_name( ) ).
codepage_utf_16 = COND string( WHEN big_endian = abap_true THEN 'utf-16be' ELSE 'utf-16le' ).
space_x = cl_abap_codepage=>convert_to( source = ` ` codepage = codepage_utf_16 ).
me->charmap = VALUE #(
FOR i = 0 WHILE i < 256
LET char_from = cl_abap_codepage=>convert_from( source = CONV #( i ) codepage = csr_sbcs->get_name( ) )
char_from_2 = cl_abap_codepage=>convert_to( source = char_from codepage = codepage_utf_16 )
offset_char = i * 2
char_to = cl_abap_codepage=>convert_from( source = CONV #( csr_sbcs->charmap+offset_char(char_size) ) codepage = csr_sbcs->get_name( ) )
char_to_2 = cl_abap_codepage=>convert_to( source = char_to codepage = codepage_utf_16 )
IN ( from = char_from_2
to = char_to_2 ) ).
me->ngrams = VALUE #(
LET ngrams_string = cl_abap_codepage=>convert_from( source = CONV #( csr_sbcs->ngrams ) codepage = csr_sbcs->get_name( ) )
ngrams_utf_16 = CONV ty_ngrams_x( cl_abap_codepage=>convert_to( source = ngrams_string codepage = codepage_utf_16 ) )
IN FOR i = 0 WHILE i < 64
LET offset_ngram = i * 6
IN ( ngrams_utf_16+offset_ngram(6) ) ).
ENDMETHOD.
METHOD get_language.
language = csr_sbcs->get_language( ).
ENDMETHOD.
METHOD get_name.
name = codepage_utf_16.
ENDMETHOD.
METHOD lookup.
ADD 1 TO ngram_count.
READ TABLE ngrams WITH TABLE KEY table_line = ngram TRANSPORTING NO FIELDS.
IF sy-subrc = 0.
ADD 1 TO hit_count.
ENDIF.
ENDMETHOD.
METHOD match.
DATA: length TYPE i,
offset TYPE i,
ignore_space TYPE abap_bool,
mb TYPE x LENGTH 1.
ignore_space = abap_false.
length = xstrlen( det->f_raw_input ) .
IF length MOD 2 = 1.
result = 0.
RETURN.
ENDIF.
offset = 0.
WHILE offset < length.
DATA(charmap_line) = VALUE ty_charmap_line( from = det->f_raw_input+offset(char_size) ).
READ TABLE charmap WITH TABLE KEY from = charmap_line-from INTO charmap_line.
" no need to test SY-SUBRC, it may be <> 0 i.e. not part of checked SBCS -> charmap_line-to is initial in that case.
IF charmap_line-to IS NOT INITIAL.
IF NOT ( charmap_line-to = space_x AND ignore_space = abap_true ).
add_char( charmap_line-to ).
ENDIF.
IF charmap_line-to = space_x.
ignore_space = abap_true.
ELSE.
ignore_space = abap_false.
ENDIF.
ENDIF.
ADD char_size TO offset.
ENDWHILE.
add_char( space_x ).
result = 300 * hit_count / ngram_count.
IF result > 99.
result = 98.
ENDIF.
ENDMETHOD.
ENDCLASS.
| [
40484,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
48504,
12,
23,
3556,
79,
29,
198,
40484,
198,
31631,
1976,
565,
62,
6359,
81,
62,
40477,
62,
1433,
62,
36299,
6359,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
6359,
81,
62,
46903,
1098,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
198,
220,
220,
220,
220,
220,
366,
0,
7913,
286,
9881,
329,
10200,
530,
2095,
198,
220,
220,
220,
220,
220,
1149,
62,
7857,
220,
220,
220,
220,
220,
220,
41876,
1312,
26173,
8924,
362,
11,
198,
220,
220,
220,
220,
220,
11677,
62,
18,
4372,
62,
10641,
41876,
1312,
26173,
8924,
604,
11,
198,
220,
220,
220,
220,
220,
366,
0,
399,
12,
38,
859,
796,
513,
3435,
198,
220,
220,
220,
220,
220,
299,
4546,
62,
7857,
220,
220,
220,
220,
220,
41876,
1312,
26173,
8924,
718,
13,
198,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
1259,
62,
782,
859,
62,
87,
220,
41876,
2124,
406,
49494,
299,
4546,
62,
7857,
11,
198,
220,
220,
220,
220,
220,
1259,
62,
782,
9474,
62,
87,
41876,
2124,
406,
49494,
40400,
11,
366,
5598,
399,
12,
38,
9474,
1123,
925,
286,
718,
9881,
198,
220,
220,
220,
220,
220,
366,
2773,
399,
12,
38,
9474,
743,
3051,
5403,
198,
220,
220,
220,
220,
220,
1259,
62,
782,
9474,
220,
220,
41876,
311,
9863,
1961,
43679,
3963,
1259,
62,
782,
859,
62,
87,
13315,
44521,
12,
4944,
33866,
8924,
35374,
3084,
62,
1370,
11,
198,
220,
220,
220,
220,
220,
1259,
62,
10641,
220,
220,
220,
220,
41876,
2124,
406,
49494,
1149,
62,
7857,
11,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
1259,
62,
354,
1670,
499,
62,
1370,
11,
198,
220,
220,
220,
220,
220,
220,
220,
422,
41876,
1259,
62,
10641,
11,
198,
220,
220,
220,
220,
220,
220,
220,
284,
220,
220,
41876,
1259,
62,
10641,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
354,
1670,
499,
62,
1370,
11,
198,
220,
220,
220,
220,
220,
1259,
62,
354,
1670,
499,
41876,
367,
11211,
1961,
43679,
3963,
1259,
62,
354,
1670,
499,
62,
1370,
13315,
4725,
33866,
8924,
35374,
422,
13,
198,
220,
220,
220,
42865,
25,
198,
220,
220,
220,
220,
220,
269,
27891,
62,
36299,
6359,
220,
220,
220,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
6359,
81,
62,
36299,
6359,
20832,
12,
1340,
11319,
11,
198,
220,
220,
220,
220,
220,
1263,
62,
437,
666,
220,
220,
220,
41876,
450,
499,
62,
30388,
20832,
12,
1340,
11319,
11,
198,
220,
220,
220,
220,
220,
1310,
62,
437,
666,
41876,
450,
499,
62,
30388,
20832,
12,
1340,
11319,
11,
198,
220,
220,
220,
220,
220,
299,
4546,
82,
220,
220,
220,
220,
220,
220,
220,
41876,
1259,
62,
782,
9474,
20832,
12,
1340,
11319,
11,
198,
220,
220,
220,
220,
220,
1149,
8899,
220,
220,
220,
220,
220,
220,
41876,
1259,
62,
354,
1670,
499,
20832,
12,
1340,
11319,
13,
628,
220,
220,
220,
366,
0,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
5320,
10943,
46126,
1581,
3556,
79,
29,
198,
220,
220,
220,
366,
0,
2488,
17143,
2357,
269,
27891,
62,
36299,
6359,
930,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
23984,
79,
29,
198,
220,
220,
220,
366,
0,
2488,
17143,
2357,
1263,
62,
437,
666,
930,
1279,
79,
1398,
2625,
19509,
5239,
47192,
1,
42392,
2625,
268,
23984,
79,
29,
198,
220,
220,
220,
366,
0,
2488,
32741,
43213,
62,
17143,
2357,
62,
259,
12102,
62,
9521,
930,
6127,
2443,
318,
407,
5447,
287,
48323,
198,
220,
220,
220,
337,
36252,
50,
23772,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
6359,
81,
62,
36299,
6359,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
6359,
81,
62,
36299,
6359,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
14261,
62,
437,
666,
41876,
450,
499,
62,
30388,
5550,
38865,
450,
499,
62,
7942,
198,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
43213,
62,
17143,
2357,
62,
259,
12102,
62,
9521,
13,
628,
220,
220,
220,
337,
36252,
50,
25,
2872,
23848,
36,
20032,
17941,
11,
198,
220,
220,
220,
220,
220,
651,
62,
3672,
23848,
36,
20032,
17941,
11,
198,
220,
220,
220,
220,
220,
651,
62,
16129,
23848,
36,
20032,
17941,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
337,
36252,
50,
35847,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
782,
859,
41876,
1259,
62,
782,
859,
62,
87,
764,
198,
220,
220,
220,
337,
36252,
50,
751,
62,
10641,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
5145,
10641,
41876,
1259,
62,
10641,
13,
628,
220,
220,
220,
42865,
25,
198,
220,
220,
220,
220,
220,
366,
0,
9236,
399,
12,
38,
859,
1141,
32096,
198,
220,
220,
220,
220,
220,
299,
4546,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1259,
62,
782,
859,
62,
87,
11,
198,
220,
220,
220,
220,
220,
366,
4687,
198,
220,
220,
220,
220,
220,
2272,
62,
87,
220,
220,
220,
220,
220,
220,
220,
220,
41876,
1259,
62,
10641,
11,
198,
220,
220,
220,
220,
220,
366,
0,
8314,
407,
954,
12515,
3435,
198,
220,
220,
220,
220,
220,
299,
4546,
62,
9127,
220,
220,
220,
220,
41876,
1312,
11,
198,
220,
220,
220,
220,
220,
2277,
62,
9127,
220,
220,
220,
220,
220,
220,
41876,
1312,
11,
198,
220,
220,
220,
220,
220,
14873,
538,
496,
62,
40477,
62,
1433,
41876,
4731,
13,
198,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1976,
565,
62,
6359,
81,
62,
40477,
62,
1433,
62,
36299,
6359,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
751
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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name
FOR zif_abappgp_packet~get_name .
ALIASES get_tag
FOR zif_abappgp_packet~get_tag .
ALIASES to_stream
FOR zif_abappgp_packet~to_stream .
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS ZCL_ABAPPGP_PACKET_04 IMPLEMENTATION.
METHOD zif_abappgp_packet~dump.
rv_dump = |{ get_name( ) }(tag { get_tag( ) })({ to_stream( )->get_length( ) } bytes)\n\ttodo\n|.
ENDMETHOD.
METHOD zif_abappgp_packet~from_stream.
* todo
CREATE OBJECT ri_packet
TYPE zcl_abappgp_packet_04.
ENDMETHOD.
METHOD zif_abappgp_packet~get_name.
rv_name = 'One-Pass Signature Packet'(001).
ENDMETHOD.
METHOD zif_abappgp_packet~get_tag.
rv_tag = zif_abappgp_constants=>c_tag-one_pass.
ENDMETHOD.
METHOD zif_abappgp_packet~to_stream.
* todo
CREATE OBJECT ro_stream.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
1324,
31197,
62,
8002,
316,
62,
3023,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
397,
1324,
31197,
62,
8002,
316,
764,
628,
220,
220,
220,
8355,
43429,
1546,
422,
62,
5532,
198,
220,
220,
220,
220,
220,
7473,
1976,
361,
62,
397,
1324,
31197,
62,
8002,
316,
93,
6738,
62,
5532,
764,
198,
220,
220,
220,
8355,
43429,
1546,
651,
62,
3672,
198,
220,
220,
220,
220,
220,
7473,
1976,
361,
62,
397,
1324,
31197,
62,
8002,
316,
93,
1136,
62,
3672,
764,
198,
220,
220,
220,
8355,
43429,
1546,
651,
62,
12985,
198,
220,
220,
220,
220,
220,
7473,
1976,
361,
62,
397,
1324,
31197,
62,
8002,
316,
93,
1136,
62,
12985,
764,
198,
220,
220,
220,
8355,
43429,
1546,
284,
62,
5532,
198,
220,
220,
220,
220,
220,
7473,
1976,
361,
62,
397,
1324,
31197,
62,
8002,
316,
93,
1462,
62,
5532,
764,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
6242,
2969,
6968,
47,
62,
47,
8120,
2767,
62,
3023,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
1324,
31197,
62,
8002,
316,
93,
39455,
13,
628,
220,
220,
220,
374,
85,
62,
39455,
796,
930,
90,
651,
62,
3672,
7,
1267,
1782,
7,
12985,
1391,
651,
62,
12985,
7,
1267,
1782,
5769,
90,
284,
62,
5532,
7,
1267,
3784,
1136,
62,
13664,
7,
1267,
1782,
9881,
19415,
77,
59,
926,
24313,
59,
77,
91,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
1324,
31197,
62,
8002,
316,
93,
6738,
62,
5532,
13,
198,
198,
9,
284,
4598,
628,
220,
220,
220,
29244,
6158,
25334,
23680,
374,
72,
62,
8002,
316,
198,
220,
220,
220,
220,
220,
41876,
1976,
565,
62,
397,
1324,
31197,
62,
8002,
316,
62,
3023,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
1324,
31197,
62,
8002,
316,
93,
1136,
62,
3672,
13,
628,
220,
220,
220,
374,
85,
62,
3672,
796,
705,
3198,
12,
14478,
34894,
6400,
316,
6,
7,
8298,
737,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
1324,
31197,
62,
8002,
316,
93,
1136,
62,
12985,
13,
628,
220,
220,
220,
374,
85,
62,
12985,
796,
1976,
361,
62,
397,
1324,
31197,
62,
9979,
1187,
14804,
66,
62,
12985,
12,
505,
62,
6603,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
1976,
361,
62,
397,
1324,
31197,
62,
8002,
316,
93,
1462,
62,
5532,
13,
198,
198,
9,
284,
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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS ycl_a2g_json_copyto_req DEFINITION
PUBLIC
INHERITING FROM ycl_a2g_jsonbase
CREATE PUBLIC .
PUBLIC SECTION.
"! Build the class
"! @parameter if_msg_manager | message managere where soter alla message triggered by the applicaition
METHODS constructor
IMPORTING if_msg_manager TYPE REF TO yif_a2g_msg_manager.
METHODS: yif_a2g_json~set_attribute REDEFINITION.
METHODS: yif_a2g_json~get_attribute REDEFINITION.
TYPES: BEGIN OF ty_s_json_batchget,
destinationSpreadsheetId TYPE string,
END OF ty_s_json_batchget.
CONSTANTS: gc_fnam_DEST_SPREADSHEETID TYPE string VALUE 'DEST_SPREADSHEETID'.
PROTECTED SECTION.
METHODS generate_rules REDEFINITION.
METHODS rebuild_data REDEFINITION.
METHODS push_data REDEFINITION.
DATA: gs_copyto TYPE ty_s_json_batchget.
METHODS set_DEST_SPREADSHEETID IMPORTING !i_value TYPE REF TO data.
PRIVATE SECTION.
ENDCLASS.
CLASS ycl_a2g_json_copyto_req IMPLEMENTATION.
METHOD set_DEST_SPREADSHEETID.
FIELD-SYMBOLS <fs_value> TYPE string.
ASSIGN i_value->* TO <fs_value>.
IF <fs_value> IS ASSIGNED.
CHECK me->gs_copyto-destinationspreadsheetid <> <fs_value>.
me->gs_copyto-destinationspreadsheetid = <fs_value>.
ENDIF.
ENDMETHOD.
METHOD yif_a2g_json~set_attribute.
CASE i_name.
WHEN gc_fnam_DEST_SPREADSHEETID . me->set_DEST_SPREADSHEETID( i_value ).
ENDCASE.
ENDMETHOD.
METHOD yif_a2g_json~get_attribute.
CASE i_name.
WHEN gc_fnam_DEST_SPREADSHEETID . return = REF #( me->gs_copyto-destinationspreadsheetid ).
ENDCASE.
ENDMETHOD.
METHOD push_data.
ENDMETHOD.
METHOD rebuild_data.
ENDMETHOD.
METHOD constructor.
super->constructor( if_msg_manager ).
me->gv_data = REF #( me->gs_copyto ).
ENDMETHOD.
METHOD generate_rules.
ENDMETHOD.
ENDCLASS.
| [
31631,
331,
565,
62,
64,
17,
70,
62,
17752,
62,
30073,
1462,
62,
42180,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
3268,
16879,
2043,
2751,
16034,
331,
565,
62,
64,
17,
70,
62,
17752,
8692,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
366,
0,
10934,
262,
1398,
198,
220,
220,
220,
366,
0,
2488,
17143,
2357,
611,
62,
19662,
62,
37153,
930,
3275,
6687,
260,
810,
264,
19543,
477,
64,
3275,
13973,
416,
262,
2161,
64,
653,
198,
220,
220,
220,
337,
36252,
50,
23772,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
611,
62,
19662,
62,
37153,
41876,
4526,
37,
5390,
331,
361,
62,
64,
17,
70,
62,
19662,
62,
37153,
13,
628,
220,
220,
220,
337,
36252,
50,
25,
331,
361,
62,
64,
17,
70,
62,
17752,
93,
2617,
62,
42348,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
13,
198,
220,
220,
220,
337,
36252,
50,
25,
331,
361,
62,
64,
17,
70,
62,
17752,
93,
1136,
62,
42348,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
347,
43312,
3963,
1259,
62,
82,
62,
17752,
62,
43501,
1136,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
10965,
44458,
21760,
7390,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
82,
62,
17752,
62,
43501,
1136,
13,
628,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
308,
66,
62,
69,
7402,
62,
35,
6465,
62,
4303,
15675,
9693,
36,
2767,
2389,
220,
220,
41876,
4731,
26173,
8924,
705,
35,
6465,
62,
4303,
15675,
9693,
36,
2767,
2389,
4458,
198,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
7716,
62,
38785,
23848,
36,
20032,
17941,
13,
198,
220,
220,
220,
337,
36252,
50,
17884,
62,
7890,
220,
220,
23848,
36,
20032,
17941,
13,
198,
220,
220,
220,
337,
36252,
50,
4574,
62,
7890,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
13,
628,
220,
220,
220,
42865,
25,
308,
82,
62,
30073,
1462,
41876,
1259,
62,
82,
62,
17752,
62,
43501,
1136,
13,
628,
220,
220,
220,
337,
36252,
50,
900,
62,
35,
6465,
62,
4303,
15675,
9693,
36,
2767,
2389,
220,
30023,
9863,
2751,
5145,
72,
62,
8367,
41876,
4526,
37,
5390,
1366,
13,
628,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
331,
565,
62,
64,
17,
70,
62,
17752,
62,
30073,
1462,
62,
42180,
30023,
2538,
10979,
6234,
13,
198,
220,
337,
36252,
900,
62,
35,
6465,
62,
4303,
15675,
9693,
36,
2767,
2389,
13,
628,
220,
220,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
1279,
9501,
62,
8367,
29,
41876,
4731,
13,
628,
220,
220,
220,
24994,
16284,
1312,
62,
8367,
3784,
9,
5390,
1279,
9501,
62,
8367,
28401,
198,
220,
220,
220,
16876,
1279,
9501,
62,
8367,
29,
3180,
24994,
16284,
1961,
13,
198,
220,
220,
220,
220,
220,
5870,
25171,
502,
3784,
14542,
62,
30073,
1462,
12,
16520,
7352,
9681,
21760,
312,
1279,
29,
1279,
9501,
62,
8367,
28401,
198,
220,
220,
220,
220,
220,
502,
3784,
14542,
62,
30073,
1462,
12,
16520,
7352,
9681,
21760,
312,
796,
1279,
9501,
62,
8367,
28401,
198,
220,
220,
220,
23578,
5064,
13,
198,
220,
23578,
49273,
13,
628,
628,
220,
337,
36252,
331,
361,
62,
64,
17,
70,
62,
17752,
93,
2617,
62,
42348,
13,
198,
220,
220,
220,
42001,
220,
1312,
62,
3672,
13,
198,
220,
220,
220,
220,
220,
42099,
308,
66,
62,
69,
7402,
62,
35,
6465,
62,
4303,
15675,
9693,
36,
2767,
2389,
220,
220,
220,
220,
220,
764,
502,
3784,
2617,
62,
35,
6465,
62,
4303,
15675,
9693,
36,
2767,
2389,
7,
1312,
62,
8367,
6739,
198,
220,
220,
220,
23578,
34,
11159,
13,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
331,
361,
62,
64,
17,
70,
62,
17752,
93,
1136,
62,
42348,
13,
198,
220,
220,
220,
42001,
220,
1312,
62,
3672,
13,
198,
220,
220,
220,
220,
220,
42099,
308,
66,
62,
69,
7402,
62,
35,
6465,
62,
4303,
15675,
9693,
36,
2767,
2389,
220,
220,
220,
220,
220,
220,
764,
1441,
796,
4526,
37,
1303,
7,
502,
3784,
14542,
62,
30073,
1462,
12,
16520,
7352,
9681,
21760,
312,
6739,
198,
220,
220,
220,
23578,
34,
11159,
13,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
4574,
62,
7890,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
17884,
62,
7890,
13,
628,
220,
23578,
49273,
13,
628,
220,
337,
36252,
23772,
13,
198,
220,
220,
220,
2208,
3784,
41571,
273,
7,
611,
62,
19662,
62,
37153,
6739,
198,
220,
220,
220,
502,
3784,
70,
85,
62,
7890,
796,
4526,
37,
1303,
7,
502,
3784,
14542,
62,
30073,
1462,
6739,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
7716,
62,
38785,
13,
198,
220,
23578,
49273,
13,
628,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS ycl_a2g_json_booleanrule DEFINITION
PUBLIC
INHERITING FROM ycl_a2g_jsonbase
CREATE PUBLIC .
PUBLIC SECTION.
"! Build the class
"! @parameter if_msg_manager | message managere where soter alla message triggered by the applicaition
METHODS constructor
IMPORTING if_msg_manager TYPE REF TO yif_a2g_msg_manager.
TYPES: BEGIN OF ty_s_json_booleanrule,
condition TYPE ycl_a2g_json_booleancondition=>ty_s_json_booleancondition,
format TYPE ycl_a2g_json_cellformat=>ty_s_json_cellformat,
END OF ty_s_json_booleanrule.
TYPES ty_t_json_booleanrule TYPE STANDARD TABLE OF ty_s_json_booleanrule WITH NON-UNIQUE KEY condition.
PROTECTED SECTION.
METHODS generate_rules REDEFINITION.
METHODS rebuild_data REDEFINITION.
METHODS push_data REDEFINITION.
DATA: gs_booleanrule TYPE ty_s_json_booleanrule.
PRIVATE SECTION.
ENDCLASS.
CLASS ycl_a2g_json_booleanrule IMPLEMENTATION.
METHOD push_data.
ENDMETHOD.
METHOD rebuild_data.
ENDMETHOD.
METHOD constructor.
super->constructor( if_msg_manager ).
me->gv_data = REF #( me->gs_booleanrule ).
ENDMETHOD.
METHOD generate_rules.
ENDMETHOD.
ENDCLASS.
| [
31631,
331,
565,
62,
64,
17,
70,
62,
17752,
62,
2127,
21052,
25135,
5550,
20032,
17941,
198,
220,
44731,
198,
3268,
16879,
2043,
2751,
16034,
331,
565,
62,
64,
17,
70,
62,
17752,
8692,
198,
220,
29244,
6158,
44731,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
366,
0,
10934,
262,
1398,
198,
220,
220,
220,
366,
0,
2488,
17143,
2357,
611,
62,
19662,
62,
37153,
930,
3275,
6687,
260,
810,
264,
19543,
477,
64,
3275,
13973,
416,
262,
2161,
64,
653,
198,
220,
220,
220,
337,
36252,
50,
23772,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
611,
62,
19662,
62,
37153,
41876,
4526,
37,
5390,
331,
361,
62,
64,
17,
70,
62,
19662,
62,
37153,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
347,
43312,
3963,
1259,
62,
82,
62,
17752,
62,
2127,
21052,
25135,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
4006,
41876,
331,
565,
62,
64,
17,
70,
62,
17752,
62,
2127,
2305,
1192,
623,
653,
14804,
774,
62,
82,
62,
17752,
62,
2127,
2305,
1192,
623,
653,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5794,
220,
220,
220,
41876,
331,
565,
62,
64,
17,
70,
62,
17752,
62,
3846,
18982,
14804,
774,
62,
82,
62,
17752,
62,
3846,
18982,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
82,
62,
17752,
62,
2127,
21052,
25135,
13,
198,
220,
220,
220,
24412,
47,
1546,
1259,
62,
83,
62,
17752,
62,
2127,
21052,
25135,
41876,
49053,
9795,
43679,
3963,
1259,
62,
82,
62,
17752,
62,
2127,
21052,
25135,
13315,
44521,
12,
4944,
33866,
8924,
35374,
4006,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
220,
220,
337,
36252,
50,
7716,
62,
38785,
23848,
36,
20032,
17941,
13,
198,
220,
220,
220,
337,
36252,
50,
17884,
62,
7890,
220,
220,
23848,
36,
20032,
17941,
13,
198,
220,
220,
220,
337,
36252,
50,
4574,
62,
7890,
220,
220,
220,
220,
220,
23848,
36,
20032,
17941,
13,
628,
220,
220,
220,
42865,
25,
308,
82,
62,
2127,
21052,
25135,
220,
41876,
1259,
62,
82,
62,
17752,
62,
2127,
21052,
25135,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
10619,
31631,
13,
628,
198,
198,
31631,
331,
565,
62,
64,
17,
70,
62,
17752,
62,
2127,
21052,
25135,
30023,
2538,
10979,
6234,
13,
198,
220,
337,
36252,
4574,
62,
7890,
13,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
17884,
62,
7890,
13,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
23772,
13,
198,
220,
220,
220,
2208,
3784,
41571,
273,
7,
611,
62,
19662,
62,
37153,
6739,
198,
220,
220,
220,
502,
3784,
70,
85,
62,
7890,
796,
4526,
37,
1303,
7,
502,
3784,
14542,
62,
2127,
21052,
25135,
220,
6739,
198,
220,
23578,
49273,
13,
628,
220,
337,
36252,
7716,
62,
38785,
13,
198,
220,
23578,
49273,
13,
198,
10619,
31631,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
*"* components of interface /GAL/IF_RFC_ROUTE_PROVIDER
interface /GAL/IF_RFC_ROUTE_PROVIDER
public .
methods GET_RFC_ROUTE_INFO
importing
!PURPOSE type /GAL/CFW_PURPOSE default `ANY`
!TARGET_SYSTEM_ID type /GAL/SYSTEM_ID
!TARGET_CLIENT_ID type MANDT default 'ANY'
returning
value(RFC_ROUTE_INFO) type /GAL/RFC_ROUTE_INFO
raising
/GAL/CX_CFW_EXCEPTION .
endinterface.
| [
9,
1,
9,
6805,
286,
7071,
1220,
38,
1847,
14,
5064,
62,
41150,
62,
49,
2606,
9328,
62,
41283,
41237,
198,
39994,
1220,
38,
1847,
14,
5064,
62,
41150,
62,
49,
2606,
9328,
62,
41283,
41237,
198,
220,
1171,
764,
628,
198,
220,
5050,
17151,
62,
41150,
62,
49,
2606,
9328,
62,
10778,
198,
220,
220,
220,
33332,
198,
220,
220,
220,
220,
220,
5145,
47,
4261,
48933,
2099,
1220,
38,
1847,
14,
22495,
54,
62,
47,
4261,
48933,
4277,
4600,
31827,
63,
198,
220,
220,
220,
220,
220,
5145,
51,
46095,
62,
23060,
25361,
62,
2389,
2099,
1220,
38,
1847,
14,
23060,
25361,
62,
2389,
198,
220,
220,
220,
220,
220,
5145,
51,
46095,
62,
5097,
28495,
62,
2389,
2099,
337,
6981,
51,
4277,
705,
31827,
6,
198,
220,
220,
220,
8024,
198,
220,
220,
220,
220,
220,
1988,
7,
41150,
62,
49,
2606,
9328,
62,
10778,
8,
2099,
1220,
38,
1847,
14,
41150,
62,
49,
2606,
9328,
62,
10778,
198,
220,
220,
220,
8620,
198,
220,
220,
220,
220,
220,
1220,
38,
1847,
14,
34,
55,
62,
22495,
54,
62,
6369,
42006,
2849,
764,
198,
437,
39994,
13,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
*&---------------------------------------------------------------------*
*& Report ZSAPLINK_ADT_INSTALLER
*& SAPlink ADT Installer
*&---------------------------------------------------------------------*
*/---------------------------------------------------------------------\
*| This file is part of SAPlink for ABAP in Eclipse. |
*| |
*| The code of this project is provided to you under the current |
*| version of the SAP Code Exchange Terms of Use. You can find the |
*| text on the SAP Code Exchange webpage at http://www.sdn.sap.com |
*| |
*| SAPlink is provided to you AS IS with no guarantee, warranty or |
*| support. |
*\---------------------------------------------------------------------/
REPORT zsaplink_adt_installer.
TYPE-POOLS: abap.
" For testing without AiE we set this variable
DATA: lv_nugget_path(300) TYPE c VALUE 'C:\Projects\SAPlinkADT\trunk\org.saplink.install\files\SAPlinkADT-SAPlink-ZAKE-SAPlink-Plugins.nugg'.
" When we run in AiE then the placeholder was replaced
IF cl_adt_gui_event_dispatcher=>is_adt_environment( ) = abap_true.
lv_nugget_path = 'C:\Users\ladmin\.eclipse\org.eclipse.platform_3.7.0_118372976\plugins\org.saplink.install_1.0.27\files\SAPlinkADT-SAPlink-ZAKE-SAPlink-Plugins.nugg'.
ENDIF.
" Export result to memory to avoid an additional screen the user must close manually
SUBMIT zsaplink_installer
WITH nuggfil = lv_nugget_path
EXPORTING LIST TO MEMORY
AND RETURN.
" Trigger the Nugget
IF cl_adt_gui_event_dispatcher=>is_adt_environment( ) = abap_true.
cl_adt_gui_event_dispatcher=>send_test_event(
EXPORTING
value = 'org.saplink.saplinkadt.installation.finished'
).
ENDIF. | [
9,
5,
10097,
30934,
9,
198,
9,
5,
6358,
220,
1168,
50,
2969,
43,
17248,
62,
2885,
51,
62,
38604,
7036,
1137,
198,
9,
5,
48323,
8726,
5984,
51,
15545,
263,
198,
9,
5,
10097,
30934,
9,
198,
16208,
10097,
30934,
59,
198,
9,
91,
220,
220,
770,
2393,
318,
636,
286,
48323,
8726,
329,
9564,
2969,
287,
30991,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
198,
9,
91,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
198,
9,
91,
220,
220,
383,
2438,
286,
428,
1628,
318,
2810,
284,
345,
739,
262,
1459,
220,
220,
220,
220,
930,
198,
9,
91,
220,
220,
2196,
286,
262,
48323,
6127,
12516,
17637,
286,
5765,
13,
921,
460,
1064,
262,
220,
220,
930,
198,
9,
91,
220,
220,
2420,
319,
262,
48323,
6127,
12516,
35699,
379,
2638,
1378,
2503,
13,
21282,
77,
13,
82,
499,
13,
785,
220,
220,
930,
198,
9,
91,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
198,
9,
91,
220,
220,
48323,
8726,
318,
2810,
284,
345,
7054,
3180,
351,
645,
9149,
11,
18215,
393,
220,
220,
930,
198,
9,
91,
220,
220,
1104,
13,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
930,
198,
9,
59,
10097,
30934,
14,
198,
198,
2200,
15490,
220,
1976,
11400,
489,
676,
62,
324,
83,
62,
17350,
263,
13,
198,
198,
25216,
12,
16402,
3535,
50,
25,
450,
499,
13,
198,
198,
1,
1114,
4856,
1231,
38230,
36,
356,
900,
428,
7885,
198,
26947,
25,
300,
85,
62,
77,
1018,
1136,
62,
6978,
7,
6200,
8,
41876,
269,
26173,
8924,
705,
34,
7479,
16775,
82,
59,
50,
2969,
8726,
2885,
51,
59,
2213,
2954,
59,
2398,
13,
11400,
489,
676,
13,
17350,
59,
16624,
59,
50,
2969,
8726,
2885,
51,
12,
50,
2969,
8726,
12,
34892,
7336,
12,
50,
2969,
8726,
12,
23257,
1040,
13,
77,
6837,
4458,
198,
198,
1,
1649,
356,
1057,
287,
38230,
36,
788,
262,
46076,
373,
6928,
198,
5064,
537,
62,
324,
83,
62,
48317,
62,
15596,
62,
6381,
8071,
2044,
14804,
271,
62,
324,
83,
62,
38986,
7,
1267,
796,
450,
499,
62,
7942,
13,
198,
220,
300,
85,
62,
77,
1018,
1136,
62,
6978,
796,
705,
34,
7479,
14490,
59,
9435,
1084,
17405,
68,
17043,
59,
2398,
13,
68,
17043,
13,
24254,
62,
18,
13,
22,
13,
15,
62,
16817,
2718,
1959,
4304,
59,
37390,
59,
2398,
13,
11400,
489,
676,
13,
17350,
62,
16,
13,
15,
13,
1983,
59,
16624,
59,
50,
2969,
8726,
2885,
51,
12,
50,
2969,
8726,
12,
34892,
7336,
12,
50,
2969,
8726,
12,
23257,
1040,
13,
77,
6837,
4458,
198,
10619,
5064,
13,
198,
198,
1,
36472,
1255,
284,
4088,
284,
3368,
281,
3224,
3159,
262,
2836,
1276,
1969,
14500,
198,
50,
10526,
36393,
1976,
11400,
489,
676,
62,
17350,
263,
198,
220,
13315,
299,
6837,
10379,
796,
300,
85,
62,
77,
1018,
1136,
62,
6978,
198,
220,
7788,
15490,
2751,
39498,
5390,
35153,
15513,
198,
220,
5357,
30826,
27064,
13,
198,
198,
1,
24593,
262,
45777,
1136,
198,
5064,
537,
62,
324,
83,
62,
48317,
62,
15596,
62,
6381,
8071,
2044,
14804,
271,
62,
324,
83,
62,
38986,
7,
1267,
796,
450,
499,
62,
7942,
13,
198,
220,
537,
62,
324,
83,
62,
48317,
62,
15596,
62,
6381,
8071,
2044,
14804,
21280,
62,
9288,
62,
15596,
7,
198,
220,
220,
220,
7788,
15490,
2751,
198,
220,
220,
220,
220,
220,
1988,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
796,
705,
2398,
13,
11400,
489,
676,
13,
11400,
489,
676,
324,
83,
13,
17350,
341,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_abapgit_html_form DEFINITION
PUBLIC
FINAL
CREATE PRIVATE .
PUBLIC SECTION.
CLASS-METHODS create
IMPORTING
iv_form_id TYPE string OPTIONAL
RETURNING
VALUE(ro_form) TYPE REF TO zcl_abapgit_html_form.
METHODS render
IMPORTING
iv_form_class TYPE string
io_values TYPE REF TO zcl_abapgit_string_map
io_validation_log TYPE REF TO zcl_abapgit_string_map OPTIONAL
RETURNING
VALUE(ri_html) TYPE REF TO zif_abapgit_html.
METHODS command
IMPORTING
iv_label TYPE string
iv_action TYPE string
iv_is_main TYPE abap_bool DEFAULT abap_false
iv_as_a TYPE abap_bool DEFAULT abap_false.
METHODS text
IMPORTING
iv_label TYPE string
iv_name TYPE string
iv_hint TYPE string OPTIONAL
iv_required TYPE abap_bool DEFAULT abap_false
iv_placeholder TYPE string OPTIONAL
iv_side_action TYPE string OPTIONAL.
METHODS checkbox
IMPORTING
iv_label TYPE string
iv_name TYPE string
iv_hint TYPE string OPTIONAL.
METHODS radio
IMPORTING
iv_label TYPE string
iv_name TYPE string
iv_default_value TYPE string OPTIONAL
iv_hint TYPE string OPTIONAL.
METHODS option
IMPORTING
iv_label TYPE string
iv_value TYPE string.
PROTECTED SECTION.
PRIVATE SECTION.
TYPES:
BEGIN OF ty_subitem,
label TYPE string,
value TYPE string,
END OF ty_subitem.
TYPES:
tty_subitems TYPE STANDARD TABLE OF ty_subitem WITH DEFAULT KEY.
TYPES:
BEGIN OF ty_field,
type TYPE i,
name TYPE string,
label TYPE string,
hint TYPE string,
dblclick TYPE string,
placeholder TYPE string,
required TYPE string,
item_class TYPE string,
error TYPE string,
default_value TYPE string,
side_action TYPE string,
subitems TYPE tty_subitems,
* onclick ???
END OF ty_field.
TYPES:
BEGIN OF ty_command,
label TYPE string,
action TYPE string,
is_main TYPE abap_bool,
as_a TYPE abap_bool,
* onclick ???
END OF ty_command.
CONSTANTS:
BEGIN OF c_field_type,
text TYPE i VALUE 1,
radio TYPE i VALUE 2,
checkbox TYPE i VALUE 3,
END OF c_field_type.
DATA mt_fields TYPE STANDARD TABLE OF ty_field.
DATA mt_commands TYPE STANDARD TABLE OF ty_command.
DATA mv_form_id TYPE string.
CLASS-METHODS render_field
IMPORTING
ii_html TYPE REF TO zif_abapgit_html
io_values TYPE REF TO zcl_abapgit_string_map
io_validation_log TYPE REF TO zcl_abapgit_string_map
is_field TYPE ty_field.
CLASS-METHODS render_command
IMPORTING
ii_html TYPE REF TO zif_abapgit_html
is_cmd TYPE ty_command.
ENDCLASS.
CLASS ZCL_ABAPGIT_HTML_FORM IMPLEMENTATION.
METHOD checkbox.
DATA ls_field LIKE LINE OF mt_fields.
ls_field-type = c_field_type-checkbox.
ls_field-name = iv_name.
ls_field-label = iv_label.
IF iv_hint IS NOT INITIAL.
ls_field-hint = | title="{ iv_hint }"|.
ENDIF.
APPEND ls_field TO mt_fields.
ENDMETHOD.
METHOD command.
DATA ls_cmd LIKE LINE OF mt_commands.
ASSERT iv_as_a IS INITIAL OR iv_is_main IS INITIAL.
ls_cmd-label = iv_label.
ls_cmd-action = iv_action.
ls_cmd-is_main = iv_is_main.
ls_cmd-as_a = iv_as_a.
APPEND ls_cmd TO mt_commands.
ENDMETHOD.
METHOD create.
CREATE OBJECT ro_form.
ro_form->mv_form_id = iv_form_id.
ENDMETHOD.
METHOD option.
FIELD-SYMBOLS <ls_last> LIKE LINE OF mt_fields.
DATA ls_option LIKE LINE OF <ls_last>-subitems.
DATA lv_size TYPE i.
lv_size = lines( mt_fields ).
ASSERT lv_size > 0. " Exception ? Maybe add zcx_no_check ?
READ TABLE mt_fields INDEX lv_size ASSIGNING <ls_last>.
ASSERT sy-subrc = 0.
ASSERT <ls_last>-type = c_field_type-radio. " Or dropdown - TODO in future
ls_option-label = iv_label.
ls_option-value = iv_value.
APPEND ls_option TO <ls_last>-subitems.
ENDMETHOD.
METHOD radio.
DATA ls_field LIKE LINE OF mt_fields.
ls_field-type = c_field_type-radio.
ls_field-name = iv_name.
ls_field-label = iv_label.
ls_field-default_value = iv_default_value.
IF iv_hint IS NOT INITIAL.
ls_field-hint = | title="{ iv_hint }"|.
ENDIF.
APPEND ls_field TO mt_fields.
ENDMETHOD.
METHOD render.
FIELD-SYMBOLS <ls_field> LIKE LINE OF mt_fields.
FIELD-SYMBOLS <ls_cmd> LIKE LINE OF mt_commands.
DATA ls_form_id TYPE string.
IF mv_form_id IS NOT INITIAL.
ls_form_id = | id="{ mv_form_id }"|.
ENDIF.
ri_html = zcl_abapgit_html=>create( ).
ri_html->add( |<ul class="{ iv_form_class }">| ).
ri_html->add( |<form method="post"{ ls_form_id }>| ).
LOOP AT mt_fields ASSIGNING <ls_field>.
render_field(
ii_html = ri_html
io_values = io_values
io_validation_log = io_validation_log
is_field = <ls_field> ).
ENDLOOP.
ri_html->add( |<li class="dialog-commands">| ).
LOOP AT mt_commands ASSIGNING <ls_cmd>.
render_command(
ii_html = ri_html
is_cmd = <ls_cmd> ).
ENDLOOP.
ri_html->add( |</li>| ).
ri_html->add( |</form>| ).
ri_html->add( |</ul>| ).
ENDMETHOD.
METHOD render_command.
DATA lv_main_submit TYPE string.
IF is_cmd-as_a = abap_true.
ii_html->add_a(
iv_txt = is_cmd-label
iv_act = is_cmd-action
iv_class = 'dialog-commands' ).
ELSE.
IF is_cmd-is_main = abap_true.
lv_main_submit = ' class="main"'.
ELSE.
CLEAR lv_main_submit.
ENDIF.
ii_html->add( |<input type="submit" value="{
is_cmd-label }"{ lv_main_submit } formaction="sapevent:{ is_cmd-action }">| ).
ENDIF.
ENDMETHOD.
METHOD render_field.
DATA lv_opt_id TYPE string.
DATA lv_error TYPE string.
DATA lv_value TYPE string.
DATA lv_checked TYPE string.
DATA lv_item_class TYPE string.
FIELD-SYMBOLS <ls_opt> LIKE LINE OF is_field-subitems.
" Get value and validation error from maps
lv_value = io_values->get( is_field-name ).
IF io_validation_log IS BOUND.
lv_error = io_validation_log->get( is_field-name ).
ENDIF.
" Prepare item class
lv_item_class = is_field-item_class.
IF lv_error IS NOT INITIAL.
lv_item_class = condense( lv_item_class && ' error' ).
ENDIF.
IF lv_item_class IS NOT INITIAL.
lv_item_class = | class="{ lv_item_class }"|.
ENDIF.
" Render field
ii_html->add( |<li{ lv_item_class }>| ).
CASE is_field-type.
WHEN c_field_type-text.
ii_html->add( |<label for="{ is_field-name }"{ is_field-hint }>{
is_field-label }{ is_field-required }</label>| ).
IF lv_error IS NOT INITIAL.
ii_html->add( |<small>{ lv_error }</small>| ).
ENDIF.
IF is_field-side_action IS NOT INITIAL.
ii_html->add( '<div class="input-container">' ). " Ugly :(
ENDIF.
ii_html->add( |<input type="text" name="{ is_field-name }" id="{
is_field-name }"{ is_field-placeholder } value="{ lv_value }"{ is_field-dblclick }>| ).
IF is_field-side_action IS NOT INITIAL.
ii_html->add( '</div>' ).
ii_html->add( '<div class="command-container">' ).
ii_html->add( |<input type="submit" value="…" formaction="sapevent:{ is_field-side_action }">| ).
ii_html->add( '</div>' ).
ENDIF.
WHEN c_field_type-checkbox.
IF lv_error IS NOT INITIAL.
ii_html->add( |<small>{ lv_error }</small>| ).
ENDIF.
IF lv_value IS NOT INITIAL.
lv_checked = ' checked'.
ENDIF.
ii_html->add( |<input type="checkbox" name="{ is_field-name }" id="{ is_field-name }"{ lv_checked }>| ).
ii_html->add( |<label for="{ is_field-name }"{ is_field-hint }>{
is_field-label }{ is_field-required }</label>| ).
WHEN c_field_type-radio.
ii_html->add( |<label{ is_field-hint }>{ is_field-label }{ is_field-required }</label>| ).
IF lv_error IS NOT INITIAL.
ii_html->add( |<small>{ lv_error }</small>| ).
ENDIF.
ii_html->add( |<div class="radio-container">| ).
LOOP AT is_field-subitems ASSIGNING <ls_opt>.
CLEAR lv_checked.
IF lv_value = <ls_opt>-value OR ( lv_value IS INITIAL AND <ls_opt>-value = is_field-default_value ).
lv_checked = ' checked'.
ENDIF.
lv_opt_id = |{ is_field-name }{ sy-tabix }|.
ii_html->add( |<input type="radio" name="{ is_field-name }" id="{
lv_opt_id }" value="{ <ls_opt>-value }"{ lv_checked }>| ).
ii_html->add( |<label for="{ lv_opt_id }">{ <ls_opt>-label }</label>| ).
ENDLOOP.
ii_html->add( '</div>' ).
WHEN OTHERS.
ASSERT 1 = 0.
ENDCASE.
ii_html->add( '</li>' ).
ENDMETHOD.
METHOD text.
DATA ls_field LIKE LINE OF mt_fields.
ls_field-type = c_field_type-text.
ls_field-name = iv_name.
ls_field-label = iv_label.
IF iv_hint IS NOT INITIAL.
ls_field-hint = | title="{ iv_hint }"|.
ENDIF.
IF iv_side_action IS NOT INITIAL AND mv_form_id IS NOT INITIAL.
ls_field-item_class = 'with-command'.
ls_field-side_action = iv_side_action.
ls_field-dblclick = | ondblclick="document.getElementById('{ mv_form_id
}').action = 'sapevent:{ iv_side_action
}'; document.getElementById('{ mv_form_id
}').submit()"|.
ENDIF.
IF iv_required = abap_true.
ls_field-required = ' <em>*</em>'.
ENDIF.
IF iv_placeholder IS NOT INITIAL.
ls_field-placeholder = | placeholder="{ iv_placeholder }"|.
ENDIF.
APPEND ls_field TO mt_fields.
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
6494,
62,
687,
5550,
20032,
17941,
198,
220,
44731,
198,
220,
25261,
198,
220,
29244,
6158,
4810,
3824,
6158,
764,
628,
220,
44731,
44513,
13,
628,
220,
220,
220,
42715,
12,
49273,
50,
2251,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
687,
62,
312,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
305,
62,
687,
8,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
6494,
62,
687,
13,
628,
220,
220,
220,
337,
36252,
50,
8543,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
687,
62,
4871,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
33245,
62,
27160,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
8841,
62,
8899,
198,
220,
220,
220,
220,
220,
220,
220,
33245,
62,
12102,
341,
62,
6404,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
8841,
62,
8899,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
380,
62,
6494,
8,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
6494,
13,
628,
220,
220,
220,
337,
36252,
50,
3141,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
18242,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
2673,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
271,
62,
12417,
41876,
450,
499,
62,
30388,
5550,
38865,
450,
499,
62,
9562,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
292,
62,
64,
41876,
450,
499,
62,
30388,
5550,
38865,
450,
499,
62,
9562,
13,
628,
220,
220,
220,
337,
36252,
50,
2420,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
18242,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
3672,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
71,
600,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
35827,
41876,
450,
499,
62,
30388,
5550,
38865,
450,
499,
62,
9562,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
5372,
13829,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
1589,
62,
2673,
41876,
4731,
39852,
2849,
1847,
13,
628,
220,
220,
220,
337,
36252,
50,
2198,
3524,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
18242,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
3672,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
71,
600,
41876,
4731,
39852,
2849,
1847,
13,
628,
220,
220,
220,
337,
36252,
50,
5243,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
18242,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
3672,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
12286,
62,
8367,
41876,
4731,
39852,
2849,
1847,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
71,
600,
41876,
4731,
39852,
2849,
1847,
13,
628,
220,
220,
220,
337,
36252,
50,
3038,
198,
220,
220,
220,
220,
220,
30023,
9863,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
18242,
41876,
4731,
198,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
8367,
41876,
4731,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
1259,
62,
7266,
9186,
11,
198,
220,
220,
220,
220,
220,
220,
220,
6167,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1988,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
7266,
9186,
13,
198,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
256,
774,
62,
7266,
23814,
41876,
49053,
9795,
43679,
3963,
1259,
62,
7266,
9186,
13315,
5550,
38865,
35374,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
1259,
62,
3245,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2099,
41876,
1312,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1438,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
6167,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
9254,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
288,
2436,
12976,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
46076,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2672,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2378,
62,
4871,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
4049,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
4277,
62,
8367,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
1735,
62,
2673,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
850,
23814,
41876,
256,
774,
62,
7266,
23814,
11,
198,
9,
220,
220,
220,
220,
220,
220,
220,
319,
12976,
34913,
198,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
3245,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
198,
220,
220,
220,
220,
220,
347,
43312,
3963,
1259,
62,
21812,
11,
198,
220,
220,
220,
220,
220,
220,
220,
6167,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
2223,
41876,
4731,
11,
198,
220,
220,
220,
220,
220,
220,
220,
318,
62,
12417,
41876,
450,
499,
62,
30388,
11,
198,
220,
220,
220,
220,
220,
220,
220,
355,
62,
64,
41876,
450,
499,
62,
30388,
11,
198,
9,
220,
220,
220,
220,
220,
220,
220
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_abapgit_object_doma DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_super FINAL.
PUBLIC SECTION.
INTERFACES zif_abapgit_object.
ALIASES mo_files FOR zif_abapgit_object~mo_files.
PROTECTED SECTION.
PRIVATE SECTION.
TYPES: BEGIN OF ty_dd01_texts,
ddlanguage TYPE dd01v-ddlanguage,
ddtext TYPE dd01v-ddtext,
END OF ty_dd01_texts,
BEGIN OF ty_dd07_texts,
valpos TYPE dd07v-valpos,
ddlanguage TYPE dd07v-ddlanguage,
domvalue_l TYPE dd07v-domvalue_l,
domvalue_h TYPE dd07v-domvalue_h,
ddtext TYPE dd07v-ddtext,
domval_ld TYPE dd07v-domval_ld,
domval_hd TYPE dd07v-domval_hd,
END OF ty_dd07_texts,
tt_dd01_texts TYPE STANDARD TABLE OF ty_dd01_texts,
tt_dd07_texts TYPE STANDARD TABLE OF ty_dd07_texts.
CONSTANTS: c_longtext_id_doma TYPE dokil-id VALUE 'DO'.
METHODS:
serialize_texts
IMPORTING io_xml TYPE REF TO zcl_abapgit_xml_output
RAISING zcx_abapgit_exception,
deserialize_texts
IMPORTING io_xml TYPE REF TO zcl_abapgit_xml_input
is_dd01v TYPE dd01v
it_dd07v TYPE dd07v_tab
RAISING zcx_abapgit_exception.
ENDCLASS.
CLASS ZCL_ABAPGIT_OBJECT_DOMA IMPLEMENTATION.
METHOD deserialize_texts.
DATA: lv_name TYPE ddobjname,
lv_valpos TYPE valpos,
ls_dd01v_tmp TYPE dd01v,
lt_dd07v_tmp TYPE TABLE OF dd07v,
lt_i18n_langs TYPE TABLE OF langu,
lt_dd01_texts TYPE tt_dd01_texts,
lt_dd07_texts TYPE tt_dd07_texts.
FIELD-SYMBOLS: <lv_lang> LIKE LINE OF lt_i18n_langs,
<ls_dd07v> LIKE LINE OF it_dd07v,
<ls_dd01_text> LIKE LINE OF lt_dd01_texts,
<ls_dd07_text> LIKE LINE OF lt_dd07_texts.
lv_name = ms_item-obj_name.
io_xml->read( EXPORTING iv_name = 'I18N_LANGS'
CHANGING cg_data = lt_i18n_langs ).
io_xml->read( EXPORTING iv_name = 'DD01_TEXTS'
CHANGING cg_data = lt_dd01_texts ).
io_xml->read( EXPORTING iv_name = 'DD07_TEXTS'
CHANGING cg_data = lt_dd07_texts ).
SORT lt_i18n_langs.
SORT lt_dd07_texts BY ddlanguage. " Optimization
LOOP AT lt_i18n_langs ASSIGNING <lv_lang>.
" Domain description
ls_dd01v_tmp = is_dd01v.
READ TABLE lt_dd01_texts ASSIGNING <ls_dd01_text> WITH KEY ddlanguage = <lv_lang>.
IF sy-subrc > 0.
zcx_abapgit_exception=>raise( |DD01_TEXTS cannot find lang { <lv_lang> } in XML| ).
ENDIF.
MOVE-CORRESPONDING <ls_dd01_text> TO ls_dd01v_tmp.
" Domain values
lt_dd07v_tmp = it_dd07v.
LOOP AT lt_dd07v_tmp ASSIGNING <ls_dd07v>.
lv_valpos = <ls_dd07v>-valpos.
READ TABLE lt_dd07_texts ASSIGNING <ls_dd07_text>
WITH KEY ddlanguage = <lv_lang> valpos = <ls_dd07v>-valpos.
CHECK sy-subrc = 0. " ! no translation -> master translation remain (maybe not OK)
MOVE-CORRESPONDING <ls_dd07_text> TO <ls_dd07v>.
<ls_dd07v>-valpos = lv_valpos.
DELETE lt_dd07_texts INDEX sy-tabix. " Optimization
ENDLOOP.
CALL FUNCTION 'DDIF_DOMA_PUT'
EXPORTING
name = lv_name
dd01v_wa = ls_dd01v_tmp
TABLES
dd07v_tab = lt_dd07v_tmp
EXCEPTIONS
doma_not_found = 1
name_inconsistent = 2
doma_inconsistent = 3
put_failure = 4
put_refused = 5
OTHERS = 6.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'error from DDIF_DOMA_PUT @TEXTS' ).
ENDIF.
ENDLOOP.
ENDMETHOD.
METHOD serialize_texts.
DATA: lv_name TYPE ddobjname,
lv_index TYPE i,
ls_dd01v TYPE dd01v,
lt_dd07v TYPE TABLE OF dd07v,
lt_i18n_langs TYPE TABLE OF langu,
lt_dd01_texts TYPE tt_dd01_texts,
lt_dd07_texts TYPE tt_dd07_texts.
FIELD-SYMBOLS: <lv_lang> LIKE LINE OF lt_i18n_langs,
<ls_dd07v> LIKE LINE OF lt_dd07v,
<ls_dd01_text> LIKE LINE OF lt_dd01_texts,
<ls_dd07_text> LIKE LINE OF lt_dd07_texts.
IF io_xml->i18n_params( )-serialize_master_lang_only = abap_true.
RETURN.
ENDIF.
lv_name = ms_item-obj_name.
" Collect additional languages, skip master lang - it was serialized already
SELECT DISTINCT ddlanguage AS langu INTO TABLE lt_i18n_langs
FROM dd01v
WHERE domname = lv_name
AND ddlanguage <> mv_language. "#EC CI_SUBRC
LOOP AT lt_i18n_langs ASSIGNING <lv_lang>.
lv_index = sy-tabix.
CALL FUNCTION 'DDIF_DOMA_GET'
EXPORTING
name = lv_name
langu = <lv_lang>
IMPORTING
dd01v_wa = ls_dd01v
TABLES
dd07v_tab = lt_dd07v
EXCEPTIONS
illegal_input = 1
OTHERS = 2.
IF sy-subrc <> 0 OR ls_dd01v-ddlanguage IS INITIAL.
DELETE lt_i18n_langs INDEX lv_index. " Don't save this lang
CONTINUE.
ENDIF.
APPEND INITIAL LINE TO lt_dd01_texts ASSIGNING <ls_dd01_text>.
MOVE-CORRESPONDING ls_dd01v TO <ls_dd01_text>.
LOOP AT lt_dd07v ASSIGNING <ls_dd07v> WHERE NOT ddlanguage IS INITIAL.
APPEND INITIAL LINE TO lt_dd07_texts ASSIGNING <ls_dd07_text>.
MOVE-CORRESPONDING <ls_dd07v> TO <ls_dd07_text>.
ENDLOOP.
ENDLOOP.
SORT lt_i18n_langs ASCENDING.
SORT lt_dd01_texts BY ddlanguage ASCENDING.
SORT lt_dd07_texts BY valpos ASCENDING ddlanguage ASCENDING.
IF lines( lt_i18n_langs ) > 0.
io_xml->add( iv_name = 'I18N_LANGS'
ig_data = lt_i18n_langs ).
io_xml->add( iv_name = 'DD01_TEXTS'
ig_data = lt_dd01_texts ).
io_xml->add( iv_name = 'DD07_TEXTS'
ig_data = lt_dd07_texts ).
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_object~changed_by.
SELECT SINGLE as4user FROM dd01l INTO rv_user
WHERE domname = ms_item-obj_name
AND as4local = 'A'
AND as4vers = '0000'.
IF sy-subrc <> 0.
rv_user = c_user_unknown.
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_object~delete.
IF zif_abapgit_object~exists( ) = abap_false.
RETURN.
ENDIF.
delete_ddic( iv_objtype = 'D'
iv_no_ask_delete_append = abap_true ).
delete_longtexts( c_longtext_id_doma ).
ENDMETHOD.
METHOD zif_abapgit_object~deserialize.
* package SEDD
* package SDIC
* fm TR_TADIR_INTERFACE
* fm RS_CORR_INSERT ?
DATA: lv_name TYPE ddobjname,
ls_dd01v TYPE dd01v,
lt_dd07v TYPE TABLE OF dd07v.
FIELD-SYMBOLS <ls_dd07v> TYPE dd07v.
io_xml->read( EXPORTING iv_name = 'DD01V'
CHANGING cg_data = ls_dd01v ).
io_xml->read( EXPORTING iv_name = 'DD07V_TAB'
CHANGING cg_data = lt_dd07v ).
corr_insert( iv_package = iv_package
ig_object_class = 'DICT' ).
lv_name = ms_item-obj_name. " type conversion
LOOP AT lt_dd07v ASSIGNING <ls_dd07v>.
<ls_dd07v>-domname = lv_name.
<ls_dd07v>-valpos = sy-tabix.
ENDLOOP.
CALL FUNCTION 'DDIF_DOMA_PUT'
EXPORTING
name = lv_name
dd01v_wa = ls_dd01v
TABLES
dd07v_tab = lt_dd07v
EXCEPTIONS
doma_not_found = 1
name_inconsistent = 2
doma_inconsistent = 3
put_failure = 4
put_refused = 5
OTHERS = 6.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'error from DDIF_DOMA_PUT' ).
ENDIF.
deserialize_texts( io_xml = io_xml
is_dd01v = ls_dd01v
it_dd07v = lt_dd07v ).
deserialize_longtexts( io_xml ).
zcl_abapgit_objects_activation=>add_item( ms_item ).
ENDMETHOD.
METHOD zif_abapgit_object~exists.
DATA: lv_domname TYPE dd01l-domname.
SELECT SINGLE domname FROM dd01l INTO lv_domname
WHERE domname = ms_item-obj_name
AND as4local = 'A'
AND as4vers = '0000'.
rv_bool = boolc( sy-subrc = 0 ).
ENDMETHOD.
METHOD zif_abapgit_object~get_comparator.
RETURN.
ENDMETHOD.
METHOD zif_abapgit_object~get_deserialize_steps.
APPEND zif_abapgit_object=>gc_step_id-ddic TO rt_steps.
ENDMETHOD.
METHOD zif_abapgit_object~get_metadata.
rs_metadata = get_metadata( ).
rs_metadata-ddic = abap_true.
ENDMETHOD.
METHOD zif_abapgit_object~is_active.
rv_active = is_active( ).
ENDMETHOD.
METHOD zif_abapgit_object~is_locked.
rv_is_locked = exists_a_lock_entry_for( iv_lock_object = 'ESDICT'
iv_argument = |{ ms_item-obj_type }{ ms_item-obj_name }| ).
ENDMETHOD.
METHOD zif_abapgit_object~jump.
jump_se11( iv_radio = 'RSRD1-DOMA'
iv_field = 'RSRD1-DOMA_VAL' ).
ENDMETHOD.
METHOD zif_abapgit_object~serialize.
DATA: lv_name TYPE ddobjname,
ls_dd01v TYPE dd01v,
lv_masklen TYPE c LENGTH 4,
lt_dd07v TYPE TABLE OF dd07v.
lv_name = ms_item-obj_name.
CALL FUNCTION 'DDIF_DOMA_GET'
EXPORTING
name = lv_name
langu = mv_language
IMPORTING
dd01v_wa = ls_dd01v
TABLES
dd07v_tab = lt_dd07v
EXCEPTIONS
illegal_input = 1
OTHERS = 2.
IF sy-subrc <> 0 OR ls_dd01v IS INITIAL.
zcx_abapgit_exception=>raise( 'error from DDIF_DOMA_GET' ).
ENDIF.
CLEAR: ls_dd01v-as4user,
ls_dd01v-as4date,
ls_dd01v-as4time,
ls_dd01v-appexist.
* make sure XML serialization does not dump if the field contains invalid data
* note that this is a N field, so '' is not valid
IF ls_dd01v-authclass = ''.
CLEAR ls_dd01v-authclass.
ENDIF.
lv_masklen = ls_dd01v-masklen.
IF lv_masklen = '' OR NOT lv_masklen CO '0123456789'.
CLEAR ls_dd01v-masklen.
ENDIF.
DELETE lt_dd07v WHERE appval = abap_true.
SORT lt_dd07v BY
valpos ASCENDING
ddlanguage ASCENDING.
io_xml->add( iv_name = 'DD01V'
ig_data = ls_dd01v ).
io_xml->add( iv_name = 'DD07V_TAB'
ig_data = lt_dd07v ).
serialize_texts( io_xml ).
serialize_longtexts( io_xml = io_xml
iv_longtext_id = c_longtext_id_doma ).
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
3438,
64,
5550,
20032,
17941,
44731,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
397,
499,
18300,
62,
48205,
62,
16668,
25261,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
397,
499,
18300,
62,
15252,
13,
198,
220,
220,
220,
8355,
43429,
1546,
6941,
62,
16624,
7473,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
5908,
62,
16624,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
628,
220,
220,
220,
24412,
47,
1546,
25,
347,
43312,
3963,
1259,
62,
1860,
486,
62,
5239,
82,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
49427,
16129,
41876,
49427,
486,
85,
12,
1860,
16129,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
49427,
5239,
220,
220,
220,
220,
41876,
49427,
486,
85,
12,
1860,
5239,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
1860,
486,
62,
5239,
82,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
347,
43312,
3963,
1259,
62,
1860,
2998,
62,
5239,
82,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1188,
1930,
220,
220,
220,
220,
41876,
49427,
2998,
85,
12,
2100,
1930,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
49427,
16129,
41876,
49427,
2998,
85,
12,
1860,
16129,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2401,
8367,
62,
75,
41876,
49427,
2998,
85,
12,
3438,
8367,
62,
75,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2401,
8367,
62,
71,
41876,
49427,
2998,
85,
12,
3438,
8367,
62,
71,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
49427,
5239,
220,
220,
220,
220,
41876,
49427,
2998,
85,
12,
1860,
5239,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2401,
2100,
62,
335,
220,
41876,
49427,
2998,
85,
12,
3438,
2100,
62,
335,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2401,
2100,
62,
31298,
220,
41876,
49427,
2998,
85,
12,
3438,
2100,
62,
31298,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
1860,
2998,
62,
5239,
82,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
256,
83,
62,
1860,
486,
62,
5239,
82,
41876,
49053,
9795,
43679,
3963,
1259,
62,
1860,
486,
62,
5239,
82,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
256,
83,
62,
1860,
2998,
62,
5239,
82,
41876,
49053,
9795,
43679,
3963,
1259,
62,
1860,
2998,
62,
5239,
82,
13,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
269,
62,
6511,
5239,
62,
312,
62,
3438,
64,
41876,
466,
34553,
12,
312,
26173,
8924,
705,
18227,
4458,
628,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
11389,
1096,
62,
5239,
82,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
33245,
62,
19875,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
19875,
62,
22915,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
11,
198,
220,
220,
220,
220,
220,
748,
48499,
1096,
62,
5239,
82,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
33245,
62,
19875,
220,
220,
41876,
4526,
37,
5390,
1976,
565,
62,
397,
499,
18300,
62,
19875,
62,
15414,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
318,
62,
1860,
486,
85,
41876,
49427,
486,
85,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
340,
62,
1860,
2998,
85,
41876,
49427,
2998,
85,
62,
8658,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
198,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
6242,
2969,
38,
2043,
62,
9864,
23680,
62,
39170,
32,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
748,
48499,
1096,
62,
5239,
82,
13,
628,
220,
220,
220,
42865,
25,
300,
85,
62,
3672,
220,
220,
220,
220,
220,
220,
41876,
49427,
26801,
3672,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
85,
62,
2100,
1930,
220,
220,
220,
220,
41876,
1188,
1930,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
43979,
62,
1860,
486,
85,
62,
22065,
220,
41876,
49427,
486,
85,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
83,
62,
1860,
2998,
85,
62,
22065,
220,
41876,
43679,
3963,
49427,
2998,
85,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
83,
62,
72,
1507,
77,
62,
17204,
82,
41876,
43679,
3963,
2786,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
83,
62,
1860,
486,
62,
5239,
82,
41876,
256,
83,
62,
1860,
486,
62,
5239,
82,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
83,
62,
1860,
2998,
62,
5239,
82,
41876,
256,
83,
62,
1860,
2998,
62,
5239,
82,
13,
628,
220,
220,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
25,
1279,
6780,
62,
17204,
29,
220,
220,
220,
220,
220,
34178,
48920,
3963,
300,
83,
62,
72,
1507,
77,
62,
17204,
82,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1279,
7278,
62,
1860,
2998,
85,
29,
220,
220,
220,
220,
34178,
48920,
3963,
340,
62,
1860,
2998,
85,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1279,
7278,
62,
1860,
486,
62,
5239,
29,
34178,
48920,
3963,
300,
83,
62,
1860,
486,
62,
5239,
82,
11,
198
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1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1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
CLASS zcl_abapgit_object_prog DEFINITION PUBLIC INHERITING FROM zcl_abapgit_objects_program FINAL.
PUBLIC SECTION.
INTERFACES zif_abapgit_object.
ALIASES mo_files FOR zif_abapgit_object~mo_files.
PROTECTED SECTION.
PRIVATE SECTION.
TYPES: BEGIN OF ty_tpool_i18n,
language TYPE langu,
textpool TYPE zif_abapgit_definitions=>ty_tpool_tt,
END OF ty_tpool_i18n,
ty_tpools_i18n TYPE STANDARD TABLE OF ty_tpool_i18n.
CONSTANTS: c_longtext_id_prog TYPE dokil-id VALUE 'RE'.
METHODS:
serialize_texts
IMPORTING ii_xml TYPE REF TO zif_abapgit_xml_output
RAISING zcx_abapgit_exception,
deserialize_texts
IMPORTING ii_xml TYPE REF TO zif_abapgit_xml_input
RAISING zcx_abapgit_exception,
is_program_locked
RETURNING
VALUE(rv_is_program_locked) TYPE abap_bool
RAISING
zcx_abapgit_exception.
ENDCLASS.
CLASS ZCL_ABAPGIT_OBJECT_PROG IMPLEMENTATION.
METHOD deserialize_texts.
DATA: lt_tpool_i18n TYPE ty_tpools_i18n,
lt_tpool TYPE textpool_table.
FIELD-SYMBOLS <ls_tpool> LIKE LINE OF lt_tpool_i18n.
ii_xml->read( EXPORTING iv_name = 'I18N_TPOOL'
CHANGING cg_data = lt_tpool_i18n ).
LOOP AT lt_tpool_i18n ASSIGNING <ls_tpool>.
lt_tpool = read_tpool( <ls_tpool>-textpool ).
deserialize_textpool( iv_program = ms_item-obj_name
iv_language = <ls_tpool>-language
it_tpool = lt_tpool ).
ENDLOOP.
ENDMETHOD.
METHOD is_program_locked.
rv_is_program_locked = exists_a_lock_entry_for( iv_lock_object = 'ESRDIRE'
iv_argument = |{ ms_item-obj_name }| ).
ENDMETHOD.
METHOD serialize_texts.
DATA: lt_tpool_i18n TYPE ty_tpools_i18n,
lt_tpool TYPE textpool_table.
FIELD-SYMBOLS <ls_tpool> LIKE LINE OF lt_tpool_i18n.
IF ii_xml->i18n_params( )-serialize_master_lang_only = abap_true.
RETURN.
ENDIF.
" Table d010tinf stores info. on languages in which program is maintained
" Select all active translations of program texts
" Skip main language - it was already serialized
SELECT DISTINCT language
INTO CORRESPONDING FIELDS OF TABLE lt_tpool_i18n
FROM d010tinf
WHERE r3state = 'A'
AND prog = ms_item-obj_name
AND language <> mv_language ##TOO_MANY_ITAB_FIELDS.
SORT lt_tpool_i18n BY language ASCENDING.
LOOP AT lt_tpool_i18n ASSIGNING <ls_tpool>.
READ TEXTPOOL ms_item-obj_name
LANGUAGE <ls_tpool>-language
INTO lt_tpool.
<ls_tpool>-textpool = add_tpool( lt_tpool ).
ENDLOOP.
IF lines( lt_tpool_i18n ) > 0.
ii_xml->add( iv_name = 'I18N_TPOOL'
ig_data = lt_tpool_i18n ).
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_object~changed_by.
SELECT SINGLE unam FROM reposrc INTO rv_user
WHERE progname = ms_item-obj_name
AND r3state = 'A'.
IF sy-subrc <> 0.
rv_user = c_user_unknown.
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_object~delete.
DATA:
lv_program LIKE sy-repid,
lv_obj_name TYPE e071-obj_name,
lv_corrnumber TYPE e071-trkorr.
lv_program = ms_item-obj_name.
lv_corrnumber = zcl_abapgit_default_transport=>get_instance( )->get( )-ordernum.
CALL FUNCTION 'RS_DELETE_PROGRAM'
EXPORTING
corrnumber = lv_corrnumber
program = lv_program
suppress_popup = abap_true
mass_delete_call = abap_true
tadir_devclass = iv_package
force_delete_used_includes = abap_true
EXCEPTIONS
enqueue_lock = 1
object_not_found = 2
permission_failure = 3
reject_deletion = 4
OTHERS = 5.
IF sy-subrc = 2.
" Drop also any inactive code that is left in REPOSRC
DELETE REPORT lv_program ##SUBRC_OK.
" Remove inactive objects from work area
lv_obj_name = lv_program.
CALL FUNCTION 'RS_DELETE_FROM_WORKING_AREA'
EXPORTING
object = 'REPS'
obj_name = lv_obj_name
immediate = 'X'
actualize_working_area = 'X'.
CALL FUNCTION 'RS_DELETE_FROM_WORKING_AREA'
EXPORTING
object = 'REPT'
obj_name = lv_obj_name
immediate = 'X'
actualize_working_area = 'X'.
ELSEIF sy-subrc <> 0.
zcx_abapgit_exception=>raise( |Error from RS_DELETE_PROGRAM: { sy-subrc }| ).
ENDIF.
delete_longtexts( c_longtext_id_prog ).
ENDMETHOD.
METHOD zif_abapgit_object~deserialize.
DATA: lv_program_name TYPE programm,
ls_progdir TYPE ty_progdir,
lt_tpool TYPE textpool_table,
lt_dynpros TYPE ty_dynpro_tt,
lt_tpool_ext TYPE zif_abapgit_definitions=>ty_tpool_tt,
ls_cua TYPE ty_cua,
lt_source TYPE abaptxt255_tab.
" Add R3TR PROG to transport first, otherwise we get several LIMUs
corr_insert( iv_package ).
lv_program_name = ms_item-obj_name.
lt_source = mo_files->read_abap( ).
io_xml->read( EXPORTING iv_name = 'TPOOL'
CHANGING cg_data = lt_tpool_ext ).
lt_tpool = read_tpool( lt_tpool_ext ).
io_xml->read( EXPORTING iv_name = 'PROGDIR'
CHANGING cg_data = ls_progdir ).
deserialize_program( is_progdir = ls_progdir
it_source = lt_source
it_tpool = lt_tpool
iv_package = iv_package ).
io_xml->read( EXPORTING iv_name = 'DYNPROS'
CHANGING cg_data = lt_dynpros ).
deserialize_dynpros( lt_dynpros ).
io_xml->read( EXPORTING iv_name = 'CUA'
CHANGING cg_data = ls_cua ).
deserialize_cua( iv_program_name = lv_program_name
is_cua = ls_cua ).
" Texts deserializing (English)
deserialize_textpool( iv_program = lv_program_name
it_tpool = lt_tpool ).
" Texts deserializing (translations)
deserialize_texts( io_xml ).
deserialize_longtexts( io_xml ).
ENDMETHOD.
METHOD zif_abapgit_object~exists.
DATA: lv_progname TYPE reposrc-progname.
SELECT SINGLE progname FROM reposrc INTO lv_progname
WHERE progname = ms_item-obj_name.
rv_bool = boolc( sy-subrc = 0 ).
ENDMETHOD.
METHOD zif_abapgit_object~get_comparator.
RETURN.
ENDMETHOD.
METHOD zif_abapgit_object~get_deserialize_steps.
APPEND zif_abapgit_object=>gc_step_id-abap TO rt_steps.
ENDMETHOD.
METHOD zif_abapgit_object~get_metadata.
rs_metadata = get_metadata( ).
ENDMETHOD.
METHOD zif_abapgit_object~is_active.
rv_active = is_active( ).
ENDMETHOD.
METHOD zif_abapgit_object~is_locked.
IF is_program_locked( ) = abap_true
OR is_any_dynpro_locked( ms_item-obj_name ) = abap_true
OR is_cua_locked( ms_item-obj_name ) = abap_true
OR is_text_locked( ms_item-obj_name ) = abap_true.
rv_is_locked = abap_true.
ENDIF.
ENDMETHOD.
METHOD zif_abapgit_object~jump.
CALL FUNCTION 'RS_TOOL_ACCESS'
EXPORTING
operation = 'SHOW'
object_name = ms_item-obj_name
object_type = 'PROG'
in_new_window = abap_true.
ENDMETHOD.
METHOD zif_abapgit_object~serialize.
* see SAP note 1025291, run report DELETE_TADIR_FOR_EIMP_INCLUDE to clean bad TADIR entries
ASSERT NOT ms_item-obj_name CP '*=E'.
serialize_program( io_xml = io_xml
is_item = ms_item
io_files = mo_files ).
" Texts serializing (translations)
serialize_texts( io_xml ).
serialize_longtexts( ii_xml = io_xml
iv_longtext_id = c_longtext_id_prog ).
ENDMETHOD.
ENDCLASS.
| [
31631,
1976,
565,
62,
397,
499,
18300,
62,
15252,
62,
1676,
70,
5550,
20032,
17941,
44731,
3268,
16879,
2043,
2751,
16034,
1976,
565,
62,
397,
499,
18300,
62,
48205,
62,
23065,
25261,
13,
628,
220,
44731,
44513,
13,
198,
220,
220,
220,
23255,
37,
2246,
1546,
1976,
361,
62,
397,
499,
18300,
62,
15252,
13,
198,
220,
220,
220,
8355,
43429,
1546,
6941,
62,
16624,
7473,
1976,
361,
62,
397,
499,
18300,
62,
15252,
93,
5908,
62,
16624,
13,
628,
220,
48006,
9782,
1961,
44513,
13,
198,
220,
4810,
3824,
6158,
44513,
13,
198,
220,
220,
220,
24412,
47,
1546,
25,
347,
43312,
3963,
1259,
62,
83,
7742,
62,
72,
1507,
77,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
3303,
41876,
2786,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
2420,
7742,
41876,
1976,
361,
62,
397,
499,
18300,
62,
4299,
50101,
14804,
774,
62,
83,
7742,
62,
926,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
23578,
3963,
1259,
62,
83,
7742,
62,
72,
1507,
77,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1259,
62,
83,
7742,
82,
62,
72,
1507,
77,
41876,
49053,
9795,
43679,
3963,
1259,
62,
83,
7742,
62,
72,
1507,
77,
13,
198,
220,
220,
220,
7102,
2257,
1565,
4694,
25,
269,
62,
6511,
5239,
62,
312,
62,
1676,
70,
41876,
466,
34553,
12,
312,
26173,
8924,
705,
2200,
4458,
628,
220,
220,
220,
337,
36252,
50,
25,
198,
220,
220,
220,
220,
220,
11389,
1096,
62,
5239,
82,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
21065,
62,
19875,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
19875,
62,
22915,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
11,
198,
220,
220,
220,
220,
220,
748,
48499,
1096,
62,
5239,
82,
198,
220,
220,
220,
220,
220,
220,
220,
30023,
9863,
2751,
21065,
62,
19875,
41876,
4526,
37,
5390,
1976,
361,
62,
397,
499,
18300,
62,
19875,
62,
15414,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
11,
198,
220,
220,
220,
220,
220,
318,
62,
23065,
62,
24162,
198,
220,
220,
220,
220,
220,
220,
220,
30826,
4261,
15871,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
26173,
8924,
7,
81,
85,
62,
271,
62,
23065,
62,
24162,
8,
41876,
450,
499,
62,
30388,
198,
220,
220,
220,
220,
220,
220,
220,
17926,
1797,
2751,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
1976,
66,
87,
62,
397,
499,
18300,
62,
1069,
4516,
13,
198,
198,
10619,
31631,
13,
628,
198,
198,
31631,
1168,
5097,
62,
6242,
2969,
38,
2043,
62,
9864,
23680,
62,
4805,
7730,
30023,
2538,
10979,
6234,
13,
628,
198,
220,
337,
36252,
748,
48499,
1096,
62,
5239,
82,
13,
628,
220,
220,
220,
42865,
25,
300,
83,
62,
83,
7742,
62,
72,
1507,
77,
41876,
1259,
62,
83,
7742,
82,
62,
72,
1507,
77,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
83,
62,
83,
7742,
220,
220,
220,
220,
220,
41876,
2420,
7742,
62,
11487,
13,
628,
220,
220,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
1279,
7278,
62,
83,
7742,
29,
34178,
48920,
3963,
300,
83,
62,
83,
7742,
62,
72,
1507,
77,
13,
628,
198,
220,
220,
220,
21065,
62,
19875,
3784,
961,
7,
7788,
15490,
2751,
21628,
62,
3672,
796,
705,
40,
1507,
45,
62,
7250,
31559,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
5870,
15567,
2751,
220,
269,
70,
62,
7890,
796,
300,
83,
62,
83,
7742,
62,
72,
1507,
77,
6739,
628,
220,
220,
220,
17579,
3185,
5161,
300,
83,
62,
83,
7742,
62,
72,
1507,
77,
24994,
3528,
15871,
1279,
7278,
62,
83,
7742,
28401,
198,
220,
220,
220,
220,
220,
300,
83,
62,
83,
7742,
796,
1100,
62,
83,
7742,
7,
1279,
7278,
62,
83,
7742,
29,
12,
5239,
7742,
6739,
198,
220,
220,
220,
220,
220,
748,
48499,
1096,
62,
5239,
7742,
7,
21628,
62,
23065,
220,
796,
13845,
62,
9186,
12,
26801,
62,
3672,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
16129,
796,
1279,
7278,
62,
83,
7742,
29,
12,
16129,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
340,
62,
83,
7742,
220,
220,
220,
796,
300,
83,
62,
83,
7742,
6739,
198,
220,
220,
220,
23578,
21982,
3185,
13,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
318,
62,
23065,
62,
24162,
13,
628,
220,
220,
220,
374,
85,
62,
271,
62,
23065,
62,
24162,
796,
7160,
62,
64,
62,
5354,
62,
13000,
62,
1640,
7,
21628,
62,
5354,
62,
15252,
796,
705,
1546,
49,
17931,
2200,
6,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
220,
21628,
62,
49140,
220,
220,
220,
796,
930,
90,
13845,
62,
9186,
12,
26801,
62,
3672,
1782,
91,
6739,
628,
220,
23578,
49273,
13,
628,
198,
220,
337,
36252,
11389,
1096,
62,
5239,
82,
13,
628,
220,
220,
220,
42865,
25,
300,
83,
62,
83,
7742,
62,
72,
1507,
77,
41876,
1259,
62,
83,
7742,
82,
62,
72,
1507,
77,
11,
198,
220,
220,
220,
220,
220,
220,
220,
220,
220,
300,
83,
62,
83,
7742,
220,
220,
220,
220,
220,
41876,
2420,
7742,
62,
11487,
13,
628,
220,
220,
220,
18930,
24639,
12,
23060,
10744,
3535,
50,
1279,
7278,
62,
83,
7742,
29,
34178,
48920,
3963
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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