Skip to Content
0

Create a payement, fm FKK_CD_Payement_CREATE

Oct 25, 2016 at 08:29 PM

261

avatar image
Former Member

Hello,

I am facing an issue while using the FM : FKK_CD_PAYMENT_CREATE.

I am looking to create a payment for an invoice received from a TXT file, I am passing the following stuctures to the FM :

CALL FUNCTION 'FKK_CD_PAYMENT_CREATE' "
  EXPORTING
    i_rfkh0 =  rfkh0                
    i_rfkh1 =  rfkh1                 
    i_rfkh2 =  rfkh2                 
*   i_fkkopkc =                 
*   i_xblnr =                        
  IMPORTING
    e_opbel =                         
  CHANGING
*   c_fkkop =                   
    c_fkkcl =  fkkcl_t                 "
    . 

After running my program, I get a message that says " Balance in document currency is not zero, posting not possible".

Could you please help me with understanding the issue and finding a possible solution?

What are the necessary export and chaging parameters ?

If i need to pass c_fkkop, what are the requisite fields that should be populated in this table structure?

Regards,

Houriya

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

9 Answers

avatar image
Former Member Oct 26, 2016 at 06:16 AM
1

Dear Houriya MJADLI,

I hope you are posting documents first time. Let me clear you some points while you are posting payment/debit/credit Documents to customer.

Summation of amount should be zero.

for ex: you are rising debit note amount Rs.2000/- to customer, for an invoice then entry will be,

Debit note GL -2000

Customer GL 2000

I believe that you are passing I_RFKH0 structure that contains amount transaction summation is not zero. Because of this you are getting this result "Balance in document currency is not zero, posting not possible".

Note: Sign of amount will play major role while posting documents.

My Suggestion: Try to change this in your export parameter of I_RFKH0. Or Else Try to use FM BAPI_ACC_DOCUMENT_POST. Here you need to populate data for import parameter of this FM. Then it will take care.

Thanks,

Sivaraj Sadasivam.

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Oct 26, 2016 at 10:35 AM
0

Thank you so much for you reply

Could you please give me the prequisite fields for I_RFKH0 structure ?

Because after I passed the field RFKHO-XAKON = 'X', I didn't get the message , the FM terminated successfully. But there is an new issue while trying to generate the receipt via the FM isu_print_receipt, I'm getting a message that says "No receipt printed for payment document".

Sap diagnosis says:

No receipt can be printed for payment document . This could have one of the following causes:

  • The payment document comes from a payment lot from an external payment collector, such as a bank or a postal office, and has not yet been confirmed.
  • A payment document has already been reversed.
  • Reconciliation is made using payment document without any entry being necessary in table DFKKREPTCL.

Regards,

Houriya

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Dear Houriya MJADLI,

Have you check whether that Document posted successfully or not?

Please check and confirm it. Since if Document posted successfully only you can able to Print Receipt, I believe.

Thanks,

Sivaraj Sadasivam.

1
avatar image
Former Member Oct 26, 2016 at 03:23 PM
0

What do you mean by document and how can I check if it was posted ?

Thank you so much for your help.

Regards,

Houriya

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Oct 31, 2016 at 10:37 AM
0

After checking DFKKKO table, I can't find the document even though sy-subrc = 0 at end of the fm FKK_CD_PAYEMENT_CREATE

Would you please give me the prequisite fields for I_RFKH0 structure?

Regards,

Houriya

.

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Nov 04, 2016 at 03:18 AM
0

Dear Houriya MJADLI,

Try to get import parameter from FM C_FKKOP and C_FKKCL, then those two structure's contain values or not. Specially C_FKKOP-OPBEL, since its contain document number if its posted successfully.

Thanks,

Sivaraj Sadasivam.

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Nov 07, 2016 at 04:19 PM
0

I'm only passing to the FM C_FKKCL and and yes you are right at the end of the FM C_FKKOP-OPBEL is empty how come? because at the importing parameter e_opbel is not empty .

Regards,

Houriya

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Nov 08, 2016 at 06:28 AM
0

Dear Houriya MJADLI,

IF e-opbel is not empty. Try to pass this document number(e_opbel Value) in following tables with your convenient and see any record found or not. Then you finalize whether document posted or not? and Whether its posted and cleared? Then you will get some idea.

DFKKCJC ------Cash Desk Closing Data

DFKKCJF -------Transfer Accepted Payments

DFKKCJK -------Data for Change Amounts at Cash Desk - Different Currency

DFKKCJM -------Cash Journal Master Data

DFKKCJMT -------Text Table for Cash Journal Master Data

DFKKCJT --------Transaction Data for Cash Journal

DFKKCDLOTS ---------Lot Management for Cash Desk and External Cash Desk Services

DFKKCJT_WDRWH --------Cash Journal: Historical Data for Withdrawal (was introduced as from the Ehp7 release)

DFKKREPT --------Receipt Documents

DFKKREPTCL ---------Clearing Information for Receipt Documents

DFKKREPTNRKR ---------Internal Table for Lock Object EFKKNUMKR_REPT

TFK000C-XREPT --------Receipt Management Used

TFK100D -----------Cash Desk: Cash Desk Clearing Accounts

Thanks,

Sivaraj Sadasivam.

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Nov 15, 2016 at 10:20 AM
0

I finally managed creating the payement document and also the receipt, but still the invoice's not cleared when I check FPL9,

Do I need to do something before or after this FM ?

Share
10 |10000 characters needed characters left characters exceeded
Amlan Banerjee
Jan 03, 2017 at 11:16 AM
0

Hi,

You need to configure the clearing variant for the clearing rules for Cash desk credit card payments (clearing type 20) in SPRO CONFIG-

IMG-->Financial Accounting-->Contract Accounts Receivable and Payable-->Basic Functions-->Open Item Management-->Clearing Control-->Define Specifications for Clearing Types-->Define Defaults for Incoming Payments

Hope it helps.

Thanks,

Amlan

Share
10 |10000 characters needed characters left characters exceeded