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.

Similar Messages

  • Fixing the height of the maon area of a table in the main window in smartfo

    hi all,
    I have a requirement where I need to fix the height of the main area of a table in the main window in a smartform.

    Hi,
    If you need to fix the height of the main area of a table on a page.
    Then use a loop node to loop the table with 1 to 6 rows and under the loop node make us of a template for displaying the fixed no of rows.
    Regards,
    Ram

  • 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

  • Change Table control Column Header text dynamically

    Hi,
    I have an requirement to change table control column header text dynamically.
    i.e. I have about 10 columns in table control, out that need to change 5 columns header text. These header texts are stored in an internal table.
    I had looked into the below link but could not get exactly how to do it.
    Dynamic headers in table control
    Could you please tell me how to do that.
    Thanks in Advance.

    Hi Saba,
    What you will need to do is this.....
    1. First replace the column Header Text box by I/O Fields and name them accordingly.
    Say for example we will consider the same example which i had explained in the link.
    there in the column header we want the header to change when some dates and entered into two fields which are out of table control say
    Start Date: 01.01.2010 to End Date: 06.01.2010
    Now we want the header to look like this,
    Column  No.    -        1               2             3                  4               5               6
    Header label   -    01/FRI       02/SAT     03/SUN       04/MON     05/TUE      06/WED
    Header name -    SPOTS1   SPOTS2    SPOTS3      SPOTS4     SPOTS5    SPOTS6
    then you go as per the instructions in the link......
    Let me know if you need further help,
    Hope this solves your problem....
    Regards,
    Abhijit G. Borkar

  • 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

  • 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

  • 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

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

  • 2 different  tables   in the main window with same internal table data

    Hi All,
    can we have 2 diffterent  tables with same internal table data into its work area in the main window.Is it possible or we will get any run time error.?
    is it like having 2 nested loop with same internal table ?
    ex : loop at itab1 into wa_itab.
           loop at itab1 into wa_itab.
    endloop.
    endloop.
    can we use like this?

    Hi,
    there will not be any error ...but what is the use of it...
    do you need to have a controlled way of display ...of the data...
    If so then you create another workarea in the global definitions of the same type and then use it...
    Regards,
    Ram

  • Script to change Table display from Drop-down options

    I have created a Web Template in BEx WAD (BW 3.5) with 4 Tables assigned to 4 dfferent Queries. Now I want to change the display of the all the Four Tables based on the selection of display properties chosen in a single Dropdown item. The properties to be selected in the dropdown are like changing the Alternate style display of Rows, Suppress Alternate Style, Display only 30 Rows or 60 Rows.
    Please help me in writing the script necessary to pass the command from the dropdown to all the Tables to get the desired output.
    Thanks,
    Krishna

    Change the path and image to suit in the following
    <!DOCTYPE html>
    <html>
    <head>
    <title>Untitled</title>
    </head>
    <body>
    <select name="image" id="image" class="inputbox" size="1">
       <option value=""> - Select Image - </option>
       <option value="image1.jpg">image1.jpg</option>
       <option value="image2.jpg">image2.jpg</option>
       <option value="image3.jpg">image3.jpg</option>
    </select>
    <div id="imagePreview">
       displays image here
    </div>
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
    <script>
    $(document).ready(function() {
       $("#image").change(function() {
         $("#imagePreview").empty();
         if ( $("#image").val()!="" ){
            $("#imagePreview").append("<img src=\"" + $("#image").val()  + "\" />");
         else{
            $("#imagePreview").append("displays image here");
    </script>
    </body>
    </html>
    Gramps

  • How to change the display limits of a dynamic table?

    Hi folks,
    I'm using DW CS4 and PHP. I've got a php page with a dynamic table and repeating region that I built for my client. This table lists our entire active member list. Initially I built the dynamic table to show only 50 records at a time because 300+ records made an overly long page. Now my client wants all the records on a single page, because he doesn't like clicking through the recordset paging of First - Next - Previous - Last list to find who he is looking for. I tried changing the Repeating Region behavior to All Records (rather than 50) but it still displays only 50. I'm sure this is because initially when I set up the dynamic table, I limited it to 50 there. Is there an easy way to change the dynamic table from 50 to All Records, without rebuilding the entire page? I've looked in several places and can't find a way to edit this. Thanks for your help,
    Gail

    Gunter,
    Thanks for your continued help on this forum. You have made people's
    work a lot easier and stuck with them through some thorny issues.
    If I may redirect you to an issue I had a few months back - the initial
    posting was here at:
    http://forums.adobe.com/thread/767154?tstart=300
    I couldn't turn the answers I received into a workable solution. Would
    you be willing to take a look at this?
    Thanks again for your help,
    Gail

  • 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

  • Page break for Smartform with multiple main window on pages

    Hi Experts,
    I have a requirement for printing 3 pages. The difference among the 3 pages is the main window part.
    The main window contains not only internal table, also complicated texts like payment instructions etc.
    The requirement is in each page, the data in internal table should be changed, also payment instruction should be changed accordingly.
    e.g:
    Main Window of Page 1
    Part 1 for Internal table
    VAT on ITEM ------- 4O-------60,00------0.00%-------EUR
    Part 2 for Payment Instructions
    Texts for Page 1
    Main Window of Page 2
    Part 1 for Internal table
    VAT on ITEM ------- 5O-------60,00------0.00%-------EUR
    Part 2 for Payment Instructions
    Texts for Page 2
    Main Window of Page 3
    Part 1 for Internal table
    VAT on ITEM ------- 6O-------60,00------0.00%-------EUR
    Part 2 for Payment Instructions
    Texts for Page 3
    At first, I was using only one page 'Page1' with a variable page_no = 1 as default value, and use program line page_no = page_no + 1 as counter. when page_no = 2, use command for force page break to 'Page1', then under the command, change the internal table and payment instruction texts. when page_no = 3, ...
    But I encountered an error saying:
    Runtime Errors         GEN_BRANCHOFFSET_LIMIT_REACHED
    Short text
         Jump distance is too large and cannot be generated.
    So I created 3 pages, with different main window M_window1, M_window2, M_window3 for each page. In page1, after printing the M_window1, page_no = 2, use command to go to page2, but page2 is never printed. I think this is because only one main window can exist in a smartform? but why smartform allows creating individual main window for different pages? what's the use of such main window?
    By the way, what's the use of command for force page break? only work for one main window in a smartform?
    Getting back to my requirement, I think I should still use one page and command for page break. I am trying to solve this.
    Thanks.
    Li Jun Da.

    Now I am using 3 pages: Page 1, Page 2, Page 3.
    Page 2, Page 3 are copies of Page 1 with main window renamed as second window: mw 2, mw 3.
    I also created 2 command nodes in main window of page 1: cmd 2, cmd 3.
    cmd 2 is for page break to Page 2, cmd 3 is for page break to Page 3.
    The second window mw 2, mw 3 in Page 2, Page 3 can be displayed.
    Even though, I still can't understand how main window of pages (not 1st page) can work.

  • 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

  • Smartform main window in version 6.0

    hi experts,
    im working on smartforms.
    my doubt is how many main windows we can create in a smartform?
    in 4.7 version it allowed a single main window. then what is the case in version 6.0.
    plz some one help me. give me the complete details abt no.of main windows in a smartform in version 6.0
    thanks in advance.

    hi experts,
    thanks for ur answres.
    but when i created 2 pages, each page with a main window, its not showing any syntactical errors, simply getting activated. but when i executed it, its going in to dump.
    so, i created 2 pages, created main window in page1 n then copied it to page2, then its giving output, but the data is getting displayed only once, i mean either in page1 or in page2.
    plz some one solve this. thanks in advance.

Maybe you are looking for

  • Metadata not showing up in folders but on desktop only

    When exporting photos from lightroom on to my desktop, I am able to view all the Metadata information when "getting information". However, that information does not show up when the photos are exported into individual folders within the computer. I a

  • Adding a UNIQUE Constraint to an existing table

    Hi, I got this issue because of the existing data. My issue is in my table I want to add a unique constraint to two columns but i cannot add this becuase of the existing repeating data. And I cannot do a data repair to fix the repeating data since th

  • Performance tuning of the XI System

    Hi Everybody, We are testing  the Interfaces in QA System and I see the messages are getting stuck when we have load. Is there any performance tuning which can be done to better the performance.. Can somebody suggest me the options? Helpful answers w

  • Physical architecture of SSAS

    Hi experts,  can anyone please help me the physical architecture of SSAS. It will be very helpful for me to improve my skill. Thanks

  • Invalid Serial number and RAM memory upgrade problem

    1. Please, I am trying to reinstall Snow Leopard, at the end is coming "Invalid serial number entered Setup requires a valid serial number. The serial number has the format XSVR-106-x-xxx-xxx-xxx-xxx-xxx-xxx-x! but my serial number is: C07XXXXXXXXX!