2013 Aug 21 6:47 AM
Hi,
I was facing issue in clearing items management i.e. open but not due items were not getting selected for clearing in FP06 and FPMA so I have customized FKK_SAMPLE_TFK115.
Now we have following issues while debugging and for writing logic.
1. Despite adopting this module, it is not getting triggered in FP06. How to achieve this?
2. While this module is getting triggered in FPMA, but we are not able to visualise data flow as it is in background mode. (What we have done is insert endless loop and then adopted background job debugging through SM51 to see data). So is there is any other way to see data flow in FPMA.
3 There is no example code given as to what to write in subject FM so we are having hard time figuring out how to activate items and how to clear difference in case of there is amount mismatch.
Hope you have understood issue.
Awaiting expert comments.
Regards,
Paresh
2013 Aug 21 7:42 AM
Hi Paresh,
I can see that you have customized the FM FKK_SAMPLE_TFK115, that's fine.
(a) Just check whether you have assigned this FM in the clearing steps of the clearing variant that is assigned to the following SPRO node against clearing type 03
IMG-->Financial Accounting--->Contract Accounts Receivable and Payable-->Basic Functions--->Open Item Management-->Clearing Control-->Define Specifications for Clearing Types-->Define Defaults for Account Maintenance
Also check whether in the clearing steps under the Group rule you have given the value of clearing rule as 8 or not.
(b) Schedule FPMA in background. Go to SM37 and execute. Then type in JDBG in the transaction menu.I think you will be able to go into debugging
(c) SAP Standard Configuration can cater most of the scenarios. Let me know your requirement.
Hope it helps...
Thanks,
Amlan
2013 Aug 21 7:42 AM
Hi Paresh,
I can see that you have customized the FM FKK_SAMPLE_TFK115, that's fine.
(a) Just check whether you have assigned this FM in the clearing steps of the clearing variant that is assigned to the following SPRO node against clearing type 03
IMG-->Financial Accounting--->Contract Accounts Receivable and Payable-->Basic Functions--->Open Item Management-->Clearing Control-->Define Specifications for Clearing Types-->Define Defaults for Account Maintenance
Also check whether in the clearing steps under the Group rule you have given the value of clearing rule as 8 or not.
(b) Schedule FPMA in background. Go to SM37 and execute. Then type in JDBG in the transaction menu.I think you will be able to go into debugging
(c) SAP Standard Configuration can cater most of the scenarios. Let me know your requirement.
Hope it helps...
Thanks,
Amlan
2013 Aug 21 9:17 AM
Hi,
Thanks for your prompt reply.
A. I had not assigned in the path you have mentioned so now I did but still in vain. I have now assign "YFKK_SAMPLE_TFK115" against events 01 and 03 in "Program Enhancements". But still in FP06 break point doesn't trigger.
B. You got this right. now I can debug in background mode.
C. My requirement, for e.g. I want to clear debit 100 against credit 100. Now steps that needs to be follows are
1. Select items
2. activate items
3. remove difference
4 pass for selection
BP | CA | Contract | Date | Amount | Main | Sub |
1000233 | 140000401 | 1000648 | 16.05.2012 | 100.00- | 0060 | 0010 |
1000233 | 140000401 | 1000649 | 18.05.2012 | 1,050.00 | Z101 | 0010 |
I think I can fairly do step 1 and 4 but for step 2 and 3 is little complicated.
Once again, thanks for your prompt reply.
Regards,
Paresh
2013 Aug 22 2:58 AM
Hi Paresh,
(a) If you are plugging in a custom FM in program enhancements under events 01 and 03, it should be a copy of the sample FM FKK_SAMPLE_TFK113E_01(for event 01) and FKK_SAMPLE_TFK113E_03 (for event 03) and not FKK_SAMPLE_TFK115.
(c) From the example that you have stated above, I think you are planning to perform a clearing b/w two contracts under the same Contract account where in the item is not due yet.
I think it can be catered through standard clearing configuration.
In the clearing variant, assign two steps-
(a) In the first step, under the grouping string , put
1. 015-Contract Account
2. 011-Item is due
Under the Sorting String
1. 024-Due date with deferral
2. 004-Main Transaction
This step will clear out the due items against the contracts.
(b) In the Second step, under the grouping string , put
1. 015-Contract Account
Under the Sorting String
1. 024-Due date with deferral
2. 004-Main Transaction
Hope it helps...
Thanks,
Amlan
2013 Aug 22 4:05 AM
What made you decide to create your own function? That should only be necessary in very obscure circumstances.
2013 Aug 29 7:20 AM
HI,
Sorry for delay in replying.
Thanks for your inputs.
I have tried standard config but it is not working.
ABAPer is not able to figure out customization as he is saying that there is no "changing " values in FM 'FKK_SAMPLE_TFK113E_03' so we have raised issue with SAP OSS.
Will keep you posted, if resolved.
So still issue is not resolved.
Regards,
Paresh
2013 Sep 24 6:38 AM
Hi,
We have found solution for the above issue.
Christaine Grammlich assisted in resolving issue.
Basically it was issue of incorrect configuration mapping. Following is log, for benefit of the users who might encounter this issue.
There were two issues, one being
1st
The reason for the missing clearing proposal is the following entry
in table V_TFK110:
Applicat. area R
Clearing Type 03 Account Maintenance
Usage 2 (Account Maintenance)
X Incoming Payment <------
For clearing type account maintenance shouldn't set the flag incoming
payment.
2nd - for mass clearing, proper values shall be maintained in TFK115 table. Evidently, there was one blank entry in main and sub transaction mapping.
All in all, issue resolved.
Regards,
Paresh