mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 12:20:51 +08:00
Sort internal tables (#5390)
Function module WEBI_GET_OBJECT returns several internal tables. Sometimes, the sorting order of these internal tables is different in each system ex: S/4HANA and non-S/4HANA. This fixes #5389.
This commit is contained in:
parent
e5eb8d0d0a
commit
bcdeebb3ad
|
@ -56,6 +56,9 @@ CLASS zcl_abapgit_object_webi DEFINITION PUBLIC INHERITING FROM zcl_abapgit_obje
|
||||||
RAISING
|
RAISING
|
||||||
zcx_abapgit_exception
|
zcx_abapgit_exception
|
||||||
cx_ws_md_exception.
|
cx_ws_md_exception.
|
||||||
|
METHODS sort
|
||||||
|
CHANGING
|
||||||
|
cs_webi TYPE ty_webi.
|
||||||
|
|
||||||
ENDCLASS.
|
ENDCLASS.
|
||||||
|
|
||||||
|
@ -503,10 +506,7 @@ CLASS zcl_abapgit_object_webi IMPLEMENTATION.
|
||||||
zcx_abapgit_exception=>raise_t100( ).
|
zcx_abapgit_exception=>raise_t100( ).
|
||||||
ENDIF.
|
ENDIF.
|
||||||
|
|
||||||
SORT ls_webi-pveptype BY
|
sort( CHANGING cs_webi = ls_webi ).
|
||||||
vepname ASCENDING
|
|
||||||
version ASCENDING
|
|
||||||
typename ASCENDING.
|
|
||||||
|
|
||||||
lv_name = ms_item-obj_name.
|
lv_name = ms_item-obj_name.
|
||||||
TRY.
|
TRY.
|
||||||
|
@ -553,4 +553,26 @@ CLASS zcl_abapgit_object_webi IMPLEMENTATION.
|
||||||
io_xml = io_xml ).
|
io_xml = io_xml ).
|
||||||
|
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
|
METHOD sort.
|
||||||
|
SORT cs_webi-pvepheader BY vepname version.
|
||||||
|
SORT cs_webi-pvepfunction BY vepname version function.
|
||||||
|
SORT cs_webi-pvepfault BY vepname version function fault.
|
||||||
|
SORT cs_webi-pvepparameter BY vepname version function vepparam vepparamtype.
|
||||||
|
SORT cs_webi-pveptype BY vepname version typename.
|
||||||
|
SORT cs_webi-pvepelemtype BY vepname version typename.
|
||||||
|
SORT cs_webi-pveptabletype BY vepname version typename.
|
||||||
|
SORT cs_webi-pvepstrutype BY vepname version typename fieldpos.
|
||||||
|
SORT cs_webi-pveptypesoapext BY vepname version typename.
|
||||||
|
SORT cs_webi-pvepeletypsoap BY vepname version typename assign_type assign_data1 assign_data2.
|
||||||
|
SORT cs_webi-pveptabtypsoap BY vepname version typename.
|
||||||
|
SORT cs_webi-pvepfuncsoapext BY vepname version function.
|
||||||
|
SORT cs_webi-pvepfieldref BY vepname version function vepparam vepparamtype strucid fieldname.
|
||||||
|
SORT cs_webi-pvependpoint BY relid vepname version sortfield.
|
||||||
|
SORT cs_webi-pvepvisoapext BY vepname version.
|
||||||
|
SORT cs_webi-pvepparasoapext BY vepname version function vepparam vepparamtype.
|
||||||
|
SORT cs_webi-pwsheader BY wsname version.
|
||||||
|
SORT cs_webi-pwssoapprop BY wsname version feature soapapp funcref propnum.
|
||||||
|
ENDMETHOD.
|
||||||
|
|
||||||
ENDCLASS.
|
ENDCLASS.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user