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.

Similar Messages

  • Problem when data flows to second page

    Hi,
    My Z form has FIRST and NEXT page under master pages. (Copied from the standard Invoice form SD_INVOICE_FORM01
    and modified).
    When Body page fits in FIRST page its working fine.
    When it (Body page/MAIN) overflows to NEXT page it throws an error 'Output could not be issued'.
    When i debug, the form's generated FM throws system error.
    Can you please help to solve this issue.
    Note: I didnt change any setting regarding Pagination. Everything is same as Standard form.
    Thanks
    Meenakshi

    Hi,
    This was a wierd problem!
    Solved by creating a new NEXT page with same elements, without changing in any settings.
    Thanks.
    Edited by: Meenakshi Palaniappan on Aug 6, 2010 3:54 PM

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

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

  • Problem when inserting xml flow into jspx page

    When I drag and drop the xml into the jspx I should get a pop up menu where I would choose region (Im following a tutorial) but I get nothing. I drag and drop and It just opens it in the design editor.
    I would appreciate any help you guys could give

    OK, let cover the basics first:
    JDev version?
    I assume you are on 11.1.1.2.0 or 11.1.1.3.0:
    You created a new task flow (right click on the 'Web content'->new->'ADF Task FLow'
    the check box 'Createas Bounden Task flow was set and the check box for 'Create with Page Fragments' was set
    The filename was something like 'search-email-flow.xml'
    This should create a new bounden task flow with the name of search-email-flow (which creates a xml file with the same name).
    Then you put one view to the flow. After creating the page fragment (the file created should have the jsff file type) you saved all work.
    The you open up an existing jspx file and drag the new flow from the 'Page Flows' folder under 'Web content' onto the design view of the jspx file.
    after dropping the flow you should then see the 'Create' dialog. e careful, you can't drop the flow everywhere on the page. You should drop in into a panel group or some other container. If you drop it i.e. onto a table you see the effect you described: it's opening the flow!
    Timo

  • How to "Add" a combo key of 3 fields from a page into other pages ?

    Folks,
    Hello. My PeopleSoft component has 5 pages. Its layout looks like below:
    AddJournal     Header          Lines          Total           Error
    "AddJournal" is the first page that has 3 fields: OperatingUnit, ID, Date. The 3 fields is also a combo key that appears in the next 4 pages "Header", "Lines", "Total" and "Error" to maintain data consistency and identify the transaction.
    I am working on a push button "Add" in the "AddJournal" page. The button should do 2 things:
    First, when click on button "Add", it inserts the values of 3 fields into its underlying "AddJournal" table in Database.
    Second, after click on the button, the value of 3 fields also appear on the next 4 pages "Header", "Lines", "Total" and "Error". All the other 4 pages' underlying Database tables contain the 3 fields.
    I understand how to achieve the first function by using push button properties "Scroll Action" and "Row Insert". But don't understand how to achieve the second function.
    Does any folk understand how to do the second function ?
    Do I need to redesign the Database tables for the next 4 pages to achieve the second function ?
    Thanks.

    There is a lot here, and I think we will need more information to help.
    FieldChange Event:
    The FieldChange event occurs when you change that particular field. So, assuming the PeopleCode works correctly, it will copy the values of those three fields at the time just after you change the OperatingUnit. So, take this example:
    -all three fields are blank
    -You change the OperatingUnit to "OU"
    -You change the ID to "XX"
    -You change the Date to "04/23/2010"
    The values that would be copied to the other pages would be "OU", blank, and blank because that is what they were just after changing OperatingUnit to "OU"
    Does that make sense?
    Page Design:
    Normally, the keys are automatically populated for you. Header and Line sound like a parent-child relationship. So, if your page is designed correctly, the keys should be carried over automatically for you. If the tables are all sibling tables you will need the PeopleCode. I don't know if you want to explore the page design issue at all, but that might solve your problem without the PeopleCode.
    In any case, it would help if you would post the page structure. First of all, what occurs level are the three tables at? You can tell on the Order tab of the page -- I believe it is the far left column.
    PeopleCode:
    Can you post your PeopleCode, and maybe we can spot something in the PeopleCode that is not right? If you are unsure if and when your PeopleCode is running, you can place a winmessage function in there. Put something like this:
    WinMessage("Hello!");
    You should see the hello message after you change the Operating Unit field. With deferred processing, you may not see it until you hit Save or Refresh.

  • Mixing of 3.x data flow into 7.0 flow

    There is an Info Object with Master data and already used in different cubes.
    The whole for extracting Master data into this object and also loading to the cubes is also in 3.x flow.
    There is a requirement for adding new attributes to this Info Object, and for these attributes I am loading text data from R/3 table using Generic extraction for texts.
    If I load the text data to these attributes in 7.0 flow and when these objects are added to already existing InfoObject whose data flow is in 3.x, will it affect performance or generate any errors.
    Will any compatibility errors occurs during Process chains schedule or attribute change runs?

    Hi Akshara,
    There shouldn't be anyproblem, you can use 3.x and 7.0 flow for a same object.
    for example:- you can load a master data info object with 3.x flow and also 7.0 flow.
    i did this in one of my previous assignments....we had a masterdata object (created in 3.x)which has been used across the system..like, in cubes, DSOs etc.. 
    Later on, the system has been upgarded to 7.0 and we had to add few new attributes to add to the same master data infoobject. we added those new attributes and created a 7.0 flow(transformations and DTPs) inorder to load the newly added attributes.
    There has been absoluetly no problem till date....this has been implemented more than an year ago.
    your case is pretty simple when comapred to mine.....you are just loading the text data for the new attributes using a 7.0 flow.
    Bottom line:  you can use 3.x and 7.0 flow for a same object simultaneously.
    Regards,
    Sudheer.

  • Dyamic landscape table that flows into portrait page.

    Hi,
    I have a form that transitions from portrait, to landscape, and back to portrait. The landscape pages contain a dynamic table where users can click a button to add rows. I have applied the landscape master page to the landscape pages and the portrait master page to the following pages. The problem is that in the PDF preview, when the landscape table flows onto another page, it renders incorrectly because it is trying to use the portrait page. What do I need to do on the Pagination tab to make the table flow properly to another landscape page?
    Thanks...Jenn

    Hi Sarah,
    Thanks for your response. Unfortunately the pagination tab for the master page does not give me those options. It only gives me the page numbering options. I have applied the pagination option you suggested to the page where I have applied the landscape master page, however, it still flows into a portrait page. Any other suggestions are most welcome.
    Thanks again...Jenn

  • Problem in date converting into dbFormat()

    Respected Experts,
    I am get the current date into String vaiable and from this string variable i want to convert into dateformat.
    For converting to date format i write the .java file. It converts date correctly into format "dd/mm/yyyy" but i want date format into "dd/mm/yyyy HH:MM.pm/am", so what change should i do in my following progaram.
    import java.text.SimpleDateFormat;
    import java.text.DateFormat;
    import java.text.ParseException;
    import java.util.Date;
    public class UtilityFunction
         public static String toUserFormatDate(Date dt)throws ParseException
         SimpleDateFormat sdf=new SimpleDateFormat("dd/MM/yyyy");
         String str=sdf.format(dt);
         return str;
         public static java.sql.Date toDbFormatDate(String sdt)throws ParseException
         SimpleDateFormat sdf=new SimpleDateFormat("dd/MM/yyyy");
         Date d=sdf.parse(sdt);
         SimpleDateFormat nsdf=new SimpleDateFormat("dd-MM-yyyy");
         String str=nsdf.format(d);
         Date nd=nsdf.parse(str);
         java.sql.Date rdate= new java.sql.Date(nd.getTime());
         return rdate;
         public static void main(String args[])throws ParseException
              SimpleDateFormat df=new SimpleDateFormat("dd-MM-yyyy");
              Date d2 =df.parse("08-09-1984");
              System.out.println("Date converted to User interface form");
              System.out.println("Database Date"+"08-09-1984");
              String p=toUserFormatDate(d2);
              System.out.println("Converted date"+p);
              java.sql.Date r=toDbFormatDate("12/12/2009");
              System.out.println("Date converted to database form");
              System.out.println("User Interface Date"+"12/12/2009");
              System.out.println("Converted date"+r);
    }

    After 22 posts on the forums, I'd have expected you to have learnt how to use the code tags by now (click on 'CODE' when posting)
    And while you get points for posting an SSCCE, you've left too much fluff in there. I don't know what method you want to discuss.
    And if you've reached this far with the SimpleDateFormat, what kept you from reading the rest of patterns available? It's all the same thing, you just needed to make it dd/MM/yyyy hh:mm a
    Do note that with your code, you're creating a date from a string that's missing the time, so you'll only get 12:00 AM all the time, for the above pattern. And also, you'd be using hh and not HH since putting AM/PM with 24 hour clock time is plain dumb.

  • Data flow into data source

    Hello,
    Is there any nice documentation which describes exactly how the data flows from the source R/3 table all the way to the data source? Is this very different from ds to ds or is there a common logic?
    As I understand it, a function module fetches the data from the data source when being called upon from info package in BW... But how do I trace the flow all the way back to the source tables in R/3?
    Best regards,
    Fredrik

    Hi Fredrik,
    Yes. The data flow for the datasources would be different. You can refer to this blog by Roberto:
    /people/sap.user72/blog/2005/09/05/sap-bw-and-business-content-datasources-in-pursuit-of-the-origins
    Bye
    Dinesh

  • 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

  • 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

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

  • 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

Maybe you are looking for