Application Development 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: 

Function module to read PO header and Item tables EKKO and EKPO

Former Member
0 Kudos

HI ,

I need to know a function module which will help me get all records from EKKO, EKPO based on say Purchase doc category and purchase doc type as inputs.

Just to save me from writing a select every time.

Regards,

Sheetal

1 ACCEPTED SOLUTION

former_member203305
Active Contributor
0 Kudos

Hi

probably u can use one of these bapis.

BAPI_PO_GETDETAIL

BAPI_PO_GETDETAIL1

BAPI_PO_GETITEMS

Regards

3 REPLIES 3

former_member203305
Active Contributor
0 Kudos

Hi

probably u can use one of these bapis.

BAPI_PO_GETDETAIL

BAPI_PO_GETDETAIL1

BAPI_PO_GETITEMS

Regards

0 Kudos

Thanks.

1. I need to select all PO from the system where document types (BSART)should be CROP, TEA, AUC and SAS

2. I nedd to select all contracts of document types ( BSART) is COPR and SAS.

How can I use the BAPI function module to extract all PO's based on document types?

Regards,

Sheetal

Former Member
0 Kudos

Please check Database view which use EKKO - EKPO depending upong PO type and your requirement For Ex. MASSEKPO

Edited by: Nilesh Shete on Jul 23, 2009 9:05 PM