Skip to Content
avatar image
Former Member

Reg : Line Print in Form

Hi experts,

How to print the lines in the form ..?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 07, 2009 at 05:52 AM

    Hi,

    See to this link.

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

    Regards,

    Revathi Bhoopal.

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 06, 2009 at 11:33 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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.

  • avatar image
    Former Member
    Aug 06, 2009 at 11:38 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 06, 2009 at 12:09 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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.

  • avatar image
    Former Member
    Aug 06, 2009 at 12:16 PM

    HI Arthi,

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

    Regards,

    Sravanthi

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 07, 2009 at 04:58 AM

    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

    Add comment
    10|10000 characters needed characters exceeded