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: 

asterisk appearing before fields in list output

Former Member
0 Kudos

Hi,

I have a list as output which contain asterisk ( * ) before field values of a few columns.

Plz help how to rectify it.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

some times it may happen for the field length. i.e. your displaying length is shorter than the field content legth. Suppose your field ITAB-NO contains the value 55555 but you are displaying length 2 like WRITE : / 3(2) ITAB-NO. here you can get a * before 5. Because you are specifying length 2 for displaying the itab-no. Just check the length of those fields which are giving you * and increase the displaying length.

regards

shiba dutta

5 REPLIES 5

abdulazeez12
Active Contributor
0 Kudos

You want to remover the asteric? Can u send the code what exactly u r doing there?

0 Kudos

<u><i>Here's the code snipplet:</i></u>

<u>MENGE1, MENGE2 & G_DIFFERENCE contains the asterisk marks.</u>

FORM WRITE_OUTPUT_LEVEL_0.

TOGGLE G_LINE.

case G_LINE.

when 0.

format intensified color COL_NORMAL. "grey

when 1.

format color COL_NORMAL intensified off. "bright grey

endcase.

G_Difference = I_OUTPUT-menge2 - I_OUTPUT-menge1.

if I_OUTPUT-DMBTR_IN ne 0.

G_Percentage = I_OUTPUT-DMBTR_OUT / I_OUTPUT-DMBTR_IN * 100.

elseif I_OUTPUT-DMBTR_OUT lt 0.

G_Percentage = -100.

else.

G_Percentage = 100.

endif.

new-line.

*-----> 20041215 cthri salesorder

If not I_OUTPUT-EBELN is initial.

write: SY-VLINE, (11) I_OUTPUT-EBELN.

else.

shift I_output-vbeln left deleting leading '0'.

concatenate 'S' I_OUTPUT-VBELN INTO G_VBELN_OUT.

write: SY-VLINE, (11) G_VBELN_OUT.

endif.

*<----- 20041201 cthri salesorder

write:

SY-VLINE, I_OUTPUT-VBUND_IN,

SY-VLINE, I_OUTPUT-VBUND_OUT,

  • SY-VLINE, (9) I_OUTPUT-MENGE1 decimals 0 right-justified,

SY-VLINE, (9) I_OUTPUT-MENGE1 ,

SY-VLINE, I_OUTPUT-MEINS1,

  • SY-VLINE, (9) I_OUTPUT-MENGE2 decimals 0 right-justified,

SY-VLINE, (9) I_OUTPUT-MENGE2 ,

SY-VLINE, I_OUTPUT-MEINS2,

  • SY-VLINE, (8) G_Difference decimals 0 right-justified,

SY-VLINE, (8) G_Difference ,

SY-VLINE, (11) I_OUTPUT-DMBTR_IN decimals 2 right-justified,

SY-VLINE, (11) I_OUTPUT-DMBTR_OUT decimals 2 right-justified,

SY-VLINE, (5) G_Percentage right-justified, '%',

SY-VLINE.

Former Member
0 Kudos

some times it may happen for the field length. i.e. your displaying length is shorter than the field content legth. Suppose your field ITAB-NO contains the value 55555 but you are displaying length 2 like WRITE : / 3(2) ITAB-NO. here you can get a * before 5. Because you are specifying length 2 for displaying the itab-no. Just check the length of those fields which are giving you * and increase the displaying length.

regards

shiba dutta

Former Member
0 Kudos

hi,

it might be that u had declared as a field of n length and in the output the actual value of the field might be less than n.

i.e

data: suresh(10) type i.

suresh = 123.

the remaining space is filled with 0's. so check ur declaractions and debug them where u r getting * to ur fields.

or use clear statement if required to clear all the header data.

if helpful reward some points.

with regards,

Suresh Aluri.

dev_parbutteea
Active Contributor
0 Kudos

Hi,

actually this happens when we declare a numeric field of length e.g 10 and the value in that field exceeds 10 characters. so, you need to increase the length of that field.

Regards