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.
Showing results for 
Search instead for 
Did you mean: 

How to start the code in the function module EXIT_SAPLKEII_002

Former Member
0 Kudos

Hi All,

My reqirement is clear the value assigned to VVQTY and VV400etc.

According to the conditions as below.....

- A table with the following info

Sales order type (EPSOURCE-AUART) Material type (MARA-MTART) Business case







To determine material type (MTART), you must retrieve this information from table MARA with the material number MATNR = EPSOURCE-ARTNR

For instance:

If sales order type = ZCR and if Material type = ZPAR then Business case 1 must be applied.

A table with sales order reason (field EPSOURCE-AUGRU). Entries will have to be transportable with a transport order. In this table will be stored order reason identifying a credit memo/debit in value (exemple: Z02 –country taxes-, Z07 – penalties- Z08 – price differences-, Z10 –Goodwill- , Z11 –service RR billing-)

For business case 1 and for the order reason included in the table, the figure passed to value fields (VVQTY –sales quantity-, VV400 - Ref. prd Cogs-, VV405 - Conf. prd Cogs-, VV415 - Ref. prd Cogs IntraG- VV420 - Ref. prd Cogs IntraE-, VV500, VV510, VV505, VV515, VV520, VV525, VV530, VV535, VV540, VV545, VV550, VV555, VV560, VV565 ) must be set to zero

But how to start the coding in the function module and

how to use the loops and the read tables inside the code and I am also unable to set the break point even though i keep the break point when this user exit is getting triggered?

Actually this user exit has to trigger when running VA01 transaction.

Please help me out how to start the code.




Former Member
0 Kudos

Hi santhosh,

U cant insert ur code directly inside the function exit EXIT_SAPLKEII_002, u have to write the code inside the include mentioned inside the function exit. <b>ZXKKEU08</b> - this is the include u have to create......create this in se38, it will give a warning, press enter to continue and then start writing code....

First u have to assign this userexit to a project in CMOD and activate it so that the debugger will stop at ur breakpoint....

I will explain if u need more help.....


Karthik D

0 Kudos

Hi karthik,

First of all thanks for ur reply. All the settings and assignments in CMOD are completed.

According to my requirement this has to trigger while I am going to the

transaction VF02 and then the after entering the document number and by pushing the button accounting and after selecting the profitab analysis. My exit should get triggered. But is not getting triggered. I mean not stopping even i keep the break point.

So i am unable to start my code with out observing the parameters

getting from the function module



0 Kudos


Below are the available user exits for VF02 transaction.

Try to put break points in the exits and find out the suitable one for your requirement.

SDVFX001 User exit header line in delivery to accounting

SDVFX002 User exit for A/R line in transfer to accounting

SDVFX003 User exit cash clearing in transfer to accounting

SDVFX004 User exit G/L line in transfer to accounting

SDVFX005 User exit reserves in transfer to accounting

SDVFX006 User exit tax line in transfer to accounting

SDVFX007 User exit: Billing plan during transfer to Accounting

SDVFX008 User exit: Processing of transfer structures SD-FI

SDVFX009 Billing doc. processing KIDONO (payment reference number)

SDVFX010 User exit item table for the customer lines

SDVFX011 Userexit for the komkcv- and kompcv-structures

V05I0001 User exits for billing index

V05N0001 User Exits for Printing Billing Docs. using POR Procedure

V60A0001 Customer functions in the billing document

V60P0001 Data provision for additional fields for display in lists

V61A0001 Customer enhancement: Pricing

Reward if it is useful.



0 Kudos

Hi santhosh,

If its not stoping at the break point, u have to analyse whether that is the correct userexit for your requirement.....

So check the following link to clarify your doubts...

Hope this will give you a clear picture on the user exit....

Reward points if helpful....


Karthik D