In smartform table data is repeating

in smartform table, data is repeating and filling the page...
actual data is only 3 rows...
but it repeats and fills the page...how can i stop this...

Hi Rajkamal
You can easily debug the smartform; try hardcoding the break-point for your user ID.  (Break <ID>)
Please check the number of entries in your table.
If the number of entries are correct it can be only some loop in smartform - happy hunting !!
Neer

Similar Messages

  • Reg: Data getting repeated in the table and displayed in the Smartorm.

    Hello Experts,
    Requirement is to display header data from kna1table and item data from two tables faglflexa and bsid.
    Layout is something like this.
    Name and Address is capture from KNA1.
    Item Details from faglflexa and BSID based on one condition, UMSKZ ne 'X' and 'Y' for the respective KUNNR from KNA1.       First Item table.I have taken a separate internal table from print program
    Item Details from BSID only based on one condition, UMSKZ eq 'X' and 'Y' for the respective KUNNR from KNA1. Second Item table. I have taken a separate internal table from print program
    Calculation based on faglflexa and BSID table on one condition,UMSKZ ne 'X' and 'Y' for the respective KUNNR from KNA1.       Third t Item table. Data from the first internal table
    The complete thing should be displayed on Smartform for one Customer (kunnr). Then should go to the next customer.
    I have a written a code like this, For Example.
    loop at kna1 into w_kna1.
    Used Table1 in smartform and give a loop to display the item details based on first internal table.
    display itemdetails
    Used Table2 in smartform and give a loop to display the item details based on second internal table.
    display itemdetails.
    Used Template to display the item details to display the item details based on first internal table.
    endloop.
    Now my problem is table 1 is coming fine. table 2 data is getting repeated for all the customers based on 1st customer data, how should i clear the workarea after every customer.
    Similar pbm for the template which i'm using.
    Please help me on this.
    Thanks in advance.
    Abdur Rafique

    Hi Vishnu,
    Thanks for replying. I cant use one single table to display the output. There are several conditions in two tables.
    I have corrected the error of repetition data. Logic i will mention it below.
    loop at kna1 into wa_kna1.
    for header data " this is main table
    loop at item_1  into wa_item_1. " for first item table
    Data displayed.
    loop at item_2 into wa_item_2. " for 2nd item table
    Data displayed.
    endloop. " for 2nd item table
    data calculation based on first item table.
    endloop. " this is for first item table
    endloop." this is for 2nd item table.
    The data which is there in the 2nd item table should display data based on the kna1 loop. Data is displaying properly but not in 1 table, say for example.
    kunnr- 1000010
    there are 9 items.
    All the 9 items should be in 1 table. But here it is displaying 1 item in 1 table till 9 items in 9 tables.
    I need to club all the 9 items in 1 table.
    One more doubt is 2 items have same belnr (document number) i need to club this and add the wmbtr field and then display as 1 record.
    So final records in 2nd item table should be 8 not 9.
    Can you please help me on this.
    Thanks in advance.
    Abdur Rafique

  • How to loop and read repeating table data of infoPath form in Visual studio workflow.

    Hi,
    I am trying to read info Path form repeating table data in Visual studio workflow.
    could anyone elaborate me in brief how to loop through repeating table and read all rows value one by one in workflow.
    any help would be more then welcome. 
    Thanks...

    Hi Rohan,
    According to your description, my understanding is that you want to create a Visual Studio workflow to get data from info path repeating table.
    I suggest you can submit Repeating Table to a SharePoint List and then you can create a .NET workflow to read data from the SharePoint List.
    Here are some detailed articles for your reference:
    Codeless submitting InfoPath repeating table to a SharePoint list
    Create a Workflow using Visual Studio 2010
    Best Regards
    Zhengyu Guo
    TechNet Community Support

  • How to pass the internal table data to smartforms

    Hi Gurus,
    I have a problem in passing the internal table data to the smartforms. In the print program
    I get the data into one internal table "LT_PRDLBL1". I am passing this internal table to the other in print program by calling the FM_NAME.
    CALL FUNCTION fm_name
      EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
        CONTROL_PARAMETERS         = T_SSFCTRLOP
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
        OUTPUT_OPTIONS             = T_SSFCOMPOP
        USER_SETTINGS              = ' '
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            =
      JOB_OUTPUT_OPTIONS         =
      TABLES
        LT_PRDLBL                 = LT_PRDLBL1
    EXCEPTIONS
       FORMATTING_ERROR           = 1
       INTERNAL_ERROR             = 2
       SEND_ERROR                 = 3
       USER_CANCELED              = 4
       OTHERS                     = 5
    In the print program I had defined the internal tables like
    Data: lt_prdlbl  type standard table of zprdlbl.
    Data: Begin of lt_prdlbl1 occurs 0.
            include structure zprdlbl.
    Data: End of lt_prdlbl1.
    How do I define the internal table in the smartform to get the values printed in the smartform?.
    <REMOVED BY MODERATOR>
    Thanks,
    Edited by: Alvaro Tejada Galindo on Apr 21, 2008 1:01 PM

    Nehal,
    Thanks for quick response.
    In the smartform under the Form Interface->Tables tab
    I had defined
    LT_PRDLBL LIKE ZPRDLBL. If I define TYPE instead of LIKE I get the error message saying "FLAT TYPES may only be referenced using LIKE for table parameters".
    In the main window I have created LOOP, in which I have ticked the internal table and
    LT_PRDLBL INTO LT_PRDLBL. In the text node I am passing the values of this internal table
    &LT_PRDLBL-XXXX&.
    I am able to get the print but the data is not printing.
    Please help me with this.
    Thanks,

  • How to create 2 tables data in smartforms

    Hi
      I am new to smartform. I have minimum knowledge in smartform.
    here I have 2 tables. I want to display 2 tables data. How to create a smartform using these two tables? I know create a smart form using one table.
    Please tell me
    Thanks

    Ok you are passing fields from two different tables i believe
    1)For that jus give internal tables name as i said in your form interface->tables
    2)And in global data please mention your both tables work area
    3)Now in main window create table and ther in data give any 1 of the internal table name into WA
    4)Create loop for that right click->flowlogic->loop here mention your second table and its respective WA.
    5)Under this loop create table line->row->cells.
    6)Now mention your fields in respective cells as per your req
    This fields can be from any of your two internal tables.
    Swetha

  • Printing Smartform with Table data from PrintProgram

    Hi,
      Can any one explain the steps involved in printing the Smartform with the data from the Print Program table. How to fit table in the Smartform i.e, while designing the Smartforms layout for the table.
    Thanks & Regards

    Hi,
       As  data is coming from the print program in the table. Do the following procedure
    1. In the form interface ---> Declare the internal table as same structure as in the print program. for ex: you r passing MARA table data then declare it as itab type table of mara.
    2. In the window you want to create the table, right click > create> table.
    3. Go to data tab give the internal table name and work area .
    4. Now go to General tab-->Details.
    5. Declare the line types.
    6. Right click on header/main area/footer -->create table line.
    7. Now give the line type which you want to use.
    8. In the displayed columns>right click> create text node.
    9. In the text node &mara-matnr&.
    Procedure to create line type:
    1. Double click on table
    2. Go to table tab --> details
    3. Give the table width (width you want to display on the screen should be less than or equal to the window width).
    4. Line type --> Divide this into no of column you want to have in header/item.
    Note: total length of all columns should be equal to the table width.
    5.save.
    Br,
    Laxmi

  • Smartform internal table data is not comming

    hi gurus,
    i have an internal table data which i have to display on smartform .In debugging i have seen that the internal table is having data and in 'data' tab of table i have given internal table also.
    but data is not displayed on smartform.
    can any body give sugession for this.
    thanks in advance,
    padmaja.

    hi,
    In order to display quantity u can either convert the values to character fields or
    follow these steps.
    Create a global variable in the global data section of sf.
    then in the Currency/Quantity section of the same tab
    assign a reference field (this reference field will be from ur interface).
    Ex: g_quantity type menge (the global data  part)
          g_quantity itab-(the quantity field which u want to display) .
    Finally within your loop just before displaying this quantity field, assign the value to the declared variable.
    Loop at itab into wa_itab.
    g_quantity = wa_itab--(the quantity field which u want to display).
    Endloop.
    Regards,
    Rishikesh

  • How to save internal table data to file on local disk from smartforms?

    Hi there,
    I'm trying to save internal table data into .csv file on presentation server from within smartforms using GUI_DOWNLOAD function.
    This function works fine from abap program, but when I call it from smartforms it does nothing. Form prints ok and there is no file created on local dick.
    Is there a way to save smartforms internal table data to local disk?
    Thanks in advance,
    Baske

    Hi Jey,
    Thanks for your prompt replay.
    Unfortunately, Iu2019ve tried both your suggestions without success. Smartforms behaves just like in case of GUI_DOWNLOAD. There is no file saved on disk.
    Do you have any other idea?
    BR,
    Baske

  • How to add the rows formatted as table headings, Tables headings are repeated when a table spans more than one page.

    Hi all,
    i am facing problem while generating Test Result word document after successful execution of TestStand.
    The Problem is :
    i want to add rows Formatted as table headings, table headings are repeated when a table spans more than one page(marked as Red).
    Example:
    Page  No. 1
    |     Test case Number  |  Test Step number      |
    |      100                         |            100                   |
    Page  No. 2
    |     Test case Number  |  Test Step number      |
    |      200                         |            300                   |
    Test Result word document should generate with Table headings(marked as Red) in every pages of the document, but i am not getting as per above example.
    Please through light on this.
    Regards,
    Susa.

    Hi Santiago,
    Thank you very much for your valuable reply.
    i want to generate MS-word report for TestStand after successful testing using MS-word2000.
    Test report contains Actual values, Expected values and Pass/Fail status.
    In my program i have customized all  fields i can able to generate test report which contains Verification engineer name , test mode, test date, start time, end time Actual values, Expected values and Pass/Fail status.etc....
    To put all values of test case number, Test step number, Actual values, Expected values and Pass/Fail status in to table for each time, i will
    insert a row into table every time values arrives, once the table exceedes its page size it moves to the next page, next page should start with table row header  but it start with  values of above said parameters.
    so i'm not able to repeat table row header for each page.
    Please find the attached file for your reference.
    Attched file expected.doc  :   This file contains what i wanted to generate MS-word report. Here table row header "Test Case Number and Test Step Number " is repeated in second page.
    Attached file Actual output from source code.doc   :  This report generated from the source code. Here table row header "Test Case Number and Test Step Number" is not repeated in second page.
    Do you know any property to set "repeat as header row at the top of each page" using MS-word ActiveX in CVI/Labwindows.
    i think this information is sufficient for you,
    Still if you need some information please ask me.
    Thanks
    Susa.
    Attachments:
    Actual output from source code.doc ‏25 KB
    expected.doc ‏26 KB

  • PDF File from an internal table data

    I have an internal table ready for grid display of a report. But according to the new requirement, it shouldn't create a Spool request as it is affecting the performance of the system (because its a huge file with 3000+ pages).
    So, now we want to create a (non-editable) PDF File and store it in an application server.
    From the forum, i see that i have only one option, which is to Convert internal table data to OTF Format and then to PDF.
    Right now i am using  PRINT_TEXT to convert to OTF file and FM CONVERT_OTF for PDF file.
    The challenges i am facing right now is..
    1. After getting the OTF file from PRINT_TEXT, i couldn't get the correct PDF File. It shows random characters instead..
    2. My internal table has 103 columns. So how should i accommodate data from all these columns into a single row on a PDF?
    3. I couldn't create a table kind of view/display in PDF
    Please help/advice me on the above issue.
    Thanks,
    Sarada

    Hi,
    103 columns need to be seen in at least 7 pages or more. Cant display in just 1 page.
    I guess that better to create a smartforms and pass all the information from the table to the smartforms.
    There you can create multipages.
    Probably, that huge table need to separete it in 7 tables, so each page will get the information from one table...
    i will try to do sth like that.
    Regards
    Miguel

  • Copy and Paste does not work in filter statement of table data

    I am using SQL Developer 3.0.04. I can not copy nor paste in the filter criteria when watching or editing table data. Is it a bug or do I have to change some settings?

    Hi Sven,
    I did a bit more research and now I hope we will be talking about the same thing. Bear with me and let me clarify. In terms of my prior comment about the process necessary to copy a value from a data cell into the clipboard, I was totally off-base. Once the focus is on a data cell, all one need do is Edit menu|Copy or ctrl-c. I have no idea why I had trouble with that yesterday.
    Anyway, getting back to what's relevant with regard to your issue:
    1) If something is in the clipboard, then both Edit menu|Paste and ctrl-v work for a data cell target.
    2) If something is in the clipboard, then Edit menu|Paste fails for a data tab filter target.
    3) If something is in the clipboard, then ctrl-v works for a data tab filter target.
    So obviously conditions exist where pasting to the data tab filter can work. But here is a scenario where I found a problem similar to what you describe:
    1) For the EMP table in SCOTT, display all employees in the data tab.
    2) Apply a filter. For example, filter on JOB='SALESMAN'. Now 4 salesman, all in dept 30, are displayed.
    3) Next you decide to view only employees in dept 30.
    4) Copy the value 30 from the DEPTNO column. Carelessly put the focus on ENAME column in one of the data tab rows.
    5) Next focus on data tab filter to blank out JOB='SALESMAN' predicate. Drop down to select DEPTNO. Append an = sign.
    6) Finally Edit menu|Paste. Instead of seeing DEPTNO=30 in the filter, we see...
    7) The filter contains nothing and is disabled (greyed out).
    8) The ENAME column of the prior focus now contains the value 30 rather than the a salesman's name.
    Your case may be different/more complex, but at least this simple case demonstrates in a repeatable fashion what I noticed but didn't describe very well yesterday. I have logged the following internal bug:
    Bug 12753266 - EDIT MENU PASTE INTO DATA TAB FILTER DOES NOT WORK AND MAY DISABLE THE FILTER
    Using the rollback button, blanking out any filter value and hitting enter displays all original employee rows.
    Regards,
    Gary

  • Prinitng smartform tables in full sheet

    Dear All Gurus,
    This is my request. I need to print a customized smartform (ex :GRN) according to below.
    Format of Smartform(1 page Smartform) :
    Header Windows (Adress / LOGO)
    Table Data
    Footer window (signatuees / agreement texts)
    (If the smartform prints 3 sheets (due to a lot of rows in the table) -
    1st sheet should show the header windows & table
    2nd sheet will carry out printing rest of the table data without priniting Header window (The total page space should be taken by table)
    3rd sheet will print the last rows of table & footer windows )
    I have designed the smartform & prints pages as above. But I cant figure out the way to expand the size of the table in the 2nd page to print it in full page.
    Plz Help
    Thanks'

    HI,
    Thank you for the reply..
    Kindly note that this smartform is 01 page smartform. (I have designed everything in single page.)
    Header Windows (Adress / LOGO)
    Main window (Table Data )
    Bottom window (signatuees / agreement )
    What happens here is if the table has 5 rows of Data, it is printed perfectly in a single A4 sheet according to my requirement because space is enough to print everything.
    But if there are 500 rows of Data in the table, what needs to be done is from 2nd  A4 sheet onwards  the table should acquire the total space of the sheet (including space given to LOGO, Address windows & bottom windows) until the loop ends.
    How do I get the total space because the table doesnt expand the size in main window of the smartform.
    Can we get that by expanding main window in 2nd page as you said?
    Thanks

  • Dynamic color in cell of an SmartForm Table

    Hi Experts,
    How can i assign a color for a text in a cell (shading) in a smartform table?? Color depends of the data in smartform.
    Thanx

    I don't think we can do it dynamically.
    So, may be you have to create as many texts as you have colors conditions and assign relevent condition to each text.
    Regards,
    Naimesh Patel

  • Can we include a table data inbetween a paragraph using a text module

    can we include a table data inbetween a paragraph using a text module or standard text.
    For eg:
    This is the output for purchase order &itab-ebeln& and this purchase order &itab-ebeln& has been released.
    I want the purchase order number to be placed inbetween these line as shown above. Can anyone help me on how to do this.
    Regards,
    Rose.
    Edited by: camila phyrose on Feb 18, 2008 11:11 AM

    Hi,
    You can do this in the Text module by adding the fields with the 'Insert field' icon (just as you would with a text element).  The Text module doesn't understand their content, but at runtime provided your smartform does this will work.
    Regards,
    Nick

  • Problem in Smartforms table printing

    Hi Friends
    I have a weird problem with printing the smartforms table.
    The problem is as follows.
    Suppose there are 10 rows (entries/records) in the table and the page can accomodate only first 5 rows, it automatically overflows into the next page. Now typically the table should print the next 5 entries. But, instead, only the 6th row is printed and the rest 4 rows are not printed.
    Please advice.
    Thanks
    sam.

    This is due to some technical reason in the ABAP. If you are passing the sorted table, you have to declare it as already sorted.
    please read this
    If in the form interface a tables was passed that was sorted before by the application, and it is now processed in the loop of a data node, you must again list the sort fields explicitly and, in addition, mark the checkbox "already sorted".
    Due to technical reasons in ABAP, it is not possible to automtically pass the sort fields.

Maybe you are looking for