Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

question reg. date

Former Member
0 Likes
287

I am outputtting a date from a date varialbe wa_date depending on certain conditions.

On a particular condition, I don't want the date at all. I mean on the output, I want space instead of the value of wa_date.

I tried with statements like -

1)clear wa_date

or

2) wa_date = ' '

but I am still seeing either '00/00/0000' or ' / / ' when I tried with 'clear' or ' '. Please tell me what can I do to this date variable wa_date so that this date dont appear at all on the output.

Thank you very much.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
266

Hi,

Try to store the date in a character variable..

DATA: V_CHAR(10).

DATA: V_DATE TYPE SYDATUM.

V_DATE = SY-DATUM.

WRITE: V_DATE TO V_CHAR.

WRITE: / 'Before', V_CHAR.

CLEAR: V_CHAR.

WRITE: / 'After' , V_CHAR.

Thanks,

Naren

1 REPLY 1
Read only

Former Member
0 Likes
267

Hi,

Try to store the date in a character variable..

DATA: V_CHAR(10).

DATA: V_DATE TYPE SYDATUM.

V_DATE = SY-DATUM.

WRITE: V_DATE TO V_CHAR.

WRITE: / 'Before', V_CHAR.

CLEAR: V_CHAR.

WRITE: / 'After' , V_CHAR.

Thanks,

Naren