SAP for Utilities Discussions
Connect with fellow SAP users to share best practices, troubleshoot challenges, and collaborate on building a sustainable energy future. Join the discussion.
cancel
Showing results for 
Search instead for 
Did you mean: 

In ERP_UTILITIES_UMC how to fetch payment data against CA number and not BP number

Pavan_Golesar
Active Participant

Hello Gurus,

In case of ISU-only scenario we can have multiple CA (Contract accounts) for one BP (Business Partner) in system.

Cardinality: 1 BP to multiple CA.


Currently,I am able to fetch payment data against BP number


But End user Login via CA number.

How can we get data against CA number and not against BP number.

Note: I have standard OData service 'ERP_UTILITIES_UMC' up and running.

Suggestions and comments are appreciated.

Thanks

-Pavan G

3 REPLIES 3

ivor_martin
Active Contributor
0 Kudos

Hi,

You may use the standard BAPI function module BAPI_ACCOUNT_GETBALANCES to fetch the balance by specifying the Contract Account. Check the documentation for this module to interpret the items that are returned.

I hope this helps.

Regards,

Ivor

poorna_yalamanchili
Participant
0 Kudos

Hi Pavan,

I second Ivor's response. The BAPI_ACCOUNT_GETBALANCES work well for CA level.

regards

Poorna

yevgen_trukhin
Advisor
Advisor
0 Kudos

Pavan, not sure about your scenario in OData model on ERP.

You can do GET on Accounts('X')/ContractAccounts?$expand=ContractAccountBalance.

This OData request should give you contract account balance per contract account.

Regards, Yevgen