Need  Material (MATNR) Number .... Very Urgent

Hi all,
     I need to fetch the material (MATNR) using the Charecteristics and the characteristic value.I do have the class.to make it simple :
I have Characteristic value,Characteristics,and  Class
     Need to get the material .
Any FM,any pointers will be helpful.
Reward points for sure
With thanks
Arun
Edited by: SapSurfer on Jan 17, 2008 6:42 PM
Edited by: SapSurfer on Jan 17, 2008 6:44 PM

Hi,
Have a look at the methods in the class CL_CBASE. It has various methods to work with the configuration and the instances.
Hope you find it useful.
Reward if helpful.

Similar Messages

  • Need help in Idoc--very urgent.

    Hi guys,
    i am working on an object where i need to post the data from legacy system to F-27 transaction using Idoc.i hv found two idocs input_idoc_fidcc1 and input_idoc_fidcc2 for posting the data..
    Can anyone help in finding the right idoc for triggering the f-27 transaction with the reason...
    coz both are perfoming almost the same functionalities...
    its very urgent guys..
    kindly help me full marks wud be given...
    regards
    Sahil

    Hi,
    The function module is related to post the idoc type FIDCPP01
    and posts the complete FI document. and as coming to second function module along with Tax you can post item wise with holding tax dataalso. So you choose the required function module based on the data you need to post. If you need not post with holding tax details dont fo for second function modules.
    Reward if find useful

  • Need material document number

    Dear all,
        I have an issue.  Inorder resolve it i need run a run aset up in OL1BW using the material document number.
    I have the process order, period, plant and material, but i need to find the corresponding material document number. Can anyone help me how to proceed further?
    The datasource is 2lis_03_BF.
    Pls also diferntiate between material and materail document number.
    Thanks..
    Regards
    Santhosh Kumar N

    The source for 2LIS_03_BF, as Arun pointed out, are R3/ECC tables MSEG and MKPF.
    Material - Refers to the material number, or part number, that is being managed. Typically, the material on an R3/ECC system is an 18-byte generated number to identify it to the system and has an industry accepted part number (Manufacturer Part Number) as a conversion exit so that you can enter either on R3/ECC and get the correct material number.
    Material Document - Refers to the internal document used for tracking the movement of a material. Examples of material movements would be goods receipts and goods issues. MKPF is the Material Document header table and MSEG has the Material Document line items.
    To find the Material Documents, you're going to have to query the MKPF table in your R3/ECC environment to get the document ranges needed for the setup jobs that you plan on executing.

  • Error message: snapshot too old: rollback segment number( very urgent)

    Hi everybody,
    I have a question regarding an oracle error message <b>snapshot too old: rollback segment number</b>.
    I get this message when I run a SQL script in Oracle server. To be clear, I wrote the SQL script to extract the data from SAP R3 via Oracle server.
    Could somebody please help me with this issue? It's very urgent.
    The SQL statement which I use at this moment is:
    set undo_management auto
    set undo_retention
    Please help me with this issue.
    Thanks in advance.
    Regards,
    Esrat

    it´s very uncommon to have an Oracle version higher than the client versions of the tools.
    I suggest:
    - Check the note mentioned now several times
    - upgrade to a supported newer Oracle release
    Markus

  • MSI MS 7100 K8N Neo 4 Diamond need bios configuration help very urgent

    Hello every body i need very urgent help,
    i need help on above mainboard bios conf. i will attach two seperate hdd (120 GB sata II) and i will setup W2003 standart 32bit ed.
    if possible i won't use any raid configurations, but i need speed
    how should i conf. bios and which controller shouşd i use silicon or nvidia or how and wich has to be used.
    corecction about my configuration
    Mainboard   MSI MS 7100 K8N Neo 4 Diamond (NF4 SLI,GLAN,SATA)
    CPU      AMD Athlon 64 X2 3800+ (2.0GHz,1024K Cache,S939) BOX
    Ram      CORSAIR Value Select DDR400 1024MB Kit (2x512MB)
    Hdd      SAMSUNG 120GB 7200RPM 8MB SATAII     (2x120GB)
    Graphic Card         SAPPHIRE 256MB ATI Radeon X1600 PRO (PCI-E) AVIVO
    Case                      ENLIGHT 7247 400W

    Hello !!
    The Bios configuration depends on many factors.....but we do not know anything about your configuration. ( CPU, RAM, Powersupply.....)
    If you need HDD Speed, RAID 0 will be a good Option and you should consider it.
    Both Controllers, Silicon Image & nvidia, have the same speed. But i think you can not attach Optical drives to the Silicon Image Controller. ( if someone has other experiance please post )
    Good Luck
    Greetz MurdoK

  • Help needed in Message Control - very urgent

    Hi Experts,
    I have one requirement where in the customer wants to stop creation of IDOC which posts Invoice using message control and message control status should be changed to RED color and also the message should be populated in the processing log saying 'IDOC processing failed, External customer numbers not maintained'.
    Could you please let me know any user exits or customer exits available for this purpose.
    I have searched all the possibilities.
    I have chanked the program RSNAST00 which picks up the data from table NAST and looks into table TNAPR to get the processing porgram for th selected output and also this program checks the partner profile and gets the process code which creates an inoice IDOC. I searched for user exits and customer exits to popolate the required messages and stop IDOC creation.
    I am an ABAPER and i know i need to write code to do validation, but could not find the exact place where to write? I any ABAPERS looking at this post, please reply me.
    Can anyone please advise me how to go about solving this issue?
    Thanks
    Srinath

    Hi,
       I am sending the requirement.
      Please send me the solution.
    Requirements:
    1.     EDI Invoice requires populating bottle UPC number not case UPC in IDOC and also populates customer PO number when invoice billing type is a credit.  These changes need to be reflected on EDI invoice (Idoc INVOIC02).
    Investigation:
    Requirement 1. EDI invoices are populating segment E1EDP19 qualifier 003 based on the unit of measure in the line item.  If shipment unit is CSE then it populates CSE upc, if shipment unit is EA then it populates Bottle UPC. 
    a.     It was found that the UPC populated on the EDI invoice was being read from material master – Additional data tab.  (Field SMEINH-EAN11).  For the EDI invoice, the customers expect the bottle UPC on this column.
    Requirement 2.  Need to always populate Segment E1EDK02 Qualifier 001 (customer PO) on the INVOIC02 idoc.  Standard SAP populates this information only when the billing type is F2 (regular invoice) and if the customer PO was entered in the Sales Order.
                                a) Premier requires this information to be populated in the idoc if the billing type is G2, RE, L2 also.
    Solution:
    Requirement 1.
           IDOC_OUTPUT_INVOIC function module needs to be changed to always populate the UPC number for the bottle UPC in segment E1EDP19 qualifier 003, field IDTNR.  This number is found on the material master – Basic data 1 view.  Field name is MARA-EAN11.   Please see screenshot of where in the material master to find the bottle UPC. 
         a. This change applies to all billing types (F2, G2, L2, RE etc).
           Requirement 2.
                 Change IDOC_OUTPUT_INVOIC function module to always populate customer PO information in Segment E1EDK02 qualifier 001, field BELNR.
    If billing type is equal to G2, L2, RE and VBRK-XBLNR not equal blanks then make BELNR = VBRK-XBLNR.
    Segment:  E1EDK02
                                  Field:  QUAL = 001
                                  Field:  BELNR = VBRK-XBLNR
    Please help me how to move a step ahead.
    Waiting for your immediate response.
    Thanks,
    Chandra.

  • Need ur opinion ! very urgent

    Hi all jGurus !
    actually i'm developing a distributed and multithreaded clien/server application and i'm half way completed but still have few things in my mind regarding the overall performance of java language.... the general scnario is...
    i've developed a instant messenger application in java using Swing 1.3 which is ofcourse based on a client/server architecture. The general application flow is something like the Messenger Server starts up and starts listening to the server socket for clients and as soon as the client socket connects to it it spawns a separate thread [ lets call it a Servicer ] for that client, the story does not endz here as the Servicer checks that users login information in the database and its already online users list ( an ArrayList Object ) for the verification process and going all through that process it performs function like creating certain objects which should have life till that user logs of from the server i.e. the servicer exits from run() as i'm doing all these processes in the run.
    Now after the whole verification process the Servicer which have now DataOutput and DataInputStreams starts reading through those streams for strings through its readUTF() method and ofcourse writes to those also.
    as this application is serving the clients as hot instant messaging system it should be very robust and reliable..
    and must provide all the functions such as changing status , nick logOff, adding other friends and removing them, i'm keeping all the data in a database and to some extent in separate files on the server machine.....
    So guyz that was all the story, but now the question arises wut are limiting factors keeping in mind this scenario, if u have suggestions yourself please let me know. but first explain whut i ask u for.
    1.. whut are the total no of sockets that the server can open at one time(simultaneously). and as there is ofcourse platform dependency. so wut u guys think how much sockets windows NTServer or windows 2000 provides. suggest me if u think windows is not ur choice for such a scenario
    2.. whut if the no. of sockets reaches its max limit, ofcourse the server would reject the client request for the connection but whut happens when after reaching a socket limit, do the server again i mean after having free sockets available(as the clients will keep logging in and logging off) do the server efficently returns to its normal state, or just stuck up its resources
    3.. can i control the max limit of the sockets
    4.. how many separate threads i can spawn without hanging the server resources.
    5.. and in last u suggest me the best way to develop this kind of an application....... do u think the model that i'm following is the right choice.....
    guys please provide me your precious comments as soon as possible as i have to finish the project
    hoping to get a good response
    thanx in adv

    One way might be to construct an array of available threads. And then with each new connection assign your Servicer class to one of the available threads which will execute the run() method from the Servicer class.
    You can add some code to keep track of how many open sockets you have and to check if all threads finish their job. the number of threads in the pool depends on how much time will spend each thread in finishing the assigned job. If it takes a long time increase the number of available threads. You can fine tune this by checking how many free threads you have at a given time.
    For instance in your Server constructor you can construct the thread array:
    private static final int THREAD_POOL = 10;
    ServerThread[]  workers = null;
    //in constructor
    workers = new ServerThread[THREAD_POOL];
    for(int i=0; i<workers.length; i++){
           workers[i] = new ServerThread();
           workers.start();
    //in while loop
    for(int i=0; i<workers.length; i++){
    if(workers[i].isAvailable()){
    aServicer = new Servicer(clientSocket, reg_Users);
    workers[i].execute(aServicer);
    if(cleanFlag){
    startCleanEngine();
    aServicer = null;
    clientSocket = null;
    if(cleanFlag){
    Thread.yield();
    iLoop++;
    continue mainLoop;
    //in this code I am also doing some cleaning checking
    //mainLoop is the label for the while() statement
    //here is the code for the ServerThread
    class ServerThread extends Thread{
    * The thread executing the submitted jobs.
    private Runnable workToDo;
    * Creates new ServerThread and sets its type
    * as being a daemon thread.
    public ServerThread(){
              setDaemon(true);
    * Waits until the internal Runnable reference is null
    * then assigns it a new job.
    * @param job an objecxt that requires a
    * thread resource
         public void execute(Runnable job){
              synchronized(this){
                   while(workToDo != null){
                        try{
                             wait();
                        }catch(InterruptedException ie){
                        workToDo = job;
                        notifyAll();
    * Checks once to see if no job is pending and if not a new job
    * is assigned, the boolean flag is set to true and all waiting
    * threads notified.
    * @param job the object that needs to be executed
    * @return boolean true is the new job has been assigned
    * and false otherwise
         public boolean executeIfAvailable(Runnable job){
              boolean executed = false;
    synchronized(this){
                   if(workToDo == null){
                        workToDo = job;
                        executed = true;
                        notifyAll();
              return executed;
    * Checks for the availability of current thread.
    * @return boolean true is the thread is available and
    * false otherwise
         public boolean isAvailable(){
              return (workToDo == null);
         * Rejects any thread that is not owned by the current
         * instance. Waits until a Runnable job is assigned, then
         * calls its run() method directly, acting as its surrogate
         * Thread instance. Signals for another job by dereferencing
         * the current one.
         public void run(){
              if(Thread.currentThread() == this){
                   Runnable job = null;
                   for(; ;){
                        synchronized(this){
                             while(workToDo == null){
                                  try{
                                       wait();
                                  }catch(InterruptedException ie){
    System.out.println("ServerThread - current thread interrupted: " + ie.getMessage());
                             job = workToDo;
                             notifyAll();
                        job.run();
                        workToDo = null;
    You can read the documentation to see how it works.

  • Help needed in Extending HeaderVO -VERY URGENT!!

    Hello,
    I need a urgent help.
    Actually I am trying to modify the exisiting Print Quote Document which is actually getting called from a template cald ASOPRINTQUOTE.xsl
    This particular xsl uses HeaderVO, LinesVO and PromptVO and hence I had to modify these xml and in turn the .java files.
    I customized it by adding the new columns thru JDeveloper and extending the VO's and substituting them
    In the process while extending the respective VO's comes a step wherein I need to specify(Thru JDeveloper) Application Short Name and Responsibility Key.
    Now the issue is this particular Quote dicument can be accessed from 2 different respons. called
    Oracle HTML Order Quoting Sales Agent(Its a OA framework with application top as QOT)
    & Quoting Sales Agent.(Its form based with Application top as ASO)
    I chose ASO as the top as all my .class files and .xml files are present in
    oracle/apps/aso/print/server
    Now then after extending the VO's and importing it etc . when I log in thru the reponsibilty
    Oracle HTML Order Quoting Sales Agent , it gets me a error of stmt exception.
    wheras
    it runs via the respon Quoting Sales Agent and reproduces a PDF output without any data??
    There are few questions I am looking out for an answer desperately.
    1) My HeaderVO, LinesVO and PromptVO are extended, so do i need to extend the links present in that in my new extended VO' s as well.
    2) My xsl stylesheet has a statement as
    select values of:....../HeaderVO/HeaderRow/....etc etc
    do i need to replace the above line to my new extended VO i.e
    select values of:....../CustHeaderVO/HeaderRow/...etc etc
    Kindly reply to me asap as I am in a development scenario..
    Do let me kow if u need more clarity on this?
    Regards,
    Ajit

    Oracle quoting is not in OAF, only the print functionality uses these VOs as data source , and are used in the xsl, for XML publisher to generate the quote print .
    1) My HeaderVO, LinesVO and PromptVO are extended, so do i need to extend the links present in that in my new extended VO' s as well.
    Please explain this , what do you mean by extending links ?2) My xsl stylesheet has a statement as
    select values of:....../HeaderVO/HeaderRow/....etc etc
    do i need to replace the above line to my new extended VO i.e
    select values of:....../CustHeaderVO/HeaderRow/...etc etc
    YesThanks
    Tapash

  • Problem in finding Idoc number from Delivery document number(VERY URGENT)

    Hi experts,
    I have a delivery document number.Now i have to find the Idoc number for thet delivery document and extract some necessary data from one of the segment of that Idoc.So I am not able to find a link through tables .
    So I exact query is 'what is the selection method i have to follow to get the idoc number given the delivery document number'.
    Regards,
    Praveen.
    Edited by: Praveen Jada on Mar 14, 2008 12:15 PM

    That's what I meant, do the following query:
    DATA: LT_DOCNUM TYPE TABLE OF EDI_DOCNUM.
    SELECT DOCNUM
      INTO TABLE LT_DOCNUM
      FROM EDID4
      WHERE SEGNAM EQ 'E1EDL20'
      AND SDATA EQ '0001234567%'.
    This will list you all the IDOC numbers in which delivery number 0001234567 appear in the delivery header segment.
    Depending on your process it's probably going to be one entry only.
    Hope that clarifies it,
    Michael

  • Reg: XI_CMS Transports. I need this forum reply very urgent. Please help me

    Hi! Gurus,
         This is Amar Srinivas Eli.I am workig on Production Support project. Herehave one doubt regarding CMS Servers
    Actually according to my knowledge XI Content aca be transfered from DEV>QA>PROD XI servers using CMS transports right?
    But for this Actually one CMS Server is enogh right? that means here XI DEV Server is X42
                          QA                X44
                          PROD           X46
    For cms server link is [http://sapr3001.geips.ge.com:54200/webdynpro/dispatcher/sap.com/tcSLCMS~WebUI/Cms]
    but client is asking why we a re not able to access this
    http://sapr3001.geips.ge.com_:54400_/webdynpro/dispatcher/sap.com/tcSLCMS~WebUI/Cms  for transporting XI content
    I think he is thinking that like XI portals for CMS also there will be 3 individual cms links are there right?
    But is it wrong or my argument is righ? at which my arguement is only one CMS Sever is enough that means one link is enough right?
    NOTE::
    Please provide exact CMS transport link procedure other that the linnk contaning "How To Transport XI Content Using CMS
    Version 1.00 – October 2005"?
    here in this only one procedure is there I want an exact procedure of how to transfer SLD systems means business and logcal and software components from all DEV>QA>PROD?
    I need entire produre of transfering Business systems?
    Please Kindly guide me in step by step procedure regarding this with Screen shots so that it may be helpful to me.
    Regards::
    Amar Srinivas Eli.

    Hi,
    Only one CMS is required as correctly said by Raj.
    For more information please refer the below links:
    CMS transport method:
    http://help.sap.com/saphelp_nw04/helpdata/en/a8/5e56006c17e748a68bb3843ed5aab8/frameset.htm
    •     CMS for SAP Exchange Infrastructure:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b8d8f7b2-0701-0010-b09a-cda4cca2c98e
    •     How to handle Xi with CMS:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/43f5d790-0201-0010-2984-ff72d822b109
    •     Configuration of CMS in Central NWDI & SLD to transport XI objects:
    /people/praveen.mayalur/blog/2007/05/31/configuration-of-cms-in-central-nwdi-sld-to-transport-xi-objects
    •     XI Software Logistics Solution III: CMS:
    /people/sap.india5/blog/2005/11/28/xi-software-logistics-solution-iii-cms
    Thnx
    Chirag

  • Material Batch Number Generation

    Hi Experts
    I need Material Batch Number internally generated while performing the GR for purchase order as in below format....
    YEARWW-XXX (Running Number)
    - XXX - Running number should get Reset automatically, once the YEARWW changes. Means every week it get auto reset.
    Any standard USER EXITS avilable ? any other suggestions please
    Rgds
    RG

    Hi,
      Chekc the BAdi BADI_NUMBER_GET_NEXT or customer exit EXIT_SAPLV01Z_001.
    With regards,
    Vamsi

  • Get Material Document Number and Material Document Year

    Hi everyone,
    Right now, i'm developed idoc program. I need material document number (MBLNR) and material document year (MJAHR).  I have information only BAPI2017_GM_HEAD_01 and BAPI2017_GM_ITEM_CREATE. Is there any FM to get this value ? Thank you
    Regards,
    Satria

    Ok, i will explain with more detail about my problem
    Here my pseudocode :
    -  Get data with type BAPI2017_GM_HEAD_01 from Idoc (let we say this X)
    -  Get data with type BAPI2017_GM_CODE from Idoc (let we say this Y)
    -  Get data with type BAPI2017_GM_ITEM_CREATE from IDoc (let we say this Z)
    -  IF Y-GM_CODE <> "06" THEN
           CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
               EXPORTING
                   GOODSMVT_HEADER = X
                   GOODSMVT_CODE     = Y
               TABLES
                    GOODSMVT_ITEM      = Z
       ELSE IF Y-GM_CODE = "06" THEN
           CALL FUNCTION 'BAPI_GOODSMVT_CANCEL'
                EXPORTING
                     MATERIALDOCUMENT = ???
                     MATDOCUMENTYEAR = ???
                    GOODSMVT_PSTNG_DATE = ???
    I know that material doc and mat doc year is in table MKPF. But the problem is they are  the primary key, so how i use X,Y,Z in select operation to MKPF? or is there another way using FM ? Thank you
    Regards,
    Satria

  • Material Number and Serial Number are not getting filled...Very very urgent

    I have my code in the badi...CRM_EQUI_LOAD...method PERFORM_LOAD.In this i try to to create a component for the ibase using the function module... CRM_ICSS_CREATE_COMPONENT...The component gets created but the material and serial number are not getting updated...It is very very urgent..please help....

    I am not sure what information you are passing in given FM.
    But in my case I have used FM 'CRM_CREATE_IBASE_FROM_EQUI' to create Ibase and component. It creates IBase and Component along with other details like material number and serial number.
    you may refer the below code for the same >
    Call the standard handling for crm equi load.
      call function 'CRM_CREATE_IBASE_FROM_EQUI'
        exporting
          is_header         = is_header
          it_equi_dmbdoc    = it_equi_dmbdoc
        changing
          et_error_segments = ct_error_segment
        exceptions
          technical_error   = 1
          others            = 2.
      if sy-subrc <> 0.
        raise equi_load_badi_error.
      endif.
    Cheers,
    Ashish

  • Need very urgent help

    Hi every1,
    i am in a very bad situation as i am very new to AS3, so i
    need some help from any one who can help me out of this.
    I have created a FLV Player using FLVPlayback Component
    everything is working fine but the only problem is the rewind and
    forward button behaves very strange when i test it on web page
    residing in a webserver.
    In brief i want to say that the rewind and forward control in
    the application works alright when i play it in my local machine
    but when i take the file to a web sever and play it the controls
    behave very strange (when i click on the forward and rewind button
    it just takes me to the end of the movie and to the start of the
    movie at one shot which should not be the purpose of the rewind and
    forward button).
    So, somebody please look at my code below and i will be very
    thank full to the person who can send me the correct code.
    The code for the rewind and forward control is higlighted in
    the below code. please help... .very urgent..........
    import fl.video.*;
    var flvSou:String;
    var dynText:String;
    myflv.autoPlay = true;
    onscreen_play_btn.visible = false;
    onscreen_replay_btn.visible = false;
    if (myflv.playing) {
    onscreen_play_btn.visible = false;
    onscreen_replay_btn.visible = false;
    //myflv.source = "Call_to_action.flv";
    myflv.source = root.loaderInfo.parameters.flvSou;
    dynTxt.text = String(root.loaderInfo.parameters.dynText);
    slash_txt.text = "/";
    myflv.playPauseButton = playPause_btn;
    myflv.stopButton = stop_btn;
    myflv.muteButton = mute_btn;
    myflv.volumeBar = volume_bar;
    myflv.volume = .6;
    myflv.forwardButton = forward_btn;
    myflv.backButton = back_btn;
    myflv.seekBar = seek_bar;
    myflv.bufferingBar = buffering_bar;
    myflv.fullScreenButton = fullscreen_btn;
    //========================= Actions for Button Controls
    =========================//
    //========================= Actions for Play and Pause Button
    =========================//
    playPause_btn.pause_mc.addEventListener(MouseEvent.CLICK,
    clickHandlerPause);
    function clickHandlerPause(event:MouseEvent):void {
    //trace("clickHandler detected an event of type: " +
    event.type);
    //trace("the event occurred on: " + event.target.name);
    trace("u clicked pause button");
    onscreen_play_btn.visible = true;
    //myflv.alpha = .5; // uncomment later
    playPause_btn.play_mc.addEventListener(MouseEvent.CLICK,
    clickHandlerPlay);
    function clickHandlerPlay(event:MouseEvent):void {
    //trace("clickHandler detected an event of type: " +
    event.type);
    //trace("the event occurred on: " + event.target.name);
    trace("u clicked play button");
    onscreen_play_btn.visible = false;
    //myflv.alpha = 100; // uncomment later
    if (onscreen_replay_btn.visible==true) {
    onscreen_replay_btn.visible=false;
    //========================= Actions for Play and Pause Button
    =========================//
    //========================= Actions for FLVPlayback
    =========================//
    myflv.addEventListener(MouseEvent.CLICK,
    clickHandlerPauseFlv);
    function clickHandlerPauseFlv(event:MouseEvent):void {
    //trace("clickHandler detected an event of type: " +
    event.type);
    //trace("the event occurred on: " + event.target.name);
    trace("u clicked video component button");
    trace(myflv.totalTime);
    if (myflv.playing==true) {
    myflv.pause();
    onscreen_play_btn.visible = true;
    //myflv.alpha = .5; // uncomment later
    } else {
    myflv.play();
    onscreen_play_btn.visible = false;
    onscreen_replay_btn.visible = false;
    //myflv.alpha = 100; // uncomment later
    //========================= Actions for FLVPlayback
    =========================//
    //========================= Actions for Fullscreen Button
    =========================//
    fullscreen_btn.addEventListener(MouseEvent.CLICK,onFullScreenButtonClick);
    function onFullScreenButtonClick(event:MouseEvent):void {
    stage.displayState = StageDisplayState.FULL_SCREEN;
    //or set it to normal like: stage.displayState =
    StageDisplayState.NORMAL;
    //========================= Actions for Fullscreen Button
    =========================//
    //========================= Actions for onScreenPlay Button
    =========================//
    onscreen_play_btn.addEventListener(MouseEvent.CLICK,onScreenPlayButtonClick);
    function onScreenPlayButtonClick(event:MouseEvent):void {
    trace("working");
    if (myflv.playing==true) {
    myflv.pause();
    } else {
    myflv.play();
    //myflv.alpha = 100; // uncomment later
    onscreen_play_btn.visible = false;
    //========================= Actions for onScreenPlay Button
    =========================//
    //========================= Actions for onScreenReplay Button
    =========================//
    onscreen_replay_btn.addEventListener(MouseEvent.CLICK,onScreenReplayButtonClick);
    function onScreenReplayButtonClick(event:MouseEvent):void {
    trace("working");
    myflv.play();
    //myflv.seek(0);
    onscreen_replay_btn.visible = false;
    if (onscreen_play_btn.visible==true) {
    onscreen_play_btn.visible=false;
    //========================= Actions for onScreenReplay Button
    =========================//
    //========================= Actions for Stop Button
    =========================//
    stop_btn.addEventListener(MouseEvent.CLICK, StopButtonClick);
    function StopButtonClick(event:MouseEvent):void {
    myflv.seek(0);
    //myflv.autoRewind = true;
    //myflv.stop();
    onscreen_replay_btn.visible = true;
    //========================= Actions for Stop Button
    =========================//
    //========================= Actions for Button Controls
    =========================//
    //========================= Actions for Displaying Elapsed
    and Total Time =========================//
    myflv.addEventListener(MetadataEvent.METADATA_RECEIVED,
    cp_listener);
    function cp_listener(eventObject:MetadataEvent):void {
    //trace("Elapsed time in seconds: " + myflv.playheadTime);
    //trace("Total time is: " + eventObject.info.duration);
    var rounded:int = Math.round(eventObject.info.duration);
    var minutes:int = Math.floor(rounded/60);
    var seconds:int = rounded%60;
    flvTotalTime_txt.text = eventObject.info.duration;
    flvTotalTime_txt.text = (minutes<10 ? "0" :
    "")+minutes+":"+(seconds<10 ? "0" : "")+seconds;
    //flvElapsedTime_txt.text = String(myflv.playheadTime);
    stage.addEventListener(Event.ENTER_FRAME, updateTime);
    function updateTime(ev:Event):void {
    var rounded:int = Math.round(myflv.playheadTime);
    var minutes:int = Math.floor(rounded/60);
    var seconds:int = rounded%60;
    flvElapsedTime_txt.text = String(myflv.playheadTime);
    flvElapsedTime_txt.text = (minutes<10 ? "0" :
    "")+minutes+":"+(seconds<10 ? "0" : "")+seconds;
    //========================= Actions for Displaying Elapsed
    and Total Time =========================//
    myflv.addEventListener(Event.COMPLETE, com_listener);
    function com_listener(eventObject:Event):void {
    trace("movie complete");
    myflv.stop();
    onscreen_replay_btn.visible = true;
    back_btn.addEventListener(MouseEvent.CLICK, BackButtonClick);
    function BackButtonClick(event:MouseEvent):void {
    myflv.play();
    //myflv.autoRewind = true;
    //myflv.stop();
    onscreen_replay_btn.visible = false;
    /************************************ THE CODE FOR FORWARD
    AND REWIND CONTROL STARTS HERE *****************************/
    var id1:Number;
    forward_btn.addEventListener(MouseEvent.MOUSE_DOWN,
    ForwardButtonDown);
    function ForwardButtonDown(event:MouseEvent):void {
    //forward_btn.onPress = function() {
    //mklik_flv.pause();
    var dest1:Number = myflv.playheadTime;
    id1 = setInterval(function ():void {
    myflv.seek(dest1 += 2);
    }, 100);
    forward_btn.addEventListener(MouseEvent.MOUSE_UP,
    ForwardButtonUp);
    function ForwardButtonUp(event:MouseEvent):void {
    //forward_btn.onRelease = function() {
    //myflv.play();
    clearInterval(id1);
    // ************************ Forward Button Function
    // ************************ Rewind Button Function
    var id2:Number;
    back_btn.addEventListener(MouseEvent.MOUSE_DOWN,
    BackButtonDown);
    function BackButtonDown(event:MouseEvent):void {
    //back_btn.onPress = function() {
    //mklik_flv.pause();
    var dest2:Number = myflv.playheadTime;
    id2 = setInterval(function ():void {
    myflv.seek(dest2 -= 2);
    }, 100);
    back_btn.addEventListener(MouseEvent.MOUSE_UP, BackButtonUp);
    function BackButtonUp(event:MouseEvent) {
    //back_btn.onRelease = function() {
    //mklik_flv.play();
    clearInterval(id2);
    }

    how long is your flv (in seconds), if allowed to play without
    ff/rewind/pause?

  • I need one recurcive(unended loop) pl/sql example, its very urgent pls

    Hi,
    I need one recurcive (unended loop) pl/sql example, its very urgent pls
    Thanks,
    Sathis.

    I suppose you'll want to know how to get out of your undended loop too (although that does stop it being unended).
    Example...
    SQL> ed
    Wrote file afiedt.buf
      1  DECLARE
      2    v_cnt NUMBER := 0;
      3  BEGIN
      4    LOOP
      5      EXIT WHEN v_cnt = 1000;
      6      v_cnt := v_cnt + 1;
      7    END LOOP;
      8* END;
    SQL> /
    PL/SQL procedure successfully completed.
    SQL>

Maybe you are looking for

  • Pagination in a Narrative view?

    Is there a way to use pagination controls in a Narrative view? I'm looking for either an out-of-the-box way to turn this on (maybe I'm just not seeing it?), or if that's not supported, then any ideas on how it might be otherwise implemented. Is this

  • After migration from MBP to MBA I can no longer add to my iTunes library

    I just did what appeared to be a flawless migration from MacBook Pro to MacBook Air. All except for iTunes. I've searched here this site for a solution, tried various fixes, and nothing seems to work so far. Here's what happens: iTunes works in all r

  • How to capture the onclick action htmlb to Portal component?

    <%     if (Bean.getSpoofValue().equalsIgnoreCase("spoof=yes"))                     {%>           <hbj:form id="spoof" >                <hbj:gridLayout                     id="myGrid2"                     rowSize="10"                     columnSize="1

  • Captivate 7 - edit with Power Point not working

    I am working with Power point slides in my captivate 7 project. When I try to edit the slide using power point I can delete words off the slide, but I can't add any words or letters. It is like my keyboard won't work. Any reasons why?

  • Safari startet nicht mehr ?!?

    Hallo Community, kann mir evtl. jemand weiterhelfen? Seid dem letzten Update startet Safari nicht mehr und diese Fehlermeldung kommt : Process:          Safari [547] Path:             /Applications/Safari.app/Contents/MacOS/Safari Identifier:       c