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: 

Discount Amount in E1EDK05

Former Member
0 Kudos

I am using idoc INVOIC02 to send the invoice. But the cash discount amount for an item doesn't appear in idoc. segment E1EDK05 is not being generated.

I have set the indicator in V/08 as 'S' for cash discount SKTV . But still cannot generate the segment.

Message was edited by: Shahnila Afzal

1 ACCEPTED SOLUTION

Former Member
0 Kudos

I am assuming that this is going through the function module IDOC_OUTPUT_INVOIC. In there, you will see the code below in the call "PERFORM FUELLEN_IDOC_INTTAB"


  LOOP AT ikomvd.
*---Sonstige Konditionen Kopf
    IF ikomvd-koaid NE 'D'.
      IF ikomvd-kstat EQ ' ' AND
      ikomvd-kinak EQ ' ' AND
      ikomvd-kwert NE '0'.
        PERFORM fill_e1edk05.
      ENDIF.
    ENDIF.
  ENDLOOP.

See in debugging, if these conditions are met.

4 REPLIES 4

Former Member
0 Kudos

I am assuming that this is going through the function module IDOC_OUTPUT_INVOIC. In there, you will see the code below in the call "PERFORM FUELLEN_IDOC_INTTAB"


  LOOP AT ikomvd.
*---Sonstige Konditionen Kopf
    IF ikomvd-koaid NE 'D'.
      IF ikomvd-kstat EQ ' ' AND
      ikomvd-kinak EQ ' ' AND
      ikomvd-kwert NE '0'.
        PERFORM fill_e1edk05.
      ENDIF.
    ENDIF.
  ENDLOOP.

See in debugging, if these conditions are met.

0 Kudos

Srinivas,

ikomvd is not being populated at all. It has the cash discount in the work area but there is no record in the table. And therefore the program is not filling E1EDK05.

Can you suggest any reason for komvd not being populated?

0 Kudos

Look at "perform get_header_prices.". This is where the prices are obtained. I am not sure why.

ferry_lianto
Active Contributor
0 Kudos

Hi Shahnila,

SAP does not perform any mapping for E1EDP26-QUALF = '007' (Cash discount amount) in FM IDOC_OUTPUT_INVOIC.

But you can populate the segment thru user exits <b>EXIT_SAPLVEDF_002</b>.

Hope this will help.

Regards,

Ferry Lianto

Please reward points if helpful.