SAP Function /SAPNEA/SMAPI_OPENITEM_GETLIST - Get the open item list customer can come from other smapi

Parameter Reference Type Length Default Optional Text
COMPANYCODE BAPI3007_1-COMP_CODE C 4 Company code
CUSTOMER BAPI3007_1-CUSTOMER C 10 X Customer number
DOC_TYPE BKPF-BLART C 2 X Document type
KEYDATE BAPI3007-KEY_DATE D 8 SY-DATUM X Open Items at Key Date
NOTEDITEMS BAPI3007-NTDITMS_RQ C 1 SPACE X Noted Items Requested
P_KUNNR KNA1VV-KUNNR C 10 X Customer number
P_PARVW KNVP-PARVW C 2 X Partner function
P_SPART KNA1VV-SPART C 2 X Division
P_VKORG KNA1VV-VKORG C 4 X Sales organization
P_VTWEG KNA1VV-VTWEG C 2 X Distribution channel

Parameter Reference Type Length Text
RETURN BAPIRET2 u 548 Return parameter

Parameter Reference Length Optional Text
DOC_TYPESELECTION /SAPNEA/BAPIBLART 7 X range table foe document type
OPENITEMS /SAPNEA/BAPI3007_2 1197 Transfer structure/Customer/openLine item,append overdue dat

Functionality
This SMAPI can get list all the openitems.
Company code is mantory.
Customer is also mantory for internal FM:BAPI_AR_ACC_GETOPENITEMS.
Now you can use the sales organization, sales distribution, division to
choose the right customer set. This is based on SMAPI:
/SAPNEA/SMAPI_CUSTOMER_GETLIST.
the overdue dates is calculated by openitems-overdue_dates = KEYDATE
- openitems-bline_date - openitems-netterms.