upport to 740

This commit is contained in:
larshp 2016-04-05 12:57:25 +02:00
parent d88cf994be
commit 352aed10ec

View File

@ -3,7 +3,7 @@ REPORT zabapgit.
* See http://www.abapgit.org * See http://www.abapgit.org
CONSTANTS: gc_xml_version TYPE string VALUE 'v1.0.0', "#EC NOTEXT CONSTANTS: gc_xml_version TYPE string VALUE 'v1.0.0', "#EC NOTEXT
gc_abap_version TYPE string VALUE 'v1.2.5'. "#EC NOTEXT gc_abap_version TYPE string VALUE 'v1.2.6'. "#EC NOTEXT
******************************************************************************** ********************************************************************************
* The MIT License (MIT) * The MIT License (MIT)
@ -3074,6 +3074,7 @@ CLASS lcl_objects_program IMPLEMENTATION.
lt_d020s TYPE TABLE OF d020s. lt_d020s TYPE TABLE OF d020s.
FIELD-SYMBOLS: <ls_d020s> LIKE LINE OF lt_d020s, FIELD-SYMBOLS: <ls_d020s> LIKE LINE OF lt_d020s,
<lv_outputstyle> TYPE scrpostyle,
<ls_field> LIKE LINE OF lt_fields_to_containers, <ls_field> LIKE LINE OF lt_fields_to_containers,
<ls_dynpro> LIKE LINE OF rt_dynpro. <ls_dynpro> LIKE LINE OF rt_dynpro.
@ -3114,10 +3115,11 @@ CLASS lcl_objects_program IMPLEMENTATION.
ENDIF. ENDIF.
LOOP AT lt_fields_to_containers ASSIGNING <ls_field>. LOOP AT lt_fields_to_containers ASSIGNING <ls_field>.
* output style is a NUMC field, the XML conversion * output style is a NUMC field, the XML conversion will fail if it contains invalid value
* will fail if it contains invalid value * field does not exist in all versions
IF <ls_field>-outputstyle = ' '. ASSIGN COMPONENT 'OUTPUTSTYLE' OF STRUCTURE <ls_field> TO <lv_outputstyle>.
CLEAR <ls_field>-outputstyle. IF sy-subrc = 0 AND <lv_outputstyle> = ' '.
CLEAR <lv_outputstyle>.
ENDIF. ENDIF.
ENDLOOP. ENDLOOP.