Fetching order data from liveCache
Hi,
I am trying FM PAPO/OM_PEG_CAT_GET_ORDERS to get order data from liveCache
I am giving the following inputs
1. PEGID which I am getting from /SAPAPO/DM_MATERIAL_GET_PEGID for a given product location.
2. ATP category in IT_CATEGORY = BM and CC
3. V_SIMSESSION = 000
4. IV_IONODE_PEG_SEL = 0
But I am getting LC_COM_ERROR and no output.
What parameters am I missing ?
Regards,
Yogesh
Hi SC,
I generated SIMSESSION using /sapapo/rrp_simsession_create and run it again.
But I am not getting any data in the output.
The screens are given below ...
Request your inputs on the same.
Yogesh
Similar Messages
-
Fetching order data from Live Cache
Hi
The requirement is to fetch order data from liveCache for a given product based on ATP category . (AY - dependent demands and AU - order reservations)
I want to get information about the dates and order quantity.
I have identified following two FM's.
/SAPAPO/OM_PEG_CAT_GET_ORDERS
/SAPAPO/OM_ORDER_GET_DATA
Which one of the two FM is more suitable specific to my requirement ? Also what are the important parameters to be passed in the applicable FM ?
I would also like to know the difference in these two FMs?
Thanks in advance,
YogeshHi,
I tried FM PAPO/OM_PEG_CAT_GET_ORDERS
I am giving the following inputs
1. PEGID which I am getting from /SAPAPO/DM_MATERIAL_GET_PEGID for a given product location.
2. ATP category in IT_CATEGORY = BM and CC
3. V_SIMSESSION = 000
4. IV_IONODE_PEG_SEL = 0
But I am getting LC_COM_ERROR
What parameters am I missing ?
Regards,
Yogesh -
HOW to retrieve PURCHASE ORDER DATA from archieve file and print a report
Dear all
1) I have retrieve purchase order data from archived files.
2) print purchase order data and created pdf file.
VIJ.............
Moderator message - Please ask a specific question - post locked
Edited by: Rob Burbank on Apr 28, 2009 12:00 PMDear all
1) I have retrieve purchase order data from archived files.
2) print purchase order data and created pdf file.
VIJ.............
Moderator message - Please ask a specific question - post locked
Edited by: Rob Burbank on Apr 28, 2009 12:00 PM -
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 -
How to Fetch the Data from a Cube
Dear All,
We created a cube containing dimensions
Customer, Product, Branch, Activity, Time dimensions
using Oracle Analytical WorkSpace Manager.
Once Cube is created,
How can I see the Data existing in the Cube using normal SQL Queries ??? Through Analytical Workspace Manager Toll we r able to see the data. But our requirement is to see the data from the Cube using SQL Queries.
Regards,
S.Vamsi KrishnaHey I got the Solution. It follows in this way :
A Cube is nothing but a Data Storage. Based on the Mapping we given it considers the data.
To fetch the data from the Cube -> we have to write the SQl Query as below :
SELECT dealer_name,model_name,sales
FROM TABLE(OLAP_TABLE('MDB.FINAL_AW DURATION SESSION',
'DIMENSION dealer_name AS varchar2(30) FROM FINALDEAL
DIMENSION model_name AS varchar2(30) FROM FINALMODEL'));
We can create View for the above statement o
we can apply group by ,rollup, etc etc clauses
and even we can write where clauses for the above select statement.
But now my doubt is :
can we apply any calculations while mapping the Level to an Dimension.
Generally we will map Level toa dimension as DBUSER.TABLENAME.COLUMN NAME
can we apply any calculation like :
MIS.PROPKEY020MB.MATURITY_DATE+2
Please help for the above.
If any wrong is there please let me know
Regards,
S.Vamsi Krishna
can we apply -
Report is not fetching the data from Aggregate..
Hi All,
I am facing the problem in aggregates..
For example when i am running the report using Tcode RSRT2, the BW report is not fetching the data from Aggregates.. instead going into the aggregate it is scanning whole cube Data....
FYI.. Checked the characteristcis is exactely matching with aggregates..
and also it is giving the message as:
<b>Characteristic 0G_CWWPTY is compressed but is not in the aggregate/query</b>
Can some body explain me about this error message.. pls let me know solution asap..
Thankyou in advance.
With regards,
HariHi
Deactivate the aggregates and then rebuild the indexes and then activate the aggregates again.
GTR -
Error NO Data Found in fetching a data from ResultSet
I am fetching a data from Access Data base ...and i am getting data in a result set...
query.append(" select * from college_admission_form ");
stmt = con.createStatement();
rs = stmt.executeQuery(query.toString());
while(rs.next()){
String ad_id = rs.getString(1);
String admFormId = rs.getString(2); // line 2
String collegeId = rs.getString(26);
String temp = rs.getString(2); // error is showing in this line that NO Data Found.
but earlier in line 2 i am getting the data.
how to solve it ...plz reply fastI am accessing MS Access DB through a simple web appln using jdbc-odbc
I am getting error at
while (rs.next())
System.out.println("rs.getString(1)="+rs.getString(1));
objEmp.setEmpName(rs.getString(2)); -----at this line
The problem i am getting is when i assign/set "rs.getString" value to something.If I commect the problem line, it goes ahead well.
Can some one pls tell me how i shud resolve this problem or how shud i make use of the resultset?
Thanks -
Error in fetching the data from textfield and inserting to the database..
I'm using Java Swing as front end and MySQL as backend using the netbeans ide..I am trying to fetch the data from the textfiled in the form and insert to the database table.i've skipped the generated code..In the following code i get the erro cannot find symbol "stmt" in the actionPerformed method..
mport java.awt.event.*;
import java.sql.*;
public class BarcodeReader extends JFrame implements ActionListener {
public BarcodeReader() {
initComponents();
nb.addActionListener(this);
public void jdbcConnect(){
Connection con=null;
String url = "jdbc:mysql://localhost:3306/";
String db = "mynewdatabase";
String driver = "com.mysql.jdbc.Driver";
String user = "usrname";
String pass = "pwd";
try{
String s=newtxt.getText();
con=DriverManager.getConnection(url + db, user, pass);
Statement stmt=con.createStatement();
Class.forName(driver);
public void actionPerformed(ActionEvent e){
try{
jdbcConnect();
stmt.executeUpdate("INSERT into machine(mname) values '"+jTextField1.getText()+"'");
}}catch (Exception ex) {
System.out.println(ex);
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new BarcodeReader().setVisible(true);
}There are far too many errors to try and clear.
For one, the exception references the actionPerformed method (according to your text), so why is that not shown here?
For another you are performing, possible time-consuming, actions, and even worse IO actions, on the event thread, which is a huge no-no.
You are not closeing your resources properly, if at all, which is another huge no-no.
You are completely mixing your "view" (the gui), and your "model" (the data related classes), which is another huge no-no.
etc, etc, etc. -
Fetch the data from the tables in the SQL 2005 server to sap R/3.
Hi Experts,
We need to fetch the data from the tables in the SQL 2005 server to sap R/3.
Please explain which will be the best approach to fetch the same and how to do it. Sample program can greatly help.
<< Please do not offer points >>
Regards,
Shobana K
Edited by: Rob Burbank on Sep 21, 2010 2:36 PMHi,
Try NATIVE SQL statements in your abap code otherwise you can try to establish jdbc connection from ABAP program.
search in SDN for samples!
Suresh -
Attempt to fetch cache data from Integration Directory failed
HI,
while checking cache connectivity testing: status is
green: Integration Repository
green: Integration Directory
green: Integration Server - JAVA
red:Adapter Engine af.axd.aipid
yello:Integration Server - ABAP
Jun 30, 2007 1:16:08 PM - Cache notification from Integration Directory received successfully
Attempt to fetch cache data from Integration Directory failed; cache could not be updated
[Fetch Data]: Unable to find an associated SLD element (source element: SAP_XIIntegrationServer, [CreationClassName, SAP_XIIntegrationServer, string, Name, is.00.aipid, string], target element type: SAP_BusinessSystem)
[Data Evaluation]: GlobalError
what to do?
and there is nothing under integration server and integration engine but there is an green status under Non-Central Adapter Engines > from this i am doing send messeage testing fro xi to bi ,
send message to: http://aibid:8000/sap/xi/engine?type=entry
payload:
<?xml version="1.0" encoding="utf-8"?>
<ns1:MI_VCNdatatoBI
xmlns:ns1="http://bi.sap.com"
xmlns:xsi="http://www.w3.org/2001/XMLSchemainstance">
<DATA>
<item>
</BIC/ZG_CWW010>1000<//BIC/ZG_CWW010>
</BIC/ZVKY_CHK>1<//BIC/ZVKY_CHK>
</item>
</DATA>
</ns1:MI_VCNdatatoBI>
i can sent message from there (component monitoring > Non-Central Adapter Engines) but unable to get it at message monitoring and at BI side.
dushyant.thanks,
but i have adepter type XI
and i am folowing step of this lonk and there is no need to create fild adepter type according to that and almost done but while sending message through config. monitor in RWB it goes but not coming in mess monitoring and at bi side
see 4.5 > 3 and 4 topic and 4.6 > 3,4,5
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f027dde5-e16e-2910-97a4-f231046429f2
now what to do?
dushyant, -
Fetch the data from two tables
hell all
i want to fetch the data from two tables, one is from internal table and another one is data base table. what syntax i have to use either FOR ALL ENTRIES or INNER JOIN?hi
Use FOR ALL ENTRIES.
see the sample code
select * into table tvbrk from vbrk
where fkart in ('F2', 'F3', 'RE',
'ZVEC' , 'ZVEM' , 'ZVED',
'S1')
and erdat in so_erdat
and kunag in s_kunag.
erdat in so_erdat
and fkart in ('F2', 'F3', 'RE',
'ZVEC' , 'ZVEM').
if not tvbrk is initial.
select * into table t_zregion from zregion
for all entries in tvbrk
where country = tvbrk-land1
and region = s_regio.
endif.
thanks
sitaram -
Hi all,
I want to upload Sales Order data from CRM to BW with DataSource "0CRM_SALES_ORDER_I".
The upload fails due to missing information that are needed in the first update rule of the Sales ODS "0CRM_SALO". In this update rule some formulars on data field level are created that require this information.
Examples of fields that are not delivered from the CRM:
0CRMLREQSCH L. Req. Deliv. Date
0CRM_DLVSCH Last Delivery Date
0CRMPAVSCHW MAD (Requested)
0CRMPAVSCHC MAD (Confirmation)
0CRMPGISCHW Pl. GI Date (Req.)
0CRMPGISCHC Pl. GI Date (Conf.)
So what is to do? Enhance the extractor or are there alternatives.
Cheers
jbHello jb,
Were you able to resolve your problems with Sale Order?
thanks,
dmitriy. -
Fetch the data from the Data base based on selection criteria in ABAP
Hi
I am new to ABAP and working on the Screen where User Enters Company code from and to , Document no and to, I have defined as specified below
SELECT-OPTIONS Company FOR p_ccode.
SELECT-OPTIONS Document FOR p_fdocnr.
SELECT-OPTIONS Year FOR p_fyear.
When I debug in the pgm I get the values as
IBT11001100 (From and To Company Code)
IBT23234241002323424246 (From and To doc no)
IBT20092009 (From and To Year)
How can write a SQL select statement to fetch the data from the Database based on the above inputs
Thanks
PRModerator message:
Sorry - this isn't an ABAP training forum. Please press F1 on SELECT-OPTIONS and/or SELECT.
Thread locked.
Rob -
Want to fetch Material Data from R/3 to cFolders...
<b>Hellow All,
I want to fetch material data from R/3 to cfolders..Actually I need to use the skeliton of the material,I don't need to create actual material over here..How can I do that? Secondly,when we create a material inside cfiolder,where is it stored?Is it stored there in R/3 or it is stored somewhere else? If any one of you need more clarification,then please ask me..</b>I'm not aware of any SAP tools to automate the export to cfolders - perhaps you could get a developer to have a look at the available function modules for CFX* and see if there'e something you could build (e.g. using CFX_API_DOC_MATERIAL_WRITE - use the Webservicebrowser to find the other CFX* functions).
However, I'm not sure what exactly are you trying to achieve and why? To have all (or a subset) of material records available and updated in cFolders at all times? How would you structure these in cFolders without making it difficult to browse?
Also see Badri's comment about cFolders 4.0 (which I'm going to look into too - Thanks Badri, I'd missed that ) perhaps that also allows you to pull in materials 'on demand'?? -
OGG-01038 Cannot fetch required data from table
hello i have the following error
OGG-01038 Cannot fetch required data from table SIEBEL.S_EVT_MAIL due to missing key columns.
here is my extract policy
EXTRACT ext3
setenv NLS_LANG=AMERICAN_AMERICA.AL32UTF8
USERID ggs_owner, PASSWORD *******
TRANLOGOPTIONS ALTARCHIVELOGDEST primary instance SBPRD1 /oraarch1/SBPRD, ALTARCHIVELOGDEST primary instance SBPRD2 /oraarch2/SBPRD
FETCHOPTIONS FETCHPKUPDATECOLS
DBOPTIONS ALLOWUNUSEDCOLUMN
RMTHOST i**********, MGRPORT 7809
RMTTRAIL /home/oracle/MIGRATE_SBPRD_ACFS/ggs/dirdat/ss
DISCARDFILE discard.txt, APPEND
DDL INCLUDE ALL
TABLE IT.*;
TABLE SIEBEL.S_EVT_MAIL,KEYCOLS(ROW_ID);
TABLE SIEBEL.*;
TABLE APDBA.*;
TABLE EXECUTOR.*;
TABLE FORTHNOVA.*;
TABLE MIGRATOR.*;
TABLE REPORTER.*;
thanks a lot
Edited by: user1165357 on Nov 24, 2011 1:06 PM
Edited by: user1165357 on Nov 24, 2011 1:07 PMno pk or unique key
SQL> desc SIEBEL.S_EVT_MAIL
Name Null? Type
ROW_ID NOT NULL VARCHAR2(15 CHAR)
CREATED NOT NULL DATE
CREATED_BY NOT NULL VARCHAR2(15 CHAR)
LAST_UPD NOT NULL DATE
LAST_UPD_BY NOT NULL VARCHAR2(15 CHAR)
MODIFICATION_NUM NOT NULL NUMBER(10)
CONFLICT_ID NOT NULL VARCHAR2(15 CHAR)
PAR_ROW_ID NOT NULL VARCHAR2(15 CHAR)
EMAIL_ATT_FLG NOT NULL CHAR(1 CHAR)
EMAIL_FORWARD_FLG NOT NULL CHAR(1 CHAR)
MSG_MANL_EDTD_FLG NOT NULL CHAR(1 CHAR)
BODY_LANG_ID VARCHAR2(5 CHAR)
CNTNT_CTG_DB_ID VARCHAR2(15 CHAR)
EMAIL_BCC_LINE VARCHAR2(2000 CHAR)
EMAIL_CC_LINE VARCHAR2(2000 CHAR)
EMAIL_RECIP_ADDR VARCHAR2(250 CHAR)
EMAIL_RECIP_NAME VARCHAR2(100 CHAR)
EMAIL_SNDR_ADDR VARCHAR2(250 CHAR)
EMAIL_SNDR_NAME VARCHAR2(250 CHAR)
EMAIL_TO_LINE VARCHAR2(2000 CHAR)
FORMAT_TYPE_CD VARCHAR2(30 CHAR)
MIME_CHAR_SET VARCHAR2(50 CHAR)
MSG_NUM VARCHAR2(200 CHAR)
EMAIL_BODY LONG
Maybe you are looking for
-
TS1538 iPod classic appears on my computer w/windows 8 but iTunes doesn't recognize the ipod
My computer with Windows 8 recognizes &shows my iPod classic, but won't sync or show as a device when I attempt to update or sync it on iTunes
-
Hi , Can anyone help me in finding out the FM for the List of all Products without specifying any input fields. Regards, Sijo.
-
PANIC: fatal region detected, run recovery
Hello I have a 20GB database file which I just created by adding around 10,000+ XML documents having the same schema. I wrote a Python script which traverses thru my directory for XML files and inserts it. It works fine till 1000s of document and the
-
A few years ago Jim Heid and Mike Matas had some blogs about printing collages of other pictures useing iPhoto. Has anyone had any success with this in iPhoto 08 - does this only work with the 20X30, or does this also apply to the 16X20. Any informat
-
[SOLVED]Installing from AUR dockbarx-shinybar-theme makepkg error
dockbarx-shinybar-theme]$ makepkg ==> Making package: dockbarx-shinybar-theme 1.3.1-2 (Tue Jul 15 17:33:07 EDT 2014) ==> WARNING: Using a PKGBUILD without a package() function is deprecated. ==> Checking runtime dependencies... ==> Checking buildtime