Only one line is getting printed in Table in Smartforms (ECC 6.0)

Hello Sir,
I am new in ABAP and doing Smartforms (ECC 6.0) on project from customer side.
I have to deliver the object in time and it is already late, please help me.
This is my question:
Object :  Stock Transport Order.
=======================
I have created Table in main window after Program Line Node.
>Main Window
>>Code2
>>Table1
>>>Header
>>>>Row1
>>>>>Cell1 to Cell10
>>>Main Area
>>>>Row2
>>>>>Cell1 to Cell10
>>>Footer
>>>>Row3
>>>>>Cell1 to Cell10
I have mentioned internal tabel as well work area table in "DATA" tab in table Node.
In Row1 I have created Text Node in every cell having Column Heading.
In Row2 I have created Text Node in every cell having variable.
In Row3 all cells are blank.
On output only one line is getting printed
What could be the reason.
=====================================================================
This is Code1 (is in the beginning of the form in window1)
==========
*& Selection of Purchasing Document No,Plant,Short Text,Quantity,Material No,
*& Gross order value in PO currency
select single ebeln werks txz01 menge matnr brtwr
from ekpo into
(v_ebeln,v_werks,v_txz01,v_menge,v_matnr,v_brtwr)
where ebeln = DOCNO.
*& Selection of Plant address
select single adrnr from t001w into v_adrnr
where werks = v_werks.
*& For Selection of phone,fax
select single name1 tel_number fax_number from adrc into (v_name1,phone,fax)
where addrnumber = v_adrnr.
*& For E-Mail Selection
select single SMTP_ADDR from adr6 into mail where addrnumber = v_adrnr.
*& For CST No.,GST No.
select single J_1ICSTNO J_1ILSTNO
              from J_1IMOCOMP into (CST,GST)
              where werks = v_werks.
*& Selection of Vendor Address No., PO date
select single reswk aedat from ekko into (v_reswk,v_aedat) where
ebeln = v_ebeln.
*& Selection of Supplying (Issuing) Plant address
select single adrnr from t001w into vendor
where werks = v_reswk.
*& Selection of storage location
select single lgort from ekpo into v_lgort where werks = v_werks
and ebeln = v_ebeln.
*& Selection of description of storage location
select single lgobe from t001l into v_lgobe where werks = v_werks.
*& Fetching data into internal table from ekpo
select ebeln ebelp matnr txz01 menge brtwr from ekpo into corresponding fields
of table iekpo where ebeln = v_ebeln and werks = v_werks.
Fetching data into internal table from marm for Pck
select * from marm into corresponding fields of table imarm for all entries
in iekpo where matnr = iekpo-matnr.
Fetching data into internal table from mara for Pack Type Code
select * from mara into corresponding fields of table imara for all entries
in iekpo where matnr = iekpo-matnr.
Fetching data into internal table from tvegrt for Pack Type Description
select * from tvegrt into corresponding fields of table itvegrt
for all entries in imara where magrv = imara-magrv.
Fetching data into internal table from eket for Receipt Date
select * from eket into corresponding fields of table ieket
where ebeln = v_ebeln.
Selection of Order Type from mepo_topline
*select single bsart from mepo_topline into v_bsart where ebeln = v_ebeln
*and superfield = v_werks.
*if v_bsart = 'UB'.
xhead = 'Replenishment Order'.
*eleseif v_bsart = 'ZSTO'.
xhead = 'Purchase Order'.
*endif.
*& Defining of variable for Printing Line Serial Number,Total Quantity,
*& Total Value
=====================================================================
This is Code2 (is in the main window)
==========
xln = 0.
tmenge = 0.
tvalue = 0.
Loop for printing table
loop at iekpo into wekpo.
  xln = xln + 1.
  xmatnr = wekpo-matnr.      " Material Number (Code)
  xtxz01 = wekpo-txz01.      " Material Name
  xmenge = wekpo-menge.      " Line Quantiy
  xbrtwr = wekpo-brtwr.      " Basic Rate
*& Pck
  read table imarm into wmarm with key matnr = wekpo-matnr.
  xpck = wmarm-umren.        " Packing Size
*& Num
  xnum = xmenge / xpck.      " Numbers of Packing
*& Line Value
  xvalue = xmenge * xbrtwr.  " Line Basic Value
