‎2008 May 09 6:25 AM
Using SKIP Statement we can skip the lines in row wise in the list output.
How can we skip in column wise ?
‎2008 May 09 6:54 AM
Hi,
Use
WRITE: itab_slno,
25(18) ITAB-MATNR.
here 25 stands for space between 'serial no' and 'material number'.
18 stands for the material number to be printed ie., restricting the material number for 18 characters.
thanks & regards
Kishore Kumar Maram
‎2008 May 09 6:27 AM
Hi Manjunath,
You can do this way ....Specify the position beside the field where you want the field to be ....
write : 25 itab-matnr.
‎2008 May 09 6:54 AM
Hi,
Use
WRITE: itab_slno,
25(18) ITAB-MATNR.
here 25 stands for space between 'serial no' and 'material number'.
18 stands for the material number to be printed ie., restricting the material number for 18 characters.
thanks & regards
Kishore Kumar Maram
‎2008 May 09 7:29 AM
I also answered in the same way in an interview.
But they told that there is a KEYWORD for that ..... What is that ?
‎2008 May 09 7:34 AM
Hi,
POSITION <pos>.
I think u r looking for this Keyword.
Regards,
Madhumitha
‎2008 May 09 7:35 AM
Hi Manjunath ,
The keyword is POSITION .
Hope this solves your query
Regards
Arun
‎2008 May 09 7:37 AM
If it is an ALV report then use OUTPUTLEN keyword.
ex:
fieldcat-outputlen = 20.
If it is a classical report you can use POSITION format.
ex:
write: /position(length) field.
write: /20(10) itab-matnr.
Regards,
Dara.
‎2008 May 09 7:49 AM
‎2008 May 09 8:45 AM
Hi,
Chk this:
data: begin of itab occurs 0,
v1 type i,
v2 type i,
v3 type i,
ind(1),
end of itab.
itab-v1 = 40. itab-v2 = 45. itab-v3 = 444.
append itab.
CLEAR ITAB.
read table itab with key v1 = 40.
SKIP TO LINE 5. POSITION 20.
write:/ sy-tabix.regards,
madhumitha