Application Development 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: 

write statement

Former Member
0 Kudos

hi experts

i have this write statment:

WRITE: 'code for packing:'(h16).

LOOP at pack_data WHERE matnr = mat_data-matnr.

WRITE: AT 19 pack_data-code.

skip 1.

ENDLOOP.

i dont understand why after the command skip it goes down two rows and not one as supposed to.

thanks

amit

3 REPLIES 3

former_member181995
Active Contributor
0 Kudos
WRITE: 'code for packing:'(h16).
LOOP at pack_data WHERE matnr = mat_data-matnr.
WRITE: AT 19 pack_data-code."check in debug may be this write statement causes of one blank line.
skip .
ENDLOOP.

Former Member
0 Kudos

Hi,

If you use SKIP, it will skip 1 line but in your coding you are using SKIP1 so it will skip 2 lines....

So change skip 1 to skip....

WRITE: 'code for packing:'(h16).

LOOP at pack_data WHERE matnr = mat_data-matnr.

WRITE: AT 19 pack_data-code.

skip.

ENDLOOP.

Regards,

Harish

Former Member
0 Kudos

I agree with Amit, the variable pack_data-code is probably coming with a new line, maybe with a preceding "/".

SKIP 1 and SKIP have the same effects.

Avraham