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: 

Payment

rajesh_vasudeb
Participant
0 Kudos

Dear Friends,

From which table and field can you pick the last amount recieved from a Business Partner ?

Regards,

Rajesh

8 REPLIES 8

Former Member
0 Kudos

Rajesh,

DFKKZP, DFKKZK, DFKKOP need to be read together to derive Contract Account/BP Payments

Rgds

Rajendra

0 Kudos

Thank you Sir,

I was able to the pick the details of Bp from DFKKZP table but was not able to get the details clearly from DFKKOP table as the both aspects of an payment entry seems to posted there.

My requirement is to print the last amount paid by the BP in his next invoice.

Can you help me out?

Thanks and Regards,

Rajesh

0 Kudos

Use this function module to get the amount :

BAPI_CTRACCONTRACTACCOUNT_GBAL

Regards,

Shiva Kumar

0 Kudos

Try this Rajesh,

Table DFKKKO where Origin Key = 05 , 06 where CPUDT =Sysdat.

Get all OPBEL and pass in DFKKOP-OPBEL. Derive GPART.

It should work else add few more conditions as per your project requirement

Rgds

Rajendra

0 Kudos

Hi,

Try using FM FKK_READ_LAST_PAYMENTS. Import paramters are PB, CA, Contract. Keep the payment run flag checked, in case the BP is in direct debit. You would get get a list of all payments for the business partner. get the latest by sorting budat.

Hope this helps.

Thank you,

Binno Don Thomas

0 Kudos

Gud answer Binno. It is much appreciated.

Rgds

Rajendra

0 Kudos

Thank you, Sir

The Issue is resolved.

Rajesh

0 Kudos

Thank u Rajendra for the appreciation