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

BAPI_AR_ACC_GETKEYDATEBALANCE

Former Member
0 Likes
3,149

hi to all,

can any body tell me how can I pick open balance using BAPI_AR_ACC_GETKEYDATEBALANCE in my main progam.

I have a report which shows customer summary. for this I have to pick the open balance using BAPI_AR_ACC_GETKEYDATEBALANCE function module. please help me .

resma

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,029

Hi,

you need to pass the parameters Customer, Company code, KEYDATE, Balance per special G/L indicator.

This method supplies a customer's total balance at a given key date. The total balance includes both standard and special general ledger transactions. If you so wish, noted items can also be included in this balance.

Regards,

Vamsi Krishna.

6 REPLIES 6
Read only

Former Member
0 Likes
2,030

Hi,

you need to pass the parameters Customer, Company code, KEYDATE, Balance per special G/L indicator.

This method supplies a customer's total balance at a given key date. The total balance includes both standard and special general ledger transactions. If you so wish, noted items can also be included in this balance.

Regards,

Vamsi Krishna.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,029

the parameters are few and simple, what cause you some trouble in this BAPI ?

DATA : gt_bapi3007_3 TYPE TABLE OF bapi3007_3.
CALL FUNCTION 'BAPI_AR_ACC_GETKEYDATEBALANCE'
     EXPORTING
          companycode = p_bukrs
          customer    = p_kunnr
          keydate     = p_budat
     TABLES
          keybalance  = gt_bapi3007_3.

The BAPi will then read useful records from BSID/BSAD. (posted before the date and not cleared or cleared after the date) and perform summation.

Regards,

Raymond

Read only

0 Likes
2,029

hi

I know how to pass the variables in the function module and i have done that also. My function module program is showing correct output. but from that program I am not able to retrieve the open balance in my main program ( customer summary ) .that I want to know .I have already used the SUBMIT key word and also declared the memory ID .but still it is not working.

resma

Read only

0 Likes
2,029

hi

how to put authority check on region ( field REGIO ) in a report ? What is the authority object ?

I know how to put authority check on plant ( WERKS ) .

can anybody solve this .

resma

Read only

0 Likes
2,029

Call transaction SU20, look for your field name/data element, doublec-click and it will display some attributes and the list of objects which use this field.

If none found, build your own via SU20 (create field if field not found) and SU21 (create a z-object)

([Authorizations|http://help.sap.com/abapdocu_70/en/ABENBC_AUTHORITY_CHECK.htm] and [Programming Authorization Checks|http://help.sap.com/saphelp_nw04/helpdata/en/52/6712ac439b11d1896f0000e8322d00/frameset.htm])

Regards,

Raymond

Read only

Former Member
0 Likes
2,029

m not getting values in internal table gt_bapi3007_3

how to get those values

loop at it_bsid INTO wa_bsid.

DATA : gt_bapi3007_3 TYPE TABLE OF bapi3007_3,
        wa_bapi TYPE bapi3007_3.

CALL FUNCTION 'BAPI_AR_ACC_GETKEYDATEBALANCE'
   EXPORTING
     companycode        =  bukrs-low
     customer           =  kunnr-low
     keydate            =  budat-low
*   BALANCESPGLI       = ' '
*   NOTEDITEMS         = ' '
* IMPORTING
*   RETURN             =
   tables
    keybalance         = gt_bapi3007_3
           .
ENDLOOP.