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: 

Clearing specific debit charges with specific credit charges during Invoicing using FKK_SAMPLE_TFK115

0 Kudos

Hi,

I have a requirement to clear specific debit charges(debit Main/Sub Transactions) with specific credit charges (credit Main/Sub Transactions).

Posting of this specific debit /credit is done via an Interface (Input File)

While invoicing if there is any specific debit present on the account , it should only get cleared with specifc credit(if any).

I am using enhanced(custom) FKK_SAMPLE_TFK115 which is attached to the standard clearing variant.

The logic written in the FM creates the proposal to clear specific debit charges(debit Main/Sub Transactions) with specific credit charges (credit Main/Sub Transactions) , but it does not trigger the further clearing logic in the clearing variant.

Please suggest.

Thanks,

Pooja

2 REPLIES 2

AmlanBanerjee
Active Contributor
0 Kudos

Hi Pooja,

I am not very clear on what you mean by the statement "but it does not trigger the further clearing logic in the clearing variant"-

Does that mean that the custom FM is not getting triggerred? Or,

Custom FM is getting triggerred but it's not behaving as per your design?

To cater to your requirement, in the clearing variant, you have to sort the specific entries based on the main transaction,Sub transaction and document number as grouping string and main transaction,Sub transaction and due date with deferral as sorting string.

Once done, set the clearing rule as 8, which would trigger the custom FM.

In the custom FM, sort the like entries based on the main\sub transactions in ascending order and pass it into t_fkkcl_e115 structure and set the flag for y_gen_clrg_proposal as 'X'.

Also check whether this clearing variant that you have configured is assinged in the clearing type for invoicing-

IMG->Financial Accounting-->Contract Accounts Receivable and Payable-->Basic Functions-->Open Item Management-->Clearing Control-->Define Specifications for Clearing Types-->Define Specifications for IS-U Invoicing

Hope it helps

Thanks,

Amlan

william_eastman
Advisor
Advisor
0 Kudos

Pooja:

You should be able to define an initial step in the invoicing clearing variant which only matches the specific debit and credit combination without using the custom FM.

regards,

bill.