on 11-16-2007 8:54 PM
Hi Experts,
I want to create a validation rule for accounting document. The logic is " for particular set of accounts if the Profit center entered is ' XXXXXX ' then system should not allow the document to be posted and display ahe error message that check the profit center.
Can any one tell me how to cinfigure the rule
Condition?
Check?
Message?
Pls. help me out.
Thanks in advance
JS
Hi,
I would like to add to the comments made by Sai.
As per my understanding of your requirement, check will be as follows:
CKECK:
BSEG-PRCTR = ' '
It means if the GL account is as mentioned and if there is some value in profit center field, then show the error message. In other words, a value cannot be entered in the profit center field for the mentioned accounts.
Assign points if useful
Regards,
Mayank
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi JS,
For default Profit center for particular set of accounts u can set the define the default profit center through T.code 3KEI or if u want to write the validation as follows.
Prerequisite:
if your gl accounts are continious series
BSEG-HKONT >= XXXXXX AND BSEG-HKONT <= XXXXXX
if your gl accounts are not continious series
BSEG-HKONT = XXXXXX AND BSEG-HKONT = XXXXXX
CKECK:
BSEG-PRCTR = YOUR PROFIT CENTER
MESSAGE:
put the message type E for Error message .
u can create your own message class through se91
please assign points if its useful
regards
sai krishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sai,
Thanks for your answer but i dont want to set a Profit center as default profit center. My requirement is that if the account no in particular line is from the account set maintained and if that line is assigned with particular Profit center then system "should not" accept the entry.
js
User | Count |
---|---|
100 | |
11 | |
10 | |
6 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.