cancel
Showing results for 
Search instead for 
Did you mean: 

calling a Bapi

Former Member
0 Kudos

hi,

how can I refer or call a Bapi within ComponentController's Context.

Is there a model or ???

e.g.

Bapi_Flight_Getlist

regards

sas erdem

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You can use service call at component level, then it will run the wizard. Right click on component-->Service call and then follow the steps.

You can also call it direclty inside some method at compononet controller level.

Answers (1)

Answers (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

>how can I refer or call a Bapi within ComponentController's Context

You can't call anything from a Context. The Context is just a way to model the data used within Web Dynpro. You can call most any ABAP code (including BAPIs) from within any of the controller methods of the Component, or Views. There is the service call wizard, but it only automates actions that you can code and perform manually.