Duplication of records after trasport to BI PRD

Hi all,
I am facing problem of duplication of the records after transporting to production environment. The same is running fine in Dev.
This development is based on function module. Please suggest if anyone has an idea. I have attached FM code for reference.
amit shetye.
FUNCTION zmmf_pacm.
""Local Interface:
*"  IMPORTING
*"     VALUE(I_REQUNR) TYPE  SRSC_S_IF_SIMPLE-REQUNR
*"     VALUE(I_DSOURCE) TYPE  SRSC_S_IF_SIMPLE-DSOURCE OPTIONAL
*"     VALUE(I_MAXSIZE) TYPE  SRSC_S_IF_SIMPLE-MAXSIZE OPTIONAL
*"     VALUE(I_INITFLAG) TYPE  SRSC_S_IF_SIMPLE-INITFLAG OPTIONAL
*"     VALUE(I_READ_ONLY) TYPE  SRSC_S_IF_SIMPLE-READONLY OPTIONAL
*"     VALUE(I_REMOTE_CALL) TYPE  SBIWA_FLAG DEFAULT SBIWA_C_FLAG_OFF
*"  TABLES
*"      I_T_SELECT TYPE  SRSC_S_IF_SIMPLE-T_SELECT OPTIONAL
*"      I_T_FIELDS TYPE  SRSC_S_IF_SIMPLE-T_FIELDS OPTIONAL
*"      E_T_DATA STRUCTURE  ZMMS_PACM OPTIONAL
Maximum number of lines for DB table
  STATICS: s_s_if TYPE srsc_s_if_simple,
           s_counter_datapakid LIKE sy-tabix,
           s_cursor TYPE cursor.
  RANGES: s_werks FOR t001w-werks,
          s_ekorg FOR ekko-ekorg,
          s_matnr FOR mara-matnr,
          s_matkl FOR mara-matkl,
          s_spmon FOR s031-spmon.
  DATA: l_s_select TYPE srsc_s_select.
  IF i_initflag = sbiwa_c_flag_on.
Check Data Source validity
    CASE i_dsource.
      WHEN 'ZMMF_PACM'.
      WHEN OTHERS.
        IF 1 = 2. MESSAGE e009(r3). ENDIF.
        log_write 'E'                  "message type
                  'R3'                 "message class
                  '009'                "message number
                  i_dsource   "message variable 1
                  ' '.                 "message variable 2
        RAISE error_passed_to_mess_handler.
    ENDCASE.
    APPEND LINES OF i_t_select TO s_s_if-t_select.
    s_s_if-requnr    = i_requnr.
    s_s_if-dsource = i_dsource.
    s_s_if-maxsize   = i_maxsize.
    CLEAR : sy-index.
    APPEND LINES OF i_t_fields TO s_s_if-t_fields.
  ELSE.                 "Initialization mode or data extraction ?
    LOOP AT s_s_if-t_select INTO l_s_select WHERE fieldnm = 'WERKS'.
      MOVE-CORRESPONDING l_s_select TO s_werks.
      APPEND s_werks.
    ENDLOOP.
    LOOP AT s_s_if-t_select INTO l_s_select WHERE fieldnm = 'EKORG'.
      MOVE-CORRESPONDING l_s_select TO s_ekorg.
      APPEND s_ekorg.
    ENDLOOP.
    LOOP AT s_s_if-t_select INTO l_s_select WHERE fieldnm = 'MATNR'.
      MOVE-CORRESPONDING l_s_select TO s_matnr.
      APPEND s_matnr.
    ENDLOOP.
    LOOP AT s_s_if-t_select INTO l_s_select WHERE fieldnm = 'MATKL'.
      MOVE-CORRESPONDING l_s_select TO s_matkl.
      APPEND s_matkl.
    ENDLOOP.
    LOOP AT s_s_if-t_select INTO l_s_select WHERE fieldnm = 'SPMON'.
      MOVE-CORRESPONDING l_s_select TO s_spmon.
      APPEND s_spmon.
    ENDLOOP.
  viswa
START-OF-SELECTION.                                                  *
*START-OF-SELECTION.
    CONCATENATE s_spmon-low  '01' INTO w_date.
    CONCATENATE s_spmon-high  '01' INTO w_date1.
    CALL FUNCTION 'MM_LAST_DAY_OF_MONTHS'
      EXPORTING
        day_in            = w_date1
      IMPORTING
        last_day_of_month = w_date2.
