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: 

Activating FKK_SAMPLE_TFK115 and related queries

paresh_vanjara
Participant
0 Kudos

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

1 ACCEPTED SOLUTION

AmlanBanerjee
Active Contributor
0 Kudos

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

View solution in original post

6 REPLIES 6

AmlanBanerjee
Active Contributor
0 Kudos

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

0 Kudos

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

BPCAContractDateAmountMainSub
1000233140000401100064816.05.2012100.00-00600010
1000233140000401100064918.05.20121,050.00Z1010010

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

0 Kudos

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

william_eastman
Advisor
Advisor
0 Kudos

What made you decide to create your own function?  That should only be necessary in very obscure circumstances.

paresh_vanjara
Participant
0 Kudos

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

paresh_vanjara
Participant
0 Kudos

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