Pls help me in debugging the emial procedure

Hi;
I am trying to compike this procedure for sending a mail but am unable to rectify the errors..can u ppl pls help me?
DECLARE
m_body CLOB;
mas_id number;
mcust_id number;
mcustomer_name varchar2(100);
mproduct varchar2(15);
minstance varchar2(10);
mtoa varchar2(10);
mton number;
mpriority number;
massesor1 varchar2(15);
massesor2 varchar2(15);
mreviewer1 varchar2(15);
mreviewer2 varchar2(15);
mDoa date;
mstartdate date;
mreviewdate date;
mfinaldate date;
mactualdate date;
mssc varchar2(10);
mpanno number;
mtime varchar2(10);
mcustinterview varchar2(10);
minterviewdate date;
mdev_by varchar2(100);
mcust-feedback varchar2(4000);
mSr_no number;
mgar_id number;
mpoc varchar2(30);
BEGIN
select ASSESMENT_ID, CUSTOMER_ID, CUSTOMER, PRODUCT, INSTANCE, TOA, TON, REL_PRIORITY, ASSESOR1, ASSESOR2, REVIEWER1, REVIEWER2, DOA, START_DATE, REVIEW_DUE_DATE, FINAL_DUE_DATE, ACTUAL_DEL_DATE, SSC , PA_NO, TIME_ENTRY, CUST_INTVW , INTVW_DATE , DEV_BY_ENG , CUST_FB , SR_NO , GAR_ID , POC from assesment into
mas_id,mcust_id, mcustomer_name, mproduct,minstance, mtoa,mton, mpriority, massesor1,massesor2, mreviewer1, mreviewer2, mDoa,mstartdate, mreviewdate, mfinaldate, mactualdate, mssc, mpanno, mtime,mcustinterview, minterviewdate, mdev_by, mcust-feedback,mSr_no, mgar_id, mpoc, from ASSESMENT where
CUSTOMER= :P17_CUSTOMER_ID;
m_body := m_body || ' ' || mas_id || ' ' || mcust_id || ' ' || mcustomer_name || ' ' || mproduct || ' ' || minstance || ' ' || mtoa || ' ' || mton || ' ' || mpriority ||' ' || massesor1 || ' ' || massesor2 ||' ' || mreviewer1 || ' ' || mreviewer2 ||' ' || mDoa || ' ' || mstartdate || ' ' || mreviewdate || ' ' || mfinaldate ||' ' || mactualdate || ' ' || mssc ||' ' || mpanno || ' ' || mtime ||' ' || mcustinterview || ' ' || minterviewdate || ' ' || mdev_by || ' ' || mcust-feedback ||' ' || mSr_no || ' ' || mgar_id ||' ' || mpoc || utl_tcp.crlf ||utl_tcp.crlf;
apex_mail.send( p_to => :P17_TO_ID,
p_from => :P17_FROM_ID ,
p_body => m_body, p_subj => 'Test mail');
APEX_MAIL.PUSH_QUEUE;
END;
Thanks in advance
Samiya
Edited by: user10763992 on Jun 19, 2009 12:15 AM

Rephrase the select statment;
From:
select ASSESMENT_ID, CUSTOMER_ID, CUSTOMER, PRODUCT, INSTANCE, TOA, TON, REL_PRIORITY, ASSESOR1, ASSESOR2, REVIEWER1, REVIEWER2, DOA, START_DATE, REVIEW_DUE_DATE, FINAL_DUE_DATE, ACTUAL_DEL_DATE, SSC , PA_NO, TIME_ENTRY, CUST_INTVW , INTVW_DATE , DEV_BY_ENG , CUST_FB , SR_NO , GAR_ID , POC from assesment into
mas_id,mcust_id, mcustomer_name, mproduct,minstance, mtoa,mton, mpriority, massesor1,massesor2, mreviewer1, mreviewer2, mDoa,mstartdate, mreviewdate, mfinaldate, mactualdate, mssc, mpanno, mtime,mcustinterview, minterviewdate, mdev_by, mcust-feedback,mSr_no, mgar_id, mpoc, from ASSESMENT where
CUSTOMER= :P17_CUSTOMER_ID;
To:
select ASSESMENT_ID, CUSTOMER_ID, CUSTOMER, PRODUCT, INSTANCE, TOA, TON, REL_PRIORITY, ASSESOR1, ASSESOR2, REVIEWER1, REVIEWER2, DOA, START_DATE, REVIEW_DUE_DATE, FINAL_DUE_DATE, ACTUAL_DEL_DATE, SSC , PA_NO, TIME_ENTRY, CUST_INTVW , INTVW_DATE , DEV_BY_ENG , CUST_FB , SR_NO , GAR_ID , POC into mas_id,mcust_id, mcustomer_name, mproduct,minstance, mtoa,mton, mpriority, massesor1,massesor2, mreviewer1, mreviewer2, mDoa,mstartdate, mreviewdate, mfinaldate, mactualdate, mssc, mpanno, mtime,mcustinterview, minterviewdate, mdev_by, mcust-feedback,mSr_no, mgar_id, mpoc from ASSESMENT where CUSTOMER= :P17_CUSTOMER_ID;
Regards,
Anasuya

