How to implement 'no split' at end of page in smartforms

Hi frnz,
in my smartform, there is a main window on the page.
i have implemented a loop in the main window.
each row in a loop displays a box in the window.
the box has 7 rows. The height of the rows is not fixed & so the height of the box is not fixed...
so if the first row is fetched, 1st box is displayed....
now 2nd row is fetched & 2nd box is also displayed if there is still space in the the main window on page 1...
what happens sometime is that only half box is printed on page 1 & half box is printed on page 2 due
to lack of space on page on in main window..
i dont wnat this to happen.. the box should be printed only on one page.... can any1 help...
thanks in advance....

thans frnz for ur prompt reply...
i have a main window which may extend upto 1 or more pages...
in the main wndow i have a loop & in that loop there are 7 rows...
i have not made use of table...
i have tried putting the folder at 2 places in the main window.
1. before the loop & included  the loop along with its elements in the folder.
2. after the loop statement and only included the elements in the folder....
  but the page protection check box is disabled in either case...
any idea guys...

Similar Messages

  • How to implement 'no split' on end of page in smartforms

    Hi frnz,
    in my smartform, there is a  main window on the page.
    i have implemented a loop in the main window.
    each row in a loop displays a box in the window.
    the box has 7 rows. The height of the rows is not fixed & so the height of the box is not fixed...
    so if the first row is fetched, 1st box is displayed....
    now 2nd row is fetched & 2nd box is also displayed if there is still space in the the main window on page 1...
    what happens sometime is that only half box is printed on page 1 & half box is printed on page 2 due
    to lack of space on page on in main window..
    i dont wnat this to happen.. the box should be printed only on one page.... can any1 help...
    thanks in advance....

    sims wrote:
    Hi Anil,
    Its a standard page & i want it on click of apply button but my question is when i click apply button it navigates to other page..is it possible in such scenario to extend the controller.
    Thnx for ur suggestion
    SimsThat is not an issue, you can extend the controller of that page and get the value of sequence and set it to the VO attribute.
    Thanks
    --Anil
    http://oracleanil.blogspot.com

  • How to implement String.split() on 1.3?

    Hi,
    I have a String split method which is able to be run on 1.4.
    The string "boo:and:foo", for example, yields the following results with these parameters:
    Regex Limit Result
    : 2 { "boo", "and:foo" }
    : 5 { "boo", "and", "foo" }
    : -2 { "boo", "and", "foo" }
    o 5 { "b", "", ":and:f", "", "" }
    o -2 { "b", "", ":and:f", "", "" }
    o 0 { "b", "", ":and:f" }
    The program cannot be complied if I run it on 1.3. How can I do the 1.4 split function on 1.3?
    Thanks for advice

    If you don't require the more powerful regular expression matching, you can implement the split() functionality with existing String methods.
    If you are splitting around a character, you can use StringTokenizer, unless you care about empty tokens. If you need empty tokens returned, then you can use the following method:
    public static String[] split(String input, char c) {
        int tokenCount = 0;
        int cIndex = -1;
        do {
            cIndex = input.indexOf(c, cIndex + 1);
            tokenCount++;
        } while (cIndex >= 0);
        String[] tokens = new String[tokenCount];
        int tokenIndex = 0;
        do {
            int index = input.indexOf(c, cIndex + 1);
            if (index < 0) {
                tokens[tokenIndex] = input.substring(cIndex + 1);
            else {
                tokens[tokenIndex] = input.substring(cIndex + 1, index);
            cIndex = index;
            tokenIndex++;
        } while (cIndex >= 0);
        return tokens;
    }If you need to split around a multiple character string, use the following method.
    public static String[] split(String input, String str) {
        int strLength = str.length();
        int tokenCount = 0;
        int strIndex = -strLength;
        do {
            strIndex = input.indexOf(str, strIndex + strLength);
            tokenCount++;
        } while (strIndex >= 0);
        String[] tokens = new String[tokenCount];
        int tokenIndex = 0;
        strIndex = -strLength;
        do {
            int index = input.indexOf(str, strIndex + strLength);
            if (index < 0) {
                tokens[tokenIndex] = input.substring(strIndex + strLength);
            else {
                tokens[tokenIndex] = input.substring(strIndex + strLength, index);
            strIndex = index;
            tokenIndex++;
        } while (strIndex >= 0);
        return tokens;
    }These have only been lightly tested, no guarantees.

  • How to display LED lights in end of page of ALV(factory method)

    Hello Experts,
    How do I display the LED lights in my end-of-page(red, yellow and green).
    Below is my code:
    METHOD display_end_of_page.
        CREATE OBJECT lcl_grid.
        lv_string = text-t04.
        lcl_label = lcl_grid->create_label(
                      row     = 1
                      column  = 1
                      text    = lv_string
                      tooltip = lv_string ).
        CLEAR lv_string.
        lv_string = ICON_GREEN_LIGHT.
        lcl_label = lcl_grid->create_label(
                      row     = 2
                      column  = 1
                      text    = lv_string
                      tooltip = lv_string ).
        lcl_label = lcl_grid->create_label(
                      row     = 3
                      column  = 1
                      text    = lv_string
                      tooltip = lv_string ).
        lcl_content = lcl_grid.
      ENDMETHOD.                    "display_end_of_page
    Hope you can help me guys.Thank you and take care!

    Hi,
    Use this code for Demo
    *& Report ZMDEMO_ALV_04
    *&Make an Exception field ( = Traffic lights)
    *&There can be defined a column in the grid for display of traffic lights. This field is of type Char 1, and can contain the following values:
    *& 1 Red
    *& 2 Yellow
    *& 3 Green
    *&The name of the traffic light field is supplied inh the gs_layout-excp_fname used by method set_table_for_first_display.
    report zmdemo_alv_04.
    tables: sflight.
    type-pools: icon.
    types: begin of ty_sflight.
    include structure sflight.
    types: traffic_light type c,
    lights LIKE icon_xml_doc,
    lights(4),
    icon type icon-id.
    types: end of ty_sflight.
    G L O B A L I N T E R N A L T A B L E S
    data: t_sflight type standard table of ty_sflight.
    G L O B A L D A T A
    data: ok_code like sy-ucomm,
    wa_sflight type ty_sflight.
    Declare reference variables to the ALV grid and the container
    data:
    go_grid type ref to cl_gui_alv_grid,
    go_custom_container type ref to cl_gui_custom_container.
    data:
    t_fcat type lvc_t_fcat,
    wa_layout type lvc_s_layo.
    S T A R T - O F - S E L E C T I O N.
    start-of-selection.
    perform build_fieldcat.
    perform build_layout.
    set screen '100'.
    *& Module USER_COMMAND_0100 INPUT
    module user_command_0100 input.
    case ok_code.
    when 'EXIT'.
    leave to screen 0.
    endcase.
    endmodule. " USER_COMMAND_0100 INPUT
    *& Module STATUS_0100 OUTPUT
    module status_0100 output.
    Create objects
    if go_custom_container is initial.
    create object go_custom_container
    exporting container_name = 'ALV_CONTAINER'.
    create object go_grid
    exporting
    i_parent = go_custom_container.
    perform load_data_into_grid.
    endif.
    endmodule. " STATUS_0100 OUTPUT
    *& Form load_data_into_grid
    form load_data_into_grid.
    data l_light type c value '1'.
    Read data from table SFLIGHT
    select *
    from sflight
    into table t_sflight.
              o
                    + Condition placing to the traffic_light Field
    LOOP AT t_sflight INTO wa_sflight.
    wa_sflight-traffic_light = l_light.
    MODIFY t_sflight FROM wa_sflight.
    IF l_light = '3'.
    l_light = '1'.
    ELSE.
    l_light = l_light + 1.
    ENDIF.
    ENDLOOP.
              o
                    + Setting the Icon based on the traffic_light field value.
    LOOP AT t_sflight INTO wa_sflight.
    CASE wa_sflight-traffic_light.
    WHEN '1'.
    wa_sflight-lights = icon_red_light.
    WHEN '2'.
    wa_sflight-lights = icon_yellow_light.
    WHEN '3'.
    wa_sflight-lights = icon_green_light.
    ENDCASE.
    MODIFY t_sflight FROM wa_sflight.
    ENDLOOP.
    loop at t_sflight into wa_sflight.
    case l_light.
    when '1'.
    wa_sflight-lights = icon_red_light.
    when '2'.
    wa_sflight-lights = icon_yellow_light.
    when '3'.
    wa_sflight-lights = icon_green_light.
    endcase.
    if l_light = '3'.
    l_light = '1'.
    else.
    l_light = l_light + 1.
    endif.
    modify t_sflight from wa_sflight.
    endloop.
    Load data into the grid and display them
    call method go_grid->set_table_for_first_display
    exporting
    I_BUFFER_ACTIVE =
    I_BYPASSING_BUFFER =
    I_CONSISTENCY_CHECK =
    i_structure_name = 'SFLIGHT'
    IS_VARIANT =
    i_save = 'A'
    I_DEFAULT = 'X'
    is_layout = wa_layout
    IS_PRINT =
    IT_SPECIAL_GROUPS =
    IT_TOOLBAR_EXCLUDING =
    IT_HYPERLINK =
    IT_ALV_GRAPHICS =
    IT_EXCEPT_QINFO =
    IR_SALV_ADAPTER =
    changing
    it_outtab = t_sflight[]
    it_fieldcatalog = t_fcat
    IT_SORT =
    IT_FILTER =
    EXCEPTIONS
    INVALID_PARAMETER_COMBINATION = 1
    PROGRAM_ERROR = 2
    TOO_MANY_LINES = 3
    others = 4
    endform. " load_data_into_grid
    *& Form build_fieldcat
    text
    --> p1 text
    <-- p2 text
    form build_fieldcat .
    data: w_fcat type lvc_s_fcat.
    define macro_fcat.
    w_fcat-fieldname = &1.
    w_fcat-col_pos = &2.
    w_fcat-coltext = &3.
    append w_fcat to t_fcat.
    clear w_fcat.
    end-of-definition.
    macro_fcat 'CARRID' 1 text-c01 .
    macro_fcat 'CONNID' 2 text-c02 .
    macro_fcat 'FLDATE' 3 text-c03 .
    macro_fcat 'PRICE' 4 text-c04 .
    macro_fcat 'SEATSMAX' 5 text-c05 .
    macro_fcat 'SEATSOCC' 6 text-c06 .
    macro_fcat 'LIGHTS' 7 text-c07 .
    endform. " build_fieldcat
    *& Form build_layout
    text
    --> p1 text
    <-- p2 text
    form build_layout .
    wa_layout-cwidth_opt = 'X'.
    wa_layout-excp_fname = 'TRAFFIC_LIGHT'.
    wa_layout-excp_group = '1'.
    endform. " build_layout
    Regards,
    Dhruv Shah

  • How to print a field on the last page of Smartform with more  of 2 pages?

    HI FRIENDS,
    I NEED TO PRINT ONLY ONE FIELD IN LAST PAGE OF FORM SMARTFORM
    HOW DO I CHECK last page. I tried WITH THE FIELDS OF TABLE
    SFSY BUT NOT worked.      
    The form has  more of  2 pages.
    Thank you.
    ROGERIO VAZ

    Hi ,
    You dont have to hard code anything to achieve this functionality,
    just create a window and in that window define a text element to print
    that variable.In the conditions tab of that window check the check box
    "only after end of main window".i think you might have used a main window,
    so irrespective of the no of pages the smartform prints,it always displays that
    field in the last page of the smartform.
    regards,
    srikanth.

  • How to display each record on a new page on Smartforms layout

    Hi,
    I need to know how "each time a new record is displayed..it should be displayed on a new page in Smartforms". How much ever I try using the COMMAND inside the LOOP, it is always printing the records in the loop continiously in a single page with the remaining records moving to the next page only once the first page is full. But what i need is to print first record in the first page, second record in the second page...
    Please let me know the exact steps how to use the COMMAND or any other options to acheive this.
    Thanks!
    Edited by: sap123 on Nov 2, 2008 11:55 AM

    hi,
    create a command just before the main windows display and in its general attributes check the check box go to new page and in its conditions tab..set Falg = X.
    now inbetween the loop of ut table or templet, crete program lines and write the code as below.
    data : lv_lines type i.
    describe table i_vbak lines lv_lines.
    clear flag.
    if sy-tabix LT lv_lines.
    flag = 'X'.
    endif.
    remember that these program lines must be after command...
    Try this,

  • How to implement the record count on the page

    Dear,
    I have a basic search page, results region with a simple table.
    I need to show the total number of records returned by a search query.
    Suppose I create messageStyledText "counter" bean to show the result.
    The result will be calculated in the ProcessFormRequest, how would I set the value of the the "counter" bean then? I can not do that in PFR.
    Thank you
    Anatoliy

    In the PFR method of controller, get the row count of VO when user click on search button and then set its value in the counter bean.
    Here the dummy code.. check syntax error & other compile time error
    if(pageContext.getParameter("SearchBtn") != null)
    OAViewObject vo = (OAViewObject)am.findViewObject("SearchVO1")
    if (vo!= null)
    String fetchedRowCount = vo.getFetchedRowCount();
    OAMessageStyleTextBean msb = (OAMessageStyleTextBean)webBean.findChildRecursive("CounterBean");
    if(msb != null)
    msb.setvalue(pageContext, fetchedRowCount);
    }Thanks
    --Anil
    http://oracleanil.blogspot.com

  • How to implement table pagination/navigation in ADF pages?

    Hi,
    I am developing an ADF application, where I have a requirement to implement table pagination like the one used in Google (<< < 1 2 3 ... > >>). I have around 1 million rows and the user needs to navigate to different sets using the buttons at the bottom of the table. I know that in ADF the scroller loads the data depending on the range but I haven't found anything like the one used in Google.
    There is an implementation of dropdown in trinidad table but our application is using the ADF table. Any light in this direction will be a great help.

    Search the forum fro pagination or page ranging. Lots of discussion here.
    Generally you have to write it yourself, theres no way to use rich table this way.
    Timo

  • How to implement File Upload/DownLoad in OA page

    Hi All
    I have to implement the File download feature of OA Framework in my Custom OA page when i click the button.
    In developer's Guide i gone through this but i did'nt get what to set in
    File View Attribute,
    File Name Override,
    File MIME Type,
    and View Attribute
    Please Suggest
    Best regards

    The information is there in the dev guide
    File View Attribute - The view attribute that maps to the column that stores the file content.
    File Name Override - The file name to save to when you select the File Download link and choose the Save option in the File Download window to save the file. The default file name that appears in the File Name field of the Save As dialog window is derived from the value returned from the view
    attribute specified by the View Attribute property. The value of the File Name Override property overrides that default file name and is especially useful if the view attribute returns instructional text, such as "Click on this link to download the file". If the File Name Override property is not defined, then
    the file name to save to is the value returned from the view attribute.
    File MIME Type - The MIME type of the file. See the Runtime Control example below if you do not want to specify a static value for this property.
    Data Type - The data type of the File View Attribute. The BLOB datatype is now supported for File Download as of OA Framework 11.5.10D.

  • Learn how to implement boilerplate content in your CQ5 pages

    Hi,
    I recently published a new page in the CQ5.5 documentation: How to use Components as Boilerplates
    In a nutshell:
    Create the boilerplate content.
    Include the content in other pages (single-source it).
    Enable only some users (for example, editors) to modify the boilerplate content.
    Make it obvious for all other users that the content cannot be edited.
    Let me know if you find this useful!
    scott

    Hi,
    There are many posts on this ... kindly search ….you find good amount of discussion and documents on this  go thru this … we may get ..
    https://help.sap.com/saphelp_nw04/helpdata/en/80/1a66d5e07211d2acb80000e829fbfe/frameset.htm
    Regards,

  • How to print a field on the last page of Smartform?

    HI FRIENDS,
    I NEED TO PRINT ONLY ONE FIELD IN LAST PAGE OF FORM SMARTFORM
    HOW DO I CHECK last page. I tried WITH THE FIELDS OF TABLE
    SYSF BUT NOT worked.
    Thank you.
    ROGERIO VAZ

    Hi,
    Goto the conditions tab of that window and enable the check box for Only after the end of main window.
    This will surely print your field in the last page.
    try this and get back to me if any issues.
    Regards,
    Anand.

  • How to keep a logo in alv in end of page

    hai all
    how to put a logo in end of page in alv report, like a we put in top of a page
    tahnks in advance
    sindu

    Hi,
    you need to Know Few things..
    1. END_OF_PAGE will trigger only when you click on Print or when you view the print preview
    2. it is not possible to place the logo in the end_of_page.
    3. Not sure you can give a try with END_OF_LIST( i'm sure this will not trigger in ALV grid).
    4. if your aim is to show the logo in the end_of_page then try with OO ALV, split the container, in the first container place the grid and in second one place the logo.
    But this case also not sure.
    One thing i can say it is not at all possible(90%).
    10% keep trying for it,
    Regards
    vijay

  • A how-To guide about splitting import files exists?

    Hi All,
    in his Webinar https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/409e4529-adbc-2a10-4d9b-e8fade570414
    Klaus David said a "A how-To guide about splitting import files exists" (Page 20).
    Can anybody tell me where to find this guide?
    Please mail to becker.roman ( at ) web . de
    Best regards
    Roman

    I found the link here, if you are still looking.
    I didnot check the contents yet but the title says
    MDM 5.5 SP06 - IT Scenario Configuration Guide -
    https://websmp202.sap-ag.de/~sapidb/011000358700001119482007E
    Thanks
    Satya

  • How to implement the FCKeditor in the WPC

    Hi all,
    can anyone tell me how to implement the FCKeditor in the Web Page Composer?
    I failed to implement TinyMCE because of the domain relaxing thing...
    Thanks a lot
    Steffi

    It's one of J2EE Patterns - Value List Handler.
    http://java.sun.com/blueprints/corej2eepatterns/Patterns/ValueListHandler.html
    Here is some implementation.
    http://valuelist.sourceforge.net/
    and some article
    http://www.devx.com/Java/Article/21383
    Just google "J2EE paging"

  • End of page in last page

    hi...
    End of page triggers only when the body of the list is full... if in the last page I dont have enough data to display  the whole page then the end of page is not displayed...
    how can i achieve this ie. end of page in the last page
    regards
    padma

    Hi Padmavathi,
    Let me give you and example
    Suppose you can fill 10 = x, lines in a page and if records in your internal table is w_line,
    y = ( x - ( w_line - ( sy-cpagno - 1 ) * x ) ).
    skip y.
    y is the number of lines left out in the last page. Skipping so many lines triggers the end-of-page.
    Reward if useful
    Indu.

Maybe you are looking for

  • MP3 and Flac player

    Hi, I am looking for a good audio player with the option to play MP3 and Flac files. I have tried FLAC player but its capability for organizing and editing  files according to composers and musical works is very limited. Any help will be appreciated.

  • Is there any function module getting the cpu type?

    Is there any function module getting the cpu type?

  • I am stuck in FIELD-SYMBOLS and dynamic tables.

    Hi guys,             I am trying to create dynamic table. My requirement is as follows-- I have to display grid layout report in depending on given input. In input i have fields for DC and STORE. In output i have to display columns depending on numbe

  • OCI Error Codes on TAF failure

    Hello, I am trying to find out what errors OCI returns when TAF does not fully succeed. I have not found sufficient detail in the OCI documentation. The two scenarios are: 1) TAF succeeds, but the in progress statement did not execute successfully (e

  • Double SSID wep/wpa2

    Hello, I want to know how to have a double SSID but it's forbidden to have a wireless interruption with the wep which is on my cisco aironet 1242AG. I need to have wpa2 in addition of the wep. For the moment i use this site to help me : http://idum.f