EXCEPTIONS
  DAY_IN_NO_DATE          = 1
  OTHERS                  = 2          .
    IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    r_date-sign   = 'I'.
    r_date-option = 'BT'.
    r_date-low    = w_date.
    r_date-high   = w_date2.
    APPEND r_date.
    CLEAR r_date.
    r_werks-sign   = 'I'.
    r_werks-option = 'BT'.
    r_werks-low    = s_werks.
    r_werks-high   = s_werks.
    APPEND r_werks.
    CLEAR r_werks.
***********mov types**************
    r_bwart-sign = 'I'.
    r_bwart-option = 'EQ'.
    r_bwart-low = '101'.
    APPEND r_bwart.
    CLEAR r_bwart.
    r_bwart-sign = 'I'.
    r_bwart-option = 'EQ'.
    r_bwart-low = '102'.
    APPEND r_bwart.
    CLEAR r_bwart.
    r_bwart-sign = 'I'.
    r_bwart-option = 'EQ'.
    r_bwart-low = '122'.
    APPEND r_bwart.
    CLEAR r_bwart.
r_matnr-sign = 'I'.
r_matnr-option = 'BT'.
r_matnr-low = p_matnr.
r_matnr-high = p_matnr.
APPEND r_matnr.
CLEAR r_matnr.
    CLEAR : list, list[].
    FREE : list, list[].
    SUBMIT zmmr_mdl  WITH matnr IN s_matnr
                     WITH werks IN s_werks
                     WITH bwart IN r_bwart
                     WITH budat IN r_date
                     WITH ar_flag = 'X'
                     AND RETURN.
    IMPORT list FROM MEMORY ID '%%LIST%%'.
    FREE MEMORY ID '%%LIST%%'.
    DELETE list WHERE   bwart = '101'
                        AND shkzg = 'H'.
    DELETE list WHERE   bwart = '102'
                        AND shkzg = 'S'.
    DELETE list WHERE   bwart = '122'
                         AND shkzg = 'S'.
  DELETE list WHERE ebeln = space.
    SELECT ebeln
           ekorg FROM ekko INTO TABLE t_ekko
           FOR ALL ENTRIES IN list
           WHERE ebeln = list-ebeln
           AND ekorg IN s_ekorg.
    SELECT ebeln
           ebelp
           matnr
           werks
           matkl FROM ekpo INTO TABLE t_ekpo
           FOR ALL ENTRIES IN t_ekko
           WHERE ebeln = t_ekko-ebeln
           AND werks IN s_werks
           AND matnr IN s_matnr
           AND matkl IN s_matkl.
    LOOP AT list.
   LOOP AT t_ekpo WHERE werks = list-werks
                     AND ebeln = list-ebeln
                     AND matnr = list-matnr.
      READ TABLE t_ekpo WITH KEY werks = list-werks
                                 ebeln = list-ebeln
                                 matnr = list-matnr.
      READ TABLE t_ekko WITH KEY ebeln = t_ekpo-ebeln.
      IF sy-subrc = 0.
        MOVE:list-ebeln TO t_final-ebeln,
             list-werks TO t_final-werks,
             list-budat TO t_final-budat,
             list-menge TO t_final-menge,
             list-dmbtr TO t_final-dmbtr,
             list-meins TO t_final-meins,
             t_ekko-ekorg TO t_final-ekorg,
             t_ekpo-matnr TO t_final-matnr,
             t_ekpo-matkl TO t_final-matkl.
      ENDIF.
   ENDLOOP.
      APPEND t_final.
      CLEAR t_final.
    ENDLOOP.
    DATA : ind TYPE i.
    DATA : ind1 TYPE i.
    DATA : p_size LIKE s_s_if-maxsize.
    t1 = t1 + 1.
    IF t1 > 1.
      ind1 = 1.
      DO t1 TIMES.
        IF ind1 NE 1.
          DELETE t_final FROM 1 TO s_s_if-maxsize.
        ENDIF.
        ind1 = ind1 + 1.
      ENDDO.
    ENDIF.
    DATA:w_wgbez LIKE t023t-wgbez,
          w_mtart LIKE mara-mtart.
    LOOP AT t_final.
      ind = ind + 1.
      IF s_s_if-maxsize GE ind.
        e_t_data-werks    = t_final-werks.
        e_t_data-ekorg    = t_final-ekorg.
        e_t_data-matkl    = t_final-matkl.
        SELECT SINGLE wgbez FROM t023t INTO w_wgbez WHERE matkl = e_t_data-matkl.
        e_t_data-wgbez = w_wgbez.
        SELECT SINGLE mtart FROM mara INTO w_mtart WHERE matnr = t_final-matnr.
        e_t_data-mtart = w_mtart.
        IF t_final-budat+4(2) = '01'.
          e_t_data-meins    = t_final-meins.
          e_t_data-matnr    = t_final-matnr.
          e_t_data-spmon    = t_final-budat+0(6).
          e_t_data-jan_qty   = t_final-menge.
          e_t_data-jan_val   = t_final-dmbtr.
          IF NOT e_t_data-jan_qty IS INITIAL.
            e_t_data-jan_avg =  e_t_data-jan_val / e_t_data-jan_qty.
          ENDIF.
          v_jan = t_final-budat+2(2).
        ELSEIF t_final-budat+4(2) = '02'.
          e_t_data-meins    = t_final-meins.
          e_t_data-matnr    = t_final-matnr.
          e_t_data-spmon    = t_final-budat+0(6).
          e_t_data-feb_qty   = t_final-menge.
          e_t_data-feb_val  = t_final-dmbtr.
          IF NOT e_t_data-feb_qty IS INITIAL.
            e_t_data-feb_avg = e_t_data-feb_val / e_t_data-feb_qty.
          ENDIF.
          v_feb = t_final-budat+2(2).
        ELSEIF t_final-budat+4(2) = '03'.
          e_t_data-meins    = t_final-meins.
          e_t_data-matnr    = t_final-matnr.
          e_t_data-spmon    = t_final-budat+0(6).
          e_t_data-mar_qty   = t_final-menge.
          e_t_data-mar_val   = t_final-dmbtr.
          IF NOT e_t_data-mar_qty IS INITIAL.
            e_t_data-mar_avg = e_t_data-mar_val / e_t_data-mar_qty.
          ENDIF.
          v_mar = t_final-budat+2(2).
        ELSEIF t_final-budat+4(2) = '04'.
          e_t_data-meins    = t_final-meins.
          e_t_data-matnr    = t_final-matnr.
          e_t_data-spmon    = t_final-budat+0(6).
          e_t_data-apr_qty   = t_final-menge.
          e_t_data-apr_val   = t_final-dmbtr.
          IF NOT e_t_data-apr_qty IS INITIAL.
            e_t_data-apr_avg = e_t_data-apr_val / e_t_data-apr_qty.
          ENDIF.
          v_apr = t_final-budat+2(2).
        ELSEIF t_final-budat+4(2) = '05'.
          e_t_data-meins    = t_final-meins.
          e_t_data-matnr    = t_final-matnr.
          e_t_data-spmon    = t_final-budat+0(6).
          e_t_data-may_qty   = t_final-menge.
          e_t_data-may_val   = t_final-dmbtr.
          IF NOT e_t_data-may_qty IS INITIAL.
            e_t_data-may_avg = e_t_data-may_val / e_t_data-may_qty.
          ENDIF.
          v_may = t_final-budat+2(2).
        ELSEIF t_final-budat+4(2) = '06'.
          e_t_data-meins    = t_final-meins.
          e_t_data-matnr    = t_final-matnr.
          e_t_data-spmon    = t_final-budat+0(6).
          e_t_data-jun_qty  = t_final-menge.
          e_t_data-jun_val   = t_final-dmbtr.
          IF NOT e_t_data-jun_qty IS INITIAL.
            e_t_data-jun_avg = e_t_data-jun_val / e_t_data-jun_qty.
          ENDIF.
          v_jun = t_final-budat+2(2).
        ELSEIF t_final-budat+4(2) = '07'.
          e_t_data-meins    = t_final-meins.
          e_t_data-matnr    = t_final-matnr.
          e_t_data-spmon    = t_final-budat+0(6).
          e_t_data-jul_qty   = t_final-menge.
          e_t_data-jul_val   = t_final-dmbtr.
          IF NOT e_t_data-jul_qty IS INITIAL.
            e_t_data-jul_avg = e_t_data-jul_val / e_t_data-jul_qty .
          ENDIF.
          v_jul = t_final-budat+2(2).
        ELSEIF t_final-budat+4(2) = '08'.
          e_t_data-meins    = t_final-meins.
          e_t_data-matnr    = t_final-matnr.
          e_t_data-spmon    = t_final-budat+0(6).
          e_t_data-aug_qty  = t_final-menge.
          e_t_data-aug_val    = t_final-dmbtr.
          IF NOT e_t_data-aug_qty IS INITIAL.
            e_t_data-aug_avg = e_t_data-aug_val / e_t_data-aug_qty.
          ENDIF.
          v_aug = t_final-budat+2(2).
        ELSEIF t_final-budat+4(2) = '09'.
          e_t_data-meins    = t_final-meins.
          e_t_data-matnr    = t_final-matnr.
          e_t_data-spmon    = t_final-budat+0(6).
          e_t_data-sep_qty   = t_final-menge.
          e_t_data-sep_val   = t_final-dmbtr.
          IF NOT e_t_data-sep_qty IS INITIAL.
            e_t_data-sep_avg = e_t_data-sep_val / e_t_data-sep_qty.
          ENDIF.
          v_sep = t_final-budat+2(2).
        ELSEIF t_final-budat+4(2) = '10'.
          e_t_data-meins    = t_final-meins.
          e_t_data-matnr    = t_final-matnr.
          e_t_data-spmon    = t_final-budat+0(6).
          e_t_data-oct_qty   = t_final-menge.
          e_t_data-oct_val   = t_final-dmbtr.
          IF NOT e_t_data-oct_qty IS INITIAL.
            e_t_data-oct_avg = e_t_data-oct_val / e_t_data-oct_qty.
          ENDIF.
          v_oct = t_final-budat+2(2).
        ELSEIF t_final-budat+4(2) = '11'.
          e_t_data-meins    = t_final-meins.
          e_t_data-matnr    = t_final-matnr.
          e_t_data-spmon    = t_final-budat+0(6).
          e_t_data-nov_qty   = t_final-menge.
          e_t_data-nov_val   = t_final-dmbtr.
          IF NOT e_t_data-nov_qty IS INITIAL.
            e_t_data-nov_avg = e_t_data-nov_val / e_t_data-nov_qty.
          ENDIF.
          v_nov = t_final-budat+2(2).
        ELSEIF t_final-budat+4(2) = '12'.
          e_t_data-meins    = t_final-meins.
          e_t_data-matnr    = t_final-matnr.
          e_t_data-spmon    = t_final-budat+0(6).
          e_t_data-dec_qty   = t_final-menge.
          e_t_data-dec_val   = t_final-dmbtr.
          IF NOT e_t_data-dec_qty IS INITIAL.
            e_t_data-dec_avg = e_t_data-dec_val / e_t_data-dec_qty.
          ENDIF.
        ENDIF.
        v_dec = t_final-budat+2(2).
        e_t_data-till_qty = e_t_data-jan_qty + e_t_data-feb_qty + e_t_data-mar_qty + e_t_data-apr_qty +
                 e_t_data-may_qty + e_t_data-jun_qty + e_t_data-jul_qty + e_t_data-aug_qty + e_t_data-sep_qty
                + e_t_data-oct_qty + e_t_data-nov_qty + e_t_data-dec_qty.
        e_t_data-till_val = e_t_data-jan_val + e_t_data-feb_val + e_t_data-mar_val + e_t_data-apr_val +
                e_t_data-may_val + e_t_data-jun_val + e_t_data-jul_val + e_t_data-aug_val + e_t_data-sep_val
                + e_t_data-oct_val + e_t_data-nov_val + e_t_data-dec_val.
        IF NOT e_t_data-till_qty IS INITIAL.
          e_t_data-till_avg = e_t_data-till_val / e_t_data-till_qty.
        ENDIF.
        CLEAR w_maktx.
        SELECT SINGLE maktx FROM makt INTO w_maktx WHERE matnr = t_final-matnr.
        e_t_data-maktx   = w_maktx.
        APPEND e_t_data.
        CLEAR :e_t_data,w_wgbez,w_mtart.
      ENDIF.
    ENDLOOP.
  ENDIF.