*& Packing Type
  read table imara into wmara with key matnr = wekpo-matnr.
  xpacktype = wmara-magrv.   " Packing Type Code
*& Packing Type Description
read table itvegrt into wtvegrt with key magrv = imara-magrv.
xpackdesc = wtvegrt-bezei. " Packing Type Description
*& Receipt Date
  read table ieket into weket with key ebeln = v_ebeln.
  xrcpdt = weket-eindt.      " Receipt Date
*& Report Total
  tmenge = tmenge + xmenge.
  tvalue = tvalue + xvalue.
*& Serial No. increment
endloop.
=====================================================================
Thanks and Regards,
Yogesh Pathak

Did you debug and check the umber of values in internal table before calling the TABLE Node....
seeing all SELECT SINGLE along with WHERE = condition and no loop call on them, my assumption  is there will be on record only. Check in Debug mood. Search forum to find how to debug a smartform.

Similar Messages

  • How to get only one line between tables in database diagram?

    Hi!
    I'm using jdev 10.1.3. I've got a database schema with a lot of tables. I would like to have them in one database diagram in compact view with only ONE line between two tables even if there are more foreign key columns between the two tables. In the shema there are a lot of foreign keys with multiple columns and the diagram is hard to read.
    How to archieve this?
    Thanks,
    Carsten.

    hi,
    u should use the same variable across all your queries.In the WAD there is a propoerty "display same variable once". Check that.
    hope it helps,
    regards,
    Parth

  • Multiple line item in billing but only one line item in accounting document

    Hi Everyone,
    I am having one scenario in which sales order has more than one line item. Only one billing document is create for all line items in Sales Order but billing document contains as many items as sales order has. In accounting document of billing i find only one customer line which has total amount of all line items in billing as debited. My requirement is Accounting document also should have as many line of customer-debit as in billing items i.e sales order. For example :
    (1) Sales order has 2 line items.
    (2) Billing document is only ONE and has 2 line items
    (3) currently accounting document has only ONE line of Customet - Debit ( Total amount of both items)
    My requirement is
    Accounting document should have 2 line item of customer - Debit
    Customer - Debit (amount of first line item)
    Customer - Debit (amount of Second line item)
    Sales - Credit
    How can it be done ?
    Regards,
    Manish

    Hi,
    This is the SAP expected behaviour
    As far as the values correspond to same account key and same GL account as per account determination, then ti will be posted as a single line item in FI document.
    If you want the customer specific items to be posted in two GL accounts , then you have to do the account determination that way.
    For example, you should have a condition table in FICO as follows.
    Sales org/ Account key / Customer
    For this condition table, the entries shoudl be as follows.
    5110/ERS/Customer A  GL ACCOUNT IS 5000100
    5110/ERS/Customer B GL ACCOUNT IS  5000200
    In this case, there will be 2 entries for the invoice instead of just one line entry.

  • Ever since I updated the operating system, itune doesn't play music on iphone 4. if it plays, it plays only one song and gets stuck.

    Ever since I updated the operating system, itune doesn't play music on iphone 4. If it plays, it plays only one song and gets stuck. I've tried to reconnect to the computer to see whethere there has been missing portion during the upgrade... but not really. does anyone have the same issue?

    What does "gets stuck" mean?
    It repeats?
    It stops playing?
    Have you tried the basics from the manual?  Restart.  Reset.  Restore.

  • I am unable to print "ALL Pages" using the Adobe Print plugin in Firefox, only the first page gets printes. however IE works perfectly fine.Please advise. Is it some way that firefox identifies the complete web page..? PLease help

    I am unable to print "ALL Pages" using the Adobe Print plugin in Firefox, only the first page gets printes. however IE works perfectly fine.Please advise. Is it some way that firefox identifies the complete web page..? PLease help

    Does the entire webpage appear in Print Preview? <br />
    File > Print Preview

  • Write To Measurement File Only One Line Of Data

    Hello,
    I have an express VI setup to acquire a single channel of strain running in a simple while loop.  The output is wired directly to a Write To Measurement Express VI.  However, the resulting measurement file contains only one line of data.  
    I have tried changing the settings of the VI to no avail.  I feel that I must be missing something basic.  My while loop is setup to take one measurement on demand for each loop.  I am assuming the VI knows to write each loop as a new line of data?  
    Thanks for any help,

    Did you choose "append to file" in the Express VI configuration settings?
    You need to upload your VI for further help.  It's impossible to help someone debug a problem without the code to look at.

  • Printing only one line record with total of all items through alv

    hi experts,
    i am facing a problem while printing a list through alv.
    requirement is, suppose i have 3 line items under one document no.
    i have to print only one record with total amount of all items.more clearly...
    1001  10  1000/-
    1001  20    234/-
    1001  30   540/- these records in internal table then i am passing it to reuse_alv_grid_display.
    i need to display only 1001  1774/-(means sum of all the items)
    please tell me how to do this.
    thanks in advance,
    manasi

    hi ansari,
    contains in itab
         3000000004     02.11.2000     5550     27.95     27.95     0
         3000000004     02.11.2000     5550     10.95     10.95     0
         3000000005     02.11.2000     5550     27.95     27.95     0
         3000000005     02.11.2000     5550     10.95     10.95     0
         3000000006     02.11.2000     3020     52.99     52.99     0
         3000000006     02.11.2000     3020     64.99     64.99     0
         3000000006     02.11.2000     3020     49.5     49.5     0
         3000000007     02.11.2000     3730     2,228.00     2,228.00     0
         3000000007     02.11.2000     3730     1,698.00     1,698.00     0
         3000000007     02.11.2000     3730     532     532     0
    now please tell me how to print the data
    output will be
    3000000004     02.11.2000     5550     38.90     38.90       0
    3000000005     02.11.2000     5550     38.90     38.90       0
    3000000006     02.11.2000     3020     117.19     117.19     0
    like that
    please help me out
    manasi

  • Fillable pdf's returned by clients are readable only one line at a time

    We have been emailing fillable pdf questionnaires to our customers for them to complete and return via email.  When some of them have come
    back, they are only viewable one line at a time, we need to highlight the fillable field that the customer completed so we can view their answer.
    Does anyone know why this occurs and why it would be isolated to a few cases?  Thanks!
    George

    They were probably filled-in and saved with the Preview application on the Mac. For more information and some approaches you can take to correct, see: http://kb2.adobe.com/community/publishing/885/cpsid_88564.html

  • In htmldatatable only one row is getting added... why??

    Hello everyone,
    I'm designing a htmldatatable. In that I'm putting 3 columns and 3 rows. But only first row is getting added not the other 2. Why is this happening??
    Here is my code....
    private HtmlDataTable table = (HtmlDataTable)app.createComponent(HtmlDataTable.COMPONENTTYPE);
         _table.setValue("table");
         _table.setVar("table");
    _table.setBorder(1);
         _table.setRows(3);
         int columns = 3;
    // Set columns.
    for (int i = 0; i < columns; i++) {
    // Set header (optional).
    UIOutput header = (UIOutput)app.createComponent(HtmlOutputText.COMPONENT_TYPE);
    header.setValue(headers);
    // Set column.
    UIColumn column = new UIColumn();
    column.setHeader(header);
    ValueBinding myItem = FacesContext.getCurrentInstance().getApplication().createValueBinding("#{textBean.myList["+0+"]["+i+"]}");
    UIOutput output = new UIOutput();
    output.setValueBinding("value",myItem);
    column.getChildren().add(output);
    column.setId("col" + i);
    // Add column.
    _table.getChildren().add(column);
         getChildren().add(_table);
         setStyleClass( DEFAULT_STYLE_CLASS );
    This is the bean through which data is coming...
    textBean>>>
    public List getMyList() {
              String[] row1 = {"ID1", "Name1", "Value1"};
    String[] row2 = {"ID2", "Name2", "Value2"};
    String[] row3 = {"ID3", "Name3", "Value3"};
    myList.add(Arrays.asList(row1));
    myList.add(Arrays.asList(row2));
    myList.add(Arrays.asList(row3));
              return myList;
         public void setMyList(List myList) {
              this.myList = myList;
    Thanks...

    I have tried this also....
    UIOutput text =     (UIOutput)app.createComponent(HtmlOutputText.COMPONENT_TYPE);
    ValueBinding valueBinding = app.createValueBinding("#{textBean.myList["+0+"]["+i+"]}");
    text.setValueBinding("value", valueBinding);
    column.getChildren().add(text);
    UIOutput text1 =     (UIOutput)app.createComponent(HtmlOutputText.COMPONENT_TYPE);
    ValueBinding valueBinding1 = app.createValueBinding("#{textBean.myList["+1+"]["+i+"]}");
    text1.setValueBinding("value", valueBinding1);
    column.getChildren().add(text1);
    UIOutput text2 =     (UIOutput)app.createComponent(HtmlOutputText.COMPONENT_TYPE);
    ValueBinding valueBinding2 = app.createValueBinding("#{textBean.myList["+2+"]["+i+"]}");
    text2.setValueBinding("value", valueBinding2);
    column.getChildren().add(text2);
    _table.getChildren().add(column);
    Instead of----
    ValueBinding myItem = FacesContext.getCurrentInstance().getApplication().createValueBinding("#{textBean.myList["+0+"]["+i+"]}");
    UIOutput output = new UIOutput();
    output.setValueBinding("value",myItem);
    column.getChildren().add(output);
    But not working.... :(

  • Is it possible to have only one line per item in InfoView document list?

    Hi,
    my customer is complaining about InfoView (Document list) wasting too much screen estate. For each list item (report, folder etc.) InfoView displays two lines, one for the name and one for the description. Is it possible to configure InfoView to display one line only, leaving out the description?
    Regards
    Joern

    Hi Joern,
    You can set the user preferences  to not display the description in the section: Document List Display
    Regards,
    Julian

  • How can only one Checkbox can be Selected in Table with Boolean CheckBoxes?

    I have an editable ADF table where one of the attributes is a Boolean Checkbox... and stores the value with Y or N.
    Is there any way where only one checkbox should be selected at the time of commit ?
    For example, in case its an Answers Table to a Single Choice Question of a Questionnaire application, while adding new answers to the table..., the user inserts 3 rows (answers)... then the boolean checkbox for only one of those 3 rows can be checked.
    Thanks
    DJ

    Thanks... I tried it by writing some code ... But it doesn't seem to work. Can you please have a look... and make the changes.
    public class checkBean {
    public void validateCheck(LaunchEvent launchEvent){
    BindingContext bctx1 = BindingContext.getCurrent();
    DCDataControl dc1 = bctx1.findDataControl("QuestionnaireAMDataControl");
    ApplicationModule service1 = (ApplicationModule)dc1.getDataProvider();
    ApplicationModule am1 = service1.findApplicationModule("QuestionnaireAM");
    ViewObject vo1 = am1.findViewObject("QuestionVO");
    String newValue = (String)vo1.getCurrentRow().getAttribute("QuestionTypeId");
    if(newValue.equals("10881")){
    System.out.println("Inside single");
    BindingContext bctx = BindingContext.getCurrent();
    DCDataControl dc = bctx.findDataControl("QuestionnaireAMDataControl");
    ApplicationModule service = (ApplicationModule)dc.getDataProvider();
    ApplicationModule am = service.findApplicationModule("QuestionnaireAM");
    ViewObject vo = am.findViewObject("QuestionResponseVO");
    int numRows;
    int j=0;
    numRows = vo.getRowCount();
    String rowValue = "a";
    int k = vo.getCurrentRowIndex();
    for (int i=0; i<numRows; i++){                   
    rowValue = (String)vo.getCurrentRow().getAttribute("CorrectResponseFlag");
    if(rowValue.equals("Y")){                           
    j++;
    if(j>1)
    System.out.println("same rows exist");
    FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_ERROR, null, "Two correct respones!");
    FacesContext.getCurrentInstance().addMessage(null, msg);
    k++;
    vo.next();
    Thanks
    DJ

  • Leaving one line space before starting the text in smartforms

    Hi,
    I want to leave one line space before starting a text.
    i LEFT one line space on the text node but it's not working.
    eg: i need to print "Header text". Before printing this i need one line space. Created a blank node for space still not working. Can anyone help me on this.
    Thanks,
    Rose.

    Hi Rose,
                Enter a Line Feed in the Smartform Editor.
    in the editor type as ,
      "Header text"
    where / is Line feed and * is a Default Paragraph Format.
    Regards,
    Balakumar.G.

  • I need to print in only one line

    I don't know how i can print in the same line.
    I use the System.out.println() and the System.out.print(), but now i need print a line in the same position.
    thanks

    You mean you want to overwrite the existing line ? Presumably not leaving any of the text previously printed ?
    That's specific to the platform, and as such, Java doesn't directly support it. You want a curses library. Something like this will probably do:
    http://sourceforge.net/projects/javacurses/
    Alternatively, if you don't care if your code is portable and you know the details of the console in which the output will appear, you can insert control codes directly into your output. In point of fact, that will be adequate for quite a lot of platforms, since most common systems use a subset of the ANSI/VT100 control codes - which can be found here: http://www.fh-jena.de/~gmueller/Kurs_halle/esc_vt100.html
    Dave.

  • Upload read dataset only one line

    hi all
    i have a problem, i want to upload a file from applikation server. When i want to read dataset into a xstring field,
    it read only the first line not all why?
    here is my code
    type-pools dset.
    data lf_filename type string value '/opt/interface/indtrans/d58_sst/integrale/output/PLU.plu'.
    data lf_line type xstring.
    data lf_str_line type string.
    data lf_hex_code type swxmlcont.
    data lt_attr type dset_attributes.
    start-of-selection.
      open dataset lf_filename for input in binary mode.
      do.
        read dataset lf_filename into lf_line.
        if sy-subrc <> 0.
          exit.
        else.
    *      get dataset lf_filename attributes lt_attr.
          append lf_line to lf_hex_code.
        endif.
      enddo.
      close dataset lf_filename.
    thx abap_begin....

    that to be functional, but when i read with the file with cl_gui_frontend_services=>gui_upload with file Typ "BIN"
    CALL METHOD cl_gui_frontend_services=>gui_upload
         EXPORTING
           FILENAME                = l_filename
           FILETYPE                = 'BIN'
    *      HAS_FIELD_SEPARATOR     = SPACE
    *      HEADER_LENGTH           = 0
         IMPORTING
           FILELENGTH              = l_size
    *      HEADER                  =
         CHANGING
           data_tab                = lt_data
         EXCEPTIONS
           FILE_OPEN_ERROR         = c_not_found
           FILE_READ_ERROR         = 3
           INVALID_TYPE            = 4
           NO_BATCH                = 5
           GUI_REFUSE_FILETRANSFER = 7
           others                  = 99.
    i becam a other result then, when i read with
    open dataset lf_filename for input in binary mode.
    why?
    Now i have a idea, i read the file value in text mode and save this in an internal table.
    Then make the loop over table, and convert the value in identical princple such as cl_gui_frontend_services=>gui_upload with the filetype "BIN".
    I dont' know, how you do this?
    thx abap_begin

  • Copy down - only one line (mac)  - why?

    I'm using the dynamic form wizard and when I'm trying to copy down a value for many posts I only get it on the next line, not on every one.
    I'm on a mac - for the first time. It's always worked on Win.
    Anyone know a recipe for it??

    I tested on Windows and it doesn't work there either.
    It's quite a long time since I used it, but then it was possible to copy down text fields on several rows. Now I seem to have to use menus.
    I wonder if it's something I've missed...

Maybe you are looking for

  • Need help: Debeating updating from 3GS to iPhone 4

    Hello, all. I'm sure I'm not the first to have asked for help on this but I am debating upgrading from my iPhone 3GS (1 yr old this month) to the iPhone 4. I checked and I am eligible for the early upgrade so the cost for the 16GB is not much of an i

  • Strange bug: Acrobat 9 deletes words upon conversion from Word doc

    Situation: converting from MS Word 2007 (SP2) to Acrobat 9 Standard (v 9.2.0) in WinXP. I've tried this repeatedly. The first word in multiple headings disappear when converted to PDF (they remain in the Word doc, but don't exist in the PDF that was

  • Subtitles causing "video bit rate too high" error

    At least I think they are. My media was all encoded through compressor and when the build gets to: - Preparing Subtitles... - Muxing VTS011.VOB the next message is red... - Video Bitrate Too High - Build cancelled - Formatting finished. me... weeping

  • PL/SQL Record/TABLE - Populate and Select

    Hello All, I've read through a lot of threads and can't seem to get any closer to understanding what I'm doing wrong. My scenario is that I need to run a a few sql staments and procedures on remote and all this from a python script. My limitations is

  • How to use OBJECT_SCHEMA_NAME(@@PROCID) and OBJECT_NAME(@@PROCID) as input parameter to SP

    I know I can use variable     declare @input varchar(256)     set @input =OBJECT_SCHEMA_NAME(@@PROCID)+'.'+OBJECT_NAME(@@PROCID)     exec dbo.LogData @input However, I am asked to find a solution which does not involve variable input  In other words,