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.

Similar Messages

  • 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

  • New page on Smartforms

    Hi All,
             My requirement is given below :
    Matnr
    100
    100
    100
    100
    101
    101
    In *smartforms(ECC 6.0)* ,I want to print matnr 100 in one page and 101 in another page .
    I want to trigger a new page for each matnr.
    Ashok...
    Edited by: Alvaro Tejada Galindo on Feb 14, 2008 5:16 PM

    for your requirement create one command node and there in the general attributes tab there is a check box go to new page,check that one.

  • Problems with the new Pages for Mac

    I'm starting to see countless problems running the new Pages for Mac (5.0.1) and I can't find a way to resolve them.
    1. when I'm typing and want to delete word(s), I'll use the alt+delete function for ease, however this starts deleting words after the cursor, merging words together and changing my sentece. It comes from when I'm deleting as the new pages is giving me the dropdown menu for the autocorrect word.
    2. grammar check is off. Namely, it picks a random point in a word and moves on from there. EX: "because of the" will have "use of the" underlined in green and give me recommendations to change to "because of the" or "cause of the". Using those recommendations, I'll end up with something like: "becabecause of the"
    3. the find and replace function jumps around in the paper, and sometimes doesn't even display the word currently selected (leaving the user to scroll around looking for what is selected)
    4. Autocorrect has vanished for some reason: no autocapitalization, no turning fractions such as 1/2 into a tidy and neat fraction with small numbers for numerators/denominators, etc.
    I'm still using it, and these are what I have found, so there may be more later as I continue to use it. If anyone has found ways around these bugs, please let me know.
    Thanks!

    Semnani wrote:
    4. Autocorrect has vanished for some reason: no autocapitalization, no turning fractions such as 1/2 into a tidy and neat fraction with small numbers for numerators/denominators, etc.
    Pages 5 now uses the system autocorrect, which does not have as many features as the one inside Pages 4.  Some things you can add manually there.   Others you have to ask Apple to add via
    http://www.apple.com/feedback
    Or continue to use Pages 4 instead.

  • I am unable to load some web pages, I get an error message saying unable to load page due to invalid or unsupported form of compression, this happens on the BBC news page for example. Any ideas how to overcome???

    OS is Windows7. I'm using the latest version of Mozilla Firefox
    I am unable to load some web pages, I get an error message saying unable to load page due to invalid or unsupported form of compression, this happens on the BBC news page for example. Any ideas how to overcome???

    Reload web page(s) and bypass the cache.
    * Press and hold Shift and left-click the Reload button.
    * Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    * Press "Cmd + Shift + R" (MAC)
    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    * Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    * Tools > Options > Privacy > Cookies: "Show Cookies"

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

  • Cannot open documents in new pages for iPad

    cannot open any documents in new pages for iPad

    Currently I'm quite disappointed about the update of Pages. I have realised that it happens after I've edited a Pages Document in iCloud and safed the new version, then I'm not able to edit the document on my iPad anymore. I don't even have to change anything in the document. It's just enough to open the document in iCloud then close it again and "ups", it's not possible to open anymore on the iPad. After that my document doesn't show the impression of the document anymore. The document has only the inkpot as symbol for it.
    Where is the benfit of the cloud, when I can't use my documents after editing in the iCloud on my iPad anymore?
    Even the suggested update (information of the message) doesn't bring a success. After starting the update nothing else happens.
    iPad1, iOS 5.1

  • Could not allocate new page for database 'TEMPDB'

    Dear All,
    When I try to fill up the aggregate of a cube, the job is cancelled after 16484 Seconds due to runtime error .
    I couldnt do fillup though I tried lot of times. The system log information is given below.
    Database error 1101 at EXE
    Could not allocate new page for database 'TEMPDB'. There are no more pages available in filegroup DEFAULT. Space can be created by dropping objects, adding additional files, or allowing file growth
    Database error 1101 at EXE
    Perform rollback
    Run-time error "UNCAUGHT_EXCEPTION" occurred
    Short dump "080101 025044 Eapsapp1 POTARU91" generated
    Transaction Canceled 00 671 ( UNCAUGHT_EXCEPTION 20080101025044Eapsapp10021 POTARU91 0011 )
    Perform rollback
    System Details:
    BW Version : 3.5
    Support Level: 19
    Datebase : MS SQL Server 2000
    Cube's E Table Details:
    Total Rows : 318,230,953
    Data Szie(KB) : 121,358,760
    Index(KB) : 55,241,264
    Min. Row Size: 371
    Max Row Size: 393
    TEMPDB database information:
    DB Size(MB): 139,999
    Size Used(MB): 3
    Free (MB): 139,996
    Log Size(MB): 342
    Log Used(MB): 117
    TEMPDB is having 9 Database files. Out of nine, three database file information is given below.
    Logical File Name: tempdev
    File Size(MB): 20,000
    Used Space(MB): 0
    File Size Limit(MB): 20000
    File Growth Step: 250MB
    Free on Disk(MB): 459,204
    Logical File Name: tempdb_1_Data
    File Size(MB): 14,999
    Used Space(MB): 0
    File Size Limit(MB): 15000
    File Growth Step: 550MB
    Free on Disk(MB): 2,674
    Logical File Name: tempdb_2_Data
    File Size(MB): 15,000
    Used Space(MB): 0
    File Size Limit(MB): 15000
    File Growth Step: 0MB
    Free on Disk(MB): 2,674
    Collectively for all the 9 database file size is 140GB.
    Please let me know what has to be changed in above TEMPDB size settings to avoid the issue in future.
    Advanced Thanks for your solution for this issue.
    Regards
    Guna.

    Hello,
    as the message stated correctly is the tempdb full:
    Logical File Name: tempdev
    File Size(MB): 20,000
    File Size Limit(MB): 20000
    Logical File Name: tempdb_1_Data
    File Size(MB): 14,999
    File Size Limit(MB): 15000
    Logical File Name: tempdb_2_Data
    File Size(MB): 15,000
    File Size Limit(MB): 15000
    All files of the tempdb are restricted in size and already expanded to their maximum size. You now can either
    - add another file on a disk with free space and let the file grow
    - let the existing files grow to an higher amount
    Best regards
      Clas

  • New Pages for iOS list of URGENT fixes...

    Hello all,
    A long time fan of Apple, going back to 1980s when I was still a kid, I am - for the first time ever - REALLY dissapointed by a product Apple has allowed to be released to the general public: the New Pages for iOS.
    Now, I don't mind the new look or the fact that the Mac counterpart has less functionnalities (actually, I think the alignment of these 2 apps is a great idea, and I'm sure the future will bring back some of the missing fonctions on the Mac...).
    I am talking about usability of this app on the iPad (on the iPhone, it is simply BROKEN, I won't even waste time here) ! !
    I have an iPad 3, running iOS 7.0.3 and Pages is barely usable on it !
    I can't believe Apple let that one slip by...
    If anyone at Apple is reading this, please tell me you guys/gals have a team working on:
    - Text selection: It varies from time to time, but moving these little blue handles or waiting for the "cut/copy/paste etc... menu to appear can take up to 10 seconds ! Not acceptable for an Apple-branded product...
    - Thumbnail previews: Very useful to see if changes made on a Mac were pushed to the iPad (on single page docs, which is what I mostly do). Also, the logic is all screwed up: sometimes, we have a preview, sometimes not... Just give us these previews back please !
    - Sharing: It used to be, you could just touch a doc untill it started wiggling, and then you could share it (email, iTunes, Other apps etc...). Now, the logic is more obscure: You have to choose to share first, THEN select the right doc (sometimes with a prompt, sometimes without...) and then decide what you want to do with it. At first, I was full of hope: I thought the new routine would allow me to select MULTIPLE docs to export... But NO ! Still ONE document at a time...
    - Pages on an iPhone (5s please !): Simply BROKEN. Or I didn't have the patience to wait for my touch inputs to translate into any sign of life on my screen...
    Note: Worth mentionning: Congrats on the new extra row for the keyboard. That "+" sign has a lot to offer (page breaks and line breaks being my favorites, if only to create multi-lines keyboard shortcuts accros my device's system...)
    Cheers !
    Serge Ostrowsky

    I hear you Mr Ostrowsky S. I hear you. I am frustrated to **** about exactly the same issues. Sending details to apple does not seem to work...
    I use an iPad2, ios7, latest. So, the issues seem to be worse (slower response times, etc). The text selection issue is driving me nuts - unusable basically. I have tried all the suggested fixes suggested on other threads - no success. I am holding off from buying the iPad Air, as these issues make me wonder about the future of apple software. I would hate to go to an android or win8 tablet, but if I can't do simple word processing on a word processor, then?
    I guess the only fix is if apple recognize that pages is fundamentally broken, and update it. I have lost four weeks productivity because of this. Not happy. Other wp apps in the app store don't cut it for me - I wish like **** that I had never upgraded to the new pages - the old version was a dream.
    Bugger.

  • 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

  • Reg smartforms -  creating a new page for each customer

    Hai friends,
    i have selection option for customer(kunnr) in the selection crieria..
    Now i am getting the output in the smartfroms related to the customer details..
    But i am getting details for only one customer...
    suppose there are 10  customers.. i want the details of the 10 cusotmers in 10 different pages...
    PLs help me.
    Rgds,
    Vinod

    Hi,
    First assigned to structure to internal table i_final
    declare L_LINES in global declaration
    right click on main window create program lines in that
    Input parameters: I_FINAL
    In CODE option
    SORT I_FINAL BY KUNNR.
    DESCRIBE TABLE I_FINAL LINES L_LINES.
    After you create LOOP IN data tab give chek the check box
    I_FINAL     INTO     WA_FINAL
    WA_FINAL declare in global declaration
    Under loop create node alternative(CONDITON)
    double click CONDITION in conditions tab
    Field name: L_LINES
    Relational operator:>
    Comparison value:0
    in that CONDITION ---> TRUE & FALSE is available
    in TRUE option create program lines, in that give like
    L_LINES = L_LINES - 1.
    Under TRUE option create COMMAND node
    in General attributes tab: check the chek box go to new page
    in conditions : maintain as
    Field name: L_LINES
    Relational operator:>
    Comparison value:0
    Regards
    Bhupal

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

  • How to use new page in smartforms

    hello friends,
                       i am using a smartform in which i have created a new page(page 2) ,in my page1 i have made next page as page2 ,but in page2 i cant make next page as page2 bocz page2 does not have main window,so in page2 i have made next page as page1 only.
    im not gettin any errors,but only page1 is been displayed,no page2 is displayed,can any1 pls tell me how to use an additional page in a smartform

    hi Siddhesh,
    there is simple method to do so.
    1. Your first page say 'PAGE_1' 'with main window is ready. This page points  
        to say 'PAGE_2' as next page. till here its ok.
    2. Now on second page i.e 'PAGE_2'  do the following.
            a. Copy main windown from 'PAGE_1' ( select node 'PAGE_1 -> right click -
                 -->copy ')
            b. Paste the same main window in 'PAGE_2' ( select node 'PAGE_2' -> right
                click -> paste).
            c. Set next page for 'PAGE_2' as 'PAGE_2'. (SAP will allow this)..
    Thats it u r done.... save activate and test... now your main window on page 1 is filled .. it will display content on page 2 and then on page 3 which is of type page 2...because for page 2 we have set next page as page 2..
    Hope this helps you..
    Let us know if u have any problem...
    Enjoy SAP.
    Pankaj Singh.

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

  • To view reports in new page for each cutomer using Report Designer

    HI all
    I have a requirement to view the data (key figures) for each customer in a new page.
    I have created the same using the Report Designer tool.
    Now there is setting for this Group Header 'Customer' i have selected the option 'repeat group header on each page'
    still the query when generated, gives fine results for certain cases but not for all.
    like it will show the each customers in a fresh page for some pages , then in midst there would some 2-3 customers in the same page.
    There is no relation between these customers , they are same as the other customers, no difference at all.then i am not able to figure out the reason why it is behaving so odd.
    Thanks
    Ramesh

    Ramesh,
    right now there really is no way to solve what you are looking for.  There partial solutions, but you will not be able to force a page break in a dynamic report.
    Here is what I have faced, and what I have come up with so far:
    I have a series of reports that have the same column heading, but spread over 5 pages in a fixed structure.  I need to be able to re-use the header and the general report design with 6 reports.  Here is my solution:
    1. Create an outline of the report.  I did all the formatting by creating a report section for each page.  You can force page breaks between the pages.  Upgrade to patch 1502 (came out last week) and you will see some new functionality (such as fit to page, page numbers, etc).
    2. Insert all you page breaks and do all the formatting.
    3. Insert an infoprovider.  Once in, you can just drag and drop the key figure cells into your formatted report.
    4. Create additional modification for formatting as needed.
    This fixes my problem (for now), but I had to do a lot of work to come up with this.  Also, the latest patch (1501 and 1502) has created an issue for me - there is a null exception when I try to use a variable or a filter value in the report body - I can't save the report.  I have an OSS message out, but our BASIS guys are going to be taking the lead on troubleshooting this.
    The reason that you are seeing some customers on the new pages is probably because of "how the cookie falls" - they just fit that way.
    I am trying to be positive and overcome the limitations that are in place right now. If my technical issue is solved, I would recommend upgrading to the new patch (1403 is the latest stable one in my opinion)
    good luck
    Pavel

Maybe you are looking for

  • HT201077 Shared Photo Streams do not upload full sized photos!

    Oh boy, so it seems that Apple's "optimized for your device" policy with photos has reared its ugly head again (PLEASE, just give us an option for optimizing the size or leaving it the original size like you do for compressing songs to 128kps on our

  • Downloaded iOS7 but cannot get find my iphone to work

    my find my iphone will not find anything since the download iOS7. passwords are in, cant even find the iphone that I am using.  It can only find the iphone with iOS6 in it. worked this morning before the release  what am i doing wrong?

  • Query for copying standard program in ECC 6.0

    Hi,   My problem is when i copy a standard program to my Z program in ECC and then try making some changes there it says new enhancement point will be created (specific to top include in function module).Kindly suggest what action needs to be taken f

  • 1 macbook, 2 time capsules, how to alternate backups?

    Hi I have a Macbook Pro that I use in 2 locations. I spend a week in one place then a week in the other, alternating. I have a Time Capsule in each but at the moment I am only backing up to one of the Time Capsules. If I start to backup to the other

  • Help!!!: Telnet Portlet

    I installed it, in my environment and it works fine and cannot emulate my customer's problem: My customer installed it and tells me that when accessing any command, the response he gets is "null" He claims the echo terminal, tells him VT100 which is