Monday, 1 March 2010

SAP Note: 800866 Invoice IDoc with Unplanned Delivery Cost

In MM, an invoice cannot be posted if delivery costs were specified whenthe invoice was created in SUS. The IDoc terminates with status 51 'application document not posted' and the system issues error message M8 534 'Balance not zero'. The balance corresponds to the delivery costs.

Reason and Prerequisites

The delivery costs are not read in MM in standard inbound processing.

Solution

If you want to sendi nvoiceswith delivery costs from SUS to MM, you must use Transaction CMOD to program the EXIT_SAPLMRMH_014 user exit as follows:


Create a customer project and use Transaction CMOD to call it. Add the MRMH0002 enhancement and the EXIT_SAPLMRMH_014 component. Insert the source code into the ZXM08U25 include.

DATA:  ls_data_s01 type E1EDS01,
           lv_beznk type MRM_RBKPV-beznk.

IF I_IDOC_DATA-SEGNAM = 'E1EDS01'.
           ls_data_s01 = I_IDOC_DATA-SDATA.

           IF ls_data_s01-sumid = '020'.

                    lv_beznk = ls_data_s01-summe.

                    E_RBKPV-BEZNK = lv_beznk.

                    E_CHANGE = 'X'.

           ENDIF.

ENDIF.

No comments:

Post a Comment