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

GL account restriction for certain cost center.

Hi,

while doing posting in FI, we want to restrict certain cost center against certain GL account.

For eg: if i am doing posting using GL code 4165 , cost center- XXXXX should not be allowed. If doing so error msg shld. be thrown.

Please help...

Regards

Durga

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

8 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 05, 2013 at 10:27 AM

    Hi Durga,

    Please write a Validation Rule with Error Message to achieve the same.

    T.Code: GGB0

    Regards,

    Jaymin R. Bhatt

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 05, 2013 at 10:30 AM

    Hi Durga,

    You can use validation if the purpose is to show error messages.

    Basically validation allows you to define your own individual checks for specific fields when a business transaction is being processed and it consists of three parts:

    • Prerequisite (in your case the G/L accounts and Cost Center combination)

    • Check

    • Message

    If the prerequisite is met (if it is TRUE), a check is performed

    If the check statement is FALSE, the system returns a message.

    For details on validation please have a go at http://scn.sap.com/docs/DOC-16484

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 05, 2013 at 10:54 AM

    Create a set and write validation.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 05, 2013 at 11:08 AM

    Thank you

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 05, 2013 at 11:08 AM

    This message was moderated.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 08, 2013 at 03:21 AM

    Hi,

    Thank you all for your reply.

    In my case i have around 50 cost center, which is to be restricted against 10 GL code.

    Is validation possible, in this scenerio.

    Regards,

    Durga

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 10, 2013 at 07:16 AM

    Hi

    You need to write validation as below.

    Prerequisite

    BSEG-SAKNR = '4165'

    Check

    BSEG-KOSTL <> 'XXXXX'

    Message

    E

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 24, 2013 at 10:59 PM

    Hello Durga,

    First of all, you should specify/create the message class (Transaction SE91) and the message number within the message class you want to appear if the condition is satisfied. For example:

    Message class: zpj1

    Message type: E

    Message number: 001

    Message text: You are not allowed to post g/l account '4165' to cost center 'XXXXX'

    After that you should create a validation (transaction: GGB0) in Financial Accounting for the Line Item with the following step structure:

    Prerequisites: SYST-UNAME = 'XXXXXX'

    Check: BSEG-HKONT = '4165' AND BSEG-KOSTL = 'XXXXX'

    Message Variables: BSEG-KOSTL

    Message Type: E

    Message Number 001

    In the last step you have to activate the created validation (Transaction OB28) by entering the following parameters:

    CoCd: CallPnt: Validation: Activntn level:

    XXX 2 zpj1 1

    I am of the opinion that this validation should solve your problem.

    Best regards,

    Vojislav Marjanović

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello Durga,

      I apologize, I have made an error in my last reply. The step structure should have been as follows:

      Prerequisites: SYST-UNAME = 'XXXXXX' AND BSEG-HKONT = '4165'

      Check: BSEG-KOSTL <> 'XXXXX'

      Message Variables: BSEG-KOSTL

      Message Type: E

      Message Number 001

      In the last step you have to activate the created validation (Transaction OB28) by entering the following parameters:

      CoCd: CallPnt: Validation: Activntn level:

      XXX 2 zpj1 1

      Best regards,

      Vojislav Marjanović

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.