When creating invoices with VF01 and VF04, an invoice split occurs because the credit currency in the order has been filled although the payer has no credit master data.
The same applies to the collective processing of deliveries.
Program error
SolutionThe following correction prevents the credit currency from being copied into the sales order if credit management is not active.
In order to avoid that incorrect documents result in a split, data transfer for header data in the delivery and billing document must be adjusted.
Preliminary correction in program FV45KFAK:
...
FORM VBAK_FUELLEN_KURGV.
LOCAL: VBAK-KUNNR.
CHECK KURGV-KUNNR NE SPACE.
MOVE-CORRESPONDING KURGV TO VBAK.
IF NOT VBAK-KKBER IS INITIAL. <<<< insert
MOVE KURGV-WAERS TO VBAK-CMWAE.
ENDIF. <<<< insert
ENDFORM.
*eject
Generate SAPFV45K.
Data transfer of header data in delivery:
e.g.: FV50C001 or the active data transfer routine (TVCPL)
FORM DATEN_KOPIEREN_001.
.
.
.
IF NOT CVBAK-KKBER IS INITIAL. <<<< insert
MOVE CVBAK-KKBER TO LIKP-KKBER.
MOVE CVBAK-KNKLI TO LIKP-KNKLI.
MOVE CVBAK-KKBER TO LIKP-KKBER.
MOVE CVBAK-GRUPP TO LIKP-GRUPP.
MOVE CVBAK-SBGRP TO LIKP-SBGRP.
MOVE CVBAK-CMWAE TO LIKP-CMWAE.
MOVE CVBAK-CTLPC TO LIKP-CTLPC.
ENDIF. <<<< insert
.
.
.
Additional key words
VL04, delivery split, order combination
No comments:
Post a Comment