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: 

BAPI or FM to compare two different invoices

Former Member
0 Kudos

Hi,

Is there any BAPI or FM to compare latest invoice with previous month's invoice. When a customer calls for high bill inquires (via IVR) we want a program to compare previous bills (by line item or document type) and populate the reason like. due to dunning charges or Interest charges etc. etc.

Appreciate your responses!

Thanks,

Aravind

1 REPLY 1

Former Member
0 Kudos

Hi Aravind,

Select all the values from table ERDK based on Business Partner or Contract account level using FM ISU_S_ERDK_SELECT_ALL

Pass the previous invoice to FM ISU_IMPORT_PRINTDOC_FROM_MEM to get the data from memory.

If not available, get detail from the database using FM ISU_DB_BUF_PRINT_DOC_SINGLE  in parameter Y_PRINT_DOC.

Regards,

Sudeep Singh