Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Vendor User Exit at Initial Screen

Former Member
0 Likes
1,477

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,

1 ACCEPTED SOLUTION
Read only

former_member194416
Contributor
0 Likes
1,198

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,

7 REPLIES 7
Read only

former_member194416
Contributor
0 Likes
1,199

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).

Read only

0 Likes
1,198

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,

Read only

0 Likes
1,198

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

Read only

Former Member
0 Likes
1,198

Hi,

Implement this BADI - VENDOR_ADD_DATA

Regards,

Deepak.

Read only

Former Member
0 Likes
1,198

Hi

Try to use the bte 00001460

Max

Read only

Former Member
0 Likes
1,198

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,

Read only

Former Member
0 Likes
1,198

Hi,

Find the enhancment spot for your requirment and implement the Implicit or explict enhancement.

in enhancements you can put the checks.

Thanks.