Skip to Content
avatar image
Former Member

should i Map thecommon bapi's to component controller or custom controller?

Hey Can any body give the clarification for this doubt

we have one web dynpro component , It contains some views. Created some BAPIs. Now we have two different applications in the same component. So we have created the two controllers for each application. the created BAPI's are mapped to o each controllers with respect to application. . Now we have a small doubt, the Bapis which common are common to both application not binding to any of that two controllers. so the common bapis should be map to the component controller or created one more controller like util Controller.

Once bapis mapped to any of this we can add this controllers to views. Please suggest which one is better, either mapping bapi's to component controller or custom controller.


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    May 25, 2006 at 09:57 PM

    Vishal and Vijay,

    Please write the question clearly, I will help you.



    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      hi Vishal...

      There is no need for going for seperate controller for your scenario.

      1. U all ready have two custom controllers.. U create sufficient methods for execution of RFC's. Say u have 3 RFC create 3 methods there. Do this for both Custom controllers.

      2. U have a particular view which uses common RFC's or controller. Now map both the custom controller to your particular view. And create context elements accoringly.

      Now u can invoke any RFC anywhere.

      3.This is a logical seperation between all RFC.

      4.Always undersatnd your scenario and plan accordingly.

      Get back for help..