cancel
Showing results for 
Search instead for 
Did you mean: 

Internal Error: Entry in COKA-Buffer Not Found

Former Member
0 Kudos

Hello,

We have a requirement to post cash discounts for non-merchandise to a separate G/L account which is different from our merchandise discount G/L account.  I started down the road of using substitution to achieve this requirement and using a user exit to achieve this requirement.  I am doing substitution using the Complete Document since I need to loop through the line items to determine if the vendor first is a non-merchandise vendor and then again to see if a cash discount was created.  The program works fine as far as substituting the correct G/L account in the BSEG table, but I run into trouble when it tries to create the controlling document.  I get the error "Internal Error: Entry in COKA-Buffer Not Found".   I've read SAP note 436046 which isn't much help in this scenario for achieving my business requirement.

Just for testing purposes, I did a substitution as a line item where anytime the G/L account for cash discount appears I substituted it with the new Non-Merchandise G/L account.  When I do it this way, everything processes through fine including creating the controlling document.

Can you tell me if there is a way at the line item level to see all the line items that will be processed where I can see if the correct vendor G/L account will be part of this document?  Basically, I want to influence the cash discount G/L account number only if I have a certain vendor G/L account number?   Or do you know a way around the error I am receiving when I have my user exit at the complete document level?

If none of these options will work, do you have any other suggestion on how we can post our non-merchandise cash discounts to a separate G/L account?

Any help/direction would be most appreciated.

-Bob

Accepted Solutions (0)

Answers (4)

Answers (4)

0 Kudos

I have the same problem, i can change the g/l income account but that is after checking coka table with the previous g/l account. How can i update coka, cosp, tables with the new g/l account i am able to update in exist 1120.? Thanks in advance.

0 Kudos

Hi Felipe,
We are also facing the similar issue. We want to change the GL,Cost center and Transaction Key.

Is there any solution which you have found ?

Thanks in advance,

Besr Regards,

Aarushi Kaushal

Former Member
0 Kudos

Hi all,

as per my client reqiurement we are switching the Gl account(Original)  to some other GL account(derived)based on combination of GL + FUN area for this we maintained  one Z table with below fields

ORGl GL                    Fun Area          Derived GL

053230009                   1001A               053230006

so when i try to switch the gl from 053230009 to  derived gl (53230006) its giving me the COKA -buffer not found error

MSG n0:KC 051.

if i remove the above entry from that Ztable there is no issue i mean NO coka buffer comes .but my business wants switch the GL.

we have use BTE 1120 for this GL switching,so could you please help to reslove this error.

Your help is most appreciated.

thanks in advance.

former_member198032
Active Contributor
0 Kudos

Hi,

In general, we can say that error KC051 occurs correctly and the cause

for this error is in 99,99% a non-allowed change of Business Area or

Profit Center within customer own EXITs (Either from FI-substitutions

callup point 3 or via FI open FI exits 1120 or 1130).

In addition, if you have made modifications to include LRWCLF01 this

will certainly cause the issue.

After this coding has been removed back to standard, the problem will

be solved.

For further information on this issue please refer to the following

SAP *Note:

436046 - CO interface: Error KC051 (Entry in COKA-Buffer not

Hope you find this helpful.

Regards,

Cristiano

michael_kozlowski
Active Contributor
0 Kudos

check if both G/L accounts require the same additional account assignments.

Former Member
0 Kudos


Hi Michael,

as per my client reqiurement we are switching the Gl account(Original)  to some other GL account(derived)based on combination of GL + FUN area for this we maintained  one Z table with below fields

ORGl GL                    Fun Area          Derived GL

053230009                   1001A               053230006

so when i try to switch the gl from 053230009 to  derived gl (53230006) its giving me the COKA -buffer not found error

MSG n0:KC 051.

if i remove the above entry from that Ztable there is no issue i mean NO coka buffer comes .but my business wants switch the GL.

we have use BTE 1120 for this GL switching,so could you please help to reslove this error.

Your help is most appreciated.

thanks in advance.

michael_kozlowski
Active Contributor
0 Kudos

for substituion of functional area use event 5 (or 6 new) depending on your system version.

check documentation Features 3.

https://help.sap.com/saphelp_erp60_sp/helpdata/en/6e/51d7531a4d424de10000000a174cb4/content.htm

as well

0 Kudos

Hello,

We have the same issue.

We want to change the cost center value of a line item with FI substitution. We can do it only at "complete document" level because we must read the other line items.

According to the sap note SAP 436046, we can't change CO data after the CO checks.


Is it means it's not possible to change CO data in FI substitution at "complete document" level ?


So what is the solution for our requirement ?


Xavier.


Former Member
0 Kudos

Hi Xavier,

I have not understood your extact requirement. If the requirement is to change the cost center then use Controlling substitution (OKC9).

Regards,

Ritesh

0 Kudos

Hi Ritesh,

You are probably right but finaly we implemented a badi for our specific requirement.

Thank you.

Regards,

Xavier.

Former Member
0 Kudos

Hi Richard,

we are also facing same problem with coka-buffer error when we are trying to switch gl account.

so may i know which BADI u have used for your reqiurement.

can you please share your badi name or solution for this issue.

thanks in advance.

0 Kudos

Hi Rajesh Pandey,

Our specific requirement was for EBS (eletronic bank statement) integration.

So we used the BADI FEB_BADI to change the cost center.

Regards,

Xavier.