cancel
Showing results for 
Search instead for 
Did you mean: 

Creating BAPI without Custom Controller

parameshwari_palle
Participant
0 Kudos

Hi All,

Can we Create a BAPI Application without using Custom Controller....?

Thanks

Parameshwari

Accepted Solutions (1)

Accepted Solutions (1)

vijay_kumar49
Active Contributor
0 Kudos

Hi,

No need to use a custom controller for calling the BAPIu2019su2026 Mainly we can use Component Controller onlyu2026why we can use custom controller is u201CDeveloper can create multiple controllers by using custom controlleru201D depending up on our requirement. By using Component Controller we canu2019t create multiple Controller.

Hope this is help full for u

Regards

Vijay

Former Member
0 Kudos

It is even possible to call a bapi from a view (the view controller), or even an interface (interface controller), wherever you can write code, it is posibble.

However, the MVC pattern recomends (and I also do) that we should write any model access from a component controller. If you have a lot of bapi calls, then it may be better to put them all together in a custom controller because is a repetitive coding. But is not necessary at all.

Don't forget that you don't need a different model for calling a bapi neither, try to use as few as possible with the option reimport model.

The same goes for using different JCo's, if you really don't need more than one, then use the same one so you don´t create extra connections.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Parameshwari,

There is no need to use a custom controller unless required. You can use a component controller instead which is the master controller.

Moreover adding a custom controller to the application should be wisely decided as it can even complex the application.

You can use componet controller itself.

Reply me if you have any queries

Regards,

Jithin