In smartform : in a  table i need to maintain  fixed no of rec

.2.in smartform in a table i need to maintain  fixed no of records in each page i.e 10 records in each page and after printing 10 records page break has to occur and print them in New page , how to do this can any body help me.in each page i.e 10 records in each page and after printing 10 records page break has to occur and print them in New page , how to do this can any body help me.

Hi,
I dont know if there is any direct way of doing so, but ican suggest a turn around solution.
declare 2 global tables 1. ITAB_10 type ITAB (in which there is ur data)
                                  2. IT_ROW inwhich 2 cloumn (start_pos & end_pos type i)
Now in intialization.
Caluculate no of rows in ITAB.
Say there are 56 rows, then fill table it_row as 1(start_pos) - 10(end_pos), 11-20,...51-56.
Then in main Window, Create a loop on IT_ROW.
in that create a CODE under this loop in which fill ur ITAB_10 from ITAB as per start_pos& end_pos in IT_ROW.
Then create TABLE under the loop, for ITAB_10.
Regards,
Vaibhav.

Similar Messages

  • Smartforms-To change table display(in main window) dynamically

    Hi,
    In Smartforms - Main Window - Table
    I have to change the Record display dynamically,
    like Ex - I have sale order display at item level, First SO has three item, Second SO has ten item.
    So, at run time - I want First SO on First page & Second SO on Second page.
    (Similar like - PROTECT - ENDPROTECT in script)
    How can I do this in Smart forms?
    Regards,
    Ashlesha

    Hi Ashlesha,
                  The protect and endprotect command in sapscript doesn't work with smartforms.
                  The usage of protect and endprotect can be brought about in Smarrtforms is by using a folder node and checking the 'PROTECT' checkbox, everything in that folder will be page protected.
                   This is actually called 'Page Protection'.
    Best Regards,
    Shree Tejus.

  • BTXTAXT - Why do we need to maintain this table

    Experts,
    Could anyone explain why do we need to maintain this Tabe (BTXTAXT) when a new Tax type is added.
    I haven't maintained that still taxes are calculated properly for the new tax type87.

    Hi,<br>
    It is for "Tax Category in BSI". This is not to be maintained by us ANY TIME and NEVER should be.
    The tax type already maintained in BSI and in SAP in the T5UTT table.
    This is for SAP to communicate to BSI internally.
    Good luck<br><br>
    Thanks,
    Amosha
    <br><br>"Known is a drop & unknown is an OCEAN!"

  • Need to maintain default

    I need to maintain a default delivery block and shipping conditions for a particular sales area for a returns sales document(va01-Z31) which we use
    it should come has a default.
    i need to do the changes for existing returns document type
    to my knowledge it cannot be possible with standard(the default settings in sales doc type. will be of not useful as they apply to all sales areas and i cant maintain a new doc and assign to that sales area)
    pls let meknow your inputs
    regards
    sujan

    hI
    We have a z table we are maintaining in addition feilds to the table which is inserted in program

  • Todays update! After todays update I can no longer send Safari or Spotify to the task bar without it cutting out (dropping audio in and out). Streams normally if I keep the window open on my desktop. This needs to be fixed immediately.

    Todays update! After todays update I can no longer send Safari or Spotify to the task bar without it cutting out (dropping audio in and out). Streams normally if I keep the window open on my desktop. This needs to be fixed immediately.

    Nevermind. I figured it out.

  • How to find out what is the name of table/view is being maintained in  IMG?

    Gurus,
    Any general trick to find out what is the name of table/view is being maintained
    by a given IMG item while configuring?
    Thanks,

    Hi,
    Click F1  on the table/ view you will get the table name and then go to transaction give this table name and click on Find Maintainance Dialog their you will get the views related to that table.
    Regards,
    IFF

  • I just bought my IPhone and am also getting the the Service Apple Mobile Device failed to start. Verify that you have sufficient privileges to start system services.  This is after following the uninstall/reinstall instruction.  This needs to be fixed!!!

    I just bought my IPhone and am also getting the the Service Apple Mobile Device failed to start. Verify that you have sufficient privileges to start system services.  This is after following the uninstall/reinstall instruction.  I am due to travel in 2 days and am very upset about this. This needs to be fixed!!!

    http://support.apple.com/kb/TS1567
    Log in to the Windows with "administrative rights".

  • Story does not correctly export fdx file with scene numbers? Bug needs to be fixed.

    Story does not correctly export fdx file with scene numbers? Bug needs to be fixed.

    Okay, Even if i remove the scene numbers from Story and export the file to Final Draft 8. The format in incorrect. The "transitions" ex. CUT TO:  are not in the correct allignment. Also there are numbers on each of the dialogues
    Pretty much alot of the formatting is not the same. Spaces  that break dialouge and action which are there in Story, are not converted over to Final Draft.
    Please fix this as soon as possible.
    thanks,
    Rohit

  • Need help on fixing this bug

    Hello!
    I have my cod which needs some bug fixing. This is a drag and drop application where the user will drap the correct answer on corresponding targets. My problem here is, when one target is already occupied by an object i can still drop another object there, which shouldn't. can you please help me fix this?
    thanks in advance!
    Sincerely.
    Milo
    Here's my code:
    var startX: Number;
    var startY: Number;
    var correct: Number = 0;
    var attempt: Number = 0;
    var currentlyDragged:MovieClip;
    // collection of objects stored in array
    // so that you can reference them programmatically
    var objects:Array = [at1, in1, in2, in3, in4, in5, in6, in7, in8, on1, on2];
    activateObjects();
    // assigns listeners and other functionality to the objects in objects array
    function activateObjects():void {
         for each(var mc:MovieClip in objects) {
              mc.addEventListener(MouseEvent.MOUSE_DOWN, pickObject);
              mc.buttonMode = true;
              // assign drop targets based on names
              switch(String(mc.name).substring(0, 2)) {
                   case "at":
                        mc.dropTargets = [targetAT1];
                   break;
                   case "in":
                        mc.dropTargets = [targetIN1, targetIN2, targetIN3, targetIN4, targetIN5, targetIN6, targetIN7, targetIN8];
                   break;
                   case "on":
                        mc.dropTargets = [targetON1, targetON2];
                   break;
    function pickObject(e:MouseEvent):void {
         currentlyDragged = MovieClip(e.currentTarget);
         currentlyDragged.startDrag();
         startX = currentlyDragged.x;
         startY = currentlyDragged.y;
         stage.addEventListener(MouseEvent.MOUSE_UP, dropObject);
    function dropObject(e:MouseEvent):void {
         stage.removeEventListener(MouseEvent.MOUSE_UP, dropObject);
         stopDrag();
         var droppedOn:MovieClip;
         if (currentlyDragged.dropTarget) {
              // loop through targets belonging to the currently dragged clip
              for each(var mc:MovieClip in currentlyDragged.dropTargets) {
                   if (currentlyDragged.hitTestObject(mc)) {
                        // get the target
                        droppedOn = mc;
                        currentlyDragged.removeEventListener(MouseEvent.MOUSE_DOWN, pickObject);
                        currentlyDragged.buttonMode = false;
                        currentlyDragged.x = droppedOn.x;
                        currentlyDragged.y = droppedOn.y;
                        correct++;
                        correctCounter.text = String(correct);
                        // stop loop - it is not necessary to continue
                        break;
         attempt++;
         attemptCounter.text = String(attempt);
         // return to the initial position if there is no hit
         if (!droppedOn) {
            currentlyDragged.x = startX;
            currentlyDragged.y = startY;
         if (correct == objects.length) {
              var congrats:CongratsMC = new CongratsMC();
              // place i in the middle of the screen
              congrats.x = (stage.stageWidth - congrats.width) * .5;
              congrats.y = (stage.stageHeight - congrats.height) * .5;
              addChild(congrats);

    Try the code below.
    Also, use int instead of Number whenever possible - it is smaller and faster.
    import flash.display.MovieClip;
    import flash.display.Sprite;
    var startX:Number;
    var startY:Number;
    var correct:int = 0;
    var attempt:int = 0;
    var currentlyDragged:MovieClip;
    // collection of objects stored in array
    // so that you can reference them programmatically
    var objects:Array = [at1, in1, in2, in3, in4, in5, in6, in7, in8, on1, on2];
    var congrats = new CongratsMC();
    congrats.addEventListener("close", closeCongrats);
    activateObjects();
    // assigns listeners and other functionality to the objects in objects array
    function activateObjects():void {
         for each(var mc:MovieClip in objects) {
              mc.addEventListener(MouseEvent.MOUSE_DOWN, pickObject);
              mc.buttonMode = true;
              // assign drop targets based on names
              switch(String(mc.name).substring(0, 2)) {
                   case "at":
                        mc.dropTargets = [targetAT1];
                   break;
                   case "in":
                        mc.dropTargets = [targetIN1, targetIN2, targetIN3, targetIN4, targetIN5, targetIN6, targetIN7, targetIN8];
                   break;
                   case "on":
                        mc.dropTargets = [targetON1, targetON2];
                   break;
    function pickObject(e:MouseEvent):void {
         currentlyDragged = MovieClip(e.currentTarget);
         currentlyDragged.startDrag();
         startX = currentlyDragged.x;
         startY = currentlyDragged.y;
         stage.addEventListener(MouseEvent.MOUSE_UP, dropObject);
    function dropObject(e:MouseEvent):void {
         stage.removeEventListener(MouseEvent.MOUSE_UP, dropObject);
         stopDrag();
         var droppedOn:MovieClip;
         correctCounter.text = String(correct);
         if (currentlyDragged.dropTarget) {
              // loop through targets belonging to the currently dragged clip
              for each(var mc:MovieClip in currentlyDragged.dropTargets) {
                   if (currentlyDragged.hitTestObject(mc)&& mc.notUsed) {
                        // get the target
                        droppedOn = mc;
                        mc.notUsed = false;
                        currentlyDragged.removeEventListener(MouseEvent.MOUSE_DOWN, pickObject);
                        currentlyDragged.buttonMode = false;
                        currentlyDragged.x = droppedOn.x;
                        currentlyDragged.y = droppedOn.y;
                        correct++;
                        correctCounter.text = String(correct);
                        removeTarget(droppedOn);
                        // stop loop - it is not necessary to continue
                        break;
         attempt++;
         attemptCounter.text = String(attempt);
         // return to the initial position if there is no hit
         if (!droppedOn) {
            currentlyDragged.x = startX;
            currentlyDragged.y = startY;
         if (correct == objects.length) {
              // place i in the middle of the screen
              congrats.x = (stage.stageWidth - congrats.width) * .5;
              congrats.y = (stage.stageHeight - congrats.height) * .5;
              addChild(congrats);
    function removeTarget(target:Sprite):void {
         var i:int = 0;
         for each(var mc:MovieClip in objects) {
              for (i = 0; i < mc.dropTargets.length; i++) {
                   if (mc.dropTargets[i] == target) {
                        mc.dropTargets.splice(i, 1);
    function closeCongrats(e:Event):void {
         removeChild(congrats);

  • TS1646 I'v tried many times to update my applications however, my account can't do it because security code for my card is incorrect note that I'm sure my card details are correct completely so i need help to fix it as much as you can plz. Thnks

    Hi
    I'v tried many times to update my applications however, my account can't do it because security code for my card is incorrect note that I'm sure my card details are correct completely so i need help to fix it as much as you can plz. Thnks

    Look, I understand I still need a card attached to the account. The problem is, it won't accept my card because I only have 87 cents in my bank account right now.
    If I had known there would be so much trouble with the iTunes card, I would have just put the cash in my bank account in the morning instead of buying an iTunes card (I didn't expect the banks to be open on Thanksgiving of course).
    Apple will only accept cards that have a balance. The balance is so small in my account that it won't accept it as a valid card.
    I'm going to have to contact Apple anyway to reset the security questions. That's obvious. Your answers were not exactly helpful. You didn't tell me anything I don't already know, but thanks for trying to be helpful.

  • I need help with IOS 7, there is a major bug that needs to be fixed in an upcoming Update

    There is a big that needs to be FIXED an in upcoming update.
    Ok, on my ipad, the notifacation center says the weather is going to be 13 degrees celceuis, I am wanting to use the American metric units, which is Fahrenheit, how do I fix it, it says yahoo provides weather info! I taped on it, it led me to the internet, it said on yahoos website that it is 88 degrees Fahrenheit, but it won't show up on my ipad notifaction center,  how do I fix it?? Need help
    I have already done a hard reset, I also did location service off and then back on, the problems persist, some one told me that a third party weather app was changing the weather to celceuis, this is NOT true, need help how do I fix this?
    I have IPAD 3 gen, IOS 7

    Apple will never see your post here
    They do not monitor these posts for problems
    You really should post at
    http://www.apple.com/feedback/iphone.html
    http://www.apple.com/feedback/ipod.html
    http://www.apple.com/feedback/ipodtouch.html
    http://www.apple.com/feedback/ipad.html
    Allan

  • Seriously, this issue is really annoying. why wont my songs download? it wont stop saying there is an error. this needs to be fixed. refund or apple needs to put these songs in my itunes manually if that can be done.

    seriously, this issue is really annoying. why wont my songs download? it wont stop saying there is an error. this needs to be fixed. refund or apple needs to put these songs in my itunes manually if that can be done.

    seriously, this issue is really annoying. why wont my songs download? it wont stop saying there is an error. this needs to be fixed. refund or apple needs to put these songs in my itunes manually if that can be done.

  • When ever i try to download my iPod recovery software, it keeps saying connection timed out. really annoyed and need help to fix it

    when ever i try to download my iPod recovery software, it keeps saying connection timed out. really annoyed and need help to fix it

    - Next try the manual install method of:
    iDevice Troubleshooting 101 :: iPhone, iPad, iPod touch
    If the iPod was Disabled, place the iPod in recovery mode after the firmware download is complete and then restore using the instructions in the article. Sometimes recovery mode timeouts and returns to disabled before the firmware download is complete.
    - Then try on another computer

  • I need help in Fixing my Hp Split x2

    I need help in fixing my hp split x2. I got it with windows 8 but i upgraded to Windows 8.1. sine then I stop accessing my D:/ drive ( 500gb HDD)on which I stored data. Besides, I get DCP watchdog violation Error each time I disconnect the tablet and reconnet it. I also get another error message: DCP_DRIVER_POWER_STATE_FAILURE. Can somebody help me out?

    Hi Alsaab73,
    Thank you for visiting the HP Support Forums and Welcome. I have read your thread on your and getting an error message. The HDD that are you using, I would need the model number. Have you looked in the device manager to see if there is a conflict with the driver installed? It might be listed under the USB devices? Have you tried a different port on the Notebook?  Right clicking an updating the driver might be all that is needed.
    As per the description of the issue you get error DPC_WATCHDOG_VIOLATION.
    Is the issue confined to any particular game or a certain function you are choosing on the Notebook?
    The First thing you need to try is disable any firewalls or virus protection and restart the Notebook.
    If that does not helps try these steps from Microsoft.
    Boot the computer using the Windows 8 bootable DVD.
    On the Install Now screen click on Repair your computer.
    You will then see a blue screen and an option to choose.
    Click on Advanced Options and then click on Troubleshoot.
    Click on Automatic Repair and follow the prompted instructions.
    Hope this helps.
    Thanks.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • Do we need to maintain end users in Gateway system when SAP UI5 Application is deployed on Gateway?

    Hi All,
    We are developing a SAP UI5 application and we deploy our components in Gateway System as BSP application.
    The question now is:::
    We have 3 screens.We need to use our application by share point portal.
    we will be giving the respective URL's (i.e index.html) to portal team and they will be integrating it through URL iViews
    At a glance users can only see a single screen once they login to application. through portal
    This will be taken care by Portal Team.
    Do we need to maintain the end users on Gateway system  for accessing the application?
    We have SSO feature.
    Could you please let me know the possible ways?
    Thanks in Advance
    Regards,
    Satya

    Although I will not advise it, you can turn off authentication in SICF. Go to the service node for you application, and "hardcode" a service user.
    Please check if this is compatible with your license agreement, because I seriously doubt it.

Maybe you are looking for

  • Error parsing XSL file (weblogic.xml.jaxp.RegistryXMLReader cannot be cast

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta name="generator" content="HTML Tidy for Java (vers. 26 Sep 2004), see www.w3.org"> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=windows

  • Open link in a new window

    Hi, Can we open a link which is generated during runtime in a new window? Thanks in advance. Divya.

  • Vendor Master partner functions change at plant level

    Hello All,   I need to change the vendor partner functions at the plant level.By default it takes the partner no equal to vendor no.But in my requirement the partner no can be differnt than the vendor no.Can anyone let me know how to do this?I cant d

  • When using the "search the web" I get overlapping lines of data

    just the top right search engine has the problem. The yahoo and bing searches work correctly. Again, I get correct responses but the results are hard to read because there are overlapping pictures of buildings in the background (11 repetitions of the

  • Client says audio is off.

    I just finished a talking head video for a client. He says that the audio is not synched with the video. I click on the same link and it is fine for me. Any ideas as to why the difference? Here's the link http://sa.uldev.co/ Let me know if you have a