Skip to Content

Calling a RFC Function Module in SAPUI5

Hello everyone,

i am developing a SAPUI5 App that should call the RFC Function Module "BAPI_ACC_ACTIVITY_ALLOC_POST" but i dont know how to implement that rfc call.

By searching i find different solutions for this topic but im not sure which is the right in my case.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Sep 05, 2017 at 04:08 PM

    google sap gateway function import

    Add a comment
    10|10000 characters needed characters exceeded

    • Hello Jun,

      thanks for your reply!

      For my understanding an function import is used if you want to perform an action that cannot be done through the CRUDQ operations. Plus you have to define a return typ (none/complex/entity) but what if i just want to call a bapi which returns a boolean?

      My guess is to call the bapi via soap from sapui5 but i dont know if this is best practice.

  • Posted on Sep 07, 2017 at 11:05 AM

    Hello,

    You have to create an OData service in your Fonrt end Server. This OData should be mapped to your RFC Function module. After having this Service, you can then call it with ODataModel object from UI5 library.

    1. Create Odata from BAPI :

    https://blogs.sap.com/2017/04/14/step-by-step-creation-of-purchase-order-using-bapi-in-odata-service/

    2. Consume OData from UI5 :

    https://blogs.sap.com/2017/03/13/how-to-consume-an-odata-service-with-openui5-sapui5/

    Regards

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.