Help needed to load different xml playlists by clicking button

Hi there,
I have a series of buttons, when i double click a button i want to load a new xml file
I have some functioning code, but when i click on more than one button per run of the application, it will only use the first xml that was clicked / loaded.
Does anyone have any suggestions I would be really grateful
Thanks!
// Music player populated via XML formatted data with associated .mp3 audio files
// songs to play structured as an XMLList class
// displays artist and song title in the interface
cover.visible = false;
cover2.visible = false;
// song list base on an XMLList class
var songList:XMLList;
// total number of songs in list
var songsTotal:Number;
// sound class variable
var sound:Sound;
// sound channnel variable to play, pause and stop the sound
var soundChannel:SoundChannel;
// holds a reference to the current song playing
var currentSong:Number = 0;
// variable to store the song position when paused
var songPosition:Number;
// flag to check if current song is paused
var songPaused:Boolean;
//  loader for XML via a URL
var XMLLoader:URLLoader = new URLLoader();
// various buttons to control songs via the interface
next_btn.addEventListener(MouseEvent.CLICK, onNext);
prev_btn.addEventListener(MouseEvent.CLICK, onPrev);
pause_btn.addEventListener(MouseEvent.CLICK, onPause);
play_btn.addEventListener(MouseEvent.CLICK, onPlay);
album1.doubleClickEnabled=true;
album2.doubleClickEnabled=true;
album1.addEventListener(MouseEvent.DOUBLE_CLICK, loadalbum1);
album2.addEventListener(MouseEvent.DOUBLE_CLICK, loadalbum2);
// check the data has loaded correctly
XMLLoader.addEventListener(Event.COMPLETE, processXML);
// this function processes the XML data
function processXML(e:Event):void {
// create an XML playlist structure
var anXMLplayList:XML = new XML(e.target.data);
// associate the playlist songs with the internal song list
songList = anXMLplayList.SONG;
// set the total songs to those found in the XML data
songsTotal = songList.length();
// remove the eventlistener and restore variables
XMLLoader.removeEventListener(Event.COMPLETE, processXML);
XMLLoader = null;
// this function starts the first song in the list
// when the play_btn is pressed via the onPlay function
function playSong(aSong:Number):void {
// variables for the Title, Artist and associated song in the song list
var aTitle = songList[aSong].@TITLE;
var anArtist = songList[aSong].@ARTIST;
var aURL = songList[aSong].@URL;
// populate the interface with the current song data
title_txt.text = aTitle;
artist_txt.text = anArtist;
// check to see if the sound channel is active
if (soundChannel) {
  soundChannel.stop();
  soundChannel.removeEventListener(Event.SOUND_COMPLETE, onNext);
// create a new sound object
sound = new Sound();
// load the sound from the URL song data
sound.load(new URLRequest(aURL));
// activate the sound channel via the play method
soundChannel = sound.play();
// when the current songh completes - play the next song via the onNext function
soundChannel.addEventListener(Event.SOUND_COMPLETE, onNext);
// this function plays the next song in the list
function onNext(e:Event):void {
// increment the current song
currentSong++;
// reset the current song if no more to play
if (currentSong>=songsTotal) {
  currentSong=0;
// else play the current song via the playSong method
playSong(currentSong);
// this function plays the previous song in the song list
function onPrev(e:MouseEvent):void {
currentSong--;
if (currentSong<0) {
  currentSong = songsTotal-1;
playSong(currentSong);
// this function pauses the current song playing and sets the boolean flag
// accordingly
function onPause(e:MouseEvent):void {
if (soundChannel) {
  songPosition = soundChannel.position;
  soundChannel.stop();
  songPaused=true;
// this function plays the current song or restarts a paused song
function onPlay(e:MouseEvent):void {
if (songPaused) {
  soundChannel = sound.play(songPosition);
  songPaused=false;
} else if (!soundChannel) {
  playSong(currentSong);
function loadalbum1(e:Event):void {
cover.visible = true;
cover2.visible = false;
// load the XML formated playlist
XMLLoader.load(new URLRequest("playlist1.xml"));
function loadalbum2(e:Event):void {
cover2.visible = true;
cover.visible = false;
// load the XML formated playlist
XMLLoader.load(new URLRequest("playlist2.xml"));

You should try to limit the code you post to what is relevant to the problem... it is hard to track things down, especially when your code is not formatted properly with indentations.
I didn't search farther than finding that you remove the event listener for the URLLoader...
XMLLoader.removeEventListener(Event.COMPLETE, processXML);
so if you remove it after you load the first file and do not restore one for it, then chances are you don't "processXML" any more than the first file you load

Similar Messages

  • Help needed to load XML into DB table

    I need some serious help if someone can spare the time. I am completely new to XML and don't really understand it yet but I need to be able to load an XML file (example) below.
    I want to load this into a table that would look like the following:
    CHAPTER_TITLE    DOC_HTML    DOC_TITLE
    Men's Health      494440          AAAAA
    Men's Health      496812          BBBBB
    etc....
    <?xml version=1.0 encoding=utf-8?>
    <BookCollections Quantity=1 Title=Emis Books Collection>
        <Book Folder=PILSS Title=Patient Support>
            <Chapter Title=Men''s Health>
                <Document DocHTML=494440 Title=AAAAA />
                <Document DocHTML=496812 Title=BBBBB />
                <Document DocHTML=498923 Title=CCCCC />
                <Document DocHTML=499844 Title=DDDDD />
                <Document DocHTML=499901 Title=EEEEE />
            </Chapter>
        </Book>
    </BookCollections>I have read through the documentation I could find but I can't get it to work. I had a simple procedure which loaded the text file as a CLOB and then inserted it into an XMLTYPE column but even that wouldn't work. I would rather it loaded as above in seperate columns.
    Is there a simple example someone can help me out with?

    That is very close ORA_SID thank you. But I get the ORA-19025 error when I have more than one Chapter section. The example was a cut down version, ther real file has thousands of Chapters.
    e.g.
      1  insert into test2 values(xmltype(' <BookCollections Quantity="1" Title="Emis Books Collection">
      2  <Book Folder="PILSS" Title="Patient Support">
      3  <Chapter Title="Men''s Health">
      4              <Document DocHTML="494440" Title="AAAAA" />
      5              <Document DocHTML="496812" Title="BBBBB" />
      6              <Document DocHTML="498923" Title="CCCCC" />
      7              <Document DocHTML="499844" Title="DDDDD" />
      8              <Document DocHTML="499901" Title="EEEEE" />
      9              <Document DocHTML="500381" Title="FFFFF" />
    10              <Document DocHTML="500446" Title="GGGGG" />
    11              <Document DocHTML="500996" Title="HHHHH" />
    12          </Chapter>
    13          <Chapter Title="Contraception">
    14              <Document DocHTML="496815" Title="IIIII" />
    15              <Document DocHTML="496817" Title="JJJJJ" />
    16              <Document DocHTML="499547" Title="KKKKK" />
    17              <Document DocHTML="499550" Title="LLLLL" />
    18              <Document DocHTML="500473" Title="MMMMM" />
    19              <Document DocHTML="500704" Title="NNNNN" />
    20              <Document DocHTML="500813" Title="OOOOO" />
    21              <Document DocHTML="500995" Title="PPPPP />
    22              <Document DocHTML="500996" Title="QQQQQ" />
    23          </Chapter>
    24  </Book>
    25  </BookCollections>
    26* '))
    SQL> /
    1 row created.
    SQL> SELECT extractValue(xml_data, '/BookCollections/Book/Chapter/@Title') AS Chapter_Title,
      2  extractValue(value(em), '/Document/@DocHTML') AS Document_DocHTML,
      3  extractValue(value(em), '/Document/@Title') AS Document_Title
      4  FROM test2,table(XMLSequence(extract(xml_data,'/BookCollections/Book/Chapter/Document'))) em
      5  ;
    FROM test2,table(XMLSequence(extract(xml_data,'/BookCollections/Book/Chapter/Document'))) em
    ERROR at line 4:
    ORA-19025: EXTRACTVALUE returns value of only one nodeCan you help on this?

  • URGENT help needed in creating external xml video plalist. Please help!

    I was given an assignment to  create and external video playlist using an xml file.  I have never used  flash before, know nothing about encoding and all that was given to the  class in terms of instuctions was a short tutorial that has no  resources for troubleshooting.  We were given everything; the external  playlist file equipped with the video skin, the video list, actionscript  that loads the xml and the xml file.  We were told that all we need to  do is change the names of the videos in the xml file to match the names  of our videos.  I did that.  We were also told we needed to "name  target", but we were not informed on how to do this.  I have tried  everything, visited every tutorial and I cannot figure out how to get  this damn thing to work.  I cannot even get flash to load the xml file.  PLEASE HELP.
    Here is the xml file:
    <?xml version = "1.0" encoding = "i-8859-1"?>
    <playlist>
    <ADogWithoutABone
    flvurl="ADogWithoutABone.flv"
    desc="Hyper Wall First Video" />
    <Highway
    flvurl="Highway.flv"
    desc="Hyper Wall Second Video" />
    <PsychoBabble
    flvurl="PsychoBabble.flv"
    desc="Hyper Wall Third Video" />
    <SomethingElse
    flvurl="SomethingElse.flv"
    desc="Hyper Wall Fourth Video" />
    </playlist>
    I tried putting in the entire address of the file location, but it did nothing.
    Here is the actionscript in the flash file:
    var xmlLoader:URLLoader = new URLLoader();
    xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);
    xmlLoader.load(new URLRequest("playlistXML.xml"));
    function xmlLoaded(event:Event):void {
    var playlistXML:XML = new XML(event.target.data);
    var item:XML;
    for each(item in playlistXML.videoname) {
    trace("item: "+item.attribute("flvurl").toXMLString());
    myPlayList.addItem({label:item.attribute("desc").toXMLString(), data:item.attribute("flvurl").toXMLString()});
    //Select the first video
    myPlayList.selectedIndex = 0;
    //And automatically play it
    myPlayScreen.play(myPlayList.selectedItem.data);
    //Add a listener to detect when new video is selected and play it
    function listListener(event:Event) {
    myPlayScreen.play(event.target.selectedItem.data);
    myPlayList.addEventListener(Event.CHANGE, listListener);
    I  tried placing the full address of the xml file in, along with the file  address of the videos, but again it did nothing.  Everything is located  in the same file, and the videos in a sub file in that file. I tried  taking out the sub file and putting all the videos in the same file, but  it did nothing.  I am sure it's something very simple, but like I said I  have NO experience with this whatsoever. I am SO lost and DESPERATELY  need help. PLEASE someone SAVE MEEEE!
    Thanks

    It might be a crossdomain.xml problem.
    Please make sure that the server hosting the xml allows the domain where the swf is hosted.
    You can start with:
    <?xml version="1.0" encoding="utf-8" ?>
    <cross-domain-policy>
        <allow-access-from domain="*"/>
        <site-control permitted-cross-domain-policies="master-only"/>
    </cross-domain-policy>

  • Load different xml structure in single flash file

    Hi to all,
    How can i call different xml structures in single file..
    actually i am looking for 2 different menu galleries in single
    file.. first menu contains.. some 4 to 5 buttons.. done with this..
    in other flash file..having some of 4-5 buttons.. and these
    buttons.. to show in main flash file.. can i load 2 different swf
    files in single main file and with different xml structure please
    help me on this.. thanks in advance.
    Best Regards
    Satish Kumar Rajula

    yes, you can use one xml instance with an if-statement, but
    it's easier and cleaner to use different xml instances and
    different parsing code for each xml file loaded that has different
    structure.

  • Load different xml docs to same database table

    I have 2 different xml documents that contains the information about rows which should be loaded into a database table.
    File 1:
    <customer>
    <name>Company1</name>
    <city>Helsinki</city>
    </customer>
    File 2:
    <client>
    <clientname>Company2</clientname>
    <clientcity>Helsinki</clientcity>
    </client>
    The data in the 2 different files should be read and inserted as a row into the same database table.
    Instead of creating a java program for each xml file to insert the content into the database, I would like to first "translate" the content of the xml files and create a file for each xml file which uses the same tags, so that my java programs only reads the new "translated" files and inserts the data into the database.
    This means that when I receive a new xml file with different tags but information about a row that should be inserted into the same table, I just have to "translate" this file, and use the same java program to insert the new file data into the database.
    I would like to know which technology should be used to perform this task.

    XSLT is quite commonly used for this.
    Or, for more a formal approach, google 'xml "architectural forms"'
    Pete

  • Need to load multiple xml Files in ODI.

    I have successfully loaded on file by creating a topology for that xml file only.
    But I am facing issue when I created a variable based topology and now trying to load a different file.
    The variable based topology is like
    JDBC URL for XML Data Server is  :
         jdbc:snps:xml?f=#GLOBAL.GV_XML_FILENAME&re=MAIN&ro=false&case_sens=true&nobu=false&dod=true
    For physical schema i have created :
    SCHEMA : - #GLOBAL.GV_XML_PHYSICAL_SCHEMA
    SCHEMA (WORK) : #GLOBAL.GV_XML_PHYSICAL_SCHEMA
    Now I have created a package where I am initializing these tow variables first, and then calling the interface.
    The package gets executed successfully when same filename and same schema name is passed for which I have created a hardcoded dataserver and physical schema.
    Bue when I try to pass another xml file 2009D2.XML and a new  physical shcema, name 2009D , it gives error.
    ODI-1227: Task SrcSet0 (Loading) fails on the source XML connection Chrysler_var_ds.
    Caused By: java.sql.SQLException: unexpected token: 2009
      at com.sunopsis.jdbc.driver.xml.SnpsXmlStatementRedirector.executeQuery(SnpsXmlStatementRedirector.java:223)
      at com.sunopsis.jdbc.driver.xml.SnpsXmlStatement.executeQuery(SnpsXmlStatement.java:49)
      at com.sunopsis.jdbc.driver.xml.SnpsXmlSchema.initializeSchema(SnpsXmlSchema.java:1170)
    Please provide me any solution if any one of you have done this.
    Also provide me step if i am missing any.

    Thanks Alex, I was able to solve my issue with some help from your code. I rebuilt your valueObject class as a reference point to rebuild my arrays and parse the data into the grid. Works like a charm now. Thank you for your help. On a side note, I marked your blog as a regular read.
    ~ Ryan

  • Help needed in Loading Mutiple movies in ScrollPane

    Hi I am making video gallery using Action Script 3.0.I am
    loading some FLVs into movies on my stage using XML. I have
    on-click events on those movies.I have combined those all movies
    into one movie to put in the scroll pane. The movie is fine fitted
    in the scroll pane with the scrolls (which i needed )but the
    problem I have is that all the on click events which were on the
    individual movies are gone. The reason might be that because the
    on-click events were on individual movies, and movies are now
    combined in one. If anybody tells me how to load multiple
    movies(collectively) in the scroll pane, that can solve my problem
    because in that way movies can be inserted in the scroll pane
    without combining all the movie into one and events will stay there
    too.
    Any other suggestion will be also be appreciated.
    Please help me out in figuring out the solution of this
    problem.
    Thanks
    Anuj

    Hi,
    I am surprised with your steps. In APO, you want to load data from a particular infoobject from BW. Why did you create a specific extractor in SBIW???
    You have just reinvented the wheel... It reminds me some people in the world ...
    Here is what you should do:
    - in BW, at the infosource level, you create a direct infosource based on the infoobject that you want to extract the data to APO (let's say 0MATERIAL)
    - in BW, at the infosource level, you right click on the infosource itself and you choose 'GENERATE EXPORT DATASOURCE. That will create the datasources for you (attributes, texts, hierarchies) depending on the infoobject settings. The names of these datasources will begin with a 8 for the datamart
    - in APO, you replicate the BW system. Now you find the datasources 80MATERIAL something
    - in APO, you create the transfer rules to your infosource and you can load
    Just give it a try
    Regards

  • Help needed in Loading excel data to staging table from OAF Page

    Hi All,
    We have a requirement from the client on loading of a excel sheet data into staging table using OAF page.
    We were able to load a CSV file into staging table via OAF. The approach we used is we created a item of style 'messageFileUpload', which would pick the CSV file from desktop and we wrote the logic on the controller to place the file into server and then sumit a concurrent program to load the data into the staging table.
    But client wants data from the excel file to be loaded into staging table. Is there any way(approach) by which we can convert the excel file data into .CSV file using OAF?
    Any help or pointers on this will be highly apperciated.
    Thanks,
    Chethana

    Hi,
    Read through this :
    Need to upload a CSV/Excel to a table in OAF page
    Thanks,
    Gaurav

  • Help needed for db to xml conversion & vice versa. & other tools

    HI GURRUS!
    I would like to need a solution for my university assignment ,
    I want to create a web service which provides necessary interfaces to create, read (query), update, and delete data from relational db.
    It fully utilizes the XML from the database all the way to the web service clients and create web pages that consume the same XML for data entry. i want to acomplish this assignment in J2EE using WebLogic.
    I found lot of tools & api's on internet, but need help to suggest that wchih is best for this task & also need some good help to accomplish it more n more easily.
    tools & apis are:
    1) DB2XML ---> only cretae xml from db & also use "table based mapping"
    2)XML-DBMS
    3)Hit software's ---> Allora (don't know much about it)
    4) Java api WebRowSet
    questions:1) which are the best tools and software packages to be used to faciliate creation and maitenance of the XML schema and keeping it in sync with the database?
    2)any good tools to create the database schema directly from the XML. Are there tools out there to generate a database access layer based on the XML?
    3) Is any one have good java Webrowset example to accomplish that taks(get data from relational db send it to clint as xml using webservice & if client make changes in xml than it sync back the info in relational db)?
    Thanks in advance

    Oops sorry i just want to create a method which saves the created dom document as an xml file.
    Thanks in advance !

  • Help needed with loading data from ODS to cube

    Hi
    I am loading data from an ODS to a cube in QA. The update rules are active and definition seems right. I am getting the following error, in the update rules.
    "Error in the unit conversion. Error 110 occurred"
    Help.
    Thanks.

    Hi Chintai,
    You can see the record number where the error occured in the monitor (RSMO) for this data load > goto the details tab and open up the Processing area (+ sign). Try it out...
    Also about ignoring the error record and uploading the rest, this is done if you have set Error Handling in your InfoPackage (Update tab), but this would have to be done before the load starts, not after the error happens.
    Hope this helps...
    And since you thanked me twice, also please see here:-) https://www.sdn.sap.com/irj/sdn?rid=/webcontent/uuid/7201c12f-0701-0010-f2a6-de5f8ea81a9e [original link is broken]

  • Very urgent help needed- Error while passing XML document to Oracle stored

    Hi !
    I have been struggling a lot to call Oracle 9i stored procedure passing Stringbuilder object type from ASP.NET
    I am using Visual Studio 2008 Professional, OS: Windows XP and Oracle: 9.2.0.1.0
    Following is the procedure:
    CREATE or REPLACE PROCEDURE loadCompanyInfo (clobxml IN clob) IS
    -- Declare a CLOB variable
    ciXML clob;
    BEGIN
    -- Store the Purchase Order XML in the CLOB variable
    ciXML := clobxml;
    -- Insert the Purchase Order XML into an XMLType column
    INSERT INTO companyinfotbl (companyinfo) VALUES (XMLTYPE(ciXML));
    commit;
    --Handle the exceptions
    EXCEPTION
    WHEN OTHERS THEN
    raise_application_error(-20101, 'Exception occurred in loadCompanyInfo procedure :'||SQLERRM);
    END loadCompanyInfo ;
    And following is the ASP.net code:
    StringBuilder b = new StringBuilder();
    b.Append("<?xml version=\"1.0\" encoding=\"utf-8\" ?>");
    b.Append("<item>");
    b.Append("<price>500</price>");
    b.Append("<description>some item</description>");
    b.Append("<quantity>5</quantity>");
    b.Append("</item>");
    //Here you'll have the Xml as a string
    string myXmlString1 = b.ToString();
    //string result;
    using (OracleConnection objConn = new OracleConnection("Data Source=testdb; User ID=testuser; Password=pwd1"))
    OracleCommand objCmd = new OracleCommand();
    objCmd.Connection = objConn;
    objCmd.CommandText = "loadCompanyInfo";
    objCmd.CommandType = CommandType.StoredProcedure;
    //OracleParameter pmyXmlString1 = new OracleParameter("pmyXmlString1", new OracleString(myXmlString1));
    objCmd.Parameters.Add("myXmlString1", OracleType.clob);
    objCmd.Parameters.Add(myXmlString1).Direction = ParameterDirection.Input;
    //objCmd.Parameters.Add("result", OracleType.VarChar).Direction = ParameterDirection.Output;
    try
    objConn.Open();
    objCmd.ExecuteNonQuery();
    catch (Exception ex)
    Label1.Text = "Exception: {0}" + ex.ToString();
    objConn.Close();
    When I am trying to execute it, I am getting the following error:
    Exception: {0}System.Data.OracleClient.OracleException: ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call to 'LOADCOMPANYINFO' ORA-06550: line 1, column 7: PL/SQL: Statement ignored at System.Data.OracleClient.OracleConnection.CheckError(OciErrorHandle errorHandle, Int32 rc) at System.Data.OracleClient.OracleCommand.Execute(OciStatementHandle statementHandle, CommandBehavior behavior, Boolean needRowid, OciRowidDescriptor& rowidDescriptor, ArrayList& resultParameterOrdinals) at System.Data.OracleClient.OracleCommand.ExecuteNonQueryInternal(Boolean needRowid, OciRowidDescriptor& rowidDescriptor) at System.Data.OracleClient.OracleCommand.ExecuteNonQuery() at Default.Button1Click(Object sender, EventArgs e)
    I understand from this that the .net type is not the correct one, but I am not sure how to correct it. I could not find any proper example in any documentation that I came across. Most of the examples give information on how to read but not how to insert XML into Oracle table by calling Stored Procedure.
    Can you please help me to solve this problem? I hope that you can help solve this.
    Also, can you please give me an example of passing XML document XMLdocument to Oracle Stored procedure.
    In both the cases, if you can provide the working code then it would be of great help.
    Thanks,

    Hi ,
    Additional to the Above error details my BPEL code looks like this:
    <process name="BPELProcess1"
    targetNamespace="http://xmlns.oracle.com/Application10/Project10/BPELProcess1"
    xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:client="http://xmlns.oracle.com/Application10/Project10/BPELProcess1"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
    <partnerLinks>
    <partnerLink name="bpelprocess1_client" partnerLinkType="client:BPELProcess1" myRole="BPELProcess1Provider" partnerRole="BPELProcess1Requester"/>
    </partnerLinks>
    <variables>
    <variable name="inputVariable" messageType="client:BPELProcess1RequestMessage"/>
    <variable name="outputVariable" messageType="client:BPELProcess1ResponseMessage"/>
    </variables>
    <sequence name="main">
    <receive name="receiveInput" partnerLink="bpelprocess1_client" portType="client:BPELProcess1" operation="process" variable="inputVariable" createInstance="yes"/>
    <invoke name="callbackClient" partnerLink="bpelprocess1_client" portType="client:BPELProcess1Callback" operation="processResponse" inputVariable="outputVariable"/>
    </sequence>
    </process>
    Kindly help if anyone has faced this Issue before.
    Regards,
    Rakshitha

  • Help needed in loading data from BW(200) to APO(100).

    Hi everybody,
    I am trying to load a master data from BW(200) to AP1(100) , this is what i did.
    1) created a InfoObject, with some fields (general-ebeln, Attributes- bukrs, werks,matnr).
    2) created and activated communication structure.
    3) Then went to BW(200) created data source(sbiw) and extracted datas from a particular info object, which had same fields and saved it, then went to RSA3 checked for data availability in data source , and it was available there too.
    4) Came back to AP1(100), in the source system tab, opened BW(200) and replicated the datas. I was able to see the Data source name which is created in BW(200).
    5) Create and activated the Transfer struct.
    6) created a info package, and loaded the data, but the monitor says " NOT YET COMPLEATED" , "CURRENTLY IN PROCESS". and it also shows "0 of 0 RECORDS".
    I want to know,
    1) Is there any mistake in what i have done above ?
    2) how long will it take to complete the process (i.e. the loading) ?.
    Please help me through this problem.
    Thanks,
    Ranjani.

    Hi,
    I am surprised with your steps. In APO, you want to load data from a particular infoobject from BW. Why did you create a specific extractor in SBIW???
    You have just reinvented the wheel... It reminds me some people in the world ...
    Here is what you should do:
    - in BW, at the infosource level, you create a direct infosource based on the infoobject that you want to extract the data to APO (let's say 0MATERIAL)
    - in BW, at the infosource level, you right click on the infosource itself and you choose 'GENERATE EXPORT DATASOURCE. That will create the datasources for you (attributes, texts, hierarchies) depending on the infoobject settings. The names of these datasources will begin with a 8 for the datamart
    - in APO, you replicate the BW system. Now you find the datasources 80MATERIAL something
    - in APO, you create the transfer rules to your infosource and you can load
    Just give it a try
    Regards

  • Help needed to load data using sql loader.

    Hi,
    I trying to load data from xls to oracle table(solaris OS) and its failing to load data.
    Control file:
    LOAD DATA
    CHARACTERSET UTF16
    BYTEORDER BIG ENDIAN
    INFILE cost.csv
    BADFILE consolidate.bad
    DISCARDFILE Sybase_inventory.dis
    INSERT
    INTO TABLE FIT_UNIX_NT_SERVER_COSTS
    FIELDS TERMINATED BY ','
    TRAILING NULLCOLS
    HOST_NM,
    SERVICE_9071_DOLLAR DOUBLE,
    SERVICE_9310_DOLLAR DOUBLE,
    SERVICE_9700_DOLLAR DOUBLE,
    SERVICE_9701_DOLLAR DOUBLE,
    SERVICE_9710_DOLLAR DOUBLE,
    SERVICE_9711_DOLLAR DOUBLE,
    SERVICE_9712_DOLLAR DOUBLE,
    SERVICE_9713_DOLLAR DOUBLE,
    SERVICE_9720_DOLLAR DOUBLE,
    SERVICE_9721_DOLLAR DOUBLE,
    SERVICE_9730_DOLLAR DOUBLE,
    SERVICE_9731_DOLLAR DOUBLE,
    SERVICE_9750_DOLLAR DOUBLE,
    SERVICE_9751_DOLLAR DOUBLE,
    GRAND_TOTAL DOUBLE
    Log file:
    Table FIT_UNIX_NT_SERVER_COSTS, loaded from every logical record.
    Insert option in effect for this table: INSERT
    TRAILING NULLCOLS option in effect
    Column Name Position Len Term Encl Datatype
    HOST_NM FIRST * , CHARACTER
    SERVICE_9071_DOLLAR NEXT 8 DOUBLE
    SERVICE_9310_DOLLAR NEXT 8 DOUBLE
    SERVICE_9700_DOLLAR NEXT 8 DOUBLE
    SERVICE_9701_DOLLAR NEXT 8 DOUBLE
    SERVICE_9710_DOLLAR NEXT 8 DOUBLE
    SERVICE_9711_DOLLAR NEXT 8 DOUBLE
    SERVICE_9712_DOLLAR NEXT 8 DOUBLE
    SERVICE_9713_DOLLAR NEXT 8 DOUBLE
    SERVICE_9720_DOLLAR NEXT 8 DOUBLE
    SERVICE_9721_DOLLAR NEXT 8 DOUBLE
    SERVICE_9730_DOLLAR NEXT 8 DOUBLE
    SERVICE_9731_DOLLAR NEXT 8 DOUBLE
    SERVICE_9750_DOLLAR NEXT 8 DOUBLE
    SERVICE_9751_DOLLAR NEXT 8 DOUBLE
    GRAND_TOTAL NEXT 8 DOUBLE
    Record 1: Rejected - Error on table FIT_UNIX_NT_SERVER_COSTS, column HOST_NM.
    Field in data file exceeds maximum length
    Table FIT_UNIX_NT_SERVER_COSTS:
    0 Rows successfully loaded.
    1 Row not loaded due to data errors.
    0 Rows not loaded because all WHEN clauses were failed.
    0 Rows not loaded because all fields were null.
    Please help me ASAP.
    Awaiting u r reply.

    Hi,
    I verified and everything looks fine according to me.
    Table structure:
    OST_NM VARCHAR2(30)
    SERVICE_9071_DOLLAR NUMBER(8,2)
    SERVICE_9310_DOLLAR NUMBER(8,2)
    SERVICE_9700_DOLLAR NUMBER(8,2)
    SERVICE_9701_DOLLAR NUMBER(8,2)
    SERVICE_9710_DOLLAR NUMBER(8,2)
    SERVICE_9711_DOLLAR NUMBER(8,2)
    SERVICE_9712_DOLLAR NUMBER(8,2)
    SERVICE_9713_DOLLAR NUMBER(8,2)
    SERVICE_9720_DOLLAR NUMBER(8,2)
    SERVICE_9721_DOLLAR NUMBER(8,2)
    SERVICE_9730_DOLLAR NUMBER(8,2)
    SERVICE_9731_DOLLAR NUMBER(8,2)
    SERVICE_9750_DOLLAR NUMBER(8,2)
    SERVICE_9751_DOLLAR NUMBER(8,2)
    GRAND_TOTAL NUMBER(8,2)
    Control file:
    LOAD DATA
    BYTEORDER BIG ENDIAN
    INFILE cost.csv
    BADFILE consolidate.bad
    DISCARDFILE Sybase_inventory.dis
    INSERT
    INTO TABLE FIT_UNIX_NT_SERVER_COSTS
    FIELDS TERMINATED BY ','
    TRAILING NULLCOLS
    HOST_NM ,
    SERVICE_9071_DOLLAR NUMBER(8,2),
    SERVICE_9310_DOLLAR NUMBER(8,2),
    SERVICE_9700_DOLLAR NUMBER(8,2),
    SERVICE_9701_DOLLAR NUMBER(8,2),
    SERVICE_9710_DOLLAR NUMBER(8,2),
    SERVICE_9711_DOLLAR NUMBER(8,2),
    SERVICE_9712_DOLLAR NUMBER(8,2),
    SERVICE_9713_DOLLAR NUMBER(8,2),
    SERVICE_9720_DOLLAR NUMBER(8,2),
    SERVICE_9721_DOLLAR NUMBER(8,2),
    SERVICE_9730_DOLLAR NUMBER(8,2),
    SERVICE_9731_DOLLAR NUMBER(8,2),
    SERVICE_9750_DOLLAR NUMBER(8,2),
    SERVICE_9751_DOLLAR NUMBER(8,2),
    GRAND_TOTAL NUMBER(8,2)
    Sample date file:
    ABOS12,122.46,,1315.00,,1400.00,,,,,,,,1855.62,,4693.07
    ABOS39,6391.16,,1315.00,,1400.00,,,,,,,,,4081.88,13188.04

  • Help needed to load a viewer control in Access

    Hi,
    I'm having a problem viewing a Crystal Report in Access.  The code looks like this:
    Dim crApp As New CRAXDRT.Application
    Dim crRep As CRAXDRT.Report
      'load a standalone report created in the designer
        Set crRep = crApp.OpenReport("c:\fax\database\reports\PO.rpt")
      CRViewer91.ReportSource = crRep
      ' print preview
      CRViewer91.ViewReport
    I'm loading CRADXDRT from CRADXDRT9.DLL.  The report viewer control is called "Crystal Report Viewer Control 9, which i believe is coming from CRVIEWER9.DLL.
    When I step through my code, CRADCDRT seems to load fine, however when I execute the CRViewer91.ViewReport step, the program seems to execute the code, but doesn't display any report.
    My question is:  am I using the correct control?  I have CR9 and 11 on my system.  I also have VB, which I believe also has a version of CR.  I'm trying to use 9, which is what the report was written in. 
    Thanks for your help.

    No it is not. The crviewer was part of the RDC which is now retired. The last version to ship the RDC was 11.5.
    See the [statement of direction|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/80bd35e5-c71d-2b10-4593-d09907d95289] for more details.
    Ludek

  • Help need for loading aligned images in JEditorpane

    Hi all,
    I need to align image with text using JEditorpane, If i load the html document with aligned image, there is no alignment for image in final display. So please suggest any ideas if u have on this topic. I am in great hurry.
    Thanks in advance,
    Nageswara Rao.V

    Hello,
    I'm also having the same problem, did anybody find any solution ?
    -sanjaymishra70

Maybe you are looking for

  • JDBC receiver adapter for AS400-query time out due to Escape Symbol

    Hello, I am uisng JDBC receiver adapter for AS 400, When I execute query, the query needs to have arguments in the open and close single ticks ('    12345' ) My XML pay load looks like this, which is RFC sender. Look at dcudcstmr in <i><b>(' 838912')

  • Couldn't do a particular function only in production environment

    Hi All, I am not able to do a particular function in production environment, so I took SU53 screen shot and found the missing authorization object and  added the needed role in quality and tested the same, it was working. But when I tried the same in

  • IOS 5 Bug: Badges on Messaging app

    We have stumbled upon a bug in iOS 5 running on the iPhone 4, in regards to the badges showing up on the Messages App. You can reproduce this bug yourself. In Settings>Notifications>Messages, set it to: Notification Center: On Show: 5 Recent Items Al

  • While watching netflix, screensaver engages, movie still playing audio OK

    While I'm watching a movie on Netflix, the Apple TV screen saver slideshow starts - while the movie is still running, I can hear it. If I "wake" it up with the remote - the movie is in the right place. This happens after a few minutes. Any idea why t

  • Error: ORA-01012: not logged on

    Hi all, i have a program to update 2 tables and will commit every transaction for each table. firstly, my program will commit transaction in Table A then once it's done, it will commit Table B and loop again(both table) until all transactions finish.