cancel
Showing results for 
Search instead for 
Did you mean: 

Invoice pricing and services date equal to sy-datum

antonio_bruno
Participant
0 Kudos
133

Hello,

Now the Invoice pricing and services date are copied from delivery. I need that these date are equal to sy-datum. In the "Copying Requirements" (VTFL) is inserted the routine 004. How I can change that logic?

Thanks and regards.

Antonio

View Entire Topic
Lakshmipathi
SAP Champion
SAP Champion
0 Kudos

Set routine 11 against the field "Data VBRK/VBRP in VTFL

antonio_bruno
Participant
0 Kudos

Hello,

I should create a new routine Z01, on the base of the 001 (in use), the 011 and the requested fields?


FORM DATEN_KOPIEREN_Z01.

* Header data
VBRK-FKDAT SY-DATUM.

* Item data
VBRP-FBUDA SY-DATUM.

VBRP-PRSDT = SY-DATUM.

* Additional split criteria
  DATABEGIN OF ZUK,
          MODUL(3VALUE '001',
          VTWEG LIKE VBAK-VTWEG,
          SPART LIKE VBAK-SPART,
        END OF ZUK.
  ZUK-SPART VBAK-SPART.
  ZUK-VTWEG VBAK-VTWEG.
  VBRK-ZUKRI ZUK.

ENDFORM.