Rac statspack - kindly help rac experts

Hi,
Ratio of local vs remote work: 770.6
what's the above supposed to mean? seems like a high value.
should we tune it?
kindly help.
thanks!

Looking at the source code for sprepins.sql for a 9.2 instance I have here, the figure seems to be derived as:
(global cache gets + global cache converts) / (global cache CR received + global cache CU received).
This means it is comparing the number of lock requests made with the number of blocks moved across the interconnect (the first two stats are about activity in the global resource directory, the last two about the activity in the cache). So the higher this number, the more global locks you are acquring/converting for work on blocks that are in the local cache.
As with all ratios, the underlying absolute values for the period are more important.
Regards
Jonathan Lewis
http://jonathanlewis.wordpress.com
http://www.jlcomp.demon.co.uk

Similar Messages

  • GURUS-----How can any one proof he is a RAC expert

    Hi,
    In my recent interview with one of the top company they asked me "ARE YOU A RAC EXPERT" person who interviewd me was claiming he is an RAC expert.
    How can I proof that I am a RAC expert.
    If I know RAC installation on AIX/HP-UX/SUN and have good knowledge of RAC archicuture.
    There is no certification for RAC also.
    Thanks in advance.
    Regards
    MMU

    First, I never proclaim myself an expert in anything. I always respond that while I may know a lot about a particular subject, it is up to others to label someone an expert or not. Then I state that while I may know a lot, there's always new technology to learn.
    I think too many people self-proclaim themselves to be experts, when in reality, they are either more on the advanced or intermediate level. Proclaiming yourself an expert means you think you know all there is to know, and if you then answer a question incorrectly (or don't know an answer), you've suddenly disqualified yourself.

  • How to send HTML email using alert framework? Kindly help!

    Hi Experts,
          I am using alert framework (alert category) to send email. In the email message I want to use HTML content along with some hyperlinks.
         How can I do this?
         kindly help!
    Thanks
    Gopal
    Message was edited by:
            gopalkrishna baliga

    Hi,
    To send hyper links, you can add the links in the FollowUp Activity.
    The content of the mail from the alert framework will be a text mail.
    One option would be to check in your SCOT settings if it would be possible to set the Content Type as TEXT/HTML . If yes, then maybe this should be possible.
    Regards
    Bhavesh

  • Problem with select range for a character type field. Kindly Help! Urgent!

    Hi Experts,
        I have to write a report to pull data from a table BUT000 for a selected range of  BPEXT field values in selection screen.
        In the table BUT000, the BPEXT field is type char. Now what is happening is that if the user gives a range in selection screen from 1000 to 1010 the query pulls all the records where teh forst character starts from 1.
    For example if the table has
        BPEXT
        1
        10
        100
        101
        1000
        1001
        1002
        1005
        1010
        20
        200
        2000
    Then my query pulls
       BPEXT
        101
        1000
        1001
        1002
        1005
        1010
       Instead it should pull only
       BPEXT
        1000
        1001
        1002
        1005
        1010
        My guess this is because the BPEXT field is of CHAR type instead of numeric.
        What shall i do to solve this problem? Kindly help please!   
    Thanks
    Gopal
    Message was edited by:
            gopalkrishna baliga

    Hi Chakradhar,
        How to find the conversion exit for BPEXT field?
        How to use the conversion exit in a select query in my ABAP report? Any sample code will be really helpfull.
       Please help!
    Thanks
    Gopal

  • How to test system down in XI? Kindly help!

    Hi Experts,
        I have a JMS -> XI ->SAP R/3 scenario.
        If the remote SAP R/3 is down then I have to trigger an alert.
        In the runtime workbench, i have configured the alert in Alert Configuration.
        In this I have given the alert category, receiver service, interface and namespace.
        How do I test the system down scenario without actually making the system down?
    I have tried to test it via runtime workbench test tool and stopping the receiver communication channel. But SXMB_MONI shows the message successfully processed.
       Why the XI message is not in error?
       How do I actually test this scenario?
       Kindly help me!
    Thanks
    Gopal

    > 1. The report RSARFCEX to restart this message from
    > SM58.
    Correct.
    > 2. Executing report RSQIWKEX restarts errored msg in
    > SXMB_MONI.
    It restarts the error messge from the Queue in SM58. If the message is deleivered successfully from Sm58, the message in MONI gets updated. It does not restart the message from MONI.
    > 3. Msgs are processed in tRFC queues only in IDOC
    > scenarios.
    Ths blog has answers ,
    /people/sap.india5/blog/2006/01/03/xi-asynchronous-message-processing-understanding-xi-queues-part-i
    <i>Further in asynchronous communication, the calls can be executed either by tRFC (Transactional RFC) or qRFC (Queue RFC). In tRFC, RFC calls are stored in database along with corresponding data under a unique transaction id (TID). However in tRFC, LUW (Logical Unit of Work) are executed independently of each other and the sequence specified by sending application is not maintained. And this particular requirement leads to qRFC communication wherein all LUWs are processed in the same sequence as determined by sending application.</i>
    Not only Idoc's used by other Interfaces as well.
    Regards
    Bhavesh

  • How to map one element to multiple target nodes? Kindly help!

    Hi Experts,
       I have a source XML:
       <Inventory>
             <MaterialNo>Z001</MaterialNo>
             <InventoryLineItem>
               <BatchNo>B001</BatchNo>
               <Quantity>100</Quantity>
             </InventoryLineItem>
             <InventoryLineItem>
               <BatchNo>B002</BatchNo>
               <Quantity>120</Quantity>
             </InventoryLineItem>
             <InventoryLineItem>
               <BatchNo>B003</BatchNo>
               <Quantity>50</Quantity>
             </InventoryLineItem>
       </Inventory>
    I want the target output as: This is a RFC function module which has an internal table ITAB_STOCK as the input parameter.
       YGET_STOCK
           ITAB_STOCK
             Item
                 MM - Z001
                 Batch - B001
                 Qty - 100
             Item
                 MM - Z001
                 Batch - B002
                 Qty - 120
             Item
                 MM - Z001
                 Batch - B003
                 Qty - 50
       What I am getting is:
            YGET_STOCK
           ITAB_STOCK
             Item
                 MM - Z001
                 Batch - B001
                 Qty - 100
             Item
                 Batch - B002
                 Qty - 120
             Item
                 Batch - B003
                 Qty - 50
          The MaterialNo (MM) is not coming in all the items. What could be the problem in my graphical mapping? How to achieve the expected target uisng graphical mapping?
          Kindly help!
    Thanks
    Gopal

    Hello,
      Just do the below mapping you will get it...
    Map InventoryLineItem to Item in your table.
    Then MaterialNo--->CopyValue---->MM
                                       [0]
    You will get it let me know if not.
    Regards,

  • How to filter data in message mapping?Kindly help! URGENT

    Hi Experts,
    I have a source XML as shown below:
    <Inventory>
    <InventoryItem>
    <InventoryQty>
    <MaterialNo>X001</MaterialNo>
    <ItemCode>InTransit</ItemCode>
    <Quantity>1000</Quantity>
    </InventoryQty>
    <InventoryQty>
    <ItemCode>Available</ItemCode>
    <Quantity>1500</Quantity>
    </InventoryQty>
    <InventoryQty>
    <ItemCode>UnRestricted</ItemCode>
    <Quantity>1250</Quantity>
    </InventoryQty>
    </InventoryItem>
    <InventoryItem>
    <InventoryQty>
    <MaterialNo>X002</MaterialNo>
    <ItemCode>InTransit</ItemCode>
    <Quantity>1500</Quantity>
    </InventoryQty>
    <InventoryQty>
    <ItemCode>Available</ItemCode>
    <Quantity>1600</Quantity>
    </InventoryQty>
    <InventoryQty>
    <ItemCode>UnRestricted</ItemCode>
    <Quantity>1200</Quantity>
    </InventoryQty>
    </InventoryItem>
    </Inventory>
    My Target XML is mapped to a RFC Fnction module (YGET_STOCK). The target function module has a internal table (ITAB_STOCK) as input:
    YGET_STOCK
    ITAB_STOCK
    item
               - <Material>X001</Material>
               - <AvailableStock>1500</AvailableStock>
               - <IntransitStock>1000</IntransitStock>
    item
               - <Material>X002</Material>
               - <AvailableStock>1600</AvailableStock>
               - <IntransitStock>1500</IntransitStock>
    </Inventory>
    So how to get the desired target XML using graphical XI mapping?
    I have tried using graphical mapping and I am getting the following:
    YGET_STOCK
    ITAB_STOCK
    item
               - <Material>X001</Material>
               - <IntransitStock>1000</IntransitStock>
               - <AvailableStock></AvailableStock>
    item
               - <Material>X001</Material>
               - <IntransitStock></IntransitStock>
               - <AvailableStock>1500</AvailableStock>
    </Inventory>
    As shown it is reading only the first <InventoryItem> and splitting the Available and InTransit quantity into two separate items of the internal tables instead of putting them into one item.
    Kindly help me! URGENT!
    Thanks
    Gopal
    Message was edited by:
            gopalkrishna baliga
    Message was edited by:
            gopalkrishna baliga
    Message was edited by:
            gopalkrishna baliga
    Message was edited by:
            gopalkrishna baliga
    Message was edited by:
            gopalkrishna baliga

    what is ur mapping def...did u map <InventoryItem> to -
    item in rfc?

  • How does RFC adapter with EO/EOIO work? Kindly help!

    Hi Experts,
            How does a sender or receiver RFC adapter works when QOS is EO or EOIO (Async)? In other words, for EOIO, are the messages are queued? How does this queueing work? Does it use FIFO logic? where do we specify the max limit of messages that can be queued?
    Also what is the significance of 'Initial connection' and 'maximum connections' in communication channel? I have given the default value 1 for both. What should be the ideal value and why?
    In my Async RFC - XI scenario sometimes XI is able to receive the messages but sometimes it doesnot even though the sender system is UP and running.
    I cannot see any messages in SXMB_MONI even though the sender has sent the messade.
    Why RFC adapter is behaving like this? What could be the issue?
    Kindly help!

    EOIO: How does this queueing work? Does it use FIFO logic?
    >> yes it uses FIFO logic in EOIO.
    Also what is the significance of 'Initial connection' and 'maximum connections' in communication channel? I have given the default value 1 for both. What should be the ideal value and why?
    >>>noof rfc connections we are using for connecting to XI to RFC minmum is 1 maximum is 50 bydefault. you increase this value by changing the default setting.
    How does RFC adapter with EO/EOIO work? Kindly help!
    Posted: Mar 21, 2007 4:15 AM 
    Hi Experts,
    How does a sender or receiver RFC adapter works when QOS is EO or EOIO (Async)? In other words, for EOIO, are the messages are queued? How does this queueing work? Does it use FIFO logic? where do we specify the max limit of messages that can be queued?
    Also what is the significance of 'Initial connection' and 'maximum connections' in communication channel? I have given the default value 1 for both. What should be the ideal value and why?
    Why RFC adapter is behaving like this? What could be the issue?
    >>check ur sender RFC adapter. chekc whether data is sent from RFC . see logs in R/3.

  • How to change the order of target message? kindly help

    Hi Experts,
              I have a source message with fields EmpNo, EmpName, Dept and joining date. The target message has the same structure but fields are in different order. That is, EmpName, Dept, EmpNo and joiningdate.
    How to achive the target message with message mapping and without using a different message type for target?
    Kindly help
    Thanks
    Gopal

    Hi Gopal,
    Try this one.
    1. Create Only one message type of target type.
    2. Go to XSD tab and export the "XSD" of the message type.
    3. Change the <xsd:sequence> element to <xsd:all>
    4. Then import the "xsd" in external definitions.
    5. Use the imported "xsd" and create Message mapping. Give both source and target the same message type from XSD.
    6. just Map one to one.
    Now you can get ur required target structure. Since it is <xsd:all> it will accept ur input file.
    Regards,
    P.Venkat

  • Word for mac is failing and always asking me to format another disc..kindly help me

    Hello there, i'm using macbook pro bought in late 2011. I;m using word for mac and recently the programme kep on crashing and i was not able to autosave my work. ive tried varifying my disc and it still not working. Can i remove and reinstall my mac office. Would it effect my office document that is already saved in my notebook.
    Kindly help me..

    Which version of Office are you running? If you want to remove and reinstall, follow the remval instructions here - http://support.microsoft.com/kb/2398768?wa=wsignin1.0. Although I expect removing Office isn't going to fix your problem... which version of Office 2011 are you running? There was an update earlier this week for version 14.2.5 - are you sure that you're running the latest version?
    I would first make certain that you're running the latest version before you do something as drastic as uninstalling and reinstalling. You might want to take your problem to the Word for Mac user forum - here. Let the community know the problems that you're having and see if there are any solutions that the Word experts may have before doing an uninstall and reinstall.
    Good luck,
    Clinton

  • How to monitor XI scenarios? Kindly help!

    Hi Experts,
          I have two scenarios:
          1. (.Net application)webservice - XI - RFC(SAP R/3)
          2. (TIBCO)JMS - XI - RFC(SAP R/3)
           How do I monitor if SAP R/3 is down? I need to trigger an email alert.
           How do I monitor if .Net application is down? I need to trigger an email alert.
           How do I monitor if TIBCO is down? I need to trigger an email alert.
           How do I monitor if XI itself is down? I need to trigger an email alert.
          Kindly help!
    Thanks
    Gopal

    <b>How do I monitor if SAP R/3 is down? I need to trigger an email alert.</b>
    If data is send to R3 and if the system is donw then thru alert config u will be able to montior it. if r3 is down u can find some BASIS components that will do this job. for this u need to check with ur basis team
    <b>How do I monitor if XI itself is down? I need to trigger an email alert.</b>
    check for the basis components that mails the admin abt the system failure.
    <b>How do I monitor if .Net application is down? I need to trigger an email alert.
    How do I monitor if TIBCO is down? I need to trigger an email alert.</b>
    if data is pulled by xi adapts then configuration of alerts will just do. for any adapts that is based on polling method mail can be send by configuration of alerts. for trigger event methods like http and proxy (sender) then we need to check for other workarounds....remember bhavesh commenting on alerts for intimating r3/xi failure without any workarounds but dont have the link now

  • Barcode Printing from EP --using barcode4J (Gurus kindly help me)

    Dear Experts,
    Barcode Printing from EP --using barcode4J
    we want to print employee number as barcode in EP(version 6.4 SP 19).
    we tested the barcode creation a standalone class, it works fine
    Sample Code as follows
    ================================
    Code128Bean bean = new Code128Bean();
                 final int dpi = 150;
                 //Configure the barcode generator
                 bean.setModuleWidth(UnitConv.in2mm(1.0f / dpi)); //makes the narrow bar
                                                                               //width exactly one pixel
                 bean.setWideFactor(3);
                 bean.doQuietZone(false);
                 //Open output file
                 File outputFile = new File("out.jpg");
                 OutputStream out = new FileOutputStream(outputFile);
                 try {
                      //Set up the canvas provider for monochrome JPEG output
                      BitmapCanvasProvider canvas = new BitmapCanvasProvider(
                                out, "image/jpeg", dpi, BufferedImage.TYPE_BYTE_INDEXED, false);
                   //BarcodeServlet.            
                      //Generate the barcode
                      bean.generateBarcode(canvas, "Z454544");
                      //Signal end of generation
                      canvas.finish();
                 } finally {
                      out.close();
    <b>But the same code i put in wdDoModifyView() or wdDoInit() it throws class not found exception</b>. I have checked that barcode4j.jar and all relevant files are in classpath.
    Any help will be rewarded.
    Thanks
    Aby.

    Re: Barcode Printing from EP --using barcode4J (Gurus kindly help me)  
    Posted: Aug 24, 2007 5:21 AM    in response to: Ashutosh Moharir         Reply      E-mail this post 
    Dear Ashutosh,
    <b> It is working now!     ....  :-D  
    Can someone  provide me with a more detailed answer
    Or Best Practices (step by step) ,that would be Great . </b>
    I deeply appreciate your Quick & valuable advice;
    and shall create a new posting if any further need arises
    Many Thanks,
    Aby Jacob
    =========

  • Elementary Search help with distinct values. Kindly help!

    Hi Experts,
        I have to create a search help for Plant field. The Plant field is in a custom table YPLANT_DET. Unfortunately the plant field in this table is not unique.
    So the elementary search help will show duplicate plant entries.
    How to customize the elementary search help so that I get only distict values on F4 help?
    KIndly help!
    Thanks
    Gopal

    Hi,
    You need to use Search help exit...
    i am attaching below sample code..write the select query at appropriate location and pass the internal table to sub FM mentioned in the code..
    Code Sample
    BEGIN OF CODE SAMPLE -
    BEGIN OF INCLUDE LZSHLPTOP -
    FUNCTION-POOL zshlp. "MESSAGE-ID ..
    TYPE-POOLS shlp.
    TYPES:
    BEGIN OF t_knvp,
    kunnr TYPE kna1-kunnr,
    name1 TYPE kna1-name1,
    ort01 TYPE ort01_gp,
    stras TYPE stras_gp,
    kunn2 TYPE knvp-kunn2,
    name1_2 TYPE kna1-name1,
    END OF t_knvp.
    DATA: i_knvp TYPE TABLE OF t_knvp,
    wa_knvp TYPE t_knvp,
    wa_selopt TYPE ddshselopt,
    wa_fielddescr TYPE dfies.
    DATA:
    rc TYPE i,
    v_tabix LIKE sy-tabix.
    RANGES: r_ktokd FOR kna1-ktokd,
    r_mcod1 FOR kna1-name1,
    r_sortl FOR kna1-sortl,
    r_kunnr FOR kna1-kunnr,
    r_ort01 FOR kna1-ort01.
    END OF INCLUDE LZSHLPTOP -
    BEGIN OF FUNCTION MODULE Z_CUSTOM_SEARCH -
    FUNCTION z_custom_search.
    ""Local interface:
    *" TABLES
    *" SHLP_TAB TYPE SHLP_DESCR_TAB_T
    *" RECORD_TAB STRUCTURE SEAHLPRES
    *" CHANGING
    *" VALUE(SHLP) TYPE SHLP_DESCR_T
    *" VALUE(CALLCONTROL) LIKE DDSHF4CTRL STRUCTURE DDSHF4CTRL
    EXIT immediately, if you do not want to handle this step
    CASE callcontrol-step.
    STEP SELECT (Select values)
    This step may be used to overtake the data selection completely.
    To skip the standard seletion, you should return 'DISP' as following
    step in CALLCONTROL-STEP.
    Normally RECORD_TAB should be filled after this step.
    WHEN 'SELECT'.
    Change column header texts appearing on the search help hit list
    LOOP AT shlp-fielddescr INTO wa_fielddescr.
    v_tabix = sy-tabix.
    CASE wa_fielddescr-fieldname.
    WHEN 'KUNNR'.
    wa_fielddescr-fieldtext = 'ShipToCustomer#'.
    wa_fielddescr-reptext = 'ShipToCustomer#'.
    wa_fielddescr-scrtext_s = 'ShipTo #'.
    wa_fielddescr-scrtext_m = 'ShipToCustomer#'.
    wa_fielddescr-scrtext_l = 'ShipToCustomer#'.
    MODIFY shlp-fielddescr FROM wa_fielddescr
    INDEX v_tabix TRANSPORTING fieldtext reptext scrtext_s
    scrtext_m scrtext_l.
    WHEN 'KUNN2'.
    wa_fielddescr-reptext = 'BillToCustomer#'.
    wa_fielddescr-fieldtext = 'BillToCustomer#'.
    wa_fielddescr-scrtext_s = 'BillTo #'.
    wa_fielddescr-scrtext_m = 'BillToCustomer #'.
    wa_fielddescr-scrtext_l = 'BillToCustomer #'.
    MODIFY shlp-fielddescr FROM wa_fielddescr
    INDEX v_tabix TRANSPORTING fieldtext reptext scrtext_s
    scrtext_m scrtext_l.
    WHEN 'NAME1'.
    wa_fielddescr-fieldtext = 'ShipToCustomer Name'.
    wa_fielddescr-reptext = 'ShipToCustomer Name'.
    wa_fielddescr-scrtext_s = 'ShipTo Name'.
    wa_fielddescr-scrtext_m = 'ShipToCustomer Name'.
    wa_fielddescr-scrtext_l = 'ShipToCustomer Name'.
    MODIFY shlp-fielddescr FROM wa_fielddescr
    INDEX v_tabix TRANSPORTING fieldtext reptext scrtext_s
    scrtext_m scrtext_l.
    ENDCASE.
    ENDLOOP.
    Select the Bill to party customer based on the select options
    FREE: r_ktokd, r_kunnr, r_sortl, r_mcod1, r_ort01, i_knvp.
    LOOP AT shlp-selopt INTO wa_selopt.
    Build a Range for the 5 selection options of the search help
    CASE wa_selopt-shlpfield.
    WHEN 'KTOKD'.
    r_ktokd-sign = wa_selopt-sign.
    r_ktokd-option = wa_selopt-option.
    r_ktokd-low = wa_selopt-low.
    r_ktokd-high = wa_selopt-high.
    APPEND r_ktokd.
    CLEAR r_ktokd.
    WHEN 'KUNNR'.
    r_kunnr-sign = wa_selopt-sign.
    r_kunnr-option = wa_selopt-option.
    r_kunnr-low = wa_selopt-low.
    r_kunnr-high = wa_selopt-high.
    APPEND r_kunnr.
    CLEAR r_kunnr.
    WHEN 'SORTL'.
    r_sortl-sign = wa_selopt-sign.
    r_sortl-option = wa_selopt-option.
    r_sortl-low = wa_selopt-low.
    r_sortl-high = wa_selopt-high.
    APPEND r_sortl.
    CLEAR r_sortl.
    WHEN 'MCOD1'.
    r_mcod1-sign = wa_selopt-sign.
    r_mcod1-option = wa_selopt-option.
    r_mcod1-low = wa_selopt-low.
    r_mcod1-high = wa_selopt-high.
    APPEND r_mcod1.
    CLEAR r_mcod1.
    WHEN 'ORT01'.
    r_ort01-sign = wa_selopt-sign.
    r_ort01-option = wa_selopt-option.
    r_ort01-low = wa_selopt-low.
    r_ort01-high = wa_selopt-high.
    APPEND r_ort01.
    CLEAR r_ort01.
    ENDCASE.
    ENDLOOP.
    Retrieve data from KNVP table for the above selected ranges
    Doing query to retrieve data for the search help
    SELECT knvp~kunnr
    kna1~name1
    kna1~ort01
    kna1~stras
    knvp~kunn2
    INTO TABLE i_knvp
    FROM knvp
    INNER JOIN kna1
    ON knvpkunnr = kna1kunnr
    WHERE
    knvp~parvw = 'RE' AND " Bill to Party
    knvp~kunnr IN r_kunnr AND
    kna1~ktokd IN r_ktokd AND
    kna1~sortl IN r_sortl AND
    kna1~mcod1 IN r_mcod1 AND
    kna1~ort01 IN r_ort01.
    CHECK sy-subrc = 0.
    DELETE ADJACENT DUPLICATES FROM i_knvp.
    Select the short text for kunn2 from kna1.
    Move all the selected records to Record_Tab
    LOOP AT i_knvp INTO wa_knvp.
    v_tabix = sy-tabix.
    SELECT SINGLE name1 FROM kna1
    INTO wa_knvp-name1_2
    WHERE kunnr = wa_knvp-kunnr.
    MOVE wa_knvp TO record_tab-string.
    APPEND record_tab.
    CLEAR record_tab.
    MODIFY i_knvp FROM wa_knvp INDEX v_tabix.
    CLEAR wa_knvp.
    ENDLOOP.
    rc = 0.
    IF rc = 0.
    callcontrol-step = 'DISP'.
    ELSE.
    callcontrol-step = 'EXIT'.
    ENDIF.
    EXIT. "Don't process STEP DISP additionally in this call.
    WHEN 'PRESEL1'.
    WHEN 'DISP'.
    WHEN OTHERS.
    ENDCASE.
    ENDFUNCTION.
    END OF FUNCTION MODULE Z_CUSTOM_SEARCH -
    END OF CODE SAMPLE -
    Save and activate at every step.
    Regards,
    Chandra
    (Award points if helpful)

  • Kindly help ORA-00917: missing comma" ERR-1101 Unable to process function

    HI Experts,
    Since yesterday every thing was fine, i do not know what happened in the evening, we are facing some issue with our production.
    I'm getting the following error ,when i running the report
    ORA-00917: missing comma
         Error      ERR-1101 Unable to process function body returning query.
    Since long time we have even not touched the code , i'm wondering about this error...the same code was working fine just 2 days back.
    Kindly help me with this...
    Code
    DECLARE
       date_from DATE:=:P46_TRANS_DATEFROM;
       date_to DATE:=:P46_TRANS_DATETO;
       --date_from DATE :=TO_DATE('22-Nov-2007','DD-Mon-yyyy');
       --date_to DATE :=TO_DATE('23-Nov-2007','DD-Mon-yyyy');
       date_counter DATE:=date_from;
       v_city varchar2(32):=:P46_CITY;
       str_month1 VARCHAR2(3):=SUBSTR(TO_CHAR(date_from,'DD-MON-YYYY'),4,3);
       str_year1 VARCHAR2(4):=SUBSTR(TO_CHAR(date_from,'DD-MON-YYYY'),8,4);
       str_month2 VARCHAR2(3):=SUBSTR(TO_CHAR(date_to,'DD-MON-YYYY'),4,3);
       str_year2 VARCHAR2(4):=SUBSTR(TO_CHAR(date_to,'DD-MON-YYYY'),8,4);
       day_from VARCHAR2(2):=SUBSTR(date_from,1,2);
       day_to VARCHAR2(2):=SUBSTR(date_to,1,2);
       CURSOR trans_alloc(m VARCHAR2,y NUMBER,email VARCHAR2) IS SELECT * FROM EFT_TRANS_ALLOCATION WHERE LOWER(MONTH)=LOWER(m) AND YEAR=y AND LOWER(email_id)=LOWER(email);
       CURSOR trans_schedules(m1 VARCHAR2,y1 NUMBER,m2 VARCHAR2,y2 NUMBER) IS SELECT * FROM OD_SHIFT_SCHEDULE WHERE (UPPER(MONTH)=m1 OR UPPER(MONTH)=m2) AND (YEAR=y1 OR YEAR=y2);
       CURSOR get_res_id(email VARCHAR2) IS SELECT resource_id,first_name,last_name FROM EFT_RESOURCES WHERE LOWER(email_id)=LOWER(email);
       rec OD_SHIFT_SCHEDULE%ROWTYPE;
       CURSOR get_shifts(id VARCHAR2) IS SELECT * FROM OD_SHIFTS WHERE shift_id=id;
       ta EFT_TRANS_ALLOCATION%ROWTYPE;
       sd OD_SHIFTS%ROWTYPE;
       sql_str VARCHAR2(4000);
       v_res_id NUMBER;
       v_fname VARCHAR2(50);
       v_lname VARCHAR2(50);
       v_shift_id VARCHAR2(32);
       s VARCHAR2(1000);
       d VARCHAR2(32);
       final_sql VARCHAR2(4000);
       v_consent VARCHAR2(3);
       s2 VARCHAR2(1000);
       dn DATE;
    BEGIN
       DELETE FROM EFT_SHIFT_SCHEDULES_RPT;
       OPEN trans_schedules(UPPER(str_month1),TO_NUMBER(str_year1),UPPER(str_month2),TO_NUMBER(str_year2));
       LOOP
          FETCH trans_schedules INTO rec;
           EXIT WHEN trans_schedules%NOTFOUND;
           OPEN get_res_id(rec.name);
           FETCH get_res_id INTO v_res_id,v_fname,v_lname;
              OPEN trans_alloc(TO_CHAR(date_counter,'MON'),TO_NUMBER(TO_CHAR(date_counter,'YYYY')),rec.name);
               FETCH trans_alloc INTO ta;
               IF trans_alloc%FOUND THEN
               dbms_output.put_line (date_counter||'----'||date_to||'Res_id:----'||v_res_id||'-'||ta.slno);
               dbms_output.put_line ('Found Alloc');
               WHILE date_counter<=date_to
               LOOP
                    --d:=d||'-'||str_month||'-'||str_year;
                    d:=SUBSTR(TO_CHAR(date_counter,'DD-MON-YYYY'),1,2);     
                    s:='INSERT INTO temp_2 SELECT "'||d||'" from OD_SHIFT_SCHEDULE where slno='||rec.slno;
                    --dbms_output.put_line (d||'-'||s);
                    DELETE FROM temp_2;
                    EXECUTE IMMEDIATE s;
                    SELECT substr(trim(VAL),1,1) INTO v_shift_id FROM temp_2;
                    s2:='INSERT INTO temp_3 SELECT "'||d||'" from EFT_TRANS_ALLOCATION where slno='||ta.slno;
                    DELETE FROM temp_3;
                    EXECUTE IMMEDIATE s2;
                    SELECT VAL INTO v_consent FROM temp_3;
                    --dbms_output.put_line (v_shift_id||'-'||v_consent);
                    --dbms_output.put_line (date_counter||'-'||date_to);
                    IF v_consent='Y' THEN
                    --dbms_output.put_line ('Im inside consent'||v_consent);
                    IF v_shift_id IS NOT NULL THEN
                    --dbms_output.put_line ('Im inside shift not null'||v_shift_id);
                       OPEN get_shifts(v_shift_id);
                       FETCH get_shifts INTO sd;
                        IF sd.night_shift_indicator='Y' THEN
                           dn:=date_counter+1;
                        sql_str:='INSERT INTO eft_shift_schedules_rpt VALUES ('||v_res_id||','''||v_fname||''','''||v_lname||''','''||rec.name||''','''||sd.shift_name||''','''||date_counter||''','''||sd.start_from||''','''||sd.start_to||''','''||''','''||sd.active_yn||''','''||dn||''')';
                        ELSE
                           sql_str:='INSERT INTO eft_shift_schedules_rpt VALUES ('||v_res_id||','''||v_fname||''','''||v_lname||''','''||rec.name||''','''||sd.shift_name||''','''||date_counter||''','''||sd.start_from||''','''||sd.start_to||''','''||''','''||sd.active_yn||''','''||date_counter||''')';
                        END IF;
                       EXECUTE IMMEDIATE sql_str;
                       CLOSE get_shifts;
                        --dbms_output.put_line (sql_str);
                    END IF;
                    END IF;
                    COMMIT;
                    date_counter:=date_counter+1;     
              END LOOP;
               END IF;
          CLOSE trans_alloc;
           CLOSE get_res_id;
           --dbms_output.put_line (rec.name);
           date_counter:=date_from;
       END LOOP;
       COMMIT;
       CLOSE trans_schedules;
    final_sql:='select a.first_name,a.last_name,a.email_id,a.shift_details,a.arrange_date,a.slot_from,a.slot_to,a.trans_arranged,a.active_yn,b.address1,b.address2,b.city,b.state,b.pin,b.worknumber,b.homenumber,b.mobilenumber,a.to_date from eft_shift_schedules_rpt a,eft_locations b where a.resource_id=b.resource_id and b.city =:P46_CITY';
    --dbms_output.put_line (final_sql);
    RETURN final_sql;
    END;

    Hi Basva,
    my best advice is find out where the error happens, e.g. using DBMS_UTILITY.FORMAT_ERROR_BACKTRACE .
    In the next step you can fix the error and rework the code so that it looks nice and has some comments in it so everyone knows what it SHOULD do.
    brgds,
    Peter
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    BuilderPlugin: http://builderplugin.oracleapex.info
    Work: http://www.click-click.at and http://www.wirsindapex.at

  • Kindly help to develop alv grid display

    Hi ,
    I have a requirement in which I need to display ALV GRID display and in its tool bar 4 butons are required. In the same view down to alv display i want to develop a tabstrip and its functionalities.I have designed classic alv using SALV_WD_TABLE component. I want a good GRID Display, not like flat field names that comes in list display, looking for bulged fields(like what comes for ALV GRID in normal abap)  display with print version etc hidden and buttons at the top of ALV.  Kindly help
    Highly rewarded
    Kindly help
    Regards,
    Lakshmi
    Edited by: Lakshmi Menon on Nov 27, 2008 4:49 PM

    Well Web Dynpro is generally output in HTML so the output formatting is never going to quite look like a desktop application (which is the case with the ALV Grid).  You have very little control over the look of the column headers.  In fact you can only manipulate what is available via the Portal Theme. 
    There is a new Tradeshow Plus theme available in NetWeaver 7.01 which uses a gradiant background for the column headers.  This gives them a little more depth:
    http://www.flickr.com/photos/tjung/3068850120/
    The other option is next year when NetWeaver Business Client version 3.0 comes out, you will be able to render Web Dynpro applications using the NWBC Smart Client Rendering.  This will render Web Dynpro applications using desktop libraries instead of HTML/Browser. This gives Web Dynpro a more SAPGUI/Desktop appears of course.
    http://www.flickr.com/photos/tjung/2685619882/in/set-72157606418550143/

Maybe you are looking for

  • Moving older TM backups from USB drive to Network drive

    How can I safely move previous Time Machine backups from a USB connected external drive to a Network connected Western Digital hard drive, after I have performed a full backup to the new drive?

  • FAX and Output Filename

    Does anyone know if it's possible to output the actual OutputFileName from the transformation builder? I want to print a document in PDF and sent it by FAX. I have a fax machine which is able to scan a directory, picking up a txt file, and it expects

  • Trying to add a sign in module, but I need a little code help.

    I am trying to add a sign in, but this is what happens to my page. http://www.blisssurfadventures.com/about.html?Preview=True When trying to add in module the page content box only allows me to see a part of my web page.

  • Tru TV HD For NCAA Tournament

    This year the NCAA Tournament will be on CBS, TNT, TBS and TruTV. Fios offers HD channels for all of these except for Tru TV. Please add Tru TV (SD channel 183) in time for the NCAA Tournament as all games will be broadcast in HD.

  • Language modification problem - Pages

    Following the recent download of Pages version 5.1 I am no longer able to modify the language of the text. Has this option disappeared?!