cancel
Showing results for 
Search instead for 
Did you mean: 

Printing of sap script

Former Member
0 Kudos

Hi frnds,

i want to print 1 tp 100 in sapscript in a single page in a

vertical manner

1 6

2 7

3 8

. .

. .

how will i do it

regards,

karthik

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

You can create multiple MAIN windows and line them up horizontally. e.g. if you want to have five rows, create five MAIN windows in page window. You can number them and all act as Main but print program accesses from the smaller number.

I used this technique when I developed label printing form. The program can be very simple.

Cheers,

Akio

Former Member
0 Kudos

hi

good

while designing the sapscript you can design your page with vertical printing, and use PROTECT AND ENDPROTECT statement to print the data into a single page.

for vertical->

Print-control Y1

... Text to print vertical

Print-control Y2

Y1 informs the printer to print the following text vertically and Y2 informs the printer to return to horizontal printing. You'll have to look for the specific print sequences in the documentation of your printer type.

thanks

mrutyun^

Former Member
0 Kudos

Hi,

Try this..

Hi,

Print program

-


DATA: V_NEW TYPE XFELD.

DATA: V_LINES TYPE INT4.

LOOP AT ITAB.

AT FIRST.

V_NEW = 'X'.

ENDAT.

V_LINES = SY-TABIX MOD 10.

IF V_LINES = 0.

V_NEW = 'X'.

ENDIF.

CALL FUNCTION 'WRITE_FORM'...

ENDLOOP.

Sapscript form

-


/: IF V_NEW = 'X'

  • Print the data in a new line for every 4 values..

/ ITAB-DATA

/: ELSE.

/* Print it in the same line

= ,,ITAB-DATA

/: ENDIF

The above logic will work for printing 10 records in a line...

Thanks,

Naren