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: 

Difference btw WRITE & WRITE AT .

Former Member
0 Kudos

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

Vighnesh.

2 REPLIES 2

Former Member
0 Kudos

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

Former Member
0 Kudos

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.