Update statement is not working(urgent)

Hi,
when i use below code it gives me dump when reocrds arem ore.
loop at itab.
  update de1000 SET vrprs = itab-rfwrt
  where kaufn = itab-vbelv
  and mtpos IN  soption and perio =  perio and VRPRS <> 0.
endloop.
the structure of itab and de11000 is not same.
please suggest me alternative.
thanks
jack

I believe you can not use update statement with in loop & endloop. it will dump.
Here is further info. Create another internal table with
the same structure of de1000 and update the table with required values. finally use the following state
update de1000 from table t_de1000(internal table)(check syntex)
Reward if useful
Message was edited by:
        Nallasamy Ponnusamy

Similar Messages

  • Update statement is not working. module pool program,why? check this code

    *& Module Pool       ZCUST_CALL_REC
    PROGRAM  ZCUST_CALL_REC.
    TABLES: ZCUST_CALL_REC,ZREMARKS.
    data:  v_kun_low like ZCUST_CALL_REC-kunnr ,
           v_kun_high like ZCUST_CALL_REC-kunnr,
           v_bud_low like ZCUST_CALL_REC-budat,
           v_bud_high like ZCUST_CALL_REC-budat.
    ranges r_kunnr for ZCUST_CALL_REC-kunnr  .
    ranges r_budat for zcust_call_rec-budat.
    DATA: ITAB TYPE STANDARD TABLE OF ZCUST_CALL_REC WITH HEADER LINE,
          JTAB TYPE STANDARD TABLE OF ZREMARKS WITH HEADER LINE.
    *data:begin of itab occurs 0,
        MANDT LIKE ZCUST_CALL_REC-MANDT,
        kunnr like ZCUST_CALL_REC-kunnr,
        budat like ZCUST_CALL_REC-budat,
        code like ZCUST_CALL_REC-code,
        remarks like ZCUST_CALL_REC-remarks,
        end of itab.
    *data:begin of Jtab occurs 0,
        MANDT LIKE ZCUST_CALL_REC-MANDT,
        kunnr like ZCUST_CALL_REC-kunnr,
        budat like ZCUST_CALL_REC-budat,
        code like ZCUST_CALL_REC-code,
        remarks like ZCUST_CALL_REC-remarks,
        end of Jtab.
    CONTROLS:vcontrol TYPE TABLEVIEW USING SCREEN '9001'.
    CONTROLS:vcontrol1 TYPE TABLEVIEW USING SCREEN '9002'.
    *start-of-selection.
    *&      Module  USER_COMMAND_9000  INPUT
          text
    MODULE USER_COMMAND_9000 INPUT.
    CASE sy-ucomm.
    WHEN 'BACK' OR 'EXIT' OR 'CANCEL'.
    SET SCREEN 0.
    LEAVE SCREEN.
    CLEAR sy-ucomm.
    WHEN 'ENQUIRY'.
    perform multiple_selection.
    perform append_CUSTOMER_code.
    PERFORM SELECT_DATA.
    call screen '9001'.
    WHEN 'UPDATE'.
          perform append_CUSTOMER_code.
          PERFORM SELECT_DATA.
          call screen '9002'.
          perform update on commit.
    WHEN 'DELETE'.
          perform append_CUSTOMER_code.
          PERFORM SELECT_DATA.
          call screen '9002'.
    ENDCASE.
    ENDMODULE.                 " USER_COMMAND_9000  INPUT
    *&      Module  STATUS_9000  OUTPUT
          text
    MODULE STATUS_9000 OUTPUT.
      SET PF-STATUS 'ZCUSTOMER'.
    SET TITLEBAR 'xxx'.
    ENDMODULE.                 " STATUS_9000  OUTPUT
    *&      Module  USER_COMMAND_9001  INPUT
          text
    MODULE USER_COMMAND_9001 INPUT.
    CASE sy-ucomm.
    WHEN 'BACK' OR 'EXIT' OR 'CANCEL'.
    SET SCREEN 0.
    LEAVE SCREEN.
    CLEAR sy-ucomm.
    endcase.
    ENDMODULE.                 " USER_COMMAND_9001  INPUT
    *&      Module  STATUS_9001  OUTPUT
          text
    MODULE STATUS_9001 OUTPUT.
      SET PF-STATUS 'ZCUSTOMER'.
    SET TITLEBAR 'xxx'.
    move itab-MANDT   to zcust_call_rec-MANDT.
    move itab-kunnr   to zcust_call_rec-kunnr.
    move itab-budat   to zcust_call_rec-budat.
    move itab-code    to zcust_call_rec-code.
    move itab-remarks to zcust_call_rec-remarks.
    vcontrol-lines = sy-dbcnt.
    ENDMODULE.                 " STATUS_9001  OUTPUT
    *&      Module  USER_COMMAND_9002  INPUT
          text
    module  USER_COMMAND_9002 input.
    CASE sy-ucomm.
       WHEN 'BACK' OR 'EXIT' OR 'CANCEL'.
          SET SCREEN 0.
          LEAVE SCREEN.
          CLEAR sy-ucomm.
       WHEN 'UPDATE'.
             perform move_data.
         UPDATE ZCUST_CALL_REC FROM TABLE ITAB.
            IF SY-SUBRC = 0.
               MESSAGE I000(0) WITH 'RECORDS ARE UPDATED'.
             ELSE.
               MESSAGE E001(0) WITH 'RECORDS ARE NOT UPDATED'.
            ENDIF.
      WHEN 'DELETE'.
             perform move_data.
             DELETE ZCUST_CALL_REC FROM TABLE ITAB.
              IF SY-SUBRC = 0.
               MESSAGE I000(0) WITH 'RECORDS ARE DELETED'.
             ELSE.
               MESSAGE E001(0) WITH 'RECORDS ARE NOT DELETED'.
            ENDIF.
    endcase.
    endmodule.                 " USER_COMMAND_9002  INPUT
    *&      Module  STATUS_9002  OUTPUT
          text
    module STATUS_9002 output.
      SET PF-STATUS 'ZCUSTOMER1'.
    SET TITLEBAR 'xxx'.
    endmodule.                 " STATUS_9002  OUTPUT
    *&      Module  update_table  OUTPUT
          text
    module update_table output.
         move itab-MANDT   to zcust_call_rec-MANDT.
         move itab-kunnr   to zcust_call_rec-kunnr.
         move itab-budat   to zcust_call_rec-budat.
         move itab-code    to zcust_call_rec-code.
         move itab-remarks to zcust_call_rec-remarks.
    vcontrol-lines = sy-dbcnt.
    endmodule.                 " update_table  OUTPUT
    ***Selection Data
    FORM SELECT_DATA.
    SELECT  mandt kunnr budat code remarks  FROM zcust_call_rec INTO
                            table itab
                             WHERE kunnr IN r_kunnr AND BUDAT IN R_BUDAT.
    ENDFORM.
    ****append vendor code
    FORM APPEND_CUSTOMER_CODE.
    clear r_kunnr.
    clear itab.
    clear r_budat.
    refresh r_kunnr.
    refresh itab.
    refresh r_kunnr.
    IF r_kunnr  IS INITIAL
                  AND NOT v_kun_low IS INITIAL
                   AND NOT v_kun_high IS INITIAL.
                        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
                                    EXPORTING
                                       input         = v_kun_low
                                    IMPORTING
                                       OUTPUT        = r_kunnr-low.
                       CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
                                  EXPORTING
                                      input         = v_kun_high
                                  IMPORTING
                                      OUTPUT        = r_kunnr-high.
                     r_kunnr-option = 'BT'.
                     r_kunnr-sign = 'I'.
                     append r_kunnr.
       PERFORM V_BUDAT.
    ELSEIF r_kunnr  IS INITIAL
                  AND NOT v_kun_low IS INITIAL
                   AND  v_kun_high IS INITIAL.
                        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
                                    EXPORTING
                                       input         = v_kun_low
                                    IMPORTING
                                       OUTPUT        = r_kunnr-low.
                    r_kunnr-SIGN = 'I'.
                    r_kunnr-OPTION = 'EQ'.
                    APPEND r_kunnr.
       PERFORM V_BUDAT.
    ELSEIF r_kunnr IS INITIAL
                  AND  v_kun_low IS INITIAL
                   AND NOT v_kun_high IS INITIAL.
                        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
                                    EXPORTING
                                       input         = v_kun_low
                                    IMPORTING
                                       OUTPUT        = r_kunnr-low.
                    r_kunnr-SIGN = 'I'.
                    r_kunnr-OPTION = 'EQ'.
                    APPEND r_kunnr.
          PERFORM V_BUDAT.
    ELSEIF r_kunnr IS INITIAL
                  AND  v_kun_low IS INITIAL
                   AND  v_kun_high IS INITIAL.
                        IF SY-SUBRC = 0.
                             MESSAGE I003(0) WITH 'ENTER CUSTOMER NUMBER'.
                              CALL SCREEN '9000'.
                        ENDIF.
    PERFORM V_BUDAT.
    ENDIF.
    ENDFORM.
    FORM V_BUDAT.
    IF  R_BUDAT IS INITIAL
                   AND NOT v_BUD_low IS INITIAL
                   AND NOT v_BUD_high IS INITIAL.
                     r_budat-low = v_bud_low.
                     r_budat-high = v_bud_high.
                     r_budat-option = 'BT'.
                     r_budat-sign = 'I'.
                     append r_budat.
             ELSEIF  R_BUDAT IS INITIAL
                   AND NOT v_BUD_low IS INITIAL
                   AND  v_BUD_high IS INITIAL.
                     r_budat-low = v_bud_low.
                     r_budat-high = v_bud_high.
                     r_budat-option = 'EQ'.
                     r_budat-sign = 'I'.
                     append r_budat.
             ELSEIF  R_BUDAT IS INITIAL
                   AND  v_BUD_low IS INITIAL
                   AND NOT v_BUD_high IS INITIAL.
                     r_budat-HIGH = v_bud_HIGH.
                     r_budat-option = 'EQ'.
                     r_budat-sign = 'I'.
                     append r_budat.
              ELSEIF  R_BUDAT IS INITIAL
                   AND  v_BUD_low IS INITIAL
                   AND  v_BUD_high IS INITIAL.
                   IF SY-SUBRC = 0.
                       MESSAGE I002(0) WITH 'ENTER POSTING DATE'.
                      CALL SCREEN '9000'.
                    r_budat-low = ''.
                    r_budat-option = ''.
                    r_budat-sign = ''.
                    ENDIF.
            ENDIF.
    ENDFORM.
    *&      Form  update
          text
    -->  p1        text
    <--  p2        text
    form update .
    commit work.
    endform.                    " update
    *&      Form  move_data
          text
    -->  p1        text
    <--  p2        text
    form move_data .
       clear itab.
      refresh itab.
           move-corresponding  zcust_call_rec to itab.
           MOVE ZCUST_CALL_REC-MANDT   TO ITAB-MANDT.
           MOVE ZCUST_CALL_REC-KUNNR   TO ITAB-KUNNR.
           MOVE ZCUST_CALL_REC-BUDAT   TO ITAB-BUDAT.
           MOVE ZCUST_CALL_REC-CODE    TO ITAB-CODE.
           MOVE ZCUST_CALL_REC-REMARKS TO ITAB-REMARKS.
         APPEND ITAB.
         delete itab where kunnr is initial.

    Hi,
      try to use
    start-of-selection.
    call screen 100.
    module pai input.
    endmodule
    <b>Reward points</b>
    Regards

  • UPDATE STATEMENT IS NOT WORKING.

    CREATE OR REPLACE PROCEDURE LoadDMUDailyFeed(advId IN CHAR,
              mktGrpId IN VARCHAR2, platform IN VARCHAR2,
              posCode IN NUMBER, salText IN VARCHAR2,
              fName IN VARCHAR2, mName IN VARCHAR2,
              lName IN VARCHAR2, sufText IN VARCHAR2,
              lnID IN VARCHAR2, statusDesc IN VARCHAR2,
              dtHired IN DATE, dtPosStart IN DATE,
              addr1 IN VARCHAR2, addr2 IN VARCHAR2,
              addr3 IN VARCHAR2, city IN VARCHAR2,
              state IN VARCHAR2, zip IN VARCHAR2,
              country IN VARCHAR2, phone IN VARCHAR2,
              extn IN VARCHAR2, busFax IN VARCHAR2,
              manAdminID IN VARCHAR2, areaCode IN NUMBER)
    AS
    ad_dbc DATE;
    ad_drc DATE;
    ad_dpc DATE;
    ad_lud DATE;
    dtBundleChanged DATE;
    dtPlatformChanged DATE;
    dtPositionChanged DATE;
    dtLastUpdated DATE;
    chkDetailsFlag NUMBER(1);
    chkAdvisorExists NUMBER(1);
    chkStatusChange NUMBER(1);
    chkManagerChange NUMBER(1);
    chkPlatformChange NUMBER(1);
    changeReason VARCHAR2(20);
    newBundleCode NUMBER(2);
    bundleName VARCHAR2(50);
    oldBundleCode NUMBER(2);
    countOfAFA NUMBER(4);
    chkDetailsFlagDummy NUMBER(1);
    CURSOR advCursor IS
        SELECT * FROM ADVISOR_DETAILS where advisor_id=advId;
    BEGIN
    Select count(*) into chkAdvisorExists from advisor_details WHERE
           advisor_id=advId;
           newBundleCode := 0;
    FOR rec IN advCursor LOOP
        ad_dbc := rec.DATE_BUNDLE_CHANGED;
        ad_drc := rec.DATE_ROLE_CHANGED;
        ad_dpc := rec.DATE_POSITION_CHANGED;
        ad_lud := rec.LAST_UPDATE_DATE;
        dtBundleChanged := ad_dbc;
        dtPlatformChanged := ad_drc;
        dtPositionChanged := ad_dpc;
        dtLastUpdated := ad_lud;
        chkDetailsFlag := 0;
        chkStatusChange := 0;
        chkPlatformChange := 0;
        chkManagerChange := 0;
        IF ( TRIM(advId) = TRIM(rec.ADVISOR_ID)) THEN
                IF (TRIM(mktGrpId) != TRIM(rec.MARKET_GROUP_ID)) THEN
                    chkDetailsFlag := 1;
            END IF;
            IF (TRIM(platform) != TRIM(rec.PLATFORM)) THEN
                 chkManagerChange := 1;
                 dtPlatformChanged := SYSDATE;
                 dtBundleChanged := SYSDATE;
            END IF;
            IF (TRIM(posCode) != TRIM(rec.POSITION_CODE)) THEN
                     dtPositionChanged := SYSDATE;
            END IF;
            IF (TRIM(salText) != TRIM(rec.SALUTATION_TEXT)) THEN
                 chkDetailsFlag := 1;
            END IF;
            IF (TRIM(fName) != TRIM(rec.ADVISOR_FIRST_NAME)) THEN
                     chkDetailsFlag := 1;
            END IF;
            IF (TRIM(mName) != TRIM(rec.ADVISOR_MIDDLE_NAME)) THEN
                 chkDetailsFlag := 1;
            END IF;
            IF (TRIM(lName) != TRIM(rec.ADVISOR_LAST_NAME)) THEN
                     chkDetailsFlag := 1;
            END IF;
            IF (TRIM(sufText) != TRIM(rec.SUFFIX_TEXT)) THEN
                 chkDetailsFlag := 1;
            END IF;
            IF (TRIM(lnId) != TRIM(rec.LOTUS_NOTES_ID)) THEN
                     chkDetailsFlag := 1;
            END IF;
            IF (TRIM(statusDesc) != TRIM(rec.STATUS)) THEN
                 chkDetailsFlag := 1;
                 chkStatusChange := 1;
            END IF;
            IF(TO_DATE(dtHired, 'DD-MON-YY') != TO_DATE(rec.DATE_HIRED, 'DD-MON-YY')) THEN
                     chkDetailsFlag := 1;
            END IF;
            IF(TO_DATE(dtPosStart, 'DD-MON-YY') != TO_DATE(rec.POSITION_STARTDATE, 'DD-MON-YY')) THEN
                chkDetailsFlag := 1;
            END IF;
            IF(IsTheSame(addr1, rec.REG_ADDRESS1)) THEN
                 chkDetailsFlagDummy := 1;
            ELSE
                 chkDetailsFlag := 1;
            END IF;
            IF(IsTheSame(addr2, rec.REG_ADDRESS2)) THEN
                 chkDetailsFlagDummy := 1;
            ELSE
                 chkDetailsFlag := 1;
            END IF;
            IF(IsTheSame(addr3, rec.REG_ADDRESS3)) THEN
                 chkDetailsFlagDummy := 1;
            ELSE
                 chkDetailsFlag := 1;
            END IF;
            IF(IsTheSame(city, rec.CITY)) THEN
                    chkDetailsFlagDummy := 1;
            ELSE
                 chkDetailsFlag := 1;
            END IF;
            IF(IsTheSame(state, rec.STATE)) THEN
                    chkDetailsFlagDummy := 1;
            ELSE
                 chkDetailsFlag := 1;
            END IF;
            IF(IsTheSame(zip, rec.ZIP)) THEN
                    chkDetailsFlagDummy := 1;
            ELSE
                 chkDetailsFlag := 1;
            END IF;
            IF(IsTheSame(country, rec.COUNTRY)) THEN
                    chkDetailsFlagDummy := 1;
            ELSE
                 chkDetailsFlag := 1;
            END IF;
            IF (TRIM(phone) != TRIM(rec.PHONE_NUMBER)) THEN
                 chkDetailsFlag := 1;
            END IF; 
            IF (TRIM(extn) != TRIM(rec.EXTN)) THEN
                 chkDetailsFlag := 1;
            END IF;
            IF (TRIM(busFax) != TRIM(rec.BUSINESS_FAX)) THEN
                     chkDetailsFlag := 1;
            END IF;
            IF (TRIM(manAdminId) != TRIM(rec.MANAGER_ADMIN_ID)) THEN
                 chkManagerChange := 1;
                 chkDetailsFlag := 1;
            END IF; 
            IF (TRIM(areaCode) != TRIM(rec.AREA_CODE)) THEN
                     chkDetailsFlag := 1;
            END IF;
               IF (chkDetailsFlag = 1) THEN   -- FOR DETAIL CHANGE
                    oldBundleCode := rec.BUNDLE_CODE;
                 changeReason := 'Advisor Detail';
                 newBundleCode := rec.BUNDLE_CODE;
            ELSIF (chkPlatformChange = 1 AND statusDesc!='T' AND statusDesc!='I') THEN -- FOR PLATFORM CHANGE
                 changeReason := 'Platform Change';
                 oldBundleCode := rec.BUNDLE_CODE;
                 IF(TRIM(posCode) = 3 OR TRIM(posCode) = 50) THEN
                      newBundleCode := 2;
                 ELSIF (TRIM(posCode) = 51 OR TRIM(posCode) = 52) THEN
                      newBundleCode := 1;
                      updateAFABundleCode(advId, newBundleCode);
                 ELSIF (TRIM(posCode) = 76) THEN
                      UPDATE ADVISOR_DETAILS
                      SET BUNDLE_CODE=(SELECT BUNDLE_CODE FROM ADVISOR_DETAILS WHERE ADVISOR_ID=manAdminId)
                      WHERE ADVISOR_ID=advId;
                 END IF;
                 MaintainAppDetailsOfAdvisor(advId, newBundleCode, rec.BUNDLE_CODE, rec.MARKET_GROUP_ID,
                   rec.PLATFORM, rec.POSITION_CODE, rec.ADVISOR_FIRST_NAME, rec.ADVISOR_LAST_NAME);
            END IF;
            IF(chkDetailsFlag = 1 OR chkPlatformChange = 1 OR chkStatusChange = 1 OR chkManagerChange = 1) THEN
                 INSERT INTO ADVISOR_DETAILS_HISTORY VALUES(
                      rec.ADVISOR_ID, rec.SUBSCRIPTION_ID,CAST(SYSDATE AS TIMESTAMP),
                      changeReason, oldBundleCode, rec.MARKET_GROUP_ID, rec.PLATFORM,
                      rec.POSITION_CODE, rec.SALUTATION_TEXT, rec.ADVISOR_FIRST_NAME,
                       rec.ADVISOR_MIDDLE_NAME, rec.ADVISOR_LAST_NAME,
                       rec.SUFFIX_TEXT, rec.LOTUS_NOTES_ID,
                       rec.STATUS, rec.DATE_HIRED, rec.POSITION_STARTDATE,
                       rec.REG_ADDRESS1, rec.REG_ADDRESS2, rec.REG_ADDRESS3,
                       rec.CITY, rec.STATE, rec.ZIP, rec.COUNTRY, rec.PHONE_NUMBER,
                       rec.EXTN, rec.BUSINESS_FAX, rec.MANAGER_ADMIN_ID,
                       rec.AREA_CODE, ad_dbc, ad_drc, ad_lud);
                       DBMS_OUTPUT.PUT_LINE('After Insert');
                       DBMS_OUTPUT.PUT_LINE(dtHired);
                       DBMS_OUTPUT.PUT_LINE(dtPosStart);
       /****/           UPDATE ADVISOR_DETAILS SET
                       BUNDLE_CODE = newBundleCode,
                       SUBSCRIPTION_ID = rec.SUBSCRIPTION_ID,
                       MARKET_GROUP_ID = mktGrpId,
                       PLATFORM = platform,
                       POSITION_CODE = posCode,
                       OLD_POSITION_CODE = rec.POSITION_CODE,
                       SALUTATION_TEXT = salText,
                       ADVISOR_FIRST_NAME = fName,
                       ADVISOR_MIDDLE_NAME = mName,
                       ADVISOR_LAST_NAME = lName,
                       SUFFIX_TEXT = sufText,
                       LOTUS_NOTES_ID = lnId,
                       STATUS = statusDesc,
                       DATE_HIRED = dtHired,
                       POSITION_STARTDATE = dtPosStart,
                       REG_ADDRESS1 = addr1,
                       REG_ADDRESS2 = addr2,
                       REG_ADDRESS3 = addr3,
                       CITY = city,
                       STATE = state,
                       ZIP = zip,
                       COUNTRY = country,
                       PHONE_NUMBER = phone,
                       EXTN = extn,
                       BUSINESS_FAX = busFax,
                       MANAGER_ADMIN_ID = manAdminId,
                       AREA_CODE = areaCode,
                       DATE_BUNDLE_CHANGED = dtBundleChanged,
                       DATE_ROLE_CHANGED = dtPlatformChanged,
                       DATE_POSITION_CHANGED = dtPositionChanged,
                       LAST_UPDATE_DATE = SYSDATE
                       where ADVISOR_ID = advId;
                       DBMS_OUTPUT.PUT_LINE('After Update');
                       DBMS_OUTPUT.PUT_LINE(advId);
                END IF;
                IF (chkPlatformChange = 1 AND statusDesc!='T' AND statusDesc!='I') THEN -- FOR PLATFORM CHANGE
                    IF (rec.POSITION_CODE = 51 OR rec.POSITION_CODE = 52) THEN
                      DeleteAWSAccess(advId);
                    END IF;
            END IF;
            IF ( chkStatusChange = 1) THEN -- FOR STATUS CHANGE
                    IF (TRIM(statusDesc) = 'T') THEN
                      RemoveAppDetailsOfAdvisor(advId, newBundleCode, rec.BUNDLE_CODE, rec.MARKET_GROUP_ID,
                      rec.PLATFORM, rec.POSITION_CODE, rec.ADVISOR_FIRST_NAME, rec.ADVISOR_LAST_NAME);
                    ELSIF (TRIM(statusDesc) = 'T' OR  TRIM(statusDesc) = 'I') THEN
                      DeleteAWSAccess(advId);          
                    ELSIF (TRIM(statusDesc) = 'I' AND TRIM(posCode) = 76) THEN
                      AWSAccessForStatusChange(advId, manAdminId);
                    END IF;
            END IF;
            IF ( chkManagerChange =1 AND TRIM(posCode) = 76) THEN
                         checkAFAAWSAccess(advId, rec.MANAGER_ADMIN_ID, manAdminId);
            END IF;
        END IF;
    END LOOP;
    IF ( chkAdvisorExists = 0 AND statusDesc != 'T') THEN
         newBundleCode := 0;
         IF(TRIM(posCode) = 3 OR TRIM(posCode) = 50) THEN
                  newBundleCode := 2;
             ELSIF(TRIM(posCode) = 51 OR TRIM(posCode) = 52) THEN
                  newBundleCode := 1;
             ELSIF(TRIM(posCode) = 76) THEN
                  SELECT BUNDLE_CODE INTO newBundleCode FROM ADVISOR_DETAILS
                      WHERE ADVISOR_ID=manAdminId;
             END IF;
             INSERT INTO ADVISOR_DETAILS VALUES(advId, 0, newBundleCode, mktGrpId,
                  platform, posCode, 0, salText,
                  fName, mName, lName, sufText,
                  lnId, statusDesc, dtHired, dtPosStart,
                  addr1, addr2, addr3, city, state,
                  zip, country, phone, extn, busFax,
                  manAdminId, areaCode, SYSDATE,
                  SYSDATE, SYSDATE, SYSDATE);
            SELECT BUNDLE_NAME INTO bundleName FROM BUNDLE_DETAILS
                   WHERE BUNDLE_CODE=newBundleCode;       
            INSERT INTO ADVISOR_ORDERS VALUES(
                 advId, '', bundleName, mktGrpId,
                 platform, posCode, '', 1, SYSDATE, 'Auto',
                 'Add', fName, lName);
            IF (TRIM(posCode) = 76) THEN
                 AWSAccessForStatusChange(advId, manAdminId);
            END IF;
    END IF;
    END LoadDMUDailyFeed;
    /marked above, procedure is executed successfully, but it never updates my advisor_details table. may i know the reason..??
    Regards,
    Chintan

    to my surprise...when i execute that update query in sql prompt...
    it just hangs....:(
    SQL> ed
    Wrote file afiedt.buf
      1  UPDATE ADVISOR_DETAILS SET
      2                     BUNDLE_CODE = 02,
      3                     MARKET_GROUP_ID = '248',
      4                     PLATFORM = '2',
      5                     POSITION_CODE = 51,
      6                     OLD_POSITION_CODE = 0,
      7                     SALUTATION_TEXT = 'MR',
      8                     ADVISOR_FIRST_NAME = 'FRANK',
      9                     ADVISOR_MIDDLE_NAME = 'J',
    10                     ADVISOR_LAST_NAME = 'KONCILYA',
    11                     SUFFIX_TEXT = NULL,
    12                     LOTUS_NOTES_ID = NULL,
    13                     STATUS = 'A',
    14                     DATE_HIRED = TO_DATE('18-06-1953','DD-MM-YY'),
    15                     POSITION_STARTDATE = TO_DATE('22-03-2000','DD-MM-YY'),
    16                     REG_ADDRESS1 = '312 Agate Dr',
    17                     REG_ADDRESS2 = NULL,
    18                     REG_ADDRESS3 = NULL,
    19                     CITY = 'Lewistown',
    20                     STATE = 'MT',
    21                     ZIP = '59457',
    22                     COUNTRY = 'USA',
    23                     PHONE_NUMBER = '1234567788',
    24                     EXTN = '0000',
    25                     BUSINESS_FAX = NULL,
    26                     MANAGER_ADMIN_ID = '000030017',
    27                     AREA_CODE = 407,
    28                     DATE_BUNDLE_CHANGED = SYSDATE,
    29                     DATE_ROLE_CHANGED = SYSDATE,
    30                     DATE_POSITION_CHANGED = SYSDATE,
    31                     LAST_UPDATE_DATE = SYSDATE
    32*                    where ADVISOR_ID = '000001272'
    SQL> /
    this doesnt return anything...any idea about it ????thanks for ur time....

  • Update process does not work on Tabular Form

    Hello,
    I have 2 tabular forms on one page, which are using manual update processes.
    First form is created using wizard, and therefore works perfectly.
    The update process is as follows:
    DECLARE
      lc_string VARCHAR2(4000);
    BEGIN
      FOR i IN 1..APEX_APPLICATION.G_f01.COUNT
      LOOP
         lc_string := lc_string|| '[' ||APEX_APPLICATION.G_f*03*(i) || '|' || APEX_APPLICATION.G_f*04*(i) || ']';
      END LOOP;
      --Database processing using the concatenated string here
    END;Second form is created manually, using the following code:
    SELECT apex_item.checkbox (30,
                               '#ROWNUM#',
                               'onclick="highlight_row(this,' || '#ROWNUM#'|| ')"',
                               NULL,
                               'f30_' || '#ROWNUM#'
                              ) delete_checkbox,
           CATALOG_ID,
              apex_item.hidden (31, CATALOG_ID)
           || apex_item.text (32,
                              LANG,
                              80,
                              100,
                              'style="width:100px"',
                              'f32_' || '#ROWNUM#'
           || apex_item.hidden (33, wwv_flow_item.md5 (LANG, DESCRIPTION)) LANG,
           apex_item.text (34,
                           DESCRIPTION,
                           80,
                           100,
                           'style="width:255px"',
                           'f34_' || '#ROWNUM#'
                          ) DESCRIPTION
      FROM V_CATALOGS
    UNION ALL
    SELECT     apex_item.checkbox
                              (30,
                               TO_NUMBER(9900 + LEVEL),
                               'onclick="highlight_row(this,' || '#ROWNUM#' || ')"',
                               NULL,
                               'f30_' || TO_NUMBER (9900 + LEVEL)
                              ) delete_checkbox,
               NULL,
                  apex_item.hidden (31, NULL)
               || apex_item.text (32,
                                  NULL,
                                  80,
                                  100,
                                  'style="width:100px"',
                                  'f32_' || TO_NUMBER (9900 + LEVEL)
               || apex_item.hidden (33, NULL) LANG,
               apex_item.text
                                               (34,
                                                NULL,
                                                80,
                                                100,
                                                'style="width:255px" '  ,
                                                'f34_'
                                                || TO_NUMBER (9900 + LEVEL)
                                               ) DESCRIPTION
          FROM DUAL
         WHERE :P18_TEMP = 'ADD_ROWS1'
    CONNECT BY LEVEL <= 1However, the update process does not work on this form.
    I created it using the first one as an example, but with the id's of the second form:
    DECLARE
      lc_string VARCHAR2(4000);
    BEGIN
      FOR i IN 1..APEX_APPLICATION.G_f*30*.COUNT
      LOOP
         lc_string := lc_string|| '[' ||APEX_APPLICATION.G_f*32*(i) || '|' || APEX_APPLICATION.G_f*34*(i) || ']';
      END LOOP;
      --Database processing using the concatenated string here
    END;Also, both forms are opening in a modal pop-up dialog window.
    I use a Dialog Region plug-in for that.
    Please advise, what is causing a problem with update?

    Sloger,
    if this is your tabular form
    SELECT apex_item.checkbox (30,
    ...and this is your update statement
    FOR i IN 1..APEX_APPLICATION.G_f*30*.COUNT
    ...Then you will only ever update records that have been checked. Unchecked checkboxes are not passed back in the global array. You need to have a hidden column with the ID's for the record and loop through that when you are updating/inserting. That is why the built in tabular form has a MRU and a MRD. the MRU loops through the hidden ID column. The MRD loops through the checkbox.
    Thanks,
    Tyson Jouglet

  • Insert statement is not working for z table.

    Hi experts,
    My insert statement is not working.
    I have used follwing code to update z table .
    INSERT ztable FROM TABLE gt_table.
    here i have checked gt_table and its filled up with all the records properly.
    now the problem is in this table i have 15 fields and it inserts 14  fields of it but
    the last field is never inserted though in gt_table i can see value for last fields also.
    I have added this field in ztable recently . so i also used se14 to adjust table but still i am facing same problem.
    please help me out.
    thanks,
    Neo

    > > Table maintainance will have nothing to do with
    > this
    > > issue.
    >
    > It does sometimes when you are trying to see the
    > values from SM30 instead of SE16. The value may be
    > there, but it may just not seen in SM30 because the
    > table maintenance hasn't registered the addition of
    > new field.
    >
    > Another place to look at is the activation log to see
    > if there are any warnings issued there.
    You shouldn't use SM30 to view table entries. You use this transaction to maintain the table entries. Pure and Simple.

  • Update debugger is not working

    Hi All,
    My problem is "Update debugger is not working" is not working.
    In VA02,  I am creating a EDI output type, before saving it i am going into debug mode activating the 'Update Debugger'.
    But after that a message is coming as 'Update debugging has been triggered' but debugger screen is not coming up.
    Please let me if you have inputs on this.
    Thanks
    Satyamkumar Jha

    >
    Satyamkumar Jha wrote:
    > Hi Saravraj ,
    >
    > Even if 1 session is opened then also it is not going for update debugging.
    >
    > Thanks
    > Satyam
    Did you check if a COMMIT statement is getting triggered(you can do that by placing a break point in the debugger at the statement COMMIT)? Click on F5 once the control reaches COMMIT statment and wait for a new session to
    get opened for debugging.
    Not sure, about the debugger that you are using(classical/New),  lately, I have faced issues with update debugging while using new debugger, it would be a good idea to cross-check in classical debugger.
    -Rajesh.

  • After doing a widows update itunes will not work at all

    after doing a widows update itunes will not work at all

    hiya!
    I get the itunes has encounterd a problem and needs to close, sorry for the inconvenience error, no specific error number. I do not have QT installed,
    not having QT installed is what will be causing your itunes error message at the moment. let's try a careful standalone QT 7.1 install.
    download and save a copy of the QT 7.1 standalone installer to your hard drive. (we'll run the install from there rather than online.) switch off antivirus and antispyware applications prior to the install.
    Quicktime 7.1 Standalone Installer
    if that install goes through okay, does your itunes launch properly again?
    (if you get an error message on the QT standalone reinstall, let us know what it says. include error message numbers if you're getting any.)
    love, b

  • Insert statement will not work if select statement has less number of colum

    Hi,
    One of my thread is already resolved on the following URL : unable to insert rows into the table
    DROP TABLE TEMP;
    CREATE TABLE TEMP AS SELECT * FROM CASE_101 WHERE 1=2;
    DECLARE
    S VARCHAR2(200);
    STMT VARCHAR2(500);
    begin
    for C in (select TABLE_NAME INTO S from USER_TABLES where TABLE_NAME like 'CASE%' TABLE_NAME NOT like '%OLD' and Num_ROWS > 0 order by TABLE_NAME) loop
    STMT := 'INSERT INTO TEMP SELECT * FROM ';
    STMT:=STMT || C.TABLE_NAME;
    EXECUTE IMMEDIATE STMT;
    dbms_output.put_line(c.table_name);
    end loop;
    end;
    i am facing now some different; almost all the tables have same number of columns except in few of tables have some additional columns. As above i am creating a table "TEMP" who has highest column temp(by doing some manual process). The table who has less columns than "TEMP" table : Insert statement will not work. 'INSERT INTO TEMP SELECT * FROM less_columns_table_name'.
    Please let me know , how can i execute proper way.
    Thanks.
    Best Regards
    Arshad

    user13360241 wrote:
    Hi,
    One of my thread is already resolved on the following URL : unable to insert rows into the table
    DROP TABLE TEMP;
    CREATE TABLE TEMP AS SELECT * FROM CASE_101 WHERE 1=2;
    DECLARE
    S VARCHAR2(200);
    STMT VARCHAR2(500);
    begin
    for C in (select TABLE_NAME INTO S from USER_TABLES where TABLE_NAME like 'CASE%' TABLE_NAME NOT like '%OLD' and Num_ROWS > 0 order by TABLE_NAME) loop
    STMT := 'INSERT INTO TEMP SELECT * FROM ';
    STMT:=STMT || C.TABLE_NAME;
    EXECUTE IMMEDIATE STMT;
    dbms_output.put_line(c.table_name);
    end loop;
    end;
    i am facing now some different; almost all the tables have same number of columns except in few of tables have some additional columns. As above i am creating a table "TEMP" who has highest column temp(by doing some manual process). The table who has less columns than "TEMP" table : Insert statement will not work. 'INSERT INTO TEMP SELECT * FROM less_columns_table_name'.
    Please let me know , how can i execute proper way.
    Thanks.
    Best Regards
    Arshadmore often than not "TEMP" tables are NOT required & are highly inefficient in Oracle.
    Either only specify explicit column in TEMP to get data,
    or provide value for "extra" column in TEMP

  • CASE Statement is not working Derived table

    Hi All,
    in the bello SQL Statement case statement is not working in derived table. I am new to creation of derived table if any body knows plz kinldy help me out on this.
    SELECT x.market, x.droprate as med1
    FROM
    (select upper(market_name) as market, fulldate as date_value,
         (sum([Dy_LOT_DROPS_N][Dy_OB_HO_DROPS][Dy_NonRF_Drop]))/
              nullif(sum(CASE WHEN (month(BBHDLY.FullDate)}>= 6 and { year(BBHDLY.FullDate)} = 2011) or {fn year(IDENSLABBHDLY.FullDate)} > 2011
    THEN  BBHDLY.Dy_Calls - BBHDLY.Dy_HO_CHAN_ALLOC ELSE BBHDLY.Dy_Calls END),0)*100 as droprate
    from BBHDLY sla
    inner join Dim mkt
         on sla.bts_name = mkt.bts_name and sla.SectorID = mkt.Sector_Id
                   where fulldate >= GETDATE()-46
                   group by market_name, fulldate) x,
    (select market_name as market, fulldate as date_value,
    (sum([Dy_LOT_DROPS_N][Dy_OB_HO_DROPS][Dy_NonRF_Drop]))/
              nullif(sum(CASE WHEN ({fn month(BBHDLY.FullDate)}>= 6 and {fn year(BBHDLY.FullDate)} = 2011) or {fn year(BBHDLY.FullDate)} >
    2011 THEN  BBHDLY.Dy_Calls - BBHDLY.Dy_HO_CHAN_ALLOC ELSE BBHDLY.Dy_Calls END),0)*100 as droprate
    from BBHDLY sla
    inner join Dim mkt
         on sla.bts_name = mkt.bts_name and sla.SectorID = mkt.Sector_Id
                   where fulldate >=GETDATE()-46
                   group by market_name, fulldate) y
    where x.market = y.market
    GROUP BY x.droprate, x.market
    HAVING
       SUM(CASE WHEN y.droprate <= x.droprate
          THEN 1 ELSE 0 END)>=(COUNT(*)+1)/2 AND
       SUM(CASE WHEN y.droprate >= x.droprate
          THEN 1 ELSE 0 END)>=(COUNT(*)/2)+1
    Thanks

    It looks like SQL Server or Sybase given that you're using getdate().
    As such, Vinesh's comment to use decode is wrong - decode is  Oracle syntax.
    Looking at your statement again, I've noticed the following:
    you have no { to match the first } - not sure why you're using them anyway.
    you haven't given x.market a name - use x.market as market instead
    use coalesce instead of nullif if you're on SQL Server.

  • Delete Statement is not working correctly

    Hello,
    The following delete statement is not working correctly.
    If I press delete it will delete everything in the category table
    I don't know whats wrong with it.
    ----delete row from category if there is not infrastructure to support------
    IF :P12_DFCY_SEQNO4 IS NOT NULL AND :P12_DFCY_CATG_C = '7' THEN
    DELETE FROM DFCY_CATG
    WHERE NOT EXISTS(SELECT I.DFCY_SEQNO
    FROM DFCY_CATG C, DFCY_CATG_INFRSTRCTR I
    WHERE C.DFCY_SEQNO = I.DFCY_SEQNO
    AND :P12_DFCY_SEQNO4 = I.DFCY_SEQNO);
    end if;
    Thanks
    Mary

    Hi,
    IF :P12_DFCY_SEQNO4 IS NOT NULL AND :P12_DFCY_CATG_C = '7' THEN
    DELETE FROM DFCY_CATG
    WHERE NOT EXISTS(SELECT I.DFCY_SEQNO
    FROM DFCY_CATG C, DFCY_CATG_INFRSTRCTR I
    WHERE C.DFCY_SEQNO = I.DFCY_SEQNO
    AND :P12_DFCY_SEQNO4 = I.DFCY_SEQNO);
    end if;So, if P12_DFCY_SEQNO4 does not exist, then I would expect all records to be deleted because the NOT EXISTS() function would just return TRUE for every record on the table. Somewhere in the statement, I would expect to see something that links between the table being deleted from and the NOT EXISTS() data or, perhaps, using the P12_DFCY_CATG_C value as a filter?
    Andy

  • Delete statement is not working.

    Hi,
    find the code. Here the delete statement is not working and i am getting sy-subrc = 4. although ,
    xe1edp10-idnkd = 34596 and dint_edidd -sdata = 34596.
    please help me ...
    loop at dekek_x.
    loop at dint_edidd where segnam = 'E1EDP10'.
    if dekek_x-stpin = 1 .
    CLEAR xe1edp10.
      MOVE dint_edidd-sdata TO xe1edp10.
    delete dint_edidd where sdata = xe1edp10-idnkd.
    endif.
    endloop.

    1st thing..
    i tried this :
    tables: edidd, e1edp10.
    edidd-sdata = '315934 EA 017'.
    WRITE edidd-sdata.
    move edidd-sdata to e1edp10.
    IF edidd-sdata = e1edp10-idnkd.
    WRITE: e1edp10-idnkd.
    else.
      WRITE: 'nothing'.
    ENDIF.
    output
    >315934 EA 017
    >315934 EA 017
    2nd thing,.
    your loop inside loop doesnt make any sense as they are not related any where.
    3rd thing:
    the fields are not type compatible.. this might be the reason for wrong delete statement..
    and 1 more clarification:
    TABLES: edidd, e1edp10.
    DATA :it TYPE TABLE OF edidd WITH HEADER LINE.
    edidd-sdata = '315934 EA 017'.
    WRITE edidd-sdata.
    APPEND edidd TO it.
    edidd-sdata = '315934 EA 018'.
    APPEND edidd TO it.
    LOOP AT it." where segnam = 'E1EDP10'.
      CLEAR e1edp10.
      MOVE it-sdata TO e1edp10.
      DELETE it WHERE sdata = e1edp10-idnkd.
    ENDLOOP.
    in this also delete is working perfectly fine... you run and check..

  • SORT statement is not working!

    Hi frdz,
    Below SORT statement is not working. Can any one explain me why this is happening.
    SORT i_bseg ASCENDING BY belnr bukrs
                        DESCENDING kunnr.
    I have table content as below.
    BELNR      BUKRS KUNNR   
    0016000000|CROP |         
    0016000000|CROP |0008910168
    Before and after the sort content order is same.
    I want to sort the content like below.
    0016000000|CROP |0008910168
    0016000000|CROP |       
    Is there any thing wrong with the sort statement???
    i_bseg is defined as TYPE STANDARD TABLE OF
    Sort criteria must not change i. e ascending by belnr and bukrs and descending by kunnr.
    Thanks,
    Vinod.

    hi vinod,
    this is because on your statement, you are sorting BUKRS in descending order and KUNNR in ASCENDING order.
    please take note that the sort order should come after the sorted field. if no order is given, the default which is ASCENDING will be used.
    do your sorting like this
    SORT i_bseg BY belnr bukrs kunnr DESCENDING.
    regards,
    Peter

  • Update Panel is not working browsers other than IE

    In SharePoint 2013, Update Panel is not working for firefox, chrome etc.

    Hi,
    From your description, my understanding is that you use
    <asp:UpdatePanel>tag in your code, but it does not work well in browsers except
    IE.
    I have test
    <asp:UpdatePanel>tag with code below, and it works well in IE, chrome, Firefox
    as the screenshot.
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true">
    <ContentTemplate>
    <asp:Label ID="lbl" runat="server" Text="Loaded" Visible="true"></asp:Label>
    <asp:Button ID="btn" runat="server" OnClick="btn_Click"/>
    </ContentTemplate>
    </asp:UpdatePanel>
    protected void btn_Click(object sender, EventArgs e)
    lbl.Text = "BUTTON CLICKED !";
    lbl.Visible = true;
    The screenshot below is my result(the first is result in Chrome, second is in Firefox and last is in IE):
    And you also could refer to this article:
    http://sharepoint.stackexchange.com/questions/72928/update-panel-not-working-in-firefox-2013
    Best Regards,
    Vincent Han
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • HT4972 My ipad 1 is stuck on IOS 4 as the IOS 5 update instructions do not work. When I use itunes update the software looks for an update file and the apple site doesn't have one!

    My ipad 1 is stuck on IOS 4 as these IOS 5 update instructions do not work. When I use itunes update the software looks for an IOS 5 software update file and the apple site doesn't seem have one anywhere!

    If you have an iPad 1, the max iOS is 5.1.1. For newer iPads, the current iOS is 6.0.1. For the iPad Mini the iOS is 6.0.2. The Settings>General>Software Update only appears if you have iOS 5.0 or higher currently installed.
    iOS 5: Updating your device to iOS 5 or Later
    http://support.apple.com/kb/HT4972
    How to install iOS 6
    http://www.macworld.com/article/2010061/hands-on-with-ios-6-installation.html
    iOS: How to update your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT4623
    If you are currently running an iOS lower than 5.0, connect the iPad to the computer, open iTunes. Then select the iPad under the Devices heading on the left, click on the Summary tab and then click on Check for Update.
    Tip - If connected to your computer, you may need to disable your firewall and anitvirus software temporarily.  Then download and install the iOS update. Be sure and backup your iPad before the iOS update. After you update an iPad (except iPad 1) to iOS 6.x, the next update can be installed via wifi (i.e., not connected to your computer).
     Cheers, Tom

  • After doing last Mavericks update, Messages is not working properly

    Since yesterday, after doing last Mavericks update, Messages is not working properly - the Dock icon is not bouncing nor showing any number for new messages. Very annoying, since I usually have Messages on background while working and I now i don't realize if people is chatting me unless I open the messages wondows.

    Hi,
    Check System Preferences > Notification is set for Messages
    In Messages > Preferences > General Section change the Sound option for Message Received.
    Restart the app and test this sound is (still) playing.
    Place app in background an iMessages "yourself" form your iPhone.
    Does the sound Play ?
    10:18 pm      Wednesday; November 13, 2013
      iMac 2.5Ghz 5i 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

Maybe you are looking for

  • Unable to open PDF's "User Cancelled Operation"

    Since Adobe Reader updated to XI, I have been unable to open any PDF files on my computer.  Every time I try to open a PDF file or open Adobe Reader from the start menu it takes forever to load the program and before it finishes loading i get an erro

  • Lumia 630 Bluetooth problem

    Hi... I have a real problem with file receiving through Bluetooth in my brand new Lumia 630 Dual... Which is... Every time when I receive a file i am asked to click accept button for each and every file from a same paired device...... Y is it asking

  • Help changing icon in JFrame

    1. I have a class, which extends the JFrame class. I would like to set the little icon in the top left corner to be my own icon, instead of the typical Java icon. How do I do this. 2. I am trying to display an image in my form. I have a label and am

  • What are all the key words are not recommented in User Exit or Enhancement

    Dear Experts, Can any of one tell me, what are all the key words not recommended to use any of the User exit or Enhancement spots? Regards, Mohana Moderator message: please search for available information/documentation. Edited by: Thomas Zloch on Fe

  • Making animation using java, need help, image doesn't get painted

    I was trying to make some sort of animation and it is done by painting a head and a body at a time. The problem is the body never gets painted but the head is perfect. Unless I replace the int variable within imgBodypics[int variable] with a variable