cancel
Showing results for 
Search instead for 
Did you mean: 

validation issue

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

ArturoSenosain
Advisor
Advisor
0 Kudos

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.

Former Member
0 Kudos

Hi Arturo,

Thnks a lot for the quick response . I had assigned a new validation in FI and for MB1B it is working fine , however I couldn,t understand your OBYC validation point . Can please through some light on it .

Regards

Mayank

ArturoSenosain
Advisor
Advisor
0 Kudos

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!

Answers (2)

Answers (2)

Former Member
0 Kudos

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

iklovski
Active Contributor
0 Kudos

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