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 statement

Former Member
0 Likes
495

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
Read only

Former Member
0 Likes
467
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.
Read only

Former Member
0 Likes
467

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

Read only

Former Member
0 Likes
467

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