ENDFUNCTION.

thanks

Similar Messages

  • Duplication of records after trasports to BI PRD

    Hi all, I am facing problem of duplication of the records after transporting to production environment. The same is running fine in Dev. This development is based on function module. Please suggest if anyone has an idea. I have attached FM code for reference.
    amit shetye

    Hi,
    Make the change in the infopackage setting where we define the number of records per infopackage.
    Let all the records come in package.
    In start routine, sort the data_package.
    and delete adjacent duplicates.
    This is one way.
    Another way is, if you have DSO at first level, even if duplicate record comes, if it is loaded into a DSO, the duplicate records will get overwritten.  So you do not have to worry.
    Only in the mapping, see to that, that you have selected "Overwrite" option in the Update rule or transformation.
    Thanks.

  • How can we avoid duplication of records in database while inserting records

    Hi,
    In my scenerio,while inserting the same records through idoc duplication of records is happening in database.How can i avoid this.

    Divya,
    First its a wrong data, because you cannot have the same data for any condition. Probably its a data problem. Please check with the datbase team and ask them why is it so? They should handle on their end.
    Anyways if the above dont work and if you ahve duplicate records then probably you need to come up with a query using select distinct. If this doesnot work then if the duplicates comes into mapping, you might selecting some fields which are common. So you can use a splitbyvalue(on value change) for those records, so even if there are three records it takes only one record. If you have 4 or 5 common values then you can concat them and then use the splitbyvalue change.
    Else an adapter module should help you out in sender comm. channel after picking the records.
    For an idea can you rajs response in this thread:
    Duplicate records
    Regards,
    ---Satish

  • Is there a way to get a user login record after sleep?

    I know that by opening terminal and typing in "last" (without the quote marks) that it will give me about a 3 week record of who has logged on my computer after shutdowns and restarts.
    What I want to know is this:
    a) Is there a way to get a user login record after the computer only goes to sleep?
    b) is there a way to get the terminal to go back further than just 3 weeks or so for the shutdown/restart records?
    Is there software that might do this???
    Thanks in advance, this is important for me.

    bikinijack wrote:
    Thanks, Dave: so this is what I type in the terminal? "ls -l /var/log/wtmp*" (without the quotes). And how do you unzip something that has been "gzipped"?
    "man gzip" will give you the details for using gzip
    My first question can be explained this way: To get into the computer when it is coming out of sleep you need to type in a password, then it opens to the desktop. Is there a way I can find out the times over the course of a day/week/month that this is being done? i.e., is there a log being made somewhere of when the computer is being opened and signed onto after being asleep?
    When you wake the computer from a sleep, you are not logging in again so there will be
    no record of the event as a "login"
    My computer possibly could be used by a few other people that have access to my computer password (don't ask why) and I basically want to know if they are signing on when I am away from my desk.
    You may want to look at /var/log/asl.log or /var/log/secure.log which contain details of
    authentication attempts (which is what you are doing) and failures.
    I am not asking why you have multiple people accessing your computer with your password --
    but consider setting up separate username, it is a lot easier to manage and you will probably
    not be asking questions like this one.
    Dave

  • URGENT help needed:Address data missing after QA Refresh from PRD

    All,
    Address data for almost all user-ids are missing after QA Refresh from PRD.
    In QA, after importing the User-Master although its shows successful. The detailed log shows:
       Data inconsistency in USR21. Start RSADRCK2 (See Note 459763)
       Exit program AFTER_IMP_ADDRESS3 successfully executed
       SAP user has no address SAP*
       Error while deleting ADRVP for SAP*
       SAP user has no address SAPCPIC...
       ERROR: Type "F" user exit with SYS_ERROR:     SUSR_CLIENTCOPY_USERBUF_RESET
    We also do a Table export - import wherein the tables
    USR03
    USR07
    USR09
    USR20
    USR21
    USR30
    are included.
    The no. of entries exported and imported are same.
    Also FYI in the User-master Transport i can see the following Tables included in the object list
    USR01
    USR02
    USR04
    USR05
    USR06
    USR08
    USR14
    USR21S
    USR22
    USRACL
    USREXTID
    USREXTIDH
    Has anyone seen this before?
    Any body has any ideas?

    Hello Bidwan,
    I think it is an issue with company address. Just check if  company addresses are existing the source client ?After client copy company addreses of target client will only exist in source client. Then if you do impot of the transport containing USR* tables it will try to assign old company addresses to the users but probably they are not exisitng in target client any more.
    If this is the case then you need to create those company addresses again using SUCOMP and then once again import the transport for user master.
    Regards.
    Ruchit.

  • Re: Displaying Current Record After Delete

    Hi all,
    I am using Jdeveloper 11.1.2.3.0
    I have two tables which has parent child relation among the both.
    I dragged the parent table as a adf form on to the .jspx page.
    Now if i am trying to delete fifth record in the parent table it is giving error message like "Table has child record, delete unsuccessful"
    It is fine, but the control going to first record after deletion.
    But i want to display current deleting record on the page if deletion is unsuccessful.
    Can anybody help me to resolve the above one.
    Thanks,
    Syam

    In this code when the bolded if condition fails i want to delete that record. I tried "delete struct1 index sy-tabix" but that record is not deleted.
    I tried "clear  struct1 ". its deletes the current record.
    but in some field its getting zero value & it is appending as a additional record.
    Please help me.
    loop at cdhdr.
    if ( it1-tcode = 'FSS0' or it1-tcode = 'FS00' ).
        w1_saknr = it1-objectid+4(10).
        w_orgid = it1-objectid+14(4).
       loop at it_cdpos  where changenr eq it1-changenr
                      and objectid eq it1-objectid
                       and   objectclas eq it1-objectclas.
       <b>If w_orgid in r_orgid.</b> 
      IF ( it_CDPOS-FNAME = 'XLOEV' AND it_cdpos-value_new eq 'X' ).
         replace struct1-change_ind with 'D' into struct1-change_ind.
                struct1-bukrs = w_orgid.
                struct1-cost = space.
                struct1-plant = space.
                append struct1.
          else.
             struct1-bukrs = w_orgid.
             struct1-change_ind = w_chngid.
             struct1-cost = space.
             struct1-plant = space.
             append struct1.
          endif.
       <b> else</b>.
        <b>delete struct1 index sy-tabix</b>.
      endif.
        append struct1.
           endloop.
    endif.
    endloop.

  • Canon Rebel T5i automatically stops recording after about 6 seconds. How can I disable or fix this?

    I just got a Canon Rebel T5i and I was testing out the video and several times it will automatically stop recording after about 6 seconds. How can I fix or disable this?

    And while buying said faster card... buy a REPUTABLE brand from a reputable vendor.  I've come to the conclusion that there are a lot of fly-by-nights making cards that are not as fast as they claim to be.
    Reputable vendors are companies like Sandisk and Lexar.  But as an SD card is just a plastic card with a sticker on it, and stickers are pretty easy to fake, buy the card from a vendor you can trust is not selling fakes. 
    This is one item where it is probably not a good idea to try to save money by finding the cheapest deal you can find on the Internet.
    Tim Campbell
    5D II, 5D III, 60Da

  • Need Count of Displayed records after suprresion

    Hi All,
    My question is looks very simple but it made me very tough to get it. pls help me if you have any clue.
    I have a report having 20 detail records from Database.
    I used some condition at Section expert to suppress some data, after that I have only 10 records as report out put.
    Now, at the report footer I need the count of the records.So, when I use count function its showing 20 instead of 10.
    How to get the count of available records after suppressing.
    Thank you,
    Krishna Pingali

    Hi Krishna!
    I would try using a conditional Running Total formula to add each record that does not fit the suppression criteria, and then a display formula to display the final total.
    Ex -
    @Non-Suppressed Count Calc
    WhilePrintingRecords;
    NumberVar NSC;
    If <> <suppression criteria> Then NSC := NSC + 1
    Else NSC := NSC
    @Non-Suppressed Count Display
    WhilePrintingRecords;
    NumberVar NSC;
    NSC
    Place the first formula in your Details Section and the Second in the appropriate Footer Section.
    Hope that helps!  

  • Getting duplication of records in the out put of the report on multipro..

    hai ,
          We are trying to execute a report on a multiprovder.While executing the report  we are getting duplication of records while in case if we are removing the created 'new selection' or 'new fromula' in the query designer we are not getting the duplicate records.
    Now as per our requirement we do not need duplicate records.
    Plz could any one help me out with this problem

    Hi Jvr,
    $server | ($_ -split '=')[1] -replace '}' is working.. :)
    The email doesn't have @{ = }, its only displayed in the output.
    Any help on the REGEX part?

  • Moving to current record after execute query

    Hi all,
    I have a form where i can list all db jobs which can be start or stop.
    for more details, form is having columns like jobs, current db status, action(start/stop drop down)
    The user will view list of jobs in the screen and he straightly goes to a record and start (submit) the job using drop down for that record.
    once they start/stop the job, execute query will fire to show the current status of the job.
    Now going to my requirement,after execute query, I want to go to the record (job) which user has started the job .
    Currently the cursor will go to first record.
    Is there any oracle 10g AS property where i can get current record , put it in parameter and go to that record after execute query?
    Is there any other way?
    Regards,
    Leonard

    Hello,
    If you are sure the record after query will keep the same position, you can before, store the current record in a number variable with Get_Block_Property( CURRENT_RECORD) built-in, then after query use the Go_Record() with stored number variable in parameter.
    If you think that after re-query the record number can change, you have to loop through your records, then stop navidation while you find the corresponding key.
    Francois

  • When recording a slideshow, why does audio stop recording after about 30 seconds even though slides and presentation continues?

    I'm doing everything the same and have made many successful slideshow recordings using Keynote, but since updating the Yosemite and then updating Keynote the audio just stops recording after about 30 seconds.
    The slides keep on changing and recording the video, but after 30 seconds the audio stops recording even though it seems to be registering the sound and the mic is not muted in Keynote.
    Is there some change or new setting I am not aware of that needs to be altered?
    Any advice would be helpful as I need to record a lot of presentations.
    OS X Yosemite version 10.10
    Keynote version 6.5
    MacBook Pro (Retina, 15-inch, Late 2013)
    2.6 GHz Intel Core i7
    16 GB 1600 MHz DDR3
    Intel Iris Pro 1536 MB

    I can't imagine this will work as the the application is tied into a specific computer and user ID to prevent unauthorised use of single use applications. Copying over has not worked with previous versions of Keynote.
    It worked for me. I guess it could be because we bought our Macs together and have home sharing or something. Either way, I'm running Yosemite but with Keynote 6.2.2. and not updating again until Apple do something about this bug.

  • Stopping a recording after each track

    I have an odd request...Is there any way to stop a recording after each track? Such that there are three tracks on a recording, after each track I would like the CD to stop. After it has stopped, I would like to be able to push play and move to the next track. That is, I put the CD in the player, push play, the CD plays track 1, and then stops; I push play again, and the CD begins playing track 2, and so on. I have Logic Pro and iTunes, which I have used to create the tracks and compile onto a CD. Using these can I create a CD with these parameters? Any advice would be helpful, and thanks in advance for your time.

    Yilofall wrote:
    I have an iPod Classic (I am fairly new to the medium) and when playing music the Pod goes smoothly from one song to the next but, when listening to a book (brought in from a CD copied into iTunes) it plays one track and stops.
    See below for a link on how to copy a CD into iTunes if you want an Audibook.
    I have tried checking the gap less album box (what is that for by the way) but it makes no difference.
    If you've heard of Dark Side of The Moon by Pink Floyd then it's used there when you want no break between tracks. Or any DJ mixed continuos play CD. Or some classical music. Take your pick
    Third question, can I make a book copied into iTunes an Audiobook? How?
    [How to Import Audio CD audiobooks into iTunes|http://aldoblog.com/audiobooks/itunes/importing-audio-cds>
    Thank you!
    No problem, hang around and read a few posts, there's always plenty to learn in here.
    Regards,
    Colin R.

  • How to get the table with no. of records after filter in webdynpro

    Dear Gurus,
    How to get the table with no. of records after filter in webdynpro?
    Thanks in advance.
    Sankar

    Hello Sankar,
    Please explain your requirement clearly so that we can help you easily.
    To get the table records from your context node use method get_static_attributes_table()
    data lo_nd_mynode       type ref to if_wd_context_node. 
    data lt_atrributes_table  type wd_this->elements_mynode. 
    lo_nd_mynode = wd_context->get_child_node( name = wd_this->wdctx_mynode ). 
    lo_nd_mynode->get_static_attributes_table( importing table = lt_atrributes_table ). 
    Note: You should have already defined your context node as a Dictionary Structure.
    BR,
    RAM

  • Set current record after dataset filter or sort

    How do you set the current record as the first record after a
    filter or sort? I have multiple dataset filters and sorts on the
    page and the current record always remains the first record after
    using them. Is there a way to force the current(viewed product,
    picture or whatever) to the first record after the Filter has been
    completed?

    thanks for your help,
    I was wanting the latter, "Or were you asking how to make the
    first row of the filtered data selected?" After the filter runs I
    want the current record set (to be displayed) to the first record
    in the filtered data.
    I am using the non-destructive filter method filter(), so I
    dont have to reload the data to bring the dataset back to original
    data, I can provide a reset button or set back to all records
    button.
    What I am using this for is a Home/Standard Plan Catalog. I
    want to filter our plans by square footage, number of bedrooms or
    baths, garage size, etc. so initalally it loads the complete
    catalog. the user selects the square footage range they want or any
    combination of specs and the filter works to narrow the dataset to
    the appropriate records. The filter works fine it returns the
    correct records from the dataset but after the filter I want the
    current (displayed) record to change after the filter, to the first
    record in the newly filtered data.
    Eventually we are going to have all 200 or so standard plans
    we have in the dataset and giving the user the ability to filter by
    these specs is the ultimate goal to help our customers make
    decisions. The page loads thumbnails of the exterior renderings for
    each standard plan. they click the thumbnail and it opens. With 200
    or so eventully I will have to page the results of the dataset or
    something else eventually, but I will cross that bridge when I get
    too it.
    here is my filter:
    >>>>>>>>
    function StartFilterTimerALL(){
    if (StartFilterTimerALL.timerID)
    clearTimeout(StartFilterTimerALL.timerID);
    StartFilterTimerALL.timerID = setTimeout(function() {
    StartFilterTimerALL.timerID = null; FilterDataALL(); }, 100);
    function FilterDataALL(){
    var SqFtVal = document.getElementById("sqft").value;
    if (!SqFtVal){
    dsStandards.filter(null);
    return;
    // for each value get the matching records sqftage
    if (SqFtVal == 1){
    var filterFunc = function(ds, row, rowNumber){
    var str = row["sqftage"];
    if (str < 1000)
    return row;
    return null;
    dsStandards.filter(filterFunc);
    if (SqFtVal == 2){
    var filterFunc2 = function(ds, row, rowNumber){
    var str = row["sqftage"];
    if ((str > 1000) && (str < 1501))
    return row;
    return null;
    dsStandards.filter(filterFunc2);
    if (SqFtVal == 3){
    var filterFunc3 = function(ds, row, rowNumber){
    var str = row["sqftage"];
    if ((str > 1500) && (str < 2001))
    return row;
    return null;
    dsStandards.filter(filterFunc3);
    if (SqFtVal == 4){
    var filterFunc4 = function(ds, row, rowNumber){
    var str = row["sqftage"];
    if ((str > 2000) && (str < 2501))
    return row;
    return null;
    dsStandards.filter(filterFunc4);
    if (SqFtVal == 5){
    var filterFunc5 = function(ds, row, rowNumber){
    var str = row["sqftage"];
    if ((str > 2500))
    return row;
    return null;
    dsStandards.filter(filterFunc5);
    thanks Jim

  • Keeping current record after refreshing iterator (iterator refresh)

    Greetings,
    I'm using the following code to refresh a master iterator, so that when data is saved\edited it is automatically refreshed in the user interface. I'm using BC for the model layer.
    public String commandButton_save_action() {
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding =
    bindings.getOperationBinding("Commit");
    OperationBinding operationBinding2 =
    bindings.getOperationBinding("Execute");
    System.out.println("Now @ Global bean ... going to ...");
    operationBinding.execute();
    operationBinding2.execute();
    // It should be a error page
    if (!operationBinding.getErrors().isEmpty()) {
    return null;
    // Refresh main view object
    DCBindingContainer bc =
    (DCBindingContainer)FacesContext.getCurrentInstance().getExternalContext().getRe
    questMap().get("bindings");
    FirstCareAppModuleImpl fc =
    (FirstCareAppModuleImpl)bc.findDataControl("FirstCareAppModuleDataControl").getD
    ataProvider();
    ViewObject vo_SitSocProf = fc.findViewObject("EpisodiosMain");
    vo_SitSocProf.executeQuery();
    System.out.println(" All done. Ciao ");
    return "back";
    I just want to refresh data from database and still show the current record. This is always taking me to the first record in the iterator.
    The issue is: How to show the current record after the refresh? If the above
    code is not correct, or not the most adequate, please don't hesitate and tell
    me.
    Thanks.

    You can do this as follow:
    1) In your ApplicationModule (e.g ScottAM) define function:
    public void refreshView(){
    getMainViewObject().executeQuery();
    2) Expose this function to client
    3) In your manage bean define:
    public String commandButton_save_action() {
    String dc = "#{data.ScottAMDataControl.dataProvider}";
    FacesContext ctx = FacesContext.getCurrentInstance();
    ValueBinding vb = ctx.getApplication().createValueBinding(dc);
    ScottAM am = (ScottAM)vb.getValue(ctx);
    am.refreshView()
    return null;
    Note, that this solution will set you on the first row after invoke.

Maybe you are looking for