FI Substitutions (Tcode : OBBH)
Hi Experts,
My requirment is to write a Subst routine(OBBH) using call point 3 which
checks for a given range of co codes (BUKRS) and reason codes(BSEG-RSTGR) NOT equal to ' ' (space) at <b>document item level.</b>
But i am unable to create a formula in pre requisite which checks for a range of co codes(BUKRS) and also Reason codes(BSEG-BUKRS as it is throwing an error.
My pre requisite formula should be like :
BKPF-BUKRS >=1000 AND BKPF-BUKRS <= 2000 AND BSEG-RSTGR <> ' '.
when i use the formula builder its not allowing me to write a space for
BSEG-RSTGR <> ' '. It only enables the commentary button
How can i acheive this? Please help.
Thanks
Dany
hi Dan,
in the menu : Settings / Expert mode
than you can type : ' ' and it will work.
On the other hand in 'normal' mode just click on Constants and hit enter in the upcuming pop-up. You won't see anything but if you click on Expert mode (like above) you'll see it is working properly (except the display, which I believe is a strange program error)
hope this helps
ec
Similar Messages
-
Hi Experts,
My reqs are
1. "Substitution user exit will enable to assign the right profit center based on the customer group and sales group in the sales order."
2. Create a Z table to store sales company code and delivering plant company code and replace the sales company code with delivering plant company code.
How can i achieve my reqs., i know i need to use OBBH Tcode and need to implemnt one user exit. bt how to attach that exit point to my substitution and i could not understand the documents flow here how can we change sales order dtls from here.
<removed_by_moderator> .....please do help me.
Tq Phalani M
Edited by: Phalani Kanth Gupta on Aug 26, 2008 5:51 PM
Edited by: Julius Bussche on Aug 26, 2008 3:55 PMHi Dave,
Can this change result is some kind of problem in some SAP standard code somewhere? Any idea?
Please let me know. I will surely reward points. I have done the changes and it seems to work.
Regards,
Binay Agarwal -
Business Area Substitution in OBBH
Hi Experts,
I am trying to substitute business area in accounting document generated during post goods issue in VL01N or VL02N.
Our business requirement is as follows:
Profit center (eg. PRCTR1)is assigned in material master. But while creating sales order another profit center (eg. PRCTR2)has to get picked up through 0KEM (Profit center substitution). System is taking correctly the second profit center (eg. PRCTR2) which we have given in susbtitution.
System is identifying the cost center which is assigned to PRCTR2 through OKB9. Accordingly system is picking business area say 01 from the cost center master record during PGI for accounting document.
But our requirement is to change this business area 01 to 02 through FI substitution.
we have written logic in OBBH as follows:
BKPF-BUKRS = '100' AND BKPF-BLART = 'WL' AND
BSEG-HKONT = '1954' OR BSEG-HKONT = '5751' AND
BSEG-WERKS = '100'
Please adivse the logic anything further to add to replace the business area and also suggest if the substitution does not work in FI area for other application area tcodes like VL01N / VL02N.
Thanks in advance.
VenkatSubstitution to business area is one of taboos SAP clearly dissuades from in OSS notes.
Business area is controlled by below customizings, and any more requirement should not be addressed.
IMG: Enterprise Structure > Assignment > Logistics - General > Assign Business Area to Plant/Valuation Area and Division (OMJ7)
IMG: Enterprise Structure > Assignment > Sales and Distribution > Business Area Account Assignment > Assign Business Area by Sales Area (OVF1, OVF2)
The relationship between cost center and business area is 1 by 1. I guess you need to have separate profit center/cost center for the different business area.
I know it can be done. GB01 right? We did that in the past. To be precise, one guy did that. That guy later realized he messed up the standard functionality F.5E.
Edited by: Masahiko Kouso on Jun 17, 2010 11:18 PM -
How can i create a substitution in OBBH?
Hi.
I want to use a exit with " exits-param = C_EXIT_PARAM_CLASS." in T-code "OBBH' to change the test of doc item.
I create the form and append this form into exits.
But now I find i can't create a step in "complete document".
Message:
You may not substitute any fields for this Event
Message no. GB175
Diagnosis
Although substitutions are permitted for the boolesche class 15 (application area FI, Event 0003), the application did not release any field for substitution.
System response
Processing is terminated. You cannot change any field for this Event (even within a substitution exit). Defining a substitute therefore makes no sense.
But my friend can create the Step in Complete document.
Please help me how can i create it ...Hi,
SAP limits the number of fields that you can use for substitution. If you want to use a field that SAP does not make available for substitution, you have to modify table GB01.
Regards,
Sridevi
<i>* Assign points, if useful</i> -
Gurus,
I wrote a substitution rule for a BA - ZY
if it finds a vendor xxx and plant xx and GLxxxxxx. For some reason the when an invoice is generated, the FI document is posting to BA - AB instead of ZY.
Also, the FI document doesn't have the plant. Is this why it's posting to a different BA? How can I fix this?Hi Sri,
You can activate the trace function (In OBBH>Extras>Activate Trace) for the substitution rule and try posting the the FI document. The trace will take you to the applicable substitution rules, there you can check if the pre-requisite condition is read as true or false.
You can de-activate the trace once you are through with your testing.
Hope this helps.
-Pradeep -
FI Substitution Routine (OBBH) - error in formula
Hello FI Experts,
I am an ABAPer.
My requirement is to write a Subst routine(OBBH) using call point 3 which
checks for a given range of co codes (BUKRS) and reason codes(BSEG-RSTGR) NOT equal to ' ' (space) at <b>document item level.</b>
But i am unable to create a formula in pre requisite which checks for a range of co codes(BUKRS) and also Reason codes(BSEG-BUKRS as it is throwing an error.
My pre requisite formula should be like :
BKPF-BUKRS >=1000 AND BKPF-BUKRS <= 2000 AND BSEG-RSTGR <> ' '.
when i use the formula builder its not allowing me to write a space for
BSEG-RSTGR <> ' '. It only enables the commentary button
How can i acheive this? Please help.
Thanks
DanyDan - If you use call point 2 (at document item level) & not global you will be able to assign and you can write a space for BSEG-RSTGR <> ' '.
It enables the both the commentary & constant buttons.
Bye -
Profit Center Substitution Not getting reflected in FI document duirng MIGO
Hello friends,
I have implemented a substition exit for profit center replacement. The rule has been created with this exit. But when I do a MIGO, i see the FI documents getting created with original profit center, not with the profit center that we have manipulated in the substitution. Even though i see in the debugging mode that the profit center is being replaced within the code, when the accounting document is generated, I see the old profit center only in FB03. There is no other substitution exit that is overwriting the profit center. What else could impact this / any inputs would be of great help.
Thanks,
MayankAre you using Accounting document substitution (Tcode OBBH)? Try using Controlling substitution (Tcode OKC9), this will substitute the coding block (COBL) of accounting doc where profit center (COBL-PRCTR) is found.
-
Copy Trading Partner to Asset line items from Vendor line items in F-90
Dear Friends,
I want to copy trading partner field from Vendor line item to other line items like Asset and Tax in T.code - F-90
Client want to use Transaction type - 100
Is it feasible?
Thanks in advancetry:
1) substitution - tcode OBBH
or
2) open FI - menu FIBF tcode BF44
- event 1120 or 1130
A. -
Hi All,
Got struck with a issue. please help me out in this. I need to check the duplication of invoice when i post a document in F-42. It also a country specific as well. so can anyone pls suggest me which method i can use and how to use it. I appericiate if u can guide me with some sample codes.
Thanks
SathishDear Sathish Kumar
you have two way to do for this requirement .
First : IMG : Validation in Accounting Documents (T Code : OB28) or substitution ( Tcode : OBBH )
I will explain about substitution.
in the configuration , you can create substiution for your company code after that
you will see sub tree
- Document header
- Line item
- Complete Document
That are a trigger , for example if you create substitution in Document header , system will check when you entry data in Document header or If you create substituion in Line item , system will check after you entry data in line item.
If your requirement is checking duplicate invoice , you have a condition which identify that the new invoice is duplicate .
For example the differenet document should be the different reference.
and the doc date should be different too.
in substitution you can use exit .
Coding like this
select XBLNR into v_XBLNR from bsis where bukrs = 'CXXX' and budat = '20070805'
if v_xblnr = bseg-xblnr.
......" Do anything that you would like
endif.
Regards
Wiboon -
Substitution(OBBH) for the Local Exchange Rate
Hi Experts,
I have a problem with the Substitution in OBBH Transaction.
I have created a substitution for the BKPF-KURSF for substituting the Local Exchange rate.
When i debugged the Exit the new exchange rate is copied to the BKPF-KURSF field but before creating
the document it is getting overwritten.
The same Substitution is working in another system where the version is 4.7 but it is not working in ECC.
I would really appreciate if anyone can help me in solving this issue.
Thanks in advance,
Regards,
Chakradhar.Hello Rob,
I have checked the note but i could not get any solution in that.
It seems the Substitution is working because when i checked in debugging,
the value is getting changed but after coming out of the substitution there is a standard code where the
value is getting over written.
The same code is working fine in 4.7 version.
Could you please let me know if we need to do anything else other than creating the substitution for
ECC version.
Thanks in advance,
Regards,
Chakradhar. -
Adding BSEG-ZTERM as substitution field in OBBH
Hello,
I have seen in note 842318 how to make a standard field usable in substitution transaction (OBBH).
Do you know if changing the setting for BSEG-ZTERM can lead to inconcistencies? Have you done that already ?
Best Regards, ManuelHi
What field you want exatly.
you can use assignment(BSEG-ZUONR) field for updating the substution purpuse
Regards,
Kishore K -
Hi,
I create substitution using exit by copy RGGBS000 to ZRGGBS000 and activated it in tcode OBBH. When I test using Tcode F-02, saves as complated, it is work.
My questions:
1. When I changes my parked document, why my substitution does not work ?
2. When I create document using Tcode F-65 and save as complate, why my substitution does not work ?
Thanks,HI,
Note 158739 describes in detail the standard program behaviour. It's not a bug! It's the designed system behaviour.
The requirement can be fulfilled by a substitution when the document is posted. Or you can work with the ENJOY transactions, which enable substitutions when a document is saved as complete or posted. In case of just parking the substitutions don't work in ENJOY either.
Regards
Ravinagh Boni -
FA segment derivation from business area substitution not working for AFABN
Hello Gurus,
I have a FA substitution of Field 'segment' is substituted by Field BSEG-GSBER.
But its not picking the Business area as Segment for the 'AFABN' postings.
Thanks for your early reply.
Thanks and regards.
GopaHi, AFABF it's depriciation?
Try do it with tcode obbh.
And if you have some problems with substitution simulate it for inspection -
Substitution for change of document header
Hi
I have created a substitution for the change of document header for a company code. I have made it in GGB1 and activated it in the Tcode OBBH.
However it does not allow me to post the document (Tcode FB01) - I get the syntex error in program 'GBTLEFI0' in include 'GBTLEFIB' in line '1593' - 'The FORM "SUBCON_3ZDEPIND047" does not exist. and the processing is terminated.
Please provide the solution
Thanks
NeerajHi
For changing the documents we can use LSMW instead of substitutions.
Thanks
Sandesh -
Adding a new Substitutable Field in OBBH - BKPF Table
Hi All,
I need to modify the content of the field BKPF-WWERT and BKPF-KURSF in Tcode OBBH using substitution logic.
I have even used user exit options to do so but my changes are reversed the moment once the user exit is over.
I know for a fact the fields which can be modifed are maintained in the table GB01.
Is there any way we can modify the table in Standard way using some Tcode?
Please help me out. This is very urgent.
Regards,
Binay AgarwalHi Dave,
Can this change result is some kind of problem in some SAP standard code somewhere? Any idea?
Please let me know. I will surely reward points. I have done the changes and it seems to work.
Regards,
Binay Agarwal
Maybe you are looking for
-
Looking for calendar app that can sync multiple calendar colours in outlook
I Have multiple colour categories in my calendar but need a calendar app that can sync with outlook. Do NOT want to sync with google calendar. Any suggestions? Thanks
-
Form Reset When Radio Button Clicked.
I have two radio buttons. One is checked and form elements are visible The second, when clicks, makes all but one form element uneditable When the Second is clicked, I need the form elements to be reset. Any Ideas?
-
i get this error whenever i open pages created in CS4. ive tried deleting the cache file... deleting the entire configuration folder and letting DW re build it.. nothing... error still there. how can i turn it off? i also cant seem to find the "edit
-
Having problem getting my E-mail,tried everything connection is good??
By the way I'm a new user of this computer,please be nice to me
-
I have to Computer Desktop and laptop. Both computer and I-Pod have different I-Tunes library. How can I get the music off one I Pod on to the other computer without deleting the music of the I-pod? I didn't save the CD to my computer hard drive.