11-20-2007 9:12 AM
Hi,
How an user exit will be available in a program from the given below list :
1 ) PERFORM USEREXIT_DELETE_DOCUMENT.
or
2 ) CALL FUNCTION 'EXIT_SAPMV45A_001'
EXPORTING
IVBAK = VBAK
IVBAP = VBAP
IVBKD = VBKD
ITVAK = TVAK
ITVAP = TVAP
CHANGING
BILLINGPLANTYPE = CH_FPART.
or
3 ) CALL CUSTOMER-FUNCTION '002'
EXPORTING
I_TVAK = TVAK
I_TVTA = TVTA
I_VKGRP = DEFAULT_VKGRP
I_VKBUR = DEFAULT_VKBUR
IMPORTING
E_KUNNR = KUAGV-KUNNR.
what is the difference b/w all the 3.
Thanks ...
ashok ...
11-20-2007 9:20 AM
Hi,
Your First Point is user exit which can be implement by writing code in a routine in a standard program.once u write code in between routine it will always going to syntax check whenever that program will be executed so due to this SAP introduce customer exit on which there is Z include available in SAP Standard FM u implement that Z incluse and implement project using tcode CMOD and SMOD then only that code of block will execute your last two points related to customer-exit.
Reward if helpful.
Regards
Gagan
11-20-2007 9:23 AM
hI,
The first one is USEREXIT whcih requires access key...no need to for creating a project in CMOD..we can write it in sap standard include and activate it
The second two are customer exits...
Here we don't need any access key..we can write the code in the zincludes of it..we need to create a project in CMOD..
Reward if helpful.
Regards,
Nagaraj
11-22-2007 7:38 AM
Hi ashok,
If it is a user exit it will be called from the main program thru a PERFORM statement,
If it is a Customer exit it will be called thru
CALL CUSTOMER-FUNCTION '002 'statement.
if u double click on '002' it will take you to the corresponding customer exit(here to function exit EXIT_SAPMV45A_001)
Regards
Karthik D