To capture the error after processing LOGON function

Dear friends
I want to capture the exception after the execution of the LOGON function. Scenario i need to capture is when the user account been locked, password expired and password will expire in N days.
I made the user account locked and password expired through backend.
In the when-button-pressed trigger I make a call to the procedure where the Logon function is coded
Function P_CONNECT (io_message IN OUT varchar2)
Account_locked EXCEPTION;
Password_expired EXCEPTION;
Password_will_expire EXCEPTION;
PRAGMA Exception_Init (Account_locked, -28000);
PRAGMA Exception_Init (Password_expired, -28001);
PRAGMA Exception_Init (Password_will_expire, -28002);
begin
begin
Logon( L_username,
L_string,
FALSE);
exception
when Account_locked then
io_message := 'acc_loc';
return FALSE;
end;
if form_success then
/* code with certain activities*/
end if
end;
During the execution of this procedure, i tried to capture the account_locked for example. I couldnt.
Then I created on_error trigger at the form level. I couldnt able to capture as well.
Also I need the form errorcode (FRM 4....) equvalent to -28000. -28001, -28002.
Or any other suggestions are welcome
Thanks
Sada

Hi,
I got struck with the similar case. i.e.., if the user enters the login details incorrectly or login details are not provided then I've used exec_sql package. This package is been used to check whether a connection can be established or not. If the connection cannot be established then I'll pop up a message saying that the login details are incorrect.
Though my case is different than that of yours, but i think that this will give u some idea to kick start to your solution.
Regards,
Alok Dubey

