‎2007 Apr 30 1:17 AM
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.
‎2007 Apr 30 2:55 AM
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
‎2007 Apr 30 8:24 AM
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