Using Business Object's methods instead of calling BAPIs

I would like to know if I can, instead of calling each BAPI individually, work with the Business Object's methods. I would like to pass the bo's name and the method I want to use directly instead of calling BAPIs. Is there the possibility to use a specific BAPI that would process this information and execute the bo's method?

    Requires Free Membership to View

Yes and no, because a BAPI is a method of a Business Object. In other words, the object-orientation you see in the BOR is not used when you invoke the BAPIs. BAPIs can only be invoked like plain function modules. (Unless you generate proxy classes for the Business Objects, but these proxies internally would also issue plain function calls; your client code would just look more OO.)

This was first published in July 2004

Join the conversationComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.