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: 

BAPI_AP_ACC_GETOPENITEMS

Former Member
0 Kudos

How to get open document details by using BAPI_AP_ACC_GETOPENITEMS?

anybody explain me abt this pls...send me the implementation of this ..

Regards,

pandu

4 REPLIES 4

Former Member
0 Kudos

Hi

Refer to the below piece of code:

DATA:

KEYDATE LIKE BAPI3008-KEY_DATE,

NOTEDITEMS LIKE BAPI3008-NTDITMS_RQ,

RETURN LIKE BAPIRETURN,

LINEITEMS LIKE BAPI3008_2 OCCURS 0.

SWC_GET_ELEMENT CONTAINER 'KeyDate' KEYDATE.

SWC_GET_ELEMENT CONTAINER 'NotedItems' NOTEDITEMS.

IF SY-SUBRC <> 0.

MOVE SPACE TO NOTEDITEMS.

ENDIF.

SWC_GET_TABLE CONTAINER 'LineItems' LINEITEMS.

CALL FUNCTION 'BAPI_AP_ACC_GETOPENITEMS'

EXPORTING

NOTEDITEMS = NOTEDITEMS

KEYDATE = KEYDATE

VENDOR = OBJECT-KEY-VENDOR

COMPANYCODE = OBJECT-KEY-COMPANYCODE

IMPORTING

RETURN = RETURN

TABLES

LINEITEMS = LINEITEMS

EXCEPTIONS

OTHERS = 01.

Thanks

Vasudha

0 Kudos

Thank u for that..

can u pls explian abt that..

Regards,

pandu.

0 Kudos

Vasudha,

i executed the code what u had given , it is giving syntax error as "Statement "SWC_GET_ELEMENT" is not defined. Check your spelling.

what should i do now ..

Regards,

pandu.

Former Member
0 Kudos

Hi

This method lists a vendor's open items at a given key date. If you so wish, noted items can also be selected for display.