PCA substitution exit
Hi Experts,
I have a requirement to substitute the profit center in a sales order and sales contract based on different criteria( information in VBAK, VBAP, VBKD and VBPA) .
To realize this, I have created a substitution rule at app area PC and call up point 1(Create sales order) and called an exit that is created in a form pool ZRGGBS000, added my exit in GET_EXIT_TITLES.
My user exit is getting called, but COBL is not filled with the data that I need to make the decision in the exit. The criteria for the substituted profit center are firlds in VBAK, VBAP, VKBD and VBPA.
Any idea on how to access these fields in the substitution exit? or any other way to acheive this substitution?
Please be assured that helpful answers will be awarded points.
Thanks in advance.
Regards,
Naresh
Hi,
See the documents below,
1. User Exits in SAP BW (ppt)
https://websmp104.sap-ag.de/~sapidb/011000358700005475091999
2. User Exits Examples (doc)
https://websmp104.sap-ag.de/~sapidb/011000358700005475101999
in addition to answer in your other posting, take a look
Enhancement
User exit
and download pdf 'enhancements in sap bw'
here you can find the steps ...
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/59069d90-0201-0010-fd81-d5e11994d8b5
some weblog on enhancement
/people/sap.user72/blog/2005/02/14/logistic-cockpit--when-you-need-more--first-option-enhance-it
http://www.ko-india.com/content/weblogs/weblog_custom_fields_1.pdf
(= /people/ajay.das/blog/2005/03/28/custom-fields-and-bw-extractors-making-a-mixed-marriage-work-part-1-1
/people/ajay.das/blog/2005/03/28/custom-fields-in-standard-extractors--making-a-mixed-marriage-work--part-12 )
<b>reward points</b>
Regards
Similar Messages
-
we are using SAP 4.6C, when we do MIRO or FB60, tax line item is generated without profit center being posted, for each vendor invoice, we want profit center for tax line item copyed from vendor line item profit center instead of default the profit center.
in PCA subsitution, I find it is not possible by copying vendor line item profit center to tax line item, is there other ways to populate profit center for tax line item? or correct coding of PCA substitution, anyone can share the experienceHi Jolin
For a similar requirement from Indian clients, SAP had released a note 1576560
It might be still in Pilot phase now and you may need check with SAP OSS if you are allowed to implement it
Br. Ajay M -
Hi,
I have written code for substitution exit by using enhancement spot in RGGBS000 i need to update BKPF-BKTXT and BSEG-SGTXT.it is updating also but as i debug further it resets to old values please guide further...You didn't undertsand the post.
Agreed that BKPF-KUTY2 is not an put parameter.
How ever what I am suggesting is that,
1) Create a document type ZZ with Default exchngae rate as "What ever u want" and Save,
Now your problme is that the document type is at higher level than compnay code it is accessible across the company codes and also you want to restrict the currency also.
FOr this I suggested you to create a vlaidation.
Go to OB58
Create the validation at the header level and assign this to the compnay copde for which you want to trigge.
In Step
Create a pre Requiste as
BUKRS<>"XXXX" or BUKRS<>"YYYY" (Here you need to give all the compnay codes, that are in your box and also assign at the first screen)
In Chek
WARES<>"XXX"
Assign a message.
What I am trying to say is by defining a Doc type with the required Ex. Rate your primary requirement is met.
By creating a validation your secondary problem is solved (Restricting COmpnay Code and Document type)
You are indirectlky meeting the requirement of substitution.
Remember only Two true conditions make a posting.
In no way you are touching the BKPF-KUTY2.
rewrad if useful.
Sarma -
Hey All,
I have a requirement in which I want to run the AR01 report for asset balances based on customer number ( Custom Z Field saved in the ANLU table ). The current selection criteria does not have the customer number. Can this be done be not creating a custom report and by using some exits or substitution rules. Say for example Can I create a substitution exit to copy the customer field to the Asset super number field (which is currently in the selection criteria) . The substitution Field to Field doesnt help as the table ANLU is not avalaible for substitution. What options do i have in this case.
Any suggestion is highly appreciated.
Thanks,
Aparna.hi aparna,
Validation Rules and Substitution User exits
Syntax:
=Uzzzz (zzzz = up to 4 characters - this is true for Document Level validations - call point 3 - *Header Level & Line Item Level - call points 1 & 2 - allow up to 30 charaters.)
/NORFB->Bus.transactions->Base parameters->Validation
/NORFB->Bus.transactions->Base parameters->Substitution
Example
=ULTE "FI_DOCU 001 "Parked SA,FY,SI=>long text CORRESP. "
=U&VALID_WBS_IN_ZUONR "FI_ITEM 011 Spon.Res: Check WBS valid in ZUONR"
changed in 4.5B (* Form UFIA -- formerly U&VALID_WBS_IN_ZUONR)
User exits are form routines that the user programs. There are two types of user-exits:
1. Validation exits are used in the prerequisites and checks. They have either the value 'T' for true or 'F' for false. They are interpreted as a part of the logical statement, like a constant or field comparison. For this type of user exit, you must fill a parameter with the results of your check ('T' for true; 'F' for false).
Example
FORM Uzzzz USING B_RESULT. "'T' or 'F'
from program ZGGBR000 (ZGGBRI03)
2. Substitution exits are used to change one or more fields. However, you can only change those fields that are permitted in the Boolean class for the substitution. You can display these fields by selecting the following menu options in substitution maintenance: <Extras -> Fields for substitutions>
Example
FORM Uzzzz USING COST_CENTER.
from program ZGGBS000 (ZGGBSI02)
Substitution Fields can be found from this window
/NORFB->Bus.transactions->Base parameters->Substitution->Call Pnt 2->Substitution step 3->Extras->Substitution flds
The name of the form pool (e.g., ZGGBR000 & ZGGBS000) that contains your user exit must be stored in table T80D.
Note
1. Data declaration
Tables and field stings cannot be declared in form routines, so that the contents can be used along with the calling transaction.
2. Parameter definition
It is important that you make declare the code generation program for your user exit; how many and what type of parameters you are using for the user exit. You do this by entering your newly defined user exits in the form routine GET_EXIT_TITLES.
found in program ZGGBR000 (ZGGBRTIT)
found in program ZGGBS000 (ZGGBSTIT)
One exception is the parameter for the results of a validation exit. You must not declare this, it is automatically generated be the system. What types of parameters are available and how you use them is described in the online documentation. When creating your user exits, you can use the example form pools delivered by SAP (RGGBR000 for validations; RGBBS000 for substitutions) as a reference. We recommend that you copy the example form pools delivered by SAP when creating your own user exits. In these example form pools, entries already exist in the form routine GET_EXIT_TITLES for the examples delivered. The GET_EXIT_TITLES must absolutely exist in your form pool.
You can find additional information on the creation of user exits in the online documentation on validations and substitutions.
SAP exits
SAP exits are form rountines programmed by SAP. The name of the form pool is SAPFGBEB.
Syntax:
=Szzzz (zzzz = up to four characters)
FORM Szzzz using B_result. "'T' or 'F'
Example
=S01 "SAP exit S01"
Display description of T80D configuration
Return ->
Change Validation: FI_ITEM (Message view)
thanks
karthik
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Apr 15, 2008 3:05 PM -
Substitution exit. in TC MIRO
I am trying to populate the Purchase order number in the assignment field in CenvatThis gets populated correctly in the
transaction J1IEX but not so in MIRO.
it can be solved through substitution exit, if any body having material pertaining to substitution exit plz mail me to my id [email protected]
Thanks & Advance
Laxmi NarayanThere is no need for substitution for bringing purchase order number in cenvat through MIRO, instead you can give the sort key No.010, in GL master of cenvat under tab control data.
The purchase order number will be automatically displayed in assignment field of cenvat items.
Hope this will resolve your query.
Best Regards
Mukesh Mokashi
If useful kindly assign points -
Substitution exit for asset master is not getting triggered.
Hi
I have created a substitution exit program ZGGBS000 having exit U215 and U216. If the Asset affirm value is initial , then WBS elemnt value will copied to asset affirm value field in the table ANLA.But it is not getting tiggered, when i am trying i save the asset in AS01 tcode. Kindly help.
Thanks
SubhaHi,
Please try thes exits:
Enhancement AIST0001 Exchange number range in master data maintenance
Here we can export both ANLA-ANLN1 ANLA-ANLN2 and Import VALUE(I_ANLA) LIKE ANLA STRUCTURE ANLA
AIST0002 Customer fields in asset master
Alternative exits:
AFAR0003 External changeover method
AINT0005 Dummy for extended syntax check. Do not use.
AISA0001 Assign Inventory Number
TRAN0001 User exit for asset transfer
AAPM0001 Integration of asset accounting and plant maintenance
AIST0002 Customer fields in asset master
AMSP0002 Determine relationship type for two company codes
AIST0001 Exchange number range in master data maintenance
AFAR0004 Determination of proportional values for retirement
AINT0004 Change amount posted for certain areas
I hope this may helpfull.
Thank you,
Thanks,
AMS -
Regarding substitution Exit in FI
How to use substitution exit in FI???
hi,
Check this link
http://help.sap.com/saphelp_45b/helpdata/en/5b/d2316743c611d182b30000e829fbfe/content.htm
sirish -
How to raise error message in substitution exits?
Hello Experts,
How to raise error message in substitution exits. I have tried with normal statement,
Message 'Welcome!!' type E.
But its inot stopped at that error message, Its goes next standard code and picked other messag and shown as error message.
Th exit seems U100, I that I want to stop by using error message based on some condition. Please throw the answer quicklyHI Sanjana,
In the Substitution exits you can create the message in the configuration it self.
You dont't need raise message explicitly.
Thanks, -
Differences in FI & PCA Substitution
All,
I am primarily an SD consultant working on a small solution related to Goods Receipts and Profit Center Accounting.
After searching all the available forums with all sorts of keywords, no similiar issue could be found; hence posting this question hoping someone might propose a solution.
According to a posting requirement for goods receipt, we have activated an FI substitution to override accounts configured in OBYC. This works as expected but our main objective is to have the same account determination in PCA documents too. But the G/Ls determined in PCA doc are different because no corresponding substitution has been activated other than in FI. I tried a similar substitution in CO (OKC9) but the collection of fields is different from those of OBBH. Therefore looks like the logic of FI substitution cannot be replicated here.
With most of my experience in SD, I don't understand why account determination during goods receipt in FI should be different from that of PCA. And what needs to be done to determine the same G/L substitution in PCA as that in FI.
Can someone suggest how the G/L accounts can be kept same in both FI & PCA docs? All of your expert inputs are highly appreciated.
Thanks & Regards,
KCReverted the G/L substitution in FI & instead opted to change the account keys dynamically during PO processing, using a pricing routine (condition value formula).
-
Substitution - EXITS in Fixed Assets
Hi, I need to substitute the field ANLB-AFABE, and i'am looking for an exit or substitution program.
Any ideas?
Thanks!Hi ,
look transaction oacv and oacs
and <a href="http://help.sap.com/saphelp_47x200/helpdata/en/4f/71e0b5448011d189f00000e81ddfac/frameset.htm">here</a>
Andreas -
Hi Friends ,
Is it possible to substitute a BKPF field in line item level of substitution ? I want to update BKPF-XBLNR_ALT based BSEG-MWSKZ at line item level.When I tried using an exit , I can see that BKPF field value is changing in debugging but finally when the docuemtn is posted it is not getting updated. Can anybody help me ?
Thanks ,
JobyI had this problem before, so what I did was:
Take all values from this table, place it inside an internal table, and then make the changes you need to make. After wards, clear the imported table and make it equal the internal table.
a quick example:
itab[] = imported_table[].
logic to make changes....
clear imported_table[].
imported_table[] = itab[].
Tell me if that works for you.
Edited by: jotorres1 on Dec 22, 2010 9:14 PM -
FI Substitution exit to Business area not possible in the Standard SAP
Hi Experts
I need to derive the business area from the funds centre (local government) in the FI Substitution. This is allowed in the Co Substitution though but it must come ahead of OKB9.
We get the following with loading the Bank Statement FF_5.
Error: (00 298) Formatting error in the field COBL-GSBER ; see next message
How can I get the Business areas in the allowed fields in the FI Substitution?
Please help
Kind regards
DawnDear,
Go to SM30 Enter VWTYGB01click on Maintain
Postion the folloiwng:
Boolean Class = 9
Type = S
Table = BSEG
Field = GSBER
Untick the Column Exclude
Once done please re execute the OBBH, Business Area will be shown there.
Br, Vivek -
Profit Center Substitution for Migrated line item
Dear Expert,
we migrated the data on feb 2014. past records having the default profit center value in each line item, after the migration we are not using the default profit center , we blocked that through some validation, but some situation, for clearing vendor or customer or gl, the migrated line item having default profit
center with disabled mode to change. so its throwing the validation error, we cant able to unblock the validation also. we need to write a substitution for this to replace automatically . Eg :
Default Profit center is : 38000
it should be replace with to 2038100001
like wise we have multiple company codes.
i try to write the prerequisite, herewith i have attached the screen shot, i am getting the error for this, anyone can explain this situation ?
Regards
PrinceHi
Please, check these notes
SAP Note 173798 - User exit for PCA substitution
SAP Note 1532865 - FAQ: Profit center in the billing document
SAP Note 150959 - Profit center is incorrect in production order
SAP Note 530578 - Special stocks in PCA
SAP Note 594507 - PC with valuated special stock incorrect
and related notes
I hope this helps you
Regards
Eduardo -
PCA substituion for Sales Order
Hi,
Our requirement is to create the sales order substition for the followins
For each region different PCA values, we have 20 regions.
Can you please tell us how to achieve this through substituion.
Thanks,Hi
The standard solution is defined in the link
http://wiki.sdn.sap.com/wiki/display/ERPLO/ProfitCenterSubstitutioninSales+Orders
You can also look at the following notes
173798 - User exit for PCA substitution
1532865 - FAQ: Profit center in the billing document
167912 - Substitution call-up points for sales order/billing document
114954 - Partner profit center for intercompany billing
112974 - Subst. Prof.ctr subst.,create KDAUFf.cross-CC sales
39254 - Profit Center - cross-company code sales
If you want to write your own logic, you can use the User Exit MV45AFZZ.
There is a perform which moves the Value to VBAP. This PRCTR field is stored in VBAP (i.e., SO line item table)
USEREXIT_MOVE_FIELD_TO_VBAP
Hope it works.
Regards
Sanil Bhandari -
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>
Maybe you are looking for
-
Custom Calculation Script to copy value of a field
Hi, I'm trying to copy the value of a field into another field and display it in the pdf. This is for the 1099's. We are trying to print 2 copies(Copy B and Copy 2) in one page. The first field will come from the XML file. I need to copy the va
-
Limitation on principal name length due to propagation?
Is there a limitation on the java.security.Principal name length due to the underlying implementation of the security context propagation, even though it is a java.lang.String? Thanks, Guillaume Bedard
-
Free RADIUS/802.1X Service for WPA/WPA2-Enterprise
Hi, just wanted to let everyone know that I recently started offering a Free Edition of our AuthenticateMyWiFi service, a hosted RADIUS/AAA service offering 802.1X authentication for use with WPA/WPA2-Enterprise encryption. The Free Edition features
-
Can I open Captivate 8 .cptx files in Captivate 7?
Hello All, Can I open Captivate 8 .cptx files in Captivate 7? If I can, will there be any data loss. Thanks in advance for your help!!
-
Database 9201 & 9iAS 10222 on Solaris
Dear all, We have Oracle EE 9.2.0.1 installed on Solaris 9. In another ORACLE_HOME on the same server , I am installing 9iAS 1.0.2.2.2. As per Metalink (issue 378799) , I have applied the JDBC patch and modified the O7_DICTIONARY_ACCESSIBILITY to TRU