cancel
Showing results for 
Search instead for 
Did you mean: 

FI Subsitution check

Former Member
0 Kudos

Hi

I am working on FI Subsitution.

In Prerequiste i am checking cocode and account code.

BKPF-BUKRS = 'XXX' and BSEG-HKONT = 'XXXXXXXXXX'.

In subsitution

I have set profit center

BSEG-KOSTL = 130000 as substitution value as constant.

In tr-cd Fb01, when i give above Account number with Company code

the profit center field is empty in next screen.

What could be the reason. Pls guide

Also pls confirm when the subsitution check will be fired?

eiher after all item entry or just the before field entry or after save button click?

Regards

Chandra

Edited by: princeck on Sep 15, 2011 4:23 AM

Accepted Solutions (1)

Accepted Solutions (1)

SuhaSaha
Advisor
Advisor
0 Kudos

Hello Chandra,

Did you maintain the substitution (along with Call-up point) in OBBH(t-code)?

BR,

Suhas

Former Member
0 Kudos

Hi

i have set the same in OBBH tr-cd

And also in my substitution i have field KOSTL open for selected.

So i selected it.

To test, i have defined with constants and Exits UXX.

In using constants, i am not getting value displayed in screen, but in EXIT i am able to debug and go inside

but later the value is not displayed after the debugging is finished.

I have many steps defined in my Substition,, looks like after my step definition its going to next step for check and KOSTL values becomes empty..

Not sure how to stop this.

Regrds

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Chandra,

KOSTL is for Cost Center. For Profit Center, you need to use BSEG-PRCTR while defining STEP for your substitution at Line Item level. The Substitution will be triggered just before the field entry.

Substitution is possible for fields that are listed as SUBSTITUTABLE fields while creating STEP.

Former Member
0 Kudos

Hi leena

Thanksfor your reply.

Yes i agree its cost center not profit center and also the triggering place.

but why the field is not substituted with values?

How to debug it.

Regards

Chandra

Former Member
0 Kudos

Which Callup Point You are using? KOSTL is not even in the list of substitutable fields...

As mentioned earlier, Substitution is possible only for fields listed as Substitution fields

Anyways, you can switch the trace ON to analyze Substitutions by following mentioned steps:

1. Display the validation/substitution/rule that you want to trace.

2. Choose Extras -> Switch on trace.

3. In a separate session, call the posting transaction that you want to trace.

When the validation/substitution/rule is called, the system displays the result of the validation/substitution/rule that is used within the posting transaction.

4. To turn off the tracing function, choose Extras -> Switch off total trace.

For more details: check this out:[Link|http://help.sap.com/saphelp_46c/helpdata/en/5b/d2343643c611d182b30000e829fbfe/content.htm]

Edited by: Leena.Patil on Sep 15, 2011 6:23 AM

Former Member
0 Kudos

Hi

I am using Call point 2 item level.

In Rule, i set below condition and click expert trace- set breakpoint on

BKPF-BUKRS = 'AD01'.

Added substitution field BSEG-KOSTL

cost center as constant value 13000.

In FB01, i entered date type, company code AD01

and posting key and account, went to next page

i could not see value in Cost center field.

Break point does not stop here...now what to do

regards

CHandra

Former Member
0 Kudos

After Creating a Substitution, Click on 'STEP' . It will display list of Substitutable fields. As KOSTL is not in list, select 1st entry of list 'Only Exit.

In 'Substitutions (is Prerequisite is met)' subscreen: double click on 'Only Exit' and follow steps as mentioned in below link:

[SUbstitution using Exit|http://wiki.sdn.sap.com/wiki/display/ABAP/SubstitutionRule(UserExit)inFI-FB60forPartnerBankType]

I've not tried sustituting field that is not in substitution field list, but this option can be tried once.

Hope it solves your problem!

Edited by: Leena.Patil on Sep 15, 2011 10:45 AM

Varamanoj
Participant
0 Kudos

Hi,

Please make sure that the field you want to substitue is in the substitutable fields, and also make sure that you have executed the program RGUGBR00, which will activate the function pools. this step is mandatory step so try to execute this step for validation/substituion.

Best Regards

Manoj