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: 
Read only

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

Pavan_Golesar
Active Participant
742

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
Read only

ivor_martin
Active Contributor
0 Likes
659

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

Read only

poorna_yalamanchili
Participant
0 Likes
659

Hi Pavan,

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

regards

Poorna

Read only

yevgen_trukhin
Product and Topic Expert
Product and Topic Expert
0 Likes
659

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