Application Development and Automation 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: 
Read only

about AP BAPI BAPI_AP_ACC_GETOPENITEMS

Former Member
0 Likes
1,851

Hi Gurus,

BAPI_AP_ACC_GETOPENITEMS this is bapi for open items ,i want to get all the open item details ,,can anybody give me code for this ,,,,its gr8 helpfull to me..

Thanks

KRISNA

3 REPLIES 3
Read only

Former Member
0 Likes
1,302

Just call the FM BAPI_AP_ACC_GETOPENITEMS and pass these values:

CALL FUNCTION 'BAPI_AP_ACC_GETOPENITEMS'

EXPORTING

NOTEDITEMS = NOTEDITEMS "Move SPACE into this field

KEYDATE = KEYDATE "Specify date

VENDOR = OBJECT-KEY-VENDOR "Vendor

COMPANYCODE = OBJECT-KEY-COMPANYCODE "Company code

IMPORTING

RETURN = RETURN

TABLES

LINEITEMS = LINEITEMS

EXCEPTIONS

OTHERS = 01.

Close your previous thread.

Thanks,

Santosh

Read only

0 Likes
1,302

Hi ,

I am sorry,,,and again i have to get data only based on COMPANY CODE ...i dont want to enter VENDOR,KEYDATE,NOTEDITES, how it is possible.....here is asking this is what i have done..can u pls check it...

DATA : LT_AP_OPEN LIKE BAPI3008_2 OCCURS 0 WITH HEADER LINE.

LOOP AT SO_BUKRS.

CALL FUNCTION 'BAPI_AP_ACC_GETOPENITEMS'

EXPORTING

COMPANYCODE = SO_BUKRS

VENDOR = ' '

KEYDATE =

NOTEDITEMS = ' '

  • IMPORTING

  • RETURN =

TABLES

LINEITEMS = LT_AP_OPEN.

ENDLOOP.

Read only

0 Likes
1,302

Here, companycode, vendor, keydate are mandatory.

Thanks,

Santosh