Main Window Separation line problem

I want to draw separation line for each column in Smartforms Main Window.
I have created a table for loop and show the detail information of item lv data and click the pattern to separate the each column by line.
But my problem is the separation line stop when end of item loop and i want the line to stop end of Main Window, how can i make it ?
Thanks

Hi,
Try to give the width of uline same as main window width.
&ULINE( )& in the brackets mention the width.
Hope this may be useful.
Regards,
Prashant

Similar Messages

  • Script Main window Width Adjustment Problem

    Hi All,
    I'm working on an existing Z script. In that I cant able to change the width of the Main window. It shows in Display mode.
    Help me to solve this.
    Points assured.
    Regards,
    Viji.

    The probelm for this is you original language is different from the language which you key in in your script.
    To modify the main window, follow the below steps.
    1) Go to SE71, give your form name, Display. Goto Header details, administrative Data and find out the original language, Ex, DE.
    2) Go back to SE71, give form name and Language i.e., original language name identified in step 1 and click change. Now change your main window dimensions and adjust the width according to your requirment,save activate..now it will automatically reflects the changes for all languages.
    3) Go back to SE71, give form name and language, now you will see the main window width is adjusted.
    Close the thread once your question is answered.
    Regards,
    SaiRam

  • Smartform problem how to make second page main window dynamic?

    Hi SAP Community,
    I am facing a problem with designing a smartform. I have taken a table in the main window of the first page, and the main window length varies according to the number of entries in the table. If the records are more than that can be adjusted in the first page then the ramaining records move to the second page main window. After the second page main window i have defined a window which i have marked to get displayed after the main window, but the problem i am facing is that that the second page main window is geting overlapped with the window defined to come after it. Can any one help me with how to control the length of second page main window dynamically.
    Regards,
    Tushar

    Hi,
    Normally, to trigger next page the main window is mandatory.
    However, if the contents of main window are not sufficient enough to move over to next page then the next page would not get trigerred.
    Moreover, please check whether the table of contents in the first page are also existing in the next page otherwise you need to trigger a new page by using a command.
    Also please direct the next page of SECOND page to SECOND itself and check.
    Regards,
    Ram

  • [Urgent] How to Print Main Window Twice ??

    Hi Everyone,
    I am making a Prenum Check which has
    1 Main Win 00 : Invoiced Item Lines for the Check Payment
    2 Check Window: A Check to be printed
    3 Main Win 01 : Copy of Main Win 00
    The Main Window has Line Items of the Payment Invoices for Vendor, which can flow across multiple pages.So I cannot use NEW-WINDOW. I cannot make the changes in SAP Program. Please help me sorting out this issue with some small PERFORM Code which will copy contents of current main window and print it back in new window on the same page.
    Please Help me....
    Thanks in Advance.
    Regards,
    Abhsihek B.

    HII
    HAVE ALOOK AT THE CODE
    TABLES : KNA1 , T005T.
    SELECT-OPTIONS : S_KUNNR FOR KNA1-KUNNR.
    DATA : BEGIN OF ITAB OCCURS 0,
           KUNNR LIKE KNA1-KUNNR,
           NAME1 LIKE KNA1-NAME1,
           LAND1 LIKE KNA1-LAND1,
           LANDX LIKE T005T-LANDX,
           END OF ITAB.
    DATA : V_LANDX TYPE T005T-LANDX.
    DATA : IT_STEXT TYPE TLINE OCCURS 0 WITH HEADER LINE.
    START-OF-SELECTION.
      SELECT KUNNR NAME1 LAND1 FROM KNA1 INTO CORRESPONDING FIELDS OF TABLE
    ITAB WHERE KUNNR IN
    S_KUNNR.
      LOOP AT ITAB.
    SELECT SINGLE LANDX FROM T005T INTO (V_LANDX) WHERE LAND1 = ITAB-LAND1.
        ITAB-LANDX = V_LANDX.
        MODIFY ITAB INDEX SY-TABIX.
      ENDLOOP.
        CALL FUNCTION 'OPEN_FORM'
         EXPORTING
         APPLICATION                       = 'TX'
         ARCHIVE_INDEX                     =
         ARCHIVE_PARAMS                    =
         DEVICE                            = 'PRINTER'
         DIALOG                            = 'X'
           FORM                              = 'Z50653_PAGE1'
           LANGUAGE                          = 'E'
         OPTIONS                           =
         MAIL_SENDER                       =
         MAIL_RECIPIENT                    =
         MAIL_APPL_OBJECT                  =
         RAW_DATA_INTERFACE                = '*'
         SPONUMIV                          =
       IMPORTING
         LANGUAGE                          =
         NEW_ARCHIVE_PARAMS                =
         RESULT                            =
         EXCEPTIONS
           CANCELED                          = 1
           DEVICE                            = 2
           FORM                              = 3
           OPTIONS                           = 4
           UNCLOSED                          = 5
           MAIL_OPTIONS                      = 6
           ARCHIVE_ERROR                     = 7
           INVALID_FAX_NUMBER                = 8
           MORE_PARAMS_NEEDED_IN_BATCH       = 9
           SPOOL_ERROR                       = 10
           CODEPAGE                          = 11
           OTHERS                            = 12
        IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
        CALL FUNCTION 'START_FORM'
         EXPORTING
           ARCHIVE_INDEX          =
           FORM                   = 'Z50653_PAGE1'
           LANGUAGE               = 'E'
           STARTPAGE              = 'PAGE1'
           PROGRAM                = ' '
           MAIL_APPL_OBJECT       =
         IMPORTING
           LANGUAGE               =
         EXCEPTIONS
           FORM                   = 1
           FORMAT                 = 2
           UNENDED                = 3
           UNOPENED               = 4
           UNUSED                 = 5
           SPOOL_ERROR            = 6
           CODEPAGE               = 7
           OTHERS                 = 8
        IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
      LOOP AT ITAB.
          CALL FUNCTION 'WRITE_FORM'
           EXPORTING
             ELEMENT                       = ' '
            FUNCTION                       = 'SET'
            TYPE                           = 'BODY'
             WINDOW                         = 'MAIN'
           IMPORTING
             PENDING_LINES                  =
           EXCEPTIONS
             ELEMENT                        = 1
             FUNCTION                       = 2
             TYPE                           = 3
             UNOPENED                       = 4
             UNSTARTED                      = 5
             WINDOW                         = 6
             BAD_PAGEFORMAT_FOR_PRINT       = 7
             SPOOL_ERROR                    = 8
             CODEPAGE                       = 9
             OTHERS                         = 10
          IF SY-SUBRC <> 0.
            MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
         endloop.
        CALL FUNCTION 'CLOSE_FORM'
       IMPORTING
         RESULT                         =
         RDI_RESULT                     =
       TABLES
         OTFDATA                        =
         EXCEPTIONS
           UNOPENED                       = 1
           BAD_PAGEFORMAT_FOR_PRINT       = 2
           SEND_ERROR                     = 3
           SPOOL_ERROR                    = 4
           CODEPAGE                       = 5
           OTHERS                         = 6
        IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.

  • Read header text from vf01 and print in script main window

    Hi Gurus,
               I need to read text from vf01 header note 1, there user type max 10 lines i want to read that 10 lines and print in sap script main window after line item printed. i used read text but  one line only  fetched. i declare variable like  data : NEXRSP LIKE TLINE-TDLINE and read_text function module. pls provide solution for this.
    Regards
    G.Vendhan

    HI GURUS,
    Thank u for reply i declare like
        ID = '0002'.
        PERFORM READTEXT USING EN NAME OBJECT ID TEXT_OUTPUT.
        NEXRSP = TEXT_OUTPUT . CLEAR TEXT_OUTPUT.
    FORM READTEXT  USING    P_EN
                            P_NAME
                            P_OBJECT
                            P_ID
                            P_TEXT_OUTPUT.
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
          CLIENT                  = SY-MANDT
          ID                      = P_ID
          LANGUAGE                = P_EN
          NAME                    = P_NAME
          OBJECT                  = P_OBJECT
        TABLES
          LINES                   = LINES
        EXCEPTIONS
          ID                      = 1
          LANGUAGE                = 2
          NAME                    = 3
          NOT_FOUND               = 4
          OBJECT                  = 5
          REFERENCE_CHECK         = 6
          WRONG_ACCESS_TO_ARCHIVE = 7
          OTHERS                  = 8.
       LOOP AT LINES.
        P_TEXT_OUTPUT =  LINES-TDLINE.
        EXIT.
       ENDLOOP.
      FREE LINES. CLEAR LINES.
      ENDFORM.                    " READTEXT

  • Displaying bottom text of main window in box?

    Hi all ,
    I am working with a sap script, where i need to display standard text in box at end of the main window.
    The problem is i am unable  to set the dynamic position of the box at bottom of the main window .
    please help me to fix this problem?
    Thanks,
    Vamshi.
    Edited by: VAMSHI KRISHNA on Oct 29, 2008 12:04 AM

    Hi Gustavo,
    Thanks for your reply.
    But here my requirement is the text should be displayed immediately after the data in main window is printed . If i used the bottom window , then it will display exactly in that position despite of the main window data.
    So Is there any way to display text in box dynamically, after main window data is completed?
    Thanks,
    Vamshi.

  • More than 1 main window in forms

    hi all,
    before the question pls see below first :
    Next Main Window: NEW-WINDOW
    Each page can consist of up to 99 main windows. Each main window is assigned a consecutive identifying number (0..98), and the windows are filled in this order. This feature enables SAPscript to print labels and to output multi-column text. When one main window fills up, the next main window on that page is taken, if there is a next one. A page break is inserted after the last main window.
    You can use the NEW-WINDOW command to call the next main window explicitly, even if the current main window is not yet full. If you are in the last main window of the page, the command has the same effect as the NEW-PAGE command.
    Syntax:
    /: NEW-WINDOW
    does someone can give me a detail view about how to use several main windows in 1 page ? both in smartforms and sapscript.
    pls say more clearly .
    best regards
    kevin

    Hi,
    Ya in smartform u can not create more than one main window. u can use final window after using main window but one problem with final window is u can not define any window after that so that try to create it in only last window.
    As for main window a page can have only one.
    You may have number of Variable windows
    Main window can only be one. One it can be copied to next page.
    but secondary window as many as u want.
    Regards
    Vasu

  • Overflow of Main window data in to variable windows

    Hi,
    I have a following scenario. I have a main window . I defined some other variable windows below the  main window. My problem is that when the data is full in main window it is not triggering page break and printing variable window in the next page. Instead, the data is priting in the first page it self mingling with the data of the variable windows. Any solutions please?

    Are you giving the next page  as the second page in the first page General Attributes?
    Have you checked any checkboxs in the conditions tab of the table node?
    Regards,
    Satish
    Message was edited by:
            Satish Panakala

  • Problem with line items print in Script MAIN window.

    Dear Friends,
    I am facing a problem with display the line items in main window.
    Here i have created my form with 2 pages,
    in first page i have created header window(my header information is full length of page), in second page i have created 2 windows, one for MAIN window and second for FOOTER window,
    i am having the Footer information about to off the page.
    and in my main window total 3 line items are coming, if i am having 3 line items then it is displaying properly (first 3 line items then immediately footer information on same page) but if am having more then 3 line items say four, then in my second page first it is printing 3 line items then it is switching into another page. After that footer is coming but. in previous page after printing 3 line items the remaining page is empty..
    my client want me to remove that place also. he wants to display continue..
    i think so u people r understand what is my problem...pls advice me what i want to do to solve this problem.
    Thanks
    Sridhar.

    Hi Sridher,
    If you want to display the footer information only on the last page why dont you use a table to display your details and place the footer details in the table footer instead of a seperate footer window.
    Regards,
    Vidya.

  • Problem in dynamically handling the number of line Items in Main Window

    Hi Gurus,
    I want to know is there any way by which we can handle the Line items that is being Printed in the Main Window.i.e can we split a Line item to the next/subsequent page if it is not fitting in the First/subsequent page.
    Please throw some light .
    Regards,
    Asish Dash

    Hi Haritha,
    No,  suppose there are 10 line items.suppose the 10th value is not fitting in the first page and some part gets printed in the first page and the rest is splitted to the second page.What I want is the whole 10th line item value should come in the second page i.e if the line item value doesnot fit in the First page then the whole value should get printed in the second page.
    Regards .
    Asish Dash

  • Display  6 line items and total in main window

    Hi,
    I want to display only 6 line items in main window( on first page and also total of the main window of first page), and consecutively in all the apges i want to display only 6 line itms and total in each page of main window, how to write logic for this.
    Thanks,
    Donlad

    Hi r u talking about Snmartform if yes
    Let us take the page you are using as PAGE1, you can achuve this using the Command Node. call the same page after 6 items as follows
    1.create Table.--->Main area , Header and footer.
    2.Declare a variable V_count type sy-tabix.
    a.Now click on the table tab>Main Area>right Create>Command (insert a command node after the Line type you r using to print the data), in this COMMAND node give the condition V_COUNT = 6. GOTO>PAGE1 (it maens you r  triggering the new page after the 6 lines.
    b. after this command noder insert the Program lines heate increase the value of V_COUNT.
    Maintain another variable the use that for page totals...
    total can be doneautomatically by using the TABle-->CALCULATION TAB.
    let me know if you more clear info, iam sure u r problem willbe solved.

  • How to print horizantal lines in smartforms main window  table

    hi ABAP gurus,
           i am faceing the problem in smartforms main window, i created the table, in that header, main area, footer is coming and i am created the line type in that five culamns, i am specifing the header and main area data, after the printing the header information, in main area 5 record or more than 5 records,each record after one harizantel line,  it will be print a table maner i.e 5 culamns and more than 5 rows in a table.
    thanks,
    raj.

    Hi,
    Double click on the table.
    Click on Select pattern icon>Display framed Pattern>Select the Second one (1 row 2nd column)
    Regards
    Sandipan

  • Vertical line issue in SAP Script main window

    Hi All,
    I want to draw a vertical line in my main window in SAP Script output.
    But problem is in main window i am printing some texts at the beggining then i am printing line items.
    So this is not fixed line (box). It may increase/decrease based on text available before line items.
    How can i manage this prining vertival line as i don't know height, top of this line!
    Thanks in advance.
    Thanks,
    Deep.

    Hai Deep,
    Use Elements as suggested by Kodarapu.
    Now goto Paragraph Formats create a format for Item lines.
    ex.
    Name Paragraph Format as 'IL' Now click on the Push Button "Tabs" on bottom Right.
    now in "Tab Position" enter the spacing that you need for your item dispaly
    ex.
    Number     Tab position       Alignment
    1               6.00   CH          LEFT
    2               25.00  CH         LEFT
    3               54.00  CH         LEFT
    The above example is for 3 items
    Now in your Script Windows-> Main
    do the following.
    /E           ITEM_LINE_A
    IL           &EKPO-EBELP&,,&EKPO-EMATN&,,,,&EKPO-TXZ01&
    Hope it SOlves your Issue.
    Cheers,
    Suvendu

  • Frame line not display in next page of main window

    hi Xpert,
    I am creating layout in SAP SCRIpt,it working fine only the main window of next page  frame line is not display.
    i m define next page as a FIRST page and writing main window of first page following coding
    /:           POSITION XORIGIN '0.50' CM YORIGIN '7.75' CM
    /:           SIZE HEIGHT '17' CM WIDTH '19.25' CM
    /:           BOX  FRAME 10 TW
    when i run the program first page are coming properly and only when i go in second page of output then main window lines not displaying.
    please guide me how to solve this problem.
    Regards,
    pravin

    Hi Praveen,
    In that case why you have to make the main window in the first page and secondry window.
    You can use it as manin window itself. Print the total amount in the main window itself in the first page. and copy that main window to the second page.
    In the first page under the main window create a text. and there u print the total value and text.
    Now copy the main window to the second page..only COPY DONT CREATE NEW.
    In the second page now under the main window create the table to print the line items. What every u add in the second page main window it will come in the first age also in the smartforms. But it will nto get printed in the first page.After the text to print the totals call the COMMAND option and call next page in that.
    Hope you got me..
    Regards
    Ansari

  • Only the last line item is shown in main window...

    Hello Experts,
    I created a custom form for the standard checque program RFFOUS_C. Now, in my MAIN window, I
    called a subroutine in a custom program which loops through the line items but the problem is
    only the last line item is being shown. I tried using CONTROL_FORM to create a new line
    but it does not work. Note that I did not customize RFFOUS_C since it is being used by
    multiple companies. Below is my code:
    SAPSCRIPT:
    510-C
    Begin of insertion DEVK940799 11/10/2008 DEL_HIDALGO
    DEFINE &LTYC_XBLNR& = ''
    DEFINE &LTYC_BLDAT& = ''
    DEFINE &LTYC_SGTXT& = ''
    DEFINE &LTYC_DMBTR& = ''
    PERFORM WRITE_LINE_ITEMS IN PROGRAM Z9999RFI_Z2574FFI_RA
    USING &REGUH-LAUFD&
    USING &REGUH-LAUFI&
    USING &REGUH-XVORL&
    USING &REGUH-ZBUKR&
    USING &REGUH-LIFNR&
    USING &REGUH-VBLNR&
    CHANGING &LTYC_XBLNR&
    CHANGING &LTYC_BLDAT&
    CHANGING &LTYC_SGTXT&
    CHANGING &LTYC_DMBTR&
    ENDPERFORM
    PROTECT
         &LTYC_XBLNR&     &LTYC_BLDAT&     &LTYC_SGTXT&     &LTYC_DMBTR&
    ENDPROTECT
    End of insertion DEVK940799 11/10/2008 DEL_HIDALGO
    PROGRAM:
    IF gt_regup[] IS NOT INITIAL.
        CALL FUNCTION 'OPEN_FORM'
           EXPORTING
    *         APPLICATION                       = 'TX'
    *         ARCHIVE_INDEX                     =
    *         ARCHIVE_PARAMS                    =
    *         DEVICE                            = 'PRINTER'
    *         DIALOG                            = 'X'
             form                              = lcc_z2574ffi_ra
    *         LANGUAGE                          = SY-LANGU
    *         OPTIONS                           =
    *         MAIL_SENDER                       =
    *         MAIL_RECIPIENT                    =
    *         MAIL_APPL_OBJECT                  =
    *         RAW_DATA_INTERFACE                = '*'
    *         SPONUMIV                          =
    *       IMPORTING
    *         LANGUAGE                          =
    *         NEW_ARCHIVE_PARAMS                =
    *         RESULT                            =
           EXCEPTIONS
             canceled                          = 1
             device                            = 2
             form                              = 3
             OPTIONS                           = 4
             unclosed                          = 5
             mail_options                      = 6
             archive_error                     = 7
             invalid_fax_number                = 8
             more_params_needed_in_batch       = 9
             spool_error                       = 10
             codepage                          = 11
             OTHERS                            = 12.
        IF sy-subrc <> 0.
    *        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    *                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        LOOP AT gt_regup INTO lw_regup.
          m_line_items 'LTYC_XBLNR' lw_regup-xblnr.
          m_line_items 'LTYC_BLDAT' lw_regup-bldat.
          m_line_items 'LTYC_SGTXT' lw_regup-sgtxt.
          m_line_items 'LTYC_DMBTR' lw_regup-dmbtr.
          DELETE ex_output WHERE value IS INITIAL.
          CALL FUNCTION 'WRITE_FORM'
           EXPORTING
             element                        = '510-C'
             function                       = 'APPEND'
    *         TYPE                           = 'BODY'
             window                         = 'MAIN'
    *       IMPORTING
    *         PENDING_LINES                  =
           EXCEPTIONS
             element                        = 1
             function                       = 2
             type                           = 3
             unopened                       = 4
             unstarted                      = 5
             window                         = 6
             bad_pageformat_for_print       = 7
             spool_error                    = 8
             codepage                       = 9
             OTHERS                         = 10.
          IF sy-subrc <> 0.
    *        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    *                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ENDIF.
          CALL FUNCTION 'CONTROL_FORM'
            EXPORTING
              command   = 'NEW-LINE'
            EXCEPTIONS
              unopened  = 1
              unstarted = 2
              OTHERS    = 3.
          IF sy-subrc <> 0.
    *        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    *                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ENDIF.
        ENDLOOP.
        CALL FUNCTION 'CLOSE_FORM'
    *       IMPORTING
    *         RESULT                         =
    *         RDI_RESULT                     =
    *       TABLES
    *         OTFDATA                        =
           EXCEPTIONS
             unopened                       = 1
             bad_pageformat_for_print       = 2
             send_error                     = 3
             spool_error                    = 4
             codepage                       = 5
             OTHERS                         = 6.
        IF sy-subrc <> 0.
    *        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    *                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
      ENDIF.

    Hi,
    Write the at last event in the program and check if it works
      At last.
           CALL FUNCTION 'CONTROL_FORM'
            EXPORTING
              command   = 'NEW-LINE'
            EXCEPTIONS
              unopened  = 1
              unstarted = 2
              OTHERS    = 3.
          IF sy-subrc  0.
           MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ENDIF.
    Regards,
    Sravanthi

Maybe you are looking for

  • Verizon Customer Service?

    Verizon Customer Service? A Verizon Supervisor just told me on 1/08/2011 and I quote: “ You can't expect first class service if your only paying for coach.” and So  I'm writing this to express my dissatisfaction with Verizon home phone and internet s

  • How do I manage music files using iTunes in the iCloud?

    HW: HP laptop running win 7 and itunes 10.6.3.25; home sharing is on; itunes match is on; iPhone 4S w/iTunes; itunes wifi sync will use the hp laptop; itunes match is on; use cellular data is on sho all music is on; auto downloads for music is on; ic

  • Problem While Creating Physical Standby Using RMAN

    Hi Guru's May be this incidence you all face while creating physical standby DB. I try to create Physical standby database Using RMAN Duplicate Command from one server (pri machine) to Standby Machine. The steps i followed to create the above are as

  • Acrobat Distiller keeps asking for Name and Password

    I have Adobe Acrobat Pro 9 and every time I open Acobrat Distiller it keeps asking me for my Name and Password. I am sure this question has been asked before but I am having trouble finding it on the forums. Any help would be greatly appreciated. Tha

  • Usage- Calls Incoming and Outgoing

    I recently noticed several calls on my usage history showing as 9999999. These calls did not come in as private, blocked or restricted. In fact the number came through very clearly on my phone. What worries me about this is I have a teenage daughter