‎2007 May 10 8:46 AM
how to specify Date condition for parameters
If condition for not to exceed system date limit ,
points awarded if useful
‎2007 May 10 8:52 AM
hi,
let us consider you are using mara table.there u have erdat as date parameter.
table : mara.
data : begin of itab_mara,
matnr like mara-matnr,
erdat like mara-erdat,
end of itab_mara.
if itab_mara-erdat GT sy-datum.
write : 'date :' erdat.
endif.
reward with points if helpful.
Message was edited by:
Vinutha YV
‎2007 May 10 8:48 AM
Hello,
U can do like this.
IF LV_DATUM GT Sy-DATUM.
Do what u want..
ENDIF.REgards,
Vasanth
‎2007 May 10 8:52 AM
how to specify date in If condition
if i give like 10.3.1983 then the 3.1983 comes to new line and gives error 3 is unknown
‎2007 May 10 8:52 AM
hi,
let us consider you are using mara table.there u have erdat as date parameter.
table : mara.
data : begin of itab_mara,
matnr like mara-matnr,
erdat like mara-erdat,
end of itab_mara.
if itab_mara-erdat GT sy-datum.
write : 'date :' erdat.
endif.
reward with points if helpful.
Message was edited by:
Vinutha YV
‎2007 May 10 8:53 AM
Hi Jagrut,
you can solve it in this way ,
data: l_date like sy-datum .
if l_date GT sy-datum .
your code ...
endif.
‎2007 May 10 9:04 AM
guys i need to restrict them by adding days if it reaches the last year in calender, so guide me
‎2007 May 10 10:15 AM
parameters date type dats.
at selection-screen.
if date eq sy-datum.
message 'hai good morning' type 'I'.
endif.