05-23-2006 7:55 PM
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
05-23-2006 9:09 PM
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.
05-23-2006 9:09 PM
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.
05-23-2006 9:30 PM
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?
05-23-2006 9:47 PM
Look at "perform get_header_prices.". This is where the prices are obtained. I am not sure why.
05-23-2006 9:26 PM
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.