Skip to Content
author's profile photo Former Member
Former Member

Values not getting aligned properly in the o/p

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?

Regards,

Hema

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2008 at 05:48 AM

    Hi

    U ban use uNDER keyword to print the valuse exactly under the column labels

    Ex:

    write: / Col1.

    Loop at itab

    write: / itab-col1 under COL!

    endloop.

    Narendra

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2008 at 05:51 AM

    Hi Hema,

    Can you show your code.

    Regards,

    Atish

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 07, 2008 at 05:56 AM

    I am sure its the problem with the Field catalog of the report...

    check the below code .. u might get an idea of how to fix it.

    fc-tabname = 'LIST'.

    fc-fieldname = 'MEINS'.

    fc-ref_tabname = 'MARA'.

    fc-seltext_l = 'WMU'.

    fc-seltext_m = 'WMU'.

    fc-seltext_s = 'WMU'.

    APPEND fc. CLEAR fc.

    *New code

    fc-fieldname = 'DUMMY'.

    fc-tabname = 'LIST'.

    fc-row_pos = '2'.

    fc-outputlen = 59.

    APPEND fc. CLEAR fc.* << you might be missing this in ur code

    fc-tabname = 'LIST'.

    fc-fieldname = 'KUNRES'.

    fc-row_pos = '2'.

    fc-seltext_s = 'Total'.

    fc-do_sum = 'X'.

    APPEND fc. CLEAR fc.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      This is not an alv report.It is a normal report.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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.