Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Include BAPI

Former Member
0 Kudos

Hi Experts,

I want to incude bapi ZBAPI_PO_TRACKING_RPT_AIR into Z program.As this is knew for me as i use

INCLUDE ZBAPI_PO_TRACKING_RPT_AIR.

But it does not work and i get a syntex following error.....

Each ABAP program can contain only one "REPORT", "PROGRAM",

"FUNCTION-POOL" statement.

Please Suggest me the solution.

thanks

babbal

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

You can't include BAPI in a program, you need to call it like u call function module.

Regards,

Nikhil

4 REPLIES 4

Former Member
0 Kudos

Hi,

You can't include BAPI in a program, you need to call it like u call function module.

Regards,

Nikhil

Former Member
0 Kudos

Hi,

If you have created any custom BAPI in the ABAP, You need to call using Pattern in the toolbar (SE38 T.code) or Ctrl+F6 and give ur custom BAPI name in the popup screen. So that it won't show you any error. Try like above...If have any issues let me know.

Regards

Thiru

Former Member
0 Kudos

hai babbal ,

from ur report u click the pattern button and give ur zbapi

and then pass the input and output paramters

regards

afzal

Former Member
0 Kudos

Hi,

You can not include BAPI in your report. You should call the BAPI in your report.

Go to pattern and enter the BAPI name

Eg: CALL FUNCTION 'ZBAPI.....'

Regards,

Jyothi CH.