11-30-2007 7:19 AM
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
ZCR ZPAR 1
ZDR ZPAR 1
ZCR ZCFG 2
ZDR ZCFG 2
ZRK ZCFG 3
ZRE ZCFG 4
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.
Thanks,
Santhosh.R
12-04-2007 9:42 AM
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.....
Regards
Karthik D
12-04-2007 3:37 PM
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
Thanks,
Santhosh.
12-04-2007 6:50 PM
Hi,
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.
Thanks,
Srinivas
12-05-2007 7:13 AM
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...
http://sapass.metro.client.jp/UserExit/COPA0005.htm
Hope this will give you a clear picture on the user exit....
Reward points if helpful....
Regards
Karthik D