‎2007 Jun 07 8:26 AM
Hi guys,
I have to write a program in which I have to tell to system:' If these date fields don't have the current date (that is the today date) put the current date'..How can I do?I will give 10 points to everybody will help me as soon as possible..
Thanks in advance, bye
Maximilian
‎2007 Jun 07 8:28 AM
Hi,
IF filed1 <> sy-datum----
> sy-datum is current date
field1 = Sy-datum.
Endif.
Reward if helpful,
Regards,
Naveen
‎2007 Jun 07 8:28 AM
Hi,
IF filed1 <> sy-datum----
> sy-datum is current date
field1 = Sy-datum.
Endif.
Reward if helpful,
Regards,
Naveen
‎2007 Jun 07 8:43 AM
‎2007 Jun 07 8:30 AM
Hi,
Parameters p_date type sy-datum.
If p_date ne sy-datum.
p_date = sy-datum.
endif.
Regards,
Atish
‎2007 Jun 07 8:32 AM
compare the entered date value with sy-datum
if yes
ok
else
message ---may b informative kind of message or warning.
endif.
kiran
‎2007 Jun 07 8:35 AM
Hi,
data: f1 type sy-datum.
select-options: field for f1.
at selction-screen output.
loop at screen.
if screen-name EQ field.
if sy-datum not in field.
field-low = sy-datum.
endif.
endif.
endloop.
regards,
Ruchika
Reward if useful.
‎2007 Jun 07 8:36 AM
Hi
SY-DATUM is the system variable which stores the current date. So according to your requirment you can use it in the correct place.
For Eg: If f1 <> sy-datum
Do whatever you want to do.
endif..
Hope this will help u If still error plz get back....
Reward All Helpfull Answers...
‎2007 Jun 07 8:37 AM