How can i disply the error in my forms which occurs from plsql package

Dear all
i am using 10g forms.
i have a package and in the pkg i am reading data from flat file using UTL_FILE and comparing with what user input in the form .
If that does not match then it is raising errors . but how can i display those errors in my forms .
Let say in my PKG The error is "Account no does not match " . this error message i wnat to show in my Forms .
For the error i have created one block :error.err_dtl.
I want to show here in :error.err_dtl.

Hello,
Several solutions:
You can write a procedure or a function in that package that returns a Boolean and/or an error message.
You can also, in your package, raise the RAISE_APPLICATION_ERROR(), then trap this error in the Forms calling code, via the DBMS_ERROR_CODE and DBMS_ERROR_TEXT variables.
Francois

Similar Messages

  • How can we create the error log in a ABAP program

    Hi all,
    How can we create the error log in a ABAP program
    Thanks,
    srinivas.

    Hi,
    Refer to FM's in the Function Group SBAL. For a change most of the FM's have been well documented. Also have a look at the DEMO pgms. Se38---->SBALDEMO & F4.
    Regards
    Raju Chitale

  • How can we view the error message numbers in the web ui?

    Dear all,
    How can we view the error message numbers in the web ui? It gives the error but no number.  It is possible to debug in web UI so how can we accomplish this?
    Thanks,
    FK

    Hi  Fakhan,
    You can absolutely do that.
    Check the class: CL_BSP_MESSAGES
    Also if you want to find out the exact Message Class and Message Number, go to table T100, type text in field TEXT, you will get Message Class and Message number in fields ARBGB and MSGNR respectively.
    I hope this helps.
    THanks
    Vishal

  • How can I correct the error Write Permission Open so that I can finalize a project in I Movie?

    How can I correct the error Write Permission Open so that I can finalize a project in I Movie?

    Post in the iMovie forum.

  • Adobe Reader 9.5.3 error code of 1635.  How can I delet the error?

    I have Adobe Reader 9.5.3 that gives me an error code of 1635.  This error occured after downloading an adobe up-grade and then deleting the up-grade.  Prior to the up-grade printing an other functions wer ok.  How can I delete the error?

    I have found this, that may be helpful:
    Try using the Microsoft Fix it wizard, available at http://support.microsoft.com/kb/971187. The wizard updates the Windows registry so that you can usually uninstall previous versions of the program, or install or update the current version successfully.
    Disclaimer: Adobe does not support third-party software and provides this information as a courtesy only.

  • How can i see the error message?

    hi, i have written a procedure in the database 10g, with my own error, and it works. but, when my exception occurs, i want to see my ora-20000-message in the footer of the isql-screen in the same way like normal ora-errors do it. because, now the code handles the exeption, but i can not se any message.
    thx.
    (zahl1 in number, zahl2 in number)
    as
    maxvertrag number;
    ergebnis number;
    myerror exception;
    pragma exception_init(myerror, -20000);
    begin
    select max(vertragsnr) into maxvertrag from robertl.tblugovor;
    ergebnis := zahl1+zahl2+maxvertrag;
    if ergebnis>104
    then
    RAISE_APPLICATION_ERROR (-20000, 'Result is > 104!');
    end if;
    exception when myerror then
    ergebnis:=0;
    end;

    This is answered in how can i se the error message?.
    As a side note, you generally don't need to cross-post in these two fora, as many of us frequent both.
    Cheers, APC

  • How can i fix the Error "The application failed to initialize properly (0xc00001d)...."

    How can i fix the error "The application failed to initialize properly(0xc00001d). Click Ok to terminate the application"?
    I've tried to re-install twice the program and also restarted my PC several times and it still shows this error whenever i try to run it.

    Read the other threads on the same topic, or just install the 12.0.1 update.

  • How can i solve the error (-3221)?

    How can i solve the error (-3221)?

    You get this error because there is no App Store in your country. Are you in Iran?  Unless you can legitimately establish an apple ID in another country then there is nothing you can do to fix this

  • How can we take the cursor to a different sub-screen from the BADI?

    Hi,
    We have to do some validation on Header, Operation and Relationship of any work order (IW31, IW32). We have checked that validations can be done at BADI WORKORDER_UPDATE in the method u2018AT_SAVEu2019.  But user wants us to take the Cursor back to the field and screen due to which the error is coming. How can we take the cursor to a different sub-screen from the BADI?
    Thanks in Advance,
    Pranav

    You 'ran out of room' because you tried to put your entire question into what is the 'Topic line' of the post.
    This is a fairly common error, as a scan of the topic list will show, and likely due to a design flaw in the layout of the composition page.
    Most posters who make this error do so on their first post, and are able to avoid a similar misstep on their second and subsequent questions.
    Regards,
    Barry

  • HOW CAN U CORRECT THE DATA IN UR FILE WHICH CONTAINS 1 LAKSH RECS

    Hai Frnds,
    i Attend an interview they asked this questions can u know the answeres . tell me .
    In File to file scenario how can we reprocess records which failed records.
    HOW CAN U CORRECT THE DATA IN UR FILE WHICH CONTAINS 1 LAKSH RECS
    Thanks in advance
    thahir

    Hi,
    Refer these links:
    this might help you
    Generic Approach for Validating Incoming Flat File in SAP XI - Part 1
    Generic Approach for Validating Incoming Flat File in SAP XI - Part 1
    validating against schema file for the output XML file
    Informing the sender about bad records
    Regards,
    Nithiyanandam

  • How can I get the attributes details like user name, mail , from sAMAccount csv or notepad file through powershell or any other command in AD?

    How can I get the attributes details like user name, mail , from sAMAccount csv or notepad file through powershell or any other command in AD?

    Ok what about If i need to get all important attributes by comparing Email addresses from excel file and get all required answers
    currently I am trying to verify how many users Lines are missing , Emp numbers , Phones  from AD with HR list available to me.
    I am trying to Scan all the AD matching HR Excel sheet and want to search quickly how many accounts are active , Line Managers names , Phone numbers , locations , title , AD ID .
    these are fields I am interested to get in output file after scanning Excel file and geting reply from AD in another Excel or CSV file
    Name’tAccountName’tDescri ption’tEma I IAddress’tLastLogonoate’tManager’tTitle’tDepartmenttComp
    any’twhenCreatedtAcctEnabled’tGroups
    Name,SamAccountName,Description,EmailAddress,LastLogonDate,Manager,Title,Department,Company,whenCreated,Enabled,MemberOf | Sort-Object -Property Name
    Can you modify this script to help me out :)
    Hi,
    Depending on what attributes you want.
    Import-Module ActiveDirectory
    #From a txt file
    $USERS = Get-Content C:\Temp\USER-LIST.txt
    $USERS|Foreach{Get-ADUser $_ -Properties * |Select SAMAccountName, mail, XXXXX}|Export-CSV -Path C:\Temp\USERS-ATTRIBUTES.csv
    #or from a csv file
    $USERS = Import-CSV C:\Temp\USER-LIST.csv
    $USERS|Foreach{Get-ADUser $_.SAMAccountName -Properties * |Select SAMAccountName, mail, XXXXX}|Export-CSV -Path C:\Temp\USERS-ATTRIBUTES.csv
    Regards,
    Dear
    Gautam Ji<abbr class="affil"></abbr>
    Thanks for replying I tried both but it did not work for me instead this command which i extended generated nice results
    Get-ADUser -Filter * -Property * | Select-Object Name,Created,createTimeStamp,DistinguishedName,DisplayName,
    EmployeeID,EmployeeNumber,Enabled,HomeDirectory,LastBadPasswordAttempt,LastLogonDate,LogonWorkstations,City,Manager,MemberOf,MobilePhone,PasswordLastSet,BadLogonCount,pwdLastSet,SamAccountName,UserPrincipalName,whenCreated,whenChanged
    | Export-CSV Allusers.csv -NoTypeInformation -Encoding UTF8
    only one problem is that Manager column is generating this outcome rather showing exact name of the line Manager .
    CN=Mr XYZ ,OU=Users,OU=IT,OU=Departments,OU=Company ,DC=organization,DC=com,DC=tk

  • How can I print the date and time in a photo from iPhoto

    How can I print the date and time in a photo from iPhoto

    You want to print them on their own? Can't be done. WIth the photo? Install this
    http://www.iborderfx.com/iborderfx/

  • How can i transfer the balance of iTunes form one to another if i haven't spent?

    how can i transfer the balance of iTunes form one to another if i haven't spent?

    You can't transfer a balance between accounts, it can only be used to buy content for the account that it's on (it also can't be used to gift content to another account)

  • How can I check the open-mode of an opened file from the file refNum?

    How can I check the open-mode of an opened file from the file refNum?
    Especially whether a file is opened as read-only or write-only? I haven't found any VI in the panel with file VIs.
    Thanks for any hints!

    Check this post. Probably you can use a kernel.dll call.
    http://forums.ni.com/t5/LabVIEW/file-date-created/m-p/109836

  • How can I enlarge the font size in ical which became smaller overnight?

    How can I enlarge the font size in ical which became smaller overnight?  We have a MacBook Pro.  Why did this happen?
    Ruth and Roger

    I finally got the font size issue remedied. I somehow had an add on to make the print large in the address bar. But I have saved your tip to a folder for future reference and thank you so much.
    Now if someone could just help me with this crashing business. I can't isolate it because nothing is constant. I unselected hardware acceleration and this is the longest I've gone without a crash, but I'm not thinking I've got it solved.
    This is on an old laptop running XP. Firefox was running just fine until yesterday morning when I uninstalled RoboForm and installed LastPass. After that I started getting the crashes, yet I'm not pretty sure they have nothing to do with LastPass itself.

Maybe you are looking for