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

validation issue

Dear SAP Gurus.

I am facing a problem while i have assigned a validation at CO line item level through T Code - GGB0

Scenario is as such, that a user of one plant should not be authorized to post a transaction with a cost centre of other plant .

The first 4 characters of my plant code ,cost centre,profit centre and user id are the same .

Eg:

Plant Code - 1101

Cost Centre Code -11012345

Profit Centre - 1101

Userid-1101ABCD

I have created a validation on user id and profit centre which is working fine on any t- code where manual assignment of cost centre and profit centre is required however when user is using t code MB1B for stock transfer within plant, errors are genarating which is not allowing user of same plant to post in the same plant. (which should not be the case as user of a plant should be able to post in his plant itself).

Please see below my validations and see if any modifications needs to be done .

Prerequisite


COBK-USNAM :1-4: = '1101' OR COBK-USNAM :1-4: = '1102'

OR

COBK-USNAM :1-4: = '1103' OR COBK-USNAM :1-4: = '1104'

OR

COBK-USNAM :1-4: = '1201'

Check

COBL-PRCTR :7-10: = SYST-UNAME :1-4:


Message was edited by: Eli Klovski

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on May 30, 2013 at 04:59 PM

    Hi

    I just test your scenario in my sistem.

    I did Stock Transfer for Plant 1000 to plant 1200. I force AUM post in FI with Cost Center Assignment (im not agree with this behavior but i guess this is what you want)

    In the debug of the validation, COBL-PRCTR is Blank. Also, the field COBL-KOSTL. I guess this is because Stock transfers are not intended to post to Cost Centers.

    I try do the same validation in FI Validation with BSEG table and all the fields are filled, but the validation is trigger for each line in the FI document, so you have to to validate de OBYC operacion

    BSEG -KTOSL = AUM (or whatever you triger in your post)

    Wish this help you.

    Arturo.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Mayank.

      LOL, you are right, in your scenario is not needed, letme explain what i have in my mind when i originally post.

      When you post stock transfer, the system post in FI

      BSX origin

      BSX destiny

      AUM Price Difference

      BSX "never" have CO post, so if you work with COBK/CKBL the validation must not be trigger.

      AUM generally dont trigger CO post, but if you set the AUM account relevant to Cost Center, the validation is trigered, and with this I could test your scenario and found COBL-PRCTR is blank in the debug.

      If you set the validation in FI, it triggers for every line in BSEG, also for the BSX line, so there is no need to validate if there is "CO Relevant" line.

      Wish this clarify my thought, and by the way thank you to letme learn something new!!

      Arturo!

  • Posted on May 30, 2013 at 08:11 AM

    Hi,

    Did you try to set a trace on your validation and execute MB1B? In this way, you'll see what conditions are not fulfilled.


    Regards,


    Eli

    Add a comment
    10|10000 characters needed characters exceeded

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

    I am not clear about your requirement.........

    "Scenario is as such, that a user of one plant should not be authorized to post a transaction with a cost centre of other plant"

    You can created a simple validation rule.........

    eg

    Prerequisite

    Plant = '0001' and Cost Center = "11012345"

    

    Check

    

    Username = ' ' or ' '

    

    hope you get it.........if still issue persits then please explain ur requirement in details......

    

    br,

    Rupesh

    

    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.