cancel
Showing results for 
Search instead for 
Did you mean: 

help me in finding the logic

Former Member
0 Kudos

Hi,

i Need to check all Purchase Orders (PO) and select those that have an EX Tax Code. for those POs that are found to have an EX Tax Code populate the shipped to Tax Jurisdiction Code (TJC) field with the default TJC of 5555555550.

and the other one is if the PO has a delivery address that is outside the US; then the tax code should be EX and the tax jurisdiction code should be 5555555550 and this thing i have to do using user exit in me21 t-code.

regards,

maqsood

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi guys,

Im waiting for ur replies

regards,

maqsood

Former Member
0 Kudos

hi,

the requirement has changed a bit now.

now i have to find out only the user exit name in which if the PO has a delivery address that is outside the US; then the tax code should be EX and the tax jurisdiction code should be 5555555550.

And i want to know how we can do this.

regards,

maqsood

Former Member
0 Kudos

Hi Maqsood Khan,

Though I am not an MM - try this UserExit...

EXIT_RMMR01RS_003 Customer Exit: ERS Procedure - Lines with PO Reference

<a href="http://www.planetsap.com/Userexit_List.htm">Link to List of User Exits</a>

<b><u>A Short Tutorial on User Exits</u></b>

User exits

1. Introduction

2. How to find user exits

3. Using Project management of SAP Enhancements

1. Introduction

User exits (Function module exits) are exits developed by SAP. The exit is implementerd as a call to a functionmodule. The code for the function module is writeen 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>

Example:

The program for transaction VA01 Create salesorder is SAPMV45A

If you search for CALL CUSTOMER-FUNCTION i program

SAPMV45A you will find ( Among other user exits):

CALL CUSTOMER-FUNCTION '003'

exporting

xvbak = vbak

xvbuk = vbuk

xkomk = tkomk

importing

lvf_subrc = lvf_subrc

tables

xvbfa = xvbfa

xvbap = xvbap

xvbup = xvbup.

The exit calls function module EXIT_SAPMV45A_003

<b>2. How to find user exits</b>

Display the program where you are searching for and exit and search for CALL CUSTOMER-EXIT

If you know the Exit name, go to transaction CMOD.

Choose menu Utillities->SAP Enhancements. Enter the exit name and press enter.

You will now come to a screen that shows the function module exits for the exit.

3. Using Project management of SAP Enhancements

We want to create a project to enahance trasnaction VA01

- Go to transaction CMOD

- Create a project called ZVA01

- Choose the Enhancement assign radio button and press the Change button

In the first column enter V45A0002 Predefine sold-to party in sales document . Note that an enhancement can only be used i 1 project. If the enhancement is already in use, and error message will be displayed

Press Save

Press Components. You can now see that enhancement uses user exit EXIT_SAPMV45A_002. Double click on the exit.

Now the function module is displayed. Double click on include ZXVVAU04 in the function module

Insert the following code into the include: E_KUNNR = '2155'.

Activate the include program. Go back to CMOD and activate the project.

Goto transaction VA01 and craete a salesorder.

Note that Sold-to-party now automatically is "2155"

Best Regards,

Message was edited by: Aslam Riaz