cancel
Showing results for 
Search instead for 
Did you mean: 

SAP SCRIPT : Comapring Date fields in SCRIPT

Former Member
0 Kudos

Hello,

Could you please let me know, how to compare 2 date fields in the SCRIPT.

If i am writing the below code, its notworking

/: IF &SKTLIT-NETDT& > &SYST-DATUM&

/* Do something

/: ENDIF

Thanks and regards,

pavan meda

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi,

code like this .

/: IF &SKTLIT-NETDT& > &SYST-DATUM&

  • Do something ---------------> put * instead of /*

/: ENDIF

Regards,

guru

Former Member
0 Kudos

ya its look ok.


/: IF &SKTLIT-NETDT& > <b>&SY-DATUM&</b>
* Do something ---------------> put * instead of /*
/: ENDIF

kishan negi

Former Member
0 Kudos

Hi Guru,

do something is only for information

Former Member
0 Kudos

Hi,

Ya i understood,

what i wanted to say is , if u put /* it is comment , whatever you do within that if and endif put * to print .

for me it is working .

regards,

guru

Former Member
0 Kudos

Activate debugger and check whether values are correct or not....As far as code is concerned, it is ok.

former_member193831
Active Participant
0 Kudos

hi Pavan,

Try using GT (Greater than) instead.

Else you will have to do the comparison in ABAP. i.e. in a subroutine program.

Regards,

Vivek

**-> Reward points if helps.

Former Member
0 Kudos

Hi vivek,

for me not possible to edit the code.

gt also not working

pavan eda