cancel
Showing results for 
Search instead for 
Did you mean: 

Determining the Number Purchase Order Lines

Former Member
0 Kudos

Hi,

in my program I need to determine if a purchase order has any lines, I have the PO number.

Is there a function or bapi that lets me determine this,

or should I be looking at a DB table?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

former_member188685
Active Contributor
0 Kudos

Hi Use this Fm

BAPI_PO_GETITEMS

regards

vijay

Answers (3)

Answers (3)

Former Member
0 Kudos

Sims,

If you are looking at just getting the number of items you can directly get it from EKPO.

However, if you are looking for details also you can get them as well from EKPO. If you are looking for more details, you can use the following functions.

BAPI_PO_GETITEMS

BAPI_PO_GETDETAIL

Regards,

Ravi

abdul_hakim
Active Contributor
0 Kudos

Hi Sims,

I am sure that you can use the foll BAPI.

BAPI_PO_GETITEMS

Regards,

Abdul

FredericGirod
Active Contributor
0 Kudos

Hi Sims,

select count...

from ekpo

where ebeln eq <- PO number

Why do you want a function or a BAPI to do that ?

Rgd

Frédéric