cancel
Showing results for 
Search instead for 
Did you mean: 

How to restrict using of blocked cost centers in characterestic fields?

Former Member
0 Kudos

How we can restrict using of blocked cost centers in characteristic fields in CO-PA?

Accepted Solutions (0)

Answers (1)

Answers (1)

waman_shirwaicar
Active Contributor
0 Kudos

Hi,

Your requirement is not clear. If you do not want to update the PA segment with a particular cost center then in KEDR you have a 'CLEAR' option or you could use exit COPA0001

regards

Waman

Former Member
0 Kudos

Sometimes key users make a mistake. They define blocked cost center in characteristic field in CO PA. And system doesn't give any messages like you are using blocked cost center. You can't do it.

Finally, data are represented in reports in a wrong way.

ajaycwa1981
Active Contributor
0 Kudos

Hi

I would personally prefer the CLEAR option, because that could serve the purpose.... You can specify a condition in the CONDITIONS tab that the derivation step should work, if KOSTL = XXXXXXX

The user will be allowed to enter the Wrong Cost center, however... before posting, it will be erased

br, Ajay M

Former Member
0 Kudos

Hi Ajay,

Thank you for response.

But how exactly could I define this Clear option?

I have defined in conditions in KEDR blocked cost centers. But I don't know how to make generating of error or erasing of this posting data, if user choose this blocked cost center.

best regards,

Kamila.

Former Member
0 Kudos

Hi

When you create step F5 in KEDR, you should select clear and then proceed with conditions and fields, if you want to have that clear function. However, you should maintain cost centers whenever they are blocked in KEDR. If you think this shouldn't be an issue, then you can go ahead with that solution.

If I were you, I'd try substitution rule.

brgds

Abdulla

ajaycwa1981
Active Contributor
0 Kudos

Hi

When you create a Derivation Step in KEDR - Choose CLEAR

Specify the Target Field as COPA-KOSTL

In the CONDITIONS tab - Specify the Condition as KOSTL = XXXXX

br, Ajay M

Former Member
0 Kudos

Clear option works really good. All posted amounts are not reflected in ke24.

But the task is to generate error message when key user chooses blocked cost center to make him to define other cost center.

How can be it done?

Best regards,

Kamila.

ajaycwa1981
Active Contributor
0 Kudos

Hi

Create a validation in OKC7 and use the exits available in the screen to control this... You can use FM RKE_GET_CHARS_FOR_PAOBJNR to read the Chars entered and if it contains the Cost center - Then it should give you an error message

You can also explore the exit COPA0002 or COPA0005

br, Ajay M

Former Member
0 Kudos

Ajay, could you specify,please, what do you mean by FM RKE_GET_CHARS_FOR_PAOBJNR?

Where exactly I could use it?

Best regards,

Kamila.

ajaycwa1981
Active Contributor
0 Kudos

Hi

I meant Function Module (FM)....

You can use this Func module with in the Validation Exit RGGBR000 to read the chars specified in the Prof segment window....

If this FM returns the the desired cost centers, issue an error message

This exit needs to be copied to ZGGBR000 and assign it in GCX2

Br, Ajay M

Former Member
0 Kudos

Hi Ajay,

We have created a validation in user exit COPA0005.

Everything has worked exactly the way we wanted.

Thank you very much.

Regards,

Kamila.