I want to get the data of a table inside the Form but it is not passed
I want to get the data of a table inside the Form but it is not passed to the form by tables parameters.
How can I do this.
Regards
If there is a problem with defining it globaly, you can define a field symbol globably and point to it. For example. It would probably be better to define your table globably.
report zrich_0003 .
field-symbols: <imarc> type marc_upl_tt.
start-of-selection.
perform get_data.
* FORM get_data *
form get_data.
data: imarc type table of marc with header line.
select * from marc into table imarc up to 10 rows.
assign imarc[] to <imarc>.
perform write_data.
endform.
* FORM write_data *
form write_data.
data: xmarc type marc.
loop at <imarc> into xmarc.
write: / xmarc-matnr, xmarc-werks.
endloop.
endform.
Regards,
Rich Heilman
Similar Messages
-
How can i convert the data from mutiple-table to the other database(MSSQL)?
Dears,
How can i convert the data from mutiple-table to the other database such as MS-SQL?
I have a third party system based on MS-SQL 2000.
Now we want to make a integration between SAP R/3(Oracle) and SQL server.
When my user releases the purchase order in R/3, the application we coded will convert the releated data to the temp database on the SQL server.
But i don't know which tools will help me reach the purpose. BAPI, LSMW, IDoc... ???
Would anybody tell me which way is better and how to do?
Thanks a lot!
Kevin WangHello Kevin,
The question to use which method depend on your detail requirements. If you use BAPI, you need to find which Bapi can provide the data you want. Bapi normally use as a function called by external system. So you need to develop an external program like VB/Java to call this Bapi and move it to SQL. LSMW is use when you want to upload data from an external system to SAP. So it does not serve your requirement. Idoc can be use to export data to an external system. Again like Bapi, you need to find what Idoc can provide the data you want. However, it does not any programming from the external system. If I were you, based on your requirements, I think writing an Abap program that read the data you want and download it to NT/SQL server will be faster and easier. -
How to retrieve the data from database table to the screens
Hi all,
I have created a transaction to save the costing details..but if the material code already exists then it should get the header and details of that material code onto the table cotrol of the screen..i'm getiing them into my itab but only the last record of that is visible for n times as there are n records...can anyone help me in this?Dear anil ,
Please give condtion in u r code on line item wise so its taking all records correctly.
Regards ,
Nikhil narkhede. -
How to delete the data from partition table
Hi all,
Am very new to partition concepts in oracle..
here my question is how to delete the data from partition table.
is the below query will work ?
delete from table1 partition (P_2008_1212)
we have define range partition ...
or help me how to delete the data from partition table.
Thanks
Sree874823 wrote:
delete from table1 partition (P_2008_1212)This approach is wrong - as Andre pointed, this is not how partition tables should be used.
Oracle supports different structures for data and indexes. A table can be a hash table or index organised table. It can have B+tree index. It can have bitmap indexes. It can be partitioned. Etc.
How the table implements its structure is a physical design consideration.
Application code should only deal with the logical data structure. How that data structure is physically implemented has no bearing on application. Does your application need to know what the indexes are and the names of the indexes,in order to use a table? Obviously not. So why then does your application need to know that the table is partitioned?
When your application code starts referring directly to physical partitions, it needs to know HOW the table is partitioned. It needs to know WHAT partitions to use. It needs to know the names of the partitions. Etc.
And why? All this means is increased complexity in application code as this code now needs to know and understand the physical data structure. This app code is now more complex, has more moving parts, will have more bugs, and will be more complex to maintain.
Oracle can take an app SQL and it can determine (based on the predicates of the SQL), which partitions to use and not use for executing that SQL. All done totally transparently. The app does not need to know that the table is even partitioned.
This is a crucial concept to understand and get right. -
How Can i get the data From A Table that use DefaultTableModel
Hi and sorry for my bad english. The problem that i have is that i used this code to fill a table. Now i want when i select a row and click in a button , get the value of that row that i select so then i can update or delete that data in my dataBasesServer.
private void consulta(){
Connection c = ConectarSQL.conexionSQL();
try {
Statement s = c.createStatement();
ResultSet ar = s.executeQuery("Select Apellido, Nombre FROM Personas");
DefaultTableModel modelo = new DefaultTableModel();
this.Tabla.setModel(modelo);
modelo.addColumn("Apellido");
modelo.addColumn("Nombre");
while (ar.next()) {
Object [] fila = new Object[2];
for (int i=0;i<2;i++)
fila[i] = ar.getObject(i+1);
modelo.addRow(fila);
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}Dont worry kevinaworkman, the thing is that a read it and is really usefull, but i was looking other kind of solution. But i welcome your answer and interested to solve my problem.
I find the answer.
To retrive the data i have to use the following instruction:
Tabla.getValueAt(Tabla.getSelectedColumn(),Tabla.getSelectedRow); -
I want to use the SQL Toolkit of NI and SQL Server as my databasis on a server. Do I need to install a client in each computer I want to handle the data into SQL tables or I need only a ODBC driver?
You only need the ODBC driver on each computer. If you are distributing the SQL Toolkit app as an executable and do not install the whole toolkit on each computer, you'll need the SQL Toolkit support files. This is about a dozen files. You can get the list at http://digital.ni.com/public.nsf/websearch/b814be005f9da9258625658700550c75?OpenDocument.
-
Why is it like if i don't sync the data in my pad to the itunes of my system ,the data in my ipad is getting cleared when i copy any thing to my ipad.This is not comfortable rite?why is this so.?or there is any other way?
i noticed this as a bug in iTunes. make sure the correct file is selected in the preferences menus. It does not have to be the default location directiory as Vazandrew stated. your iTunes music library can be anywhere you want it. i have mine on an external cuz i'm a dj and have over 80,000 songs.
once you select/verify the location of your music library, simply drag the folder into the left panel in iTunes from a finder window. iTunes does not automatically add the items like it use to for some reason. -
Not able to get the data in COSB Table
Hi Colleagues,
I have created a Project and assign the WBS number to a Sales order and also have done all the settings in Result Analysis.
But still not able to get the data in COSB table.
Could you please suggest me the steps and process, Might be i have missed something..
Thanks in Advance
Regards
NitinHi Ken,
I have below mentioned requirement
COSB will show value by object number and need to pass the object number to PRPS table to find the corresponding WBS element and then pass the WBS element to VBAP table to find the corresponding SO line item.
Please let me know as Functional prospect what I have to do to bring this values in COSB table.
Regards
Nitin -
Unable to get the data in RSA 3 for the data source 2LIS_03_BX.
Hi Xperts,
we are loading the data sources(2LIS_03_BX) by using MCNB transaction but not getting the data in it.
can any one please tell me how to load the data into it with step by step process.
regards,
satishHi,
To see the data in RSA3 you need to do the setup of data for the particular data source through SBIW transaction.
The Rsa3 transaction displays the data present in the setup tables of the particular data source. -
How to get the data from Pooled Table T157E.
Hi Experts,
How to get the data from Pooled Table T157E.
Any help.
Thanks in Advance,
Ur's Harsha.create some internal table similar to T157E and pass all data as per SPRAS.
After that use internal table in your program as per the requirement.
Regds,
Anil -
How to fetch the data from databse table and get the required output
Hi,
I have made a project that connects CEP to database table but i m getting some problem in fetching the data from database.
From the following code :
If the where condition is removed then the application runs fine but i am still not able to fetch the data from the table because it is not showing any output.
Can anyone please suggest me that how to write WHERE statement correctly and how i will be able to see the output.
Following is the config.xml for processor:
======================================
<?xml version="1.0" encoding="UTF-8"?>
<wlevs:config xmlns:wlevs="http://www.bea.com/ns/wlevs/config/application"
xmlns:jdbc="http://www.oracle.com/ns/ocep/config/jdbc">
<processor>
<name>JDBC_Processor</name>
<rules>
<query id="q1"><![CDATA[
SELECT STOCK.SYMBOL as symbol, STOCK.EXCHANGE as exchange
FROM ExchangeStream [Now] as datastream, STOCK
WHERE datastream.SYMBOL = datastream.SYMBOL ]]></query>
</rules>
</processor>
<jms-adapter>
<name>JMS_IN_Adapter</name>
<jndi-provider-url>t3://CHDSEZ135400D:7001</jndi-provider-url>
<destination-jndi-name>jms.TestKanikaQueue</destination-jndi-name>
<user>weblogic</user>
<password>welcome1</password>
</jms-adapter>
</wlevs:config>
Following is the assembly file:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:osgi="http://www.springframework.org/schema/osgi"
xmlns:wlevs="http://www.bea.com/ns/wlevs/spring" xmlns:jdbc="http://www.oracle.com/ns/ocep/jdbc"
xmlns:spatial="http://www.oracle.com/ns/ocep/spatial"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/osgi
http://www.springframework.org/schema/osgi/spring-osgi.xsd
http://www.bea.com/ns/wlevs/spring
http://www.bea.com/ns/wlevs/spring/spring-wlevs-v11_1_1_3.xsd
http://www.oracle.com/ns/ocep/jdbc
http://www.oracle.com/ns/ocep/jdbc/ocep-jdbc.xsd
http://www.oracle.com/ns/ocep/spatial
http://www.oracle.com/ns/ocep/spatial/ocep-spatial.xsd">
<wlevs:event-type-repository>
<wlevs:event-type type-name="StockEvent">
<wlevs:properties>
<wlevs:property name="SYMBOL" type="byte[]" length="16" />
<wlevs:property name="EXCHANGE" type="byte[]" length="16" />
</wlevs:properties>
</wlevs:event-type>
<wlevs:event-type type-name="ExchangeEvent">
<wlevs:class>com.bea.wlevs.event.example.JDBC_CEP.ExchangeEvent</wlevs:class>
</wlevs:event-type>
<wlevs:event-type type-name="StockExchangeEvent">
<wlevs:properties>
<wlevs:property name="symbol" type="byte[]" length="16" />
<wlevs:property name="price" type="byte[]" length="16" />
<wlevs:property name="exchange" type="byte[]" length="16" />
</wlevs:properties>
</wlevs:event-type>
</wlevs:event-type-repository>
<bean id="readConverter" class="com.bea.wlevs.adapter.example.JDBC_CEP.Adapter_JDBC" />
<bean id="outputJDBCBean" class="com.bea.wlevs.bean.example.JDBC_CEP.OutputBean_JDBC">
</bean>
<wlevs:adapter id="JMS_IN_Adapter" provider="jms-inbound">
<wlevs:listener ref="ExchangeStream" />
<wlevs:instance-property name="converterBean"
ref="readConverter" />
</wlevs:adapter>
<wlevs:processor id="JDBC_Processor" advertise="true">
<wlevs:listener ref="OutputChannel" />
<wlevs:table-source ref="STOCK" />
</wlevs:processor>
<wlevs:channel id="ExchangeStream" event-type="ExchangeEvent" advertise="true">
<wlevs:listener ref="JDBC_Processor" />
</wlevs:channel>
<wlevs:channel id="OutputChannel" event-type="StockExchangeEvent"
advertise="true">
<wlevs:listener ref="outputJDBCBean" />
</wlevs:channel>
<wlevs:table id="STOCK" event-type="StockEvent"
data-source="StockDs" table-name="STOCK" />
<wlevs:table id="STOCK_EXCHANGE" event-type="StockExchangeEvent"
data-source="StockDs" table-name="STOCK_EXCHANGE" />
</beans>
ExchangeEvent.java:
package com.bea.wlevs.event.example.JDBC_CEP;
public class ExchangeEvent {
public String SYMBOL;
public String symbol;
public String exchange;
public ExchangeEvent() {
public String getSYMBOL() {
return SYMBOL;
public void setSYMBOL(String sYMBOL) {
SYMBOL = sYMBOL;
public String getSymbol() {
return symbol;
public void setSymbol(String symbol) {
this.symbol = symbol;
public String getExchange() {
return exchange;
public void setExchange(String price) {
this.exchange = price;
Adapter Class:
package com.bea.wlevs.adapter.example.JDBC_CEP;
import com.bea.wlevs.adapter.example.JDBC_CEP.MyLogger;
import com.bea.wlevs.adapters.jms.api.InboundMessageConverter;
import java.text.DateFormat;
import java.util.Date;
import com.bea.wlevs.adapters.jms.api.MessageConverterException;
import com.bea.wlevs.event.example.JDBC_CEP.ExchangeEvent;
import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.TextMessage;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
public class Adapter_JDBC implements InboundMessageConverter{
@SuppressWarnings("unchecked")
public List convert(Message message) throws MessageConverterException, JMSException {
Random rand = new Random();
int unique_id = rand.nextInt();
DateFormat dateFormat;
dateFormat = DateFormat.getTimeInstance();
dateFormat.format(new Date());
MyLogger.info(unique_id + " CEP Start Time is: " + dateFormat.format(new Date()));
System.out.println("Message from the Queue is :"+ message);
TextMessage textMessage = (TextMessage) message;
String stringMessage = textMessage.getText().toString();
System.out.println("Message after getting converted into String is :"+ stringMessage);
String[] results = stringMessage.split(",\\s*"); // split on commas
ExchangeEvent event1 = new ExchangeEvent();
event1.setSYMBOL(results[0]);
List events = new ArrayList(2);
events.add(event1);
return events;
Output Bean Class :
package com.bea.wlevs.bean.example.JDBC_CEP;
import com.bea.wlevs.ede.api.StreamSink;
import com.bea.wlevs.event.example.JDBC_CEP.ExchangeEvent;
import com.bea.core.datasource.DataSourceService;
public class OutputBean_JDBC implements StreamSink{
public void onInsertEvent(Object event) {
if (event instanceof ExchangeEvent) {
ExchangeEvent cacheEvent = (ExchangeEvent) event;
System.out.println("Symbol is: " + cacheEvent.getSymbol());
System.out.println("Exchange is: " + cacheEvent.getExchange());
System.out.println(DataSourceService.class.getClass());
Kindly let me know if you need further info.Do you have StockDs configured in your server config.xml?
I think the query should look more like this:
SELECT stocks.SYMBOL, stocks.EXCHANGE
FROM STOCK as stocks, ExchangeStream [Now] as datastream WHERE stocks.SYMBOL = datastream.SYMBOL
Thanks
andy -
Getting an error while fetching the data and bind it in the Tree table
Hi All,
I am getting an error "A navigation paths parameter object has to be defined - " while fetching the data and bind it in the Tree table.
Please find the code and screenshot below
var oModel = new sap.ui.model.odata.ODataModel("../../../XXXX.xsodata/", true);
var oTable = sap.ui.getCore().byId("table");
oTable.setModel(oModel);
oTable.bindRows({
path: "/Parent",
parameters: {expand: "Children"}
Can anyone please give me a suggestion to rectify this?
Thanks in Advance,
AravindhHi All,
Please see the below code. It works fine for me.
var oController = sap.ui.controller("member_assignment");
var oModel = new sap.ui.model.odata.ODataModel("../../../services/XXXX.xsodata/", true);
var Context = "/PARENT?$expand=ASSIGNEDCHILD&$select=NAME,ID,ASSIGNEDCHILD/NAME,ASSIGNEDCHILD/ID,ASSIGNEDCHILD/PARENT_ID";
var oTable = sap.ui.getCore().byId("tblProviders");
oModel.read(Context, null, null, true, onSuccess, onError);
function onSuccess(oEventdata){
var outputJson = {};
var p = 0;
var r = {};
try {
if (oEventdata.results){
r = oEventdata.results;
} catch(e){
//alert('oEventdata.results failed');
$.each(r, function(i, j) {
outputJson[p] = {};
outputJson[p]["NAME"] = j.NAME;
outputJson[p]["ID"] = j.ID;
outputJson[p]["PARENT_ID"] = j.ID;
outputJson[p]["DELETE"] = 0;
var m = 0;
if (j.ASSIGNEDCHILD.results.length > 0) {
$.each(j.ASSIGNEDCHILD.results, function(a,b) {
outputJson[p][m] = { NAME: b.NAME,
ID : b.ID,
PARENT_ID: b.PARENT_ID,
DELETE: 1};
m++;
p++;
var oPM = new sap.ui.model.json.JSONModel();
oPM.setData(outputJson);
oTable.setModel(oPM);
function onError(oEvent){
console.log("Error on Provider Members");
oTable.bindRows({
path:"/"
Regards
Aravindh -
Getting Duplicate data Records error while loading the Master data.
Hi All,
We are getting Duplicate data Records error while loading the Profit centre Master data. Master data contains time dependent attributes.
the load is direct update. So i made it red and tried to reloaded from PSA even though it is throwing same error.
I checked in PSA. Showing red which records have same Profit centre.
Could any one give us any suggestions to resolve the issues please.
Thanks & Regards,
RajuHi Raju,
I assume there are no routines written in the update rules and also you ae directly loading the data from R/3 ( not from any ODS). If that is the case then it could be that, the data maintained in R/3 has overlapping time intervals (since time dependency of attributes is involved). Check your PSA if the same profit center has time intervals which over lap. In that case, you need to get this fixed in R/3. If there are no overlapping time intervals, you can simply increase the error tolerance limit in your info-package and repeat the load.
Hope this helps you.
Thanks & Regards,
Nithin Reddy. -
I have a numbers spreadsheet for tracking company data. I want to copy the format of the spreadsheet (rows, columns,and formulas) but have all of the data fields be blank for the new year. How do I do that?
click and hold on one cell, then drag to select the range, then release, then type the delete key. Only inlude cells in the range you do not want to keey the contents of the cell. You can remove one-off cells by holding the command key and clicking cells to add or remove as needed.
You can download the Numbers users guide here:
http://support.apple.com/manuals/#productivitysoftware -
If the data network is not available for some time, to get it again we need to restart the phone instead it is not finding the data network instantly. why cant the iphone searches data net work offten if not available. i am totally disappointed with this!
Still it could not find the data network.it searches for voice network instantly and works too. but even full voice network available, there is no data network.when i restart the phone it could find data network.
Already i reset network settings for two times.
Maybe you are looking for
-
I am having trouble setting up my email and syncing my outlook calendar wiht my new iphone 4s.
-
Office 2013 GPO Silent install doesn't run consistently
client is all Dell Win 7. Servers are 2012. Project is to install Office 2013 silently with GPO at computer start. Everything is configured correctly and it works on some computers. I set it install in a larger group by linking the GPO to that group
-
NOT happy with image quality of Lightroom 1.1
Sure, LR now launches faster and the interface looks a bit nicer. And the more capable sharpening controls and the clarity slider which mimics contrast enhancement with USM are nice additions, but has anyone else notice what happened to the image qua
-
Working with shared files on a common server
Working at a studio with both PCs and MACs, we seem to lose our media links every time we open up our projects on a new computer even though we are using a shared media server. Example: If I save a project on the server after using a Windows 7 based
-
Is there anyway to create a new GUID in ABAP? Simplying create a data object of type OS_GUID creates an initialized (empty, or all-zeros) GUID. Many thanks.