Deserialize textpool for some objects (#5417)

* Deserialize textpool for some objects

Fixes inserting the textpool for objects that are not handled by `RPY_PROGRAM_INSERT`. This applies for example to function groups and exit includes (`zx...`).

* Fix deserialize_textpool

Co-authored-by: Lars Hvam <larshp@hotmail.com>
This commit is contained in:
Marc Bernard 2022-04-01 17:51:32 +02:00 committed by GitHub
parent 014d40db1c
commit 453c430723
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -541,13 +541,6 @@ CLASS zcl_abapgit_objects_program IMPLEMENTATION.
STATE lv_state. "of the mail program -> insert empty textpool STATE lv_state. "of the mail program -> insert empty textpool
ENDIF. ENDIF.
ELSE. ELSE.
IF lines( it_tpool ) = 1 AND lv_language = mv_language.
READ TABLE it_tpool WITH KEY id = 'R' TRANSPORTING NO FIELDS.
IF sy-subrc = 0.
RETURN. "No action because description in main language is already there
ENDIF.
ENDIF.
INSERT TEXTPOOL iv_program INSERT TEXTPOOL iv_program
FROM it_tpool FROM it_tpool
LANGUAGE lv_language LANGUAGE lv_language