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

Initial values Formatting?

Former Member
0 Likes
856

Hi Experts,

I am getting 00.00 in my classical report for currency/discount field, so, I wuld like to hv blanks(nothing) in these fields!

So,

1- How to format it?

By the by,

2-For all Data types, How to supress their initial values on the report? like for,

C -

N -

D-

T-

etc.?????

3- Generally, How the clients / users wuld like to hv in the report?

ThanQ.

Message was edited by:

Sridhar

Message was edited by:

Sridhar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
829

2-For all Data types, How to supress their initial values on the report? like for,

C -

N -

D-

T-

<b>For all the above data types, you can say:

IF NOT <VARIABLE> IS INITIAL.

*----


ENDIF.

For internal tables, you say:

IF NOT ITAB[] IS INTIAL.

*----


ENDIF.</b>

3- Generally, How the clients / users wuld like to hv in the report?

<b>Depends upon the requirement.</b>

Thanks,

SKJ

8 REPLIES 8
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
829

I'm wondering if there is an extension to the WRITE statement, something like NO-ZEROS, not sure, check F1 help on WRITE statement.

Regards

RIch Heilman

Read only

0 Likes
829

ThanQ to all.

Read only

0 Likes
829

Hi Rich,

ThanQ for ur cont. support.

Do u hv any idea about my other thread with title,

SELECT DMBTR FROM BSEG WHERE AUGBL EQ WA_AUGBL AND KTOSL = 'SKT'-JOIN????

Actually, I wuld like to hv this title as( i.e. no JOIN),

<i><b> SELECT DMBTR FROM BSEG WHERE AUGBL EQ WA_AUGBL AND KTOSL = 'SKT????</b></i>

If so, pls. respond!

ThanQ.

Read only

0 Likes
829

Try this:

SELECT DMBTR FROM BSEG WHERE AUGBL EQ WA_AUGBL AND KTOSL

like 'SKT%'.

Thanks,

SKJ

Read only

0 Likes
829

Hi,

No, thats not the problem/am looking for!

Pls. hv a glance on my other thread with title,

SELECT DMBTR FROM BSEG WHERE AUGBL EQ WA_AUGBL AND KTOSL = 'SKT'-JOIN????

Actually, I wuld like to hv this title as( i.e. no JOIN),

<u><b>SELECT DMBTR FROM BSEG WHERE AUGBL EQ WA_AUGBL AND KTOSL = 'SKT????</b></u>

If u hv any thoughts, pls. respond!

ThaNQ.

Read only

Former Member
0 Likes
829

Hi,

You can use NO-ZERO

Ex..

DATA: V_MENGE TYPE MENGE_D VALUE '0.00'.

WRITE: / V_MENGE NO-ZERO.

Thanks,

Naren

Read only

Former Member
0 Likes
829

Hi,

Before writing this field check whether it has some value or not. If it is initial dont print/write it in the output.

Something like....

if x is not initial.

write: x.

endif.

Regards,

Bharat.

Read only

Former Member
0 Likes
830

2-For all Data types, How to supress their initial values on the report? like for,

C -

N -

D-

T-

<b>For all the above data types, you can say:

IF NOT <VARIABLE> IS INITIAL.

*----


ENDIF.

For internal tables, you say:

IF NOT ITAB[] IS INTIAL.

*----


ENDIF.</b>

3- Generally, How the clients / users wuld like to hv in the report?

<b>Depends upon the requirement.</b>

Thanks,

SKJ