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.

Similar Messages

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

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

  • New page command

    Hi experts,
    i have a requirement.
    after execute the report,it will display multiple personal number in abap hr as blocked list
    like
    in first block employee earning details
    in second block employee deduction block
    in third block employee tax details.
    but my requirement is
    when we down load the program,page break should come for every personal no.
    another employee should not start in middle of the page .
    i have used NEW PAGE command after loop statement to pront another employee in another page.
    but anorthe employee is not priting another page.he is priting on the same page.
    any one could solve this problem.
    Regards.
    Sudheer

    try within the loop
    AT NEW PERNR.
    new page
    END AT.

  • New Page triggering in SMARTFORMS

    hi all
    According to my requirement if the subarea of the person changes it should trigger the new-page. I have written the new-page command in Event on sort begin. It is triggering when the subarea changes but the last record of previous subarea is repeating into the next page when there is only one record in the pervious page, with more records of the same personnel subarea in the pervious page.
    If the subarea is having only one record it is printing in a new page and the next subarea is also printing in the new page correctly.
    If the last page of a particular subarea is having more than 1 record, the next subarea is printing correctly in the next page.
    The problem is coming only when one record is printing in a page and there are some more records of the same subarea in the pervious page. The record is getting printed in the last page is repeating again in the next page with the changed subarea. 
    pls give me the solution.

    hydfyt

  • New Page Format in Smartforms

    Hi All,
    I am working on smartforms.
    I have created a new page format of width 25 cm and width 30cm according to client's requirement.
    Smartform is  for customer invoice which is a pre-printed and i have to get data into that.
    In sform i have given the my own page format name.
    Now problem is am getting print preview correctly but while giving print its givivng the error
    ' OUTPUT COULD NOT BE ISSUED' and print is not coming.
    Please help me regarding this issue.
      Thanks in advance.
    Regards,
    Murthy.

    Hi,
    I have checked it but its ok.
    I have created page format through SPAD only.
    Regards,
    Murthy.

  • Smartforms - new page command at loop

    Hi @ll,
    I`ve created a loop over an internal table in which I have insert a command to go to next page. The command is being called correctly but I don`t get data on the next page. I would expext that the loop goes on with the next record. Currently have just one page - could that be the problem?
    What I`m doing wrong?
    Ragards,
    Flo

    Hi,
       In the internal table add one more field called flag and in the driver program populate the value of     flag = 'X'  at the end of every PERNR using Control break statements.
       In the loop and the command give the condition as  Flag = 'X'.
       So the Page break will be triggered when ever the PERNR value will be changed.
    Hope this will help you.
    Regards,
    Venkat.

  • Regarding event & command in smartforms

    i have an assignment like this,i need to develop an smartforms in which
    employees details will come page wise means for first employee the details will come
    in the first page for second employee the details will come in the second page
    like this i need the outptut ,here i need to use templates plz let me know how will
    i proceed in smartforms as well as in the driver programs....
    if possible plz send ur codes as i m new to smartforms.
    FOR THIS i already post the maater and got this answer,
    write the driver program in se38 ......with taking an internal table with the details of all
    employees for your selection.......
    in the driver program itself call ssf_function_module ........and pass the internl atable to
    this FM .......sort the table by employee number
    now create a smartform ......with one page...desgin the page as per your requirement.....
    in the mail window create a loop (assgin the tAable ....to it which has been passed from driver program....)
    inside the loop create at new (down you will see ) and put the employee number field.....
    next inside the loop create a command ...and put a new page(call) ...
    new page will trigger automatically for each employeee.
    and i did as per the answer but i m not getting here in my smartforms i m using
    table under this i have sorted pernr in the data tab and under this event i m
    putting command in this command i m using go to new page,as per this scenario
    i m getting my output but one blank page is also coming in the output ,
    how to remove this page plz help me i also tried in the condition not on first page but it is not coming.
    plz help me

    Hi,
    Uncheck the goto new page command and put the condition pernr not equal to prevevious pernr in the conditions tab of the new command.
    This can be done as follows.
    with in loop and endloop at the end of the loop create text node(cretae a var called W_prev_pernr and then w_prev_pernr = itab-pernr.) which stores the current pernr.at in the conditions tab of the new command(Create>Flow Logic>Command) put the condition like : pernr NE w_prev_pernr.
    Hope this helps you.
    Regards,
    Rama.P.

  • Regarding new-page

    Dear all,
    I have used new-page command in my report
    Every new material it will go to next-page..In my report foreground is working fine.
    If i execute in background new-page is not working.. it will come all material in the same page from spool request.
    ANY SOLUTION FOR SOLVE THE PROBLEM IN BACKGROUND
    Example CODING
    select-options : so_matnr for mara-matnr.
    select  matnr from mara into table it_mara where matnr in so_matnr.
    sort it_mara by matnr.
    loop at it_mara.
    new-page.
      write : /1 it_mara-matnr.
    endloop.
    Thaks.

    Hello Friend,
    To print a different pages in spool request you have to use NEW PAGE PRINT ON...
    Pleaes modify the code like below:
    DATA PARAMS LIKE PRI_PARAMS.
    DATA: DAYS(1)  TYPE N VALUE 2,
          COUNT(3) TYPE N VALUE 1,
          VALID    TYPE C.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING DESTINATION           = 'LT50'
                COPIES                = COUNT
                LIST_NAME             = 'TEST'
                LIST_TEXT             = 'Test NEW-PAGE PRINT ON'
                IMMEDIATELY           = 'X'
                RELEASE               = 'X'
                NEW_LIST_ID           = 'X'
                EXPIRATION            = DAYS
                LINE_SIZE             = 79
                LINE_COUNT            = 23
                LAYOUT                = 'X_PAPER'
                SAP_COVER_PAGE        = 'X'
                RECEIVER              = 'SAP*'
                DEPARTMENT            = 'System'
                NO_DIALOG             = ' '
      IMPORTING OUT_PARAMETERS        = PARAMS
                VALID                 = VALID.
    IF VALID <> SPACE.
      NEW-PAGE PRINT ON PARAMETERS PARAMS NO DIALOG.
      WRITE / 'First line'.
    ENDIF.

  • New Page Format implentation in Sap Scripts and Reports

    Hi,
       I want to print Report details and also some of the SAP Script details on the paper size of 350MM width and 310MM Height in the PORTRAIT format.
       So i created new page format with these dimensions.
       How i can use this for reports. So i can set these parameters while taking output from Report.
       Pls specify if any configuration required for this.
    Thanks in Advance,
    Regards,
    Pavan.

    In SAPscript, you set the Page Format for the document in the "Page Format" field of the "Basic Settings" page of the documents "Header" information. The popup list of this field will show all available formats in your system, so this is a ggod way to make sure your new format is set up properly.
    For reports, page format is set either with the LINE-SIZE addition to the REPORT and NEW-PAGE commands, or through the PARAMETERS addition to the NEW-PAGE command. When you use LINE-SIZE the print system picks the format for you, based on the available formats in the systems.
    I don't remember if there is an activation step for Page Formats, or if saving is all you have to do.

  • RE: new-page

    HI,
       Iam facing two problem in scripts. 
    1. Iam using new-page command in the main window editor.
       If i use one notification number then it has to show 1 page. But it is giving two pages. So how to rectify this.
    example: if i run for 200 pages
              it is giving 201 pages
    2. When ever i run the script it automatically should go to the sap mail box. How can i achieve this.
    rgds
    p.kp

    MOVE-CORRESPONDING NAST TO LVS_SNAST.
        MOVE SY-REPID           TO LVF_PROGRAM.
        CALL FUNCTION 'CONVERT_COMM_TYPE_DATA'
            EXPORTING
                 PI_COMM_TYPE              = LVS_COMM_TYPE
                 PI_COMM_VALUES            = LVS_COMM_VALUES
                 PI_SCREEN                 = US_SCREEN
    *           PI_NEWID                  =
                 PI_COUNTRY                = US_COUNTRY
                 PI_REPID                  = LVF_PROGRAM
                 PI_SNAST                  = LVS_SNAST
            IMPORTING
                 PE_ITCPO                  = LVS_ITCPO
                 PE_DEVICE                 = LVF_DEVICE
                 PE_MAIL_RECIPIENT         = LVS_RECIPIENT
                 PE_MAIL_SENDER            = LVS_SENDER
            EXCEPTIONS
                 COMM_TYPE_NOT_SUPPORTED   = 1
                 RECIPIENT_CREATION_FAILED = 2
                 SENDER_CREATION_FAILED    = 3
                 OTHERS                    = 4.
        IF SY-SUBRC <> 0.
          retcode = sy-subrc.
          exit.
        endif.
    * fill structure itcpo
        ITCPO = LVS_ITCPO.
        if v_nast = 'X'.
          lvs_itcpo-tdgetotf = 'X'.
          lvs_itcpo-tdnewid = ' '.
         <b> TNAPR-FONAM       = 'ZTESTFORM'.</b>
    *    LVF_DEVICE = 'OTF_MEM'.
        endif.
    * open form
        CALL FUNCTION 'OPEN_FORM'
             EXPORTING
    *           APPLICATION        = 'TX'
                  ARCHIVE_INDEX      = TOA_DARA
                  ARCHIVE_PARAMS     = ARC_PARAMS
    *            DEVICE             = LVF_DEVICE
                  DIALOG             = ' '
                  FORM               = TNAPR-FONAM
                  LANGUAGE           = NAST-SPRAS
                  OPTIONS            = LVS_ITCPO
                  MAIL_SENDER        = LVS_SENDER
                  MAIL_RECIPIENT     = LVS_RECIPIENT
    *           MAIL_APPL_OBJECT   = ' '
    *           RAW_DATA_INTERFACE = '*'
    *      IMPORTING
    *           LANGUAGE           =
    *           NEW_ARCHIVE_PARAMS =
    *           RESULT             =
             EXCEPTIONS
                  CANCELED           = 1
                  DEVICE             = 2
                  FORM               = 3
                  OPTIONS            = 4
                  UNCLOSED           = 5
                  MAIL_OPTIONS       = 6
                  ARCHIVE_ERROR      = 7
                  OTHERS             = 8.
        IF SY-SUBRC NE 0.
          retcode = sy-subrc .
        endif.
    try this we have used like this...
    Message was edited by: Vijay Babu Dudla

  • Triggerring new page in the script

    Hi
    can anybody tell me how to trigger a new page in the script on condition.
    my problem is i want to print material & its discription based on the MRP controller using scripts.
    if the MRP controller changes then it has to trigger a new page in the script.
    page 1.
    MRP controller 102
    material1  material1-discription.
    material2 material2-discritpion.
    new page shoud trigger here
    page 2
    MRP Controller 103
    material1  material1-discription.
    material2 material2-discritpion.
    Thanks in advance

    Hi,
    First Call That text Element Were U Used New-page Coomand.
    SAPscript automatically inserts a page break when the main window of a page (MAIN) is full. You can use the NEW-PAGE command to force a page break in the text at any point you want one. The text following this command then appears on a new page. The page break is always performed (it is an unconditional page break).
    The NEW-PAGE command completes the current page. This means that all the windows that are still on the page are printed immediately. If you use the NEW-PAGE command without parameters, the page defined in the current form as the next page will be taken next. If, however, your form contains a number of different pages, then you can specify any one of these as the next page to be used.
    Syntax:
    /: NEW-PAGE page_name
    /: NEW-PAGE
    The current page will be completed and the text in the following lines will be written to the page specified in the form.
    /: NEW-PAGE S1
    As above, except that the page S1 will be taken as the next page.
    If, in a NEW-PAGE command, you specify a page not contained in the form, the specification is ignored.
    Take care that there are no blank lines immediately before a NEW-PAGE command. If an implicit page break occurs within the blank lines, an unexpected blank page may be printed.
    2.it can be set in two way
    1 using SE71 ur Script transaction
    u can create new page by clicking page tab in Se71 and goto edit->create Element.. that will create a new page..
    2 Using ur SE38 itself by setting a flag variable = X u can create a new page..
    if page = ' X '.
    new-page.
    endif.
    reward if helpful
    Shiva Kumar

  • Script new page

    Hi i am creating new page in script and giving some text in that page window.
    but that page not all triggering here,
    all ready first and next pages are there in my script .. i created new page,, but not coming...
    could any body explain how to solve my problem..
    thanks,

    Hai,
    First   Call That  text Element  Were U Used New-page Coomand.
    SAPscript automatically inserts a page break when the main window of a page (MAIN) is full. You can use the NEW-PAGE command to force a page break in the text at any point you want one. The text following this command then appears on a new page. The page break is always performed (it is an unconditional page break).
    The NEW-PAGE command completes the current page. This means that all the windows that are still on the page are printed immediately. If you use the NEW-PAGE command without parameters, the page defined in the current form as the next page will be taken next. If, however, your form contains a number of different pages, then you can specify any one of these as the next page to be used.
    Syntax:
    /: NEW-PAGE [page_name]
    /: NEW-PAGE
    The current page will be completed and the text in the following lines will be written to the page specified in the form.
    /: NEW-PAGE S1
    As above, except that the page S1 will be taken as the next page.
    If, in a NEW-PAGE command, you specify a page not contained in the form, the specification is ignored.
    Take care that there are no blank lines immediately before a NEW-PAGE command. If an implicit page break occurs within the blank lines, an unexpected blank page may be printed.
    Regards.
    Eshwar.

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

  • 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

Maybe you are looking for

  • Exporting as an XML file never works CS6

    I am trying to export the timeline as an XML file in order to color correct in a different program. Every time I export it gets stuck with a status bar and stays there until I have to force quit Premiere (attached is an image of where I get stuck). I

  • How do I take a snapshot picture of my screen

    , How do I take a snapshot picture of my screen?

  • How to use time stretch

    Hello Please...; I don't know how to use time stretch. When i select a music from a cd and import it in garage band. I change the tempo to accelarate but i can hear no change ... Would please help me and tell me if there is anyway. Thank you .... Oli

  • Button for background audio toggle? (C6)

    Hi everybody, is it possible to insert a button that toggles ONLY the background audio, which is set for the complete presentation? If you are listening to a web based presentation the backgorund music might be annoying for some listeners and they ju

  • Can't associate bridge cs5 with nef raw files

    I have been trying to get win 7 to associate the bridge CS5 executable with NEF files. It worked fine for CS4 and yes, i am going to file associations and choosing the bridge.exe for cs5 under x86 programs. It just ignores the choice and won't put it