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.

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

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

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

  • 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

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

  • How do you make a link open on a new page (typically the target="_blank" command) in MUSE?

    how do you make a link open on a new page (typically the target="_blank" command) in MUSE?

    Newer version does not have the same interface.  I'm stuck trying to understand how to add a "blank" target to a hyperlink...  See how your screenshot has a dropdown associated with the "Hyperlink" object?  Mine doesn't...

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

  • What is the new Keyboard (Command) shorcut for Pages 5.0

    Hi everyone,
    I have the new pages software which doesn't allow me to use the command + Mouse (selection) to select non-consecutive.
    You could do that in the old pages, but now on the new 5.0 latest release of Pages you can't.
    Thanks.
    Have a nice day.

    Well, I haven't been able to find the Pages 4.3 app in the Application Folder but I've been able to use it opening the document with: 'Open with...'
    Thanks, for your help.

  • Problems with the new Pages.

    Hi everyone.
    I wonder if i am the only one experiencing a little problem with the new Pages?
    My problem is that every other time i want to correct the font lets say trying to underline or make the font fatter using the hotkeys "Command+B" or "Command+U" or "Command+I", or even changing it manually in "formats" my font gets stuck, and i have to copy-paste text from another pages-file into my old one to get et back to normal.
    Anyone else tried this?
    Martin.

    VladRO wrote:
    These are the problems that I am encountering for the moment! If there will come up some new once, I will write them here!
    Instead of starting a new list, go to
    https://discussions.apple.com/thread/5468056?tstart=0

Maybe you are looking for

  • EBS Customer open items automatic clearing within tolerances

    Hi Experts, We have already implemented Elecronic Bank Statements automatic uploading functionality.  As part of this process, customer open items need to be cleared automatically.  As per the standard process, SAP will be able to clear off the open

  • How do I unhide multiple columns at a time in a response table?

    I feel like I have done this before, but now I cannot seem to figure out how.  Any help would be appreciated.

  • Logging configuration problem

    Hi all I am working with JRun4. My problem is logging. logging mechanism can send messages to these destinations: 1) The console screen 2) The Log file. In both cases , logging information is obtained. but The console screen shows information which i

  • Awesome Bar / Browser Problem. Won't let me type in keywords to send directly to website...

    I used to be able to type in keywords into the awesome bar, like "tom brady wiki" and press enter. Firefox would then send me straigh to tom brady's wikipedia page. Now it sends me to google when ever i type in keywords into the browser. I just want

  • Connect pc to internet using phone

    Hi, I have an n95 8g, i connect to the internet either through my wireless connection or gprs. My question is, is it possible to connect my pc to the internet through the phone when its connected to gprs, sort of using the phone as an internet gatewa