cancel
Showing results for 
Search instead for 
Did you mean: 

Reg : Line Print in Form

Former Member
0 Kudos

Hi experts,

How to print the lines in the form ..?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

See to this link.

http://www.sap-img.com/ts003.htm.

Regards,

Revathi Bhoopal.

Answers (5)

Answers (5)

Former Member
0 Kudos

HI,

You can use the

BOX XPOS '1' CM YPOS '2.0' CM WIDTH '5.6' CM HEIGHT '0' CM FRAME 10

in the textelement of that particular window.

Goto Windows tab and Click on TextElement button or goto Edit --> textelemants.

Hope this wil help you.

regards,

Dhanalakshmi L

Former Member
0 Kudos

HI Arthi,

Select the line type in the table and assign pattern and display the lines as per your requirement.

Regards,

Sravanthi

former_member585060
Active Contributor
0 Kudos

Hi,

In your Print program in OPEN_FORM, don't pass device value

CALL FUNCTION 'OPEN_FORM'
     EXPORTING
       application = 'TX'
*       device = 'SCREEN'            " -------> Comment it
       dialog = 'X'
       form = 'YDEMO_HELLOWORLD'
       language = sy-langu
* OPTIONS = ' '
     EXCEPTIONS
       canceled = 1
       device = 2
       form = 3
       OPTIONS = 4
       unclosed = 5
       mail_options = 6
       OTHERS = 7.

" Verticle line at Y position 2 CM

/: BOX YPOS '2' CM WIDTH 0 CM HEIGHT '3' CM FRAME 10 TW

" Horizontal line at X position 2 CM

/: BOX XPOS '2' CM WIDTH '4' CM HEIGHT 0 CM FRAME 10 TW

So for as many vertical lines and horizontal lines you have to use that many BOX statement changing the XPOS, YPOS, WIDTH and HEIGHT as per your requirment.

Regards

Bala Krishna

Edited by: Bala Krishna on Aug 6, 2009 5:41 PM

Former Member
0 Kudos

/: BOX YPOS '2' CM WIDTH 0 CM HEIGHT '3' CM FRAME 10 TW

Where i need to declare this statement

sridhar_meesala
Active Contributor
0 Kudos

Hi,

You need to declare it in the editor in the SAP Script i.e there will be a button text element or by pressing F9 in the keybord.

Thanks,

Sri.

Edited by: Sri on Aug 7, 2009 9:33 AM

former_member585060
Active Contributor
0 Kudos

Hi,

Click on Page Windows, then the Window in which you want the line, and then click on the text editor, where you entered the variables to print. make sure that the XPOS, WIDTH suit your window size.

Regards

Bala Krishna

Former Member
0 Kudos

Hi Arthi,

just right it in the text element of the window. you can go to the text element in the following way.

EDIT->TEXT ELEMENTS-> right the code overthere in the text element

or use the keyboard shortcut f9.

Hope it clears,

Thank you,

Pavan.

Former Member
0 Kudos

In smartforms, you can try templates and just select the lower frame or upper frame as active to get horizontal lines

Edited by: subhajit bhadra on Aug 6, 2009 1:38 PM

sridhar_meesala
Active Contributor
0 Kudos

Hi,

I don't know whether we can print lines in script but you can print box in SAP Script and then again print another box inside it so that we get horizontal and vertical lines.

In print program:

/: box xpos'5.0'cm ypos '5.0'cm width '10.0'cm height '10' cm frame 10

/: box xpos'5.0'cm ypos '5.0'cm width '5.0'cm height '10' cm frame 10

/: box xpos'5.0'cm ypos '5.0'cm width '10.0'cm height '5' cm frame 10

This will give a horizontal and a vertical line inside the outer box.

Hope it helps you.

Thanks,

Sri.

Former Member
0 Kudos

Hai,

I tired but iam not getting

plz helppppppppp

Former Member
0 Kudos

Hi,

There are different ways of printing lines in the smartform.

1).In the output options tab of every node like window,text,template etc there is an option box and shading select the check

box of frame some times you need to check the your required check boxes in the preview showing in the output options.

2) Point1 is not allowed in the table to check that check box if its not allowed then you need to select

the pattern in your table/template in your table select the table tab for template select the template tab there you will find

a box as select pattern there you can select the pattern what you exactly want.

3).Create a window in the output options of the window select the frame check box if you want horizontal line give less

height like 0.1mm and width as you required reverse for horizontal line.

4).In your text node write shift + _ continously upto the length you reuired even you get dotted lines in your print preview

in the print out you will get exact lines.

If your problem was not solved mention your problem in much dteail, where exactly you struck.

Thanks,

Phani.