Adavnces with PO.

Hi,
Generally the advances are paid for the total purchase Order value not for PO line items basis.  But in F-47 when the advance request is made with reference to PO, the item number is also required. Canu2019t we restrict only to PO number?
Gayani

Hi:
         Before making PO line item number BSEG-EBELP field disabled through SHD0 you must be aware of implication of doing so. Here you must enter any PO line item to tell system for maintenance of PO history for down payment. If you disable it then system will not keep PO history for down payment. You can insert any line item. The system wants you to input this field just for keeping PO history w.r.t down payment.
Hope this will help you.
Regards

Similar Messages

  • 500 Internal Server Error while connecting JSP with Oracle

    Hello Friends,
    We Have installed Oracle Applications 11i in our orgaization which run on HP-UX 11.11 (HP Unix). I have created a JSP file in which I am trying to connect the database using OracleConnectionCacheImpl Class File in oracle.jdbc.pool directory. But it shows an error message as:
    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
    More information about this error may be available in the server error log.
    I have also installed Oracle HTTP Server on my personal machine at which this code runs perfectly only the error comes when i try to connect oracle from Oracle HTTP Server installed on our HP Unix Server.
    the path for pool package is:
    /appltest/apps/prodora/iAS/oem_webstage/oracle/jdbc/pool
    the location of JSP file is:
    /appltest/apps/prodcomn/portal/TEST_test/test
    What I think is I have to play with the CLASSPATh entries, but dont know how. Please help me in solving this issue...
    For your reference the JSP code is:
    <%@ page import="java.sql.*, javax.sql.*, oracle.jdbc.pool.*" %>
    <jsp:useBean id="ods" class="oracle.jdbc.pool.OracleConnectionCacheImpl" scope="session" />
    <%
    try
    ods.setURL("jdbc:oracle:thin:@test:1546:test");
    ods.setUser("kpm_hr");
    ods.setPassword("kpm_hr");
    Connection conn = ods.getConnection();
    Statement stmt = conn.createStatement();
    Resultset rset = stmt.executeQuery("select first_name,last_name from kpm_hr.kpm_hr_emp_mst where empcode='P0580'");
    rset.next();
    out.println(rset.getString(1)+" "+rset.getString(2);
    catch(SQLException e)
    out.println(e);
    } Thanks in adavnce,
    Ankur

    Just to verify, which relevant log files have you found?
    catch(SQLException e) {
    out.println(e);
    } Have you search the console log file?
    A quick observation reveals that your jsp is just a standalone java program executed inside jsp. Suppose you just run it as a standalone program. Any error then?
    Another way going forward is to install oc4j standalone of the same version. It is very easy to install: just download the oc4j-extended.zip and unzip it and run "java -jar oc4j.jar". Put you jsp inside j2ee/home/default-web-app and run. You should see relevant log messages in j2ee/home/log/server.log and j2ee/home/application-deployments/yourApp/application.log.
    You should have Jdeveloper of some appropriate version installed. If you have not, install one. It might be not a little bit high learning curve at first, but the rewards are quick and amazing, especially since jdev 10.1.3. (I am speaking from my experience.) Try it with Jdeveloper.

  • Problem in Marshaling UnMarshaling with @XmlAnyElement using JAXB

    Hi all,
    I am having a class annotated with XML binding annotations. I am using this class to marshal and unmarshal XML content.
    I am having one class named Data. This class is field of some other class.
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
        "any"
    @XmlRootElement(name = "Data")
    public class Data {
        @XmlAnyElement
        protected Element any;
        public Element getAny() {
            return any;
        public void setAny(Element value) {
            this.any = value;
    Data class is having one element named any. any holds any kind of XML Content.
    Now when I Unmarshal XML content to java class displayed above it works fine.
    But when Marshaling java class to XML it adds some unwanted namespaces and prefixes to content in any element in Data class.
    I am using javax.xml.bind.JAXBContext class for getting javax.xml.bind.Marshaller and javax.xml.bind.Unmarshaller.
    Here are the XML Data:
    Original:
    <bh:BookRequest xmlns:bh="http://www.mybookstore.com">
         <bh:Data>
              <Books xmlns="http://www.anynamespace.com">
                   <Book>
                        <Name>Any Java Book1</Name>
                        <Price>$5.0</Price>
                        <Publication>Any Publication</Publication>
                   </Book>
                   <Book>
                        <Name>Any Java Book2</Name>
                        <Price>$7.0</Price>
                        <Publication>Any Publication2</Publication>
                   </Book>
                   <Book>
                        <Name>Any Java Book3</Name>
                        <Price>$6.5</Price>
                        <Publication>Any Publication3</Publication>
                   </Book>
              </Books>
         </bh:Data>
    </bh:BookRequest>After Marshaling and Unmarshaling:
    <bh:BookRequest xmlns:bh="http://www.mybookstore.com">
         <bh:Data>
              <Books:Books xmlns:Books="http://www.mybookstore.com" xmlns="http://www.anynamespace.com">
                   <Book>
                        <Name>Any Java Book1</Name>
                        <Price>$5.0</Price>
                        <Publication>Any Publication</Publication>
                   </Book>
                   <Book>
                        <Name>Any Java Book2</Name>
                        <Price>$7.0</Price>
                        <Publication>Any Publication2</Publication>
                   </Book>
                   <Book>
                        <Name>Any Java Book3</Name>
                        <Price>$6.5</Price>
                        <Publication>Any Publication3</Publication>
                   </Book>
              </Books:Books>
         </bh:Data>
    </bh:BookRequest>Notice the <Books> element in both XML above.
    First one is the actual content. Second one is the Marshalled XML with addtional Namespace and prefixes.
    I don't want this behaviour. *I want Marshaling and UnMarshaling not to touch Content in any element of Data Class.I want that content as it is.* Is there any way to do so?
    Any comment for this will help me.
    thanks in adavnce,
    TYPurohit.

    What exactly the message mean: Use the "-extension" switch.
    My work around is to remove the abstract="true" from abstract element. Is there a better way?
    thanks.

  • Help with photos in project???!!

    Hello,
    I just bought an iMac about a month ago so that I could edit home movies and create DVD's of family vacations/events to share with my family. I have done this in the past on the PC with Pinnacle Movie Studio Software but it was buggy and more of a pain than it was worth.
    So far pretty impressed with the iMac and FCE seems like it has potential. However I keep having problems with still photos in my video.
    Here is what I have done - created a new project using the NTSC 48k template (not at my desktop now so I'm working off memory as far as naming). I captured all of my Sony Mini DV footage to the PC and dropped it into my timeline and edited it. Went smoothly. At the end of my movie I want to insert a "recap of the trip" using the still photos that I took with my digital camera and use the ken burns effect and transitions with music playing. My plan is to render and burn to DVD with iDVD for playback on a 1080p 60 inch plasma.
    My photos are jpegs saved on my hard drive. I cropped them and adjusted color, etc in CS2. I didn't do anything as far as re-sizing them etc in photo shop as this is a little new to me and I didn't want to mess them up. Do I need to resize them for FCE? Seems like the program does this? If I need to resize them what size should I make them? Remember I want to be able to zoom in by creating the burns effect.
    I have taken the photos and imported them into FCE. I drop them on the timeline and push play and everything looks great. When I start adding transitions with and applying the ken burns effect with key points the image plays fine by itself in the viewer window. However, when I watch the project play back in the canvas the stills appear very jumpy - not like a frame is missing in the render - the still literally looks like it jumps up and then settles back down. This is driving me nuts! FCE has to be able to do this smoothly. Can anyone provide me with a simple step by step on what settings I should be using for my sequences, etc to make this work. The settings really mess me up and I must be missing something.
    I do have Tom's book but I can't find anything to help me with this issue. It is driving me nuts. Thank you in adavnce!

    Thank you for the link. I went there and read the information. I still have questions:
    Assuming I am using just still photos (let's keep it easy at first and assume no video) - what settings do I use for FCE under easy set up and for the sequence? Photos are jpg images shot with a digital camera that have been saved on my computer for a few years. I want to output my contents to DVD using iDVD and play back on a 1080p plasma tv.
    Do I have to edit or resize the photos in photoshop first? It sounds like I can just import them into FCE and that it should work. I am not working with advanced photoshop images - just simple jpg images - no layers. The chart on page 2 of the link above says for 1080i - rectangular size N/A and square size 1920x1080. What does this mean? Is this telling me to resize my images to 1920x1080 before I import into FCE? If I want to use the Ken Burns effect and zoom should I double this to 3840x2160?
    If someone can tell me step by step what they would do with the settings for FCE if they wanted to create a still photo slideshow with music, transitions and pan and zoom I would appreciate it. Again - source material is jpg images and I want to output to DVD using iDVD to display on a 1080p plasma tv. Also assuming that you had a standard landscape photo shot with a 4 megapixel camera what steps would you go through to prep it for FCE in Photoshop - if any?
    Sorry that I am asking for a detailed example but I learn much better that way - after I am able to get one photo into an acceptable format for FCE the rest will be easy.
    Has anyone actually created a successful slide show in FCE using transitions and the Ken Burns effect or do they get jitters in their photos as well - the image doesn't appear to flow smoothly.

  • Problem in connecting NWCE7.2 with backend R3 and BI

    Hello Gurus
    I have installed the NWCE7.2 for creating a pilot in which i have to show the compsite application for BPM involving data from backend R3 and BI. I plan to use the Visual composer for developing the pilot
    In Portal - System admin - System configuration, i have set to two system one for BI and one for R3. But when i am running the connection test for connectors it is failing consistently.
    For BI system it is giving error - Connection failed make sure user mapping is correct.and all connection properties are correct
    For R3 - system it is giving error - Connection failed make sure user mapping is correct.and all connection properties are correct
    I am using my SAP account. I have created a portal UME account with the same id as my SAP ID and using SAP Logonticket
    Since i am new , can any one give me step by step process to create successfully the connectors to connect to BI and R3.
    I had followed the steps mentioned in Sap.help.com and followed all the steps without success. 
    In the help page - http://help.sap.com/saphelp_nwce72/helpdata/en/48/a80b7a516b35b6e10000000a42189d/frameset.htm
    I have followed the Maintaining RFC Destinations & Maintaining BI Server Connectionsbut am consistently failing to connect and thus not use the Visual composer to use the RFCs for the pilot.
    Do I have to do any other setting as well, am i missing some configuration as well.
    Can someone please help me resolve this issue
    Thanksing in adavnce
    Raghu

    Followed the help.sap.com and resolved the issue

  • Can't call with optus sim "error message SIM: CALL BARRED"

    Help please!!
    i currently joined with optus mobile and i cant call out with my blackberry, everytime i call i get this message "SIM: CALL BARRED", i can still receive call and sms......
    it is weird because when i put the sim into a different phone...it is working fine..(i can call and receive call)
    and when i put a different sim into my blackberry...it also work fine (can call and receive call)
    i called up optus and everything is activated and eveything is smooth!
    can any1 help me out please?!?!
    thanks in adavnce!

    Hi, I know your problem was a long time ago but I have the same problem now adn cannot find the solution anywhere. Looking at the number of times people have 'viewed' your subject (935 times) it is obviously a common problem with optus sim, but the solution is a mystery. Can you help????? How did you get your phone working with optus sim???

  • Advance with Special GL Indiactor

    Hi All,
    My Client wants to post travel advance with special GL Indicator (Advance). I have assigned GL Account (100000) with special GL indicator to advance symbolic account. When i try to post the document in T code PRRW it is giving error message  'E F5354 Account 100000 in company code 2222 cannot be directly posted to'.
    I know that this message is because i have used special GL indicator in that GL Account 100000. Is there any possibility to post with special GL indicator in travel management.
    Also pls let me know is the any standard report for advances.
    Thanks in advance
    Regards
    MR

    Ok.I give you the solution.The same had happened with me also.
    Execute the report S_AHR_61016401 .
    Here you get to see all the standard fields.
    Now click on the icon "Change Layout" or CTRL+F8. Add Advance as a visible field.
    But you see that Advance is zero. RIGHT?
    Do 1 thing
    Save this layout with a name (Eg ZMR123). Then come out of this report.
    Execute S_AHR_61016401 again.The main screen comes. In the bottom, in the field "Layout" put ZMR123.Execute.
    See the adavnce field comes with the values.
    Hope I have helped you

  • Issue with the Travel Management Workflow

    Hi Experts,
    I have developed a Custom Travel Managment Workflow which is triggered whenever a Trip is created in SAP. Now in the Workflow If I change the trip and Save the Trip again my Workflow is triggering because the CREATED event is triggering along with the CHANGE event (Verified through SWEL transaction) which doing SAVE operation. I am not sure why CREATED event is triggering instead I am expecting only CHANGE event should trigger.
    Please help me how can I achieve the above request.
    Thanks in adavnce.
    Regards,
    Srinivas

    Hi Srinivas,
    It is a standard behavior of Travel workflow. Even you change the travel request, the Created event will trigger.
    But you can manage this using Fork step and Wait event. In the workflow create a forq atep and create a wait for event in one branch. In the wait for event, create a BUS2089 - Changed.
    In the fork branch will be 2 and necessary branch should be 1. So if the change event occured the wait step will be triggered. In this branch you can implement your business logic.
    Thanks,
    Viji.

  • Issues with cloining

    Hi Guys,
    Thanks in adavnce.
    Platform is : R12.1
    OS is: Oracle Enterprise Linux 5
    The issue I have with cloning is that each time I clone from PROD to DEV, I have to use a different port address at the target DEV. If I try to use the previous ports that DEV was using before ... on configuring the application tier it will tell me the port is not available hence I have to use an available port.
    The DB tier is fine is usually the Application Tier....
    I had shut down the DEV environment (Apps Tier and DB Tier ) before cloning from PROD.
    So How can I use the same port at the target please?
    My thinking is use netstat -an | grep -i <port> and then kill it...
    I don't think this is the best approach..
    Please advise.
    Thanks again

    Hi,
    If we properly shut down the application, then the port should be free as no process is listening on it. Even after normal shut down, if it is saying port already in use, then we must kill it as you stated.
    Regards

  • Will all (both Apple proprietary and 3rd party) accesories compatible with iPad2 also be compatible with the new iPad (version 3)?

    I have just pre-ordered my first iPad, and luckily my timing was perfect as I have been able to grab a first round new iPad (version 3). That said, while I wait for it to ship (due 3rd of April), I wanted to do some research and begin to buy the accesories I will want to go along with it.
    Are all accessories currently available on the market and thus compatible with the iPad 2 also going to be compatible with the new iPad (version 3)? This question goes for both Apple proprietary accessories (i.e. Airport Express, Camera connector kit, Smart Cover, etc.) and 3rd party (non-Apple iPad covers / stands, etc.)?
    Many thanks in adavnce.

    There are two different Zagg keyboards. One of them, the Zagg Folio, is a combination keyboard and case that completely surrounds the iPad, front and back. The Zagg Folio (for iPad 2) doesn't fit the new iPad since the new iPad is thicker.
    The other Zagg keyboard is the "Logitech Keyboard Case by Zagg". This keyboard grips and surrounds the front of the iPad, but doesn't go around the back. Since the new iPad has the same frontal dimensions, it's compatible with iPad 2 versions of this keyboard.

  • Trxn Management with Tuxedo ATMI or SQL

    Hi,
    Ours is a leading bank in Saudi Arabia with a network of 70 branches in the country.
    We have a number of heteogeneous systems for various banking operations.
    Specifically, this quaestion is regarding choosing a choice of Tuxedo ATMI or
    SQL for incorporating various business rules in retail banking, right from opening
    customer realtionship and accounts until closing the customer file.
    Given the very hectic time schedule and also the concern for long-term maintenance,
    please advise which one is right decision
    - Building the business logic in the PL/SQL procedures in
    the central ORACLE server (Branches / Departments /
    ATMs / ... will access this and iteropration of all
    these sevices have to be managed (some of these are
    XA compliant and some are not)
    or
    - building the business rules in the Tuxedo ATMI services?
    Please note that I already read another email inquiry (and reply ) from Mervin
    with the subject 'Transaction management with ATMI or SQL'.
    Adavnce thanks.
    N Dhandapani
    Saudi French Bank
    Riyadh

    Hi,
    Implementing business checks/repository in BEA Tuxedo servers seems a cleaner
    approach from architecture and maintenance point of view.
    It helps the application to maintain n-tier architecture and leave the client
    to take care of only the interface and database the data storage. All checks and
    business rules will be in the middle-layer.
    Moreover, using Tuxedo brings in some advantages like:
    *Load Balancing
    *Scalability
    *Transaction Monitoring
    *Fail-over
    *Connection Pooling
    *Easier Database Migrations (very easy if only ANSI features are used, else code
    changes mey be required)
    NOTE: Tuxedo services can be developed using ESQL/C (Pro*C for Oracle) which may
    be database specific. A database independent approach (a study/analysis may be
    required) would be to use some database library that encapsulates the calls like
    Rogue Wave.
    HTH
    Best Regards
    MS

  • Need help with cursor def

    Hi I have seen some where in the code
    .what I could not understand is
    1.what does the e with clause in this code will do? where it is used frequently and what is the advantage?
    2.the temp_holding is a table with only one column.So is it like we can use with caluse in the cursor with only one columned tables?
    3.why is the AS keyword used in this?
    4.If I want to write a select staement for a cursor like this and see what is the data contained in the cursor ,how to write it ?
    thanks in adavnce for your help..
    OPEN lv_refcur FOR
    WITH TEMP_HOLDINGS AS
    SELECT A1.VENDOR_INSTRUMENT_ID,A1.DATA_SOURCE_CD FROM FI_IDX_BENCHMARK_HOLDINGS A1, FI_IDX_BENCHMARK B1, FI_IDX_SOURCE C1
    WHERE
    A1.PRICING_DT = pv_in_dt AND A1.DATA_SOURCE_CD = pv_in_data_src_cd AND A1.INDEX_CD = B1.INDEX_CD
    AND B1.INDEX_CD = C1.INDEX_CD AND C1.DATA_SOURCE_CD = A1.DATA_SOURCE_CD AND B1.IS_PA_REQUIRED = 'Y'
    UNION
    SELECT A2.VENDOR_INSTRUMENT_ID,A2.DATA_SOURCE_CD FROM FI_IDX_FORWARD_HOLDINGS A2, FI_IDX_BENCHMARK B2, FI_IDX_SOURCE C2
    WHERE
    A2.PRICING_DT = pv_in_dt AND A2.DATA_SOURCE_CD = pv_in_data_src_cd AND A2.INDEX_CD = B2.INDEX_CD
    AND B2.INDEX_CD = C2.INDEX_CD AND C2.DATA_SOURCE_CD = A2.DATA_SOURCE_CD AND B2.IS_PA_REQUIRED = 'Y'
    -- MDR START MC IGAR Disclosure change
    UNION
    SELECT
    A1.VENDOR_INSTRUMENT_ID,
    A1.DATA_SOURCE_CD
    FROM
    FI_IDX_BENCHMARK_HOLDINGS A1,
    FI_IDX_BENCHMARK B1,
    FI_IDX_SOURCE C1,
    fi_group_member GM
    WHERE
    A1.PRICING_DT = pv_in_dt
    AND GM.group_cd = 'BCGLBIDXPA'
    AND GM.purpose_cd = 'GLOBALIDX'
    AND A1.DATA_SOURCE_CD = GM.character_val
    AND A1.INDEX_CD = B1.INDEX_CD
    AND B1.INDEX_CD = C1.INDEX_CD
    AND C1.DATA_SOURCE_CD = pv_in_data_src_cd
    AND B1.IS_PA_REQUIRED = 'N'
    UNION
    SELECT
    A2.VENDOR_INSTRUMENT_ID,
    A2.DATA_SOURCE_CD
    FROM
    FI_IDX_FORWARD_HOLDINGS A2,
    FI_IDX_BENCHMARK B2,
    FI_IDX_SOURCE C2,
    fi_group_member GM
    WHERE
    A2.PRICING_DT = pv_in_dt
    AND GM.group_cd = 'BCGLBIDXPA'
    AND GM.purpose_cd = 'GLOBALIDX'
    AND A2.DATA_SOURCE_CD = GM.character_val
    AND A2.INDEX_CD = B2.INDEX_CD
    AND B2.INDEX_CD = C2.INDEX_CD
    AND C2.DATA_SOURCE_CD = pv_in_data_src_cd
    AND B2.IS_PA_REQUIRED = 'N'
    -- MDR END
    SELECT
    INSTRUMENT_ID,
    FUND_OR_INDEX_CD,
    PRICING_DT,
    FI_INSTRUMENT_ID,
    ISSUE_DESCRIPTION,
    TICKER,
    ISSUE_DT,
    STATED_MATURITY_DT,
    COUPON,
    STATE_CD,
    COUNTRY_CD,
    CURRENCY_CD,
    CALLABLE_FLAG,
    PUTABLE_FLAG,
    INSURED_FLAG,
    AMT_CD,
    REVENUE_SOURCE_CD,
    ISSUER_ID,
    NON_2A7_DIVER_ISSUER_ID,
    BLOOMBERG_MBS_TYPE,
    MBS_AGENCY_CD,
    ORIGINAL_TERM,
    DS_CLASS1_CD,
    DS_CLASS2_CD,
    DS_CLASS3_CD,
    MAX(LB_CLASS1_CD) LB_CLASS1_CD,
    MAX(LB_CLASS2_CD) LB_CLASS2_CD,
    MAX(LB_CLASS3_CD) LB_CLASS3_CD,
    MAX(LB_CLASS4_CD) LB_CLASS4_CD,
    GENERIC_INSTRUMENT_ID,
    MAX(SC_CLASS1_CD) SC_CLASS1_CD,
    MAX(SC_CLASS2_CD) SC_CLASS2_CD,
    MAX(SC_CLASS3_CD) SC_CLASS3_CD,
    MAX(SC_CLASS4_CD) SC_CLASS4_CD
    FROM (
    SELECT
    DISTINCT
    PV_FND_IDX_CD AS FUND_OR_INDEX_CD,
    IAI.FI_INSTRUMENT_ID AS FI_INSTRUMENT_ID,
    -- MC IGAR Disclosure
    decode( pv_in_data_src_cd, 'LBG', decode (I.INSTRUMENT_DOMAIN_CD, 'MBS', I.cusip, IAI.ALTERNATE_ID), IAI.ALTERNATE_ID) AS INSTRUMENT_ID,
    -- MC IGAR Disclosure
    pv_in_dt AS PRICING_DT,
    I.ISSUE_DESC AS ISSUE_DESCRIPTION,
    I.BLOOMBERG_TICKER AS TICKER,
    DECODE(pv_in_data_src_cd,'LBG',I.ISSUE_DT,NULL) AS ISSUE_DT,
    I.STATED_MATURITY_DT AS STATED_MATURITY_DT,
    I.COUPON AS COUPON,
    I.STATE_CD AS STATE_CD,
    I.COUNTRY_CD AS COUNTRY_CD,
    I.CURRENCY_CD AS CURRENCY_CD,
    I.CALLABLE_IND AS CALLABLE_FLAG,
    I.PUTABLE_IND AS PUTABLE_FLAG,
    DECODE(pv_in_data_src_cd,'LBG',I.INSURED_IND,NULL) AS INSURED_FLAG,
    I.AMT_CD AS AMT_CD,
    I.REVENUE_SOURCE_CD AS REVENUE_SOURCE_CD,
    I.MASTER_ISSUER_ID AS ISSUER_ID,
    I.NON_2A7_DIVER_ISSUER_ID AS NON_2A7_DIVER_ISSUER_ID,
    MBS.BLOOMBERG_MBS_TYPE AS BLOOMBERG_MBS_TYPE,
    MBS.MBS_AGENCY_CD AS MBS_AGENCY_CD,
    MBS.ORIGINAL_TERM AS ORIGINAL_TERM,
    NULL AS DS_CLASS1_CD,
    NULL AS DS_CLASS2_CD,
    NULL AS DS_CLASS3_CD,
    DECODE (S.CLASSIFICATION_SCHEME_CD, 'LBCC', S.CLASSIFICATION_LEVEL1_CD)
    AS LB_CLASS1_CD,
    DECODE (S.CLASSIFICATION_SCHEME_CD, 'LBCC', S.CLASSIFICATION_LEVEL2_CD)
    AS LB_CLASS2_CD,
    DECODE (S.CLASSIFICATION_SCHEME_CD, 'LBCC', S.CLASSIFICATION_LEVEL3_CD)
    AS LB_CLASS3_CD,
    DECODE (S.CLASSIFICATION_SCHEME_CD, 'LBCC', S.CLASSIFICATION_LEVEL4_CD)
    AS LB_CLASS4_CD,
    NULL AS GENERIC_INSTRUMENT_ID,
    DECODE (S.CLASSIFICATION_SCHEME_CD, 'SCIS', S.CLASSIFICATION_LEVEL1_CD)
    AS SC_CLASS1_CD,
    DECODE (S.CLASSIFICATION_SCHEME_CD, 'SCIS', S.CLASSIFICATION_LEVEL2_CD)
    AS SC_CLASS2_CD,
    DECODE (S.CLASSIFICATION_SCHEME_CD, 'SCIS', S.CLASSIFICATION_LEVEL3_CD)
    AS SC_CLASS3_CD,
    DECODE (S.CLASSIFICATION_SCHEME_CD, 'SCIS', S.CLASSIFICATION_LEVEL4_CD)
    AS SC_CLASS4_CD
    FROM
    INSTRUMENT I,
    INSTRUMENT_SECTOR S,
    TEMP_HOLDINGS H,
    INSTRUMENT_ALTERNATE_ID IAI,
    INSTRUMENT_MBS MBS,
    FI_IDX_INSTRUMENT FII
    WHERE
    H.DATA_SOURCE_CD = FII.DATA_SOURCE_CD
    AND H.VENDOR_INSTRUMENT_ID = FII.VENDOR_INSTRUMENT_ID
    AND FII.FMR_CUSIP = IAI.ALTERNATE_ID
    AND IAI.FI_INSTRUMENT_ID = I.FI_INSTRUMENT_ID
    AND IAI.FI_INSTRUMENT_ID = S.FI_INSTRUMENT_ID(+)
    AND IAI.FI_INSTRUMENT_ID = MBS.FI_INSTRUMENT_ID(+)
    AND IAI.ALTERNATE_ID_TYPE_CODE = 'FMR_CUSIP'
    GROUP BY INSTRUMENT_ID, FUND_OR_INDEX_CD, PRICING_DT, FI_INSTRUMENT_ID,
    ISSUE_DESCRIPTION, TICKER, ISSUE_DT, STATED_MATURITY_DT, COUPON, STATE_CD,
    COUNTRY_CD, CURRENCY_CD, CALLABLE_FLAG, PUTABLE_FLAG, INSURED_FLAG, AMT_CD,
    REVENUE_SOURCE_CD, ISSUER_ID, NON_2A7_DIVER_ISSUER_ID, BLOOMBERG_MBS_TYPE,
    MBS_AGENCY_CD, ORIGINAL_TERM, DS_CLASS1_CD, DS_CLASS2_CD, DS_CLASS3_CD,
    GENERIC_INSTRUMENT_ID;
    Edited by: 953115 on Dec 5, 2012 2:04 AM

    953115 wrote:
    1.what does the e with clause in this code will do? where it is used frequently and what is the advantage?The WITH clause is called subquery factoring, not easy to find in the manual if you don't know that
    http://docs.oracle.com/cd/E11882_01/server.112/e26088/statements_10002.htm#i2161315
    http://docs.oracle.com/cd/E11882_01/server.112/e26088/statements_10002.htm#i2077142
    >
    subquery_factoring_clause
    The WITH query_name clause lets you assign a name to a subquery block. You can then reference the subquery block multiple places in the query by specifying query_name. Oracle Database optimizes the query by treating the query name as either an inline view or as a temporary table.
    >
    Simply, it is like creating a view local to the query that can be used one or more times in the rest of the query. It has added benefits such as the potential to materialize the results, explicitly push predicates into the subquery, and perform hierarchical queries using the recursive feature.
    >
    2.the temp_holding is a table with only one column.So is it like we can use with caluse in the cursor with only one columned tables?No you can put any query in the WITH clause
    >
    3.why is the AS keyword used in this?Developer preference? It is optional when specifying a column alias, it seems many of the aliases in your query are unnecessary since they just duplicate the existing column name.
    4.If I want to write a select staement for a cursor like this and see what is the data contained in the cursor ,how to write it ?You can view the results from the cursor the same way as any select query, e.g.
    SQL> var c refcursor
    SQL> begin
      2    open :c for
      3      with test_data as
      4      (
      5      select 1 n, 'a' s from dual union all
      6      select 2 n, 'b' s from dual union all
      7      select 5 n, 'x' s from dual
      8      )
      9      select n, s, case when n > 2 then 'High' else 'Low' end y
    10      from test_data;
    11  end;
    12  /
    PL/SQL procedure successfully completed.
    SQL> print c
             N S Y
             1 a Low
             2 b Low
             5 x High

  • A problem with threads

    I am trying to implement some kind of a server listening for requests. The listener part of the app, is a daemon thread that listens for connections and instantiates a handling daemon thread once it gets some. However, my problem is that i must be able to kill the listening thread at the user's will (say via a sto button). I have done this via the Sun's proposed way, by testing a boolean flag in the loop, which is set to false when i wish to kill the thread. The problem with this thing is the following...
    Once the thread starts excecuting, it will test the flag, find it true and enter the loop. At some point it will LOCK on the server socket waiting for connection. Unless some client actually connects, it will keep on listening indefinatelly whithought ever bothering to check for the flag again (no matter how many times you set the damn thing to false).
    My question is this: Is there any real, non-theoretical, applied way to stop thread in java safely?
    Thank you in advance,
    Lefty

    This was one solution from the socket programming forum, have you tried this??
    public Thread MyThread extends Thread{
         boolean active = true;          
         public void run(){
              ss.setSoTimeout(90);               
              while (active){                   
                   try{                       
                        serverSocket = ss.accept();
                   catch (SocketTimeoutException ste){
                   // do nothing                   
         // interrupt thread           
         public void deactivate(){               
              active = false;
              // you gotta sleep for a time longer than the               
              // accept() timeout to make sure that timeout is finished.               
              try{
                   sleep(91);               
              }catch (InterruptedException ie){            
              interrupt();
    }

  • Understanding problem with threads

    Hi,
    yesterday (at least i think it was yesterday) I posted a question in this forum, I needed help with writing a multithreaded server. The answer was simple and I wrote my program. It kinda works, but there is one thing I don't understand:
    I have a class, which handles the clientconnections and one that listens for incoming conections. I pass the socket returned by ServerSocket.accept() to the clientconnection object.
    There is only ONE clientconnection-object. The listener just passes the socket and calls the start() method of the clientconnection object.
    The clientconnection just writes some text to the client. Connecting more than one client at the same time works too. Everything works fine. And that's what I don't get. If I have only O N E clientconnection the texttransfer shouldn't work after i connect the second client, right?
    But it does, is there a mistake in my logic or am I losing my sanity? :)

    Hi again Danbas,
    Maybe you are losing your sanity... but that's ok. :)
    public void startlistening(){
    while(true){
    try{
    clientconn cc = new clientconn(ssock.accept());
    }catch(IOException ie){}
    //The Constructor in clientconn would look like this:
    public clientconn(Socket sock){
    //No idea what to do here
    Every time you perform "new", you create a new object. And you are calling new every time you accept a new socket connection. So you are creating a new clientconn object each time.

  • J2ME problem with threads

    Hi all,
    I would like to ask you for a help. I need to write a small program at my university. I started to write a midlet which function would be to countdown time for sports activities. I woul like to start a new thread - the one that counts down - and at the same time make the main thread sleep. After the "countdown" thread finishes, the main thread wakes up and waits for user input. The problem is that when the "countdown" thread finishes his work, I've got Uncaught exception java/lang/NullPointerException. error and the midlet halts.
    Below you can find the code
    import java.lang.*;
    import java.util.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.*;
    public class intervals extends MIDlet implements CommandListener
    public Display ekran;
    private SweepCanvas sweeper;
    private Form rundy;
    private TextField round0, round1, round2, round3, round4, round5, round6, round7, round8;
    private long czas,x;
    private Command exitCommand;
    private Command addRound;
    private Command delRound;
    private Command start;
    private TextField repeat;
    private Form odliczanie;
    private Alert ostrz;
    Licznik thread;
    String test;
    StringItem test1;
    int parz,i,j,k;
    static int l;
    int ilrund;
    int ilpowt;
    Item sec;
    long sec1;
    public intervals()
        rundy = new Form("Interwa&#322;y sportowe");
        exitCommand = new Command("Wyj&#347;cie", Command.EXIT, 2);
        addRound = new Command("Dodaj","Dodaj rund&#281;", Command.ITEM,1);
        delRound = new Command("Usu&#324;","Usu&#324; ostatni&#261; rund&#281;", Command.ITEM,1);
        start = new Command("Start", Command.ITEM,1);
        odliczanie = new Form("Odliczanie");
        TextField dodaj(TextField kolej)
            kolej=new TextField("Podaj czas (s) rundy "+parz,null, 4, TextField.NUMERIC);//stworzenie nowej instancji do wybierania czasu trwania rundy
            if(rundy.size()==0)
                rundy.insert(rundy.size(),kolej);
                else
                    rundy.insert(rundy.size()-1, kolej);
            return kolej;
        void odliczanie(TextField round)
            monitor m=new monitor();
            k=Integer.parseInt(round.getString());
            ekran.setCurrent(odliczanie);
            thread=new Licznik(k,odliczanie);
            thread.start();
            ekran.setCurrent(rundy);
    public void startApp()// throws MIDletStateChangeException
        rundy.deleteAll();
        repeat = new TextField("Podaj ilo&#347;&#263; powtórze&#324;",null,1,TextField.NUMERIC);
        rundy.addCommand(addRound);
        rundy.addCommand(exitCommand);
        rundy.setCommandListener(this);
        Canvas obrazek = new MyCanvas();
        ekran = Display.getDisplay(this);
        ekran.setCurrent(obrazek);
        czas=System.currentTimeMillis();
        while (System.currentTimeMillis()<czas+1000)
            continue;
        ekran.setCurrent(rundy);
    public void pauseApp()
    public void destroyApp(boolean unconditional)
        notifyDestroyed();
    public void commandAction(Command c, Displayable s)
        if (c == exitCommand)
            destroyApp(false);
            notifyDestroyed();
        else if(c==addRound)
            if(rundy.size()==0)//Sprawdzenie ilo&#347;ci elementów w celu poprawnego wy&#347;wietlania liczby rund w formie
                parz=1;
                else
                parz=rundy.size();
            switch(parz)
                case 1:
                    round0=dodaj(round0);break;
                case 2:
                    round1=dodaj(round1);break;
                case 3:
                   round2= dodaj(round2);break;
                case 4:
                    round3=dodaj(round3);break;
                case 5:
                    round4=dodaj(round4);break;
                default:
                    ostrz=new Alert("Uwaga","Maksymalna liczba rund wynosi 9", null, AlertType.INFO);
                    ostrz.setTimeout(3000);
                    ekran.setCurrent(ostrz);
            if(rundy.size()==1)
                rundy.append(repeat);
                rundy.addCommand(start);
            rundy.addCommand(delRound);
        else if(c==delRound)
            if(rundy.size()!=0)
                rundy.delete(rundy.size()-2);
                if (rundy.size()==1)
                    rundy.deleteAll();
                if(rundy.size()==0)
                    rundy.removeCommand(delRound);
                    rundy.removeCommand(start);
        else if(c==start)
            ilrund=rundy.size()-1;
            if(this.repeat.size()>0)
                ilpowt=Integer.parseInt(this.repeat.getString());
            ekran = Display.getDisplay(this);
            for (i=1; i<=ilpowt;i++)
                odliczanie= new Form("Odliczanie");
                 for (j=0;j<ilrund;j++)
                    switch(j)
                         case 0:
                             odliczanie(round0);
                             break;
                         case 1:
                             odliczanie(round1);
                             break;
                         case 2:
                             odliczanie(round2);
                             break;
                         case 3:
                             odliczanie(round3);
                             break;
                         case 4:
                             odliczanie(round4);
                             break;
                         case 5:
                             odliczanie(round5);
                             break;
                         case 6:
                             odliczanie(round6);
                             break;
                         case 7:
                             odliczanie(round7);
                             break;
                         case 8:
                             odliczanie(round8);
                             break;
    class Licznik extends Thread
        int czas1,k;
        Form forma;
        monitor m;
        public Licznik(int k,Form formap)
            czas1=k;
            forma=formap;
        public synchronized void run()
            while(czas1>0)
                forma.deleteAll();
                forma.append("Czas pozosta&#322;y (s): "+czas1);
                try{Thread.sleep(1000);} catch(InterruptedException e){e.printStackTrace();}
                czas1--;
            if(czas1<=0)
                m.put();
        }and monitor class
    public class monitor
    boolean busy=false;
    synchronized void get()
        if(!busy)
            try
                wait();
            }catch(InterruptedException e){e.printStackTrace();}
        notify();
    synchronized void put()
        if(busy)
            try
            wait();
            }catch(InterruptedException e){e.printStackTrace();}
        busy=true;
        notify();
    }Can anybody help me with this?

    Groovemaker,
    Your Licznik class has a member m of type monitor, which has not been instantiated (in other words is null) hence, when calling m.put() you get NullPointerException. Please also mind, that using Thread.sleep(1000) is not an accurate way of measuring time.
    If I may, please use recommended for Java class naming conventions - some of your names use lower case, while other don't which is confusing to the reader.
    Daniel

Maybe you are looking for

  • Profit Centre updation in Vendor or Customer Line item

    Dear All, With the concept of New GL, system is configured with profit centre and business area mandatory fields. after posting the document in MIRO and VF01 system is not able to capture the Profit Centre in the vendor or customer line item in " Ent

  • Problem with ipod dock and apple remote

    I have a problem with my apple remote and my 5th gen ipod on a dock. I set it up and plug it into a TV, yet when i get into a music video playlist- it will only play 4 songs (the same ones) and then go back to the song selection screen. The same thin

  • How do i alter my screen size  on mozilla firefox?

    how do i alter the screen size on mozilla fire fox

  • Streams ORA-26767 is that a bug?

    Hi Streams masters got that error DOWNSTREAMS_CAPTURE 26744 ORA-26744: STREAMS capture process "DOWNSTREAMS_CAPTURE" does not support "ARADM IN"."DBMS_TABCOMP_TEMP_UNCMP" because of the following reason: ORA-26767: No enough redo log information for

  • Macbook pro itunes not recognising ipad 2

    cant get macbook pro to see ipad 2 in itunes - iphoto comes up overtime but no itunes for syncing