2008 Oct 06 11:49 AM
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 .
2008 Oct 06 12:00 PM
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