21.2.11

SAP Note 22880 - Maintenance order: Initial reference date

Symptom:

The reference date is initial for orders that are not completed technically. (CAUFVD-ADDAT AFIH-ADDAT)

Cause and prerequisites

Error

Solution
S11K139703
LCOZVU01:

...

IF FLG_INST NE SPACE.
LOOP AT C_INDEX WHERE VBKZ NE VBKZ-DELETE AND
VBKZ NE YX AND
AUTYP = AUFTRAGSTYP-INST.
READ TABLE CAUFVDG WITH KEY INDBT = C_INDEX-INDEX.
READ TABLE CAUFVBO INDEX SY-TABIX.
CAUFVD = CAUFVDG.
MOVE-CORRESPONDING CAUFVBO TO CAUFVD_OLD.
PERFORM VB_CHECK_BEZUGSDAT USING CAUFVD.
CAUFVDG-ADDAT = CAUFVD-ADDAT. <----
MODIFY CAUFVDG INDEX C_INDEX-INDEX. <----
PERFORM PMCO_COSTING USING TRANS_TYP PMIS_IND CAUFVD CAUFVD_OLD.

No comments:

Post a Comment