Two Templates in a Main window- SMARTFORM

<< >>
Edited by: agrud agrud on Sep 6, 2011 11:31 AM

Hi,
Then make the temp1 as 'Horizontal Alignment : Left , Vertical Alignment : Absolute from top ( provide the height ) '
For temp2 as 'Horizontal Alignment : Right , Vertical Alignment : Absolute from top ( provide the same height as above ) '
Adjust the widths of the templates accordingly to fit the page width.
Reagrds,
Ram

Similar Messages

  • Multiple tables and templates in a main window

    Hi,
    Is it possible to have multiple tables and templates in a main window of a smartform?
    If so then how they are positioned in the main window? Means which table to come first and which to be the next?
    Thanks in advance.........
    Prinan

    Hi!
    both tables and templates can be printed any number of times ina  main window.
    The tables as in sequence are printed...after ending with the first it gets on to the another.
    If u want to print it under some cdonditions you can do it using the condition tabs.As per it is a main window the dats gets flowing to the next page so as the order goes thae data goes on printed.
    Regards.

  • Two main windows in smartform or two loops in one main window?

    Hello All,
    I have requirement in smartform where i want to print two diffrent data header and item data in the same page.
    and in between these two data i want one template to be printed for item data .
    Smartform is giving me error if i use two main windows
    if i use two loop nodes in the main window thn how to restrict the data getting over flowed to template(item data)
    scenario is
    header data****
    **item header**
    item data****
    Pls comment....
    Regards,
    Sunny

    As main window can only be one, so try it this way:
    Under main window create a TEXT1 for header text( first header) than a LOOP1 for looping the header table, under that first create a TEXT2 for header data, than below it create another TEXT3 for header text ( Second header), than below it add a LOOP2 for looping item table and in that add a where condition than under it a TEXT4 for item data .
    MAIN_WINDOW
        TEXT1                                     " first header
        LOOP1                                    " header table
            TEXT2                                 " header data
            TEXT3                                  " Second header
            LOOP2                                " item table with where condition
                TEXT4                             " item data
    With luck,
    Pritam.

  • To change the po(to add  two fields values in main window)

    hai experts,
                     i have a purchase order with output type z933.in the main window i have two variables freight and clearance.for these variables i need to fetch the values from the db tables and show it in the po.can anybody give the solution for this.
    if helpful reward points will b there.
    regards
    Mahesh

    iF it is standed report ..........
    then u create a sepreate zreport and call that report in script
    using perform statement...........
    if it is zreport that u get the data before the write statement
    and define that variable inside the form
    Reward IF..........
    Regards
    Anbu

  • How Do I Get A Split Screen View? (Two views in the main window)

    I basicly want 1 UIView at the top and then below another UIView. How would I go about doing this? I need to be able to execute methods to it like -(void) viewDidLoad.
    my iPhone app
    First  view
    Second view
    How do I do this?
    If you could explain in detail that would be great.
    Thanks so much.
    Note:
    I have tried inserting 1 extra view (Into the view that starts up with your app. Reason I only put in one view is because, I dont need 2 really. How I mean by two is 1 extra view and the default view that was there anyway) and in interface builder clicking on the view I have just dragged in, then clicking on: File > Write Class Files. But I colud not execute code to it for some reason. (For example I could not use the classes made with the Write Class Files. If I put the -(void) viewDidLoad method in with an NSLog it would not run.)
    Help?
    Thanks allot!
    Im using Xcode 3 By the way.

    Well, yeah. Im really sure. There is no other way I want it.
    I want to have 2 views in one window.
    The reason why, is so I can have a Core Plot view at the top, and just the bog standard UIView at the bottom (But I know what to do with Core Plot aslong as I know how to get 2 UIViews both with working view controllers).
    My main question basicly is that fact that I want to be able to have a secondviewViewController with all the right IBOutlets like dataSource to make it work.
    Thanks alot.

  • SAP Script need to display main window two times on single page.

    Hello Guru's,
    So here is my requirement, we need to print check. We are using F110_PRENUM_CHCK and linked with driver prog RFFOUS_C. We have Letter size paper with three sections,
    1. Check
    2. Voucher Section (containing table of element 515, 525 and 530) 515: Heading, 525 : Regup-Belnr, Regup-XBLNR, Regud-Wrbtr.
                                                                                    530: Regup-SGTXT
    3. Voucher Section (As a receipt for bank itself) : contains same data as 2nd section.
    I tried several things reading all the previous post over here in SDN.
    1. Created Z form created two instances of main window it results just single display of table (voucher section) in section two and not in third.
    2. I also tried pasting two times same code in single main window which gives only last item line for the table.
    3. Created z driver program made changes in Write_form added control form for element 515 that does results in showing element 515 on both the location.
                CALL FUNCTION 'CONTROL_FORM'
                  EXPORTING
                    command   = 'NEW-WINDOW'
                  EXCEPTIONS
                    unopened  = 1
                    unstarted = 2
                    OTHERS    = 3.
                CALL FUNCTION 'WRITE_FORM'
                  EXPORTING
                    element = '515'
                  EXCEPTIONS
                    window  = 1
                    element = 2.
    3. For Element 525 and element 530 is not acting same. In the prog 525 = hlp_ep_element. And there are many write_form for this. I tried pasting each and every place same kind of code. It doesnt work. what it do it gives me three pages of output repeating every thing twice and weirdly.
    I am need this to be done as I already took so much time solving nothing is working.
    Please give me the exact location where to paste this code so I can have two times data of main window.
    Or is there any other way to do this....Any way will be good for me as long as it shows two times data in the form.
    The data is table.

    Hi Manju,
    I create a new window (no main) but does not run, please can you tell me what should I do to make it work.
    Best regards.
    Robert.

  • Two loops in a table in main window

    Hi all,
    I have a main window and under it I have created a table with header main window and footer for 6 fields with 6 cells and 6 texts, each text under each cell.
    I want to run a loop for first 3 fields and another loop for the other fields.
    I mean the table should be partitioned as 3 and 3 fields.
    The first 3 fields say Item, description and Debit in one part and the other part  date, credit and particulars
    I want to run two loops to run calculate the debits and credits?
    Now my point is how to partition the table into two?
    Do I have to create two tables and take 3 in one and the other 3 in the second table?
    If I create 2tables then how to calculate the second part fields data ?
    I mean how to get the data or show the data in the right side of the table?
    Please answer
    Thx

    Hi
    Create two loops in the main window and in first loop display only three fields and in second loop display remaining three fields but border of the cells need to change to white color so that it will not display the black color lines in the main window.
    One variable to calculate sum of first loop and display sum at the bottom the main window and another variable to calculate sum of second loop and display sum at the bottom..
    Regards
    Srilaxmi
    Regards
    Srilaxmi

  • Issue with main window data

    HI all,
    My main window data is not displayed on the third page.
    I have following page,.
    Page one (First page)
    Next Page(Next page of the first page will be triggrred in case of data overflow)
    Page Two(Which is copy of the first page and i am calling this page from the first page using the command line)
    Issue is my main window data is not displayed in the third page.
    I third page i called from the first page but the main window is coming as a blank.
    Kindly help
    Thanks & Regards

    Hi Sachin,
    Have you used Table or Template in the Main window...?
    Because, there are some scenarios in which the data will not be displayed in Templates used in the Samrtforms.
    Please check it out!
    Regards,
    Kittu

  • Calling pages and more than 1 main window

    Hi All,
    Hi All,
    I am designing a Smartform.It contains 2 sections.In 1st section
    page1 contains only templates and no main window.On page2 i have
    4 dynamic tables which i have included in main window.If the data
    is large content of page2 extends to page3.Now the 2nd section begins.I
    have to display details of various materials. page4 again contains
    templates and no main window.Page5 contains again 4 dynamic tables
    and if the data is large it can extend to page6.Ideally these 4 tables
    should be included in main window.but i already have 1 main window in
    page2.As per my knowledge in 1 smartform there can be only 1 main window.
    So please suggest any way to do this.
    1 more thing.....
    As i said in 2nd section i am displaying details of materials-- page4,
    page5,page6 display details of only 1 material.These 3 pages--page4,page5
    page6 should repeat for other materials also.
    How do i achieve this.
    Thanks and Regards,
    Shital Chheda.

    Hi
    The Solution can be achieved but in a different way.
    Let the First Page be fired as ur default page and at the end of the first page call the command to go to the 2nd Page.
    In the 2nd Page call the Main Window once and print the information for the first Table, this is fine.
    After that comes the Second Section, in this i hope that you a single table for printing the material Specific data, the number of lines that can be displayed in a A4 page is approx 70, so you can find out the number of lines remaining to be printed in the page for the table and print data conditionally based on this data.
    Hope that Helps
    Anirban M.

  • Regarding two tables in a page of smartform

    Hi SAP Gurus,
    My issue is as follows,
    I am having two internal tables . I need to print them in a page in two blocks. i have created two tables in the main window and diplaying data, the problem is , the second table started printing after the end of first internal table data is displayed  on last different page,
    what i need is print the data in two tables on a every page simultaneously.
    please help,
    Thanks and regards,
    Pavan

    Hello Pavan,
    We can not have more than a [main window|http://help.sap.com/saphelp_470/helpdata/en/81/485ebad94f11d3968f00a0c930660b/content.htm] in a page it seems.
    Let me watch, anyone can have a good solution for this.

  • How to print items in the MAIN window of the NEXT page (smartform)?

    Dear forumers,
    There are two pages (FIRST and NEXT) in my smartform with the same MAIN windows in each of the pages. Whatever that are changed in FIRST-MAIN window will also be seen in NEXT-MAIN window.
    I will need to control the printing of table TABLE3 contents (already contained in the MAIN window) such that if a variable V_MAT_PRINT is 'X', the TABLE3 contents will only be printed in NEXT page and not printed in FIRST page at all.
    How may I achieve this? Please help.
    Thank you.

    >
    Mohammed Ahasanullah Mulla wrote:
    > Hi Deborah,
    >
    > I had also faced a similar situation,in my case it was three pages..However i will try to tell you for 2 pages..After the second table .Add a program lines and force a page break only if V_MAT_PRINT is 'X'. After the program lines add a command and make the go to new page as second page.This will solve your problem.I have done the same and its working fine .If you have any questions do ask.
    >
    > Thanks,
    > Ahsan
    Hi Ahsan,
    Here's my case.
    If V_MAT_PRINT is 'X', print the following:-
    FIRST page, MAIN window
    - TABLE1
    - TABLE2
    - TABLE4
    - TABLE5
    NEXT page, MAIN window
    - TABLE3
    If V_MAT_PRINT is not 'X', print the following (no additional controls / changes are needed, everything remains unchanged):-
    MAIN window
    - TABLE1
    - TABLE2
    - TABLE3
    - TABLE4
    - TABLE5
    In this case, is a page break suitable? I doubt it as TABLE4 and TABLE5 will still need to be printed back on the FIRST page regardless of the V_MAT_PRINT value.
    Please advise further. Thanks.

  • Smart forms--In different pages i require two different main windows

    In one smartform, I am having two pages. and two pages are having different formats
    First page will print repeatedly till the completion of main window1.
    Now i want to add another main window(2) to second page, it will also should print repeatedly till the completeion of main window(2).
    But in first page main window contains 5 coloumns with subtotal
    in second page main window contains 3 columns without subtotal
    Both main windows are using same internal table.
    can anybody help me in this issue.
    If i copy first page main window into second page as main window with diferrent name, then it is showing blank window with out any text why?
    pls hepl me
    Madhavi T

    Try to do it like this, separate the data in internal table to two different tables, since data should be printed on two different formats...
    Design two page in your smartform according to the requirment. now goto first page and set the next page as FIRST
    now goto second page that you have created and set the next page as SECOND.
    loop the first internal table in first page and once all the entries are finished, try to goto second page for doing this place command and tick the check box in command, goto next page and select the page as Second...
    I guess this will solve your issue.
    close the thread once your question is answered.
    Regards,
    SaiRam

  • Problem With Smartform Main window

    Dear All,
    I have a requirement in which I need to print a PO using Smartforms.
    In this requirement we need to check a flag, and based on the flag we need to call the subsequent pages.
    if the Flag is set then I need to print the first page 2 times and after these two pages Terms and conditions page would come.
    In the main window of first page i have put a contition check for this flag.If the condition is true I am calling the First page as Next page and if the condition is not true the Last page(T&C) is called.
    now, the issue is when the condition is true means when I need to  call the first page twice then the very first page of the output is coming fine but when the same page is printed again the item details are not getting printed also the last page is not coming in this case.
    please help.
    Thanks in advance.
    regards,
    Shweta

    When you are calling first page again (as Second page) based on your flag, it will copy the only the content of all windows except main widow.
    To solve your issue, Put the same loop again in the mainwindow with condition which is used for trigerring second page.(Repeat page).
    Regards
    Afsal

  • Smartform : Main window : Want to increase the size of main window

    Dear Sir,
    In my smartform my Main window is fixed after four windows(2 + 2) but only in first page.
    Now my requirement is there in second page i am only showing two windows out of four and in new vaccent space produced by two window i wanted to increase the height of window equal to 2 window in second page onwards.
    Please guide.
    With Rgds,
    Nirav Parekh

    You just need to change the UPPER and HEIGHT values for the MAIN window on the second and subsequent pages.  Presumably, you have a different page definition for these pages?  If that's not your question, then please re-phrase it.

  • Smartform Main Window Box designing

    Hi,
    I have created a smartform with 5 windows. In the main window maximum 12 records will be fitted. In Main window, In the output options tab i have selected Lines with Check box and Always draw Check box.The height of the main window is 4.80 CM. Each Record will occupy 0.40 Cm Height.For this i want dynamic window box creation. For Example if the internal table contains only two records it has to draw box only with 0.80 Cm height only, Suppose if the internal table contains 10 records then it has to draw box with 4 CM height. Here in my Smartform i am always creating 4.80 Cm height box. Is my requirement Possible? If yes, How?
    Thanks in Advance.

    hi ,
    as far as dynamic row wise box you can achieve....
    but if only you want boxes depending on the lines means it's difficult to do because you may not know how may line will come. as you have mention for only 2 and 10 records means i have  an idea but don't know whether it will work or not as these boxes will be drawn depending on the height( and it's constant).
    what we can try is.
    first count the number of lines in your internal table.
    in main if check the condition
    if internal table has 2 lines then define one table with your reqirement,like "if the internal table contains only two records it has to draw box only with 0.80 Cm height only".
    mention the height in table->details as 0.80cm.
    if internal table has 10 lines then define one table with your reqirement,like "if the internal table contains only two records it has to draw box only with 4 CM heightheight only".
    mention the height in table->details as4 CM height.
    in else... your can write as many as depending on your req...
    this is lengthy, hope this will achieve your requirement.

Maybe you are looking for

  • SRM 7.0, PO details are not getting populated in Contract History Tab

    Hello Folks, I am stuck with an issue and would need your help regarding that. Scenario: (Extended Classic Scenario) SRM version 7 A catagory Contract is created. Shopping cart created with Contract as the source of supply. Once the SC is approved PO

  • Cannot enable ePrint/Web Services, HP LaserJet CP1525nw

    I am trying to follow HP's instructions for enabling ePrint and Web Services for my LaserJet CP1525nw.  I printed the Config Report, got the printer's IP address and entered it into a brower as instructed.  It does pull up summary page, but there is

  • Cannot Export PDF to Excel by Save as progress

    Dear All, I cannot export PDF file to Excel by Save as progress which save to Excel spreadsheet as Adobe software have teach us. When I open the Excel file, there came out a error saying that "This file cannot be opened because of errors, Errors are

  • Logical Database selection screen pushbutton

    Hello All, I need to create a pushbutton on a selection screen of a logical database.  Basically this pushbutton when clicked will either display or suppress some fields on the screen.  I have tried to use the SSCRFIELDS option to create a pushbutton

  • How to select last record or first record value in a formula?

    Post Author: d111 CA Forum: General I am using a query in a report that in addition to other columns, has a column of month labels like: There are no unique identifiers or sequence fields that can be used.   There is only 4 columns: the label and 3 p