Similar Messages

  • How to capture the errors, while processing the transformations

    Hi,
    i need to capture all errors, this includes invalid SQL text, short dumps related to SQL exaction etc.., while processing transformation.
    I need to write code to fill error handling structures like(monitor table).
    It sholud dynamically update the all errors to Monitor table, while processing the Transforamtions.
    Please advice how to do this.
    Thanks & Regards
    MRK

    Hi Rajani,
    the code goes some this like this
         RESULT = SOURCE_FIELDS-TXTMD5.
         TRANSLATE RESULT TO UPPER CASE .
         CONDENSE RESULT NO-GAPS .
         READ TABLE I_SECTOR INTO I_SECTOR WITH KEY
                                   PRODUCT = SOURCE_FIELDS-/BIC/Z_IPROD
                                   ISTATATTR = RESULT .
         IF SY-SUBRC NE 0 .
          MONITOR_REC-MSGID = 'ZMESSAGE'.
          MONITOR_REC-MSGTY = 'E'.
          MONITOR_REC-MSGNO = '001'.
          MONITOR_REC-MSGV1 = 'ERROR, SECTOR'.
          MONITOR_REC-MSGV2 = SOURCE_FIELDS-TXTMD5 .
          MONITOR_REC-MSGV3 = SOURCE_FIELDS-/BIC/Z_IPROD.
          APPEND MONITOR_REC TO MONITOR.
         RAISE EXCEPTION TYPE CX_RSROUT_ABORT.
         ENDIF.
    for this you need to create message class called ZMESSAGE in SE91 tcode
    Hope this helps
    PV

  • HI All Capturing the error records in an internal table

    Hi All,
             I am retrieving the data from application server .
            My requirement is to :
         Check if the Measurement Point Id provided in the file is a valid one or not. Query the table EUITRANS by passing the Measurement point Id in the EXT_UI field. If the query is successful, then proceed to next step. If not, log it in the error log with error message DM-001 and proceed with the next Measurement point id.
    so i nee the code for capturing the error log with error message.
    pls provide me ASAP.
    Thanks&Regards,
    Bharat

    Hi,
    if you like do display all messages online have a look at FM:
    'MESSAGES_INITIALIZE'
    'MESSAGE_STORE'
    'MESSAGES_SHOW'
    If you want to write application log look at function group SBAL modules BAL_LOG*. There is also a good documentation in SAPDOCU..
    Kind regards,
    HP

  • How to capture the error messages from incorrect session?

    Hi SDNs.,
    i am using BDC Session method to update transaction FB01. So my job runs daily. here i want to capture the error messages and i want to send it to mail.  Can i capture the unprocessed records???
    i think FM <b>SO_NEW_DOCUMENT_ATT_SEND_API1</b> used for sending mail? but how to capture mes or records?
    or Is there any other way to Do it???
    Thankning you.,
    Ram

    Hi Ramakrishna,
       Once you create the session, Process the session using
    the report RSBDCSUB using submit statement.
    It would list out the erroneous records.
    Hence, while submitting, just say submit RSBDCSUB in background and export output list to memory.,
    Then you can retrieve the list from memory using the FM LIST_FROM_MEMORY into the internal table and finally send the email by the fm you have already mentioned.
    Regards,
    Ravi

  • Need help in finding the root cause the error 'Could not find function:'

    Hi fokls,
    In my workflow notification , when I click on the notification to process it , it says ' 'Could not find function:' error.
    I found the this message is coming out from the Fnd_new_messages table from the message_name 'FND_FUNCTION_NOT_FOUND'.
    Here are my questions ...
    1. FND_FUNCTION_NOT_FOUND - Is it a oracle Seeded message ?
    2. If so the error I am getting is a oracle product Bug ?
    And In between , I am getting this error for few transaction only. ( out of 100 , i am getting this error at the rate of 5 per 100 ... or less)
    3 .If its a oracle product bug then , how is 95 out of 100 transaction are succssfully wokring ?
    4. If is a custom bug , how it os not though for some other 95 transaction ?
    5. Can I expect it as Data issue ? If so what kind of data issue.
    Folks , any kind of info will be really , realy helpful for me ... please let me know your inputs for me.
    Thansk to all in advance
    Raghu

    In the error message 'Could not find function:' after colon what function name it is giving.
    'FND_FUNCTION_NOT_FOUND' is a seeded message only.
    As you are saying the error was throwing only for 5% or less notifications, is the error throwing for same kind of notifications? I mean the item type and message are same for these erroneous notifications?
    It can be that some function in particular type of workflow is error-ed out does not exists, when responding to those kind of notifications it might be throwing error.
    Please check that.
    Edited by: sarojak on Nov 12, 2010 6:16 AM

  • Logic to capture the Error records

    Hi All ,
               I have one scenario like this ,one report program runs in R/3 system to fetch some data from BW system .
    It uses Remote FM to do this .
    The problem is the FM has got error table with error msgs , if there is any problem in fetching the data in R/3 system.
    But when program is excuted it fails after returning to R/3 system with  error msg in WHEN OTHERS and stops there itself
    Instead it should proceed with other program codes and then
    finally output the error records .There is already subroutine in the program to display the erros records in last.  How do i do it programatically
    CALL FUNCTION 'ZC_BW_FIREFIGHT' DESTINATION p_r3rfc
          EXPORTING
            mrp_planning_scenario       = p_mrppln
            error_indicator             = p_info
          IMPORTING
            r3client                    = w_r3client
            r3instance                  = w_r3instance
          TABLES
            materials                   = t_bwmat
            plants                      = s_plant
            firefighting                = t_firefight1
            error_msgs                  = t_r3_errors
          EXCEPTIONS
            no_material_data_found      = 1
            no_storage_loc_data         = 2
            proc_complete_no_rcds_found = 3
            OTHERS                      = 4.
        CASE sy-subrc.
          WHEN 0.
            PERFORM f4020_confirm_fm_executed.
          WHEN 1.
            MESSAGE e999 WITH
                  'R3: No material data found for materials/plants.'(049).
          WHEN 2.
            MESSAGE e999 WITH
                  'R3: No storage location data for materials/plants.'(050).
          WHEN 3.
            MESSAGE e999 WITH
                  'R3: ZC_BWFIREFIGHT processed, but no data found.'(051).
          WHEN OTHERS.
            MESSAGE e999 WITH
                  'R3: ZC_BWFIREFIGHT FM call to R3 failed'(052).
        ENDCASE.
      ENDIF .
    ENDFORM.                    " f4010_call_zc_bwfirefight
    <REMOVED BY MODERATOR>
    Kumaran.C
    Edited by: Alvaro Tejada Galindo on Feb 25, 2008 2:46 PM

    Try with the following method
    DATA : bapireturn TYPE TABLE OF bapireturn WITH HEADER LINE.
    CASE sy-subrc.
      WHEN 0.
        PERFORM f4020_confirm_fm_executed.
      WHEN 1.
        CALL FUNCTION 'BALW_BAPIRETURN_GET'
          EXPORTING
            type                       = 'E'
            cl                         = <msgclass>
            number                     = '049'
            par1                       = 'R3: No material data found for materials/plants.'
          IMPORTING
            bapireturn                 = bapireturn
          EXCEPTIONS
            only_2_char_for_message_id = 1
            OTHERS                     = 2.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ELSE.
          APPEND bapireturn.
          CLEAR bapireturn.
        ENDIF.
      WHEN 2.
        " Do Simillarly
      WHEN 3.
        " Do Simillarly
      WHEN OTHERS.
        " Do Simillarly
    ENDCASE.

  • Capturing the error records

    The SDM interface runs in batch. A pop up message will not be useful.
    If errors occur, they can NOT be re-sent manually the next day after the data issue is corrected. The extract needs to be changed to automatically try to resend those that are captured in the ERROR table and include them in the next day. The sales for those items will fall in the current day, but that is okay.

    If you are going to post your spec, then you might as well post all of it...

  • About the Error after applying product key for bing search rest service

    For the Project Siena I ve created the product key for Bing search rest service and i applied that product key which is valid even though i got the error when i click TRY button .can anyone please help me to find the solution
    There was an error in retrieving sample data. Error : Unable to reach service. Please check if your service connector configuration is valid and you have network connectivity

    Hello,
    Thanks for your post. I am jotting down few steps to get the Bing search account key (you may have completed many/all of these).
    To add Bing Search Service, go to
    https://datamarket.azure.com/account/datasets and search for "Bing Search API". After you have subscribed to the service, navigate to "My Data" and click on Use. Click on Show and copy the
    Primary Account Key information.
    Note if your key contains a special character like / or = then double clicking on the content will copy the key partially.
    Make sure you have copied the full key correctly. If the is incorrectly pasted in Siena's Primary Account Key field, you will get the error below:
    This is similar to the error you have posted. Since the Primary Account Key is masked you can never be sure the contents are correct. It's best to clear the field and paste the key again.
    If you still face the issue, please post your machine configuration (x86/OS) information.
    Hope this helps,
    -Karthik
    This posting is provided "AS IS" with no warranties and confers no rights.

  • Capturing the error messages generated by ALV Grid

    Hi,
    I have a ALV Grid, and a field date of DATS type.
    If i enter wrong date a message pops up with invalid date entry.
    How can i capture this error message in ALV Grid.

    Hi,
    Instead of displaying the error message directly, capture the message into a string variable and display it along with the grid display.
    Thanks,
    Sri.

  • Error after process a Tabular model

    Hi,
    When I process a Tabular model, sometimes I have the next error
    "Error moving file '\\?\G:\filename.80.det.xml_TEMP_3804' to file '\\?\G:\filename.80.det.xml': ." I see in a XEvents trace that process finished ok and then throw the error.
    Does somebody know the reason?
    Regards,

    Hi Numer04,
    It's hard to give you the exact reason that cause this issue. However, you can troubleshoot this issue by using the Windows Event logs and msmdsrv.log.
    You can access Windows Event logs via "Administrative Tools" --> "Event Viewer".  SSAS error messages will appear in the application log.
    The msmdsrv.log file for the SSAS instance that can be found in \log folder of the instance. (C:\Program Files\Microsoft SQL Server\MSAS10.MSSQLSERVER\OLAP\Log)
    Here is a blog about data collection for troubleshooting Analysis Services issues, please see:
    Data collection for troubleshooting Analysis Services issues
    Regards,
    Charlie Liao
    TechNet Community Support

  • How to capture the values after applying filter in ALV.

    Hi,
    I have an ALV in my application with 10 projects displayed. Out of those 10 projects, 5 projects have banking as industry.
    when you filter the ALV based on industry banking I get 5 projects .In run time  how  can  I capture only these 5 projects. when I debugged and saw the ALV table node is holding 10 prj not 5 prj.
    How can  read only those 5 values. Kindly help me out with sample code.
    Thanks,
    Priya

    Hi,
    The class name is correct - CL_SALV_WD_FIELD. When you refer the model object(CL_SALV_WD_CONFIG_TABLE-IF_SALV_WD_FIELD_SETTINGS) this will return the field for which
    you have applied filter by passing the field name.
    Before you try out this approach, check the ALV event ON_CELL_ACTION fro that column name to capture the filtering value. Based on this loop at the table where field eq <<filerting value>> and get the filtered records.
    As you have get_static_attributes_table it deosnot return the filtered values.
    Regards,
    Lekha.

  • Oracle 10g Taskbar not displaying to see the error after running the form in explorer

    Hi
    1- When we compile and run the form in forms 10g output in Internet Explorer and Avant Browser. can not see teh taskbar to see the error message, how to check the error when you run the forms in explorer there is no taskbar under the forms
    2-  When we compile and run the form in forms 10g output is displayed. ... Background has an "Oracle logo" where is the location of this Logo
    Watiing for reply thanks.

    Leopard007 wrote:
    1- When we compile and run the form in forms 10g output in Internet Explorer and Avant Browser. can not see teh taskbar to see the error message, how to check the error when you run the forms in explorer there is no taskbar under the forms
    Check the Module property: Console Window.  If this property is null, then the Status Bar will not be displayed during runtime.  You have to set this property for each form.
    Leopard007 wrote:
    2-  When we compile and run the form in forms 10g output is displayed. ... Background has an "Oracle logo" where is the location of this Logo
    The "Splash.gif" is located in the frmall.jar file. What is it you want to do?  Do you want to use a different spash image during application startup?  If yes, you can display a different startup splash image by using the splachScreen= parameter in the formsweb.cfg file.  The replacement .gif file must be located in the directory specified in the imageBase= parameter.  Keep in mind that this file will need to be signed or you will get a security warning.
    Craig...

  • Error after creating a function using SE37

    Hello friends
    I have created a simple function (remote enabled).
    Syntax check says everything is ok.
    When I try to Activate, I get the following error message.
    Program SAPLZBAPI_CONFIGDNA_INSERT
    REPORT/PROGRAM statement missing, or program type is I (INCLUDE).
    The name of the function that I have created is ZBAPI_CONFIGDNA_INSERT.
    However, it is complaining about a program SAPLZBAPI_CONFIGDNA_INSERT.
    I have created BAPIS before and so I am sure that the steps I have created are ok.
    I even tried creating the same BAPI with different names and still the same problem.
    Any feedback will be greatly appreciated.
    Thanks
    Ram

    in the TOP Include the statement
    FUNCTION-POOL (<b>Name of function Group</b>).
    is missing.
    to Reach to th eexact point.
    to to attibutes tab of your FM
    double click on Program Name.
    double click on include ending with TOP.
    Declare the statement in the TOP include.
    amandeep.

  • BPM - Send Step to HTTP - How to capture the error?

    Hi gurus,
    I have a BPM with a Send Step that connects to an http server. I need the following:
    - If the HTTP returns code 200, end the BPM
    - If the HTTP returns another code, wait 5 minutos and try the send step again.
    I've made a LOOP with a flag. Inside the LOOP I have a BLOCK with an exception branch.
    In the send step I put in the field "system error" to go to the exception branch and in the exception branch i'm setting my flag to do the loop one more time.
    My problem is that the Send Step is not triggering the exception branch! The http returns 405 or 504 and it continues like everything is okey.
    Can you help with this?
    Thanks in advance !
    MD.

    Hi Ramakrishna,
       Once you create the session, Process the session using
    the report RSBDCSUB using submit statement.
    It would list out the erroneous records.
    Hence, while submitting, just say submit RSBDCSUB in background and export output list to memory.,
    Then you can retrieve the list from memory using the FM LIST_FROM_MEMORY into the internal table and finally send the email by the fm you have already mentioned.
    Regards,
    Ravi

  • PO Creation error after processing bid invitation

    Hi Guys,
    I need small help from you. I have created one bid invitation with out shopping cart. I had processed the bid invitation. Few vendors have submitted their bids. Purchaser had accepted those bid and approver had approved those bids. Now I have the option to "Generate PO" and "Create contract". If I click on Generate PO button I am getting an error that “Purchase order has not been created”.
    I am unable to process further. Please help me. I have maintained PO number range in both the systems means in R/3 and SRM. Transaction types are also maintained in both the system. What else settings I need to configure?
    if i click on "Create contract" buttion then I am able to create Contract in SRM system in held state. When this Purchasing contract will be copy to Backend system?  once I chance the Contract status to release then this will be copied to backend?
    My requirement is to create Purchase Order ?
    Regards
    Apparao a

    Hi
    Please provide your system version details.
    In the bid invitation, the Follow-On Document field must contain the entry Purchase Order or Contract.
    · In the case of bid invitations that are created manually, purchase orders are local only (product category is not relevant). In the case of direct material purchase orders, a copy (that cannot be changed) is created in the backend. Whether or not it concerns direct material needs to be stated in the item details in the bid invitation. You must specify the goods recipient and purchasing group. Also:
    -> Outline levels can be displayed in a local purchase order
    -> Bid invitation texts, bid texts, and documents are transferred to the purchase order (however not internal notes).
    Also refer to this link for configuartion settings ->
    http://help.sap.com/saphelp_srm50/helpdata/en/d3/133dcd5641b244a60578baa996a597/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/38/4cc5376848616ae10000009b38f889/frameset.htm
    Hope this will help.
    Please reward suitable points, incase it suits your requirements.
    Regards
    - Atul

Maybe you are looking for

  • How can I have a picture overlap 2 pages?

    I'm having trouble having a picture overlap on two neighboring pages. Right now the picture shows on one page with the other half blanked out. Would appreciate any help figuring this out? This seems possible as it was done in Education event.

  • How to get variable value in BI 7.0 Workbook (Excel 2007)

    Dear experts,   We are creating workbooks with BI 7.0 BEx Analyzer Addon 7.10 (Excel 2007). And we'd like to get the variable value (that are passed to the backend using the variable screen) so that we can reuse it as an input value for planning func

  • Travel expenses posting for Intercompany

    Hi, Pl advised how do we post a travel expenses for an inter-company transaction. This is an integration between project management module and travel expenses as well as FI/CO and Travel Management System. Company code EC01 and EC04. Resource from EC

  • Web AS restarts due to classes being loaded multiple number of times

    Hi, We are developing a custom application which uses Dynpro for UI and EJBs/java for business and DAO layer. ->The application size is very big and to make the build and deployment faster, we have split the application into multiple ears. ->We have

  • Embedding a style in java

    Hello all, I would like to know whether there is any way for me to embed a style in java like ifPrint() { <style> noprint.display:none; </style> Is this possible, please let me know. Thanks,