Skip to Content
author's profile photo Former Member
Former Member

Validation

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 10:48 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 17, 2007 at 06:41 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.