2009 Jul 20 12:53 PM
Dear friends
When a vendor is created through XK01, I would like to control that if u201CAccount Group 1000u201D is entered then Purchasing Organization and Company Code fields must be mandatory before skipping them empty at initial screen. Although I found a user exit that controls the data on saving but itu2019s too late since after creation of vendor workflow will be triggered and until itu2019s approved no changes will be allowed.
Looking forward to your advice and thanks in advance.
Thanks and Best Regards,
2009 Jul 20 1:06 PM
Search open_fi function modules in source code SAPMF02K. Put breakpoints on each (there are many). Then debug xk01 if it stop in any open_fi functions you can solve this problem using Business Transaction Event (Just search SDN to see how to use it).
Dear friends
When a vendor is created through XK01, I would like to control that if u201CAccount Group 1000u201D is entered then Purchasing Organization and Company Code fields must be mandatory before skipping them empty at initial screen. Although I found a user exit that controls the data on saving but itu2019s too late since after creation of vendor workflow will be triggered and until itu2019s approved no changes will be allowed.
Looking forward to your advice and thanks in advance.
Thanks and Best Regards,
2009 Jul 20 1:06 PM
Search open_fi function modules in source code SAPMF02K. Put breakpoints on each (there are many). Then debug xk01 if it stop in any open_fi functions you can solve this problem using Business Transaction Event (Just search SDN to see how to use it).
2009 Jul 20 5:36 PM
Thank you for your quick response,
But can you please elaborate your answers about BTE; I mean how I can use it for my requirement. Although I search through internet and forum but I havenu2019t any knowledge to implement BTE.
Best regards,
2009 Jul 20 6:09 PM
Hi
The BTE are like a customer exit, the system call it in the strategic points (events or processes).
So run the trx FIBF: this is the main transaction where u can find out all information u need, in particulary:
- Search the event you need, perhaps 00001460;
- Every event as function module to be used as sample: u need to create a new function as copy of standard one;
- In the fm u can put all code u need for your controlling;
- Run trx BF31 or BF34 in order to assign your function module to the event
The event 00001460 is managed by fm OPEN_FI_PERFORM_00001460_E, this fm will call your fm: it should be called as soon as the user presses enter in XK01.
It usually uses to insert some authorization control for account group, but perhaps it can be good for you
Max
2009 Jul 20 1:10 PM
2009 Jul 20 1:11 PM
2009 Jul 20 1:21 PM
Hi,
Following are userExits of T-code XK01,
RFKRRANZ User exits: Accounts Payable Information System
SAPMF02K User exits: Vendor master data
To Activate User Exit or Implement it,
Use T-CODE CMODE.
First Check whether enhancement is assigned to a project in CMOD.
If it is not assigned, then assign it to a project by creating Project in T-Code CMOD.
After Assign Enhancement in project click on Components Button on Application bar of CMOD.
Click on Function Exit and Active the Include present in USER EXIT.
Write Your Code in the include fresent in UserExit.
There is a Active button at application Bar of T-code in CMODE to activate the exit.
Thanks & regards,
2009 Jul 20 1:26 PM
Hi,
Find the enhancment spot for your requirment and implement the Implicit or explict enhancement.
in enhancements you can put the checks.
Thanks.