Skip to Content
avatar image
Former Member

calling a Bapi

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 27, 2008 at 07:13 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 27, 2008 at 07:35 PM

    >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.

    Add comment
    10|10000 characters needed characters exceeded