Application Development and Automation 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: 
Read only

Include BAPI

Former Member
0 Likes
655

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
Read only

Former Member
0 Likes
606

Hi,

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

Regards,

Nikhil

4 REPLIES 4
Read only

Former Member
0 Likes
607

Hi,

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

Regards,

Nikhil

Read only

Former Member
0 Likes
606

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

Read only

Former Member
0 Likes
606

hai babbal ,

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

and then pass the input and output paramters

regards

afzal

Read only

Former Member
0 Likes
606

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.