Advices about creating a datasource from an infoset query

Hi all,
i have to create a datasource with extraction from an infoset query in R3, i have many questions:
1- i have heard about the bad performance using a Datasource from an Infoset query, how can i improve this?
2- The infoset query doesnt exist in R3 Develop, but this exist in R3 Prod, what do i must to do? create a false infosetquery in R3 D, with just the same name of the info set query in R3 Prod? or what else?,
3- some material to improve this development about create datasources from an infoset query.
thanks guys!

Hi,
You can verywell use infoset query if you are doing following things
Join using Keyfields to retreive data from tables
If not using keyfields create index for those table fields  in those fields which will improve in accessing database
Try to use minimum of tables of small size dont try to join big tables like GLPCA and all.
Try to load small set of data like a period or month. Dont try for a year or so.
if your performance is good for aperiod you can go for a year.
If you are good in function module you can try function module in which you will have the option of specifying no of records to be selected usign package size.
Hope this helps for you.
Thanks,
Arun

Similar Messages

  • How to  create a datasource from a pool table ?

    Hi guys,
    Is there anyone who faced the same problem.
    I need to create an datasource from the table TIV5T to get texts in BW .
    This table is a pool table . When i want to create the DS in RSO2 i got the message :
    Only transparent tables and database views can be extracted
    I try to create a  projection vue, or use the standard vue  : same error.
    Any Idea ??
    Thank you .
    Dinah

    Hi DInah,
    Please go through the following threads.
    Re: How to extract data from a pool table?
    Datasource on Pool Table
    Regards,
    Ravikanth

  • Advice about creating a website(s) with a .Mac Account - Newbie

    Hello,
    I need some advice about creating a website with a .Mac Account.
    The Situation
    For my media course we need to create a short film, then brand it, and distribute it along with press releases and press packs. No other group have thought about setting up a website - where it has all the company details, info about the Cast, Crew, Film, and maybe a link to the finished product.
    The Problem.
    I'm the only one who has an Apple Laptop. We don't want to use the computer at the university as A LOT of students use them and every month or so they're given a clean install.
    I've designed my own 'virtual series' website to showcase my screen writing work, but I haven't uploaded it. I was waiting until I finish university in the summer before I activated my 1 year .Mac Account. I have a .Mac Account, which has still got to be activated.
    How do i go about creating my 'video production' site, if I've already got my own created and sitting in iWeb?
    How could I just 'launch/upload' my 'video production' site without putting my own up as well?
    Should we buy a separate .Mac Account?
    Oh, and what would the address be, so that we can put them on business cards.
    THANKS for any and all help.

    Lots of questions... you've come to the right place!
    Here are some links that might be helpful to you:
    http://web.mac.com/varkgirl/iWeb/iWebFAQ
    http://web.mac.com/mark8heaton/iWeb/DomainSeparation/SiteSeparation.html

  • BW Datasource on an Infoset Query based on 2 DSO Active tables

    Hello,
    We have created a Datasource in the BW system over an Infoset query (through SQ02) built on 2 DSO tables.
    In RSA3, this datasource is working fine - it shows us some data (close to 1000 records).
    The issue is when i try and run a infopackage for the datasource.
    The request times out and no records are fetched.
    I have added all the users to the Infoset user group - so, no issue with the authorization.
    IDoc Statuses changes from 53 --> 62 --> 64 --> 50.
    The extraction process does not complete - does not get the no. of records sent.
    Can anybody point to a probable cause here?
    Thank you.

    IDoc logs do not say much.
    Status Record 53: IDoc was successfully transferred
    Status Record 62: IDoc passed to application; Direct call started
    Status Record 64: IDoc ready to be transferred to application; No filter, no conversion
    Status Record 50: IDoc added
    Then, it does not go any further.
    We're using the Datasource on the Infoset query because we could not use the traditional BW infoset.
    Datsource is used to feed a DSO as we directly could not use anything else (we're trying with an expert routine also).
    The issue is that the base DSO tables are huge and querying on them (using SELECT) is taking a very long time.
    So, we thought of using an Infoset to create a view and then populatet he data.
    In an traditional infoset, we could not specify a condition with a range. So, the infoset query through SQ02.
    I have not tried using an APD, but that might be a good option.
    Only thing, we'll have to use a Direct DSO - which i am not sure will satisfy our requirement.
    Thank you.

  • Select distinct from an infoset query

    Hello
    I need to select distinct / delete duplicate from an infoset query created thru SQ02.
    Please let me to know how this can be done?
    Many thanks in advance!
    regards
    Sanjyot

    Hi,
    You can verywell use infoset query if you are doing following things
    Join using Keyfields to retreive data from tables
    If not using keyfields create index for those table fields  in those fields which will improve in accessing database
    Try to use minimum of tables of small size dont try to join big tables like GLPCA and all.
    Try to load small set of data like a period or month. Dont try for a year or so.
    if your performance is good for aperiod you can go for a year.
    If you are good in function module you can try function module in which you will have the option of specifying no of records to be selected usign package size.
    Hope this helps for you.
    Thanks,
    Arun

  • When we would create genric extractor on a infoset query

    hi  All,
    we have infoset queries inour R/3 But very confused whether i should i go for generic with querry or genric with views.
    Actually the scenario is I have the insfoset query on logical data base
    I can create a generic extractor with view from the tables used by above infoset query. but there are structures in that infoset query .
    so to create an generic extractor with  view on a structure  is not possible neither a function module is  possible.
    last option is creating generic extractor with view and enhancing the extractor with  required fields form structure.
    but i feel it would be very easy creating a generic with the same infoset querry
    can u give me suggestion pls
    All the answers  would be appreciated by points
    Thanks and Regards,
    D

    Hi...
    SAP Query / InfoSet Query is a powerful tool for defining reports in the SAP
    source systems and supports different forms of reporting. It allows users to define
    and execute their own reports on data in the SAP system without any knowledge
    of the ABAP programming language.
    Reports are structured by entering texts and selecting fields and options in SAP
    Query. The relevant fields can be selected more easily using InfoSets (before
    release 4.6C, InfoSets were known as functional areas).
    InfoSets are viewed as DataSources. These data sources can be used for extracting into SAP BW.
    To create an InfoSet from the DataSource definition, perform these steps:
    1. Fill out all the required entry fields (application component, descriptions).
    2. Choose Extraction from Query.
    3. Choose Save. A new screen is displayed.
    4. Assign a name for your InfoSet and choose InfoSet Maintenance.
    5. In the screen that follows, choose Create.
    6. Select the data source (DB tables/views, joins, logical DB, and so on).
    7. Define the field groups and assign the fields
    An InfoSet is a special view of a dataset (logical database, table join, table,
    sequential file) that is used by SAP Query as a data source. InfoSets, therefore,
    determine the tables or fields in these tables that can be referenced by a report. In
    most cases, InfoSets are based on logical databases.
    SAP Query features a component for maintaining InfoSets. When you create an
    InfoSet, a data source in an application system is selected. SAP Query is relevant
    for the Business InformationWarehouse because it allows you to define the extract
    structure by selecting fields in a logical database, table join or other datasets in the form of an InfoSet. In this way, you can use the generic data extraction function for master or transaction data from any InfoSet. When you do so, a query is created for an InfoSet that retrieves data and transfers it to the generic extractor.
    InfoSets represent an additional, convenient data source for extracting data
    generically. Logical databases in all SAP applications, table joins and further
    datasets can be used as a data source for SAP BW.
    Hope this would help u
    with regards,
    hari kv

  • Crystal report from SAP infoset query

    Hi All,
    I am facing a problem in a crystal report which is based on Infoset query. When I run the report after passing the parameters it gives me an error "Database error occured" "Parameter field value does not exists" "RFC Closed"
    But if I run the same Infoset query from SQ01 I am able to run it with same paramenter and it returns many records.
    To be very precise I am running the best practice crystal report "Cost Analysis - Planned vs. Actual Order Costs" which is based on infoset query CO_OM_CA_20_Q1.
    It throws me error that "Controlling Area does not exists".
    Did anyone faced similar problem?
    Best Regards,
    Chetan

    Hi,
    log into your SAP ERP system using the SAP GUI and choose in the SAP Menu the following path:
    SAP Menu -> Accounting -> Controlling -> Cost Cetner Controlling ->Environment->Set Controlling Area.
    Set the desired controlling area for your user there (DO NOT FORGET TO CLICK ON THE DISKETTE ICON) and try again.
    Regards,
    Stratos

  • Creating a datasource from images taken from MJPEG/JPEG camera

    Hy there...
    I'm trying to create a JMF Processor from a datasource which should get images from an Video over IP camera (JPEG/MJPEG)...
    I used as example: http://java.sun.com/products/java-media/jmf/2.1.1/solutions/JVidCap.html, but is seems that I don't do smth right...
    Here are my datasource and my stream classes.
    mJPEGDataSource.java
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package com.itmc.media.jmf;
    import java.io.IOException;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import javax.media.MediaLocator;
    import javax.media.Time;
    import javax.media.protocol.PushBufferDataSource;
    import javax.media.protocol.PushBufferStream;
    * @author [email protected]
    * @urlexample: http://www.cs.odu.edu/~cs778/spring04/lectures/jmfsolutions/DataSource.java
    * @urlexample: http://java.sun.com/products/java-media/jmf/2.1.1/solutions/ScreenGrabber.html
    public class mJPEGDataSource extends PushBufferDataSource {
        private Logger logger = null;
        protected boolean started = false, connected = false;
        protected mJPEGStream[] streams = null;
        protected mJPEGStream stream = null;
        protected Time duration = DURATION_UNBOUNDED;
        protected Object[] controls = new Object[0];
        public Thread thread = null;
        public mJPEGDataSource() {
            logger = Logger.getAnonymousLogger();
            logger.setLevel(Level.INFO);
            logger.log(Level.INFO, "Createted mJPEGDataSource.");
        public mJPEGDataSource(MediaLocator locator) {
            this();
            streams = new mJPEGStream[1];
            stream = streams[0] = new mJPEGStream(locator, false);
            logger.log(Level.INFO, "Createted mJPEGDataSource from " + locator.toString() + ".");
        public mJPEGDataSource(MediaLocator locator, boolean usemjpeg) {
            this();
            streams = new mJPEGStream[1];
            stream = streams[0] = new mJPEGStream(locator, usemjpeg);
            logger.log(Level.INFO, "Createted mJPEGDataSource (" + (usemjpeg?"m":"") + "jpeg) from " + locator.toString() + ".");
        @Override
        public PushBufferStream[] getStreams() {
            if (streams == null) {
                streams = new mJPEGStream[1];
                stream = streams[0] = new mJPEGStream(getLocator(), true);
            return streams;
        @Override
        public String getContentType() {
            if (!connected) {
                logger.log(Level.WARNING, "DataSource is not connected yet.");
    //            throw new UnsupportedOperationException("DataSource is not connected yet.");\
                return null;
            return "raw";
        @Override
        public void connect() throws IOException {
            connected = true;
            logger.log(Level.INFO, "mJPEGDataSource connected.");
        @Override
        public void disconnect() {
            try {
                if (started) stop();
            } catch (IOException e) {
                logger.log(Level.WARNING, null, e);
            connected = false;
            logger.log(Level.INFO, "mJPEGDataSource disconnected.");
        @Override
        public void start() throws IOException {
            if (!connected) {
                logger.log(Level.WARNING, "DataSource cannot start. It is not connected yet.");
    //            throw new UnsupportedOperationException("DataSource cannot start. It is not connected yet.");
                return;
            logger.log(Level.INFO, "mJPEGDataSource started.");
            started = true;
            stream.start();
        @Override
        public void stop() throws IOException {
            if (!connected || !started) return;
            logger.log(Level.INFO, "mJPEGDataSource stoped.");
            started = false;
            stream.stop();
        @Override
        public Object getControl(String arg0) {
            return null;
        @Override
        public Object[] getControls() {
            return controls;
        @Override
        public Time getDuration() {
            return duration;
    }and
    mJPEGStream
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package com.itmc.media.jmf;
    import com.itmc.media.frame.grabber.mjpegVioIPGrabber;
    import java.awt.Dimension;
    import java.awt.image.BufferedImage;
    import java.io.IOException;
    import java.util.ResourceBundle.Control;
    import javax.media.Buffer;
    import javax.media.Format;
    import javax.media.MediaLocator;
    import javax.media.format.RGBFormat;
    import javax.media.format.VideoFormat;
    import javax.media.protocol.BufferTransferHandler;
    import javax.media.protocol.ContentDescriptor;
    import javax.media.protocol.PushBufferStream;
    * @author dr
    public class mJPEGStream extends mjpegVioIPGrabber implements PushBufferStream, Runnable{
        protected ContentDescriptor cd = new ContentDescriptor(ContentDescriptor.RAW);
        protected RGBFormat rgbFormat = null;
        protected boolean mjpeg = false, running = false;
        protected BufferedImage image = null;
        protected Dimension size = new Dimension(320, 280);
        protected int maxDataLength, frameRate = 0x1f, seqNo = 0;
        protected int data[];
        protected Thread thread = null;
        protected Control controls[] = new Control[0];
        protected BufferTransferHandler transferHandler;
        public mJPEGStream(MediaLocator locator, boolean usemjpeg) {
            super(locator.toString(), null);
            this.mjpeg = usemjpeg;
            this.connect();
            this.disconnect();
            maxDataLength = size.width *  size.height * 3;
            rgbFormat = new RGBFormat(
                        size,
                        maxDataLength,
                        Format.intArray,
                        frameRate,
                        32,
                        0xFF0000, 0xFF00, 0xFF,
                        1,
                        size.width,
                        VideoFormat.FALSE,
                        Format.NOT_SPECIFIED
            data = new int[maxDataLength];
        public Format getFormat() {
            return rgbFormat;
        public void read(Buffer buffer) throws IOException {
            synchronized (this) {
                Object outdata = buffer.getData();
                if (outdata == null || outdata.getClass() != Format.intArray || ((int[])outdata).length < maxDataLength) {
                    outdata = new int[maxDataLength];
                    buffer.setData(outdata);
                buffer.setFormat(rgbFormat);
                buffer.setTimeStamp( (long)(seqNo * (1000 / frameRate) * 1000000) );
                this.connect();
                BufferedImage im = this.readJPEG();
                this.disconnect();
                im.getRGB(0, 0, size.width, size.height, (int[])outdata, 0, size.width);
                buffer.setSequenceNumber(seqNo);
                buffer.setLength(maxDataLength);
                buffer.setFlags(Buffer.FLAG_KEY_FRAME);
                buffer.setHeader(null);
                seqNo++;
        public void setTransferHandler(BufferTransferHandler handler) {
            synchronized(this) {
                transferHandler = handler;
                notifyAll();
        public ContentDescriptor getContentDescriptor() {
            return cd;
        public long getContentLength() {
            return LENGTH_UNKNOWN;
        public boolean endOfStream() {
            return false;
        public Object[] getControls() {
            throw new UnsupportedOperationException("Not supported yet.");
        public Object getControl(String arg0) {
            throw new UnsupportedOperationException("Not supported yet.");
        @Override
        public void run() {
            throw new UnsupportedOperationException("Not supported yet.");
        @Override
        public void start() {
            synchronized(this) {
                this.running = true;
                if (thread.isAlive()) return;
                thread = new Thread(this);
                thread.start();
        @Override
        public void stop() {
            synchronized (this) {
                this.running = false;
    mjpegVioIPGrabber is a class written by me which till now worked perfectly.
    I init the processor like this:
        public boolean open(Object source) {
            try {
                logger.log(Level.INFO, "Trying to create processor from " + source.getClass().getName() + ".");
                if (source instanceof String)
                    p = Manager.createProcessor(new MediaLocator((String)source));
                else if (source instanceof MediaLocator)
                    p = Manager.createProcessor((MediaLocator)source);
                else {
                    //p = Manager.createProcessor();
                    p = Manager.createProcessor((DataSource)source);
                if (p == null) {
                    logger.log(Level.SEVERE, "Unsuported data type to create a Processor");
                    return false;
            } catch (Exception e) {
                logger.log(Level.SEVERE, "Failed to create jmfProcessor from given datasource.");
                return false;
            logger.log(Level.INFO, "Processor created");
            p.addControllerListener(this);
            p.configure();
            if (!waitForState(p.Configured)) {
                logger.log(Level.SEVERE, "Failed to configure the processor.");
            p.setContentDescriptor(null);
            TrackControl tc[] = p.getTrackControls();
            if (tc == null) {
                logger.log(Level.WARNING, "Failed to obtain track controls from processor.");
                return false;
            if (this.codecs != null) {
                TrackControl videoTrack = null;
                for (int i = 0; i <  tc.length; i++) {
                    if (tc.getFormat() instanceof VideoFormat) {
    videoTrack = tc[i];
    vf = (VideoFormat) videoTrack.getFormat();
    break;
    if (videoTrack == null) {
    logger.log(Level.WARNING, "The input media does not contain a video track.");
    return false;
    try {
    Codec codec[] = { null, null };
    videoTrack.setCodecChain(codec);
    } catch (UnsupportedPlugInException e) {
    logger.log(Level.SEVERE, "The processor does not supprt efects: " + e.toString());
    //return false;
    p.prefetch();
    if (!waitForState(p.Prefetched)) {
    logger.log(Level.SEVERE, "Failed to realize the processor");
    return false;
    if ((vc = p.getVisualComponent()) == null) {
    vc = null;
    logger.log(Level.SEVERE, "Failed to get processor's Visual Component.");
    return false;
    if ((cc = p.getControlPanelComponent()) == null) {
    cc = null;
    logger.log(Level.WARNING, "Failed to get processor's Control Panel Component.");
    p.start();
    return true;
    }and this is also working fine.
    I don't get any errors, yet the code does absolutely nothing, and my loggers keep bugging me abut DataSource that is not connected.
    +13.04.2008 23:54:33 com.itmc.media.jmf.mJPEGDataSource <init>+
    +INFO: Createted mJPEGDataSource.+
    +13.04.2008 23:54:33 com.itmc.media.jmf.mJPEGDataSource <init>+
    +INFO: Createted mJPEGDataSource (mjpeg) from http://192.168.2.5/now.jpg?snap=spush.+
    +13.04.2008 23:54:33 com.itmc.media.jmf.JmfProcessorViewer open+
    +INFO: Trying to create processor from com.itmc.media.jmf.mJPEGDataSource.+
    +13.04.2008 23:54:33 com.itmc.media.jmf.mJPEGDataSource getContentType+
    +WARNING: DataSource is not connected yet.+
    +13.04.2008 23:54:34 com.itmc.media.jmf.mJPEGDataSource getContentType+
    +WARNING: DataSource is not connected yet.+
    +13.04.2008 23:54:34 com.itmc.media.jmf.JmfProcessorViewer open+
    +INFO: Processor created+
    +13.04.2008 23:54:34 com.itmc.media.jmf.mJPEGDataSource start+
    +WARNING: DataSource cannot start. It is not connected yet.+
    +13.04.2008 23:54:34 com.itmc.media.jmf.mJPEGDataSource start+
    +WARNING: DataSource cannot start. It is not connected yet.+
    +13.04.2008 23:54:37 com.itmc.media.jmf.mJPEGDataSource start+
    +WARNING: DataSource cannot start. It is not connected yet.+
    Please help. I have to finish the project until this friday, and this is killing me. I have no ideea what's causing this.
    I never used JMF until now, and all I did was based on examples.
    If you can help please explain as if I were a little baby. Code example would be soooooo apreciated.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    OK... Forget what I've told you above.
    After reading a little more and understanding some stuff, I managed to pull this out:
    DataSource.java
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package com.itmc.media.protocl.http;
    import javax.media.Time;
    import javax.media.protocol.*;
    import java.io.IOException;
    import javax.media.MediaLocator;
    * @author [email protected]
    * (c) http://itmediaconnect.ro
    public class DataSource extends PushBufferDataSource {
        protected Object [] controls = new Object[0];
        protected boolean started = false;
        protected String contentType = "raw";
        protected boolean connected = false;
        protected Time duration = DURATION_UNBOUNDED;
        protected HttpStream [] streams = null;
        protected HttpStream stream = null;
        public DataSource() {
        public DataSource(MediaLocator locator) {
            streams = new HttpStream[1];
            stream = streams[0] = new HttpStream(locator);
        public String getContentType() {
         if (!connected){
                System.err.println("Error: DataSource not connected");
                return null;
         return contentType;
        public void connect() throws IOException {
          if (connected)
                return;
          connected = true;
        public void disconnect() {
         try {
                if (started)
                    stop();
            } catch (IOException e) {}
         connected = false;
        public void start() throws IOException {
         // we need to throw error if connect() has not been called
            if (!connected)
                throw new java.lang.Error("DataSource must be connected before it can be started");
            if (started)
                return;
         started = true;
         stream.start(true);
        public void stop() throws IOException {
         if ((!connected) || (!started))
             return;
         started = false;
         stream.start(false);
        public Object [] getControls() {
         return controls;
        public Object getControl(String controlType) {
         return null;
        public Time getDuration() {
         return duration;
        public PushBufferStream [] getStreams() {
         if (streams == null) {
             streams = new HttpStream[1];
             stream = streams[0] = new HttpStream(getLocator());
         return streams;
    }and
    HttpStream.java
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package com.itmc.media.protocl.http;
    import com.itmc.media.VideoOverIP.mjpegGrabber;
    import java.awt.*;
    import java.awt.image.BufferedImage;
    import javax.media.*;
    import javax.media.format.*;
    import javax.media.protocol.*;
    import java.io.IOException;
    * @author [email protected]
    * (c) http://itmediaconnect.ro
    public class HttpStream extends mjpegGrabber implements PushBufferStream, Runnable {
        protected ContentDescriptor cd = new ContentDescriptor(ContentDescriptor.RAW);
        protected int maxDataLength;
        protected int [] data;
        protected Dimension size;
        protected RGBFormat rgbFormat;
        protected boolean started;
        protected Thread thread;
        protected float frameRate = 7.0f;
        protected BufferTransferHandler transferHandler;
        protected Control [] controls = new Control[0];
        protected BufferedImage im = null;
        protected boolean mjpeg = false;
        public HttpStream(MediaLocator locator) {
            super(locator.toString());
            System.out.println(locator.toString());
            try {
                super.connect();
                im = super.readJPEG();
                super.disconnect();
            } catch(Exception e) {
            if (im == null) {
                try {
                    super.connect();
                    im = super.readMJPEG();
                    mjpeg = true;
                    super.disconnect();
                } catch(Exception e) {
         size = new Dimension(im.getWidth(), im.getHeight());
         maxDataLength = size.width * size.height * 3;
         rgbFormat = new RGBFormat(
                size, maxDataLength,
                Format.intArray,
                frameRate,
                32,
                0xFF0000, 0xFF00, 0xFF,
                1, size.width,
                VideoFormat.FALSE,
                Format.NOT_SPECIFIED
            System.out.println(rgbFormat.getFrameRate());
         // generate the data
         data = new int[maxDataLength];
         thread = new Thread(this, "Htmjpeg Grabber");
         * SourceStream
        public ContentDescriptor getContentDescriptor() {
         return cd;
        public long getContentLength() {
         return LENGTH_UNKNOWN;
        public boolean endOfStream() {
         return false;
         * PushBufferStream
        int seqNo = 0;
        public Format getFormat() {
         return rgbFormat;
        public void read(Buffer buffer) throws IOException {
         synchronized (this) {
                super.connect();
             Object outdata = buffer.getData();
             if (outdata == null || !(outdata.getClass() == Format.intArray) ||
              ((int[])outdata).length < maxDataLength) {
              outdata = new int[maxDataLength];
              buffer.setData(outdata);
             buffer.setFormat( rgbFormat );
             buffer.setTimeStamp( (long) (seqNo * (1000 / frameRate) * 1000000) );
             BufferedImage bi = mjpeg?super.readMJPEG():super.readJPEG();
             bi.getRGB(0, 0, size.width, size.height, (int[])outdata, 0, size.width);
             buffer.setSequenceNumber( seqNo );
             buffer.setLength(maxDataLength);
             buffer.setFlags(Buffer.FLAG_KEY_FRAME);
             buffer.setHeader( null );
             seqNo++;
                if (!mjpeg) super.disconnect();
        public void setTransferHandler(BufferTransferHandler transferHandler) {
         synchronized (this) {
             this.transferHandler = transferHandler;
             notifyAll();
        void start(boolean started) {
         synchronized ( this ) {
             this.started = started;
             if (started && !thread.isAlive()) {
              thread = new Thread(this);
              thread.start();
             notifyAll();
         * Runnable
        public void run() {
         while (started) {
             synchronized (this) {
              while (transferHandler == null && started) {
                  try {
                   wait(1000);
                  } catch (InterruptedException ie) {
              } // while
             if (started && transferHandler != null) {
              transferHandler.transferData(this);
              try {
                  Thread.currentThread().sleep( 10 );
              } catch (InterruptedException ise) {
         } // while (started)
        } // run
        // Controls
        public Object [] getControls() {
         return controls;
        public Object getControl(String controlType) {
           try {
              Class  cls = Class.forName(controlType);
              Object cs[] = getControls();
              for (int i = 0; i < cs.length; i++) {
                 if (cls.isInstance(cs))
    return cs[i];
    return null;
    } catch (Exception e) {   // no such controlType or such control
    return null;
    }I will not show you the grabber. I've seen a dousin of grabbers on this forum. What I can tell you is, that the two classes must be placed in a package named like this: name1.name2.name3......media.protocl.http (i.e. com.itmc.media.protocol.http).
    To test it use: java JMStudio http://cameraaddress (i.e. java JMStudio http://192.168.2.5/now.jpg)
    Reference:
    + http://www.onjava.com/pub/a/onjava/2002/12/23/jmf.html
    + http://java.sun.com/products/java-media/jmf/2.1.1/solutions/ScreenGrabber.html
    I think this will be more than enough to solve all the problems you have in this type of matter.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Question about creating JPEG still from movie clip?

    The aperture help says that a frame will be copied as part of a stack .. But I do not see this to be the case. When I make a frame from a movie, I don't see ANYTHING different in the browser window. Please help!

    Yes, you can do that, but it's a little difficult to advise
    you the best way with the information provided:
    Can you clarify:
    Do you want to play the main clip while the thumbs continue
    to load... or do you want to preload the thumbs, then play the main
    clip, then do the tweening when the main timeline reaches the end?
    This way is easy enough.
    If you want them to continue to load and then do the tweening
    at the end of the main timeline (e..g with a stop() on the last
    frame) then its also not complicated, but you need to cover the
    situation where the loading of the thumbs may not yet have
    completed by that time (perhaps the risk is low if the timeline is
    long, but its a sensible thing to address regardless).
    Also consider whether you want anything to be hidden (i.e.
    _visible=false) at any point - e.g. before the thumbs have finished
    loading.
    As a starting point I suggest you would probably put the code
    after
    removeMovieClip("thumbLoading");
    and before the last curly bracket (" } ") in a separate
    function on the main timeline, e.g.
    function tweenThumbs(){
    //code here
    (its actually not easy to be sure, because I can't visualize
    what exactly it does)
    what you would do next depends on the answers to the above
    questions.

  • Dynamically create Datatable result from user defined query

    I have seen some close solutions, but not 100% for the following:
    1. JSF Datatable exists in JSP, but no columns defined
    2. Execute query and populate results to JSF with headings and data
    3. Binding this data to the Datatable
    I have managed to created column headers (facets) but can't identify how to populate the rows based on the resultset. If one does not have a resultset but rather a collection of domain objects, how does one bind the table to the displayable objects (domain) ?
    Thanks to the gifted one who leads me to enlightenment !
    -- The grass may be greener, but I'm looking for a maintenance free lawn.

    Hello,
    Congrats !!! you mamnaged to solve the problem.
    Please can you let me know how did u solve the problem as I'm also facing the same problem..
    Also another request Please can you let me know if there if any kind of good documentaion on jsf components as well as some examples.
    I'm using MyEclipse4.1
    Thanks for any help
    abhi

  • Datasource from a logical database.

    Hi all,
      I am in need of creating a datasource from a std.. Logical Database IMA in R/3. Is it possible to create a datasource directly from logical database or it is essential to find the base tables fetching data to the logical databse and look for the appropriate business content.
    Regards,
    Murali

    Thank you,
      The document helped me to create a Infoset.Can anyone share ur experience of creating a datasource using a INFoset which extracts data from a LDB. The LDB which i am supposed to use has few structures,hence, I am having some performance isssues which i believe a more elaborate better document can help me with.. The LDB I am looking for is IMA.
    Thanks in advance.

  • Invalid Extract Structure while creating a datasource

    Hello,
    I'm creating a datasource from a view. whenever i try to save it, it gives me an error saying that it is an invalid extract structure and that one of my fields is referenced to another table. After the threads on SDN, I think I need to remove this field from the view, activate my datasource, append my extract structure by adding the problem field and write an user exit to populate the field.
    I don't have any experience in writing an user exit. I would appreciate if anyone would guide in it. Here are the details of my view:
    View with 4 tables: EKBE, EKKO, EKPO AND EKKN
    so that i'll get the line items of the purchase orders with the fields that i need. I didn't see any business content datasource for this.
    problem field: DMBTR in EKBE table
    this is referenced to T001.
    How do i add this field in the extract structure and how do I write an user exit for this?
    Regards,
    Sam

    Hi,
    I am new to this foroum and BW module....
    I too am facing the same problem.
    I am creating a view from 2 tables VBAK and VBAP .
    I was having problem with currency fields NETWR, WAERK, NETPR. So i removed the currency fields. Still i am having same error of not being able to create my data source from the view i have made. It gives the error....
    Invalid extract structure template Z76_VEW_VBAK_VBP of DataSource Z76_DS_VIEW_VBAK_VBAP
    Message no. R8359
    Diagnosis
    You tried to generate an extract structure with the template structure Z76_VEW_VBAK_VBP. This operation failed, because the template structure quantity fields or currency fields, for example, field NETPR refer to a different table.
    Procedure
    Use the template structure to create a view or DDIC structure that does not contain the inadmissable fields.
    Can anyone help me out please.
    Thnaks
    Mansi

  • Creating generic datasource using function module in R/3 4.6c

    Hi,
    I am not able to see the option (in TC RSO2) to create generic datasource using function module in R/3 4.6c. Is there any special plug in or some SAP Note to be applied to get the option ?
    Waiting for a quick response.
    Thanks and Regards,
    Deepak

    Hi Sat,
    Thanks for the reply.
    I know that creating generic datasource from function module is available in R/3 4.7.
    In 4.6c version there are only two options available. They are Extraction from DB View and Extraction from SAP Query.
    The third option i.e. Extraction from Function Module is not available in 4.6c. I wanted to know if there is any plugin that needs to be installed to get this option.
    Thanks and Regards,
    Deepak

  • Creat acquisition asset from affiliated company

    Hi everybody
    I have some question about creating acquisition asset from affiliated company
                When I creat acquisition asset from affiliated company, it appear wrong "contact your system administrater" (According to its Customizing definition, area 30 has to adopt the book values from area 01. However, one of these areas is defined so that when posting an acquisition from an affiliated company, the values for this area have to be entered gross.  The other area is not defined in this way.  This combination is not allowed)
            You can help me to find wrong and creat asset from affiliated company.
    Thanks so much. I hope you'll send message for me as soon as possible.
    Reguards;
    Ngocpt

    Hi
    Functionally its noting but purchasing of an asset from a group company.
    In SAP few requirements are mandatory
    1] Trading Partner concept should exists, which will run in Group chart of accounts (check ur FS00)
    2] In AO90 a field named Acquisation from affilated company - give a GL Account for asset purchase. Its not necessary to give a different GL Account from the one for regular purchase of assets
    Revert back for further clarifications
    Warm Regards
    Bala

  • Error while creating report from BW SAP Query

    Hi
    While creating a report from BW SAP Query, I get the following error.
    "An error occured while creating a report template.No error"
    On opening the same query in BEx Analyser, i can see the fields and output.
    Help me on this issue.
    Thanks
    Eswari.

    Hello Garett,
    I've the same problem and have tried now to get the data with MDX-Query. The error message below appears:
    'No RFC-authorization for function group  /Crystal/MDX for User ...'
    So it seems to be a authorization problem. Which special authorization must be assigned to Crystal users in SAP BI?
    Thank you for your help.
    best regards
    Oliver

Maybe you are looking for