Skip to Content
0
Former Member
Jan 07, 2008 at 09:32 AM

Values not getting aligned properly in the o/p

17 Views

Hi,

I am working on a report program.My requirement here is to add 3 fields in the selection screen(MRP Controller(marc-dispo),Production scheduler(marc-fevor) and date fields).Mrp controller and production scheduler fields should also be added in the o/p.I have added those two fields between BOH and PS fields in the o/p.Now there is alignment problem.The values are not getting populated under the corresponding field propely.When I try to change the line numbers of the field values according to field header in the o/p,the values r completly missing.Can anyone tell me the proper solution for this?

I am sending a part of my code.Pls check it.

WRITE: /05 'QC'(004),

32 'MRP'(028),

43 'PRODUCTION'(029),

63 'PLNT'(022),

75 'DIST'(023),

80 'QTY'(008),

86 'PROD'(006),

91 'OPEN'(007),

96 'QTY'(008),

WRITE: /10 'BOH'(005),

14 'MODEL NUMBER'(017),

32 'CONTROLLER'(026),

43 'SCHEDULER'(027),

54 'PS'(019),

58 'BOH'(005),

63 'STAT'(024),

75 'STAT'(024),

80 'DELIV'(025),

86 'PLAN'(009),

91 'ORDS'(010),

96 'AVAIL'(011),

IF p_ztotal = ' '. "line

WRITE 18 ls_stock-matnr.

WRITE 38 lv_stock-strgr.

ELSEIF ztotal = 'S'. "subtotal

WRITE: 15 ls_stock-nrmit.

WRITE 32 lv_stock-dispo.

WRITE 43 lv_stock-fevor.

ELSE. "total

WRITE: 15 'TOTAL'(016), ls_stock-prgrp.

ENDIF.

print 41 lv_stock-ustock.

print 49 lv_stock-pdtpp. .

print 57 lv_stock-popnordqty.

print 65 lv_stock-pdqtyav.

WRITE 72 '|'.

print 49 lv_stock-mmsta.("plant status )

print 57 lv_stock-vmsta.("distribution status )

print 65 lv_stock-lfimg.("qty delivered )

print 73 lv_stock-pdtpp.(production plan)

print 81 lv_stock-popnordqty.(open orders )

print 89 lv_stock-pdqtyav.(quantity available)

WRITE 97 '|'.

Regards,

Hema