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

FORM Vs FUNCTION EXITS

Former Member
0 Likes
420

Hi folks

I am a little confused on FORM & FUNCTION EXITS...can anyone provide me what exactly is the differnce between these two. How we go about using these two in various scenarioes.

Thanks in advance.

Regards

Ram

2 REPLIES 2
Read only

Former Member
0 Likes
392

Hi,

In FORM exits you will directly modifying standard sap code..For example..SD USER exits..go to the include MV45AFZZ....check for the user exits in there..they all will be form exits..This require access key to add code to the user exit...and doesn't require project activation in CMOD.

Function exits..are function modules exit..where you don't require an access key to modify the code..But requires a project activation in CMOD for the enhancement for the code to trigger..

Thanks,

Naren

Read only

Former Member
0 Likes
392

hi

<b>FORM EXITS</b>

Form exits/Userxits allow us to add our own functionality to SAP standard program

without modifying it . These are implemented in the form of subroutines and hence are also known as FORM EXITs. The userexits are generally collected in includes and attached to the standard program by the SAP.

All Userexits start with the word USEREXIT_...

FORM USEREXIT_..

z..

ENDFORM.

The problem lies in finding the correct userexit and how to find it if one exists for the purpose. Once the correct userexit is found the necessary

customer code is inserted in the customer include starting with the z..

<b>FUNCTION EXITS</b>

These are used to add functionality through ABAP code . These start from the word EXIT_programname_NNN ending in a 3 digit number. No access code is required to implement any tupe of exit including function exits.

The function exits are called from the standard SAP program in the form

of ABAP statement

CALL CUSTOMER-FUNCTION 'NNN'

This is in contrast to USEREXITs where PERFORM statement is used to call

the required userexit.

To implement the FUNCTION EXITs first of all the project is created and a suitable enhancement package is selected and from its compnents

regards

ravish

<b>plz dont forget to reward points if helpful</b>

Message was edited by:

ravish goyal