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

SKIP Statement

Former Member
0 Likes
960

Using SKIP Statement we can skip the lines in row wise in the list output.

How can we skip in column wise ?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
941

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

8 REPLIES 8
Read only

Former Member
0 Likes
941

Hi Manjunath,

You can do this way ....Specify the position beside the field where you want the field to be ....


 write : 25 itab-matnr.

Read only

Former Member
0 Likes
942

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

Read only

0 Likes
941

I also answered in the same way in an interview.

But they told that there is a KEYWORD for that ..... What is that ?

Read only

0 Likes
941

Hi,

POSITION <pos>.

I think u r looking for this Keyword.

Regards,

Madhumitha

Read only

0 Likes
941

Hi Manjunath ,

The keyword is POSITION .

Hope this solves your query

Regards

Arun

Read only

0 Likes
941

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.

Read only

0 Likes
941

How to use ? Ex; ?

Read only

0 Likes
941

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