Update zcl_excel_common.clas.abap

This commit is contained in:
Bernd 2024-10-17 15:57:55 +02:00 committed by GitHub
parent 1ed953b7ec
commit 6dcfbcf4e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1086,6 +1086,10 @@ CLASS zcl_excel_common IMPLEMENTATION.
IF flag_class = abap_false.
* source is a structure - use assign component
ASSIGN COMPONENT wa_component-name OF STRUCTURE i_source TO <attribute>.
ELSEIF i_source IS INITIAL.
CLEAR <field>.
CLEAR <fieldx> WITH abap_true.
CONTINUE.
ELSE.
* then it is an attribute of the class - use different assign then
CONCATENATE 'i_source->' wa_component-name INTO attribute_name.