on 2007 Aug 03 9:19 PM
I am working on a process to post inbound edi invoices into SAP.
Invoices are posted, no errors, but cash discount is not calculated/displayed on the header.
I am using the standard edi setup
IDOC INVOIC01
Mess Type INVOIC
Process INVL
Discount Base Amount is mapped to E1EDS01 with qualifier 012
Discount Amount is mapped to E1EDS01 with qualifier 13
Discount terms are passed in E1EDK18
Dates are current (discount due date not passed).
Any help will be greatly appreciated
Thank you,
A.
Hi Aneta,
if you want to display the discount in the header (Fieldname WSKTO), then you have to use an customer-exit. Try it with enhancement MRMH0002 (TA CMOD), EXIT_SAPLMRMH_014. The following Coding helps:
*&---------------------------------------------------------------------*
*& Include ZXM08U25
*&---------------------------------------------------------------------*
*This Exit handles the discount (header) for Invoices of company code 1001
DATA: ls_e1eds01 TYPE e1eds01.
CLEAR: ls_e1eds01.
IF e_rbkpv-bukrs = '1001'.
IF i_idoc_data-segnam = 'E1EDS01' AND i_idoc_data-sdata(3) = '013'.
ls_e1eds01 = i_idoc_data-sdata.
e_rbkpv-wskto = ls_e1eds01-summe.
e_change = 'X'.
ENDIF.
ENDIF.
In IDOC use the following mapping:
Discount Base Amount is mapped to E1EDS01 with qualifier 012
Discount Amount is mapped to E1EDS01 with qualifier 013
Hope it helps.
Ralph
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.