hi experts,
My requirement is simple, to add one day to the default value of the Req deliv date under "General header data" in VA21.
I modified MV45AFZZ (an include in SAPMV45A).
I added this code:
if sy-tcode eq 'VA21'.
case screen-name.
when 'RV45A-KETDAT'.
write reqdate to RV45A-KETDAT.
screen-input = 0. "don't let user change it back.
screen-active = 1. " but let user see the field and the
endcase.
endif.
reqdate is the new value for RV45A-KETDAT which is sy-datum + 1.
This code does'nt actaully change anything. I tried to change other values of other fields using the same code and it works. Is RV45A-KETDAT the correct field to use?
Thank you in advance.