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

Similar Messages

  • New page when group changes

    Hiya, I am a newbie using BI Publisher in conjunction with APEX. I have a report where I need the header to be repeated for a group over multiple pages. I have searched the forum and seen prior comments about using a 2 row table and such, but where would I put the G Group_Name items in this case?
    Thanks!
    Tony Miller
    UTMB/EHN

    Remove 'New Page Before' on the group header and Check 'New Page After' on **Group Footer. Please note on Group footer. Also, on the last group if you do not want to have page break, click on Formula editor button on Group Footer's 'New Page After' where you checked and write formula 'Not OnlastRecord'
    Keep the reset page setting similar but on group footer.

  • Firefox is set to open a new page when a link is selected, however it opens underneath/behind

    Firefox is set to open a new page when a link is selected, however it opens underneath/behind the page containing the link. In other words I can't see the new page because it is beneath the one I'm looking at.
    75% of the time this happens, 25% of the time it works as it should.

    Do you mean that it is opening links in a new window? If you would rather have a new tab instead, you can set that in Options > Tabs. Some links are set up so that they will open in a new tab or window. I know of no way to make those open in the same tab, short of changing the code on the page.

  • REUSE_ALV_GRID_DISPLAY forcing new page when printing

    Hi,
    how can  force a new page n several condition when i'm printing a list generated by FM REUSE_ALV_GRID_DISPLAY?
    I need a new page by group change with several columns. IS_PRINT seems not to be the right place where to look.
    Thx in advance.
      Rainer

    Hi,
    You may look at the following post for solution.
    ALV page break
    Cheers
    Vinod

  • How do you create a new page when user checks a box?

    I guess it would be a check box.  I'm looking for a way to have the user select create a new page when the user runs out of space in the text box that is given.  So if its possible is there a way to create a new page with a continuing text box when the user has selected the create a new page check box.  Thanks.

    Hi,
    You can achieve this by just making some changes to the textfield (and the page layout).
    First, select the textfield and then in the Layout palette, tick 'expand' height to fit'. When you preview the form, you will see that as you type information into the field, a scroll bar will appear. When you exit the field, it will expand automatically to display the full contents.
    Now the problem will be that the textfield will expand over objects that are positioned below it - not good!
    So what you need to do is set up your form for a flowed layout. First select all of the objects that do not grow in size and wrap them inside a 'positioned subform'. When you select the subform you can see this setting in the Object > Subform palette. You should name the subforms in the hierarchy. So you will end up with a positioned subform above your textfield and a positioned subform beneath your textfield (if you have objects beneath it).
    Then select page1 in the hierarchy and in the Object > Subform palette, change the content to 'flowed'. Hopefully the layout won't change too much (because you will have most of your objects in their positioned subform).
    Last step is to select the textfield and in the Object > Field palette tick 'Allow page breaks within content'. This tells Acrobat/Reader to split the object if it overflows onto a new page.
    Now save the form as a Dynamic XML Form in the save as dialog and previewed it. Now when the textfield expands it will push objects beneath it down. Also when it gets to the bottom of the page, it will start a new page automatically and continue the content on the new page.
    Here is an example:
    https://acrobat.com/#d=kwa4t2vu6mXbgMCyqEF0aQ
    Paul Guerette is giving an online tech talk on dynamic forms on the 30 November, which I would recommend. Details here:
    http://acrobatusers.com/events/49326/tech-talk-developing-flowable-form-content
    Hope that helps,
    Niall

  • Delete overlapping request when month changes

    Hi Experts,
    Delete overlapping request works fine for all the days but when month changes it is not deleting the request as the filter value gets changed.
    I have three Info Package and DTP like below:
    Current Month -2
    Current Month -1
    Current Month
    In January selection values are:
    Current Month -2     201111
    Current Month -1     201112
    Current Month         201201
    As the month changes, February selection values are:
    Current Month -2     201112
    Current Month -1     201201
    Current Month         201202
    We need the request which has selection criteria 201111 should stay, but 201112 and 201201 should get deleted as these two request are duplicated.
    Please advice if we have any solution for this issue.
    Suggestion will be appreciated.
    Thanks,
    Muiz Ahmed

    Yes Sven,
    You are correct,
    31-Jan-2012 Current Month -1 had loaded 201112
    1-Feb-2012 Current Month -2 had loaded 201112
    Now I have to delete request which has got loaded on 31-Jan-2012.
    For now I have deleted manually, but I want automate this activity, so no manual intervention is required.
    Thanks,
    Muiz Ahmed
    Edited by: MUIZ AHMED on Feb 1, 2012 7:40 PM

  • Change the SAP Script Package

    Hi,
    How to change the SAP Script Package..when i use option copy from client option, it ask for a package but after copied it shows in the $TMP package...
    how can i change it.
    Regards,

    Hi,
    Goto SE80 --> select LOCAL OBJECTS from the drop down and hit enter.
    You will be displayed a list of all local objects.
    Locate your SAP SCRIPT --> right click on this script name --> click More Functions --> click Change Package Assignment and you will be prompted for a package name.
    Give new package name and click done.
    Your script is now assigned into the specified package.
    Regards,
    Tarun

  • Is any request number generates when i create a sap script??

    hi Gurus
    I want to know Is any request number generates when i create a sap script??
    if it is generates then how to find that request number???

    Hello,
    A simple solution to find out the request number if thisis not released is, logon to SAP system with diffrent user ID other then the request owner's ID, a pop up message appears informing whether to create a new task under the xisting TR number.
    If the TR i already released, then go to table E071 table and pass the object name. you can find all the related Tr's for the object.

  • Won't open new page when I click bookmark, instead changes pages EVEN THO PREFERENCES SET TO OPEN NEW PAGES

    Firefox keeps on changing pages, even yanking minimized pages back onto the screen and changing them, even though I have Firefox preferences set to always open new pages to accommodate links on a page or bookmarks.
    I don't want Firefox to tamper with any pages, period. If I have a pages minimized, no way should Firefox be yanking that page up back onto the screen because it's "too lazy" to open up a new page to accommodate a bookmark or link clicked on.
    It's extremely aggravating to click a link on a page, get a new page then, when I click the page to close it I find no page underneath, indicating that Firefox had changed the original page rather than open up a new page automatically to accommodate the link, etc.
    What's the point of me in Firefox preferences setting it up for Firefox to open up new pages automatically when afterwards it doesn't?

    Perhaps try the add-on Tab Mix Plus. It has a feature that you can force every link to open in a new tab if you like:
    * http://tmp.garyr.net/help/#Links (description of options - see "Force to open in new tab")
    * https://addons.mozilla.org/en-us/firefox/addon/tab-mix-plus/ (install page)
    I don't know whether it has any effect on bookmarks. You can open those in a new window by holding Shift or in a new tab by holding Ctrl when clicking.

  • New page when the fields changed

    Hi all,
    I wanna display my report on  next when my BEZEI_T gets changed. I used at-new command also .. but its not working.. and also i want that new bezei_t get stored in some variable and change the header of the report. Please guide me. My code is:
    LOOP AT IT_FINAL.
    AT NEW BEZEI_T.
          new-page.
        endat.
      WRITE: / sy-uline,
               IT_FINAL-name_full1,
               50  IT_FINAL-STRAS,
               100  IT_FINAL-NAME_FULL,
               160 IT_FINAL-STCD2,
               / IT_FINAL-BEZEI_T,     
                50 IT_FINAL-CUS_ADD,
               100    IT_FINAL-TELFX,
    ENDLOOP.
    Regards
    Puneet

    Try this...
    LOOP AT IT_FINAL.
    AT NEW BEZEI_T.
    new-page.
    WRITE: / sy-uline,
    IT_FINAL-name_full1,
    50 IT_FINAL-STRAS,
    100 IT_FINAL-NAME_FULL,
    160 IT_FINAL-STCD2,
    / IT_FINAL-BEZEI_T,
    50 IT_FINAL-CUS_ADD,
    100 IT_FINAL-TELFX,
    endat.
    ENDLOOP.
    Cheers,
    Tatvagna.

  • Invisibles are creating a new page when I try to move background image....

    Hey Guys.
    I am doing a resume for a friend of mine and its quite simple what Im trying to do;
    -Background image
    -Image
    -Text
    And I noticed when I try to put the background image to fit the background that it will create a new page... but I can't seem to find how to get around this problem... can anyone help?
    Here's a screenshot: http://i46.tinypic.com/nf1t3r.png

    JoeyDee
    Your image has word wrap on it that is squeezing out either text or a page break underneath.
    The process and fix (turn off word wrap for the background image) were described here:
    http://discussions.apple.com/thread.jspa?threadID=2166684&tstart=45
    Peter

  • Help! The new Pages. I can't copy an entire page or rearrange the pages. In the new formatt also when I insert a new page when using a template it doesn't give me the formatting and guides.  Can anyone help.

    I can't copy an entire page or rearrange the pages. I use this feature a lot, particularly at this time of year. Can't seen to rmove the header and footer markers either.
    Can anyone help or do I need to revert back to pages 09?
    If I do re-install 09 will I be able to open the files that where converted to the new version?
    I don't like this new one. Many of the graphics features have been removed.  Not impressed at all. Very frustrated.
    The business card templates and others behave strangly.  If I insert a page it's blank only. I don't get the guides.  I was in the middle of a design project and had to start again from scratch as it threw everything out of alignment  and I can't copy an entire page. When I use select all, group then copy when I pasted it on the new page it overlayed all the cards in the top two segments.  Frustrating !  I ended up  saving my first page under a different name that was the only way to copy the page then I had to work between three documents instead of one.
    I went in today to last years Christmas tag file and the same issues I can't copy a page. I can't rearrange the pages.
    Simple features like colour choice and transperency for shapes are gone. I want to use my colour choices not someone else.
    Sorry, I am ranting.
    For now all I need is to be able to copy and switch pages around in one document.
    Please Help! I am about to start pulling my hair out in frustration.

        Yes, I am using 09 with out issues.  Just have to remember to use "open with 09" or open pages 09 first then my document.
      I create some amazing cards and posters with 09 that when on a PC I would have to use both Word and Publisher to create.  Flipping back and forth. 
      Apple if you're  listening please, give us back our layout options and even add a few more design options like beveled and 3D text.

  • How to populate data in a new page when user place mouse on table cell

    Hi friends,
    i am working on OAF. I have one table with data coming from the backend. In a table some cells repersents wiht "P" or "C", till that Ok. but when user place mouse pointer over the cell, data should be populated in addtion text( babul text) or new page should be opened and it will show the related information about perticular cell.
    in my R&D. i created one OACellformateBean and attached messageStyled Text. MessageStyled text have property like " setMouseOver(MulInode, string)". i am really not aware what are the areguments i need to pass to this method ?. what is MultiInode.
    Pls help me in this reagard?. i am really in trouble ?????

    Thanks a lot. Tapash Ray, atleast should it possiable to open a new window when user click cell. could you please suggest some toher way similar to this , which we can get the data to diplay in a new window.

  • How to insert a new page when data don't fill in the principal page?

    Hi to everybody!!
    I don't know how to do this, I have, in the main window a table with a loop, the loop is this
    XFORM INTO ZXFORM (where Xform is type PC408) and in line to line I put the line for example 25 to 30.
    Under this table I have another table to another type of data....
    The problem is that in the case the data exceed the 25 to 30 lines...where I can see this data? How can I make a new page with the exceed data and how I can retrieve?
    Thanks and regards
    Rebeca

    Try this, it will help you to close the thread.
    for displaying new page
    Inside you form
    /E   POS_NEWPAGE   "Element
    /:   NEW-PAGE
    Inside your driver program...
    Calls a New Page
          CALL FUNCTION 'WRITE_FORM'
               EXPORTING
                    element = 'POS_NEWPAGE'
               EXCEPTIONS
                    OTHERS  = 1.
    Regards,
    SaiRam

  • How do I post to a new page when the 1st page is full?

    How do you create a bul. board where the posts go on a 2nd
    page when the first page is filled ...and 3rd page when 2nd is
    full, etc ... Maybe I can stick a wordcount in a while loop before
    the CFOutPUT Tag? Is there such a variable that holds a word count
    or better still, a line count?
    thnx a billion, please, please help!

    Check out this code-Use a cfc which will be the same for you
    and then change my query for yours in the .cfm HTHs:
    functions.cfc:
    <cfcomponent output="yes">
    <!--- Next x record function --->
    <cffunction name="nextXpage" access="public"
    returntype="struct" hint="Next x page function" output="No">
    <cfargument name="recordcount" required="Yes" default="0"
    type="numeric" hint="The total numbers of records / values">
    <cfargument name="page" required="Yes" type="numeric"
    default="0" hint="The page number that you are currently on. (for
    example URL.page)">
    <cfargument name="maxrows" required="No" type="numeric"
    default="10" hint="The maximum records / values to be displayed per
    page">
    <!--- Define the return structure --->
    <cfset var nextXpage = structNew()>
    <!--- Calculate how much page are available according to
    the maxrows displayed --->
    <cfset nextXpage.pagecount =
    CEILING(arguments.recordcount / arguments.maxrows)>
    <!--- Set the maximum rows to be displayed --->
    <cfset nextXpage.maxrows = arguments.maxrows>
    <!--- Set the currentpage --->
    <cfset nextXpage.currentpage = arguments.page>
    <!--- Set the currentpage --->
    <cfset nextXpage.recordcount = arguments.recordcount>
    <!--- Set the startrow value --->
    <cfif arguments.page eq 1>
    <cfset nextXpage.startrow = 1>
    <cfelse>
    <cfset nextXpage.startrow = (arguments.page *
    arguments.maxrows) - (arguments.maxrows -1)>
    </cfif>
    <!--- Define the previous and next values. --->
    <!--- Next values --->
    <cfif arguments.page neq nextXpage.pagecount>
    <cfset nextXpage.next = true>
    <cfset nextXpage.nextpage = arguments.page + 1>
    <cfelse>
    <cfset nextXpage.next = false>
    <cfset nextXpage.nextpage = 1>
    </cfif>
    <!--- Previous values --->
    <cfif arguments.page eq 1>
    <cfset nextXpage.previous = false>
    <cfset nextXpage.previouspage = 1>
    <cfelse>
    <cfset nextXpage.previous = true>
    <cfset nextXpage.previouspage = arguments.page - 1>
    </cfif>
    <!--- Return the structure --->
    <cfreturn nextXpage>
    </cffunction>
    </cfcomponent>
    Then on your output page where you have the info:
    .cfm page:
    <cfquery name="qrysales"
    datasource="davanzo_villa.admindb" >
    SELECT DISTINCT
    clientinfo.Id, clientinfo.RemoteAddress, clientinfo.visit,
    clientinfo.country
    FROM clientinfo
    order by clientinfo.Id
    </cfquery>
    <!--- display hit counter --->
    <cfquery name="GetHits">
    SELECT * FROM hit_counter
    </cfquery>
    <cfparam name="URL.page" default="1">
    <!--- Determine the navigation parameters --->
    <cfset functions =
    createobject("component","functions")>
    <cfset nav =
    functions.nextXpage(qrysales.recordcount,URL.page,15)>
    <table width="792">
    <h4>Total Hits: <CFOUTPUT
    query="GetHits">#hit_count#</cfoutput></h4>
    <h4>Total Unique Visitors:
    <cfoutput>#qrySales.RecordCount#</cfoutput></h4>
    </table>
    <table width="792">
    <tr><td>
    <cfoutput>Unique Visitors: #nav.recordcount# (page
    #nav.currentpage# of #nav.pagecount#)
    <cfif nav.previous>
    <a
    href="hitcount.cfm?page=#nav.previouspage#">Previous</a>
    <cfelse>
    Previous
    </cfif>
    <cfif nav.next>
    <a
    href="hitcount.cfm?page=#nav.nextpage#">Next</a>
    <cfelse>
    Next
    </cfif>
    <ul>
    <cfloop From = "1" To = "#nav.pagecount#" index =
    "pagenumber">
    <cfoutput>
    <a
    href="hitcount.cfm?page=#pagenumber#">#pagenumber#</a></cfoutput>
    </cfloop>
    </ul>
    </cfoutput>
    </td></tr>
    </table>
    <table width="792">
    <tr>
    <td>Date</td>
    <td>Visitor Number</td>
    <td>Visitor`s IP Address</td>
    <td>Visitor`s Country</td>
    <td>Path Taken</td>
    </tr>
    <cfoutput query="qrysales" startrow="#nav.startrow#"
    maxrows="#nav.maxrows#">
    <tr>
    <td>#qrySales.visit#</td>
    <td>#qrySales.id#</td>
    <td>#qrySales.RemoteAddress#</td>
    <td><cfif qrysales.country neq ""><a
    href="country.cfm?Remote_Addr=#qrysales.RemoteAddress#">#qrySales.country#</a><cfelse><a
    href="country.cfm?Remote_Addr=#qrysales.RemoteAddress#">Find
    country</a></cfif></td>
    <td><a href="hitpathdetails.cfm?id=#id#">See path
    taken</a></td>
    </tr>
    </cfoutput>
    </table>

Maybe you are looking for