Application Development 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: 

Initial values Formatting?

Former Member
0 Kudos

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

Former Member
0 Kudos

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

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

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

0 Kudos

ThanQ to all.

0 Kudos

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.

0 Kudos

Try this:

SELECT DMBTR FROM BSEG WHERE AUGBL EQ WA_AUGBL AND KTOSL

like 'SKT%'.

Thanks,

SKJ

0 Kudos

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.

Former Member
0 Kudos

Hi,

You can use NO-ZERO

Ex..

DATA: V_MENGE TYPE MENGE_D VALUE '0.00'.

WRITE: / V_MENGE NO-ZERO.

Thanks,

Naren

Former Member
0 Kudos

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.

Former Member
0 Kudos

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