cancel
Showing results for 
Search instead for 
Did you mean: 

how to enter texts in the boxes ?

Former Member
0 Kudos

Hello Friends,

I have created a number of boxes using vertical and horizontal lines . Now How do i position texts exactly in the box where it needs to be ? I know there tabs but how do i position the y axis . Say i want some texts to enter in the first line of the boxes and then on the second line . Can you tell me how do i position them ?

THANKS ,

Hari

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Hari,

Yes, You can position in text in boxes with the help of POSITION command only.

You can position texts in scripts using only with the help of POSITION statement or by creating tabs in a paragraph format.

Thanks,

Vinay

Answers (2)

Answers (2)

Former Member
0 Kudos

Here it is

<b>1) You can use WRITE AT</b>

<b>REPORT zkb_test2.

WRITE AT 20(10) 'Welcome'.</b>

<b>2) Same using WRITE</b>

I am displaying hard coded text in box using WRITE + data selected using queries.

REPORT zkb_test2 LINE-SIZE 50.

DATA: i_scarr TYPE TABLE OF scarr,

w_scarr TYPE scarr.

START-OF-SELECTION.

SELECT * FROM scarr INTO TABLE i_scarr.

<b> WRITE: /1 sy-vline , 3 'Cnt', 7 sy-vline, 9 'Id',

13 sy-vline, 15 'Carrier Name', 40 sy-vline , 42 'Currency', 50 sy-vline.</b>

uline.

LOOP AT i_scarr INTO w_scarr .

<b> WRITE: /1 sy-vline , 3 w_scarr-mandt, 7 sy-vline, 9 w_scarr-carrid,

13 sy-vline, 15 w_scarr-carrname, 40 sy-vline , 42 w_scarr-currcode, 50 sy-vline.</b> ULINE.

ENDLOOP.

Regards

Kathirvel

Former Member
0 Kudos

Youc can specify the position in the write statement,

REPORT zkb_test2.

DATA: i_scarr TYPE TABLE OF scarr,

w_scarr TYPE scarr.

START-OF-SELECTION.

SELECT * FROM scarr INTO TABLE i_scarr.

ULINE.

LOOP AT i_scarr INTO w_scarr .

<b> WRITE: /1 sy-vline , 3 w_scarr-carrid, 6 sy-vline.</b>

ULINE.

ENDLOOP.

Regards

Kathirvel

Former Member
0 Kudos

Hi ,

Thanks . But I need to hard code like NAME , PERSONAL NO , DATE headings in the boxes . I am trying to do that in the form itself . Will that work ?? Do I need to used the WRITE statement ???

Please let me know .

Regards,

Hari