2006 Oct 12 7:31 PM
I need to check a datefield2 with another datefield1 and it must be before that datefield1 .Is there any FM for that?
2006 Oct 12 7:33 PM
Hi,
DATA: V_INT TYPE INT4.
DATA: DATEFIELD2 TYPE SYDATUM.
DATA: DATEFIELD1 TYPE SYDATUM.
V_INT = DATEFIELD1 - DATEFIELD2.
IF V_INT > 0.
WRITE: / 'DATEFIELD1 IS GREATER'.
ELSE.
WRITE: / 'DATEFIELD2 IS GREATER'.
ENDIF.
Thanks,
Naren
I need to check a datefield2 with another datefield1 and it must be before that datefield1 .Is there any FM for that?
2006 Oct 12 7:33 PM
Hi,
DATA: V_INT TYPE INT4.
DATA: DATEFIELD2 TYPE SYDATUM.
DATA: DATEFIELD1 TYPE SYDATUM.
V_INT = DATEFIELD1 - DATEFIELD2.
IF V_INT > 0.
WRITE: / 'DATEFIELD1 IS GREATER'.
ELSE.
WRITE: / 'DATEFIELD2 IS GREATER'.
ENDIF.
Thanks,
Naren
2006 Oct 12 7:41 PM
HI,
You can check normally, there is no need to FM,
if Date2 < Date1.
Write your code
Endif.
Regards
Sudheer
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |