Bdc_insert doesn't call

i have created a bdc for transaction f-43. when i used it for call trasaction then it works successfully but when i use session method then an error occured. the functiom module (bdc_insert) doesn't call.  session is generated but log doesn't generated . can anyone help me?

REPORT ZWT_MONTH_CONTRIBUTION_UPLOAD
       NO STANDARD PAGE HEADING LINE-SIZE 255.
TYPE-POOLS : TRUXS.
TYPES: BEGIN OF TS_WAGETYPE,
         ROW              TYPE I,
         TEMP(10)         TYPE C  
         PERSONNEL_NO(10) ,
         WAGE_TYPE(10)    TYPE C,
         AMOUNT(10)       TYPE C ,
       END OF TS_WAGETYPE.
TYPES: BEGIN OF TS_FINAL,
        PERSONNEL_NO TYPE PA0001-PERNR,
        BUIS_AREA(10) TYPE C,
        WAGE_TYPE(10) TYPE C,
        AMOUNT        TYPE BSIK-DMBTR,
        NEWUM         TYPE RF05A-NEWUM,
        NEWUM8        TYPE RF05A-NEWUM,
        NEWUM9        TYPE RF05A-NEWUM,
        AMOUNT8       TYPE BSIK-DMBTR,
        AMOUNT9       TYPE BSIK-DMBTR,
        TOTAL_AMOUNT  TYPE BSIK-DMBTR ,
       END OF TS_FINAL.
TYPES: BEGIN OF TS_MAIN,
         PERSONNEL_NO(10),
         BUIS_AREA(10),
         AMOUNT7(10),
         NEWUM7(2),
         NEWUM8(2),
         NEWUM9(2),
         AMOUNT8(10),
         AMOUNT9(10),
         M_DATE(10),
         TOTAL_AMOUNT(15),
       END OF TS_MAIN.
TYPES: BEGIN OF TS_PERNR,
        PERSONNEL_NO TYPE PA0001-PERNR,
      END OF TS_PERNR.
DATA : IT_PAREA    TYPE STANDARD TABLE OF TS_PAREA     INITIAL SIZE 0,
       IT_WAGETYPE TYPE STANDARD TABLE OF TS_WAGETYPE  INITIAL SIZE 0,
       IT_FINAL    TYPE STANDARD TABLE OF TS_FINAL     INITIAL SIZE 0,
       IT_PERNR    TYPE STANDARD TABLE OF TS_PERNR     INITIAL SIZE 0,
       IT_MAIN     TYPE STANDARD TABLE OF TS_MAIN      INITIAL SIZE 0,
       IT_BSIK     TYPE STANDARD TABLE OF TS_BSIK      INITIAL SIZE 0.
DATA: ITAB LIKE ALSMEX_TABLINE OCCURS 0 WITH HEADER LINE.
DATA : G_RAW_DATA TYPE TRUXS_T_TEXT_DATA.
DATA : BEGIN OF BDCDATA OCCURS 0.
        INCLUDE STRUCTURE BDCDATA.
DATA : END OF BDCDATA.
DATA : BEGIN OF MESTAB OCCURS 0.
        INCLUDE STRUCTURE BDCMSGCOLL.
DATA : END OF MESTAB.
DATA : WA_PAREA       TYPE   TS_PAREA.
DATA : WA_WAGETYPE    TYPE   TS_WAGETYPE.
DATA : WA_FINAL       TYPE   TS_FINAL.
DATA : WA_PERNR       TYPE   TS_PERNR.
DATA : WA_MAIN        TYPE    TS_MAIN.
DATA : WA_BSIK        TYPE    TS_BSIK.
*&                 SELECTION SCREEN
  PERFORM GET_FORMATE_DATE.
  PERFORM GET_BDC_DATA_WAGETYPE.
  ERFORM BDC_F-43_INSERT.
*&      Form  UPLOADEXCELDATA
      text
-->  p1        text
<--  p2        text
FORM UPLOADEXCELDATA .
  CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
    EXPORTING
      FILENAME                = PA_FILE
      I_BEGIN_COL             = '1'
      I_BEGIN_ROW             = '3'  "Do not require headings
      I_END_COL               = '6'
      I_END_ROW               = '65536'
    TABLES
      INTERN                  = ITAB
    EXCEPTIONS
      INCONSISTENT_PARAMETERS = 1
      UPLOAD_OLE              = 2
      OTHERS                  = 3.
  LOOP AT ITAB.
    WA_WAGETYPE-ROW = ITAB-ROW.
    APPEND WA_WAGETYPE TO IT_WAGETYPE.
  ENDLOOP.
  DELETE ADJACENT DUPLICATES FROM IT_WAGETYPE COMPARING ROW.
  LOOP AT IT_WAGETYPE INTO WA_WAGETYPE.
    LOOP AT ITAB WHERE ROW = WA_WAGETYPE-ROW.
      IF ITAB-COL = '0002'.
        WA_WAGETYPE-TEMP =  ITAB-VALUE .
        MODIFY IT_WAGETYPE FROM WA_WAGETYPE TRANSPORTING TEMP..
      ELSEIF ITAB-COL = '0003'.
        .        WA_WAGETYPE-PERSONNEL_NO =  ITAB-VALUE .
        MODIFY IT_WAGETYPE FROM WA_WAGETYPE TRANSPORTING  PERSONNEL_NO.
      ELSEIF ITAB-COL = '0004'.
        WA_WAGETYPE-WAGE_TYPE =  ITAB-VALUE .
        MODIFY IT_WAGETYPE FROM WA_WAGETYPE TRANSPORTING WAGE_TYPE.
      ELSEIF ITAB-COL = '0005'.
        WA_WAGETYPE-AMOUNT =  ITAB-VALUE .
        MODIFY IT_WAGETYPE FROM WA_WAGETYPE TRANSPORTING AMOUNT.
      ENDIF.
    ENDLOOP.
  ENDLOOP.
  IF SY-SUBRC <> 0.
    WRITE:/ 'Upload Error ', SY-SUBRC.
  ENDIF.
ENDFORM.                    " UPLOADEXCELDATA
*&      Form  GET_BDC_DATA_F43
      text
-->  p1        text
<--  p2        text
FORM GET_BDC_DATA_F43 .
  LOOP AT IT_FINAL INTO WA_FINAL.
    WA_MAIN-PERSONNEL_NO  = WA_FINAL-PERSONNEL_NO.
    WA_MAIN-BUIS_AREA     = WA_FINAL-BUIS_AREA.
    WA_MAIN-AMOUNT7       = WA_FINAL-AMOUNT.
    WA_MAIN-NEWUM7        = WA_FINAL-NEWUM.
    WA_MAIN-NEWUM8        = WA_FINAL-NEWUM8.
    WA_MAIN-NEWUM9        = WA_FINAL-NEWUM9.
    WA_MAIN-AMOUNT8       = WA_FINAL-AMOUNT8.
    WA_MAIN-AMOUNT9       = WA_FINAL-AMOUNT9.
    WA_MAIN-M_DATE        = DATE_H.
    WA_MAIN-TOTAL_AMOUNT  = WA_FINAL-TOTAL_AMOUNT.
    APPEND WA_MAIN TO IT_MAIN.
  ENDLOOP.
ENDFORM.                    " BDC_F-43_INSERT
*&      Form  BDC_F-43_INSERT
      text
