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
Similar Messages
-
Can I display the table content of a web page??
Hi guys I am new to java and here I need to count the words in each table and display the table with largest number of words . This being a part of my huge project. Below is my code where I have succeeded in displaying all the tables present in the web page.But I need to count all the words in the table and display only that table which has largest number of words including all the tags. So java experts please help me with this piece of code...................
import java.net.*;
import java.io.*;
import java.util.*;
import java.util.regex.*;
public class findtable{
public static void main(String[] args) {
String inputLine = null;
String wholeHtml = "";
int trcount=0;
try{
URL yahoo = new URL("http://books.google.com/books?q=+subject:%22+Science+Fiction+%22&as_brr=3&rview=1&source=gbs_hplp_fict");
URLConnection yahooConnection = yahoo.openConnection();
BufferedReader br = new BufferedReader
(new InputStreamReader(yahooConnection.getInputStream()));
int start = 0;
while ((inputLine = br.readLine()) != null) {
wholeHtml += inputLine;
if (inputLine.contains("<table")){
++start;
if (start != 0) {
System.out.println(inputLine);
if (inputLine.contains("</table>")) {
--start;
catch (MalformedURLException me) {
System.out.println("MalformedURLException: " + me);
catch (IOException ioe) {
System.out.println("IOException: " + ioe);
}So any help would be really really appreciated....
The code should take care of nested tables also..
So guys looking forward for the generous help....I have already parsed the HTML and checked all the closing of tags and corrected the indent using Tidy and then I have applied this code so some other suggestions please
-
Error when displaying the table
hellow,
here i have to .htm pages, in first page i am entering the table name, and it has to display the table details in second page.
but in second page i am getting error like field catalog not found
plz help me.
with regards
babuhi babu rs
Please post the code of the two bsp page with the layout as well as abap code. Only than anybody can help you. -
How do you display the tables of EBS R12 (VIS)?
Hi,
My sqlplus does not work but I have an Oracle sqldeveloper. How do you display the tables info of order management module in EBS R12 for windows?
For example:
Base tables
oe_order_headers_all
oe_lines_all
oe_lot_serial_numbers
oe_sales_credits
oe_price_adjustments
Interface tables:
OE_HEADERS_IFACE_ALL
OE_LINES_IFACE_ALL
OE_RESERVTNS_IFACE_ALL
OE_CREDITS_IFACE_ALL
OE_PRICE_ADJS_IFACE_ALL
OE_LOTSERIALS_IFACE_ALL
OE_ACTIONS_IFACE_ALL
Thanks,
FernandoHi Fernando,
The tables for Order Management will mostly be in ONT schema - APPS schema only holds Views, Synonyms, PL/SQL Packages and similar abstractions.
In SQL Developer make a connection to the APPS schema, then go to Synonyms and you'll see the tables (note you should filter as there are lots of objects in Apps schema)!
In the synonym SQL tab you can see the base schema for the table, e.g.
CREATE OR REPLACE SYNONYM "APPS"."OE_ORDER_HEADERS_ALL" FOR *"ONT"*."OE_ORDER_HEADERS_ALL";
Make a connection to the base schema, e.g. ONT.
Then you'll see the ONT tables under the Tables folder.
Alternatively, connect as apps and execute SQL "desc OE_ORDER_HEADERS_ALL"
Or look at the APPS schema views instead, e.g. OE_ORDER_HEADERS
Regards,
Gareth
Edited by: gareth.roberts on Aug 18, 2009 11:52 AM -
Query to display the tables with referential integrity
Hello,
I need to display the Tables which are having referential integrity..
Like need to dispaly the parent and child tables
Please give me some idea on this..
Thanks,Here's a nice query you can use:
with temp_constraints as (
select table_name
, constraint_name pkey_constraint
, null fkey_constraint
, null r_constraint_name
from user_constraints
where constraint_type = 'P'
union all
select a.table_name
, a.constraint_name pkey_constraint
, b.constraint_name fkey_constraint
, b.r_constraint_name
from user_constraints a, user_constraints b
where a.table_name = b.table_name
and a.constraint_type = 'P'
and b.constraint_type = 'R'
select rpad( '*', (level-1)*2, '*' ) || table_name relation
from temp_constraints
start with fkey_constraint is null
connect by pkey_constraint <> r_constraint_name
and prior pkey_constraint = r_constraint_name;From http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:661009003696#tom69115451356231 -
How to display the table components that make up a structure?
Hi,
How does one display the table components that make up a structure?
I want to see the table fields that make up the structure EKBEZ.
Thx.
AndyHi
GOTO SE11 , type the structure name in DataType optional feild , you will get the feilds that make the structure
Kindly rewards the points accordignly
Regards,
Pranshu -
Displaying the table using TableModel
Hi,
I am using TableModel to connect to a database and display the results. I am unable to display the table. It doesn't display anything. Below is the code from the TableModel I am using to connect to database. Could anyone help me find the errors please. any help would be ggreatly appreciated.
public HolidayTableModel() throws ClassNotFoundException, SQLException
tableData = new Vector();
int currentRow = 0;
try
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con = DriverManager.getConnection("jdbc:odbc:thin:@rub:1521:1B","asd","asdf"); System.out.println("Connection Established...");
sqlStatement = con.createStatement();
ResultSet rs = sqlStatement.executeQuery("select * from hlday10t"); System.out.println("ResultSet Statement executed...");
numCols = rs.getMetaData().getColumnCount();
columnNames = new String[numCols]; //Get the column names and cache them for(int column = 0; column<numCols; column++)
columnNames[column] = rs.getMetaData().getColumnLabel(column+1);
while (rs.next())
Vector rowVector = new Vector();
for (int currentCol = 1; currentCol < numCols; currentCol++)
rowVector.addElement(rs.getObject(currentCol));
tableData.addElement(rowVector);
con.close();
fireTableChanged(null);//Tell the listener a new table has arrived
catch(ClassNotFoundException e){
System.out.println("*** Cannot find database driver classes: "+e.getMessage());
catch(SQLException e) {
System.out.println("*** Cannot connect to this database: "+e.getMessage()); }Hi,
My TableModel extends AbstractTabelModel. Here is the full code. Sorry for posting partial code before.
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.*;
import java.util.StringTokenizer;
import java.util.Vector;
import javax.swing.table.AbstractTableModel;
import java.util.*;
import java.text.*;
import java.sql.*;
import java.net.*;
import java.util.Properties;
import java.applet.Applet;
import oracle.jdbc.driver.*;
public class HolidayTableModel extends AbstractTableModel {
int rows = 0;
Vector data = new Vector();
String[] columnNames = {"HOLIDAY_CODE",
"HOLIDAY_DESCR",
"HOLIDAY_DATE",
"LAST_CHANGE_USERID",
"LAST_CHANGE_TMSTMP"};
Connection con;
Statement sqlStatement;
int numCols = 0;
int numRows = 0;
Vector tableData;
public HolidayTableModel() throws ClassNotFoundException, SQLException
tableData = new Vector();
int currentRow = 0;
try
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con = DriverManager.getConnection("jdbc:odbc:thin:@d1b:1521:1B","asdf","asdf");
System.out.println("Connection Established...");
sqlStatement = con.createStatement();
ResultSet rs = sqlStatement.executeQuery("select * from hlday10t");
System.out.println("ResultSet Statement executed...");
numCols = rs.getMetaData().getColumnCount();
columnNames = new String[numCols];
//Get the column names and cache them
for(int column = 0; column<numCols; column++)
columnNames[column] = rs.getMetaData().getColumnLabel(column+1);
while (rs.next())
Vector rowVector = new Vector();
for (int currentCol = 1; currentCol < numCols; currentCol++)
rowVector.addElement(rs.getObject(currentCol));
tableData.addElement(rowVector);
con.close();
fireTableChanged(null);//Tell the listener a new table has arrived
catch(ClassNotFoundException e){
System.out.println("*** Cannot find database driver classes: "+e.getMessage());
catch(SQLException e) {
System.out.println("*** Cannot connect to this database: "+e.getMessage());
public int getRowCount() {
return tableData.size();
public int getColumnCount() {
return columnNames.length;
public String getColumnName(int index) {
return columnNames[index];
public Object getValueAt(int row, int column)
Vector rowVector = (Vector)tableData.elementAt(row);
return (String)rowVector.elementAt(column);
public void addRow(Vector rowData) {
tableData.addElement(rowData);
fireTableRowsInserted(tableData.size(), tableData.size() );
public void removeRow(int row)
data.removeElementAt(row);
fireTableDataChanged();
public boolean isCellEditable(int row, int column) {
return true;
public void setValueAt(Object o, int row, int column)
// change a field of hi
HolidayItem hi = (HolidayItem)data.elementAt(row);
switch (column) {
case 4:
hi.hlday_code = (String)o;
break;
default:
System.out.println("Bad column when editing data: "+column);
break;
fireTableCellUpdated(row, column);
} -
Making particular rows as non editable before displaying the TABLE
Hi everyone,
I would like to know how to make a particular rows as non editable in UI element "TABLE" before it is displayed . The scenario is :
On entering the Personnel number, I am getting family dependants in the table. Then, I am selecting any of the family members on some condition and saving each member with the request.
Next time when i enter the same personnel number, I would like to show the table with already saved request for the family members rows as non editable & other members row as editable.????
Please provide a feasible solution.Hi Pradeep,
follow as per suggested. if not work use cell variants concept. it will work.
Please check this wiki...
http://wiki.sdn.sap.com/wiki/display/WDABAP/WebDynproforABAPCellVariants
Cheers,
Kris. -
hi
my requirement is :
i have LOV with 3 values.
based on LOV in the table will display the columns.
for example : in lov , if i select first value in lov , the table will display one column
if i select second value in lov , the table will display two columns
if i select third value in lov , the table will display three columns
Please help me................Hi Anita
You can bind the visiblerowcount property to the a context attribute. and at runtime you can set the context attribute to the no of rows you want in your table,
Regards
Naresh -
Displaying the table based on number of records.
Hi Experts,
I want to display a normal table based on the records, if there is only one record then only one row should be displayed on the table, if there are 2 records then 2rows should be displayed on the table with the data, if they are more than 2 records only 2 rows should be displayed on the table and remaining rows should be able to scroll on the table.
Please Provide the requried infformation.
Thanks & Regards.
Bhushan.Hi Bhushan
What exactly is row scroll? Did you not refer to the vertical scrollbar that appears when the number of rows is more than the number of displayed rows? Please clarify
If it is the vertical table scroll bar you refered to then you will get it if the number of records are more than the visibleRowCount you set
If it is the horizonal table scroll bar you refered to then you will get it by setting a fixed width to the table. If your column(s) value width exceeds the table width you have specified, you get the horizontal scrollbar.
Regards,
Gayathri Shanbhag -
How to Display the table data ?
Dear All ,
Hi,
i have a requirement that , i develop a one report program that contain one header and item internal table values . Those header and item table details append to the final internal table(which contain all the header and item) . when i display the values all the the ticket_no will repeated.
But client wants to display all the ticket_no will not repeated. He wants output like..
Please give me steps how to do this issue ?Dear Gopi,
1) In decleration part you decleare like...!
DATA: LT_SORT TYPE SLIS_T_SORTINFO_ALV,
WA_SORT TYPE SLIS_SORTINFO_ALV.
2) Before using ' REUSE_ALV_GRID_DISPLAY' Function module
WA_SORT-FIELDNAME = 'TICK_NO'.
APPEND WA_SORT TO LT_SORT.
CLEAR WA_SORT.
3) use FM : REUSE_ALV_GRID_DISPLAY. Like...!
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
* I_INTERFACE_CHECK = ' '
* I_BYPASSING_BUFFER = ' '
* I_BUFFER_ACTIVE = 'X'
I_CALLBACK_PROGRAM = SY-REPID
* I_CALLBACK_PF_STATUS_SET = ' '
* I_CALLBACK_USER_COMMAND = ' '
I_CALLBACK_TOP_OF_PAGE = ''
* I_CALLBACK_HTML_TOP_OF_PAGE = ' '
* I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME = LT_STRUCT
* I_BACKGROUND_ID = ' '
* I_GRID_TITLE =
* I_GRID_SETTINGS =
* IS_LAYOUT =
IT_FIELDCAT = LT_FLDCAT
* IT_EXCLUDING =
* IT_SPECIAL_GROUPS =
IT_SORT = LT_SORT
* IT_FILTER =
* IS_SEL_HIDE =
I_DEFAULT = 'X'
* I_SAVE = ' '
* IS_VARIANT =
* IT_EVENTS =
* IT_EVENT_EXIT =
* IS_PRINT =
* IS_REPREP_ID =
* I_SCREEN_START_COLUMN = 0
* I_SCREEN_START_LINE = 0
* I_SCREEN_END_COLUMN = 0
* I_SCREEN_END_LINE = 0
* I_HTML_HEIGHT_TOP = 0
* I_HTML_HEIGHT_END = 0
* IT_ALV_GRAPHICS =
* IT_HYPERLINK =
* IT_ADD_FIELDCAT =
* IT_EXCEPT_QINFO =
* IR_SALV_FULLSCREEN_ADAPTER =
* IMPORTING
* E_EXIT_CAUSED_BY_CALLER =
* ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = LT_FINAL
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2 .
May be it is solve your issue.
Regards
K. Chinna.. -
Can't not display the table control in the report
Hello frnds,
I m create a module pool pgm using saptechnical 'Demo on using Table Control',
execute a report bush buttons are displayed but
can't Dispaly the table ctrl in the report using screen paiter
any help me, plz.
Thanks in advance.Hi Kumar,
Check thsi Program demo_sel_screen_with_tabstrip.
and also a program on Subscreens in ABAPDOCU
You need to combine both then only this is possible in Report PRograms
Cheerz
Ram -
Display of only Tool bar in ALV without displaying the table
Hi Experts,
I defined a custom container and split it into 2 containers and used one for Top of page and the other for displaying the ALV.
Now I want to export the entire report to excel sheet. So is there any method for having the Tool bar set for the custom container without displaying the ALV??
I want to get the tool bar for custom container as we will have an option to download to excel sheet.Hi,
You could try creating an instance of the class 'CL_GUI_TOOLBAR' on the custom container.
And then call the method 'add_button' to add the export to Excel functionality.
Here is a sample code..
call method toolbar->add_button
exporting fcode = func code
icon = icon name
is_disabled = ' ' or 'X'
butn_type = '0'
quickinfo = quickinfo information.
Try it .............
Thanks,
Ketan -
Get data from view and displaying the table data into Excel pivot table
Hi All,
I have a small reqirement inthat When i get the data from the View that would displayed as Excel Pivot table.
For displaying gerneral data to Excel I have followed Binarcy cachey
Please suggest me in this.
Thanks,
Lohi.
Message was edited by:
Lohitha MTry this:
http://download-west.oracle.com/docs/html/B25947_01/bcservices005.htm#sthref681
Specifically code sample 8-10 for accessing the AM object.
Then use the findView method to get a pointer to the VO. -
Can not display the tables in developer
Hi!
I use the following applications:
Database
1 NLSRTL 9.2.0.5.0 Production
2 Oracle9i Enterprise Edition 9.2.0.5.0 Production
4 TNS for 32-bit Windows: 9.2.0.5.0 Production
PL/SQL
Java™ Platform 1.5.0_06
Oracle IDE 1.2.1.3213
After connecting to the DBMS i am unable to see the objects like tables and views in the Object Browser but the users. Using SQL i can run a query by typing a correct SQL Statement - i also can see the object after type in the dot.
How i can solve this problem?
Thanks in advance!You are right!
Now i can see the objects! I established a new connection and changed the owner!
But i do not understand - i can see all objects with the first username in the former PL SQL Developer. Which rights i have to grant to the other user to see the objects in the new developer as well?
Thank you! -
How to display the actual code name on the table of the uix file?
I have established entity object:Schoolinfo,and a view object SchoolinfoView,and registered in the application module.and I drag and drop to a uix file the Datacontrol and it works well,i can see the schoolinfo table's contents.The problem is:in schoolinfo there is an attribute schooltype code,like 1,and referenced to another table:CodeDict in the database, and I want to display the actual code name when displaying the table on the uix file,like "middle school", not just the code 1.How can I do?
This is more of BC4J question.
The data that is displayed (View) is a SQL query. You should be able to change the SQL query represented by the view object appropriately to get the desired output. You can see more information on view objects from Jdev help to get more information on it.
Thanks
Vijay V
Team UIX
Maybe you are looking for
-
Dear I want to create one vendor Outstanding Report that contains total amount , balance , Please tell me what are the related table for this Regards Sarath P G
-
Time machine started over after a complete restore, how to get to older?
Yesterday, photoshop and parrallels started crashing and I could not get them working, So I decided to do a complete system restore from install disk time machine from the day before when everything was working fine. so it restored the system to its
-
Link column from an interactive report to insert a row in a tabular form
Hi, I need your help, i'm new on APEX and i really need to make a "link column" from an "interactive report" to insert a row into a "tabular form". I mean that when you click the "link column" instantly create a new row in the Tabular form with the i
-
How to get the BPEL instances execution time from dehydration db by query
I want know list of BPEL instance takes more then 10seconds for execution between so and so time. Could please provide the query to get this details Thanks Panneer Selvam
-
Is it possible to find out how much memory each App is taking up?
Hi, About 2.5gb of my iPhone's memory is taken up by Apps, according to iTunes. Is it possible to determine which Apps are using big chunks of memory? Is it possible at all to find out for each App how much memory it uses?