cancel
Showing results for 
Search instead for 
Did you mean: 

Validation in ECC6.0

former_member210146
Participant
0 Kudos

Hi there,

We are on SAP ECC6.0 and facing problem in setting the Validation.

The Validation is activated for Co Code in SPRO.

Requirement:

1. There are over 20 Company Codes.

2. Users of X Co Code should NOT be allowed to Post an Accounting Line Item on Y Co Code's Cost Center

Validation:

1. Pre-Requisite

BKPF-SNAME IN XUSERS - This is the Set Name with User IDs of X Company Code

2. Check

BSEG-KOSTL NOT IN XCC - This is the Set Name with Cost Center of X Copany Code

This is giving me Syntax Error

BSEG-KOSTL IN XCC - This is the Set Name with Cost Center of X Copany Code

BSEG-KOSTL = 'Y*' - This is the Set Name with Cost Center of X Copany Code

This is not giving syntax error but it is not working while doc posting

3. Message

Error

Can you please let me know where am I going wrong?

Thanks

Rob

Accepted Solutions (1)

Accepted Solutions (1)

iklovski
Active Contributor
0 Kudos

Hi,

It's much easier to make this validation in CO (OKC7). Set your prerequisites and validate whether CSKSV-BUKRS is not company Y.

Regards,

Eli

former_member210146
Participant
0 Kudos

Hi there,

I have done the Validations at Line Item level as under:

Pre-req:

BKPF-BUKRS = 'ABCD'

AND SYST-TCODE <> ''

Check:

BSEG-KOSTL >= '100'

AND

BSEG-KOSTL <= '199'

Message:

Error Message if any other Cost Center other than 100 TO 199 is tried to be posted for Company Code ABCD.

This validation is working fine in case of postings to GL Accounts. However, for any Balance Sheet account I get an ERROR even if the Cost Center for P&L hits say for ex 105.

Please help.

Thanks

Rob

iklovski
Active Contributor
0 Kudos

No cost centres should be entered in the transactions with balance sheet account (only in special cases; assets, down payments); so no validation on cost centres is relevant here.

former_member210146
Participant
0 Kudos

Thanks for your reply.

Seems I did not explained my Question properly.

The transaction is a Vendor Posting thru FB60

Debit Stationery (a P&L Item) - Hit Cost Center '105' which is allowed for Postings on ABCD Co Code

Credit Vendor (a BS Item) - No Cost Centers hit

We are live on ECC6.0 with Doc Splitting. So ideally the system should - Find the Profit Center linked to Cost Center of 1st line item and should simply Post the Profit Center on BS item.

But it gives me error AS IF 100-199 Cost Centers were NOT used at all.

Please Help.

Many Thanks...

Rob

iklovski
Active Contributor
0 Kudos

Well, they are indeed not used at all on the line item of the vendor.

former_member210146
Participant
0 Kudos

Well thats what is surprising me Eli.

Even though I am not hitting the CC for the line item of Vendor, still I get this message from the system.

The problem is only with transactions where One Line Item is hitting BS (the other one for PL is correctly hitting the CC).

Please help,

Many Thanks...

iklovski
Active Contributor
0 Kudos

Try writing user-exit for this validation or set the prerequisites for G/L as well (only for P&L).

former_member210146
Participant
0 Kudos

Thanks for your reply Eli.

I already tried (and now re-tried) setting the GLs in Pre Requisites. I dont know what happens, that the system completely ignores the Validation.

That is I was able to post even though the Cost Centers were other than those given in CHECK.

Any other thoughts...

Your help is much appreciated.

iklovski
Active Contributor
0 Kudos

Which field did you use for G/L? Use HKONT and not SAKNR.

former_member210146
Participant
0 Kudos

It worked. Many thanks for all your help.

Answers (0)