Smartforms Dump at Command - New Page

Hi Experts,
I have to create a Smartforms Layout. I have to print the first page as Landscape and the rest of the pages as portrait.
The first page will contain the summary. Other will contain different details related to the summary.
I have created 3 pages.
The first page in Layout. The next page here is first page.
The second and third pages as portrait.
On the first page after the summary table I have given a command. I have selected the checkbox, go to new page and specified the next page.
If I give the other pages as Landscape and the main window with the same size as the window on the first page, I am able to print correctly. If I specify as portrait I get a dump.
Any body can let me know how do I create different pages with different layout. Where am I going wrong
Regards,
Abu

Short text
    Exception condition "ERROR" raised.
What happened?
    The current ABAP/4 program encountered an unexpected
    situation.
Error analysis
    A RAISE statement in the program "SAPLSTXBC" raised the exception
    condition "ERROR".
    Since the exception was not intercepted by a superior
    program, processing was terminated.
    Short description of exception condition:
    For detailed documentation of the exception condition, use
    Transaction SE37 (Function Library). You can take the called
    function module from the display of active calls.

Similar Messages

  • New Page command not working in SMARTFORM

    I have a text file in an internal table of type TSFTEXT.  I'm passing this internal table to my smartform.  The smart form has 1 page, 1 main windo and 1 text element.  The text has a text type of "Dynamic Text" and a fieldname = <<internal table of type TSFTEXT>>.  The start property = "New Paragraph".
    In the internal table (TSFTEXT), i have a few NEW-PAGE commands.  These seem to be ignored.  How can I force the smartform to create a new page.  Here is what the internal table looks like.
    / here is some text 1
    / here is some text 2
    / here is some text 3
    / here is some text 4
    / here is some text 5
    /:NEW-PAGE
    / here is some text 6
    / here is some text 7
    / here is some text 8
    / here is some text 9
    / here is some text 10
    Thank you,

    As far as I know, NEW_PAGE is not applicable in smartforms. That only applies to Sapscripts. As you stated in your requirement, to have a new-page in smartform, try to adjust the height of the main window. Once the records on the internal table reaches the total height, then it will automatically create a new page...

  • 2 new page diffrences

    Hi All,
    I would like to ask you the different of 2 new page in smartforms, here they are.
    1/ New page by data overflow in main window of page 1 and go next to page 2.
    2/ New page by using command new page (with command form).
    How can I recognize that 2 situations?
    Please suggest.
    Thank you so much,
    THien

    Hi,
    The first case is when you have a single page and when data oveerflows on  the first page, it will trigger a new page and print the data there.
    The second case:
      When considering the above scenario, if in the flow, you want to display a new-page format ,then command page will be used to trigger it.
    For example:
      If you have display purchase order details, all items corresponding to one purchase document number will be displayed in one or more pages and after displaying all items, you want to trigger a page which has some terms and conditions , so in this case, after every purchase document number, terms and conditions page can be triggered using command_page.

  • SAP Script info req to print new line iten on new page

    hi
    i had an req to print the list of MATNR & KUNNR on script,but the req is like this,at NEW MATNR,the script shd start with new page,say,if there are 5 MATNR,2 are same & 3 are same with diff KUNNR.
    On first page:2 MATNR shd be printed
    On Second Page:3 MATNR shd be printed & so on each time on new page...
    Please tell me how to do it,in window MAIN,how shd i wirte code for this?
    regds

    hey,
    Check this,
    First in your print program call FM 'START_FORM'.
    Then call FM 'WRITE_FORM'
    After this call FM 'CONTROL_FORM' :
    CALL FUNCTION 'CONTROL_FORM'
    EXPORTING
    command = 'NEW-PAGE'
    EXCEPTIONS
    UNOPENED = 1
    UNSTARTED = 2
    OTHERS = 3
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    At last call FM 'CLOSE_FORM'.
    By using FM control_form and passing parameter 'NEW-PAGE' you will get one new page even thow if content of ur main window of previous page is not exceeding..
    hey call new-page for every new matnr
    Regards,
    Midhun Abraham
    Edited by: Midhun Abraham on Oct 11, 2008 8:47 AM

  • To put a new page when month changes in sap script

    hello experts,
    how to put a page break whenever the month changes from the date range given ...
    e,g : 12.03.2007 to 12.09.2007 ... here i want to put the page break betwwen the records of month 03 .. 04..05..06... 09...

    Hi
    It depends on how you manage your sapscript, anyway in your program load all data the range in a internal table:
    DATA: BEGIN OF ITAB OCCURS,
                  DATE LIKE SY-DATUM,
              END    OF ITAB.
    ITAB-DATE = DATE_TO.
    APPEND ITAB.
    MONTH = DATE_TO+4(2) + 1.
    DO.
      IF ITAB-DATE = DATE_TO. EXIT. ENDIF.
      ITAB-DATE+4(2) = MONTH.
      IF ITAB-DATE(6) = DATE_TO(4).
        ITAB-DATE = DATE_TO.
      ENDIF. 
      APPEND ITAB-DATE.
    ENDDO.
    LOOP AT ITAB.
      CALL FUNCTUON 'CONTROL_FORM'
            COMMAND = 'NEW-PAGE'.
    ENDLOOP.
    Max

  • Quick SAP Script question New Page Print

    Quick SAP Script question
    I have added a new page to an existing SAP Script BUT only want it to print if a condition is true.
    I need to do this from within the form as the print program is SAP Std.
    Any idea how I can prevent the new page from printing?
    i.e. I need the form NOT to call the new page if the condition is false. Is there a way of forcing an exit or stop from with in the form?

    Hi,
    To trigger a new page, there is script ediotr command NEW-PAGE.
    so find where is that command is triggered and use the below code for trigger it on any specific condition....
    if &condition& = 'True'
    /*  NEW-PAGE
    elseif
    /: NEW-PAGE   
    endif
    so it means if condition is satisfied your new page will not work.. else it will...
    Hope you got it...
    Try this..
    Best luck..
    Regs,
    Lokesh.

  • PE51 new page

    Hello,
    In Screen HR Form Editor (PE51), I would like to insert a command new page at the last page. Is it possible and how ?
    Thanks a lot for your answer.
    Daniel.

    hello,
    please explain your problem again:
    you print results for two persons onto the payslip for one person?
    page one and two?
    regard
    Stefan

  • New Page COmmand in Smartforms

    Hi,
    My requirement is as follows,
    Whenever the item number changes it has to generate a new page with the header
    Whenever an item overflows it should come in a new page without the header details.
    So for this I have two pages in my smartform.
    Page1 - Header with item details
    Page2 - Only item details without the header
    I have given Page1's next page as Page2. And I have given a command whenever the item no changes it should go to Page1.
    But whats happening now is whenever a new page is generated only Page 2 is coming and not the Page 1.
    Any ideas??

    Hi ,
    u want like this right ...
    assume  that  table  data
    item                            item desc                              qty
    10                              10item descripotion                 23
                                        for material      
    20                               20item descripotion                 33
                                         for material      
    O/P Like  This u want
    *page1
    item                                    item desc                            qty
    10                                       10item descripotion            23
    page2  (dont want  want headers only remainning data of the line item)
                                              for material      
    For this simply u can put your header  in the main area of the table  (leave header as blank)
    Let me know if any concerns........
    Regards,
    Lokesh.

  • Dump error while creating a new page in smartforms URGENT pls!!!

    while creating a new page it is showing me a dump error , that the superior program execption was not intercepted , i have even given the next page field also correctly, i have attached a mainwindow to that page and a text element to that . .
    thanks
    sridhar

    Hi Deena,
    This error:
    "[2012-07-10T14:50:30.005+05:30] [wls_ods1] [ERROR] [] [oracle.adfinternal.view.faces.config.rich.RegistrationConfigurator] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 0000JXkC9dU3FClqwsJb6G1FyhO000003D,0] [APP: odsm#11.1.1.2.0] Server Exception during PPR, #7[[
    javax.servlet.ServletException: Could not initialize class com.octetstring.vde.admin.services.client.VDEAdminServiceSoapBindingStub"
    is known issue
    Go to metalink, article: Unable To Connect To OVD 11g Webinterface Using ODSM. [ID 1282757.1]
    You need to apply that patch.
    I hope this helps,
    Thiago Leoncio.

  • Dynamic New-Page Command in Smartform

    Dear Experts,
    I have a particular requirement of triggering New-Page after the end of Main window for displaying Terms & Conditions on the last page.
    For this purpose I have designed 3 pages :
    PAGE1 - Contains Main window, few Secondary windows and some Graphic windows.
                   (In PAGE1 -> General Attributes -> Next Page = PAGE2)
    PAGE2 - Is in continuation with PAGE1 except a few changes w.r.t. some Secondary windows.
                   (In PAGE2 -> General Attributes -> Next Page = PAGE2)
    PAGE3 - Contains a new Main window for displaying Terms & Conditions, few Secondary windows and
                   some Graphic windows.
                   (In PAGE3 -> General Attributes -> Next Page = PAGE3)
    After the end of Main window in PAGE1 or PAGE2 depending on the amount of data, I have used a Command logic for triggering New-Page (PAGE3). But it always triggers PAGE2 as new page and not PAGE3.

    Thanks Muthukumar.
    But in case if I set a next page of page 3 to the second page, then if my Page2 contains data spreading over more than one pages, it will display Page2 once and immediately display Page3 as next page.
    I will explain my requirement once again:
    1. If my PO details fits on Page1 itself than my next page should be Page3(Terms & Condition page).
    2. If my PO details is of more than one page, for that I have designed Page1 as first page and Page2
        for remaining pages. Once the PO details is over the next page should be Page3.

  • Reg smartforms -  creating a new page for each customer number

    Dear friends,
    This is a sample program for smartform.
    Below is my coding ...
    TABLES : KNA1.
    SELECT-OPTIONS : S_KUNNR FOR KNA1-KUNNR.
    TYPES : BEGIN OF ZFS_KNA1,
            KUNNR TYPE KNA1-KUNNR, 
            NAME1 TYPE KNA1-NAME1,
            ORT01 TYPE KNA1-ORT01,
             END OF ZFS_KNA1.
    DATA : ITAB TYPE STANDARD TABLE OF ZFS_KNA1 INITIAL SIZE 0,
           WA TYPE ZFS_KNA1.
    SELECT KUNNR NAME1 ORT01 PSTLZ LAND1 FROM KNA1 INTO TABLE ITAB WHERE KUNNR IN S_KUNNR.
    Now i am having one secondary window (cusotmer number) and main window(name and city).
    I am able display list of cm nos, names and city in one page.
    But i want to display name, city and number of customer in one single page.
    suppose 5 customer numbers are there.....then 5 seperate pages should be displayed.
    pls help me.
    Regards,
    S. Vinod

    Hi,
    In your loop node... you have sort criteria....
    give the fieldname of the customer number KUNNR and check the check box under the begin of sort event...
    An event node is created... under that event  node... create command node for triggering new page and dont forget to tick the checkbox for " not on first page" in the conditions tab....
    and under that you can create text elements to display the data
    regards
    padma

  • How can i move to a new page in smartform?

    hi friends
    i hav a smartform with two pages.
    the fist page contains the Main window and 3 Secondary windows.
    in the 1st page i'm displaying some line items and in the main window i gave the command to
    go to Page 2.
    the 2nd page contains only one Secondary Window.
    in that i want to display a table with many line items.
    if it contains only 20 line items its works fine; becoz of the window size.
    how can i move to a new page if it contains more line items?

    Hi,
    You need to create main Window on second page also.
    And in Form Attributes..there is an option for Next page.
    So there you mention the next page name.
    This will solve the problem.
    Thanks.
    Swati.

  • New-page for smartform

    Hello all,
    I am facing a problem using smartforms. I am printing a report where there is a loop running for a list of plants. For printing the information of each plant, I need to use a new page. Information of one plant may take several pages but for every new plant, I need to insert a page break.
    I am using a COMMAND with a checked next page option in my EVENT ON SORT BEGIN for the plant code.
    This does the trick, but if I use the command at the bottom, it inserts a blank page at the end of the report. If I use the command at the top of the event, it first shows a blank page and then the data from the 2nd page.
    Please sugest how can I fix this.
    Anmol

    Hi Friend,
            You can use following tips for generating smartforms for every new plant.I have generated sales order report using this steps.You can refer it.Tips are given below:
    1.Define the structure,workarea and internal table for sales order header and details and also define
    select-options for sales order.
    2.Also define the one STRUCTURE which has type as ssfctrlop.
    e.g. control type ssfctrlop.
         This variable we have to define because we are going to use this in
    SSF_OPEN function.This is used to avoid print preview while openning smartform
    for every sales order.
    3. Select data from vbak for sales header.
    4. Call function SSF_FUNCTION_MODULE_NAME.
    e.g.*CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname                 = w_formname
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
       IMPORTING
         fm_name                  =  w_functionname
       EXCEPTIONS
         no_form                  = 1
         no_function_module       = 2
         OTHERS                   = 3
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    5.Now here define the various features or field in control structure.
    This is controls for smartform.
    e.g.  control-no_dialog = 'X'.
         control-preview   = 'X'.
         control-no_open   = 'X'.
         control-no_close  = 'X'.
    6. Call function SSF_OPEN.
         Here you have to pass the control structure which you have define in declaration.
    e.g.
    CALL FUNCTION 'SSF_OPEN'
        EXPORTING
      ARCHIVE_PARAMETERS       =
      USER_SETTINGS            = 'X'
      MAIL_SENDER              =
      MAIL_RECIPIENT           =
      MAIL_APPL_OBJ            =
      OUTPUT_OPTIONS           =
          control_parameters       = control
    IMPORTING
      JOB_OUTPUT_OPTIONS       =
       EXCEPTIONS
         formatting_error         = 1
         internal_error           = 2
         send_error               = 3
         user_canceled            = 4
         OTHERS                   = 5
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    7. Take loop at header internal table .
    8. Select data from vbak for sales details. Also select data from respective tables
    like makt,kna1 here.
    9.Then call function module which generated after executing smartform. And also pass the control structure
    in import parameter in this function module.
    e.g.  CALL FUNCTION '/1BCDWB/SF00000397'
        EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
        control_parameters         = control
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
      OUTPUT_OPTIONS             =
      USER_SETTINGS              = 'X'
          wa_vbak                    = wa_vbak
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            =
      JOB_OUTPUT_OPTIONS         =
        TABLES
          it_vbak                    = it_vbak
          it_vbap                    = it_vbap
    EXCEPTIONS
      FORMATTING_ERROR           = 1
      INTERNAL_ERROR             = 2
      SEND_ERROR                 = 3
      USER_CANCELED              = 4
      OTHERS                     = 5
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    10.After endloop call function SSF_CLOSE.
         If it will help you reward me points.
    Regards,
    Santosh.

  • How to call the new page in smartforms

    Hi friends,
    How to call the new page in smartforms.
    Thanks,
    Ravi

    Hi,
    Create a command node and click the 'Go to new page' check box specifying the page u want to go.
    You can enter your condition for which it should branch to a new page in the 'conditions' tab.
    Regards
    Shiva

  • Smartforms new page

    Hi everybody.
    I have a problem with a SmartForm i'm developing.
    I need to print a table with several columns.
    Each row of the table is group by the first column.
    I want to change the page and begin to print my list in a new page when the value of the first column changes.
    I use the 46C version and I don't know if it coul be possible with it.
    Wait your response.
    Cheers. See You.

    Hi Lorena,
        Create a COMMAND element inside the loop element after you print the line.
    In that COMMAND element, put next page as another page (Create another page),
    In the condition tab of the command element, you can put a condition that if current loop pass's columns <> last loop pass's column value.
    You have to put a program lines element in the loop(At the beginning of the loop), which would calculate the current loop pass's column value)
    Regards,
    Ravi

Maybe you are looking for

  • How to make an a basic attack in my text based game

    hey guys! i really need some genuine help on how to create an attack for my monsters and player. the attack should be basic: if the room contains a monster, then the monster attacks when the player goes inside the room. then the player can type a com

  • Finder cannot complete the operation... (Error code -36)

    Hello, I'm trying to share a file between my new iMac and my PowerBook via file sharing (Finder, Airport 802.11 n). Both computers are on 10.5.3. The iMac is a brand new one, so it's a fresh install. The PowerBook has a new harddrive and is a fresh i

  • Fault View CiscoWorks LMS 4.0.1

    Hello I upgraded the LMS 4.0 with LMS 4.0.1 but now the events are removed of Fault View. The equipaments than I am monitoring are: ME-3600, ME-3800 and ASR 9000. This is a configuration problem or I have to update something else?. Thanks.

  • I am not able to download new nor update old apps

    How can this be fixed?

  • Merge 2 hard drives into 1 SUPERDRIVE!

    Hello All! I have a Macbook with 160GB (personal) and have just bought a Macbook Pro with 120GB and am replacing the Pro with a 250GB hard drive. I would like to take the apps (all licensed)from both Hard Drives and combine them and leave out duplica