New page creation in sap scripts

Hai
some one can give me the path for creation of  new page in sap script(forms).
pl giove me the complete path
thank u in advance

hi
Goto SAPSCRIPT transaction code se71.
open your sap script.
goto pages button
right click
create element
a new page element gets created
fill in required details of this new page like page name next page
next page is the page that comes after the current page
if you have no next page - give the current page name in next page.
you can further create windows in this page and continue
Regards,
Richa

Similar Messages

  • Need to add a new page in the SAP Script as last page

    Hello,
    I need to add a new page in the SAP Script as last page.
    Currently I have three pages in the form(FIRST,NEXT,LAST). For this I created one more page END.
    FIRST page next page is NEXT
    NEXT page next page is NEXT
    LAST page next page is LAST
    END page next page is END.
    I used NEW-PAGE END in the main window but it is not working and also I trired with CONTROL_FORM this also not working.
    Thanks,
    Ravi.

    Hello,
    I need to add a new page in the SAP Script as last page.
    Currently I have three pages in the form(FIRST,NEXT,LAST). For this I created one more page END.
    FIRST page next page is NEXT
    NEXT page next page is NEXT
    LAST page next page is LAST
    END page next page is END.
    Create the text element in the main wondow of your form
    /E           ENDPAGE
    /:           NEW-PAGE END
    and call the element from your print program by using write_form, where you want the END page in your print.
      CALL FUNCTION 'WRITE_FORM'
        EXPORTING
          element = 'ENDPAGE'
        EXCEPTIONS
          element = 1
          window  = 2.
    Thanks,
    Ravi.

  • 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 put Page break in SAP Script

    Hi Experts,
    Please tell me how to put page break in SAP Script. or give some sample code
    looking forward for your reply..
    Regards,
    Kali Pramod

    Hi,
      NEW-PAGE is used to insert a page break ,
      it can be conditional if used between IF..ENDIF
      e.g. /:IF &KNA1-NAME1& = 'XYZname'
            /:NEW-PAGE
           /:ENDIF
      If u want to Page break after displaying certain records or after some condition you use NEW-PAGE
    reward if useful.

  • Page format for SAP-Script not working in 4.6C

    Hi all,
    I have a problem regarding check printing.
    I am using SAP version 4.6C
    The size of paper for check printing is
              width  = 231 mm
              Height = 304 mm
    So for this I have created a new page format with these details in SPAD.
    Then I assigned this Page format to spool format and assigned that spool format to SAPWIN driver. I have assigned this page format to the SCRIPT that is used for check printing .
    But when I am taking the print out for the check with new page format, the printer don’t print till the end of page, it prints till the total amount on check and then stops there. So this creates an alignment problem when taking printout for multiple checks.
    Please give some solution for this.
    Regards,
    Bharat.

    I guess you are printing on dot matrix printer. If yes, try to do some physical printer settings for the dot matrix printer by following the printer manual. I guess you have to change the page size.. or set default printer settings... it may help you to solve your problem...
    if not goto your device types tab in SPAD and select device types.. select your device from the list (for ex, SAPWIN) click format and goto the format that you have inserted for this device types.. double click on your format, you will see printer Indialization.. try to write code like this
    set page length to 8.5 inch (=52 lines at 6 LPI)
    \e\0x43\0x44
    Note the above hexa decimal value can be obtained by going through the printer manual.
    Close the thread once your question is answered.
    Regards,
    SaiRam

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

  • How to print the Terms and Condition page ine the sap-script

    Hi experts,
                             i got the requirement that how to print the Terms and condition page in the script,i have the three pages, having the same main window, in the last of the main window(all three pages)  i have called the hard coded text(i.e so10 text), but when i am displaying the output  data get printed in the first page but i am getting the second page heading on the top of  the terms and condiions page. In all the three pages i  have the same main window, if i  make change in any window i will affect all the other main  windows.  so please suggest me how i need to go.HOW TO GET GRID OF THE TEXT ON THE TOP OF THE SECOND PAGE OF THE TERMS AND CONDITONS.
    like this i have called in the MAIN WINDOW
    /E : LAST ( IN ALL THREE PAGES)
           INCLUDE ZSD_INVOICE_TERMS TEXT OBJECT TEXT LANGUAGE EN.
    IN THE TCODE SO10
    NEW PAGE TERMS.
    1) TERM MS AND CONDITONS  TEXT.................................................
    FIRST->NEXT, NEXT->NEXT,,   TERMS--->TERMS.

    Hi,
    1. Create a new page by Name : LAST
    2. Identify the text element which will be the last element in the form in the debug mode.
    Mostly Ex: SUM, TOTAL, LAST etc.,
    3. the page linking should be
    First --> Next
    Next --> Next
    4. In the Text element identified in the step 3.
    Write the following code
    /: NEW PAGE  LAST
    /: INCLUDE the standard text created for the terms and conditions in SO10
    Check the syntax for the command but the logic will be the same.
    It should resolve your problem.

  • From XML (import) for each record automatic new page creation?

    Hello,
    I'm playing around with XML.
    Can someone tell me where to look and help me?
    I load variable data via XML.
    Example content xml:
    <pages>
         <page>
             <id>1</id>
             <article>title page 1</article>
             <info>Info page 1</info>
             <price>price page 1</price>
         </page>
         <page>
             <id>2</id>
             <article>title page 2</article>
             <info>Info page 2</info>
             <price>price page 2</price>
         </page>
         <page>
             <id>3</id>
             <article>title page 3</article>
             <info>Info page 3</info>
             <price>price page 3</price>
         </page>
    </pages>
    I have 1 page classified (ie 3 text boxes). The idea is that for each record in the xml (in this case 1, 2 and 3) a new page is created (Qua layout identical to the page that I had prepared, but with the corresponding data in each box)
    How do I do this?
    Thanks!

    If you need to keep the three parts of your page in separate text frames, you are probably out of luck.
    I can't tell from your question whether you know how to tag frames and import XML content into them. If you don't, the manual is fairly clear on it. However, it states more than once that "InDesign flows merged XML content into existing frames only."  That means that it won't add frames or pages for you -- you can only load XML into tagged frames on the first page and will have to add extra ones by hand.
    If you could rework your design so that all the elements could be accommodated in a single text frame, using paragraph styles to keep them apart, you could just import the XML and map tags to styles, then drag it into a frame on the first pages. If your article style was set to start in a new frame,  everything but the first would go into overset text, which you could deal with in the usual way -- shift-click on the in port of a new frame and InDesign will add the pages you need.

  • Print Preview of particular page issue in SAP script

    Hi all,
    Kindly help me to resolve the following issue in SAPscript.
    I have a particular business requirement to preview a particular page in 'n' pages of a SAPscript.  After executing the sapscript calling program, the print window appears, in which i can choose particular page in the <b>Page Selection</b> Field.
    The problem is that the preview shows some other page rather than the appropriate page.  Please help me to resolve the issue.
    Awaiting for your replies,
    Thanks and Best Regards,
    Jana

    You need to call NEW-PAGE command in the sapscript when the user select a page in page selection.
    Try this:
    create the following text element in the sapscript in any window, preferibly MAIN window
    /E PBREAK
    /: NEW-PAGE &user_selected_page&
    In the Print program: OPEN_FORM returns a parameter called RESULT.
    case result-tdpageslct.
    when '2'.
    user_selected_page = <second page name in the sapscript>
    when '3'.
    user_selected_page = <third page name in the sapscript>
    when others.
    clear user_selected_page.
    endcase.
    if not user_selected_page is initial.
    call function WRITE_FORM and call above created text element
    endif.
    If the pages you are trying to display does not have main window, make sure next page in the page definition is not the same page in the sapscript.
    Regards
    Sridhar

  • Need Documents on New Role Creation in SAP

    Hi All,
    i am new to SAP Security and i would like to grow in this field,
    Can any one send me the links for the documents on creation of new roles, objects, Authorizations, transactions etc.
    Thanking you in Advance,
    Savitha.

    Hi,
    I guess you should look on Google for ADM940 and ADM950,
    Its a very detailed book for what ou want.
    Indeed to help you out, Its a very very simple task. But when you read this book keep in mind that there are 3 kinds of roles, Single roles, Derived roles and composite roles.
    Just to give you a heads up :
    Single role :  Role which has Authorization and data is restricted via company code and filed level values
    Derived role : these are derived from Single roles or you can say master role. Difference between single role and derived role is that you can derive say 10 roles from single role however company code can be manage in derived roles.
    So generally how it works is one create a master role which has all the required authorization. Now you don't want people in australia sould approve orders for Texas, US.
    Now there are hundred of companies department accross the glob. you don't want to end up creating hundreds of roles. so you create one master role and then you create derive role from that master role which is most of the time master role replica (keep in mind most of the time but not always so you have to be very carefull) now in derived role all you have to maintain is company codes.
    all the authorizations for all the objects and fields come from master role.
    I hope i am making sense.
    Composite role : its a collection of single and derived roles. Keep in mind you can not put composite role into composite role.
    That was just a heads up you need to read ADM940 and ADM950.

  • Regarding BSP page creation in SAP E-Recruiting

    Hi,
    I have a requirement to create a BSP in E-Recruitment module, how can we do this?
    Just give me idea.
    Thanks,
    Anil

    Hello Anil,
    I do not understanad your requirement clearly.Provide us with more inputs.
    If you want to change the color, look n feel and navigation of the standard BSP follow the steps below :
    1. Copy the standard BSP application to a new z-version one.
    2. Copy the control classes of the standard BSP application.
    3. Associate and refer these Z - Control classes with the z bsp application
    4. Start customizing the application  and go through the coding properly to which stylesheets the application is refering it to with each of the bsp.
    Follow the procedure and links given above by shaoming peng. They are even usefull too.
    And if you are looking something like .....integration of this standard bsp application with SAP Enterprise Portal and want to apply the stylesheets of EP ?
    Then it is easy to do this. Since the EP can apply the stylesheets to these BSP application using theme editor.  Follow this steps :
    1. Integrate the standard BSP application in EP.
    2. Start customizing the themes using System Administration -> Portal Display -> Theme Editor ->
    3. Change the colors, stylesheets here.
    4. Save these customized theme in a new z theme.
    5. Attach this theme to Portal Desktop,
    6. Finally refere this Portal Desktop with the Desktop rule collection.
    And you will see the changes with the affected colors and stylesheets applied to BSP application in EP.
    Is this the way you are looking for ?
    Also if you are looking something stylesheet in the BSP application itselfs, then do the changes in theme editor
    follow the procedure sugegsted by shaoming peng to upload these theme editor stylesheets in R/3 using BSP_UPDATE_MIMEREPOS.
    The one which you are saying about visualtools or something might not be possible to do it to apply the stylesheets.
    Finally, the reason why u are not able to see the bsp application in se80 is :
    I guess....you have not typed the  HRRCF in the program name text box.
    Type HRRCF and press F4 for help and you will see the standard BSP application for E-recruitment.
    I hope this information helps.
    Regards,
    Anil Kumar.
    and do some changes then configure the new one to the start page.
    If you want to customize the standard application

  • Problem in data flow into other pages in TDS SAP Script

    Hi Gurus,
    I have solved all my problems which i had faced through the creation of the TDS Certificate Layout & programs. But blocked with one problem, which is when there are more line items to be printed and which are moved to the second page. Now for Example in my first page if there are 10 line items printed & then moved to the second page only 11 items are printed and again in third page 11 items are printed, where in my page's are wasted when we take a printout. what could be the problem where i am notable to fix. Please Suggest me what can i do to solve this problem.
    Regards
    Syama

    Hi,
    Use PROTECT -
    ENDPROTECT statements.
    Regards,
    Jyothi CH.

  • 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

  • How to create new Page Format

    Hello
    i want to create new page format in sap script
    can any body guide to crate this & how to assign this
    thnks in advance

    Hi Nitin,
    You can create a new page format by transaction code SPAD. Here you will have to create a cutomised page format for ex: 'ZPAGE'.
    After this you will have to create a format type 'ZPAGE'. Assign the page format 'ZPAGE' to format type 'ZPAGE'. Pls make sure that both the names are identical.
    Once you do that you will have to assign the format type ZPAGE to the printer which you want to use.
    Now you can use this page format in your script.
    Hope this helps.
    Sushil

  • Finding last page in SAP Script when there are  multiple layouts involved?

    Hi,
    I want to find out the last page in the SAP script. I have used &NEXTPAGE& = '0', this is finding the last page of a one layout however I do have three layouts in my script. I have also used the &SAPSCRIPT-JOBPAGES(3ZC)& and I have taken one counter and comapred as follows-
    If &SAPSCRIPT-COUNTER_1(+)&  = &SAPSCRIPT-JOBPAGES(3ZC)&
    LAST PAGE.
    endif.
    This is also not working. Please advise if there is anyway to find out the last page from print program.
    Thanks,
    Jyoti

    Hi,
    U can do like this, Set a flag in ur driver program when u reach to print the last layout then pass this flag value to Script. In script check when this FLAG = 'X' & &NEXTPAGE& = 0 then u print the required in ur last page.
    Eg:
    define a FLAG in ur driver program and make the value as 'X' when it reach the last layout.
    in script, write the condition like:
    /:  IF &FLAG& = 'X' AND &NEXTPAGE& = 0
         write text.
    /:  ENDIF.
    Hope it helps!!
    Rgds,
    Pavan

Maybe you are looking for

  • How to use *last_member

    Hi,   I have a problem running this piece of script logic in BPC 5.1   in a lgf file called test.lgf, i have the following code: *last_member time=2002.Mar #A = audit + accounting *commit   Note that i have included test.lgf in default.lgf and that b

  • Performance Problem While Selecting a Query....

    Hi Users I have problem with performance with appliction where are using D2K frent end and backend oracle 9i we have a validaion buttion that is taking lot of time to check the date like 500 records i want some links about performance issue process p

  • How Do I Find How Much "space" My Documents uses

    Were can i find how much hard drive space my documents occupies.  I'm trying to save to the cloud but I'm not sure how much I need to purchase....

  • Lightroom 1.4.1 Now Available - Note from Adobe

    Details here: http://blogs.adobe.com/lightroomjournal/2008/04/lightroom_141_and_camera_raw_4.html Regards, Tom

  • Table for cost estimate

    Dear experts,                    In which table the standard cost estimate values will be stored? plz help me. Regards jay