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

Difference btw WRITE & WRITE AT .

Former Member
0 Likes
995

Please tell me the diff between write & write at. Where it is aplicable .

Vighnesh.

2 REPLIES 2
Read only

Former Member
0 Likes
842

Hi,

try this code,

DATA: text TYPE string VALUE '0123456789ABCDEF',

col TYPE i VALUE 25,

len TYPE i VALUE 5.

WRITE text.

WRITE /5(10) text.

WRITE AT col(len) text.

reward points if helpful

regards,

venkatesh

Read only

Former Member
0 Likes
842

Hey vignesh ...

We use "write at (column)" (where 'column' is a variable) when we want to change the position of the text/data dynamically. Whereas, if we use "write (/5)" , the position of the text/data will be fixed.

We use "write at" when we are not sure about the length of the column values to ensure that the complete text will be displayed.