Application Development 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: 

user exit ---

Former Member
0 Kudos

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 ...

3 REPLIES 3

former_member194152
Contributor
0 Kudos

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

former_member404244
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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