09-28-2013 5:30 AM
Dear Experts,
I am using BAPI_AP_ACC_GETKEYDATEBALANCE to get opening balance of vendor but is is not returning correct value . I tried debugging the code in bapi but is not returing the correct line items. Below are parameters I m passing to the bapi
CALL FUNCTION 'BAPI_AP_ACC_GETKEYDATEBALANCE'
EXPORTING
COMPANYCODE = PA_BUKRS "1000
VENDOR = PA_LIF "100006
KEYDATE = SO_DATE-LOW "20130401
BALANCESPGLI = 'X'
NOTEDITEMS = 'X'
* IMPORTING
* RETURN =
TABLES
KEYBALANCE = OPEN1 "type table of BAPI3008_3
Kindly guide.
Best Regards
Harsh .
09-28-2013 7:35 AM
09-28-2013 9:44 AM
Hello Harsh ,
Actually this BAPI returns 2 lines in the Output Internal Table ( OPEN1 in your case ) , one for Total Credit Balance and Other for Total Debit Balance . You need to Sum up these two amounts in order to get the key date balance ( i.e FBL1N Balance )
Thanks ,
Sijin
09-29-2013 6:23 AM
Hello Experts,
I solved the problem myself, thanks for reply.
Closing this Thread.
10-09-2013 6:34 AM
Hi Harsh,
Can you please share the solution. We are facing similar issue.
Regards,
YS
10-09-2013 8:37 AM
Hi Yusuf,
Can u please share the input and what is the result you are expecting ?
10-09-2013 10:56 AM
Thanks Harsh. Resolved the issue. The preceding zeroes had been removed from the Vendor code.
Regards,
YS
05-10-2023 12:09 PM
Can you give me the solution
Because i have a requirement
for customer opening Balance and All transaction with Closing Balance
Zreport
I need support for this requirement