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: 

Is there Standard FM available to clear outstanding Security Deposit (FPSEC2).

Former Member
0 Kudos

Is there Standard FM available to clear outstanding Security Deposit (FPSEC2).I want to clear the outstanding SD request which is partially unpaid.

1 ACCEPTED SOLUTION

AmlanBanerjee
Active Contributor
0 Kudos

Piyush,

You need to use the FM, FKK_CREATE_DOC_AND_CLEAR for performing the 'Clear outstanding functionality' programatically.

Check the Form ACTION_CLEAR under the include,LFKK_SECF20, as how its done in standard SAP.

You have to perfrom the same activity in your custom code.

Thanks,

Amlan

View solution in original post

6 REPLIES 6

TammyPowlas
Active Contributor
0 Kudos

AmlanBanerjee
Active Contributor
0 Kudos

Piyush,

You need to use the FM, FKK_CREATE_DOC_AND_CLEAR for performing the 'Clear outstanding functionality' programatically.

Check the Form ACTION_CLEAR under the include,LFKK_SECF20, as how its done in standard SAP.

You have to perfrom the same activity in your custom code.

Thanks,

Amlan

0 Kudos

Hi Amlan,

We have done the analysis under the include LFKK_SECF20. But after using the FM : FKK_CREATE_DOC_AND_CLEAR , we have query how to commit change security requested amount.

Please suggest.

0 Kudos

Hi Piyush,

I didn't understood your question.

For reversing the open SD part, you can query DFKKOP and retrieve the open part in fkkcl structure.

Thanks,

Amlan

0 Kudos

Hi Amlan

We are now able to successfully release the SD once the final invoice is triggered using event R507 for Retailer.

Now if the Retailers Final invoice is reversed we are not able to re-instate the security deposit which was released during final bill.

Do we have any FM to reinstate the Security Deposit on reversal with the actual posting date as it was before released.

Thanks

Piyush

william_eastman
Advisor
Advisor
0 Kudos

You should never use an FM like that (without doing a lot of analysis and testing) - likely you will get some inconsistencies calling it out of sequence. There is a bapi for document clearing. Check it out.