Hi Manosh,
well, you asked for PO details initially. To use BAPI_PO_GETITEMS, you need to supply at least one parameter. In order to get all the PO in system, you may iterate through all the plants - import parameter "PLANT".
If you need just the numbers, query on the table EKKO, field EBLN. Whatever filter you require ... status, year ...
Hynek