cancel
Showing results for 
Search instead for 
Did you mean: 

Substitution through GGB1 not working

Former Member
0 Kudos

Hi SAP Gurus,

I wrote a substitution through GGB1 under 'Application Area' Financial accouting 'Section' Line item.

Basic requirement is to avoid posting to a particular profit center for the given company code

Prerequisite: If Company code= 5000 and Profit center= CHEM1

Substitute Profit Center= LIQ1

Pasting the exact GGB1 lines:

BSEG-ANFBU = '5000' AND BSEG-PRCTR = 'CHEM1'

Substitute Profit Center= 'LIQ1'

Substitution green light is on,showing no error in syntax.But when I tried to post document in this company code through FB50, system didn't substitute the required profit center (LIQ1).

Any clue why substitution didnt work out? Please help!

thanks

Nellikka

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

Try the below one, it will work

BKPF-BUKRS = '5000' AND BSEG-PRCTR = 'CHEM1'

Substitute Profit Center= 'LIQ1'

Rgds

sunfico

ravi_nagh
Active Contributor
0 Kudos

HI,

I just created a substituion in my test system as follows its working fine as per your requirement.

OBBH at line item level. Please check whether you have activated the substituion or not?

BSEG-BUKRS = '1000' AND BSEG-PRCTR = '600' AND

Substitute Profit Center 1000.

Please asign points if it useful

Regards

Ravinagh Boni

Former Member
0 Kudos

This may sound quite obvious but instead f using a sunstitution, why not just deactivate the company code in that profit center via KE52 -> Company Codes tab.

Former Member
0 Kudos

Krishna,

Try looking in the document you posted, if the field BSEG-ANFBU = '5000'. I belive this will not be the case.

I belive that what you are trying to do is substitute the profit center if the company code of the heather is '5000'. This field is BKPF-BUKRS. You should create a substitution at "Complete document" level.

To test your substitutions, you can go in the menu Substitution -> Simulate.

Also, you can activate the trace. Go to menu Extras -> Activate total trace. Then execute again transaction FB50, and check the log.

Regards,

Mauricio