Thank you guys for your answers. I will try to bring some light into my requirement:
In an external System i need to Display for a customer ID the billing documents for the last 360 days. I have in SM59 a trusted Connection which means the user calling such an BAPI is not a technical user but a dialog user. In the execution of the BAPI the authorization of this user shall be checked (only invoices of the users sales organization). That´s why i´m looking for such an BAPI or function module.
Is there any function module availble which could help?
Thank you.
Best regards
Manfred