Skip to Content
0
Jul 27, 2017 at 03:00 PM

Entity Field order declaration in Sap Gateway project class being changed after each SEGW generation

286 Views

Dear friends, I´m having an strange issue in SAP Gateway. I have a SEGW project when I created an entity importing the structure from ECC RFC. At the first moment, the sequence of fields was equal both in SAP ECC and SEGW project class. For example:

ECC "customers" structure and SEGW entity "customers" class declaration:

field AAA

Field BBB

Field CCC

Field DDD

But when making changes in another entities in this same SEGW project, the field declaration sequence in this 'customers' entity is being changed.

Example:

Field BBB

Field DDD

Field CCC

Field AAA

And now in ECC side of RFC, the data is not respecting the field names, but the characters sequence. The content of field BBB in gateway is being moved to field AAA in ECC. I already change the entity declaration manually in the class source code, but after new generation in SEGW, the sequence is changed again. How can I solve this ? Regards.