-->  p1        text
<--  p2        text
FORM BDC_F-43_INSERT .
PERFORM BDC_OPEN_GROUP.
  LOOP AT IT_MAIN INTO WA_MAIN.
    REFRESH BDCDATA.
    CLEAR   BDCDATA.
    IF WA_MAIN-BUIS_AREA = 'IN'.
      PERFORM BDC_DYNPRO      USING 'SAPMF05A' '0100'.
      PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                    'RF05A-NEWUM'.
      PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                    '/00'.
      PERFORM BDC_FIELD       USING 'BKPF-BLDAT'
                                     DATE_H_F43.
      PERFORM BDC_FIELD       USING 'BKPF-BLART'
                                    'cp'.
      PERFORM BDC_FIELD       USING 'BKPF-BUKRS'
                                    '044'.
      PERFORM BDC_FIELD       USING 'BKPF-BUDAT'
                                    DATE_H_F43.
      PERFORM BDC_FIELD       USING 'BKPF-MONAT'
                                    I_MONAT .
      PERFORM BDC_FIELD       USING 'BKPF-WAERS'
                                    'INR'.
      PERFORM BDC_FIELD       USING 'BKPF-BKTXT'
                                    'CONTRIBUTION POSTING'.
      PERFORM BDC_FIELD       USING 'FS006-DOCID'
      PERFORM BDC_FIELD       USING 'RF05A-NEWBS'
                                    '39'.
      PERFORM BDC_FIELD       USING 'RF05A-NEWKO'
                                     WA_MAIN-PERSONNEL_NO.
      PERFORM BDC_FIELD       USING 'RF05A-NEWUM'
                                    WA_MAIN-NEWUM7.
      PERFORM BDC_DYNPRO      USING 'SAPMF05A' '0303'.
      PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                    'RF05A-NEWUM'.
      PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                    '/00'.
      PERFORM BDC_FIELD       USING 'BSEG-WRBTR'
                                    WA_MAIN-AMOUNT7.
      PERFORM BDC_FIELD       USING 'BSEG-GSBER'
                                    'PF01'.
      PERFORM BDC_FIELD       USING 'BSEG-ZFBDT'
                                     DATE_H_F43.
      PERFORM BDC_FIELD       USING 'RF05A-NEWBS'
                                    '39'.
      PERFORM BDC_FIELD       USING 'RF05A-NEWKO'
                                     WA_MAIN-PERSONNEL_NO.
      PERFORM BDC_FIELD       USING 'RF05A-NEWUM'
                                    WA_MAIN-NEWUM8.
      PERFORM BDC_DYNPRO      USING 'SAPMF05A' '0303'.
      PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                    'RF05A-NEWUM'.
      PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                    '/00'.
      PERFORM BDC_FIELD       USING 'BSEG-WRBTR'
                                    WA_MAIN-AMOUNT8.
      PERFORM BDC_FIELD       USING 'BSEG-GSBER'
                                    'PF01'.
      PERFORM BDC_FIELD       USING 'BSEG-ZFBDT'
                                     DATE_H_F43.
      PERFORM BDC_FIELD       USING 'RF05A-NEWBS'
                                    '39'.
      PERFORM BDC_FIELD       USING 'RF05A-NEWKO'
                                     WA_MAIN-PERSONNEL_NO.
      PERFORM BDC_FIELD       USING 'RF05A-NEWUM'
                                   WA_MAIN-NEWUM9.
      PERFORM BDC_DYNPRO      USING 'SAPMF05A' '0303'.
      PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                    'RF05A-NEWKO'.
      PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                    '/00'.
      PERFORM BDC_FIELD       USING 'BSEG-WRBTR'
                                    WA_MAIN-AMOUNT9.
      PERFORM BDC_FIELD       USING 'BSEG-GSBER'
                                    'PF01'.
      PERFORM BDC_FIELD       USING 'BSEG-ZFBDT'
                                     DATE_H_F43.
      PERFORM BDC_FIELD       USING 'RF05A-NEWBS'
                                    '01'.
      PERFORM BDC_FIELD       USING 'RF05A-NEWKO'
                                    '1000511'.
      PERFORM BDC_DYNPRO      USING 'SAPMF05A' '0301'.
      PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                    'BSEG-GSBER'.
      PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                    '/00'.
      PERFORM BDC_FIELD       USING 'BSEG-WRBTR'
      PERFORM BDC_FIELD       USING 'BSEG-GSBER'
                                    'PF01'.
      PERFORM BDC_FIELD       USING 'BSEG-ZFBDT'
                                    DATE_H_F43.
      PERFORM BDC_DYNPRO      USING 'SAPMF05A' '0301'.
      PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                    'BSEG-WRBTR'.
      PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                    '=BU'.
      PERFORM BDC_FIELD       USING 'BSEG-WRBTR'
                                    WA_MAIN-TOTAL_AMOUNT.
      PERFORM BDC_FIELD       USING 'BSEG-GSBER'
                                    'PF01'.
      PERFORM BDC_FIELD       USING 'BSEG-ZFBDT'
                                     DATE_H_F43.
     PERFORM BDC_TRANSACTION USING 'F-43'.
       PERFORM BDC_INSERT .
   PERFORM BDC_TRANSACTION USING 'F-43'.
   ENDIF.
  ENDIF.
  ENDLOOP.
   PERFORM CLOSE_GROUP.
