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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To over come this you need to use box statement.
Close the thread once your question is answered.
Regards,
sairam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.