Problem in main window

Hi all,
i have to print some data in coloumn wise and some data in row wise in same row,like 4 coloumns of data and in fifth coloumn i have to display 3 rows of text and their values which are not dependent on first four coloumns,can any one give me solution for this(this should be done in main window,even though first four coloumns have multiple records,5th coloumn is having singe record,so i have to print single record in fifth coloumn and multiple records in first four coloumns)
thanks and regards,
gopal
Edited by: gopaludu p on Oct 15, 2008 6:59 AM

Thanks viswa,
but my first four coloums are having multiple records,how can i use template for that.
i have to display like this(ABCDE are my five coloumns)under coloumn E , i have to display text and values like shown,and first four coloumns are like shown.and heading for coloumn e is not required.
A-B-C--D----E
1-1-11----point of departure = india
2-22-2----
point of arrival-US
3-3-3--3--
truck number=3442
4-444---
5---55-5----
6--6-6-6---
Edited by: gopaludu p on Oct 15, 2008 7:11 AM

Similar Messages

  • Problem with Main window in smartforms

    Hi All,
    I am creating a smartform, in that i need to restrict the no. of line item is to 15 and i need to draw a box for it. My problem is if i am displaying 15 line items the box will be drawn correctly and if i use only 3 line item then the box is drawing only for 3 line item. But i need to draw a box for 15 line items constantly at any given point of time irrespective of no. of line items. I am displaying this info using mail window, plz do help me.
    Thanks & Regards,
    pavan.M

    Hi,
    First describe your internal table and based on that you deifne another internal table in which you will have some 2 dummy fileds
    suppose if you internal table has 10 lines then you need to have 5 more lined to print right?
    say describe lines is v_lines
    v_rem = v_lines mod 15. (you will get remainder here)
    then v_count = 15 - v_rem.
    before main window do code as following .
    do  v_count times.
    v_dummy1 =  text (maintgain soem text in this field)
    v_dummy2  will not have any value.
    append these values to it_dummy table.
    enddo.
    And when you loop main table count one more variable  say v_cnt.
    Now you can loop your dummy internal table based on condition.
    the condition would be   v_cnt  eq  v_lines .
    and print empty text . dont print the field that have some text.
    loop dummy table only after printing main table data in the main window.
    Hope you got the logic
    Dont forget to reward points
    Regards,
    Nageswar

  • Smartform - problem with main window

    Hi all,
    I have following windows in my smartform first page.
    First Page
      -> secondary window 1
      -> secondary window 2
      -> main window
           1 template1
           2 template2
           3 command node
      -> secondary window 3
    I have the same windows in  my next page. I am using the command node in main window for some specific condition to implement page break to next page. I am getting the next page with all the contents from the secondary windows but for some reason the main window in second page is not diplayed.
    Please help me. Waiting....

    Hi Raju,
      One possible solution can be... first fix number of rows in a page. Then in the INITILIZATION use DESCRIBE command on your internal table. Then divide the number of lines by the number of line you have already fixed to be printed on a page. This will give the number of pages.
      Now what you can do is... in your first page take a table node. In that create a  table line with 13 columns and place the first 13 columns in that.
    Then take a ALTERNATIVE node with condition sy-page = the number of pages which you have already calculated.
    For this ALTERNATIVE node in the TRUE node take a COMMAND NODE  with NEXT_PAGE(second page) in GO-TO-NEW-PAGE field.
    And in the FALSE node take another COMMAND NODE with FIRST_PAGE(current page) in the GO-TO-NEW-PAGE field.
    Untill unless you will reach the last page(which we have calculated) this condition will become false and hence the COMMAND NODE in the FALSE node will trigger and the current page will be triggered. This completes the printing of 13 columns for all your internal table rows.
    Now in the NEXT_PAGE(second page) take another TABLE node and again create a new table line with the next 13 columns(14 to 26). And assign NEXT_PAGE in the Next Page field of this page(next page... hope you are not confused ). This will print the remaininig 13 lines.
    But the problem with this solution is that the user has to sort the pages after getting the printouts and also the number of rows that will be printed are fixed on a page.
    Thanks and Regards,
    Bharat Kumar Reddy.V

  • Problem in main window of smartform

    Hi experts,
    I have a secondary window in my page of smartform. and then a main window in which i have used a table to display line item from internal table.
    Now my problem is that when the data exceeds first page the remaining part of dat in mainwindow goes to second page but the secondary window data also repeats in second page.
    Can anyone help plz?
    Thanks in advance.1.13

    click on the secondary
    window you will find
    tabs general attributes,
    output options & conditions
    in the conditions tab
    in add additional events
    check the check box
    Only on First Page.
    Thanks,
    Phani.

  • Script problem in main window

    Hi,
      In main window there is box at the bottom of the page which is used for totals and the space before it is used for items. I want the items to go to next page instead of overwriting on the totals . please help

    Hi,
    You can use
    /: bottom
    /: endbottom
    command in the main window and put the box and the totals in that so they will be printed at the end of the page with out any overlapping of the items
    Regards
    Sarves

  • I have used Lr many years without problems. Now it is inpossible to edit . Can not see the editing in main window only in the small thumbnail. Suddenly it is not possible to import  raw-files from my Linux camera ( it worked earlier)

    Editing mode does not work. I can not follow de editing in the main window. I cah see it in the thumbnail.

    From your description of the problem, I suspect that you have a standalone license but have downloaded and installed the CC update. Or, it's the other way around. In either case, you need to install the right version.

  • 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.

  • Box in main window (sapscript) problem.

    Hi, all.
    I meet a weird problem....
    I have 2 pages form which have 2 same MAIN window and of course their source code is same one. But when I run the output form, I found that one of the page which main window's box is disappear, while the other page no problem.
    How come like this? Should be the box appear in both MAIN window, right? Hope someone can guide me.
    Thanks in advance.

    Boxes in the main window only get printed in the first page, unless you include them in an element and explicitly call the, But of course that's not the way to go.
    Every other window in the same page which has content that's not inside one element gets printed every page. So to solve your problem, declare another window (perhaps called BOXES) with the appropiate dimmensions and define in it the boxes you need. Replicate this BOXES in the other pages (if you use different page formats inside the sapscript) or leave it in the First page (if it's the only one in the sapscript). The boxes will now print in every page.

  • Problem in opening GET_TEXTID_TEXT in MAIN Main window

    Dear All,
    We want made some changes in smart form ZCRM_SLFN_ORDER_SERVICE_01.
    when we try to dobule click on GET_TEXTID_TEXT in MAIN windows, session is hanged for long time and I have end task.
    Thanks in advance,
    Nirav

    It was problem with my local machine.

  • Problem with 2 tables nodes in MAIN window in smartforms...

    Hello Experts,
    I have created 2 table nodes in my MAIN window to display data coming from different internal tables.
    Now, the problem is that whenever the 1st table node page breaks, the 2nd table node gets affected
    and it also page breaks. What I want is that the 2nd table must finish displaying certain number of records
    before the page break of the 1st table node takes effect.
    For example, I want to display 10 records for both table nodes 1 and 2. So I created an event in
    table node 1 that if it is 10 records or more, then it will go to the next page. So in effect, my table
    2 node did not print any records at all in the 1st page and it only started printing its first record in page 2.
    How do I print 10 records also in table node 2 before it page breaks?

    Hi,
    It's simple,
    Pre- U should had declared a second page for the same window with header, main & footer.
    now
    First when u r looping the internal table provide no of rows eg Row 1 TO 10. in the Loop ( Data Tab)
    or
    when defing TEXT Go to PC Editor and mention all the fields Under  PROTECT -  ENDPROTECT.
    This would solve the issue.
    Thanks
    Ravi

  • Main window header problem

    Hi All,
    My header in the main window is getting printed at the end of the page even if it contains no data in the main area.
    I have given a porgram code in the header, becos based on that my header data should be printed and a page break in the main (sort end event).
    What should i do to avoid the extra header.

    hi
    good
    go through these links which ll give you complete idea about the printing of the header in the main window,hope this would help you to solve your problem
    http://www.supinfo-projects.com/fr/2005/forms_sapscript_en/7/
    http://help.sap.com/saphelp_nw04/helpdata/en/d6/0dba4e494511d182b70000e829fbfe/content.htm
    thanks
    mrutyun^

  • Problem with sap script table in main window

    hi all,
    i have created a sap script  for which output is in 7 pages.
    except first page all the remaining pages are giving the correct output.
    the problem with the first page is iam not not getting vertical lines in the table which is in the main window of page 1.
    iam getting the vertical lines correctly in the mainwindow table of all the remaining pages.

    Hi,
    It's simple,
    Pre- U should had declared a second page for the same window with header, main & footer.
    now
    First when u r looping the internal table provide no of rows eg Row 1 TO 10. in the Loop ( Data Tab)
    or
    when defing TEXT Go to PC Editor and mention all the fields Under  PROTECT -  ENDPROTECT.
    This would solve the issue.
    Thanks
    Ravi

  • Problem in smartform in main window

    Hi All ,
      We are puttning a table in main window,The problem is the table in main window is extending according to the number of records in internal table.I want the table in fixed lenth always .Please suggest

    1) Do not draw any lines in TABLE.
    2) Place a TEMPLATE exactly over the TABLE (same left, top, height and width). Draw line in this TEMPLATE.
    3) This TEMPLATE will not have any data. It will just draw line.
    Now with this configruation drawing of line will be independent of data in your TABLE. Hope this will work as it worked for me some time back.

  • Main window iteration problem in smart forms

    Hai,
    I am struggling from a problem from past 1 weak, can anybody help me.
    Problem:
    user- inputs: 2 different items say item1 and item2.
    The output should be the combinations of four pages(pg1,pg2,pg3,pg4)  based on conditions.
    pg1 should be displayed when:
         1. item1 and item2 are less than 5.
         2. either pg1 or pg2 are less than 5.
    note: pg1 can only display 5 items of each type.
    pg2 should be displayed when:
        1.item1/item2 is greater than 5 and less than 15.
        2. either item1/item2 >5 and <=15 .
    note: pg1 can only display 15 items of each type.
    pg3 should be displayed when:
        item1 is greater than 15.
    pg4 should be displayed when
       item2 is greater than 15.
    My problem is when there are items greater than 15 say 90 items then main window page is not iterated i.e only first 40 is displayed remaining are not displayed.
    Please help me as soon as possible.
    Helpful answers will be rewarded.
    Thanks and Regards,
    Swetha Singh.

    Hi,
    Instead of calculating the line items, you can use the command in the footer of the main table to go to next page. It will dynamicaly push to the next page, once first page data display was over.
    Is this the answer you are looking for. Thanks.

  • Problem in sapscript Main Window Box command - Urgent

    Dear friends,
    Problem while showing boxes in multiple pages in sapscript. Box command is defined begining of the main window. But while printing showing in first page only not in other pages.
    Regards,
    Praveen Lobo

    This could be your problem why box command is not getting displayed in all pages, you might be using the box command in the element that is only called once and that to in the first page... so try to check your form and place you box command under element that is getting called in each and every page, it will solve your poblem.
    Note: for testing you can place your box command under element "/E" where you are displaying your line items... even though it is called multiple number of times it gets overlapped.
    close the thread once your question is answered.
    Regards,
    SaiRam

Maybe you are looking for