Skip to Content
0
Former Member
Sep 11, 2007 at 06:03 PM

Balnk line in the display

24 Views

Hi,

My output is having a blank line between heading and data. Can you please help me find out why it is comming like that. I have Uline, Headings, Uline, blank line, Data, Uline.

Thanks,

Neelu.

uline.
PERFORM headings.
uline.
PERFORM displaydata.
uline.


FORM headings.
*  WRITE: /01(253) sy-uline.
*uline 01(253).
  WRITE: /01 sy-vline,
              02 'CB',
              04 sy-vline,
              05 'SOrg',
              10 sy-vline,
              11 'DCh',
              14 sy-vline,
              15 'Div',
              18 sy-vline,
              19 'Customer #',
              30 sy-vline,
              31 'Customer Name',
              67 sy-vline,
              68 'Material #',
              87 sy-vline,
              88 'Cr Date',
              98 sy-vline,
              99 'Eff Date',
              110 sy-vline,
              111 'Old Price',
              127 sy-vline,
              128 'New Price',
              145 sy-vline,
              146 'Req Qty',
              157 sy-vline,
              158 'Actual qty',
              169 sy-vline,
              170 'Type',
              175 sy-vline,
              176 'Price Protection #',
              212 sy-vline,
              213 'Plant',
              218 sy-vline,
              219 'Reasn',
              223 sy-vline,
              224 'Ref #',
              241 sy-vline,
              242 'Crmemo #',
              253 sy-vline.
*  WRITE: /01(253) sy-uline.
ENDFORM.                    " headings


FORM displaydata.
  SET PF-STATUS 'LIST'.
  NEW-PAGE LINE-SIZE 253.

  SELECT * FROM zppprice
           INTO TABLE gt_zprice.

  LOOP AT gt_zprice INTO gs_zprice.

    SELECT SINGLE name1 FROM kna1 INTO kna1-name1
                   WHERE kunnr = gs_zprice-kunnr.

    WRITE: /01 sy-vline,
            02 chbox AS CHECKBOX,
            04 sy-vline,
            05 gs_zprice-vkorg,
            10 sy-vline,
            11 gs_zprice-vtweg,
            14 sy-vline,
            15 gs_zprice-spart,
            18 sy-vline,
            19 gs_zprice-kunnr,
            30 sy-vline,
            31 kna1-name1,
            67 sy-vline,
            68 gs_zprice-matnr,
            87 sy-vline,
            88 gs_zprice-crdate,
            98 sy-vline,
            99 gs_zprice-efdate,
            110 sy-vline,
            111 gs_zprice-sprice,
            127 sy-vline,
            128 gs_zprice-eprice,
            145 sy-vline,
            146 gs_zprice-eohqty,
            157 sy-vline,
            158 gs_zprice-aohqty,
            169 sy-vline,
            170 gs_zprice-auart,
            175 sy-vline,
            176 gs_zprice-bstkd,
            212 sy-vline,
            213 gs_zprice-werks,
            218 sy-vline,
            219 gs_zprice-augru,
            223 sy-vline,
            224 gs_zprice-xblnr,
            241 sy-vline,
            242 gs_zprice-crmemo,
            253 sy-vline.
  ENDLOOP.