cancel
Showing results for 
Search instead for 
Did you mean: 

&ULINE& Print Out Problem

03-02-2009 3:50 AM
445 views 5 comments
0 Likes
SAP Managed Tags
Subscribe

Hi,

I have problem when I print out the form. The problem is I have create &ULINE(75)& for the form separator. On the print perview, the lenght of line is right but after I print it to the printer. The line lenght is shorter than perview. Whatever I set it to the &ULINE(100)& . The line just go the next line either than at the end of the row.

What is the problem?

Thank you very much!

Best Regards,

Steven

0 Likes

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Likes

Hi

To get the line when data extends its better to use box format in window not &uline& .

Declare the box format, when data extends line also extends.

You can declare the box as :

/: POSITION XORIGIN '1' CM YORIGIN '8' CM

/:SIZE WIDTH '3' CM HEIGHT '17' CM

Regards,

Rajani

former_member196280
Active Contributor
0 Likes

To over come this you need to use box statement.

Close the thread once your question is answered.

Regards,

sairam

Former Member
0 Likes

Dear Sairam,

Thank you for your reply!

But for my case the line is not fix position. The line position base on how many line item would be generated.

What can I do?

Thank you very much!

Best Regards,

Steven

former_member196280
Active Contributor
0 Likes

You can follow this example,

It is little tough drawing table lines dynamically,mostly it will create a problem when you are drawing horizontal line. Make sure you increment correctly basing on line spacing otherwise horizontal line will print on the text.

Test this example before applying on your script

Example:

1) create SAPscript with main window.

2) in text editor of main window place the following code(main window)

/: BOX XPOS '2.00'CM YPOS &Y_POS&CM WIDTH 0 TW HEIGHT '0.30'CM FRAME 10 TW

/: BOX XPOS '0.00'CM YPOS &Y_POS&CM WIDTH 0 TW HEIGHT '0.30'CM FRAME 10 TW

/: BOX XPOS '5.00'CM YPOS &Y_POS&CM WIDTH 0 TW HEIGHT '0.30'CM FRAME 10 TW

/: BOX YPOS &Y_POS&CM WIDTH 5 CM HEIGHT 0 CM FRAME 10 TW

/E HEAD

/: BOX YPOS &Y_POS&CM WIDTH 5 CM HEIGHT 0 CM FRAME 10 TW

3) create a print program to call your SAPscript

REPORT ztest_007 .

DATA: y_pos(3) TYPE c.

y_pos = '0'.

CALL FUNCTION 'OPEN_FORM'

EXPORTING

form = 'Z_TEST07'

language = sy-langu.

DO 15 times.

Y_POS = Y_POS + '0.3'.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

window = 'MAIN'.

ENDDO.

Y_POS = Y_POS + '0.3'.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

ELEMENT = 'HEAD '

WINDOW = 'MAIN'.

CALL FUNCTION 'CLOSE_FORM'.

Note: Make sure to re-set Y_POS when data is overflowing to next page.

Close the thread once your question is answered.

Regards,

Sairam

Former Member
0 Likes

Dear Sairam,

Thank you for your help!

You provide information is very valueable for me.

But I have solved the problem of change the paragraph font family.

Thank you for help agian!

Best Regards,

Steven