Hi Jose;
FYI: Sybase changed the way PB structures are organized and passed in PB 12.6 and Appeon PB is based on the PB 12.6 baseline code that we received from SAP in 2016. So I wonder if that change might have affected your ORCA API execution. The v12.6 change is called the "progma_pack", as follows:
FYI: https://www.appeon.com/developers/get-help/knowledgebase/use-1-byte-structure-member-alignment-external-function-64-bit-pb-applications.html
In PB 12.5 when passing a structure, the memory boundary alignment would have used the 1 byte method but in PB 12.6, that changed to using a default 8 byte (double_word) boundary memory alignment. In order to return to PB 12.5's 1 byte alignment method, you might need to add the "progma_pack(1)" to your ORCA API external declarations within in your PB App. You can read more about this as well in the PB Help if you search on the keyword "progma_pack".
Note that in the IDE, a quick way to test this is the "Use 1-byte structure member alignment in external function" setting in the System Options" dialogue. When ON, the 1 byte alignment method is used for the Apps executing from within the IDE. If that quick change works, then we'll know that the "progma_pack" setting is indeed the issue.
HTH
Regards ... Chris