cancel
Showing results for 
Search instead for 
Did you mean: 

WebDynpro - Bapi usage

Former Member
0 Kudos

Hello everyone,

I am first time working with the Web Dynpro using BAPI. I have taken the reference of following standard SCN.SAP documents.

Tutorial 2 - BAPI Usage.

I have followed all steps given in the documents. I also checked and activated Web.Component with no errors.
I have also created Web.Dyn.Application. checked it.

But when I run it , it do not shows any result..

I'm uploading the screen shots as attachments.

desperately waiting for your reply,

Nikhil G.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi nikhil,

Pls check your view embedded in window or not..

regards,

Venkat.

Former Member
0 Kudos

Thanks for replying Venkata.

I have already embedded view into the window.

Still no result is displayed.

Answers (4)

Answers (4)

former_member282968
Contributor
0 Kudos

Hi Nikhil,

Follow the steps.

1.Make a service call and in the Adapt context make all the object type as context node.

2.In the view for the input fields bind your input parameter of the BAPI from the view controller context ( which should be dragged and copied from component controller context ).The input parameter can be date or Airline.

3.Bind the changing parameter of the BAPI flight_list to the table UI element.

4.On action button use code wizard to get the BAPI executed for the input parameter passed as below:

DATA lo_componentcontroller TYPE REF TO ig_componentcontroller .
lo_componentcontroller =   wd_this->get_componentcontroller_ctr( ).
  lo_componentcontroller->execute_bapi_flight_getlist(  ).

With regards,

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

While selecting the Adapt context, select

DESTINATION_FROM,

DESTINATION_TO

and FLIGHT_LIST

as mentioned in the tutorial.

Former Member
0 Kudos

Thanks Jayanthi,

But I had selected ,

DESTINATION_FROM,

DESTINATION_TO

and FLIGHT_LIST

while adapting context.

please see the image for the reference...

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

If you have adapted, then it show parameters in context of componenet controller for the BAPI node as importing and changing. So check that.

Morevoer, they are mapping the same in view also. Check that part.

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

Check the database views has values SFLIGHT, SFLIGHTS2,etc.,

Former Member
0 Kudos

Yes database view SFLIGHT, SFLIGHTS2 have records in it.

I have used SAPBC_DATA_GENERATOR report to generate code for given flights    

former_member186491
Contributor
0 Kudos

Hi Nikhil,

You need to check '4.JPG'. In that you can see that Call Function is not Returning anything. EXPORTING as well as TABLES Parameters are both commented out. Hence, Function Module is not meant for any output this way.

Please check your Service-Call and do the neccessory changes.

Further, as Venkata has rightly said, you should check Views-Embeddings too.

Thanks.

Kumar Saurav.