Quotes

i have a problem in my program. i have a program that will allow user to enter comment and the comment get inserted into a table. the problem i am having is that when user enter text with quotes, my program fail to insert. if there any way i can escapes the text the user enter.
sample comment
status is Failed ID - '?' and db rejected
this comment is passed to a procedure which is then inserted into a table.

It's not the procedure that is having the problem. I suspect that the caller of the procedure needs to formulate the String correctly. As an earlier poster suggested escaping with '' will work. How is the String being retrieved from the user?
SQL> create table test_quote( col1 varchar2(32) );
Table created.
SQL> create procedure insert_test_quote( p_col1 varchar2 ) as
2 begin
3 insert into test_quote values (p_col1);
4 end;
5 /
Procedure created.
SQL> declare my_string varchar2(32) := 'This is a test ''quote''';
2 begin
3 insert_test_quote( my_string );
4 end;
5 /
PL/SQL procedure successfully completed.
SQL> select * from test_quote;
COL1
This is a test 'quote'

Similar Messages

  • Open and cancelled Quote Report

    Hi,
    Can anyone give me the information  for getting open and cancelled Quote Report?

    I hope you are using reason for rejection for cancelling quotations. If that is the case, you can use transaction VA25 to view the list of quotations. Here you can filter on two columns status and reason for rejection to view the report as per your requirement.
    Regards,
    GSL.

  • Find open and close smart quotes

    Dear scripter,
    Here I am trying find whether all the open double smart quotes(") are closed with close double smart quotes("). Here is my small work to find how many open and close quotes.
    myopenqu=app.activeDocument.search("^{", false, false, "^{");
    myclosequ=app.activeDocument.search("^}", false, false, "^}");
    myopenqulength = myopenqu.length;
    myclosequlength = myclosequ.length;
    if(myopenqulength!=myclosequlength)
    alert("Quotes not matched\n"+ myopenqulength +" Open quotes found\n" + myclosequlength +" Close quotes found")
    It works well, the script just alert if I have 25 open quotes and 23 close quotes
    Quotes not matched
    25 Open quotes found
    23 close quotes found
    Now I want to find the quote set where the 24,25th set close quotes are missing?
    Is there any way to find the misisng quotes
    Thanks in advance
    regards
    a r u l
    vpublish.net

    You'd have to look for unmatched quotes, in this case two cases of two open quotes without an intervening closed quote. This is difficult to script in CS2 because it doesn't have GREP natively and because of footnote problems. In CS3/4 it should be possible. But even then it will work only if you don't have quotes within quotes.
    Peter

  • Print Quote Report

    Hi All,
    I have a requirement to develop the custom print Quote Report. When i review the standard pring quote report ,I found a call like <?call-template:TermsTemplate?>.
    This statment itself is getting all the Terms and Conditions for that report. when i looked in the ASOPRTXSL.xsl, I see the below statement
    <xsl:template name="TermsTemplate">
    <xsl:call-template name="PrintContractTerms"/>
    </xsl:template>
    I am pretty new to XSL, dont know what's happening here. Please help me ASAP
    I have also posted this question in BI Publisher but did not get any respose . Please Help
    Thanks

    If you want to create a custom report using concurrent program then refer:
    http://apps2fusion.com/apps/apps/63-xml-publisher-concurrent-program-xmlp
    If you want to create a custom report using OAF page then refer:
    http://apps2fusion.com/at/51-ps/260-integrating-xml-publisher-and-oa-framework
    -Anand

  • XML Quote report

    We have a problem with our XML Quote report that cuts off the report at 26 pages when it should go to about 200 pages.
    We have another report the Acknowledge Quote and it works fine.

    Finally we found the solution for this problem.
    1. Open qotSCocPrint.jsp and add below line inside <SELECT id="qotOutFrmt" name="qotOutFrmt"> statement. This line should be added after "for" loop.
    <OPTION value="EXCEL">Excel Format</option>
    We can add as many options the XML Publisher supports.
    2. Decompile oracle.apps.aso.print.webui.MainCO.class (Controller).
    Change the below line
    httpservletresponse.setContentType("application/pdf");
    to
    httpservletresponse.setContentType("application/"+quoteOutputFormat.toLowerCase());
    Take a backup of the original file, compile the java in the same directory.
    3. Decompile oracle.apps.aso.print.server.PrintQuoteAMImpl.class and change this line
    Field field = class2.getDeclaredField("OUTPUT_TYPE_PDF");
    to
    String outputFormat="OUTPUT_TYPE"+as[12].trim();
    Field field = class2.getDeclaredField(outputFormat);
    Bounce Apache and generate the Quote output in desired format.

  • Queation Regaring Print Quote Report

    Hi All,
    I have a requirement to develop the custom print Quote Report. When i review the standard pring quote report ,I found a call like <?call-template:TermsTemplate?>.
    This statment itself is getting all the Terms and Conditions for that report. when i looked in the ASOPRTXSL.xsl, I see the below statement
    <xsl:template name="TermsTemplate">
    <xsl:call-template name="PrintContractTerms"/>
    </xsl:template>
    I am pretty new to XSL, dont know what's happening here. Please help me ASAP
    Thanks

    Can anyone answer this please. This is urgent . Thanks

  • Questions on Print Quote report

    Hi,
    I'm fairly new to Oracle Quoting and trying to get familiar with it. I have a few questions and would appreciate if anyone answers them
    1) We have a requirement to customize the Print Quote report. I searched these forums and found that this report can be defined either as a XML Publisher report or an Oracle Reports report depending on a profile option. Can you please let me know what the name of the profile option is?
    2) When I select the 'Print Quote' option from the Actions drop down in the quoting page and click Submit I get the report printed and see the following URL in my browser.
    http://<host>:<port>/dev60cgi/rwcgi60?PROJ03_APPS+report=/proj3/app/appltop/aso/11.5.0/reports/US/ASOPQTEL.rdf+DESTYPE=CACHE+P_TCK_ID=23731428+P_EXECUTABLE=N+P_SHOW_CHARGES=N+P_SHOW_CATG_TOT=N+P_SHOW_PRICE_ADJ=Y+P_SESSION_ID=c-RAuP8LOvdnv30grRzKqUQs:S+P_SHOW_HDR_ATTACH=N+P_SHOW_LINE_ATTACH=N+P_SHOW_HDR_SALESUPP=N+P_SHOW_LN_SALESUPP=N+TOLERANCE=0+DESFORMAT=RTF+DESNAME=Quote.rtf
    Does it mean that the profile in our case is set to call the rdf since it has reference to ASOPQTEL.rdf in the above url?
    3) When you click on submit button do we have something like this in the jsp code: On click call ASOPQTEL.rdf. Is the report called using a concurrent program? I want to know how the report is getting invoked?
    4) If we want to customize the jsp pages can you please let me know the steps involved in making the customizations and testing them.
    Thanks and Appreciate your patience
    -PC

    1) We have a requirement to customize the Print Quote report. I searched these forums and found that this report can be defined either as a XML Publisher report or an Oracle Reports report depending on a profile option. Can you please let me know what the name of the profile option is?
    I think I posted it in one of the threads2) When I select the 'Print Quote' option from the Actions drop down in the quoting page and click Submit I get the report printed and see the following URL in my browser.
    http://<host>:<port>/dev60cgi/rwcgi60?PROJ03_APPS+report=/proj3/app/appltop/aso/11.5.0/reports/US/ASOPQTEL.rdf+DESTYPE=CACHE+P_TCK_ID=23731428+P_EXECUTABLE=N+P_SHOW_CHARGES=N+P_SHOW_CATG_TOT=N+P_SHOW_PRICE_ADJ=Y+P_SESSION_ID=c-RAuP8LOvdnv30grRzKqUQs:S+P_SHOW_HDR_ATTACH=N+P_SHOW_LINE_ATTACH=N+P_SHOW_HDR_SALESUPP=N+P_SHOW_LN_SALESUPP=N+TOLERANCE=0+DESFORMAT=RTF+DESNAME=Quote.rtf
    Does it mean that the profile in our case is set to call the rdf since it has reference to ASOPQTEL.rdf in the above url?
    Yes, your understanding is correct.3) When you click on submit button do we have something like this in the jsp code: On click call ASOPQTEL.rdf. Is the report called using a concurrent program? I want to know how the report is getting invoked?
    No, there is no conc program getting called, you can directly call a report in a browser window, Oracle reports server will execute the report and send the HTTP response to the browser.4) If we want to customize the jsp pages can you please let me know the steps involved in making the customizations and testing them.
    This is detailed in many threads.Thanks
    Tapash

  • Quote report

    Hi,
    Is there a nstandard report in SAP for quotes that tells us how many quotes that were created were completed and how many were left open. In other words a WIN/LOSS scenerio meaning some might have been converted to Sales orders while others left open because the customer rejected them.

    Hi
    You can use VA25/VA26. Here you can define the selection criteria to find list of qotations. Using SHD0 (transaction and screen variants) you can add more fields on main screen so that you can search on finer basis. But you will need to take care of performance of the report
    Reward if helpful
    Kind Regards
    Sandeep

  • Quote Report - Performance

    I have created a quote report with narratives around the opportunity, opportunity-product, and account information. The report contains a pivot table.
    I'm getting very hit or miss performance results on the report. Sometimes the report runs faster for all opportunities compared to when its prompted with an opty id from a web link.
    Any thoughts? There doesn't seem to be one column that makes a difference.
    Also this is not an analytical report as the quotes need to be generated same day.

    Hi Shaik,
    Please remove all the join select queries and use 'for all entries' varaiant of the select query. Check whether you can create and use indexes in ur queries.
    Thanks and Regards,
    Saurabh Chhatre

  • Diferencial de Alíquota - Optante pelo Simples

    Experts, boa tarde.
    Tenho um issue aqui no projeto e gostaria de uma juda de vocês.
    O business apresentou a necessidade de ter um tax code  que calcule o diferencial de alíquota (DIFAL), porém quando a condição de ICMS for a ICM0.
    Ou seja, complementar o ICMS mesmo quando ele não é devido. Encontrei pessoas com esta situação também no www.localizationforum.com.
    Até o momento já tentei diversas alternativas através da configuração, porém sem sucesso até agora.
    Algum de vocês já passou por algo parecido?
    Abraços

    Nesse caso, o que fiz foi usar o campo setor industrial (no cadastro de fornecedor) e informar lá que ele é optante por simples e via abap colocamos que se esse fornecedor fosse optante deveria seguir a regra abaixo:
    ZIM u2013 0% ICMS + Crédito de Pis/Cofins: Determinar esse IVA quando transportador é optante pelo Simples e da mesma UF do local de expedição.
    ZY u2013 0% Subst. Trib. ICMS: Determinar esse IVA quando transportador é optante pelo simples e de UF diferente do local de expedição.
    Atenciosamente,
    Antonio Oliveira

  • Issue with PTO (Paid Time Off) quota generation

    Hi All,
    We have an issue with quota generation of PTO for our employees.
    The issue goes like this:
    We have a Paid time off for employees 5weeks( 200 hrs) for employees who have worked less than 5 years.
    we have  paid time off for employees 6 weeks ( 240 hrs) for employees who have worked more than 5 years.
    we have the following logic that has to go in this config:
    -- Our fiscal year starts on Feb 1st and ends on Jan end or Feb starts which has a full week of working days. ( ex: if 01/31/2012 falls on a Thursday the following Monday which has full 5 day working week would be the end of the fiscal year).
    -- Depending on the working hours of  the employees and the date of joining for the first year ( for new hires)0041 info type the eligibility gets varied and reduced. Ex( employees who joins on start of fiscal year and works 40hrs per week schedules is eligible for 200hrs of PTO. Employees who join in the month of august and works for 35 hrs per week ( i.e mid of fiscal year) would get 91 hrs of PTO.
    I need to put this in the system. I am thinking this could be done with out tweaking PCR.I need help in configuring this in Absence quotas as to what are the things i need change in system config and how do i do it. Please help with some screen shots if possible.  I really need this to get it done ASAP. Looking forward for help.
    Thanks,
    Chowdary.

    We use TM00 schema. Can i call TS15 and TS 12  rules into TM00 acheieve my issue of quota entilements?
    Iam doing this because my businees needs to see if an employee chages his work schedule from 40 to 30 or 20 etc.. the PTO has to vary accordingly.
    As the minimum eligibility is to work for 20 hrs to avail the PTO days. If at any point the employee drops it under 20 he will not be eligible till he work any this >= 20hrs per month so the evaluation has to check periodically to update the quota availability.... I need help plz suggest ...

  • Font usage in CS6 Premiere , Open and Closed quotes??

    Hello
    I am trying to use open and closed quotes in CS6 Premiere, without any success.
    Using a Mac 10.8.5.
    When I try the alt shft [ and the shift [ it only uses one side of the quote.
    Any suggestions?
    Is this a software, settings or OS issue?
    Thank you
    I am working on deadline....
    Brian

    One side?  I'm confused.  You mean want these?
    But you're only seeing this?

  • Generate xml source file for Oracle Order Capture Print Quote

    Hi,
    I am new to xml and need to work on creating templates for Print Quote.
    I am trying to generate the xml source file for which I enabled the report in system administrator and set the output to XML and assigned to Quoting Reports responsiblity. I then assigned XML Report Publisher to the same responsiblity.
    I ran the report (Print Quote) and then I am trying to run the XML Report Publisher but I cannot get the request id in the list of values.
    I am able to generate xml source file for other reports like Printed Purchase Order etc.,
    The view output for the (Print Quote) report is as follows:
    <?xml version="1.0" ?>
    - <!-- Generated by Oracle Reports version 6.0.8.26.0
    -->
    <ASOPQTER />
    How do I get the xml source file? Or are there seeded templates that I can use to create more templates? Any help would be appreciated. Thanks Ravi

    Hi, I am in the same position - did this issue ever ger resolved by anyone. I have done a few XMLP reports successfully now using the Word add-in, but customising the Quote output differs from other standard reports.
    If you look at the data definition for Quote it is a 'dummy' definition and has no XML file attached. Does anyone know how I can get the XML format for the report output?
    Also the template uses XSL-FO ?!?!?! rather than RTF - not sure how to work with this, the Oracle docs are not very helpful in this regard either.
    Has anyone successfully managed to customise the Quote print report? Many thanks,
    Roger

  • Sales order referred to Quote - Need Suggestions

    Hi All,
    We have a scenario where is order is created with reference to a quotation. Now there is more than one quotation created for a customer therefore when users have to create a sales order they have run a report a find a quote therefor they have this report open all day to create sales order for different customers.
    My question is: Is there any way through configuration or enhancements we can help users to find a customer specific quote through an easier way.
    Thanks for inputs in advance.

    Hi!
    The only solution that comes in my mind is of creating few extra screens in Va01. The process would be as follows:
    1) User enters the SO type and Sales area.
    2) Dependent on the sales order type, the user will see a screen where he could enter the customer number and the material and press a search button.
    3) Now in the search button  you can create a report on the lines of  Va05, which will execute the query and bring out all the quotes relevant for the customer and the material and other parameters.
    4) Once the right quote is select, you can carry on va01 but will have to do a "create with reference to".
    Hope this helps,
    Abhishek

  • Unable to find Oracle quote Lines Data

    Hi,
    I have to find the query or any other data source which is getting the data for the Print quote report. I am unable to find out from where the data in report is being displayed.
    The Flow is like...
    Search for any quote.
    Click on the quote link
    One Drop poplist will be displayed. Select Print Quote
    And click on the submit button. The PDF report generated,
    Now I have to find out from where this data is coming. Can anyone help me on this.
    Thanks
    Anoop

    Anoop,
    This is a JTT page and there is no VO. If you wanna see how this report is built check out qotSCocPrint.jsp. Here data source are quoting classes. If u need any quoting related data y do u worry about source, y don't u directly hit quoting tables like aso_quote_headers_all and aso_quote_lines_all.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Unable to generate XLS output for Quoting Module

    We are using XML Publisher to generate Quote report. We need the output in XLS (Excel) format but it generates only PDF.
    We debugged the following files:
    qotSCopOverview.jsp
    qotSCocPrint.jsp
    qotSCopPrint.jsp
    jtfcrmchrome.jsp
    oracle.apps.aso.print.webui.MainCO.class
    We have set DES_FORMAT to XLS instead of PDF, however it is not generating XLS but the output is PDF only.
    We would like to know the exact JAVA/JSP file which calls XML Publisher engine, so that we could directly change the FORMAT parameter.
    Kindly let us know whether it is possible to generate XLS in this way. Your help will be greatly appreciated.
    Thanking you,
    SURESH KUMAR M R

    Finally we found the solution for this problem.
    1. Open qotSCocPrint.jsp and add below line inside <SELECT id="qotOutFrmt" name="qotOutFrmt"> statement. This line should be added after "for" loop.
    <OPTION value="EXCEL">Excel Format</option>
    We can add as many options the XML Publisher supports.
    2. Decompile oracle.apps.aso.print.webui.MainCO.class (Controller).
    Change the below line
    httpservletresponse.setContentType("application/pdf");
    to
    httpservletresponse.setContentType("application/"+quoteOutputFormat.toLowerCase());
    Take a backup of the original file, compile the java in the same directory.
    3. Decompile oracle.apps.aso.print.server.PrintQuoteAMImpl.class and change this line
    Field field = class2.getDeclaredField("OUTPUT_TYPE_PDF");
    to
    String outputFormat="OUTPUT_TYPE"+as[12].trim();
    Field field = class2.getDeclaredField(outputFormat);
    Bounce Apache and generate the Quote output in desired format.

Maybe you are looking for

  • Can I instal Reader to a drive other than C:?

    Is someone able to tell me how to instal Reader to a drive other than C:? I am trying to free up space on C: and prefer to load the Reader files into another drive, but I did not see an option to do that when downloading, and the installer just start

  • How to update my iMovie version?

    I have a Mac OS X 10.6.8 and iMovie 7.1.4. I would like to update my iMovie version. Which version is suitable for my Mac and where do I find it? Many thanks in advance!

  • BAPI_APOATP_CHECK - Check Instructions table

    Hi, 1. I am calling the FM BAPI_APOATP_CHECK in APO system from R/3 system. 2. Once the ATP check is done, the call is returned back to the R/3 System. 3. One of the Tables parameters in that FM is CHECK_INSTRUCTIONS. 4. I dont see the data coming ba

  • How do i  turn off iPhone 6 so is can update software

    trying to update iPhone6 just apple screen

  • Tomcat only for localhost?

    hi all! I'm creating for the 1st time an online shop and I'm trying to share it with other ppl from the internet. I'm telling them my IP so they can request any page from the server. I'm using Tomcat, JRE 1.5 on winXP. They can't access my site even