FM to display table contents

Hi all,
        Is there any Fm that will display contents of transparent table. Right now i tried VIEW_MAINTENANCE_CALL but it is with tha maintemance menu I dont want that, i want to simply display table contents.
Regards
Nilesh

Hi
check the fun modules
CKML_F_GET_TABLECONTENTS
TRINT_DISPLAY_TABLE_CONTENTS
<b>Reward points for useful Answers</b>
Regards
Anji

Similar Messages

  • Display Table contents using HTMLB...Urgent Help Plz...

    Hello All,
    Im working on EP SP14 and SQL Server 2000.
    I have successfully established database connection.
    I want to know <b>how can I display Table contents using TableViewModel in HTMLB</b>.
    Please help.
    Its urgent.
    Awaiting Reply.
    Thanks in advance,
    Uday<b></b>

    See /thread/80270 [original link is broken]
    (please stop crossposting every question into two forums; thanks in advance)

  • DB Connect after BI 7 Upgrade - can extract but not display table contents

    Hi,
    After an upgrade from 3.1 non-unicode to BI 7 unicode on Windows OS, SQL Server 2005 DB, the DB Connect connection to another SQL Server 2005 database is still established and passes all checks. We are also able to load data from the datasources previously established. However if we right-click the source system -> additional functions -> Select Database Tables (3.x), list the tables/views, double-click a view known to contain data, click 'Display Table Contents' and nothing happens. We can run a load from the datasource connected to the same view.
    I have seen one unanswered post with the same issue. If anyone else has come across this problem and has some suggestions, it would be appreciated.
    Note we have checked the normal issues on the SQL user having created the views and don't believe this is an authorisation issue. There is no authorization issue posted in SU53.
    Support pack level is 16 on Basis and 18 on BW.
    Thank you,
    Ken

    Hi Ken,
    The problem has happened in the past because fields in the table/view had lower case letters. This is not allowed. Please check the following documentation:
    ->http://help.sap.com/saphelp_bw320/helpdata/en/58/            
      54f9c1562d104c9465dabd816f3f24/frameset.htm                  
      ->Modeling ->Source System ->Transferring Data with DB Connect
         ->Requests to Database Tables and Database Views          
            ->Naming conventions for fields         
    If the above is not the cause please check the note  512739 again to make sure everything is configured correctly:
    Please make sure in particular that the section III (d) of the note entitled 'Authorizations and visible objects' has been correctly
    followed.      
    Regards,
    Des.

  • Displaying Table Contents

    Hello
    I have to show the following table in a dashboard page with the rows as shown below. The content of the first column is the measure details and the second column is the actual value.
    row 1: Total Revenues for the current Year $12,150,000
    row 2: Total Expenses for the current Year $11,110,000
    row 3: Numbers of Employee in the Organization 35
    row 4: Attrition rate for the current year 3%
    How can I show this given that
    1. Each row is obtained from a different set of fact and dimension tables
    2. Each value in the second column (i.e. measure) must point to a unique url. Here when the user clicks on $12,150,000 , it must take the user to one url and on clicking $11,110,000 it must take him to a different url.
    Any suggestions are apprectiated.
    Thanks in advance

    Create a report which contains at least the 4 columns you need. (fi c1,c2,c3,c4)
    Create a narrative view:
    Total Revenues for the current Year <.a href="url">@1<./a>[br]
    Total Expenses for the current Year <.a href="url">@2<./a>[br]
    Numbers of Employee in the Organization <.a href="url">@3<./a>[br]
    Attrition rate for the current year <.a href="url">@4<./a>[br]
    Replace the <. with <
    Regards John
    http://obiee101.blogspot.com/
    Edited by: John Minkjan on Jan 15, 2009 10:59 PM

  • Problem in page overflow with table contents having control level

    Hello members,
    My scenario is to display table contents from (Master Page)MP1 and then overflow to MP2 and use the MP2 for the rest of the overflowed pages too. In the form context, the table has control level grouping on a field(F1), which is set in context, because of which we can sub total for the group of records based on field F1.
    Take the scenario that the content area(CA1) of MP1 fits only 10 records and content area(CA2) of MP2 fits only 20 records.
    Test scenario 1:
    If the table contents have records upto 20, then MP1 gets filled with first 10 records and then MP2 with rest of the 10 records. This scenario works fine.
    Test scenario 2:
    If the table contents have records upto 5, then only MP1  with current 5 records gets filled. This scenario also works fine.
    Test scenario 3:( ISSUE BEING FACED)
    If the table contents have records upto 50,(which are more than the combined number of rows of MP1 and MP2) then no data is displayed on MP1 and data starts filling in next MP2 and only approx 22 records are visible where few even cross the content area of the MP2. And no over flow for the rest of the records happen.
    We use SFP Transaction in SAP to modify the layouts of the forms. Please let us know if the table having group set by control level causes any issue in this scenarion Test scenario 3.
    Thanks
    Vivek
    [email protected]

    Hi,
    master pages don't support page breaks. Those pages are only used for the background things of body pages like page numbers, company logs or letter head layouts.
    Don't use repeating objects on masterpages that may overflow its content area, this will always end up with unexpected results.
    Put all those objects on a regular page (body page) which allows page breaks.

  • Displaying the contents of internal table- in email Step of workflows

    Hello Folks,
    I wanted to display the contents of an internal table ( would contain a list of opportunites ), in an email sent throught the workflow:
    My idea was to LOOP AT <ITAB> into <WA> from an external program and then call the workflow for each content of the <WA>. This will be a problem as, if there are like 1000 records in the internal table, then workflows will be called 1000 times...sending 1000 emails..
    My requirement is that we need to send a single email to the single person, displaying the content of the internal table in the email body......
    My question
    1) Is this scenario possible through worflows ?
    2) If not, please provide an alternative ..
    Thanks
    Anand

    Do you mean to say that just by inserting the multiline element
    within the body of the 'Send email' step type, the contents
    of the multiline element is displayed automatically without
    we having to loop at it somehow ?
    Follow the below apporach,
    1. First create a multiline container element in the workflow conatiner.
    2. Populate the internla table , by using the bor methods and pass back the populated ITAB to the WF by using the binding concept.
    3. Now create a mail step in the workflow, you have the option of inserting the workflow container elements into the mail conten, so insert the multiline container element , then it prompts to select the option like a) Do you liek to display only first line b) Display the ITAB line by line c) Display ITAB lines continuously with out line break.
    4. based upon the requirement select any one of the options.
    Note: Make sure the line length of the ITAB won't excced 132 charecters, because the send mail step will consider only 132 characters.

  • How to display the contents of a 2D array which is bound to a data table

    Hi ,
    I have a backing bean which returns me a 2D array of Strings . Now I have bound this to a data table .
    Something like this
    <h:dataTable styleClass="dataTable" id="dstable" var="dbArray" value="#{pc_MyApp.dbProperties}">
    Now when I say dbArray[i] it will give me the ith column of the current row. I want to display these dbArray[i] contents in a proper table format.
    What I am doing at present is something like this
    <h:dataTable styleClass="dataTable" id="dstable" var="dbArray" value="#{pc_MyApp.dbProperties}">
    <h:column id=id1>
    <h:facet name="header">
    <h:outputText value="Heading"/>
    </h:facet>
    <h:outputText id="text1" value="#{dbArray[0]}" ></h:outputText>
    <h:outputText id="text1" value="#{dbArray[1]}" ></h:outputText>
    <h:outputText id="text1" value="#{dbArray[2]}" ></h:outputText>
    </h:column>
    </h:dataTable>
    This is able to display the contents of 2D array on the screen, but everything for the current row comes in just a single column...I want each column value to be in diff column and it should look like a table.
    Can anyone please guide me in this respect..
    Thanks
    Mahajan

    Does doArray always have at most three elements?
    If so, you can specify three <h:column>s each displays doArray.

  • Problem in displaying internal table contents to excel(color)

    Hello Gurus!!!!!
    The code is given below :-
    *& Module pool       ZDEMO_DOWNLD1
    PROGRAM  ZDEMO_DOWNLD1.
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE USER_COMMAND_0100 INPUT.
    DATA : f_name(120) type c,
           f_name1(120) type c.
    case sy-ucomm.
    when 'ATTACH'.
    CALL FUNCTION 'WS_FILENAME_GET'
    EXPORTING
       DEF_FILENAME           = ' '
      DEF_PATH               = ' '
      MASK                   = ' '
      MODE                   = ' '
      TITLE                  = ' '
    IMPORTING
       FILENAME               = f_name
      RC                     =
    EXCEPTIONS
      INV_WINSYS             = 1
      NO_BATCH               = 2
      SELECTION_CANCEL       = 3
      SELECTION_ERROR        = 4
      OTHERS                 = 5
    *f_name = DEF_FILENAME.
    f_name1 = f_name.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endcase.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE STATUS_0100 OUTPUT.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
    type-pools ole2.
    data: h_excel type ole2_object, " Excel object
    h_mapl type ole2_object, " list of workbooks
    h_map type ole2_object, " workbook
    h_zl type ole2_object, " cell
    h_f type ole2_object, " font
    h_interior type ole2_object. " Color
    *tables: spfli.
    DATA: ls_emp TYPE zpm_emp_det,
           lt_emp TYPE zpm_emp_det OCCURS 0,
           l_projectname TYPE zpm_emp_item_det-project_name,
           l_projectname_last TYPE zpm_emp_item_det-project_name,
           l_empid TYPE zpm_emp_item_det-empid,
           l_empid_last TYPE zpm_emp_item_det-empid.
    DATA: l_projectname_key TYPE lvc_nkey,
          l_role_of_emp_key TYPE lvc_nkey,
          l_last_key TYPE lvc_nkey.
    DATA :  lt_project_main TYPE TABLE OF zsach_pm ,
            ls_project_main TYPE zsach_pm,
            lt_project TYPE zsach_pm OCCURS 0,
            ls_project TYPE zsach_pm.
    internal table for excel headings
    DATA : BEGIN OF lt_project_ex OCCURS 0,
             line(50) TYPE c,
           END OF lt_project_ex.
    DATA: lt_project1 TYPE zsach_pm OCCURS 0,
          ls_project1 TYPE zsach_pm.
    DATA :   lt_project_temp TYPE zsach_pm OCCURS 0 ,
             ls_project_temp TYPE zsach_pm.
    DATA: lt_project2 TYPE zsach_pm OCCURS 0,
          ls_project2 TYPE zsach_pm.
    TYPES: BEGIN OF st_username,
           username TYPE zuser_names-username,
           END OF st_username.
    DATA: it_tab TYPE TABLE OF st_username,
          wa_tab TYPE st_username.
    data : lt_project_excel like zsach_pm occurs 0 with header line.
    *DATA: f_name TYPE string.
    data h type i.
    table of flights
    data: it_spfli like spfli occurs 10 with header line.
    *& Event START-OF-SELECTION
        SELECT empid
               project_name
               role_of_emp
               competancy
               manager
               price_category
               rate_per_hour
               first_day_pro
               last_day_pro
               ckey
         FROM zpm_emp_item_det
         INTO CORRESPONDING FIELDS OF TABLE lt_project.
        LOOP AT lt_project INTO ls_project.
        ENDLOOP.
        SELECT projectid project_name client begin_date end_date
          FROM zpm_project_det
          INTO CORRESPONDING FIELDS OF TABLE lt_project_temp FOR ALL ENTRIES IN lt_project
          WHERE project_name = lt_project-project_name.
        LOOP AT lt_project_temp INTO ls_project_temp.
          MODIFY lt_project FROM ls_project_temp TRANSPORTING
            projectid project_name client begin_date end_date
            WHERE project_name = ls_project_temp-project_name.
        ENDLOOP.
        SELECT empid
               employee_name
               designation
               employee_type
               date_of_joining
        FROM zpm_emp_head_det
        INTO CORRESPONDING FIELDS OF TABLE lt_project1 FOR ALL ENTRIES IN lt_project
        WHERE empid = lt_project-empid.
        LOOP AT lt_project1 INTO ls_project1.
          MODIFY lt_project FROM ls_project1 TRANSPORTING
                empid
                employee_name
                designation
                employee_type
                date_of_joining
             WHERE empid = ls_project1-empid.
        ENDLOOP.
    tell user what is going on
    call function 'SAPGUI_PROGRESS_INDICATOR'
    exporting
    PERCENTAGE = 0
    text = text-007
    exceptions
    others = 1.
    start Excel
    create object h_excel 'EXCEL.APPLICATION'.
    perform err_hdl.
    set property of h_excel 'Visible' = 1.
    perform err_hdl.
    tell user what is going on
    call function 'SAPGUI_PROGRESS_INDICATOR'
    exporting
    PERCENTAGE = 0
    text = text-008
    exceptions
    others = 1.
    get list of workbooks, initially empty
    call method of h_excel 'Workbooks' = h_mapl.
    perform err_hdl.
    add a new workbook
    call method of h_mapl 'Add' = h_map.
    perform err_hdl.
    tell user what is going on
    call function 'SAPGUI_PROGRESS_INDICATOR'
    exporting
    PERCENTAGE = 0
    text = text-009
    exceptions
    others = 1.
    output column headings to active Excel sheet
    perform fill_cell using 1 1 1 'Project ID'(001).
    perform fill_cell using 1 2 1 'Emp ID'(002).
    perform fill_cell using 1 3 1 'Project Name'(003).
    perform fill_cell using 1 4 1 'Client'(004).
    perform fill_cell using 1 5 1 'Begin Date'(005).
    perform fill_cell using 1 6 1 'End Date'(006).
    perform fill_cell using 1 7 1 'Role of Employee'(007).
    perform fill_cell using 1 8 1 'Module / Competancy'(008).
    perform fill_cell using 1 9 1 'Employee name'(009).
    perform fill_cell using 1 10 1 'Price Category'(010).
    perform fill_cell using 1 11 1 'Rate P/H'(011).
    perform fill_cell using 1 12 1 '1st day in project'(012).
    perform fill_cell using 1 13 1 'Last day in project'(013).
    perform fill_cell using 1 14 1 'Currency'(014).
    perform fill_cell using 1 15 1 'Manager'(015).
    perform fill_cell using 1 16 1 'Emp Type'(016).
    perform fill_cell using 1 17 1 'Designation'(017).
    perform fill_cell using 1 18 1 'Joining Date'(018).
    perform fill_cell using 1 19 1 'Last Date'(019).
    loop at lt_project into ls_project.
    *lt_project_excel[] = lt_project[].
    endloop.
    copy flights to active EXCEL sheet
    h = sy-tabix + 1.
    *perform fill_cell1 using h 1 0 ls_project-PROJECTID.
    *perform fill_cell1 using h 2 0 ls_project-EMPID.
    *perform fill_cell1 using h 3 0 ls_project-PROJECT_NAME.
    *perform fill_cell1 using h 4 0 ls_project-client.
    *perform fill_cell1 using h 5 0 ls_project-BEGIN_DATE.
    *perform fill_cell1 using h 6 0 ls_project-END_DATE.
    *perform fill_cell1 using h 7 0 ls_project-ROLE_OF_EMP.
    *perform fill_cell1 using h 8 0 ls_project-COMPETANCY.
    *perform fill_cell1 using h 9 0 ls_project-EMPLOYEE_NAME.
    *perform fill_cell1 using h 10 0 ls_project-PRICE_CATEGORY.
    *perform fill_cell1 using h 11 0 ls_project-RATE_PER_HOUR.
    *perform fill_cell1 using h 12 0 ls_project-FIRST_DAY_PRO.
    *perform fill_cell1 using h 13 0 ls_project-LAST_DAY_PRO.
    *perform fill_cell1 using h 14 0 ls_project-CKEY.
    *perform fill_cell1 using h 15 0 ls_project-MANAGER.
    *perform fill_cell1 using h 16 0 ls_project-EMPLOYEE_TYPE.
    *perform fill_cell1 using h 17 0 ls_project-DESIGNATION.
    *perform fill_cell1 using h 18 0 ls_project-DATE_OF_JOINING.
    *perform fill_cell1 using h 19 0 ls_project-LAST_WORKING_DAT.
    perform fill_cell1 using h 1 0 lt_project_excel-PROJECTID.
    perform fill_cell1 using h 2 0 lt_project_excel-EMPID.
    perform fill_cell1 using h 3 0 lt_project_excel-PROJECT_NAME.
    perform fill_cell1 using h 4 0 lt_project_excel-client.
    perform fill_cell1 using h 5 0 lt_project_excel-BEGIN_DATE.
    perform fill_cell1 using h 6 0 lt_project_excel-END_DATE.
    perform fill_cell1 using h 7 0 lt_project_excel-ROLE_OF_EMP.
    perform fill_cell1 using h 8 0 lt_project_excel-COMPETANCY.
    perform fill_cell1 using h 9 0 lt_project_excel-EMPLOYEE_NAME.
    perform fill_cell1 using h 10 0 lt_project_excel-PRICE_CATEGORY.
    perform fill_cell1 using h 11 0 lt_project_excel-RATE_PER_HOUR.
    perform fill_cell1 using h 12 0 lt_project_excel-FIRST_DAY_PRO.
    perform fill_cell1 using h 13 0 lt_project_excel-LAST_DAY_PRO.
    perform fill_cell1 using h 14 0 lt_project_excel-CKEY.
    perform fill_cell1 using h 15 0 lt_project_excel-MANAGER.
    perform fill_cell1 using h 16 0 lt_project_excel-EMPLOYEE_TYPE.
    perform fill_cell1 using h 17 0 lt_project_excel-DESIGNATION.
    perform fill_cell1 using h 18 0 lt_project_excel-DATE_OF_JOINING.
    perform fill_cell1 using h 19 0 lt_project_excel-LAST_WORKING_DAT.
    *endloop.
    disconnect from Excel
    *CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
    EXPORTING
       DOCUMENT_DATA                    =
      PUT_IN_OUTBOX                    = ' '
      SENDER_ADDRESS                   = SY-UNAME
      SENDER_ADDRESS_TYPE              = 'B'
      COMMIT_WORK                      = ' '
    IMPORTING
      SENT_TO_ALL                      =
      NEW_OBJECT_ID                    =
      SENDER_ID                        =
    TABLES
       PACKING_LIST                     =
      OBJECT_HEADER                    =
      CONTENTS_BIN                     =
      CONTENTS_TXT                     =
      CONTENTS_HEX                     =
      OBJECT_PARA                      =
      OBJECT_PARB                      =
       RECEIVERS                        =
    EXCEPTIONS
      TOO_MANY_RECEIVERS               = 1
      DOCUMENT_NOT_SENT                = 2
      DOCUMENT_TYPE_NOT_EXIST          = 3
      OPERATION_NO_AUTHORIZATION       = 4
      PARAMETER_ERROR                  = 5
      X_ERROR                          = 6
      ENQUEUE_ERROR                    = 7
      OTHERS                           = 8
    *IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    *ENDIF.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    free object h_excel.
    perform err_hdl.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    FORM FILL_CELL *
    sets cell at coordinates i,j to value val boldtype bold *
    form fill_cell using i j bold val.
    call method of h_excel 'Cells' = h_zl exporting #1 = i #2 = j.
    perform err_hdl.
    set property of h_zl 'Value' = val .
    perform err_hdl.
    get property of h_zl 'Font' = h_f.
    perform err_hdl.
    set property of h_f 'Bold' = bold .
    perform err_hdl.
    SET PROPERTY OF h_f 'ColorIndex' = 11 .
    perform err_hdl.
    endform.
    *& Form fill_cell1
    text
    -->P_H text
    -->P_1 text
    -->P_0 text
    -->P_IT_SPFLI_CARRID text
    form fill_cell1 using i j bold val.
    call method of h_excel 'Cells' = h_zl exporting #1 = i #2 = j.
    perform err_hdl.
    set property of h_zl 'Value' = val .
    perform err_hdl.
    get property of h_zl 'Font' = h_f.
    perform err_hdl.
    set property of h_f 'Bold' = bold .
    perform err_hdl.
    SET PROPERTY OF h_f 'ColorIndex' = 14 .
    perform err_hdl.
    endform. " fill_cell1
    *& Form ERR_HDL
    outputs OLE error if any *
    --> p1 text
    <-- p2 text
    form err_hdl.
    if sy-subrc <> 0.
    write: / 'Error in OLE-Automation:'(010), sy-subrc.
    stop.
    endif.
    endform. " ERR_HDL
    Entire excel file is displayed ,but the problem is I want to display the excel file in one shot i.e not <b>line by line</b>
    Kindly suggest if there is any keyword or FM to display the contents in excel using internal table.
    It should not take much time. Just by executing code , the contents of internal table should be displayed.
    Helpful answers will be rewarded
    Thanks,
    Sachin

    Hi Kavitha,
    maybe it's not sophisticated enough for your requirement, but I found function XXL_FULL_API easy to use. This will give same functionality as 'download' button in ALV-Grid display.
    Regards,
    Christian

  • Read SAP table content through VBA  why  Chinese characters display as '#'

    Hi ,
    I meet a problem . I want to get sap table content through RFC in excel  VBA. now  i have solve it . It can got table content . when  i change a new  system , it can get table content ,but chinese characters display as '#' ( it works well in sap 4.6c Chinese characters can display , when upgrate to ecc 6.0 it can't works well )
    some VBA code as below :
    Set ofun = CreateObject("SAP.FUNCTIONS")  ' create a FUNCTION object
       '  Connect  has create and conneted to SAP system
    Set ofun.Connection = Connect                     ' "connect"has create connetion sucess
    Set func = ofun.Add("RFC_READ_TABLE")    ' set RFC object to call function
        func.Exports("QUERY_TABLE") = "T179T"   ' set table name for get table content
        func.Tables("OPTIONS").DATA = "SPRAS   =   'ZH'"    ' set condition of language of  'ZH'
    If func.Call = True Then
            Set oline = func.Tables.Item("DATA")       ' set table content which get from table T179T to object "oline"
    endif
    who can give me some suggestion about this ?  Thanks .
    Edited by: Chris Xu on Oct 31, 2008 6:51 AM

    Hi Chirs,
    I am facing the same problem but i am using c sharp and this is a windows application.
    I tried to change the CodePage attribute by simply setting connection.codepage = "8040";
    But i get an exception.
    attempted to read or write protected memory.
    I cant seem to change this. What should i do. Also do we have to set this at the point of connecting to the Sap system or when i'm calling the RFC. I tried both instances but none worked. Could you please help me out.
    i am using VS 2008.
    Thanks,
    Yohan

  • How to display smartform table content in condition basis

    Hi experts
         In smartform, can i display the content of table in a condition basis.
         For example am displaying 4 rows in a page.
         If the rows exists more than 4, remaining rows i want to display in next page.
         Is it possible, if so, how to do, pls anyone help me on this.
    Thanks in advance.
    Regards
    Rajaram

    hi,
    use the command which is present in the flowlogic.
    In that tick the <b>Go to new page</b> check box and write the page no. into the i/o bos besides it and write the condition whatever it is.
    thanks
    Dharmishta

  • To display the contents of the table in sf

    HI,
    I have a requirement to display the contents of the table on the smart form main window.
    Like there is a dic table containing 8 rows . i would like to to display all the 8 rows on a smartform main window.
    Help me how to solve this,

    Hi,
    Kindly follow the below steps,
      Go with a transaction code : smartforms
       Enter the form name like : ysma_forms1 and create with proper description
       From the left side window there will be a form interface to provide table .....
       Go for tables option
       table_name like table_name(ref.type)
       Pages and window-> page1-> main window
       Go to the form painter adjust the main window.
      Select main window and right click --> go for create loop
      Name: loop1, desc: display loop.
    Internal table ktab into ktab.
    select loop right click -> create a text
    name  : text1,  desc: display text.
    Go to change editor.
    Write the mater what ever you want and if you want to display data from the table write the table fields as follows:
    &ktab-<field1>&    &ktab-<field2>&
    save  & activate then execute ,, scripts will generate a function module  like : '/ibcdw/sf0000031' copy this function module and call in executable program...
    For that
    1.  go with abap editor se38.
    2.  table: tablename.
    3.  parameters: test like tablename-<field1>.
    4.  data itab like tablename occurs 0 with header line.
    5.  select * from tablename into table itab where field1 = test1.
    6.  call function '/ibcdw/sf0000031'
    7.  tables
         ktab = itab.
    Save and activate the program ( ^f 3).
    Now run the program ( f 8)
    Hope this will help you
    Regards,
    Vijay Duvvada

  • Saving the table content into one excel sheet

    Hello,
    I have got following problem:
    I'm measuring data with a DAQ card. I'm interested in the min and max value of the measured data. Therefore I'm using the Amplitude and Level measurent function. Its no problem to display the results in the graphical interface. What causes me trouble is to save the content of the displayed table into some kind of file. Anybody know a solution?
    Thanks!

    The problem is that I use the descriped min/max function. If I write it to a text file I get a lot of additional information every second.
    Following example shows what is written to the measurement file:
    Channels 6      
    Samples 1 1 1 1 1 1 
    Date 2010/03/05 2010/03/05 2010/03/05 2010/03/05 2010/03/05 2010/03/05 
    Time 14:26:48.9938435554504394532 14:26:48.9938435554504394532 14:26:48.9938435554504394532 14:26:48.9938435554504394532 14:26:48.9938435554504394532 14:26:48.9938435554504394532 
    Y_Unit_Label Volts Volts Ampere Ampere Ampere Volts 
    X_Dimension Time Time Time Time Time Time 
    X0 0.0000000000000000E+0 0.0000000000000000E+0 0.0000000000000000E+0 0.0000000000000000E+0 0.0000000000000000E+0 0.0000000000000000E+0 
    Delta_X 0.001000 0.001000 0.001000 0.001000 0.001000 0.001000 
    ***End_of_Header***       
    X_Value U_1 (Positive Peak) U_2 (Positive Peak) I_3(Positive Peak) I_1 (Positive Peak) I_2 (Positive Peak) U_3(Positive Peak) Comment
    0.000000 3.461911 3.189588 0.115779 2.103480 0.739258 1.206654
    This kind of information is not displayed if I visualize it in a table. The table only shows me the time and the corresponding min/max values. These values are updated every second.
    I tried to write it to a spreadsheet,  this approach was also not successful since a new spreadsheet was opened/generated every second respectively every time a new min/max value was aquired.
    I would like to safe the data fro, the table to a file without the additionál information showed above in the example.
    Thanks!

  • Trying to display tables reusing same code.

    I'm probably being really naive but I just can't get this to work!
    I have a display table class that will only display a one table when a button is pressed in a GUI. I want to use the same code again to display another table but pressing another button this time. ie: press "Table 1" button and the SQL query SELECT * FROM Customer should be used. Press "Table 2" Button and SQL query SELECT * FROM Order should be used. I have tried creating a constructor for this but it keeps coming up with errors. Please can you have a look at my code. The bits that don't work are commented out. I want to be able to just change the query that is used each time a different button is pressed.
    Thanks in advance.
    import java.sql.*;
    import java.awt.*;
    import javax.swing.*;
    import java.util.*;
    public class TableDisplay extends JFrame{
    private Connection aConnection;
    private JTable cusTable;
    private String Query;
    private String Title;
    public TableDisplay() {
    //public TableDisplay (String Query,String Title){
    try {
    DriverManager.registerDriver(new sun.jdbc.odbc.JdbcOdbcDriver());
    aConnection = DriverManager.getConnection("jdbc:odbc:RelAlg", "", "");
    catch (SQLException e) { System.exit(11);}
    getTable();
    setSize(450,150);
    show();
    private void getTable(){
    Statement aStatement;
    ResultSet aSet;
    try{
    aStatement = aConnection.createStatement();
    aSet = aStatement.executeQuery("SELECT * FROM RelAlgCustomerTable");
    //aSet = aStatement.executeQuery(Query);
    displayResultSet(aSet);
    aStatement.close();
    catch (SQLException e) { System.exit(12);}
    private void displayResultSet(ResultSet rs)
    throws SQLException{
    //position to first record
    boolean moreRecords = rs.next();
    //if there is no records display a message
    if(!moreRecords){
    JOptionPane.showMessageDialog(this, "ResultSet unable to find table");
    setTitle("No table to display");
    return;
    setTitle("Customer Table");
    // setTitle(Title);
    Vector columnHeads = new Vector();
    Vector rows = new Vector();
    try{
    //get column heads
    ResultSetMetaData rsmd = rs.getMetaData();
    for(int i = 1;i <= rsmd.getColumnCount();i++)
    columnHeads.addElement(rsmd.getCatalogName(i));
    //get row data
    do{
    rows.addElement(getNextRow(rs,rsmd));
    while (rs.next());
    //display tabel with ResultSet contents
    cusTable = new JTable(rows, columnHeads);
    JScrollPane scroller = new JScrollPane(cusTable);
    getContentPane().add(scroller,BorderLayout.CENTER);
    validate();
    catch (SQLException e) { System.exit(13);}
    private Vector getNextRow(ResultSet rs, ResultSetMetaData rsmd)
    throws SQLException {
    Vector currentRow = new Vector();
    for (int i = 1; i<=rsmd.getColumnCount();++i)
    switch(rsmd.getColumnType(i)){
    case Types.VARCHAR:
    currentRow.addElement(rs.getString(i));
    break;
    case Types.INTEGER:
    currentRow.addElement(new Long(rs.getLong(i)));
    break;
    default:
    System.out.println("Type was:" +rsmd.getColumnTypeName(i));
    return currentRow;
    public void shutDown(){
    try{
    aConnection.close();
    catch (SQLException e) { System.exit(14);}
    public static void main(String args []){
    final TableDisplay app = new TableDisplay();
    This is the code from the gui that displays the table on the press of the table button
    void table1_mouseClicked(MouseEvent e) {
    TableDisplay tDisp = new TableDisplay();
    tDisp.show();
    }

    what errors are you getting?
    Where are you passing in the value for "Query" and assigning it to the class variable of the same name?
    do this in the constructor:
    public TableDisplay (String Query,String Title){
    /////new line
    this.Query = Query;
    ////end new line
    try {
    DriverManager.registerDriver(new sun.jdbc.odbc.JdbcOdbcDriver());
    aConnection = DriverManager.getConnection("jdbc:odbc:RelAlg", "", "");
    }

  • How to display the contents of java.util.list in a frame???

    i should use awt only not applet...
    i need to display the contents of java.util.list in a frame...
    the contents contains rows queried from a oracle database.....
    the contents should be displayed similar to how a lable is displayed..
    please help me out..
    thanks
    dinesh

    Of course there is something in AWT:
    http://java.sun.com/j2se/1.5.0/docs/api/java/awt/List.
    htmlagain, if you carefully read the question, he needs a
    table to display a JDBC result set. There is no
    pre-made table component in AWT.Well, I read that he filled the data into a java.util.List and now wants to display this list. So a List-component should be sufficient. But I might be wrong...
    -Puce

  • How to display the content of a BLOB column in a ADF/BC pages ?

    How to display the content of a BLOB column in a ADF/BC pages ?
    There is some image in database table blog column. And we want to display image on the screeen.
    There is some example about upload and dowload blog columns.
    (steve not yet document example page etc...)
    But We want to display blog picture in a image component...
    is there any basic way to do it ?
    Thanks a lot...

    Ali,
    You could just download the sample app... but... here is the servlet code from the demo (look at it just for technique - you'll obviously have to change it for your needs)...
    John
    package oracle.fodemo.storefront.servlet;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import oracle.jbo.ApplicationModule;
    import oracle.jbo.Key;
    import oracle.jbo.Row;
    import oracle.jbo.ViewObject;
    import oracle.jbo.client.Configuration;
    import oracle.jbo.domain.BlobDomain;
    import oracle.jbo.domain.DBSequence;
    import oracle.jbo.domain.Number;
    import oracle.jbo.server.ViewObjectImpl;
    public class ImageServlet
      extends HttpServlet
      private static final String CONTENT_TYPE =
        "image/jpg; charset=windows-1252";
      public void init(ServletConfig config)
        throws ServletException
        super.init(config);
      public void doGet(HttpServletRequest request,
                        HttpServletResponse response)
        throws ServletException, IOException
        response.setContentType(CONTENT_TYPE);
        response.setContentType(CONTENT_TYPE);
        String detailProductId = request.getParameter("detail");
        String thumbnailProductId = request.getParameter("thumbnail");
        boolean thumbnail = true;
        String productId = null;
        OutputStream os = response.getOutputStream();
        String amDef = "oracle.fodemo.storefront.store.service.StoreServiceAM";
        String config = "StoreServiceAMLocal";
        ApplicationModule am =
          Configuration.createRootApplicationModule(amDef, config);
        ViewObjectImpl vo =
          (ViewObjectImpl) am.findViewObject("ProductImages"); // get view object (the same as used in the table)
        if (detailProductId != null)
          productId = detailProductId;
          thumbnail = false;
        else
          productId = thumbnailProductId;
        vo.defineNamedWhereClauseParam("paramThumbnail", null, null);
        vo.defineNamedWhereClauseParam("paramProductId", null, null);
        vo.setWhereClause("DEFAULT_VIEW_FLAG = :paramThumbnail AND PRODUCT_ID = :paramProductId");
        vo.setNamedWhereClauseParam("paramThumbnail", (thumbnail? "Y": "N"));
        vo.setNamedWhereClauseParam("paramProductId", productId);
        vo.executeQuery();
        Row product = vo.first();
        BlobDomain image = (BlobDomain) product.getAttribute("Image");
        InputStream is = image.getInputStream();
        // copy blob to output
        byte[] buffer = new byte[10 * 1024];
        int nread;
        while ((nread = is.read(buffer)) != -1)
          os.write(buffer, 0, nread);
        os.close();
        vo.setWhereClause(null);
        vo.removeNamedWhereClauseParam("paramProductId");
        vo.removeNamedWhereClauseParam("paramThumbnail");
        Configuration.releaseRootApplicationModule(am, false);
    }

Maybe you are looking for

  • Error while running Site studio application

    For creating Site Studio application, I have followed the below tutorial http://docs.oracle.com/cd/E14571_01/doc.1111/e13650/ssxa_creatingsites.htm But while running the startSiteStudioDemo.jspx, I got the following error oracle.stellent.wcm.client.A

  • Adobe Acrobat XI pro compare function

    I have been attempting to run the comparison function in this program and it will not work.  Please help!. 

  • ISA Application SAP CRM 5.0 - on mobile

    Hi All, We are supporting ISA application fr our client on SAP CRM 5.0, as of now. We would like to check if there is any possibility for our end users to open the application on their mobiles. If its possible, what all do we need to configure, if an

  • OIM 11g - OIMAuthenticationProvider is not specified

    I'm installing all the components on a single machine : Windows Server 2008 R2 x64 Enterprise Edition. Here are the steps that I followed : 0) I installed Sun JDK version 1.6.0_24 for Windows x64 1) I installed Oracle Database 11g Enterprise Edition

  • UPDATING VERSION 5.0.4 TO VERSION 5.1.4

    can you get updates to final cut pro version 5.0.4 to 5.1.4?