Sapscript: display in main window table ... repeat table haeder on new page

Hi all,
I have a form with one Window -> Main Window, in this Window it will be written many different information... there is also a table, when the table cause a new-page, the header (discription of the table) should be written (repeated) also on the new page.
Im trying to find out, how i can get the page number in the print-programm... but I dont found any variable (print_co-actpage doesnt work)
Thanks a lot for your help.

Hi David,
I'm sure you've got around your requirement by now, but for future reference you can get the page number into your print program by calling the function module 'GET_TEXTSYMBOL'.
data: lv_page(255) type c.
lv_page = '&PAGE&'.
call function 'GET_TEXTSYMBOL'
     exporting  line             = lv_page
                    start_offset = 0
     importing  value            = lv_page.
Cheers,
Darren

Similar Messages

  • Smartforms: main window side by side at the same page

    Hi friends,
    how can I print the content of my main window side by side at the same page?
    In SapScript is very easy, I just make two "page windows" of the main window and position it.
    Do I need to do this control manually?
    Thanks in advance
    Michel

    Hi,
      I think this is not possible as we have to use MAIN window if our data is going to over flow into other pages.
       Even if we use templates and loop nodes in secondary windows, then this will do fine for one page. But the data is not going to over flow into the next page if we have more data.
    Thanks and Regards,
    Bharat Kumar Reddy.V

  • Smartforms-To change table display(in main window) dynamically

    Hi,
    In Smartforms - Main Window - Table
    I have to change the Record display dynamically,
    like Ex - I have sale order display at item level, First SO has three item, Second SO has ten item.
    So, at run time - I want First SO on First page & Second SO on Second page.
    (Similar like - PROTECT - ENDPROTECT in script)
    How can I do this in Smart forms?
    Regards,
    Ashlesha

    Hi Ashlesha,
                  The protect and endprotect command in sapscript doesn't work with smartforms.
                  The usage of protect and endprotect can be brought about in Smarrtforms is by using a folder node and checking the 'PROTECT' checkbox, everything in that folder will be page protected.
                   This is actually called 'Page Protection'.
    Best Regards,
    Shree Tejus.

  • Samrtform: table line should be displayed whole main window.

    Hi All,
       I have a requirement, the table lines in smartform should be displayed in whole window.
    The above should be like,
    Note: the table control height gets dynamically changed, in my case there is only one item in table so the table control lines are not filled the main window.
    Appreciate your help.
    Thanks.

    Hello Alexander,
    You need to create a TEMPLATE with extact width and height of your main window. This Template should contains the line type with the borders.
    Remove the borders from the table line in the main window.
    Regards,
    Naimesh Patel

  • Columns in sapscript form in main window

    Hi,
    In the script for packing list, i want to display columns for the item details for the item details in main window.
    can any budy tell regarding how to write the box statement for the itrem details.
    regards,
    vamsykrishna.
    reward point for good answers

    hi vamsy,
          try this:
    Goto the text elements of main window spcify the following command.
       /: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
    WIDTH
    Width of the box. Default: WIDTH value of the SIZE command.
    HEIGHT
    Height of the box. Default: HEIGHT value of the SIZE command.
    FRAME
    Thickness of frame. Default: 0 (no frame).
    INTENSITY
    Grayscale of box contents as %.
    Default: 100 (full black)
    EXAMPLE:
    /: BOX WIDTH '17.5' CM HEIGHT 1 CM FRAME 10 TW INTENSITY 15
    thanks,
    raji
    reward if helpful

  • My tables always start on a new page – why?

    When I use a table Pages always creates a new page an starts there with the table. I want the table in the text. I don’t find a reason. It hasen’t always been like this.

    As far as I know, it's not the normal behavior.
    Look at these two screenshots of the same document.
    I gave a green background to the 3rd paragraph so that it would be easy to see its location after the insertion of a large table.
    As you may see, the table pushed the text exactly as it's supposed to do.
    So I decided to make some complementary tests and I discovered that I was able to force the described behavior.
    It just requires that I define line spacing as "Exactly".
    Maybe your text is using this setting.
    Yvan KOENIG (VALLAURIS, France) jeudi 18 août 2011 20:36:30
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • Subreport repeating and supress the new page

    Hi, I make a report with Crystal report and I use a subreport.
    This subreport is repeating some information. Why when a subreport is repeating something it begin on a new page.
    I subreport which doesn't repeat it's ok but the other.
    It's possible to say that it begin where I will.
    If someone has an idea.
    CR with Visual studio 2008, c#

    It is with the different section make sure that you have checked this option : conserve unity, it's the check box before delete the empty section.
    Try it and I hope this will work.

  • When I open mail I get a list of the messages received but when I click on a message it does not displaying the main window. I have 2 different mail accounts

    Just bought a new MacMini(my first Apple PC) and when I open mail I get the brief details of mail received but whe I click on the message to read the details I get a "loading" sign but the message is not displayed.
    Any help for a Dumbo would be appreciated.

    Very strange, do you have any AV or Web filtering apps like Norton installed?
    Do the working accounts use a different Port or Authentication than the non-working one?
    The receiving email ports are:
    IMAP is port 143
    IMAP-SSL is port 993
    POP is port 110
    POP-SSL is port 995

  • How to repeat template layout in new pages?

    I want to make a very simple storyboard layout with three rows dividing the page horizontally and one vertical line a third of the way from the left margin.
    I did this and saved it as a template but the layout only shows up on the first page.  If I add a page before or after the page with the layout, Pages gives me a blank page.
    I would like the layout to repeat each time I add a page.  Is this possible? If so how?
    Cheers,

    Section Masters have static uneditable items on every page, really just watermarks.
    I take this back. It won't work in Layout mode documents but in Word Processor documents:
    1. Add a vertical rule with the Shapes tool.
    2. Add either 3 text boxes or a 3 row table
    3. Select all the above: Menu > Arrange > Section Master > Move Objects to Section Master/Make Master Objects Selectable
    4. Insert a Section Break on each page. It has to be a Section break otherwise editing the Master Objects will repeat on previous pages.
    This has been always the absolute worst part of Pages 5 and I really can't figure out how anyone at Apple thought this was good design.
    This was all resolved 30 years ago in PageMaker, Ready-Set-Go, and several other DTP Apps. Not to mention it worked very effectively in Pages '09.
    I admit the Captured Pages implementation in Pages '09 is less than obvious, but its function once set up is way faster than anything else I know.
    Peter

  • If i have a form with check boxes. Can I add a button that will display the boxes that the user selected on a new page?

    For example, there are 10 check boxes and the user selects 5 of those boxes. Then they click a submit button. Just the information from those boxes would be displayed so they can print it. Is this possible? Any help pointing me in the right direction would be appreciated.

    That is definitely possible.
    Option 1: checkboxes are all named differently.
    In the click event for the submit button, add some code like this...
    if (cbChoice1 == "1") p2.tfChoice1.presence = "visible";
    else p2.tfChoice1.presence = "hidden"; //can use "invisible" if preferred
    if (cbChoice2 == "1")...
    Option 2: checkboxes are named the same
    In the click event for the submit button, add code like this...
    var checkboxes = xfa.resolveNodes("cbChoice[*]");
    var textfields = xfa.resolveNodes("p2.tfChoice[*]");
    for (i=0; i<checkboxes.length; i++){
        if( checkboxes.item(i).rawValue == "1") textfields.item(i).presence = "visible";
        else textfields.item(i).presence = "hidden";

  • Main Window

    Hi,
    I want to print some data in internal table in Main Windon and I have 4 windows which comes as footer.
    now my question is if the data extend to next page , the main window on first page should be extended.
    Please any one can help in this regard???
    Thanks

    Hi
    that is the property of MAIN window. it will automaticaly extend to new page.
    Only thing you need to do is to specify a NEXT PAGE for first page. and define main windiw in that. you can use first page as the next page also or can define new page.

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

  • 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

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

  • Box in main window extend to next page in sapscript

    Hi all,
    I am trying to put box in main window in sapscript.
    contents of main window extends  to more than 1 page.
    Box  is appearing on first page but is not extending to other pages.
    Pl help,
    Regards
    Senthil

    Hi,
    Please refer this thread.
    Link: [sapscript box nto printed on all pages;
    Hope this will help you.
    Regards,
    Renuka S.

Maybe you are looking for

  • Remove edit button from channels & URL textbox

    Can anyone please tell me how I remove the edit buttons from channels on the portal desktop? Also in the bookmarks channel how can I remove the URL textbox? Thank you for any help anyone can give me.

  • F.13 in Background mode?

    Hi all, I am trying to schedule F.13 Tcode( SAPF123) in background. It has got 2 options; 1) test run:- no issues here 2) actual run:- in forground mode it asks for a user confirmation(i.e press enter manually). Only after user "enters" it clears the

  • Synchronous Java Proxy Server template - filling reponse message elements

    Hi ! I'm writing a java proxy server for a synchronous interface. I'm somehow new in java...and I don't know how should I create elements for my response message inside the java method used to process the request message. The response message format

  • IP SLA calculation understanding

    I find some issues in IP SLA measurements. I have configured IP SLA jitter porbes, and get inconsisten results. A debug on a probe provide : 12w4d: IPSLA-OPER_TRACE:OPER:2 udp-jitter STS: 55003580, RTD: 55003054, STD: 55003591, RTS: 55002774 12w4d: I

  • Option key malfunction

    hi I've a weird problem in my macbook pro. Whenever I start it, it gives startup boot drive option. After startup my keyboard prints symbols instead of characters. It seems as if my opion key is permanently pressed(ON). I somehow managed to use keybo