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

Fetching data for multiple POs one by one using BAPI..

Former Member
0 Likes
583

Hi,

We have created a custom BAPI which gives all the details regading a

given PO in multiple tables.

Now in a report I have to give a range of PO numbers which should be passed to BAPI one by one and then the data that will is fetched in BAPI tables should be transferred to flat file one by one for each PO.

How can I do this ?

Thanks.

Regards,

Rajesh.

2 REPLIES 2
Read only

Former Member
0 Likes
496

Hi Rajesh,

Follow below steps.

1. Get the all the PO numbers, based on the range specified, into an internal table (say it_po_no) from PO header EKKO.

2. Loop at it_po_no.

call the BAPI.

call the download routines to download the data in flat file.

endloop.

Hope this helps.

Thanks & Regards,

Atish

Read only

Former Member
0 Likes
496

Hi,

1.Get all the PO Numbers into an internal Table.

2.Loop at the Internal Table.

3.Within the Loop,call the BAPI

4.Pass the Value into an Internal Table got thru BAPi

5.Call the Function Module GUI_DOWNLOAD and Pass the internal Table to that fiunctiona module.

Reward Points if it is helpful.

Regards,

Sangeetha.A