cancel
Showing results for 
Search instead for 
Did you mean: 

Automatic partner determination in XD01/VD01

andreas_hoger
Explorer
0 Kudos

Hi,

we want to do the following.

When we create a customer in VD01/XD01, we enter on address screen

country and postal code.

Depending from that, the system should default some partners on partner screen,

e.g. the responsible salesman.

Is there any userexit or BADI to do this?

Thanks

Andreas

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Andreas

User exits (Function module exits) are exits developed by SAP. The exit is implementerd as a call to a function module. The code for the function module is written by the developer. You are not writing the code directly in the function module, but in the include that is implemented in the function module.

The naming standard of function modules for functionmodule exits is:

EXIT_<program name><3 digit suffix>

The call to a functionmodule exit is implemented as:

CALL CUSTOMER.-FUNCTION ❤️ digit suffix>

To find a Exit.

Goto Transaction -- Find The Package

SMOD >f4>Use the Package here to Find the Exits In the Package.

Else if you Want to search by Application Area wise ,

There is one more tab to find the Exits in the Respective Application Area.

Implementing the Exit-- CMOD Create ProjectsAssgn your Component .

Now Run ur Transaction to Check if it Triggers.

Thats it..

Suppose you need to find out all the user exits related to a tcode.

1. Execute the Tcode.

2. Open the SAP program.

3. Get the Development Class.

4. Execute Tcode SE84.

5. Open the Node 'Envir. -> Exit Techniques -> 'Customer Exits -> Enhancements'

6. Enter the Development class and execute.

Check out this thread..

1. Type the transaction : system->status-> <PROG. NAME>

2 open SE37 , type EXIT<PROG NAME> and press F4 to get the list of function exits available.

3. Open CMOD utilities->SAP enhancements

EDIT->All selections

4.type the function module name obtained in step 2, in fields 'component name' in 'additional selections' block. and execute.

5. The displayed list contains the enhancements names for the transaction You were looking for.

6. Create a project in CMOD and the code in default include->activate.

http://www.erpgenie.com/sap/abap/code/abap26.htm

which gives the list of exits for a tcode

http://help.sap.com/saphelp_nw04/helpdata/en/bf/ec079f5db911d295ae0000e82de14a/frameset.htm

For information on Exits, check these links

http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm

http://www.sapgenie.com/abap/code/abap26.htm

http://www.sap-img.com/abap/what-is-user-exits.htm

http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction

http://www.easymarketplace.de/userexit.php

http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm

http://www.sappoint.com/abap/userexit.pdfUser-Exit

http://www.planetsap.com/userexit_main_page.htm

User-Exits

http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm

http://www.sap-img.com/ab038.htm

http://www.planetsap.com/userexit_main_page.htm

http://www.sap-basis-abap.com/sapab013.htm

http://sap.ittoolbox.com/documents/popular-q-and-a/user-exits-for-the-transaction-code-migo-3283

These links will help you to learn more on user exits.

http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm

http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/frameset.htm

http://www.planetsap.com/userexit_main_page.htm

http://www.allsaplinks.com/user_exit.html

www.sap-img.com/abap/what-is-user-exits.htm

Also please check these threads for more details about user exits.

1. Document on UserExits in FI/CO

http://www.ficoexpertonline.com/downloads/User%20ExitsWPedit.doc

2. Finding User Exits...

http://sap.ionelburlacu.ro/abap/sap2/Other_Useful_Tips.html#Finding_User_Exits

3. List of all User Exits...

http://www.planetsap.com/userexit_main_page.htm

Reward if useful to u

Answers (3)

Answers (3)

andreas_hoger
Explorer
0 Kudos

Thanks for the answers.

But they doesn't really help.

The mentioned user exits

EXIT_SAPLV09A_002

EXIT_SAPLV09A_003

EXIT_SAPLV09A_004

are only used when creating sales documents, but not for creation of customer.

Refering to instruction of narendran vajravelu I found userexit EXIT_SAPMF02D_001

but this is only to check the customer data when saving them. It is not for adding new partners.

Can somebody help?

Thanks

Andreas

Former Member
0 Kudos

Andreas,

I don't think we have this option. Your idea is to have a Sales Emp automatically when creating a customer master record, right.

In standard SAP i did not find any thinglike this. You need to develop logic based on the sales area or sales organization to default a sales emp. But this may not be suggestable as the employees may get transfered or leave the organization. It is better to go manual assignement of a sales employee.

Discuss with your client exactly what they require.

Hope this will clear your doubt.

If yes Reward me.

Bye

Venkat.

Former Member
0 Kudos

Andreas,

SAP has an option to provide the partners functions based on the Account group.

I think your requirement is within an account group, you want to add new partner function for specific countries and ZIP CODE. This is a typical .. I never came across it.

I don't find any exits to add or modify the data while creating a customer.

I found a BADI's. But in this there is no provision to add new partner, every thing else is there.

Check in SE18.

CUSTOMER_ADD_DATA

Regards,

Ajai.

Former Member
0 Kudos

hey!!

When u do partner determination, add partner function type PE as mandatory and add it to ur a/c group. Then when ever u maintain customer master you will have to enter corresponding sales person and this will pop up when ever u transact with this customer.

Hope this helps..

Former Member
0 Kudos

Hi Andreas,

Find below the list of userexits used in Partner Determination

Partner determination contains the following user exits for your use:

<b>EXIT_SAPLV09A_001</b>:You can use this user exit to control whether an address that was entered manually and has already been used in other documents (referenced), should be referenced again if it changes or whether a new address shold be created (duplicated).

<b>EXIT_SAPLV09A_002</b>:Call up this user exit if a customer has not been maintained in the current sales area.

<b>EXIT_SAPLV09A_003</b>:Use this user exit to control the origin of partners in the partner determination procedure (origin X, Y or Z). If X, Y, or Z has been entered in the Origin field, this user exit is automatically called up during partner determination.

<b>EXIT_SAPLV09A_004</b>:Use this user exit to integrate your own check in a program, that runs before the partner is saved in the document.

Award points if it adds information.

Thanks

Mohan

former_member183879
Active Contributor
0 Kudos

Pls check if the user exit EXIT_SAPLV09A_003

can help for your purpose.

Reward if this helps