Dynamic Action Date Manupilation
I am trying to write a dynamic action which will input in Date type 01 of IT 0041 according to the formula;
Date in IT0041 = Action start date - 1 day
04 11 P P0000-MASSN='1T'
04 12 I COP,0041,,(P0000-BEGDA),(P0000-ENDDA)/D
04 13 W P0041-DAT08=(P0000-BEGDA)-1
My major issue is I am not able to decrease the <u><b>action date by 1</b></u>
Answer would be suitably rewarded.
04 13 W P0041-DAT08=(P0000-BEGDA - 1).
if this doesnt work then you can call a subroutine (create a subroutine in a zprog) in that get date from IT-0000 saubstract 1 from it & assign it to RP50D-DATE1 then
04 13 W P0041-DAT08=RP50D-DATE1
(declare tables : rp50d in the zprog.)
this wil definitely work.
reward points if helpful