08-04-2008 8:28 AM
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
08-04-2008 8:29 AM
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.
08-04-2008 8:31 AM
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
08-04-2008 8:36 AM
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