BAdi RSR_OLAP_BADI and RSDRI_INFOPROV_READ

Hi folks,
I try to use the RSR_OLAP_BADI to compute virtual key figures. These key figures are based on a lookup in an Info Cube which I do in the COMPUTE method of the implementation class. In this method I call the function module RSDRI_INFOPROV_READ for reading data out of an Info Cube. In  some cases I get the error message
It seems that the function module has an internal state which would be overwritten through the invocation in the COMPUTE method.
Has anyone an idea how to prevent this? Or is there a better way to read from an Info Cube??
Thanks a lot for any advices!
Rgds,
Juergen

Hi,
thanks all for your quick answers. I prefer using the RFC call. I found out that I have to use RSDRI_INFOPROV_READ_RFC instead to use an RFC capable function module. This also means that I have to call RSDRI_DATA_UNWRAP to get the result in an internal table.
The structure of that internal table must be "/BIx/V 0.
         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      loop at l_t_data into wa_data.
        move-corresponding wa_data to wa_vjwerte.
--> here it it's comp S008 in production it's S019!!!
        wa_vjwerte-0MATERIAL__ZRTLOSORT = wa_data-S008_0MATERIAL.
        wa_vjwerte-0PLANT__ZRTZBART = wa_data-S005_0PLANT.
        wa_vjwerte-0PLANT__0SALES_DIST = wa_data-S009_0PLANT.
        append wa_vjwerte to m_t_vjwerte.
      endloop.
    ENDWHILE.

