on 02-14-2007 2:13 AM
Hi SAPians,
Could you plz explain in detail how to write Routines in pricing,what are user exits,who defines them functional or technical person?why do we use user exits.Appreciate your reply.you can email me at afrozemujtaba@gmail.com
Thanks.
Mohammed.
Hi,
You use Routines and Userexits only when you want to do an enhancement.....For routines you can check the TcodeVOFM and Userexit you can use the TcodeSE38
The best example i can give of user exit is when Sales document is blocked due to credit check ..you can use the Userexit there so that the only the Authorized can release the Block........as SD consultant....Our job is to explain the ABAPer what functionality we want to add and from which tables he can crab the fields....
Hope it helps
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Info sent to your mail id. Pl reward if useful.
Thanks & Regards
Sadhu Kishore
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Routines, User exits are all things which are developed by abapers only. However its the functional people who drive across how the funtionality should be. So, the functional guys write a functional spec to represent what is required to the abapers, then they follow it up with a technical spec and develop the required object.
As well i will post to your maild id some more info.
Thanks & Regards
Sadhu Kishore
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1. Storage Location Determination at Sales Order:
You can do it through user exit... this is the exit...
USEREXIT_SOURCE_DETERMINATION (MV45AFZB)
2. Pricing Authorisation:
Refer OSS Note 105621
http://www.sapfans.com/forums/viewtopic.php?t=80256
3. Making some of the Fields as Mandatory in Customer master based on the Business Rule.
Enhancement is SAPMF02D. Activate it through CMOD. The Following are the example to stop the Customer master creation with Tax jurisdiction Code.
&----
*& Include ZXF04U01 *
&----
*This user exit has been written for not to save the customer master *
*to whom the Tax Juridiction code is not updated. The Export Customer *
*is exceptional. Exit written by M. Murali on 18.05.2004. *
IF i_knvv-vkorg ne '2000' .
if i_kna1-TXJCD is initial .
Message ID 'ZK' type 'E' number '005' .
endif .
endif .
4. Different Billing Document Number range based on Company code / Plant Code for the same billing type.
The Following are the example for different invoice number based on Plant.
Use the Exit RV60AFZZ.
FORM USEREXIT_NUMBER_RANGE USING US_RANGE_INTERN.
if (
xvbrk-fkart = 'ZF3' or xvbrk-fkart = 'ZF2' )
and xvbrk-vkorg = '1000'.
case xvbrp-werks.
when 'AGR'.
us_range_intern = '22'.
when 'AHD'.
us_range_intern = '28'.
Endif.
ENDFORM.
5. Changing the billing Date to Current date or Changing some of the Field values of the Billing data.
Create a Data transfer routine for the billing and do the changes what ever you want. The following are the example for changing the billing date to current date.
&----
*& Form DATEN_KOPIEREN_611
&----
text
----
FORM DATEN_KOPIEREN_611.
IF VBRK-FKDAT NE SY-DATUM .
SY-SUBRC = 0 .
MESSAGE ID 'ZSD1' TYPE 'I' NUMBER '014' .
VBRK-FKDAT = SY-DATUM .
ENDIF .
ENDFORM. "DATEN_KOPIEREN_611
-
And also go through this.
<b>Userexits</b> are places in the SAP standard code that are designed to insert code by the customer. It happens often that some values are set by default by SAP but are not appropriate for the business
For more information on User Exits, please check this links.
<u>http://www.easymarketplace.de/userexit.php</u>
Mohan
Award points if it helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Go through this,
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
2. How to find user exits?
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 in 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"
Mohan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
u will write the routines in <b>Transaction code : VOFM</b> , and access key get from basis person and write by abaper.
Rewardspoint it helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
6 | |
5 | |
5 | |
5 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.