No of page of Job pages in SAP script?

Hi all,
How to  know the current page no in a SAP SCRIPT out of all JOB PAGES.?
Thanks,
Vamshi

hi ,
Thanks for the reply.
But my requirement is to know the current no of JOB  pages  that are printed with a job.
Is it possible?
Thanks,
vamshi

Similar Messages

  • 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

  • How to print two pages with same content in sap script?

    I have created page1 and copied as page2. 1st page is  assigned with Tray1 and 2nd page is assigned with Page2.but while printing page1 is printing properly,but page2's main window values not printing(Note: page2 is not Next page). I need 2 copies printout of check from Tray1 and Tray2.How to do this?

    Hi ,
    do as following.
    Data: wa_options type ITCPO.
    wa_optinos-TDCOPIES = '2'.
    then call the function module.
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
    DEVICE = 'PRINTER'
    DIALOG = 'X'
    FORM = 'ZSAP'
    LANGUAGE = SY-LANGU
    OPTIONS = wa_options.
    I have given you for printing multiple copies
    But donno what do you mean by Tray 1 and tray 2 ?
    Regards,
    Nageswar

  • Creation of New Page in SAP Script

    Hi Experts,
    Please advice when will a new page trigger in SAP Script :
    As per my requirement I need to create a new page for an existing layout and make changes to the second page alone...
    but this page should be triggered only for a specific condition. Is it possible to trigger second page when it satisfies certain conditon?
    I have searched SDN regarding the same but most of them have recommended to use NEW-PAGE...but as per my understanding NEW-PAGE is used when certain data needs to be printed on the next page ( not on the new page ).
    Thanks
    Karthik.R

    Ok friend,
    Try using the conditions in your driver program using 'CONTROL_FORM' function module. or using some other condition in it.
    You can also give conditions in text editors and you can trigger the pages.
    i think these links will help you in solving your solution just check these Link: [new page based on condition in sap script|new page based on condition in sap script; this is just an hint from this you can develop the idea.
    Link: [Breaks in Smartforms|LAST PAGE FOR SAP SCRIPT;.
    Also there are other few related links in SDN which will help you.
    I think this must solve your issue if you still face any queries please revert back to me i will help you.
    Thanks,
    Sri Hari

  • Find total no of pages in a sap script

    Hi,
      How do i find the no of pages that is generated in SAP script, with out generating a spool.
    thanks.

    Dear friend
    new system symbols (note upper case) were therefore introduced:
    &SAPSCRIPT-FORMPAGES&
    Total page number based on the current output layout set:
    &SAPSCRIPT-JOBPAGES&
    Total page number based on all output layout sets created with the function modules OPEN_FORM, START_FORM .. ENDFORM, START_FORM .. END_FORM, ..., CLOSE_FORM
    Examples:
    Page &PAGE& of &SAPSCRIPT-FORMPAGES(C)&
    Specifies the current page number and total page number. The additional specification (C) outputs the symbol in a compressed form, that is the leading blanks are omitted in the 4-character output (default).
    Number of all output pages: &SAPSCRIPT-JOBPAGES(C)&
    Outputs the total number of output pages. Caution: When using this symbol, all output pages must be held in the main storage so that the total page number can be inserted at the end of the output. Larger outputs can affect performance.

  • Why cant we have a link/page for jobs on SAP ???

    There are so many professional networks and sites for the jobs.......... But how about having the jobs page here itself?
    so recruiters come here for picking profiles and SDN may earn a littile amount from recruiters fee... (As I prefer every little helps caption,I am suggesting this to Our network)
    it might be helpful to people who is looking for new job (just people like me :-P   )
    Sorry..if this doesnt sound really gud...
    Edited by: PRASAD KONDA on May 26, 2009 8:06 PM

    >
    PRASAD KONDA wrote:
    > There are so many professional networks and sites for the jobs.......... But how about having the jobs page here itself?
    >
    > so recruiters come here for picking profiles and SDN may earn a littile amount from recruiters fee... (As I prefer every little helps caption,I am suggesting this to Our network)
    No! I'm absolutely against recruiters on here!
    Forum rules are against multiple punctuation marks but I feel strongly about this so here are a few more: !!!!!!!!!
    As you so rightly point out, there are a great deal of job sites out there, we don't need recruiters spamming these forums.
    However - as Julius has graciously provided the link - I am all for a dedicated job forum (even willing to moderate it!) for the community. Recruiters and job boards only pick up a certain type of jobs, and there is a lot to be gained from a direct contact platform, so I am all for a dedicated non-agency forum.
    Cheers,
    Mike

  • How to print last page in sap script in ladscape format?

    Hi all,
    can any 1 tell me How to print last page in sap script in ladscape format?
    Thanks In advance.
    Pravin

    Hi Pravin Sherkar,
    we can do this in SAP Scripts.
    we need to create two pages, one of landscape and another of potrait.
    now after filling the data at last we need to call the page which is of format landscape using START_FORM  function module.
    You can use condition &PAGE& = &FORMPAGES&.
    Please check this link
    Printing Portrait/Landscape in sapscript
    Re: Landscape and potrait in same layout?
    http://www.sap-img.com/ts013.htm
    Best regards,
    raam

  • How to display line items twice in a single page in sap script

    HI,
      I am working on check printing. I copied the standard driver program and form to Zprogram and ZForm. Which are RFFOUS_C(print program) and F110_PRENUM_CHECK(Form Name).
    I want to display the line items twice in the same page and sub sequent pages.
    Currently I am able to display line items only once.
    Example:
    PAGE1.
    line item1
    line item2
    line item3
    line item4
    line item5
    line item1
    line item2
    line item3
    line item4
    line item5
    line items 1 to 5 which are in main window.
    How to achive this problem.
    Regards,
    vinod

    Hi
    I had the same request for a check form in Canada. I solved it by writing the line item output into variables and print these variables in a second window. It was ~10 hours of effort, not a real nice technical solution but it worked.
    If you require I can send you a PDF of the sap script form definition. You can contact me at [email protected] Answers can take 1 week or more. 
    Best regards
    JD

  • How to get the last page  SAP Script form

    How to get the last page  SAP Script form.
    I want to print a specific information in the last page of SAP form (Script). Please tell me how to get the last page number.
    Regards

    Hi
    You have to check the system variable &NEXTPAGE&, if it's 0 it means you're in the last page.
    From SAP Help:
    This symbol is used to print the number of the following page. The output format is the same as with &PAGE& .
    Note that on the last page of the output, in each window that is not of type MAIN, &NEXTPAGE& has the value 0.
    /: IF &NEXTPAGE& = '0'
       Last page
    /: ENDIF
    Max

  • How to add/create additional page in Crystal Report Layout SAP B1

    Hi,
    I wanna ask about How to add/create additional page in Crystal Report Layout SAP B1 ?
    I want when user print Purchase Order then on last page also print some page like Penalty Clause etc.
    Pls help me to find the solution.
    Br,
    Thomas Marsetyo

    Hi,
    In your report footer, set it to create a new page before it is printed (In 'Section Expert', select the Report Footer -> 'Paging' tab -> Check 'New Page Before' checkbox). Throw your Terms & Conditions into the Report Footer section.
    If you already have a Report Footer that you want to keep, just split the footer into two sections (Right-click the Report Footer section -> 'Insert Section Below') and follow the same procedure for the newly created section.
         Check this Link
    http://stackoverflow.com/questions/9232239/adding-an-additional-page-to-end-of-a-crystal-report
    http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=18960
    Regards,
    Manish

  • How to remove blank page in sap script

    hi ,
    I have a problem in sap script. I copied one std. script and made some changes i.e removing the unwanted pages from the script.
    no where NEW-PAGE kind of command is declared in window but still a new blank page is coming in printing.
    i checked with the posted comments in forum n what i found .. i did that part for my script..but no progress.
    so help needed.
    thnx,
    m

    Hi,
    If there is no any "NEW-PAGE" command in your any window, Pls check following probable causes.
    1. Check your main Window, may be there is blank line at the last of the main window, so check that and remove that,so you won't get the blank page
    2.Please check what have you defined as the NEXT PAGE for your first page. If so change it and make the first page itself as the next page.
    Hope it help you.
    Regrads,
    Lokesh.

  • Find line no in sap script page

    In sap script there are five pages to be printed
    I want to check in each page the first line exists or not.
    as well as to identify the first line of each page.
    How to get a line number for each page in Sap script
    Please revert back asap
    Thanks

    hi ,
    there is no specific field for this you have to put a counter for that check these links
    Link for SAP Scripts (step by step procedure)
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Create_A_SAPSCRIPT_Form/How_to_Create_SAPSCRIPT.html
    SAPScripts
    http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
    http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
    http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
    http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
    http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
    http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
    SAP SCRIPT FIELDS
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/8033ea454211d189710000e8322d00/content.htm
    scripts easy material
    http://www.allsaplinks.com/sap_script_made_easy.html
    regards,
    venkat.

  • How can I create more than one main window in a page of SAP SCRIPT?

    How can I create more than one main window in a page of SAP SCRIPT? If anybody helps me I will be obliged.
    Regards,
    Subhasish

    Hi Ganguly,
    It is possible to have more than one main window in a same page.
    You create a main window and simply you copy and past it in the same page.. it will create first main window name as MAIN and other main windows as MAIN01,MAIN02.... up to MAIN99.
    Contets flow from MAIN , MAIN01, MAIN02.......................MAIN99. contents after filling the current window it flows to next window(by default, you skip as well with some keyword not sure could be NEW-WINDOW)
    you want print the main window data twice? or you want to create two main window in the same page ?
    1. give two copies in the no of copies in the output type screen ( Which pop up is coming after excute the program ).
    2. create two page with the same script form.
    3. you can write the coding inside the program to print twice the same page.
    Hope this information use full to you..

  • How to add a page in the SAP Scripts

    Hi All,
    I want to know how to add a page in the sap scripts. there is already sap script developed by some other person.
    Now I have to add a page in front of that and have to add some more data.I added a page in page windows but thats not at all working.
    Please help me out in this.
    Thanks,
    Praveen

    new page will create in sap scripts using new page command.
    you have to set condition like after some number of records displayed in page new page has to be trigger.
    ex:YOU HAVE SO MANY RECORDS FOR PRINTING BUT YOU WANT TO DISPLAY 100 RECORDS IN FIRST PAGE REMAINING IN SECOND PAGE LIKE THAT.
    Here you can use NEW PAGE COMMAND .
    IT IS OPPOSITE PURPOSE OF PROTECT AND ENDPOTECT.
    Reward if useful.

  • How to Avoid blank page in SAP Script

    I am working on a Script. My Script prints a check.
    This script is a copy of a std script.
    It has 3 pages - First Next Last
    My First page has all the required data.
    My second page is empty with out any values.
    I am getting the blank page as Page 2 when executing. How can we avoid it ?
    Senthil

    Hi Senthil,
    Please see the below points:
    1. Please check what have you defined as the NEXT PAGE for your first page. If so change it and make the first page itself as the next page.
    2. Check your main Window, may be there is blank line at the last of the main window, so check that abd remove that,so you won't get the blank page
    Please see the link which is similar to your problem:
    Re: How to remove blank page in sap script
    May it helps you.
    Regards.
    Deepak Sharma.

Maybe you are looking for

  • Firefox will not start up at all due to installing add on {e4a8a97b-f2ed-450b-b12d-ee082ba24781}

    I think it may be due to me stupidly downloading XAMPP as well as MAMP and now Firefox won't open. It tries to restore all tabs at start up but goes straight to Mozilla crash report. I can't start it in safe mode because it won't even open. Tried dow

  • @ALIAS in FIX Statement

    Hi, Can I use @ALIAS function in FIX statement? When i try to do it it says "Error: 1200315 Error parsing formula for [FIX STATEMENT] (line 1): invalid object type". If not is there any work around for it? Thanks.

  • ASA support in Prime Infrastructure 1.2 Lifecycle

    Now I am testing phase with this new software and I found, that the Prime is able to manage ASA, but unable to say anything about it, does not place in the relevant Device Group. Is there any possibility for a more detailed management of ASA within P

  • 'burn disc' button non-existent

    hi! i've been able to burn cd's from itunes in the past, but now, i don't even get the 'burn disc' button in the upper right hand corner...can anyone pls help? thanks! karyl

  • Cant install DKIM/DomainKeys

    Following the OS X server mail guide for DK/DKIM on topicdesk, and already hitting a roadblock from the start. Looks like the perl required files for download dont exist? pan[1]> install Crypt::OpenSSL::Random CPAN: Storable loaded ok (v2.13) Going t