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

I am using BAPI_AR_ACC_GETKEYDATEBALANCE

Former Member
0 Likes
1,028

Hello expart ,

I m using bapi BAPI_AR_ACC_GETKEYDATEBALANCE its gives o/p only one customer Security Deposit . my requirment is user puting custmor code 1 to 10 . it showing o/p different customer wise security deposite .

call function 'BAPI_AR_ACC_GETKEYDATEBALANCE'

exporting

companycode = 'PCL1'

customer = s_kunnr-low

keydate = t_date

balancespgli = 'H'

  • NOTEDITEMS = ' '

  • IMPORTING

  • RETURN =

tables

keybalance = itab_temp.

Plz tell me which bapi i m using for this requirment .

i ll give point .

Hello expart ,

I m using bapi BAPI_AR_ACC_GETKEYDATEBALANCE its gives o/p only one customer Security Deposit . my requirment is user puting custmor code 1 to 10 . it showing o/p different customer wise security deposite .

call function 'BAPI_AR_ACC_GETKEYDATEBALANCE'

exporting

companycode = 'PCL1'

customer = s_kunnr-low

keydate = t_date

balancespgli = 'H'

  • NOTEDITEMS = ' '

  • IMPORTING

  • RETURN =

tables

keybalance = itab_temp.

Plz tell me which bapi i m using for this requirment .

i ll give point .

1 REPLY 1
Read only

Former Member
0 Likes
693

hi..

First fetch all the required customers with company code in one internal table.eg: itab1.

Now use LOOP AT stmt and inside the loop, call this BAPI.

as,

** For Bapi data.
DATA : gt_bapi3007_3 TYPE TABLE OF bapi3007_3.

** loop it, to calculate for more than one customer
Loop at itab1 into wa.

CALL FUNCTION 'BAPI_AR_ACC_GETKEYDATEBALANCE'
        EXPORTING
          companycode        = wa_itab1-bukrs
          customer           = wa_itab1-kunnr
          keydate            = s_budat-low
*   BALANCESPGLI       = ' '
*   NOTEDITEMS         = ' '
* IMPORTING
*   RETURN             =
        TABLES
          keybalance         = gt_bapi3007_3.

endloop.

regards,

Padma