ENDFORM.                    " GET_BDC_DATA_F43
*&      Form  bdc_dynpro
      text
     -->P_0174   text
     -->P_0175   text
FORM BDC_DYNPRO USING PROGRAM DYNPRO.
  CLEAR BDCDATA.
  BDCDATA-PROGRAM  = PROGRAM.
  BDCDATA-DYNPRO   = DYNPRO.
  BDCDATA-DYNBEGIN = 'X'.
  APPEND BDCDATA.
ENDFORM.                    "BDC_DYNPRO
       Insert field                                                  *
FORM BDC_FIELD USING FNAM FVAL.
  CLEAR BDCDATA.
  BDCDATA-FNAM = FNAM.
  BDCDATA-FVAL = FVAL.
  APPEND BDCDATA.
ENDFORM.                    "BDC_FIELD
*&      Form  bdc_transaction
      text
     -->P_0479   text
FORM BDC_TRANSACTION  USING  TCODE.
  CALL TRANSACTION TCODE USING  BDCDATA
                  MODE CTUMODE
                  UPDATE 'A'
                  MESSAGES INTO MESTAB.
ENDFORM.                    " bdc_transaction
*&      Form  OPEN_GROUP
      text
-->  p1        text
<--  p2        text
FORM OPEN_GROUP .
  B_GROUP = 'PF'.
  SKIP.
  WRITE: /(20) 'Create group'(I01), B_GROUP.
  SKIP.
   open batchinput group
  CALL FUNCTION 'BDC_OPEN_GROUP'
    EXPORTING
      CLIENT = SY-MANDT
      GROUP  = B_GROUP
      USER   = SY-UNAME
      KEEP   = 'X'.
  WRITE: /(30) 'BDC_OPEN_GROUP'(I02),
          (12) 'returncode:'(I05),
               SY-SUBRC.
ENDFORM.                    " OPEN_GROUP
*&      Form  BDC_INSERT
      text
-->  p1        text
<--  p2        text
FORM BDC_INSERT .
  CALL FUNCTION 'BDC_INSERT'
    EXPORTING
      TCODE     = 'F-43'
    TABLES
      DYNPROTAB = BDCDATA.
  REFRESH BDCDATA.
ENDFORM.                    " BDC_INSERT
*&      Form  CLOSE_GROUP
      text
-->  p1        text
<--  p2        text
FORM CLOSE_GROUP .
  CALL FUNCTION 'BDC_CLOSE_GROUP'.
  WRITE: /(30) 'BDC_CLOSE_GROUP'(I04),
          (12) 'returncode:'(I05),
               SY-SUBRC.
ENDFORM.                    " CLOSE_GROUP

