‎2007 Mar 29 8:12 AM
HI,
HOW CAN I GET THE DATE OF TODAY BUT IN LAST YEAR IN A SAPSCRIPT?
FOR EXAMPLE;
DATE FROM DATE TO
30.03.2006 29.03.2007
THANKS IN ADVANCE
‎2007 Mar 29 8:18 AM
Hi,
GET TO DAY DATE USING SY-DATUM or &date& ,for lost date subtract 12 months from it.........
thanx.
Message was edited by:
rambabu kondepati
‎2007 Mar 29 8:28 AM
FOR DATE TO I WROTE IN THE SCRIPT &SY-DATUM& I HAVE NO PROBLEM WITH IT.
BUT FOR DATE FROM I DON'T KNOW WHAT I SHOULD HAVE BETWEEN &&
‎2007 Mar 29 8:35 AM
HI,
CALCULATE IT IN DRIVER PROGRAM PASS IT THRU TEXT ELEMENTS........
REGARDS
RAM.
‎2007 Mar 29 8:36 AM
Hi,
You can call subroutine for calculations purpose.call a subroutine in your script and store from date in your program and you can use it .
regards,
veeresh
‎2007 Mar 29 10:04 AM
‎2007 Mar 29 10:15 AM
hi,
here is syntax for calling subroutine in script.
/: PERFORM <form> IN PROGRAM <prog>
/: USING &INVAR1&
/: USING &INVAR2&
......
/: CHANGING &OUTVAR1&
/: CHANGING &OUTVAR2&
......
/: ENDPERFORM
INVAR1 and INVAR2 are variable symbols and may be of any of the four SAPscript symbol types.
OUTVAR1 and OUTVAR2 are local text symbols and must therefore be character strings.
The ABAP subroutine called via the command line stated above must be defined in the ABAP report prog as follows:
FORM <form> TABLES IN_TAB STRUCTURE ITCSY
OUT_TAB STRUCTURE ITCSY.
...
ENDFORM.
The values of the SAPscript symbols passed with /: USING... are now stored in the internal table IN_TAB . Note that the system passes the values as character string to the subroutine, since the field Feld VALUE in structure ITCSY has the domain TDSYMVALUE (CHAR 80).
regards,
veeresh
‎2007 Mar 29 10:20 AM