2013 Feb 28 6:04 PM
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
2013 Mar 01 12:29 AM
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
2013 Mar 04 4:15 PM
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.