How to map output of a function to an internal table in SAP ABAP using Gateway service



You need to just import the function so that it can be used. First, you need to have a ABAP structure which should map the structure of the output parameters.

Example

define structure zza_enqtstat {
    entries_total  : abap.int4;
    entries_peak   : abap.int4;
    entries_actual : abap.int4;
}

Then map this newly created structure to a new entity in the gateway project. Now for the function ‘ENQUEUEGETSTAT’’ create a function import. Next step for you will be to redefine the method in DPC_EXT. Save you changes and it should work.

raja
Published on 25-Dec-2017 13:26:06
Advertisements