Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Substitution rule for Business area in Accounting

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

Former Member
Former Member replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question