Application Development and Automation 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: 
Read only

Write Statment

rahul2000
Contributor
0 Likes
271

Can anyone please send me a sample code using WRITE statment,through which using

SY-ULINE and SY-VLINE, we can get rows and colums.I dont want it via ALV.

Some data in those rows and columns will be of great help.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
251

Hi Rahul Bhat,

Do something like below...

modify the code according to ur need and change then numerical values according to the size of the fields in internal table...


loop at it.
at first.
  write : /2 sy-uline(90).
  write : /2 sy-vline, 'Material Mo' color 1,17 sy-vline ,'field2' color
 1, 30 sy-vline
  ,'field3' color 1, sy-vline ,49 field4' color 1,60 sy-vline.
      write : /2 sy-uline(90).
    endat.

   write : /2 sy-vline , it-matnr ,17 sy-vline,  it-ernam ,30 sy-vline ,
 it-matnr  ,41 sy-vline , it-aenam ,60  sy-vline.


    AT LAST.
      write : /2 sy-uline(90).
      write : /55 'Thank you ' color 3 inverse on.
      write : /2 sy-uline(90).
    endat.
  endloop.

Hope it will solve ur problem..

<b>Reward points if useful...</b>

Thanks & regards

ilesh 24x7

1 REPLY 1
Read only

Former Member
0 Likes
252

Hi Rahul Bhat,

Do something like below...

modify the code according to ur need and change then numerical values according to the size of the fields in internal table...


loop at it.
at first.
  write : /2 sy-uline(90).
  write : /2 sy-vline, 'Material Mo' color 1,17 sy-vline ,'field2' color
 1, 30 sy-vline
  ,'field3' color 1, sy-vline ,49 field4' color 1,60 sy-vline.
      write : /2 sy-uline(90).
    endat.

   write : /2 sy-vline , it-matnr ,17 sy-vline,  it-ernam ,30 sy-vline ,
 it-matnr  ,41 sy-vline , it-aenam ,60  sy-vline.


    AT LAST.
      write : /2 sy-uline(90).
      write : /55 'Thank you ' color 3 inverse on.
      write : /2 sy-uline(90).
    endat.
  endloop.

Hope it will solve ur problem..

<b>Reward points if useful...</b>

Thanks & regards

ilesh 24x7