Order of focusLost and actionPerformed events in Swing on Red Hat

Hi!
I have quite complicated bug, which must be fixed as soon as possible. Currently I am drinking my fifth coffee and I cannot find anything about this bug on the net.
The bug looks like that:
I have pane with several JTextField on it and a Save Button.
Each JTextField has FocusListener with focusLost method. On focusLost event the entered text is validated and moved to the model object.
After pressing the Save Button model object is saved to DB. This work perfect on Windows but not on Red Hat ( I have not yet check on Solaris).
I enter the text in text field and press the save button with mouse. Then I receive information that the actionPerformed is called and save model object without entered text. After saving the focusLost is invoked and move the entered text to the previous saved object.
I have look into several books but I haven't find any information about order of events. Maybe if I took some more time, but project dead line is soon.
This is not my application, I only maintain it. I cannot read the JTextField on actionPerformed due to validation of data.
Have someone any experience with such problem?
I will be very appreciated for any help.

I haven't receive any reply yet, but maybe my workaround will help someone else.
I have figured out, that if I implement actionPerformed as InvokeLater it will cause proper order of focusLost and actionPerformed.
So it looks like:
actionPerformed() {
  SwingInvoke.invokeLater(new Runnable() {
    createSaveThread()
    startSaveTread()
}Have a nice day :)

Similar Messages

  • EventQueue Order (focusLost and actionPerformed)

    I have a JTextField and a JButton on the screen. I have set up a FocusListener for this JTextField and an ActionListener for the JButton.
    If I enter text into the JTextField and then click the JButton with the mouse what order should I expect to see the events?
    In most cases I get the focusLost event for the JTextfield and then the actionPerformed for the JButton.
    However, I do sometimes get the actionPerformed first and then the focusLost. This seems to happen when running the Java client as a remote X11 client across a slow network connection. If the network is suffiiciently fast (whatever that is) then the events seem to come through as I'd expect.
    When I get the actionPerformed event first then the button's hasfocus method returns FALSE. This makes sense since the textfield hasn't lost the focus yet.
    Also if I run the client from my desktop machine without the remote X11 it works as I expect - focusLost on the textfield then actionPerformed on the button.
    How can I be confident of the order of the events?
    How can I tell and what do I do if the events come in out of order?

    probably you solved it already, but for others:
    public class DelayedButton extends JButton {
      private boolean actionPerformedDelayed = true;  // true = delay fireActionPerformed (default)
      public boolean isActionPerformedDelayed() {
        return actionPerformedDelayed;
      public void setActionPerformedDelayed(boolean delayActionPerformed) {
        this.actionPerformedDelayed = delayActionPerformed;
       * overwritten to make sure that actionPerformed is invoked
       * *after* focusLost has been processed by the opposite component!
      @Override
      protected void fireActionPerformed(final ActionEvent event) {
        if (isActionPerformedDelayed()) {
          EventQueue.invokeLater(new Runnable() {
            public void run() {
              DelayedButton.super.fireActionPerformed(event);
        else  {
          super.fireActionPerformed(event);
    }Replace all JButtons in your app by DelayedButton and you're done.
    Regards,
    Harald

  • Help me install oracle form and report 9.0.4 on red hat AS 4 x86

    i installed oracle database 10.0.2 on my red hat AS 4 x86 in /u01/app/oracle/product/10.0.2/db_1. Now i want to install oracle form and report 9.0.4 on my computer in /u02/app/oracle/product/9.0.4
    The oracle installer checks for required packages. It will produce the following list of missing packeges:
    Package gcc-3.2.3-20 is missing
    Package compat-gcc-7.3-2.96.122 is missing
    Package compat-gcc-c++-7.3-2.96.122 is missing
    Package compat-libstdc++-7.3-2.96.122 is missing
    Package compat-libstdc++-devel-7.3-2.96.122 is missing
    Package setarch-1.3-1 is missing
    Package sysstat-4.0.7 is missing
    Package gnome-libs-1.4.1.2.90-34.1 is missing
    Package libstdc++-3.2.3 is missing
    Package compat-libstdc++-devel-7.3-2.96.122 is missing
    Package compat-glibc-7.x-2.2.4.32.5 is missingbut i installed newer versions of them. so can i continue to install without missing packeges??? and how to install missing packages because they conflict with packages i installed.
    i tried to continue installation without missing packages and have some errors:
    "Error in invoking target 'agent' of makefile /u02/app/oracle/product/9.0.4/sysman/lib/ins_sysman.mk"
    Error in invoking target 'install' of makefile /u02/app/oracle/product/9.0.4/sqlplus/lib/ins_sqlplus.mk"
    Error in invoking target 'install' of makefile /u02/app/oracle/product/9.0.4/plsql/lib/ins_plsql.mk"
    Error in invoking target 'relink' of makefile /u02/app/oracle/product/9.0.4/precomp/lib/ins_precomp.mk"
    Error in invoking target 'install' of makefile /u02/app/oracle/product/9.0.4/webcache/lib/ins_calypso.mk"
    Error in invoking target 'install' of makefile /u02/app/oracle/product/9.0.4/network/lib/ins_net_client.mk"
    Error in invoking target 'webm-install'(or genm-install or gen-install) of makefile /u02/app/oracle/product/9.0.4/forms90/lib/ins_forms.mk"
    Error in invoking target 'proxy install' (runm-install,server-install,cgi-install,cli-install,conv-install,qv-install) of makefile /u02/app/oracle/product/9.0.4/reports/lib/ins_reports.mk"
    and error in Configuration Assistants:
    "output generated from coniguration assistant "oracle net configuration assistant":/u01/app/oracle/jre/1.1.8/bin/.../bin/i686/native-threads/jre: relocation error
    ":/u01/app/oracle/jre/1.1.8/bin/.../bin/i686/native-threads/libjava.so: symbol_ _libc_wait, version Glibc -2.0 not defined in file libc.so.6 with link time refrence
    Someone help me!!!
    Thanks.

    The requirements for installing 10.2.0 and 9.0.4 on RHEL4 differ - 9.0.4 is based on older versioned RSFs and require linking against older compatibility libraries.
    The OUI may incorrectly complain if later versions of the required/pre-requisite packages really are installed - this should not be a problem functionally, however.
    The latter errors you report, however (make, relocation error, glibc/symbol), are symptomatic of trying to link with/against incompatible gcc/glibc versions. Try installing the following additional compatibility files (appropriate for your architecture);
    - http://oss.oracle.com/projects/compat-oracle/dist/files/RedHat/compat-oracle-rhel4-1.0-5.i386.rpm
    - http://oss.oracle.com/projects/compat-oracle/dist/files/RedHat/compat-libcwait-2.1-1.i386.rpm
    If you have not already done so, I suggest you create and use (i.e. source) separate environment definition files when working with each product/version environment. For 9.0.4, ensure that you specify environment variable LD_ASSUME_KERNEL=2.4.19 before installing 9.0.4 (or relinking).
    If you have MetaLink access, refer also to Note.315832.1, Note.389811.1.
    Message was edited by:
    mychan

  • Com sdk issue: order of stop and play events

    Hopefully someone can answer a question regarding the Windows COM SDK. I've written a few applications in VB using this interface to monitor my play history. The documentation says that when the track changes, an OnPlayerStopEvent is given followed by an OnPlayerPlayEvent. This has worked perfectly for me until recently when I upgraded to 7.1.0.59 and its associated version of the COM. Now when I skip to a new track, the order of events is Stop then Play, but when I let a track complete and advance to another, the order of events is Play then Stop. This is contrary to the documentation. Is this a bug or am I missing something?
    Thanks in advance for your help!
    Ted
    Dell Precision 3600   Windows XP Pro   iTunes 7.1.0.59, Visual Studio 2005

    You should report this issue (if it is still occurring) at http://bugreport.apple.com
    If you don't have an ADC account, you can sign up for an "ADC Online" account for free at http://connect.apple.com

  • Set up and check Display resolution of the Red Hat Linux 5

    i am going to install oracle 11g and i wanted to check resolution configured of the server . so i used folowing commands after connecting through Xstart
    #export DISPLAY=BAA16726:0.0
    # xrandr |grep '*'
    but it givng me the following error..
    “Xlib: extension "RANDR" missing on display "BAA16726:0.0".”
    According to oracle installation guidline they addvice to to folowing steps to setup Display
    #export DISPLAY= localhost(BAA16726):0.0
    #xhost + servername.us.example.com
    should i setup this from user oracle before start installation??
    if some one can clear my doubt would be appriciated.

    hello
    please try
    connect clean terminal with root user
    then xhost +
    then su - oracle
    then setup
    regards

  • JDK 7 + Red Hat 6 64-bit = WLS 10.3.6 and WLS 12.1 installer not working

    Hi,
    I have installed Weblogic 10.3.6 and 12.1 on two different Red Hat 6 64-bit servers. I started out using JDK 7 (1.7.0_05) but when I reached the screen where you select which products to install I could not select or deselect anything with the mouse. On others I could not use the keyboard for input. As soon as I switched to JDK 6 everything worked fine.
    As a workaround I installed and configured everything with JDK 6 and switched to JDK 7. This works fine and the developers are happy.
    But I have discovered that the I have the same problem when I use config.sh, so it is general problem with the GUI and JDK 7.
    I opened a Service Request on MOS in June but I don't think the support guy has much of a clue. He has been testing with Windows. His last suggestion was running the installer with -d64, but according to the manual this should only be used when using a 32/64-bit hybrid JDK, which is not the case.
    Anybody has any ideas?
    Regards Peter

    Hi Peter,
    I check the SR well I think it not so see to reproduce in other environment.
    But we can instead to engineer to reproduce on their environment.
    But as of I would suggest to use command line or silent mode to install wls.
    Going through GUI will have many complex issue on OS to OS base so best practice is to have such installation using command line or silent modes.
    Note: If engineer is unable to reproduce such issue in their environment then Oracle will not consider that is BUG then there would be issue in your environment only.
    Regards,
    Kal

  • Guide for Tuning and Optimizing Red Hat Linux AS for Oracle9i Database

    I put together a step-by-step guide for tuning and optimizing Red Hat Linux Advanced Server for Oracle9i. It's my first draft version and I would appreciate any comments and feedback.
    The article
    "Tuning and Optimizing Red Hat Linux Advanced Server for Oracle9i Database"
    can be found at:
    http://www.puschitz.com/TuningLinuxForOracle.shtml
    The article
    "Oracle 9i Installation on Red Hat Linux 7.1, 7.2, 7.3, 8.0, and on Red Hat Advanced Server 2.1"
    can now be found at http://www.puschitz.com/InstallingOracle9i.shtml
    And both links for
    "Oracle on Red Hat Linux"
    can be found at
    http://www.puschitz.com/OracleOnLinux.shtml
    Werner

    Is this good for Redhat Linux 9.0 and not just the advanced server.
    If it is not could you please provide me the links to articles like,
    "Guide for Tuning and Optimizing Red Hat Linux for Oracle9i Database"
    "Guide for Tuning and Optimizing Red Hat Linux for Oracle9i App Server"
    "Guide for Tuning and Optimizing Red Hat Linux for Oracle9i Infrastucture"
    Thanks.

  • Why don't my photos appear as they do in iPhoto on my Apple Computer. Even though I specify to sync all Events, Faces, etc. the iPad 2 is missing Faces categories and the Events are in a different order.

    Why don't my photos appear as they do in iPhoto on my Apple Computer. Even though I specify to sync all Events, Faces, etc. the iPad 2 is missing Faces categories and the Events are in a different order.

    1) The best way to relocate the iTunes library folder is to move the entire iTunes folder with all subfolders to the new path, then press and hold down shift as start iTunes and keep holding until prompted to choose a library, then browse to the relocated folder and open the file iTunes Library.itl inside it.
    If you've done something different then provide some more details about what is where and I should be able to help.
    2) Purchases on the device should automatically transfer to a Purchased on <DeviceName> playlist, but it my depend a bit on whether automatic iCloud downloads are enabled. If there is a cloudy link then the transfer might not happen. You can use File > Devices > Transfer Purchases. In iTunes you should also check out iTunes Store > Quick Links > Purchased > Music > Not on this computer.
    3) Backup the device, then immediately restore it. In some cases you need to add a restore as new device into that equation. Obbviously not to be attempted until you're sure all your media is in your library. See Recover your iTunes library from your iPod or iOS device should it be needed.
    4) I believe there is complimentary 1 incident 90-day support with hardware purchases, but no free software support for iTunes itself. AppleCare gets you a different level of support.
    tt2

  • Help need in getting thread join to actionperformed event.

    Hi,
    I am trying to building a small application which should give me the following functionality.
    My main function should span two windows. One window(1) will be receiving the input from the user and after the user enter a string and press the OK butten, the other window(2) should display this string and first window should set unvisible.
    To have this function working my window(2) should wait for the window(1) ActionPerform event complete and receive the message from it.
    Can any of you please help me getting some hints or sample codes for this action to be done.
    Thanks.

    Varad,
    Not sure what you are suggesting is what I am looking to do. I believe with your example here that I would need to create a new item table in my current DB in order to recall this data. This table would be populated with the items I selected (checkbox) from the original page. This is one solution, but the issue is that this is dynamic and these values would change as a new search is generated or different values are selected.
    Is there anyway in which to make (code) in ApEx so as that the values (i.e. P1_items 123 : 234 : 456) (note that these items are defaulted to colon delimitation by ApEx) are properly formatted so as SQL can read them as independent items. Note if I simply rewrite the original SQL script and replace the :P1_item with generic values (123 , 234 , 456) the SQL operates as intended.
    Thank you for your support and help,
    Randy

  • Badi and Business event( Urgent)

    Hi experts,
          I am new to badi and business event 1120P. Please post how this business event exactly comes in to picture in this badi. also how to find this business event?
    And also Post the logic or code. The requirement is given below . Pls Post the solution. Its very urgent.
    Enhancement Summary
    Two user exits are needed to determine the correct G/L Account and Cost Center on Shipment Cost documents and post the Material Group on the Accounting document. BADI_SCD_ACCTG and Business Event 1120P can be used to accommodate the new functionality.
    Business Process
    Specific G/L Accounts and Cost Centers have to be determined to post on the Shipment Cost document. This is needed to provide accurate management reporting capabilities on shipments for Sales Order or Stock Transfer Order. A new custom table must be created which contains the following information: Distribution, Mode of Transport, Account, Cost Center Material group. Distribution is an identifier here if this shipment originated from an SO or STO.
    There are no screens involved in this enhancement.
    Components
    Table: ZTABLE1
    Field     Data Element     Type     Length     Description
    MANDT     MANDT     CLNT (key)     3     Client
    DISTRIBUTION     Z_DISTRIBUTION     CHAR (key)     1     Distribution
    MOT     ZZDEF_MOT     CHAR (key)     2     Mode of Transportation
    MATKL     MATKL     CHAR (key)     9     Material group
    SAKNR     SAKNR     CHAR     10     G/L Account Number
    KOSTL     KOSTL     CHAR     10     Cost Center
    This table gets updated manually by the FI team.
    Values for Distribution are:
    ‘1’  =  Primary Distribution to Refinery
    ‘2’ = Primary and Secondary– Excluding refinery
    All entries must be checked against SAP config and master tables
    User exit BADI BADI_SCD_ACCTG will be used to determine the correct G/L Account, Cost Center and Product Group based on Distribution and Mode of Transport. This BADI gets called only when a new Shipment Cost document get created.
    Once the BADI determined the new values it populates field c_vfkn-sakto with the G/L account, field c_vfkn-kostl with the Cost Center and exports the Product group to memory.
    There is no field on the Shipment Cost Document to store the Product group. Therefore another mechanism must be used to get the Product Group on the accounting document.
    Business Event 1120P can be used to import the Product group out of memory and put it on BSEG-MATNR. Structure BSEG_SUBST must be enhanced with field MATNR for this purpose.
    Function, Rules, Exits      Description of Functionality, Rules, Exits
    BADI_SCD_ACCTG     Business Add-In for Shipment Cost Account Assignment
    Business Framework     Business Event 1120P can be used to import the Product Group from memory and to populate field BSEG_SUBST-MATNR.
    This event gets called from different places. It needs to be ensured that it only populates the value when it was called from BADI_SCD_ACCTG.
    Custom Table     A look-up Table needs to be maintained for Distribution, Mode of Transport, G/L Account, Cost Center and Material Group
    Transaction code     To maintain the new table
    Append Structure     To enhance structure BSEG_SUBST with MATNR
          Business Add-In BADI_SCD_ACCTG can be used to determine the account assignments for a shipment cost item to set the G/L Account and Cost Center. All data needed to determine the new information gets provided in this BADI.
    Logic:
    •     Determine if STO or SO based on Document Category from internal table I_REFOBJ-VTRLP field VGTYP If is C then Distribution type is Sales Order (Primary and Secondary – Excluding Refinery – ‘2’ ) else we need to check the receiving plant. If the receiving plant (I_REFOBJ-VTRLK field WERKS) is a refinery the Distribution type is Primary (1) else it’s a (Primary and Secondary – Excluding Refinery – ‘2’ ). Refineries can be identified via Function Module ZPLANTCLASSIFICATION. The plant must be passed into Import Parameter IP_SAPPLANT and field INT_PLANTCHAR-ATNAM must be looked up with value SAPTYPE. If it exists and field ATWRT contains ‘RFY’, the plant is a refinery.
    •     Product Group can be determined from the Material master through Material group field MARA-MATKL.
    •     Mode of Transport will be passed in the BADI in VTRLK-OIC_MOT.
    •     Select single entry from table ZTABLE1based on Distribution, Mode of Transport and Material Group. If nothing gets selected, error message ‘No entry exists in table ZTABLE1for Distribution (distribution), MOT (MOT) & Mat. Group (material group)’ should be triggered.
    •     Move ZTABLE1-SAKNR  to c_vfkn-sakto and ZTABLE1-KOSTL to c_vfkn-kostl
    •     The Material group must be exported to memory in BADI_SCD_ACCTG
    •     The Material group must be imported from memory in Business Event BP1120P
    •     Free Memory in Business Event BP1120P
    This is VI01 – Creation of Freight Cost Item screen
    and also code for function module ZPLANTCLASSIFICATION below
    FUNCTION zplantclassification .
    ""Local interface:
    *"  IMPORTING
    *"     REFERENCE(IP_SAPPLANT) LIKE  AUSP-OBJEK OPTIONAL
    *"     REFERENCE(IP_CPSPLANT) LIKE  AUSP-ATWRT OPTIONAL
    *"     REFERENCE(IP_SISLOC) LIKE  AUSP-ATWRT OPTIONAL
    *"  EXPORTING
    *"     VALUE(EP_SAPPLANT) LIKE  AUSP-OBJEK
    *"     VALUE(EP_CPSPLANT) LIKE  AUSP-ATWRT
    *"     VALUE(EP_SISLOC) LIKE  AUSP-ATWRT
    *"     VALUE(EP_OWNERSHIP) LIKE  AUSP-ATWRT
    *"     VALUE(EP_SMISTYPE) LIKE  AUSP-ATWRT
    *"     VALUE(EP_SPOTREF) LIKE  AUSP-ATWRT
    *"     VALUE(EP_SUBTYPE) LIKE  AUSP-ATWRT
    *"     VALUE(EP_SUPPLYREGION) LIKE  AUSP-ATWRT
    *"     VALUE(EP_TYPE) LIKE  AUSP-ATWRT
    *"     VALUE(EP_DISTAREA) LIKE  AUSP-ATWRT
    *"     VALUE(EP_GEOGAREA) LIKE  AUSP-ATWRT
    *"     VALUE(EP_HMF) LIKE  AUSP-ATWRT
    *"     VALUE(EP_IATACODE) LIKE  AUSP-ATWRT
    *"     VALUE(EP_IRSTCN) LIKE  AUSP-ATWRT
    *"     VALUE(EP_OPSAREA) LIKE  AUSP-ATWRT
    *"     VALUE(EP_PLANTSTAT) LIKE  AUSP-ATWRT
    *"     VALUE(EP_PORTCODE) LIKE  AUSP-ATWRT
    *"     VALUE(EP_REFAREA) LIKE  AUSP-ATWRT
    *"     VALUE(EP_SAPTYPE) LIKE  AUSP-ATWRT
    *"     VALUE(EP_MFGWARRANTY) LIKE  AUSP-ATWRT
    *"     VALUE(EP_USERTYPE) LIKE  AUSP-ATWRT
    *"     VALUE(EP_TRMCENTER) LIKE  AUSP-ATWRT
    *"     VALUE(EP_TRANSCENTER) LIKE  AUSP-ATWRT
    *"     VALUE(EP_FEIN) LIKE  AUSP-ATWRT
    *"  TABLES
    *"      INT_PLANTCHAR STRUCTURE  ZPLANTCLASSIFICATION OPTIONAL
    *"  EXCEPTIONS
    *"      NO_OBJEK_FOUND
    *"      NO_CPSPLANT_FOUND
    *"      NO_SISLOC_FOUND
    *"      NO_INPUT_FOUND
    *"      VALID_PLANT_NO_CHARACTERISTIC
    *"      ONE_TO_MANY_ISSUE
    *"      PLANT_NOT_FOUND_ZDEF_DELPLANT
    *"      UNKNOWN_ERRORS
    FM Name: ZPLANTCLASSIFICATION     
    Created By  :  SYUB                                                  *
    Description : Function Module to retrieve plant characteristics      *
    The function module has two capabilities:
    1. Retrieve only the necessary characteristics
    2. Retrieve the whole characteristics into an internal table.
    Parameter Description                                                *
    In the future, if there is a new characteristic added to the
    plant classification tables, the characteristic has to be added
    to the list of the export parameters and the loop statement.
      TABLES: ausp, cabn, ksml, zdef_delplant.
      DATA: ws_objek LIKE ausp-objek,
            ws_countchar TYPE i,
            ws_countplant TYPE i.
    *Internal table for SAP plant
      DATA: BEGIN OF int_plant OCCURS 0,
            plant LIKE ausp-objek,
            END OF int_plant.
    *sap plant code is the input parameter.Move objek, atnam, and atwrt to
    *internal table PLANTCHAR using inner join of AUSP, CABN, and KSML to
    *synch up the internal characteristic numbers throughout the 3 tables.
      IF NOT ip_sapplant IS INITIAL.
        SELECT auspobjek cabnatnam ausp~atwrt
          INTO CORRESPONDING FIELDS OF TABLE int_plantchar
          FROM ksml AS ksml
          INNER JOIN cabn AS cabn
            ON cabnatinn = ksmlimerk
          INNER JOIN ausp AS ausp
            ON ausp~objek = ip_sapplant
            AND auspatinn = cabnatinn
            AND ausp~mafid = 'O'
            AND ausp~klart = 'Z01'.
    *Checking the existence of ip_sapplant in the table, if it doesn't
    *exist, raise the exception else if it exists, check if it has
    *characteristic values.
        IF sy-subrc NE 0.
          RAISE no_objek_found.
        ELSE.
          DESCRIBE TABLE int_plantchar LINES ws_countchar.
          IF ws_countchar LT 2.
            RAISE valid_plant_no_characteristic.
          ENDIF.
        ENDIF.
    *cps plant code is the input parameter. Move objek from table AUSP to
    *ws_objek using inner join of CABN and AUSP to match up the internal
    *characteristic numbers from the 2 tables.
      ELSEIF NOT ip_cpsplant IS INITIAL.
        SELECT ausp~objek
          INTO TABLE int_plant
          FROM ausp AS ausp
          INNER JOIN cabn AS cabn
            ON cabn~atnam = 'OLDCODE'
              WHERE auspatinn = cabnatinn
                AND ausp~mafid = 'O'
                AND ausp~klart = 'Z01'
                AND ausp~atwrt = ip_cpsplant.
    *Checking the existence of ip_cpsplant in the table
        IF sy-subrc EQ 0.
    *Counting the number of SAP plants in the internal table int_plant
          DESCRIBE TABLE int_plant LINES ws_countplant.
    *Moving the values of objek, atnam, and atwrt to PLANTCHAR using objek
    *from ws_objek.
          IF ws_countplant EQ 1.
            LOOP AT int_plant.
              SELECT auspobjek cabnatnam ausp~atwrt
                INTO CORRESPONDING FIELDS OF TABLE int_plantchar
                FROM ksml AS ksml
                INNER JOIN cabn AS cabn
                  ON cabnatinn = ksmlimerk
                INNER JOIN ausp AS ausp
                  ON ausp~objek = int_plant-plant
                  AND auspatinn = cabnatinn
                  AND ausp~mafid = 'O'
                  AND ausp~klart = 'Z01'.
            ENDLOOP.
    *If there more than one SAP Plants, then raise an exception.
          ELSEIF ws_countplant GT 1.
            RAISE one_to_many_issue.
          ENDIF.
        ELSE.
          SELECT SINGLE werks FROM zdef_delplant
            INTO ws_objek
            WHERE cpsloc = ip_cpsplant.
          SELECT auspobjek cabnatnam ausp~atwrt
           INTO CORRESPONDING FIELDS OF TABLE int_plantchar
           FROM ksml AS ksml
           INNER JOIN cabn AS cabn
             ON cabnatinn = ksmlimerk
           INNER JOIN ausp AS ausp
             ON ausp~objek = ws_objek
             AND auspatinn = cabnatinn
             AND ausp~mafid = 'O'
             AND ausp~klart = 'Z01'.
          if sy-subrc ne 0.
            raise plant_not_found_zdef_delplant.
          endif.
        ENDIF.
    *cps plant code is the input parameter. Move objek from table AUSP to
    *ws_objek using inner join of CABN and AUSP to match up the internal
    *characteristic numbers from the 2 tables.
      ELSEIF NOT ip_sisloc IS INITIAL.
        SELECT ausp~objek
          INTO TABLE int_plant
          FROM ausp AS ausp
          INNER JOIN cabn AS cabn
            ON cabn~atnam = 'SISLOC'
              WHERE auspatinn = cabnatinn
                AND ausp~mafid = 'O'
                AND ausp~klart = 'Z01'
                AND ausp~atwrt = ip_sisloc.
    *Checking the existence of ip_sapplant in the table
        IF sy-subrc EQ 0.
          DESCRIBE TABLE int_plant LINES ws_countplant.
    *Moving the values of objek, atnam, and atwrt to PLANTCHAR using objek
    *from ws_objek.
          IF ws_countplant EQ 1.
            LOOP AT int_plant.
              SELECT auspobjek cabnatnam ausp~atwrt
                INTO CORRESPONDING FIELDS OF TABLE int_plantchar
                FROM ksml AS ksml
                INNER JOIN cabn AS cabn
                  ON cabnatinn = ksmlimerk
                INNER JOIN ausp AS ausp
                  ON ausp~objek = int_plant-plant
                  AND auspatinn = cabnatinn
                  AND ausp~mafid = 'O'
                  AND ausp~klart = 'Z01'.
            ENDLOOP.
    *If there more than one SAP Plants, then raise an exception.
          ELSEIF ws_countplant GT 1.
            RAISE one_to_many_issue.
          ENDIF.
        ELSE.
          SELECT SINGLE werks FROM zdef_delplant
            INTO ws_objek
            WHERE sisloc = ip_sisloc.
          SELECT auspobjek cabnatnam ausp~atwrt
           INTO CORRESPONDING FIELDS OF TABLE int_plantchar
           FROM ksml AS ksml
           INNER JOIN cabn AS cabn
             ON cabnatinn = ksmlimerk
           INNER JOIN ausp AS ausp
             ON ausp~objek = ws_objek
             AND auspatinn = cabnatinn
             AND ausp~mafid = 'O'
             AND ausp~klart = 'Z01'.
          if sy-subrc ne 0.
            raise plant_not_found_zdef_delplant.
          endif.
        ENDIF.
      ELSE.
    *Checking if there is an input parameter entered.
        RAISE no_input_found.
      ENDIF.
    Modified 7/30 by RFOR to validate SAP plant is in plant master
      data: wa_t001w like t001w.
      read table int_plantchar.
      SELECT SINGLE * from t001w into wa_t001w where
      werks = int_plantchar-objek.
      if sy-subrc ne 0.
        raise NO_OBJEK_FOUND.
      endif.
    *Moving all the characteristic values to the export parameters
      LOOP AT int_plantchar.
        MOVE int_plantchar-objek TO ep_sapplant.
        CASE int_plantchar-atnam.
          WHEN 'OLDCODE'.
            MOVE int_plantchar-atwrt TO ep_cpsplant.
          WHEN 'SISLOC'.
            MOVE int_plantchar-atwrt TO ep_sisloc.
          WHEN 'OWNERSHIP'.
            MOVE int_plantchar-atwrt TO ep_ownership.
          WHEN 'SMISTYPE'.
            MOVE int_plantchar-atwrt TO ep_smistype.
          WHEN 'SPOTREF'.
            MOVE int_plantchar-atwrt TO ep_spotref.
          WHEN 'SUBTYPE'.
            MOVE int_plantchar-atwrt TO ep_subtype.
          WHEN 'SUPPLYREGION'.
            MOVE int_plantchar-atwrt TO ep_supplyregion.
          WHEN 'TYPE'.
            MOVE int_plantchar-atwrt TO ep_type.
          WHEN 'DISTAREA'.
            MOVE int_plantchar-atwrt TO ep_distarea.
          WHEN 'GEOGAREA'.
            MOVE int_plantchar-atwrt TO ep_geogarea.
          WHEN 'HMF'.
            MOVE int_plantchar-atwrt TO ep_hmf.
          WHEN 'IATACODE'.
            MOVE int_plantchar-atwrt TO ep_iatacode.
          WHEN 'IRSTCN'.
            MOVE int_plantchar-atwrt TO ep_irstcn.
          WHEN 'OPSAREA'.
            MOVE int_plantchar-atwrt TO ep_opsarea.
          WHEN 'PLANTSTAT'.
            MOVE int_plantchar-atwrt TO ep_plantstat.
          WHEN 'PORTCODE'.
            MOVE int_plantchar-atwrt TO ep_portcode.
          WHEN 'REFAREA'.
            MOVE int_plantchar-atwrt TO ep_refarea.
          WHEN 'SAPTYPE'.
            MOVE int_plantchar-atwrt TO ep_saptype.
          WHEN 'MFG_WARRANTY'.
            MOVE int_plantchar-atwrt TO ep_mfgwarranty.
          WHEN 'USER_TYPE'.
            MOVE int_plantchar-atwrt TO ep_usertype.
          WHEN 'TERMINALCENTER'.
            MOVE int_plantchar-atwrt TO ep_trmcenter.
          WHEN 'TRANSPORTATIONCENTER'.
            MOVE int_plantchar-atwrt TO ep_transcenter.
          when 'FEIN'.
            move int_plantchar-atwrt to ep_fein.
        ENDCASE.
      ENDLOOP.
    ENDFUNCTION.
    Pls help me out from this problem its very urgent.
    Thanks

    hi SK ,
    process like this .
    in BADI
    method.
    1.Here u have to put ur logic based on the Requirement.
    2.then u have to call BTE like this
    <b>call function 'OPEN_FI_PERFORM_00001020_E'
          tables
            t_bseg = xbseg
            t_bkpf = xbkpf.</b>
    3.Update Ztables.
    endmethod.
    this is sample logic only.First get logic of TS then u will come to know how to do?
    regards
    prabhu

  • My contacts and calendar events disappeared from my iPad! How can I retrieve them??

    My contacts and calendar events disappeared from my iPad. Can they be retrieved?

    From
    http://btsc.webapps.blackberry.com/btsc/viewdocument.do;jsessionid=B786F9DEB73FE BE22A4D2F911A97BC3C?externalId=KB35311&sliceId=2&cmd=displayKC&docType=kc&noCoun t=true&ViewedDocsListHelper=com.kanisa.apps.common.BaseViewedDocsListHelperImpl
    BlackBerry Desktop Software utilizes Apple's SyncServices technology in order to synchronize Contact, Calendar, Notes, and Tasks information to and from the Mac computer.
    BlackBerry Desktop Software synchronizes information with the SyncServices database, which is synchronized with the desktop applications on the Mac computer (for example: Apple Address Book, iCal, Apple Mail, Microsoft Outlook for Mac). BlackBerry Desktop Software does not synchronize directly to or from the desktop applications on the Mac computer.
    Mac OS X Mavericks v10.9 and later does not use SyncServices, therefore, it is not possible to synchronize Contact or Calendar information using the BlackBerry Desktop Software on these versions of OS X.
    For more information on SyncServices and OS X Mavericks, see the following Apple Support article:
    http://support.apple.com/kb/HT5847
    Note: BlackBerry Desktop software 2.4 is still supported for use with Mac OS X v10.6, 10.7, and 10.8.
    Pete

  • If I preorder an iPhone 5 will it arrive at my house on the 21st or is that when it'll ship? I would like to have it the day it comes out so if it would be faster to order it online and then pick it up from the apple store, let me know! Thanks

    If I preorder an iPhone 5 will it arrive at my house on the 21st or is that when it'll ship? I would like to have it the day it comes out so if it would be faster to order it online and then pick it up from the apple store, let me know! Thanks

    My experience is with the iPhone 4S and the "new" iPad, both of which I ordered early on the opening pre-order day. In both cases the wording from Apple during the media event was "pre-orders will start on ABC date for delivery on XYZ date" which was also the same day they were to go on sale in stores.  In both cases, the UPS truck rolled up earlier than usual XYZ date as promised to hand me my new iPhone/iPad. In both cases there were instances of confusion due to some pre-order confirmations stating incorrectly "SCHEDULED SHIPPING DATE: XYZ".  In both cases that caused much fear, panick, and trepidation that fed upon itself as it permeated a widely scattered forum linked community of "adults" that seem to collectively revert to a state of childish impatience and ultimately child-like glee as they obsessively refresh their dedicated tracking browser window; become convinced that there is no hope of escaping the dread delayed shippment, and then finally receive their new toy exactly when they were supposed to.  Not that I personally would ever succumb to that of course.  Er uhm ... it's just what I've seen you know .. nothing I can really relate to.

  • My Super smash bros Wii U pre order because i pre ordered in store and placed a $5 deposit

    Let me share what I was told when I arrived at best buy store. By the way I will file a complaint to corporate about this and will see about filing it to better business bureau... I pre ordered my smash brothers bundle in store ( couldn't do it online because there are issues with my account for a year now and after numerous calls to fix it which I have been given so many ticket numbers,best buy just cant fix their own mistakes). I arrive at the store to pick up my pre order and the employee responds with a dissapointing tone"don't tell me you preordered the bundle." the employee just walks back and forth. She then asks her co-worker which she then tells me "we don't have your preorder...we only filled orders for the people who preordered online and fully paid the game." I asked for a manager and told him this is the second time best buy has messed up my pre orders and provide me with poor service. He then says that they only filled the orders from online purchases and who paid in full which makes me feel like I didn't matter only because I placed a $5.00 deposit to guarantee my copy.overall I received poor customer service, he did not own the situation and didn't offer at least some type of compensation to a "former" loyal elite customer. In general, best buy has given me poor service throughout the year by not fixing my ability to order online for a year, messing up my pre order of Mario kart 8 by charging me for the free $10 gift card which was supposed to be free for pre ordering the game and then refusing to give me a refund for the $10 charge, and finally telling me that even though I pre ordered, because I didn't pay the bundle in full I don't get my copy at all... Not even a phone call,common courtesy to notify me. This is it! Best buy will never get business from me and I will never recomment it to anyone. Amazon on the other hand does everything right, and owns the situations and strive to make things right.Amazon is now my go to for shopping all electronic and entertainment needs. Amazon even allowed me to place a new order for the bundle and will receive it next week versus best buy saying " we don't know when we will get them." In short I cancelled my pre order from best buy and took my business elsewhere. Finally when I asked the supervisor for corporate's contact information, he refused to provide it. Now I need to check online and hunt down that information

    Hello redrevolver4,
    Thank you for pre-ordering from Best Buy, and thank you for sharing your experience with us.  We as moderators on the forum work at the corporate office, and I am happy to talk to you today.
    Reading through your description of events I can certainly understand why you would be disappointed.  It is not our intent to leave any customers out when they pre-order a product with us.  While we are working to fulfill our in-store pre-orders that were not yet completed, I can also understand your desire to cancel the order and go where you could get an order shipped out to you.  I am sorry that was not us this time.
    I will certainly document your feedback so that we can learn from it and ensure that our stores are adequately equipped to fulfill orders as our first priority, but provide all care and courtesy when things don't go quite as intended.
    I did have one more question for you, though, and I will be sending you a private message with that.  Please watch for that message from me shortly.
    Thank you,
    Mike|Social Media Specialist | Best Buy® Corporate
     Private Message

  • Can u please tell me events trigaring and first event in report

    hi experts,
    can u please tell me events trigaring and first event in report

    actually first event triggering in a report is intialization
    but before that there is one more event get triggered that is load of program.....This is the very first event which is trigger in a report program. Really I have never needed a reason to use this. But I would assume that it can be used when you want to do something before the INITIALIZATION event.
    Classical Reports can have these events, in the given order :
    initialization
    at selection-screen
    start-of-selection
    end-of-selection
    top-of-page
    end-of-page
    In addition o the above, the following events are possible in case of Interactive Reports -
    at line-selection
    at user-command
    at PFnn.

  • Business objects and start events required for CO11N and CO13 transactions

    Hi,
    We do production order <b>confirmation</b> and <b>cancellation</b> in CO11N and CO13 respectively. Can somebody please tell me the corresponsing business objects and the start events for them? This is a very urgent issue, I will surely rewad good points.
    I guess we need to use AFVC_PM object and "finalconfirmation" event for the confirmation.
    Please confirm this and kindly suggest the same for cancellation.
    Thanks,
    Max

    Hi Max,
    You will have to use the object BUS2005 - which is for Production order.
    If you do not have Required events in the BO, you will have to extend object to add those custom events e.g. Cancellation event.
    In this case you wil have to use Status management technique for raising events if standad transaction is not raising them.
    Hope following SAP Help link might help you  to start off..
    http://help.sap.com/saphelp_47x200/helpdata/en/c5/e4aed5453d11d189430000e829fbbd/content.htm
    Regards,
    Akshay Bhagwat

Maybe you are looking for