Hi all.
I'm actually having problems when showing some data in a Fiori App. Fiori App is basically making this call:
/sap/opu/odata/sap/APPROVAL_SRV/PaymentBatchCollection?$skip=0&$top=20&$inlinecount=allpages
Without implementing the skip and top functionality, is strange what I get from ET_ENTITYSET. Debuggin the method I can see 38 entries however in the Fiori App I can see that 58 entries have been passed. I'm pretty sure that is because of missing implementation of the top and skip, but after trying with some coding i'm not able to do the correct paging. This is what I wrote ..
lv_top = io_tech_request_context->get_top( ).
lv_skip = io_tech_request_context->get_skip( ).
IF lv_skip IS NOT INITIAL.
DELETE et_entityset TO lv_skip.
endif.
DESCRIBE TABLE et_entityset lines lv_lines.
DELETE et_entityset from lv_top to lv_lines.
With this piece of code I can only see 19 first entries, with no option to get to next page.
Can anybody help me?
Thanks in advance.