How to output particular text in main window only in first page

Hi experts how to ouput particular text in main window only in first page after that actual transaction data will be continued.....any ideas....Answers will be rewarded.....

Hi,
Try this.
/: IF &PAGE& = '1'
/: ENDIF
Thanks,
Naren

Similar Messages

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

  • HELPPP !! SapScript: print window only on first page

    Hello,
    can somebody help me?
    I have 2 pages (1 full and 1 almost empty) because the STANDARD print program send 2 pages into my form
    And I would like to print some windows (address, info) ONLY ON THE FIRST PAGE but I can't...
    I try to use some systeme variables as:
      IF &PAGE& = 1
      /:           ADDRESS PARAGRAPH AS
      /:             TITLE    &REGUH-ZANRE&
      /:             NAME     &REGUH-ZNME1&, &REGUH-ZNME2&, &REGUH-ZNME3&
      /:             ADDRESSNUMBER &REGUH-ZADNR&
      /:           ENDADDRESS
      ENDIF
    >>> but I have the always &PAGE& = 1 (not 1 then 2)
    i tru too var. &NEXTPAGE& or &SAPSCRIPT-FORMPAGES& but not successfully.
    CAN WE USEIN SAPSCRIPT A COMMAND ""AT FIRST PAGE ONLY"" AS WE CAN FOUND IN SMARTFORM?
    Many thanks in advance.
    Pascr.

    Seems to me you need to think about having the NEXT page, and putting the elements which do not fit on your first (and only) page anyways, on the NEXT page...
    A possible algorithm would be:
    In the first page, when all of the elements are written out, instert a page break, and go onto the NEXT page. Then write out the rest of the elements on the NEXT page.
    Use the technique described in the previous posts to get rid of the elements you dont want written out on the NEXT page.
    Hope this helps
    Cheers

  • Triggering main window of the second page

    Hi Experts,
    I have two pages. Second Page will only get trigger at certain condition. I am triggering the Second page through Command. My issue is my second Page is triggering but the main window of the second page is not getting triggered. It should be like that the main window should get triggered. Even I have copied the main window and used it in the second page that is also not getting triggered. Please help me to resolve this issue.
    With Regards,
    Anomitro

    Hi,
    You should not create a new main window in the Second page of the smartform
    Instead, you copy the main window of the first page to the second page.
    So even if you add a text window in the first page Main window that will be reflected in the second page, but this should be below the command window.
    Use the command window to trigger the second page.It triggers the second page and all the text windows that are after(under) the command window will be coming in a new page.
    Check this link: https://wiki.sdn.sap.com/wiki/x/bAZqBg
    Hope this helps
    Thanks
    Sarves S V K
    Edited by: Sarves Sombhatla on Feb 21, 2011 6:56 PM

  • 2 main windows in 2 different pages with different layouts

    Hi Guru's,
    I'm working on Smartforms.
    My problem is, i have 2 different pages with 2 diiferent main windows.
    The First Page lasts after 7 pages of Data Printing.
    It is coming corrctly.
    I've assign the Next Page as Second Page in the First Page and i'm maintaining a condition in the First Page to go to the Second page.
    Everything is working fine, but in the second page i'm not getting the Main Window.
    What could be the Problem??? Why the control is not going to main window of second page???
    Thanks in advance.
    Regards,
    Adi.

    Try like this:
    1. Set the Next page of the FIRST as FIRST
    2. In the MAIN window of the FIRST, after completing the TABLE, create a command which calls the SECOND PAGE.
    3. In SECOND page, create a MAIN window, with differnet name. If you create a same name, system will automatically refer the MAIN window in the FIRST page.
    4. Set the next page of the SECOND as SECOND.
    Regards,
    Naimesh Patel

  • Reg: Displaying all the items of main window in the same page itself.

    All,
    I am developing an SAp Script form which is using five windows. Out of which third window is the main window. In the main window i am displaying details of item sold. The form prints perfectly when the number of items is with in the limit of the main window height. When it exceeds the main window height a second page with the same format of the first page is displayed with the remaining items in main window. ie 1,2,4,5 window is repeated in both pages.
    I want to display all the items of the main window in the first page itsel and if it exceeds first page show the remainng items in the next page and then display 4th and 5th window. IS it posiible using SAp script. Am i to do some configuration for this?
    Note: I have assigned Next page to first page itself.

    Thanks Anji.
    I understood about display of first and second windows.
    About main window and Fourth and Fifth window i still have doubt. I have given specific height to main window and after that put the fourth and fifth window with specific height in first page itself. So what happens is that When mainwindow overflows it will print up to specified height in the first page. Then prints the Fourth and Fifth window in first page. Then it goes to second window prints the remaining items in main window then again displays fourth and fifth window. Could you please find a solution for this too.
    Regs
    Rakesh

  • Long Text in Main Window

    Hi,
    I am trying to print 'Item Text' from invoice just below each item description(same cell of 'item descripotion' is used to print 'Item Text' in MAIN WINDOW )  in smartform. I had used an include text.
    For Ex: long text maintained is
    TEXT1 TEXT1TEXT1
    TEXT1TEXT1TEXT2
    TEXT1TEXT1TEXT3
    TEXT1TEXT1TEXT4
    TEXT1TEXT1TEXT5
    If suppose maximum size of cell can occupy only 3 lines of above long text , then it should only print remaining last two lines on the next page .
    Main Window
    Page 1
    Item Desciption
    TEXT1 TEXT1TEXT1
    TEXT1TEXT1TEXT2
    TEXT1TEXT1TEXT3
    Page 2
    TEXT1 TEXT1TEXT4
    TEXT1TEXT1TEXT5
    Also in the layout design height of main window on NEXT PAGE  is slightly greater than size on FIRST PAGE.
    But , in my case it is generating three pages.  Page 2 and 3 are printed as shown below.
    Page 2
    Item Desciption
    TEXT1 TEXT1TEXT1
    TEXT1TEXT1TEXT2
    TEXT1TEXT1TEXT3
    TEXT1 TEXT1TEXT4
    Page 3
    Item Desciption
    TEXT1 TEXT1TEXT1
    TEXT1TEXT1TEXT2
    TEXT1TEXT1TEXT3
    TEXT1 TEXT1TEXT5
    Please let me know , how to correct this.
    Note:- Form is Migrated from SAP Script to Smartform.

    Hi Mayank,
    Use Page protection For that TEXT Element (Include) in output options.
    Regards,
    Soorya

  • How to use Two main windows with in a page in script ?

    Hi any body explain me...
    How to use Two main windows with in a page in script ?
    with  header data in one main window,
    & Item data in other main window.

    HI..,
    u need to go for <b>SPLITTING THE MAIN WINDOW</b> !!!
    Main windows in page windows allow you to format text in multiple columns. Define an area in the page window, in which to position the main windows.
    Here is the procedure !!
    -->Create a page window and assign it to a page.
    Choose <b>Edit --> Main windows</b>.
    A dialog box appears.
    -->Enter values in the fields <b>Area width</b> and A<b>rea height</b> in accordance with the input guidelines for main windows.
    -->Enter values in the fields <b>Spacing</b> and Number in the <b>Horizontal group</b> if you want to use multiple columns. You can ignore the fields in the Vertical group.
    Determine how many columns and line areas are required for label printing. Then enter the corresponding values in the fields in the <b>Horizontal and Vertical groups</b>.
    -->The value in the field Left margin varies from main window to main window if multiple columns are used. The following applies:
    <b>
    Left margin of current column + Window width + Horizontal spacing = Left margin of next column</b>
    In label printing, the field Upper margin also varies from main window to main window:
    <b>
      Upper margin of current main window +  Window height + Vertical spacing = Upper margin of next main window</b>
    -->Enter a value in the field Start position.
    This is a counter. Enter a starting value which is equal to or greater than 1.
    -->The main windows are added to the list.
    -->Save your form.
    reward if it helps u...
    sai ramesh

  • Print Invoice Header Text In Main Window of Smartforms

    Helo Gurus !!!
    I want to print Invoice header text in main window of smartform.
    There are total 5 columns.
    Item    Quantity          Description          UnitPrice       Amount
    Now what I want is to print header text below Description column, there is a loop on the table in main window.
    This header text will be printed only once. This is a standard header text
    How to get this?
    Points are assured !!!

    Hi Anay Kulkarni,
           I understood that u need to print this header text
    Item Quantity Description UnitPrice Amount
    So please use TABLE instead of LOOP  in the table we can prin header, main area, footer.
    place the header text in header area in table...  i am sure this can resolve it.....
    feel free to contact me if issue is not resolved/.....
    dont forget to reward points....
    all the best...
    Regards,
    Sreeniasa Sarma K.

  • Who knows how to output some text once labview detects something I want using pattern matching(V​ision assistant)​?

    who knows how to output some text once labview detects something I want using pattern matching(Vision assistant)?
    The text is something like"Yes, this is a coin"
    Thanks!

    I attached a SubVI which I used to place an overlay next to a Pattern, found by a Pattern Match before:
    As you can see, you simply pass the image reference and the Array of Matches to the VI along with the String you want to have as an overlay next to the Match.
    I also modified your VI a bit, but didn't test it. I created an Array of clusters, each elment containing the template path along with the respective text.
    Please note that this is just a hint!
    Christian
    Attachments:
    suggestion.vi ‏146 KB
    Overlay_Txt.vi ‏24 KB

  • Main window data to be page protected in smartform

    Hello Experts,
    I want to make Main window data to be page protected.
    But page Protection check box is in Noneditable mode .
    Please let me know, how to make main window data to be page protected.
    Regards
    Mohit

    Hi,
        Try this way
        Under the Main Table node, you will find, Header, Main Area and Footer.
        Select Main Area, right click Create> Folder
        Drag the Row item inside the Folder
        Select the Folder node, for Folder node out put options, you can select Page Protection check box.
    Main Window
        Header
        Main Area
          Folder
            Row Items
        Footer
    Regards
    Bala Krishna

  • Can I to execute two times the MAIN window in the same page?

    Hello, friends:
    How I can to execute 2 times the MAIN window in the same page in SAPscript, this without modify the program link a SAPscript?
    I create in the same page two MAIN windows, but I can to print only one MAIN window, the second window is not appears.
    Thanks for advance,
    David

    You can't - only one MAIN window is allowed per page.

  • Smart forms- when i print a report it print main window data on same page

    hi,
    when i print a report it print main window data on same page .
    i.e. if data is more then one page then it shows data page wise on computer screen but when i print it print all data on same only one page by over wrriting .
    pl. help why it is happening
    i create page in page i set next page and in second page give first page.
    mukesh

    mukesh,
    what happened to this: smart form
    close that please.
    by the way,did you tried with what i suggested?
    lets say mainwindow in 1st page.
    copy the first page to second page.
    now.
    for 1st page: next page is : page2
    for page2: next page is also : page2

  • Printing of MAIN window details on different pages

    Hello,
    I have creates a smart form with 2 pages (invoice & packing details) containing MAIN window in each page. Also created secondary windows for respective pages with changed data. There is one interface table. When I print this form all the details are getting printed correctly on both the pages except MAIN window details on 2nd page (i.e. packing details). On 1st page MAIN window is getting printed correctly but on 2nd page it doesn't. I try to put break point on MAIN window in 2nd page both it doesn't get triggered. Can some one help me to know the reason.
    Rgds
    Rajeev

    Hi,
    A small writing mistake in my earlier reply.
    Hi,
    I believe you have two pages ( FIRST page layout is for Invoice details ).
    If the first page is spilled over to second page then you have problems with the packing details which is to be in the second page.
    In that case design another page as NEXT page same as that of the FIRST page and for the FIRST page you mention the subsequent page as NEXT.
    Then use a command in the NEXT page and mention Goto--> SECOND page for the layout of packing details with proper condition.
    And display the packing details under the command.
    regards,
    Ram

  • To display vline if main window flows to next page in SAPScript.

    Hello,
    We are facing issue that we have to put vertical line at the end of page , if main window flows to next page.
    In our case, we have payment done for different currencies as well, so that means if for first currency USD we have 20 records then after 16 records page gets break then we want sy-vline to print there and next 4 records in next page, similarily for next currency EUR, then if we have 4 records it gets displayed on one page only, so no vline is required then.
    So like this if we have 3 pages to be displayed then on first page it should displayed vline as records gets overflowed.
    May be in Script we can have more than 3 pages as well, so at different currency when we have more records then only it should show vline, otherwise not.
    Also we have signature window inside main window, so on next page it should not display line after signature.
    So please help us for finding the solution to this issue as its really urgent.
    Thanks.

    Hi friend,
    So as of now you know that the line count for a page is 16.
    So after displaying records in main window just check the sy-index or keep a variable incremental for the loop.
    Check whether the variable count is 16 and put a sy-vline. So if we have less number of records or if we have a signature window the vline wont be executed.
    This will only be executed when there are 16 records for a page. So for better handling you can use the number of lines per page dynamically. Ie to know the size of lines in the page dynamically.
    Else use of end of page command to draw lines at the end of page. But the end of page command should be used inside an if else command.
    See the link below for more options in Scripts Link : [Editing Format Actions|http://help.sap.com/saphelp_nw70/helpdata/en/ce/6f0f82ea6311d18e2f0000e83dd9fc/content.htm]
    I think this solves your issue. Please revert back to me if you face any issues. I will help you.
    Thanks,
    Sri Hari
    Edited by: srihari.kumar on Jan 31, 2012 4:27 PM

Maybe you are looking for