Similar Messages

  • Hi there, pls help since I upgraded the software to ios7 i have no more facetime neither in my contacts nor in settings... so i cannot activate it. anyone knows why this happened and how to fix it?thankso

    Hi there, pls help since I upgraded the software to ios7 i have no more facetime neither in my contacts nor in settings... so i cannot activate it. anyone knows why this happened and how to fix it?thanks

    Tap and hold the Home button and the On/Off buttons for approximately 10-15 seconds, until the Apple logo reappears. When the logo appears, release both buttons.
    No content is affected by this procedure.

  • Hi, i installed ios 5 for my iphone 4 and the camera function on lock screen was on the first few days , now it doesn't show the lock screen . is there any change i can do . Pls help me to solve the issue.

    hi, i installed ios 5 for my iphone 4 and the camera function on lock screen was on the first few days , now it doesn't show the lock screen . is there any change i can do . Pls help me to solve the issue.

    nishaadp wrote:
    ... it stucks with the apple logo ,  nothing works. Is anything i can do?
    See Here for
    Frozen or unresponsive iPhone

  • Please help me on Debugging the Form

    Hi All,.
    Can anyone please give the steps for Debugging the Form:
    -Actually i am trying to know what is happening when we are working with the Forms(Front End) and
    -what are the triggers firing in the backend
    - What are the Program Units are calling
    -What is complete flow,..
    -How the data get populated on to the screen from backend
    Please give the complete steps, coz i am new to the Forms & Resports.
    Please help me on this with complete steps & Documentation.
    Thanks,
    grac

    hi
    i hope it will help u too.
    here is the instructions.
    -Click on Button “Debug” on toolbar of forms, (icon like a “bug”), will active debug_mode;
    2-Execute the forms (Run);
    3-The Forms will show a windows “Forms Debugger” with 3 panels: -The first is “SOURCE PANE”, showing your source code of procedure or trigger that is running; - The second, is “Navigator Pane”, shows a tree of objects to debug; - The third is “INTERPRETER PANE”, where you do pl/sql code to run; Go to second frame(Navigator Pane) and expand node “+MODULE”, select your forms module(click on it);
    4-Open the tree, navigate until your trigger that you want to debug (or to debug ALL CODE select menu “DEBUG” -> “Trigger” and choose Location=”Every Statement”, and write “raise debug.break;” on field trigger_boddy)
    5-If you want to debug a specific trigger of a text_item, go to block, select the text_item, then select the trigger, the source code will show in “source pane”;
    6-Go to menu “DEBUG” -> “TRIGGER” and write “raise debug.break;” on field trigger_boddy (or do a double click over a line code that can be debuged); When the forms run, and run this trigger, the run mode will be “suspend” and forms return to this page of “DEBUG”, where you can view values of any variable, values of block_itens, values of SYSTEM variables and go to a “step by step” running your code line to line, and view changes on variables;
    7-In this step, you setup the debugger, to run now, click on red “X” to close debugger, the forms will be run;
    8-You go run until the code marked to break; The cursor will stop on first line that is running (Source pane) with a signal => on the line;
    9-Now you can run line by line; entire block or return to normal run (see buttons enables);
    When debugging, explore the Navigator, and see anothers variables values like :system.current_record; :system.record_status; :sytem.message_level; Global variableshttp://www.orafaq.com/forum/t/140073/0/
    sarah

  • Pls help   how to check the condition in java server faces.....???

    Hi All
    I have strucked with code pls help....
    How can i check the codition in java server faces.....?
    like in my Application when user provides the in put like some state name in the next page i have to display some url for that state .......if he provide some other state name it will be different url .....pls help me how can i do that,,,,,,???
    thanks in advance..

    There are certainly ways to do that. E.g. using the rendered attribute, using conditional statements in EL, using a specialized getter for that (lazily loaded if necessary), etcetera. But your functional requirement is unclear, so I can't go in detail with that.
    In the future, please try to write normal English sentences. Don't write like SMS talk and save the periods and commas. The more effort you put in your question, the more chance you will be taken for serious and the more effort others will post in their answers.
    Also, in the future, JSF related questions should be posted in the JSF forum.
    Edited by: BalusC on 12-aug-2008 7:47

  • My macbook air does not start up successfully. when i turn on the power, it just turn blue after the apple logo, how to reboot or repair,.. pls help me what is the buttons command... thanks in advance.

    pls help me how to reboot my macbook air,.. because starting it up was not successful. the screen just turns blue after the apple logo appeared.

    i know loads of people who have had this problem including me.  The Java script update apparently had some virus that has overloaded the start up disk.   I took to apple who said i have to have the machine rebuilt but first i have to go to a data recovery company to get back everything that was on it.  Data recovery company have quoted me nearly £1000. 

  • PLS HELP - Column value missing when calling procedure from Oracle OLEDB provider

    When calling procedure 'sp_a(?,?,?)' from SQL_PLUS and using
    DBMS.OUTPUT to print the result
    It returns a result set as
    C0, C1, C2
    But When I call the same procedure 'sp_a(?,?,?)' with same
    parameter value from MS VB6,
    It returns the a result set as
    C0, Null,C2
    The 2nd value became Null.
    Any ideas?
    Please Help.

    See http://oracle.ittoolbox.com/groups/technical-functional/oracle-apps-l/forms-personalization-execute-a-procedure-1778674

  • Pls help me to find the smartform name for RMA REQUEST(RMA)

    Hi Experts,
    Pls Tell me how too find the smartform name for RMA REQUEST(RMA)
    Pls help
    Thanks and regards
    Jaya

    WHat is RMA REQUEST form please ellobrate your query
    the smrat form tcode is SMARTFORMS.....you can try

  • Back up problem. Pls help me to solve the problem.

    Dear Apple support team,
    When I connect ipod to Itunes, the process of verifying and backing up is too long. And Itunes makes all programs such as firefox, yahoo messenger... run slowly. After syncing, the notice is appeared as below:
    Therefor, I do not know whether the Itunes create backup or not
    Pls help to check and solve this problem.
    Thanks for your support
    Lolly

    I can't give you the adequate support, but maybe the iTunes forume can: https://discussions.apple.com/community/itunes/itunes_for_windows / https://discussions.apple.com/community/itunes/itunes_for_mac

  • Help required in executing the stored procedure and capturing the responce

    Hi,
    I have to execute a stored procedure in oracle database and if it successful then have to create a status IDOC.
    The stored procedure may throw an exception(it is not an out parameter), in such cases i should capture the exception as part of the response message and send this information while creating the status IDOC.
    i would like if the below is possible.
    As the stored procedure is not returning( this means if you execute the procedure manually it will display the result), will it be possible to capture the result which has the exception details?
    any direction to this will be highly appreciated.
    Many thanks.
    Regards,
    Rahul

    @Bhaskar,
    i need to execute the procedure by sending the input data from a file and capture the result after executing the procedure to create a status idoc
    im not sure how the provided links helps me here.
    i m not looking for any look ups. i would like to know is there any way that we can capture the result after executing the database procedure?
    Edited by: Rahul_10416 on Dec 5, 2011 10:07 PM

  • Pls help me to check the imp par file sytax

    hi, buddy:
    here is a imp par file for a 8i database:
    FROMUSER=(B)
    TOUSER=(B)
    FILE=${TMP_FS}/XXX_imp
    BUFFER=400000000
    LOG=XXXXXXX
    TABLES=(A.table1, A.table2.......)
    IGNORE=N
    COMMIT=Y
    I import selected tables from schema A, and all objects from B.
    is that OK, just double make sure. pls help have a check
    thanks a lot
    Jerry

    Doing a table level import will not import anything other than the tables listed (including database objects like views, packages, etc).
    If you want to import all object from schema B into schema B on the target db, and only selected tables from schema A in the source DB, into schema A then you are going to need to do this in 2 steps. First do the import fromuser=B touser=B. Then do the import again with fromuser=A touser=B tables=a.table1, a.table2...

  • I recently bought a mac book pro sept 2011 and i don't know how to reset my ichat pls help am new to the mac n i feel lost

    i recently bought my mac book pro this month and iam stuck with ichat i want to reset it and i dont know how to
    pls help me am new to mac

    HI,
    Welcome to the    Support Communities
    It really depends on what you have done so far.
    The Simplest is to open iChat go the word iChat in the Menu Bar (Drop Down Menu)
    Select Preferences.
    In there select Accounts.
    Highlight any account in the list you no longer want (you can't delete the Bonjour one)
    Once highlighted press the minus button at the bottom of the list.
    6:24 PM      Monday; September 26, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • After upgrading on ios 6 i have problems with vpn connection..pls help if someone have the same problem

    problem with vpn connection after upgrading on ios6.pls help

    I've never been able to share FaceBook posts nor seen the option using the iOS FaceBook app regardless the FaceBook app and iOS version. I can Like and I can Comment, and if I select a link or video to view under iOS 6, I can use the Share option for the link or video, but not for a post.

  • Pls help me to recreate the OKR of Ideapad U330

    I changed my driver C and the OKR is no longer working. And now, I install a fresh Windows in my driver C. And I would like to make a Recovery for my fresh windows. How could I do? Thanks U very much!

    Dear Ortegalius,
    Now, I can't access the OKR function. When my U330 is in turn off status. Now, my OKR button action as the power button. I have just change the EISA which have size 15GB to the hidden function. And this is my disk managerment pics. Please help me to recreat the Recovery parttion. Thanks U very much
    Link to Picture
    Moderator Note; embedded picture larger than 50KB converted to link. Forum Rules.
    Message Edited by andyP on 05-07-2009 05:30 PM

  • **Pls Help** - Error during migrating the 3.x daa source

    Hi All,
    When iam migrating the 3.x data source, iam geeting the below error:
    <b>
    <b>The OLAP source 0TCT_DSXX for source system BP1CLNT100 not present</b></b>
    And, once the migration has completed successfully, in the Data wareshouse workbench, do we see the InfoSource & Update rules aswell or not?
    Thanks,
    Nisha

    Hi Srilatha,
    Thanks for helping me earlier with the Statistics stuff.
    Need, your help again.
    Please tell me the use of the object "0tctprcschn_0tctimprtnc" - Importance.
    Used as attribute to many Characteristics... Process chains / Queries etc..
    It has value of 50 / 100 ... how do we use this value?
    Please let me know.
    <u>[email protected]</u>
    Thanks,
    Nisha

Maybe you are looking for

  • Data clusters

    Hi experts, Is there anyway to see the data/ structure of the data stored in a database cluster? I am actually getting a mismatch error when using IMPORT statement. SO I would like to check if the structure I am using are the same. This is Kinda urge

  • AMSCheck command doesn't seem to go through

    With Adobe Media Server 5, we'd like to use the command "AMSCheck" to check the server status, etc., but this command doesn't seem to go through. We tried searching for it using the "find" command, but there was no result. [root@hostname /]# AMSCheck

  • JPEG File Compression

    I just found out that when raw files are converted (via the export function) to jpeg, the file compression is extremely low. MY posted online picture quality certainly reflects the low jpeg file size. When I export pictures, I get several choices, bu

  • EM Grid and virtual IP's (like used in h/w clustering)

    Hello, I have read on metalink that Grid 10.1.x does not support the use of virtual IP's like when are using hardware clustering. Anyone have a successful work around for this? I have played with a second listener using the physical IP...but I still

  • MySelf system

    We have done a copy of one of our BI systems. After the copy we changed logical system name, and ran BDLS to reflect this. But..now the MySelf system still points towards the system we copied from! The technical name has changed, but when I try to ac