cancel
Showing results for 
Search instead for 
Did you mean: 

SY-DATE

Former Member
0 Kudos

HI GURU

I NEED ABAP CODE FOR THE FOLLOWING.

if iv_date is blanks then current date(sy-date) is set

plz help asap

thanks regrads

anuj

Accepted Solutions (1)

Accepted Solutions (1)

gopi_narendra
Active Contributor
0 Kudos

if iv_date is initial.

iv_date = sy-datum.

endif.

Regards

Gopi

Former Member
0 Kudos

hi there

but it is given an error that the iv_date cannot be change.

what to do to remove the same.

please help me with the same asap.

thanks

anuj

Answers (8)

Answers (8)

Former Member
0 Kudos

DOUBT

Former Member
0 Kudos

DOUBT

Former Member
0 Kudos

hi,

data iv_date like/type sy-datum.

if iv_date is initial. "or iv_date eq = '00000000'

iv_date = sy-datum.

endif.

regards,

Ashokreddy.

Former Member
0 Kudos

HI Ashok,

i ahve a doubt,

i have to the following coding in a function module.

so the parameter which iam using here (iv_date) is already declared in import parameter.

so do i have to again declared the same in my source code.

how to the same

plz help me with this also.

anuj

Former Member
0 Kudos

hi,

if lv_date eq '00000000'.
iv_date = sy-datum.
endif.

Message was edited by:

Jogdand M B

S0025444845
Active Participant
0 Kudos

Hi,

try like this

if iv_date is initial.

current date = sy-datum.

endif.

regards,

sudha

Former Member
0 Kudos

Hi,

if iv_date is initial.

iv_date = sy-datum.

endif.

Revert back if any issues,

Reward with points if helpful ,

Regards,

Naveen

dev_parbutteea
Active Contributor
0 Kudos

hi,

if iv_date is initial .

iv_date = su=y-datum.

endif.

Regards,

Sooness

Former Member
0 Kudos

Hi Anuj ,

The code will be

IF iv_date is initial.

iv_date = sy-datum.

endif.

Regards

Arun