Similar Messages

  • Why doesn't calls to my iPhone ring through to my Mac?

    Why doesn't calls to my iPhone ring through to my Mac?

    The following have the requirements and settings and some troubleshooting information:
    Connect your iPhone, iPad, iPod touch, and Mac using Continuity - Apple Support
    Get help using Continuity with iOS 8 and OS X Yosemite - Apple Support

  • SUBMIT RSBDCSUB  in a program after a BDC_INSERT doesn't work

    Hi,
    I have a program with create a batch-input, after the call function BDC_INSERT, I use a SUBMIT RSBDCSUB to call the execution of the BI.
    My problem is, the batch still doesn't exist when I call the program. This problem only occurs in one server, the productive server.
    Do you have already facing this problem ?
    Fred

    Sorry, I have also the BDC_CLOSE_GROUP.
    Here my code, I have add a COMMIT ... to test.
      DATA : w_nom      TYPE apq_grpn ,
             w_kbetr(16) ,
             w_datab(10) ,
             w_datbi(10) ,
             w_kpein(5)  ,
             w_kmein(3)  .
      CHECK is_data-flag EQ 'A' OR
            is_data-flag EQ 'B' OR
            is_data-flag EQ 'C'.
      REFRESH itg_bdcdata.
    * Batch-input name.
      CONCATENATE 'Hauss_'
                  sy-uzeit
    *              is_data-knumh+4(6)
                  INTO w_nom.
    * Open Batch-input.
      PERFORM p_open_bdc USING w_nom.
    * Choix type cond.
      PERFORM p_bdc_dynpro      USING 'SAPMV13A'
                                      '0100'.
      PERFORM p_bdc_field       USING 'BDC_OKCODE'
                                      '=ANTA'.
      PERFORM p_bdc_field       USING 'RV13A-KSCHL'
                                      gw_kschl.
    * Choix de la clef.
      PERFORM p_bdc_dynpro      USING 'SAPLV14A'
                                      '0100'.
      PERFORM p_bdc_field       USING 'BDC_OKCODE'
                                      '=WEIT'.
      PERFORM p_bdc_field       USING 'RV130-SELKZ(01)'
                                      'X'.
    * Enregistre la nouvelle condition.
      PERFORM p_bdc_dynpro      USING 'SAPMV13A'
                                      '1510'.
      PERFORM p_bdc_field       USING 'BDC_OKCODE'
                                      '=SICH'.
      PERFORM p_bdc_field       USING 'KOMG-VKORG'
                                      is_data-vkorg.
      PERFORM p_bdc_field       USING 'KOMG-VTWEG'
                                      is_data-vtweg.
      PERFORM p_bdc_field       USING 'KOMG-KUNNR'
                                      is_data-kunnr.
      PERFORM p_bdc_field       USING 'KOMG-MATNR'
                                      is_data-matnr.
      PERFORM p_bdc_field       USING 'KOMG-WERKS'
                                      is_data-werks.
      PERFORM p_bdc_field       USING 'KOMG-AUART_SD'
                                      is_data-auart_sd.
      PERFORM p_bdc_field       USING 'KOMG-INCO1(01)'
                                      is_data-inco1.
      WRITE is_data-kbetr2 TO w_kbetr.
      PERFORM p_bdc_field       USING 'KONP-KBETR(01)'
                                      w_kbetr.
      WRITE is_data-kpein TO w_kpein.
      PERFORM p_bdc_field       USING 'KONP-KPEIN(01)'
                                      w_kpein.
      WRITE is_data-kmein TO w_kmein.
      PERFORM p_bdc_field       USING 'KONP-KMEIN(01)'
                                      w_kmein.
      WRITE is_data-datab TO w_datab.
      PERFORM p_bdc_field       USING 'RV13A-DATAB(01)'
                                      w_datab.
      WRITE is_data-datbi TO w_datbi.
      PERFORM p_bdc_field       USING 'RV13A-DATBI(01)'
                                      w_datbi.
    * Save the transaction.
      PERFORM p_insert_bdc USING 'VK11'.
    * Close the Batch-input..
      PERFORM p_close_bdc.
      COMMIT WORK AND WAIT.
      SUBMIT rsbdcsub WITH mappe = w_nom
                      WITH von   = sy-datum
                      WITH bis   = sy-datum
                      EXPORTING LIST TO MEMORY
                      AND RETURN.

  • FSCommand doesn't call vbscript in Vista IE7

    Hey All,
    I have web application with small flash movies which call to
    FSCommand though VBScript. In IE6/7 in XP everything works OK about
    2 years.
    Now, we encounter with new problem that the same code doesn't
    work in Vista (SP0 and SP1) IE7. The problem is that "movie"
    parameter is a full URL address. When I set local file path it
    works fine.
    Please, see attached code examples.
    Just last movie is working.....
    Please, help me with this issue.
    Thanks

    I have the same problem as well, my new laptop doesn't recognize my ipod touch either(16gb) though i plugged my brother's ipod shuffle on an my laptop picked it up. The only difference between my old comp (that picked up my itouch) and my laptop is that the laptop has vista and my pc has xp. The only thing i could think of doing would be redownloading the driver for my itouch to my laptop but i couln't find anything to that nature.
    Message was edited by: deltronn

  • Cross-Company Sales and Billing doesn't call BUV transaction settings

    Hello Dear Experts.
    Please help me with the following issue:
    1) The Company consists of Headquater and branches (one legal entity) - several Company codes are set in the system for each unit.
    2) The Contract for deliverying goods/implementation services with the Customer is concluded by the Head Office. Let's assume it's Company Code One.
    3) The goods is delivered by the plant, which is assigned to one of the branches, that is another Company Code in the system - CC2.
    4) Our FI group customised the Transaction BUV - Clearing between company codes by the following IMG path: Financial Accounting (New)-->General Ledger Accounting (New)-->Business Transactions-->Prepare Cross-Company Code Transactions (TCode OBYA).
    Note: This customising on clearing accounts work well during material transfer between Company Codes in MM and operations within Asset Management in FI-AA.
    5) I've created a sales order in CC1. I've pointed that deliverying plant is from CC2. When the billing is posted the system doesn't take the customising from BUV transaction.
    What do you think the problem is about?
    The entry posts in FI should go as shown in the figure above.
    However right now the entries as follows:
    CC1: Debits 1210 (Receivabless); Credits 6010 (Revenues). just within Company Code 1.
    VAT is not shown both here and in the Figure.
    Thanks in advance, Please help me...
    PS: I have customised Intercompany Billing through IV Billing with Internal Customer an so on, but our FI group wants to have another schema with posting as shown in the Figure above within the one step in creating the billing document.

    I'm not familiar with Verizon wanting people to change their plans online.  We just went in to upgrade a phone and they offered to check and see if we were elligible for a discount.
    Yes, you would think she could have easily given me the credit for 6 weeks but after sitting on hold for as long as I have with this situation, when she came back and wasn't interested in checking about it, I didn't have the strength left in chasing down her supervisor to get it.  Fact is, I should have never spent that much time trying to get them to correct their error.  I'm very disappointed that after talking to as many Verizon employees as I did, no one could tell me what happened and how to fix it.  I can not be the only person that had that kind of change with that plan.
    No one has contacted me yet.  I'd be surprised it they did.
    Jennifer

  • PA40 doesn't call bespoke feature ZPA01?

    There is a bespoke feature ZPA01 which was created some years ago and which is now not working when using transaction PA40.
    I have tried debugging the program for this i.e. /1PAPA/FEAT100ZPA01, but this doesn't even stop at my breakpoint which means that this feature is somehow not even accessed. The feature is active, and to make sure i have reactivated it anyway, but to no avail.
    Anybody had this situation before?

    Hi Glen,
    You can check user-exits ZXPADU01, ZXPADU02, ZXPADU03.
    And you can look at dynamic actions table t588z too, there may be a subroutine to trigger feature after IT0000 recorded.

  • Skype doesn't call the right number

    i was given this local number xxx xxx xxxx to skype call a number xxx xxx xxxx  when i call the skype to go a strange person answers the phone, not the person the number was set up for.  please help me correct this.  thanks

    musalim1981 wrote:
    please help me correct this.
    Hello,
    Please file here:
    https://support.skype.com/en/faq/FA1170/How-can-I-​contact-Skype-Customer-Service
    TIME ZONE - US EASTERN. LOCATION - PHILADELPHIA, PA, USA.
    I recommend that you always run the latest Skype version: Windows & Mac
    If my advice helped to fix your issue please mark it as a solution to help others.
    Please note that I generally don't respond to unsolicited Private Messages. Thank you.

  • Why doesn't calling setEditable(false) disable cursoring

    I want to have JFormattedTextField format my date fields for me. It does a good job of it, so why wouldn't I?
    I have a need to display a non-editable date for reference purposes. Unfortunately I discovered that the cursoring is still active when setEditable(false) is called. In order to prevent this, I have had to subclass DateFormatter in order to override getActions() to return null if I don't want incrementing. There are a number of problems with this:
    1) setEditable on JFormattedTextField should have been enough. If I don't want it editable, then I don't want cursoring. I would have thought that was obvious.
    2) Notwithstanding that, the correct method to override for incrementing is really getSupportsIncrement(), but this has no modifier, so is in the 'friendly' status, which means it can only be overridden in the package.
    3) While I can override getActions, this signature leaves itself open to have other actions than "increment" and "decrement" returned . That is, it works now, but if sun adds more actions to the list of actions returned by getActions(), then my override is broken.
    Is there a bug in there somewhere?
    Thanks, Andrew

    1) setEditable on JFormattedTextField should have
    been enough. If I don't want it editable, then I
    don't want cursoring. I would have thought that was
    obvious.Nope not really. What if the user wants to copy some text using the keyboard?

  • Repaint() doesn't call paintComponent()

    first I wnt to mention that these are my first steps in java.
    I want to create a rectangle to select a region, therefore I get the position of the mouse, what's already working :)
    but i'd like to paint the rectangle when the mouse is clicked. so I thought to call paintComponent() with repaint(), but paintComponent() don't get called. I'm confused and cannot understand what is happeneing there :(
    the code:
    public class CPaintRect extends JPanel implements MouseListener{
         public int startX, startY;
         public int endX, endY;
         int u = 10;
         public CPaintRect() {
              System.out.println("CpaintRect");
         public void actionPerformed(ActionEvent e){
              this.repaint();
         public void mouseClicked (MouseEvent e){
         public void mouseEntered (MouseEvent e){
         public void mouseExited (MouseEvent e){
         public void mousePressed (MouseEvent e){
              startX = (int) e.getX();
              startY = (int) e.getY();
              System.out.println(startX + " " + startY);
              repaint();
         public void mouseReleased (MouseEvent e){
              endX = e.getX();
              endY = e.getY();
              repaint();
              //System.out.println("position: " + selection);
         public void paintComponent(Graphics g) {
              u+=10;
              System.out.println("paint"); //-->not shown
              g.setColor(Color.red);
              g.drawRect(0, 0, u, u); //just as test           g.drawRect(startX, startY, endX-startX, endY-startY);
    sorry for my english, and thanks in advance

    You forgot to add the mouseListener
    In the constructor, aftet this line System.out.println("CpaintRect");
         addMouseListener(this);
    Noah

  • JSF 2 @ViewScoped doesn't call @PreDestroy method

    howdy guys!
    i've been tested the jsf ViewScoped in my application but i have a doubt. The managed bean noted with @ViewScoped sometimes does not call the @PreDestroy method.
    See example below
    ViewScopeMB.java
    @ManagedBean
    @ViewScoped
    public class ViewScopeMB implements Serializable {
    private int counter;
    public ViewScopeMB() { }
    @PostConstruct
    public void contruct() {
    System.out.println("iniciando bean");
    this.counter = 0;
    // getters and setters
    public void increment() {
    System.out.println("incrementing...");
    this.counter++;
    public void forceSetView() {
    System.out.println("modificando a viewroot");
    FacesContext context = FacesContext.getCurrentInstance();
    UIViewRoot root = context.getApplication().getViewHandler().createView(context, "/faces/one.xhtml");
    context.setViewRoot(root);
    @PreDestroy
    public void destroy() {
    System.out.println("destroy the bean");
    I'm using f:ajax to incrementing the counter and this work fine, the bean instance is kept, but when i navigate for new page using <a:href for exemple the ViewScopeMB instance is not destroyed. I change my link to <h:commandLink action="rule"... and the @PreDestroy method is called and the finalize method too.
    My question is, this is a correct behavior of JSF 2? If the user use the navigator back button or to type the new url or the button with javascript history.go(-1) my instance of ViewScopeMB will never be destroyed in the user session?
    When i used forceSetView() method to force a new viewRoot the @PreDestroy is called.
    There are way to solve this case?
    Sorry if i not been very clear.
    Anybody help-me?

    For a view scoped bean, PreDestroy must only be called when the view scope is destroyed which happens when something calls FacesContext.setViewRoot(root).
    It's not very surprising that when you don't use JSF controls for navigation then context.setViewRoot(root);is not called.
    Calling context.setViewRoot(root); yourself guarantees that PreDestroy gets called but you'll probably end up calling it more times than you need to in the cases where you use JSF navigation mechanisms.
    You should be careful with that @PreDestroy method though. Some containers e.g (Tomcat) don't always support those methods fully. In particular, @PreDestroy methods are not called when the view gets destroyed after a restart when the webserver had serialized the ViewScoped bean in the current view so I wouldn't be putting billion dollars worth of logic in that method.

  • Safari doesn't call applet repaint.

    When Safari becomes the top application, after being under another window, it does not call a Java Applet's repaint.
    When playing Runescape (www.runescape.com) this means you have to log into the game again. Firefox does not have this problem.

    You forgot to add the mouseListener
    In the constructor, aftet this line System.out.println("CpaintRect");
         addMouseListener(this);
    Noah

  • Siri doesn't call girlfriend

    Hello,
    i am trying now that Siri makes a Phonecall to my girlfriend. When i Say "call girlfriend" Siri says that she can`t find Girlfriend in my Adressbook. When i say to her "say hello to my Girlfriend" she will write a SMS to my Girlfriend. Whats wrong there? Siri know who my girlfriend is but she can't find her in my Adressbook? I try it also with my parents but there it works.
    What did i wrong there?
    Normally i have go to my own contact and i have to select a relationship. Girlfriend (or in German Freundin) is not there in the list. Only Mother Father Sister and so on. I have to create a New one with the name Girlfriend/Freundin. It is the same spelling as the spelling from Siri.
    I tried it via Icloud.
    Thanks for informations

    Yeah, that could be that Siri is jealous or angry that i have a real girlfriend
    I not sure because when i say " Siri tell my Girlfriend Good night) Siri is direct writing a Short Massage to my Girlfriend. I can ask her who my girlfriend is and than siri shows me the Contact of my Girlfriend. Only Calling her with "call my Girlfriend" will not work? i have also still a picture but it is on german
    1.Bubble      How can I help you?
    2.Bubble      Phone my Girlfriend (on her Mobilephone)
    3.Bubble     I can't see Girlfriend in your Adreesbook
    I get now also an Information to choose the Nickname "Girlfriend"  in my Girlfriends Contact.
    With this it is working. But without nickname it isn't.

  • How long does it take for an iphone 4s to get fixed if doesn't call or text

    my phone doest call o text and it has been taken to apple store, it has been a week now and i am starting to wonder how long it is going to take

    Have you tried calling Apple?

  • SOAP service works - but doesn't call application logic

    I have an SAP enterprise service that's acting weird. Like any other SOAP service, I went to SOAMANAGER and configured the necessary binding. The bgRFC settings were missing - went to SRT_TOOLS and configured all of it.
    While testing it with SOAMANAGER it work fine the first time. No problems in SRTUTIL and the SLG1 log entries were also perfect.
    However, subsequent trials threw up weird results. I always get a http 202. This means that the call is going to the server. The SRTUTIL payload trace vouches for this. But there is no SLG1 entry! The application logic is not being called at all!
    I checked all the settings in SRT_TOOLS - no changes. I made no changes whatsoever! It would be great if any of you could offer some help here.

    You don't say what VPN you use but for PPTP you need GRE protocol passthrough, without it you can connect but no traffic will pass over the VPN tunnel.
    You give VPN clients an IP from the LAN interface "range" in VPN settings?
    DNS in VPN settings must be reachable through the VPN (default route is through VPN? - any routing definitions?).

  • Customer Relations doesn't call Back -- need help on getting a refund.

    I’m looking to get a refund for a netbook that I purchased. Here’s my story.
    I bought a Lenovo ideaPad S10-2 in September and in October I had to send it in for repair on a cracked screen (plastic casing). Lenovo warranty received it Oct 21, 09. Expected fixed date was November 7, then got pushed to the 13th then got pushed to the 20th ……….As you can see Lenovo has had the product longer than I have, at this point I don’t want it anymore (I wasn’t even offered a replacement) I just want my money back because they can’t tell me when it can be fixed and I’ve had a lot of phones calls to their tech support and I’m getting nowhere. They have escalated it to customer relations and they were suppose to get back to me 5-7 business days, it’s the 9th day and nobody has returned my calls. All I want is my money back.
    If this is how Lenovo treats their customers, then I will have to inform our parent company to switch back to buying Dell products as their customer service is far superior.
    Is thier anyone who can help on these forums?

    fourtrack78,
    Can you send me a private message with your service case number and your contact information?
    The case will be WNxxxxx.     Apologies that this has been your experience so far... I'll ensure you receive some assistance.
    Best regards,
    Mark
    ThinkPads: S30, T43, X60t, X1, W700ds, IdeaPad Y710, IdeaCentre: A300, IdeaPad K1
    Mark Hopkins
    Program Manager, Lenovo Social Media (Services)
    twitter @lenovoforums
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество

Maybe you are looking for