cancel
Showing results for 
Search instead for 
Did you mean: 

Update fields of CI_COBL

0 Kudos
1,522

Dear all,

We are in S4H.
Customer fields have been insert into customer include CI_COBL.

For unknown reason an enhancement has been used in function module K_COEP_SUBSTITUTION in order to update fieds in CI_COBL. I was afraid seing this instead of using EXIT_SAPLKACB_002.

Coding does not work in all case so I decide to use EXIT_SAPLKACB_002 with the same logic than enhancement in order to do things properly.

When I use debug in user exit: everything is right but when we see CO posting customer fields are wrong.

We have 2 lines in the CO Document and 4 customer fields per line (F1 / F2 / F3 / F4).

Line 1 - Cost center

Line 2 - WBS Element

  1. With Customer Exit EXIT_SAPLKACB_002

With user-exit EXIT_SAPLKACB_002, customer fields are correctly updated in debug:

Line 1 : F1 with value V1 / F2 with value V2

Line 2 : F1 with value V3 / F2 with value V4

So we can hope that CO document will have the same values but not!

In CO Document we have:

Line 1 : F1 with value V3 / F2 with value V4

Line 2 : F1 with value V3 / F2 with value V4

Moreover we have F3 and F4 which have been cleared (they have values V5 and V6 in customer exit (debug)).

It seems that the system takes only the last line in reference to create CO Document and FI Document...

  1. Without customer exit and with enhancement in K_COEP_SUBSTITUTION

Line 1 : F1 with value V1 / F2 with value V2

Line 2 : F1 with value V3 / F2 with value V4

In CO Document we have:

Line 1 : F1 with value V1 / F2 with value V2

Line 2 : F1 with value V3 / F2 with value V4

Fields F3 and F4 are correct and not empty.

This works but not in all cases.

1. Why using Customer include EXIT_SAPLKACB_002 everything is wrong?

2. What is the solution in order to put values in customer fields CI_COBL?

Thanks for your help.

David

FredericGirod
Active Contributor
0 Kudos

Ola

what is the transaction used when you would like to update your specific fields ?

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hello Frederic,

We use several transactions:

  • KB15N,
  • KB21N,
  • CATA (HR transaction in order to create controlling document from time sheet),
  • ..

David

FredericGirod
Active Contributor
0 Kudos

On trouve beaucoup de user-exit permétant de modifier les zones CI_COBL, mais dans cette doc, ils ont l'air d'utiliser les derivations/substitutions.

https://blogs.sap.com/2014/01/13/adding-customer-fields-in-fi-new-gl-functionality/

Pour comprendre ce qu'il se passe dans ton cas, il faudrait debugger