Skip to Content
author's profile photo Former Member
Former Member

How to start the code in the function module EXIT_SAPLKEII_002

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 09: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.