Similar Messages

  • SCXI-1321 Bad Chips and Function Calls

    8-4-04
    This message is intended for the PSE of the SCXI-1321 and that person�s manager. Please route it accordingly. I would appreciate a phone response to 8**-2**-2*** so that I might share some specific experiences.
    To the managers of the SCXI product line,
    I have used the SCXI-1121 with the SCXI 1321 for some time now, approximately 6 years. Our company generally uses them for full bridge pressure transducers and similar applications. I have some suggestions that would make them more saleable. I also believe that you will never know how many customers you have already lost on this product line, for the reasons given below.
    1. For many years the shunt resistor on the 1321 has been vastly unusable. What SHOULD be possible is to command the shunt resistor through a Labview command, and then read the virtual channel to see the shunted value. That IS the purpose of the feature. What happens is that once you set the shunt command, then read the virtual channel, the very act of reading the channel UN-shunts the resistor. What you read is some value part way between, because the chip relay from Clare actually ramps open and closed, unlike a mechanical relay. If your timing loop to read the value is consistent, you will consistently read a BAD value. Several VI�s tried to command the shunt, then quickly read the virtual channel, then loop and do it again, and thought they had solved the problem. Further investigation showed that all that was really happening is that the readings appeared to be stable because of the fast loop time, but were actually mid-release of the shunt for all readings.
    2. NI eventually starting saying �don�t use virtual channels with the shunt�. In fact, there is a channel string that starts with the word �shunt� that was recommended. The only problem with this is that the data that comes back is not scaled! Keep in mind that NI has been pushing �virtual channels� on users for many years as the way to do business, and so entire test stands are developed around them and MAX. Because we depend on MAX to do the scaling, how are we supposed to be able to read the data scaled? Does NI expect customers to duplicate the efforts of MAX for every virtual channel and scale it separately? Do I have to keep duplicate tracking of scaling information so that my virtual channels will work in the main code, but again elsewhere so that my calibration routine can read the data? This is messy, and for most customers, untenable.
    3. I was told, literally, year after year and release after release, that the problem would be fixed in future versions of NI-DAQ. Each release proved that the problem was not resolved. I am sure that many customers were not repeat customers as they found the problems associated with using a simple shunt on the board. I myself needed this hardware due to the 1121/1321 parallel operation capability.
    4. After years of trying to fight with the issues above, and what seemed like random problems with the shunting of channels, a second hardware related issue has finally been identified. See SRQ#600753 with Michelle Yagle. The Clare solid state relays installed on the 14 different 1321�s I bought ALL had the same defect. Imagine what this means for troubleshooting! You swap boards to try to troubleshoot, but they are all defective and so you falsely rule out the board, the problem didn�t resolve with a different board. The lot# 0027T12627 of chips covers a wide range of 1321 serial numbers (see my SRQ for details). That means this impacts a lot of potential customers. The part is rated by the manufacturer to 80C, 176F. This particular lot stops functioning as low as 96F! A great deal of testing with heat guns, shop air, and a thermocouple showed that all the chips in this lot fail somewhere between 96 and 110F, well below manufacturers specs or NI�s specs on the board. I also tested lot 98, from a board two years older, as well as new chips from lot 03, which both worked perfectly all the way up to 212F (100C).
    Conclusions:
    I believe that the people that have tried to use your 1321 have generally had a miserable time of it, unless they already do their own scaling (like some of the Alliance members do.) This is because the shunt feature is not compatible with virtual channels, because NI did not offer a reasonable fix for this problem over a four+ year period, and does NOT advertise this limitation when people are making hardware selections. Further, I believe there are many people that have boards with the same bad lot of chips on them that don�t know it. They may have elected to hardwire their own resistors after fighting with random problems (temperature related). They might have elected to hardwire their own resistors to get around the NI-DAQ limitation. They might not even use the shunt resistor. But one thing is certain: NI needs to clean up this board�s operation, make sure that customers of the serial numbers in my SRQ named above are notified of the bad chips, and fully test that the use of the relays is transparent to LV virtual channels in the future. People will not trust NI products with this type of problems, and will not buy the product again if all the features don�t work!
    I have helped NI resolve similar issues with the SCXI-1126 years ago, which had a number of scaling issues in NI-DAQ (the board read great when you used 1k, 2k, 4k, 8k, etc. even ranges, but if you set a virtual channel to 0-2200, the readings were off.) I plotted the problem, documented it with my sales rep, and worked at length with tech support. The boards also had a lot of bad buffer amplifier chips that allowed cross talk between channels, causing a lot of other spurious problems. Those experiences were horribly frustrating, but I now buy the product with confidence. It took a lot of push on my part to convince NI there was a real underlying problem. This 1321 board is similar.
    I want NI products to be the best they can be, as I have dedicated my career around them. Please take this feedback to heart, and contact me at 8**-2**-2*** to talk about these issues. Additionally, I am speaking at NI week this year and will be available for discussion. Contact me at the same number.
    Sincerely,
    Tim Jones
    Test Equipment Design Engineer
    Space Shuttle Program
    Space, Land and Sea Enterprise, Hamilton Sundstrand

    Tim
    Thank you for your feedback for the SCXI-1321 terminal block.
    I wanted to see if it would be possible for you to move your application to NI DAQmx, the new driver for DAQ and SCXI as of NI-DAQ 7.0. I have tested the shunt calibration using a SCXI-1121 and SCXI-1321 and it works as it should. There are two ways to do the shunt calibration with DAQmx.
    The first is to use the Calibration feature in the DAQ Assistant. When creating a DAQmx Task in either MAX or LabVIEW, you can select the �Device� tab and click on the Calibration button. It will then ask you if you either want to do a null or shunt calibration, or both. It will then do the calibrations selected and save the values to the task.
    The other option to measure the shunted value is to use the AI.B
    ridge.ShuntCal.Enable property node in LabVIEW. By setting this property to True, the driver will enable the shunt for the current measurements. If you are taking a strain measurement, the value will be converted to strain.
    We are currently looking into the issues you are seeing with the Clare relays to see if other users could be affected.
    Brian Lewis
    Signal Conditioning PSE
    National Instruments

  • I clicked on a bad link, and my safari stopped working,

          hi guys I clicked on a bad link, and my safari stopped working,
    when I click on safari, appears a phrase,
        (  SAFARI QUIT UNEXPECTEDLY )
      CLICK REOPEN TO OPEN THE APPLICATION AGAIN, THIS  REPORT WILL BE SENT TO APPLE AUTOMATICALLY..
    when I press the ok or reopen, the screen is frozen and Safari does not open.
         please can anyone help me please?   thanks....

    Malware or adware may be the culprit.
    If you have a backup browser installed, download and run the AdMedic adware / malware removal tool here >  AdwareMedic
    Easy and only takes a minute or two.
    If you can't download AdwareMedic, follow the instructions here >  Remove unwanted adware that displays pop-up ads and graphics on your Mac - Apple Support

  • I bought a brand new Mac 27" desktop that came loaded with Adobe CS6. Everything worked like a charm until the hard drive, 1Tb, developed a bad sector and the Apple Store reinstalled a new one as I had extended warranty with them. The recycled the drive i

    I bought a brand new Mac 27" desktop that came loaded with Adobe CS6. Everything worked like a charm until the hard drive, 1Tb, developed a bad sector and the Apple Store reinstalled a new one as I had extended warranty with them. They recycled the drive immediately (like a fool I didn't ask for it back to get the data off it.) But luckily I have all my data on CrashPlan. I downloaded it and it worked great except I downloaded it to the desktop and not the original location so it got squirrely. I also have an external 1.5Tb drive that I wanted to make bootable so I installed Mavericks 10.9.3 . I then went ahead and installed it on the newly installed drive too.
    I think that because I have a new drive Adobe thinks I have a news computer. I bought the 27" Mac brand new from Ebay and it came loaded with software, including CS6. I have a serial number for CS6 but Adobe said it wasn't valid. (I have owned CS2, CS4 and now CS6 which came preloaded onto the Mac by the seller who told me that the software was registered to the Mac???
    I am going to re-download the backup but this time to the original location (I still don't think it will work with Adobe. What can I do about this?
    iMac 27-inch, Late 2012
    Processor  3.2 GHz Intel Core i5
    Memory  32 GB 1600 MHz DDR3
    Graphics  NVIDIA GeForce GTX 675MX 1024 MB
    Software  OS X 10.9.3 (13D65)@

    You need to contact Adobe Support either by chat or via phone when you have serial number and activation issues.
    Here is a link to a page with options to help make contact:
    http://www.adobe.com/support/download-install/supportinfo/

  • Added custom screen in PO using BADI ME_GUI_PO_CUST and ME_PROCESS_PO_CUST

    Hi All,
    I have added custom screen with two z fields at item level using BADI ME_GUI_PO_CUST and ME_PROCESS_PO_CUST i can see my screen in tcodes ME21N , ME22N , ME23N but I am not able to save data.
    and also screen is coming in change mode even in ME23N .
    thanks.

    Hi,
    I have added two xfields at item level.
    This is the code i have added in zimplementation ZME_GUI_PO_CUST .
    IN Zimplementation ME_PROCESS_PO_CUST I have added code only in method FIELDSELECTION_ITEM . after doing this I can see only screens in ME21N, ME22N, ME23N but when enter data in zfields and trying to save it is giving me message no data has changed.
    method IF_EX_ME_GUI_PO_CUST~SUBSCRIBE.
    DATA: ls_subscriber LIKE LINE OF re_subscribers.
    we want to add a customer subscreen on the item detail tab
      CHECK im_application = 'PO'.
      CHECK im_element     = 'ITEM'.
    each line in re_subscribers generates a subscreen. We add one subscreen in this example
      CLEAR re_subscribers[].
    the name is a unique identifier for the subscreen and defined in this class definition
      ls_subscriber-name = subscreen1.
    the dynpro number to use
      ls_subscriber-dynpro = '0001'.
    the program where the dynpro can be found
      ls_subscriber-program = 'SAPLYMEPOBADIEX'.
    each subscreen needs his own DDIC-Structure
      ls_subscriber-struct_name = 'MEPO_BADI_STRUCT'.
    a label can be defined
      ls_subscriber-label = text-001.
    the position within the tabstrib can be defined
      ls_subscriber-position = 4.
    the height of the screen can be defined here. Currently we suport two screen sizes:
    value <= 7 a sevel line subscreen
    value > 7  a 16 line subscreen
      ls_subscriber-height = 7.
      APPEND ls_subscriber TO re_subscribers.
      ENDIF.
    method IF_EX_ME_GUI_PO_CUST~TRANSPORT_FROM_MODEL.
      DATA: l_item       TYPE REF TO if_purchase_order_item_mm,
            ls_mepoitem  TYPE mepoitem,
            ls_customer  TYPE mepo_badi_exampl.
    system asks to transport data from the business logic into the view
      CASE im_name.
        WHEN subscreen1.
    is it an item? im_model can be header or item.
          mmpur_dynamic_cast l_item im_model.
          CHECK NOT l_item IS INITIAL.
    transport standard fields
          ls_mepoitem = l_item->get_data( ).
    transport customer fields
          CALL FUNCTION 'YMEPOBADIEX_GET_DATA'
            EXPORTING
              im_ebeln = ls_mepoitem-ebeln
              im_ebelp = ls_mepoitem-ebelp
            IMPORTING
              ex_data  = ls_customer.
    store info for later use
          MOVE-CORRESPONDING ls_mepoitem TO dynp_data_pbo.
          MOVE ls_customer-badi_bsgru TO dynp_data_pbo-badi_bsgru.
          MOVE ls_customer-badi_afnam TO dynp_data_pbo-badi_afnam.
        WHEN OTHERS.
      ENDCASE.
    endif.
    method IF_EX_ME_GUI_PO_CUST~TRANSPORT_TO_DYNP.
      CASE im_name.
        WHEN subscreen1.
          CALL FUNCTION 'YMEPOBADIEX_PUSH'
            EXPORTING
              im_dynp_data = dynp_data_pbo.
        WHEN OTHERS.
      ENDCASE.
    ENDIF.
    endmethod.
    method IF_EX_ME_GUI_PO_CUST~TRANSPORT_FROM_DYNP.
      CASE im_name.
        WHEN subscreen1.
          CALL FUNCTION 'YMEPOBADIEX_POP'
            IMPORTING
              ex_dynp_data = dynp_data_pai.
          IF dynp_data_pai NE dynp_data_pbo.
    something has changed therefor we have to notify the framework
    to transport data to the model
            re_changed = mmpur_yes.
          ENDIF.
        WHEN OTHERS.
      ENDCASE.
    ENDIF.
    endmethod.
    method IF_EX_ME_GUI_PO_CUST~TRANSPORT_TO_MODEL.
    DATA: l_item       TYPE REF TO if_purchase_order_item_mm,
            ls_mepoitem  TYPE mepoitem,
            ls_customer  TYPE mepo_badi_exampl.
    data have to be transported to business logic
      CASE im_name.
        WHEN subscreen1.
    is it an item? im_model can be header or item.
          mmpur_dynamic_cast l_item im_model.
          CHECK NOT l_item IS INITIAL.
          ls_mepoitem = l_item->get_data( ).
    standard fields changed?
         IF dynp_data_pbo-matkl NE dynp_data_pai-matkl OR
            dynp_data_pbo-plifz NE dynp_data_pai-plifz OR
            dynp_data_pbo-webaz NE dynp_data_pai-webaz.
    update standard fields
           ls_mepoitem-matkl = dynp_data_pai-matkl.
           ls_mepoitem-plifz = dynp_data_pai-plifz.
           ls_mepoitem-webaz = dynp_data_pai-webaz.
            CALL METHOD l_item->set_data( ls_mepoitem ).
         ENDIF.
            CALL FUNCTION 'YMEPOBADIEX_GET_DATA'
              EXPORTING
                im_ebeln = ls_mepoitem-ebeln
                im_ebelp = ls_mepoitem-ebelp
              IMPORTING
                ex_data  = ls_customer.
            ls_customer-badi_bsgru = dynp_data_pai-badi_bsgru.
            ls_customer-badi_afnam = dynp_data_pai-badi_afnam.
            CALL FUNCTION 'YMEPOBADIEX_SET_DATA'
              EXPORTING
                im_data = ls_customer.
         ENDIF.
        WHEN OTHERS.
      ENDCASE.
    ENDIF.
    method IF_EX_ME_PROCESS_PO_CUST~FIELDSELECTION_ITEM.
    DATA: l_persistent TYPE mmpur_bool.
    CONSTANTS:
    FIELD-SYMBOLS: <fs> LIKE LINE OF ch_fieldselection.
    l_persistent = im_item->is_persistent( ).
    *IF l_persistent EQ mmpur_yes.
    READ TABLE ch_fieldselection ASSIGNING <fs> WITH TABLE KEY
                         metafield = MMMFD_YYMAN_NUM."fd_cust_01.
    IF sy-subrc IS INITIAL.
    <fs>-fieldstatus = '*'. " Display <-- this one was as per the sample code given.
    <fs>-fieldstatus = '+'. " Input <-- this i added to make the field mandatory.
    ENDIF.
    READ TABLE ch_fieldselection ASSIGNING <fs> WITH TABLE KEY
                         metafield = MMMFD_YYMAN_DES."fd_cust_01.
    IF sy-subrc IS INITIAL.
    <fs>-fieldstatus = '*'. " Display <-- this one was as per the sample code given.
    <fs>-fieldstatus = '+'. " Input <-- this i added to make the field mandatory.
    ENDIF.
    *ENDIF.
    ENDIF.
    endmethod.

  • Badi ME_GUI_PO_CUST and ME_PROCESS_PO_CUST

    Dear All,
    I am implementing a customer subscreen in the PO header. I have created the screen, implemented both Badi's int following way.
    Somehow, the customer data is not getting saved. It is not being passed into the Badi's, am not sur what I have missed because I have implemeted it exactly like the example implementation, only the example is for item and I am using a PO Header subscreen. This is what I have done, please suggest.
    First in ME_GUI_PO_CUST
    Methods :-
    METHOD if_ex_me_gui_po_cust~subscribe .
      ls_subscriber-name = subscreen1.
      ls_subscriber-dynpro = lc_dynpro.
      ls_subscriber-program =  lc_repid.
      ls_subscriber-struct_name = lc_struc.
      ls_subscriber-label = text-001.
      ls_subscriber-position = 10.
      ls_subscriber-height = 7.
      APPEND ls_subscriber TO re_subscribers.
    ENDMETHOD.
    METHOD if_ex_me_gui_po_cust~map_dynpro_fields .
      FIELD-SYMBOLS: <mapping> LIKE LINE OF ch_mapping.
      LOOP AT ch_mapping ASSIGNING <mapping>.
        CASE <mapping>-fieldname.
          WHEN 'ZZDEPT'.
            <mapping>-metafield = mmmfd_cust_01.
        ENDCASE.
      ENDLOOP.
    ENDMETHOD.
    METHOD if_ex_me_gui_po_cust~transport_from_model .
      DATA: l_header       TYPE REF TO if_purchase_order_mm,
            ls_mepoheader  TYPE mepoheader,
            ls_customer  TYPE ci_ekkodb.
      CASE im_name.
        WHEN subscreen1.
          mmpur_dynamic_cast l_header im_model.
          CHECK NOT l_header IS INITIAL.
          ls_mepoheader = l_header->get_data( ).
          MOVE ls_mepoheader-zzdept TO dynp_data_pbo-zzdept.
          MOVE gs_data-zzdept TO dynp_data_pbo-zzdept.
        WHEN OTHERS.
      ENDCASE.
    ENDMETHOD.
    METHOD if_ex_me_gui_po_cust~transport_to_dynp .
      CASE im_name.
        WHEN subscreen1.
          CALL FUNCTION 'ZF00MM_POHEADER_PUSH'
            EXPORTING
              im_dynp_data = dynp_data_pbo.
        WHEN OTHERS.
      ENDCASE.
    ENDMETHOD.
    METHOD if_ex_me_gui_po_cust~transport_from_dynp .
      CASE im_name.
        WHEN subscreen1.
          CALL FUNCTION 'ZF00MM_POHEADER_POP'
            IMPORTING
              ex_dynp_data = dynp_data_pai.
          IF dynp_data_pai NE dynp_data_pbo.
            re_changed = mmpur_yes.
          ENDIF.
        WHEN OTHERS.
      ENDCASE.
    ENDMETHOD.
    METHOD if_ex_me_gui_po_cust~transport_to_model .
      DATA: lv_header       TYPE REF TO if_purchase_order_mm,
            lw_ekkodb       TYPE mepoheader.
      CASE im_name.
        WHEN subscreen1.
          mmpur_dynamic_cast lv_header im_model.
          CHECK NOT lv_header IS INITIAL.
          lw_ekkodb = lv_header->get_data( ).
          IF dynp_data_pbo-zzdept NE dynp_data_pai-zzdept.
            MOVE dynp_data_pai-zzdept TO lw_ekkodb-zzdept.
            gs_data-zzdept = lw_ekkodb-zzdept.
          ENDIF.
          lv_header->set_data( lw_ekkodb ).
      ENDCASE.
    ENDMETHOD.
    ME_PROCESS_PO_CUST
    Set the field status in method IF_EX_ME_PROCESS_PO_CUST~FIELDSELECTION_HEADER
    METHOD if_ex_me_process_po_cust~open .
      DATA: ls_mepoheader TYPE mepoheader.
      CHECK im_trtyp EQ 'V' OR im_trtyp EQ 'A'.
      ls_mepoheader = im_header->get_data( ).
      SELECT SINGLE zzdept FROM ekko INTO gs_data_old-zzdept
                          WHERE ebeln = ls_mepoheader-zzdept.
      gs_data = gs_data_old.
    ENDMETHOD.
    METHOD if_ex_me_process_po_cust~post .
      DATA: ls_mepoheader  TYPE mepoheader.
      ls_mepoheader = im_header->get_data( ).
      ls_mepoheader-zzdept = gs_data-zzdept.
    ENDMETHOD.
    Can somebody please suggest what is going wrong ? All the methods are being called but the field ZZDEPT is not being transferred into the BADI structures and hence is not saved/changed or displayed.
    Appreciate your help.
    Thanks in advance.
    Edited by: SAP ABAPer on Jan 25, 2010 4:55 PM

    Tried very hard to improve the formatting of the post, but it doesn't seem to work for me !!

  • When in group chat, skype has bad connection and games lag

    Okay so I have searched almost every related post and cant find this exact issue and ive tried all the standard stuff to fix internet issuesWhat happens is So I moved to a new house and had no internet for 2 weeks starts may 20th about, and we got internet around june 5th. Ever since then when I join a group call with my 5 local friends Ive been in a group call with for 4 years i have bad connection and when i play online games it lags. It use to affect my internet browser, google chrome by making stuff stop loading but that isnt the case anymore. I have tried many things. Like recently I join skype group call and it seems to be fine but once i join their terraria server both skype lags and terraria and I end up losing connection. I have a theory but there still a lot of variables. Whenever my one friend is in the group call i lag a lot more than I usually do, but not everytime, and sometimes i still lag when hes not in the call. Its also him hosting the terraria server where its really bad. It has been like this for other games too though and I have tried many solutions. I feel like maybe its a bandwith thing but i get over 100 mbs download speed and around 15 mps upload speed and low ping. I can also download 2 games and play a online game with 0 problems but once skype is involved it becomes terrible.I really would like a fix, I have used skype forever and I dont think my friends really wanna use anything else.I got windows 10 about a week ago, the beta, but it did it on windows 7 too.I have also tried downloading older skypes but it keeps downloading the newer one automatically even with automatic updates off.Also when I lag on skype the little refreshing/connecting icons comes up and I lag to my friends, but I never hear them lag.

    If you are swapping out operating systems and nothing is changing then the variables you need to look into are: 1,  Your wired/wireless connection.  Try wired if going wireless as you may have issues sustaining a good connection with the myriad of ports Skype uses.  This can be due to distance, interference or other factors. 2,  Try bypassing your router and go directly connected to your modem (if possible).  Issues with the router firmware, its configuration or the limitations of the  router itself could be causing bandwidth related issue.  Going wired to the modem would be ideal.  3. You can try disabling/enabling uPnP in your router to see if that makes a difference.  Some routers handle uPnP well, others have performance issues with it.  4  Cable modem/Line issues -  You could have stability issues due to the quality of the modem based off standard/tier.  You could have line conditions that affect upload/download stability or both, under load. I've had issues with Skype that were related to my wireless router firmware.  I've also had to swap out my modem to a more compatible and higher tier one (twice) when my ISP performed infrastructure changes.

  • What causes ad-hoc to run with bad plan and its resolution

    One of our Company Application funcnalities uses the ad-hoc query that returns top first row from the result sets .There has been several times since this ad-hoc query ran with a bad
    execution in last 8 months .There is no specifice time and date or day when this query run with bad execution plan ,however whenever this query ran with a bad execution plan on SQL ,that happed always early in the morning , before 6am .The setting of database
    parameterization is set to forced .There is SQL maintenance reindexing job that runs each night at 2am that changes the recovedry model of our production database from Full to simple and changing back from simple to full after the reindexing operation .That
    causes the SQL plans to flush each night .The next day morning , when the application ad-hoc query runs on SQL first time , SQL generates a new plan for that query . Some strange reason , SQL genarates a good plan for that ad-hoc query most of the times ,but
    sometime this query picks up a bad plan .Whenever it happen,the application function becomes exetremly slow and it seems that the rest of the fuctionalities work fine meantime .
    Our application vender is aware of this issue and this issue will be fixed in the application next release .Developer is converting the ad-hoc query into stored procedure to fix this
    issue .Application new relase will not available for next 2-3 months ,meantime we still have to deal with the ad-hoc query bad execution plan issue . Usually ,when the ad-hoc query run with the bad execution plan , I retrieve the query bad plan and just remove
    the plan for that particular query from cache .Once the bad plan is removed from cache , the perfomance gets back to normal .
    As my understanding, this issue is related to parameter sniffing .but anyone thinks there are other factors responsible for this issue such as the network problem , the resource intensive
    report ran or something else .
    Has anyone have step by step troubleshooting steps that could help me with my investigation and what areas
     do I need to look into in order to investigate what could caused the ad-hoc query to pick up bad plan ?
    Any help will be apprecited .
    Daizy

    When we upgraded our Production Database to SQL server 2008R2 enterprise Edition. We ran into the transaction log file to grow too large during the reindexing job activities at night .To prevent the transaction log file to grow big , we had decided to change
    the recovery model of database from FULL to Simple before the reindexing job starts and the recovery model of Database is changed from Simple to Full after the reindexing job finishes . We also have the differential backup job setup right after the recovery
    model change back to full so the transaction log backup chain does not break.
    The transaction log chain breaks when you set the recovery to simple.
    Yes, if you take a diff backup, you can apply transaction logs from that point
    if the diff backup is good. If the diff backup is bad, you will lose all updates after you set recovery to simple. And, yes, when you hardware starts to deteoriate, you should not be surprise that the last backup is not good.
    Again, please stop setting recovery to simple, unless you have a very relaxed RPO in your SLA. Use bulk-logged recovery instead.
    By the way, you do take a t-log backup before you change the recovery mode, don't you?
     Changing the database recovery model does flush the SQL plans for specific Database. Please review this linkhttp://sqlblogcasts.com/blogs/steveh/archive/2010/09/02/changing-recovery-model-removes-plans-from-procedure-cache-for-a-database.aspx
    Hmmm. I don't have the time to verify this right now. Anyway, reindexing is good enough to flush the cache of most plans.
    I have pretty much all required info regarding this query , but what other areas or investigation do I need to do for the query parameter sniffing issue ?
    Have you researched what values the initial plan is sniffed for?
    As Erland said  adding space in query ,I don?t know adding space means just add additional space in the query so it hashes a different values .Please advice .
    Obviously, you need access to the application code. The other alternative is to set up an early morning job that runs after this first execution and which forces a recompilation; either by evicting this specific plan or more brutally runs sp_recompile on
    one of the tables in the query.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Screen with the error "S.M.A.R.T. Status BAD, Backup and Replace" Press F1 to Resum - Q180

    Hello!
    always at start up i have a screen with the error "S.M.A.R.T. Status BAD, Backup and Replace" Press F1 to Resum - Q180
    did anyone know how to solve
    i have changed the batterie to but no sucess
    thx
    Peter
    Solved!
    Go to Solution.

    smart is telling you that your hdd is failing it may still work but for how long who knows
    http://en.wikipedia.org/wiki/S.M.A.R.T.
    Thx dave
    yoga 2, lenovo b540
    3 custom gaming pc systems

  • Can we use Badi BBP_SOURCING_BADI and BBP_DETERMINE_LOGSYS at the same time

    Hi everyone,
    We need you help. We are working in SRM 7 and ECC 6 EhP 4. We have a doubt. Can we use badis BBP_SOURCING_BADI and BBP_DETERMINE_LOGSYS at the same time in a classic scenario?
    We want to create the contract in ECC, and then we want to return the SC in SoCo in order to create the PO with the SC and the contract.
    We activate both, but the SC is not returned in SoCo.
    Thanks,
    Ivá

    Hi Ivan
    You can use both badi to change srm standard behavior.
    but one shopping cart item and it can have only one follow on document either Contract or Purchase order.
    i presumed that you want to use same sc for two purposes to create both SC and PO but it is not possible.
    for example
    shopping cart item has follow on document created  as a contract But you need to create a another shopping cart to create a Purchase order  w.r.t that contract .
    Once follow on documents are created sourcing flag will be removed .- rule
    BBP_SOURCING_BADI - you can write your custom logic and make way to cockpit .
    BBP_DETERMINE_LOGSYS - Determine your logical system.
    Muthuraman

  • Copying files - how to skip bad files and continuing to copy?

    I recovered some files off a dieing HDD (approximately 600GB worth). These are sitting on a good condition and fully functioning external HDD. I am trying to copy these files from this external HDD to another external HDD. It appears that some of the files that were recovered are actually corrupt as when copying and pasting, it gets to around the 120GB mark before I received the following error:
    "The Finder can't complete the operation becauise some data in [files name] can't be read or written.
    (Error code -36)"
    When attemping the Ditto command in terminal, at the same point, I get the following error in Terminal:
    "Volume/[drive name]/[folder name]/[file name]: Input/output error"
    Due to the number of files (in the 100's of thousands I believe) I do not want to start trying to copy and paste individual files and folders.
    Does anyone know of a program that will skip the bad files and continue to copy? Microsoft Windows does this natively, but as my HDD are in Mac OS X format, that doesn't help. Surely there is some App or program that can perform this function?

    I recovered some files off a dieing HDD (approximately 600GB worth). These are sitting on a good condition and fully functioning external HDD. I am trying to copy these files from this external HDD to another external HDD. It appears that some of the files that were recovered are actually corrupt as when copying and pasting, it gets to around the 120GB mark before I received the following error:
    "The Finder can't complete the operation becauise some data in [files name] can't be read or written.
    (Error code -36)"
    When attemping the Ditto command in terminal, at the same point, I get the following error in Terminal:
    "Volume/[drive name]/[folder name]/[file name]: Input/output error"
    Due to the number of files (in the 100's of thousands I believe) I do not want to start trying to copy and paste individual files and folders.
    Does anyone know of a program that will skip the bad files and continue to copy? Microsoft Windows does this natively, but as my HDD are in Mac OS X format, that doesn't help. Surely there is some App or program that can perform this function?

  • Can a BAdI (RSR_OLAP_BADI) be implemented in BI 7.0?

    Hi,
    I have seen some examples of implementing BAdI in BW 3.5 for creating virtual key figures in InfoCube, ODS etc.
    Can a BAdI (RSR_OLAP_BADI) be implemented for virtual key figures in BI 7.0 also (InfoCube & ODS)?
    Thank you,
    Sekhar

    no, i think  we cannot impliment for that particular RSR_OLAP_BADI badi because of this version change

  • How do I report a bad app and get my money back

    How do I report a bad app and get my money back

    http://www.apple.com/support/itunes/contact/

  • Developing custom IDOC , USER Exit , BADI , BAPI and RFC

    Hi,
    I want basic information on developing custom IDOC , USER exit , BADI ,BAPI and RFC.
    Thanks in advance

    Neha,
    >custom IDOC ,
    http://www.geocities.com/xplosion78/customised_ALE_IDOC_BY_SACHIN_DABHADE.zip
    >USER exit
    USER EXIT
    > BADI
    BADI Development Contents
    > BAPI and RFC
    Re: BAPI Development
    Cheers
    Agasthuri Doss

  • HT201210 I was watching tv... apple tv asked me to upgrade.. I did as asked.. it "bricked" the device... I contacted support... they said various forms of "too bad".. and wow "3 years old"!... they then said I MUST upgrade itunes to fix... of course .....

    I was watching tv... apple tv asked me to upgrade.. I did as asked.. it "bricked" the device... I contacted support... they said various forms of "too bad".. and wow "3 years old"!... they then said I MUST upgrade itunes to fix... of course .....
    They say my problem... I say apple's problem... company is in the gutter...
    advise to all.... NEVER upgrade an apple product.
    anyone need a brick? 928 899-8531   marc

    [email protected]

Maybe you are looking for

  • Family sharing if you don't want to constantly update your devices and make your apple products redundant

    Hi everyone, My kids have taken over our older Apple devices - i.e. iPhone and iPad - and have currently got our old stuff, apps, emails etc on their devices. I want to start these devices on a fresh start - although they've got a selected few apps t

  • "Could not find the main class" when running a jar

    Hi, I'm trying to create and run a jar from my application, but I can't figure out how to properly set an entry-point. Looking at the Java Tutorials http://java.sun.com/docs/books/tutorial/deployment/jar/index.html I still can't get it to work. I hav

  • Oracle.apps.fnd.framework.OAException: oracle.jbo.NameClashException

    Hi All, The solution I am trying to implement is --> depending on value of a particular variable (field) I want to use a Custom VO for LOV query else it will use the seeded VO. So for that I have extended the "LovReassignToAM" to add new custom VO. I

  • Table entries only with capital letters

    Hi I have created a table with some entries.One of these is type char length 65.My problem appears when i try to add entries to my table in this field,it will automatically transform them in capital letters.Even if i write with small letters,when sav

  • How to print from webdynpro client

    Hi Mobile friends, I have a big problem, I don't know how to print a webdynpro screen from the mobile client. I'm developing webdynpro laptop applications for offline scenarios with Mobile 7.1. Can anyboy help me with this issue? Regards, David Faust