on 05-30-2013 8:45 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.