on 07-04-2015 3:08 PM
Hello Experts,
We have mutiple plant for single company code.
e.g.
Comp. code :1111
plants code : 1100
plants code : 1200
plants code : 1300
plants code : 1400
plants code : 1500
plants code : 1600
plants code : 1700
Business area:
plants code : 1100 = Z100
plants code : 1200= Z200
plants code : 1300= Z300
plants code : 1400= Z400
plants code : 1500= Z500
plants code : 1600= Z600
plants code : 1700= Z700
we have written substitute rule in GGB1 Financial accounting - Line ites as follows
Step1:
Company Code = '1111' AND Plant = '1100' AND
Transaction code = 'MIGO' OR Transaction code = 'J1IEX' OR
Transaction Code = 'MIRO' OR Transaction Code = 'ZMIRO' OR
Transaction Code = 'MR8M' OR Transaction Code = 'FB08'
then Bussiness area as constant valuse = Z100
Step2:
Company Code = '1111' AND Plant = '1200' AND
Transaction code = 'MIGO' OR Transaction code = 'J1IEX' OR
Transaction Code = 'MIRO' OR Transaction Code = 'ZMIRO' OR
Transaction Code = 'MR8M' OR Transaction Code = 'FB08'
then Bussiness area as constant valuse = Z200
Step3:
Company Code = '1111' AND Plant = '1300' AND
Transaction code = 'MIGO' OR Transaction code = 'J1IEX' OR
Transaction Code = 'MIRO' OR Transaction Code = 'ZMIRO' OR
Transaction Code = 'MR8M' OR Transaction Code = 'FB08'
then Bussiness area as constant valuse = Z300
for all plants upto plant 1700
When we are trying to post MIRO for plant 1100 business area is coming of plant 1700. i.e. Z700 as by default.
Please help how we can achieve it
Bussiness should be Z100 for plant 1100.
Bussiness should be Z200 for plant 1200.
Bussiness should be Z300 for plant 1300.
Bussiness should be Z400 for plant 1400.
Bussiness should be Z500 for plant 1500.
Bussiness should be Z600 for plant 1600.
Bussiness should be Z700 for plant 1700.
Best regards,
Appasaheb
Hi,
Which line item it is picking wrong BA in MIRO?
Regards,
Mukthar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If you want to update BA for VAT GL. For that you need to configure business place. After configure it then create a substitution for business area based on this business place. After done this, when you maintain the business place in MIRO header then system will automatically update the business place & business area in the VAT GL. There is a one more advantage using this business place, you can check the details based on business place in the report S_ALR_87012357. For configuration of business place, go through the below link:
Activation of Business Place - Local Taxation - SAP Library
How to determine business place for FI document | SCN
Regards,
Mukthar
Well, I cannot add much... You can, of course, remove the brackets, but that makes your rule useless, as following the logic it will be always triggered when you launch MIRO. And, through trace, you should be able to see why the rule is not triggered, when you put the brackets. Most probably, your BUPLA is empty, but could be something else.
Hi,
I have achieved by using below logic.
( BKPF-TCODE = 'MIRO' OR BKPF-TCODE = 'ZMIRO' OR
BKPF-TCODE = 'MR8M' OR
BKPF-TCODE = 'VF01' OR BKPF-TCODE = 'VF02' ) AND
BSEG-BUPLA = 'S201'
Default:
Business Area Constant value Z201
Substitute Name ZSMA was already created in system (for MIGO and J1IEX) and there were existing 9 Steps and now i have created 7 more steps for
( BKPF-TCODE = 'MIRO' OR BKPF-TCODE = 'ZMIRO' OR
BKPF-TCODE = 'MR8M' OR
BKPF-TCODE = 'VF01' OR BKPF-TCODE = 'VF02' ) AND
BSEG-BUPLA = 'S201'
Default:
Business Area Constant value Z201
its working Fine in development system as per our requirement.
now we have transported in Production system.
but in production system it is not working.
what will be the possibilities??
Regards,
Appasaheb
Hi,
Yes,
business place configuration is transported in Production system.
1. Business place configuration and assignment to the co.code was in seperate TR.
2. GGB1 substitute was in seperate TR.
first TR Imported: GGB1 substitute was in seperate TR. Import
Second TR Imported: Business place configuration and assignment to the co.code was in seperate TR.
Assignment to the co.code in OBBH. is available in Production.
Regards,
Appasaheb
Hi Appasaheb,
For MM/SD transactions you do not need to define any substitution. You have to assign for each plant to its respective business area in OMJ7.
Regards,
Mukthar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Usually the tax account will not get BA if you check the document in entry view, if you check in GL view then it will show the BA. However, if you want BA for tax GLs in entry view, then you have to create business place for each plant and assign this business place to plant. After that define substitution for business area based on business place. So when you input business place in the MIRO for the vendor, then system will default the business area based on this to VAT GL.
Regards,
Mukthar
Hi Appasaheb,
Since you have multiple plants and business areas to be substituted, i would suggest user exit. Please check with ABAPer they will help you in developing User Exit with your logic.
Regards,
Prasad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The system may be picking up the success value of last substitution step with result Z700 due to precedence of logical operator AND than OR. Put the transaction code values in a set and use this set in validation.
Example: Company code ='1100' AND Plant = '1100' AND Transaction code in 'SET NAME'.
then business area = 'Z100'
hope this works,
Cheers,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
This statement should be put in brackets, like this:
AND (Transaction code = 'MIGO' OR Transaction code = 'J1IEX' OR
Transaction Code = 'MIRO' OR Transaction Code = 'ZMIRO' OR
Transaction Code = 'MR8M' OR Transaction Code = 'FB08')
Otherwise, by Boolean rule any of these transactions trigger the substitution.
Regards,
Eli
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.