Error Entry into Tables?

I am trying to capture errors that occur on pages throughout the application, and enter the data into the table below. The first 3 columns constitute the primary key. I need to grab the errors that occur and the necessary information, and ensure that it is entered into this table. Is there a simple way to do that through a procedure that runs on all pages? Thanks!
User_id NUMBER
Program_id NUMBER
Program_start_date DATE
Program_end_date DATE
Error_page VARCHAR2(32)
Return_code NUMBER

Which version of OWB is it? Is the SQL directory deployed that the external table is using?
Cheers
David

Similar Messages

  • At least one entry into table

    Hy!
      How can I find if there's  at least one entry into table ?
    Thanks

    Hi,
    Ok..Check the example for the database table..
    SELECT SINGLE * FROM MARA.
    For internal table..
    You can also use..
    READ TABLE ITAB TRANSPORTING NO FIELDS INDEX 1.
    IF SY-SUBRC = 0.
      WRITE: / 'ONE RECORD FOUND'.
    ELSE.
      WRITE: / 'NO RECORD FOUND'.
    ENDIF.
    Thanks
    Naren

  • Error ,message into table

    Hi all,
    i am trying to put a error message into a table...any idea how i can get this without doing move 'matnr & is in error' into my table?
    thanx

    Hi,
    There's a few ways you could do this;
    Construct your message first (i.e. combine the message text and variables into one string, then move this into the table)
    or
    Don't store the text, instead store the message ID, number and variable parts of the message.  This has the advantage if you're running a multi-language system the log can be used by users of different languages.
    Regards,
    Nick

  • HELP!!: Error inserting into table in exception block

    I have some pl/sql code. In the exception section I have several lines of code similar to:
    WHEN NO_DATA_FOUND THEN
    INSERT INTO SCHEMA.ERR_TABLE (err_num, line)
    values ('101', V_LINE);
    When I try to compile the code it gives me an error:
    (1):PLS-00201: identifier 'TEMP_ERRS' must be declared
    (2):PL/SQL: SQL Statement ignored
    (3):PLS-00201: identifier 'TEMP_ERRS' must be declared
    (4):PL/SQL: SQL Statement ignored
    TEMP_ERRS is just a table that exists in a schema?
    I tried inserting a record into this table in plain sql code and it worked.
    What am I missing??
    TIA-
    null

    I was able to insert a test record into TEMP_ERRS using plain sql, and it worked so I believe I should have the correct previlage.
    The only difference is that the PL/SQL code is part of a trigger, what specific previlage would I need?
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Kaleem Mohammed Abdul ([email protected]):
    If the table/Synonym is not in the current schema, check for the privileges<HR></BLOCKQUOTE>
    null

  • Uploading entries into table using bdc

    hi,
    I have save the recording first in the bdc and i got the source code in program. i want to add more entries multiple into the same tabel "zmat". with different zmatcode & zmat-zdesp.
    please help me how to write the code. or what changes i have to do.
    report ZRAJESH_BDC_01
           no standard page heading line-size 255.
    include bdcrecx1.
    start-of-selection.
    perform open_group.
    perform bdc_dynpro      using 'SAPLZMAT' '0002'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'ZMAT-ZMATCODE(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=NEWL'.
    perform bdc_dynpro      using 'SAPLZMAT' '0003'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'ZMAT-ZDESP'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=SAVE'.
    perform bdc_field       using 'ZMAT-ZMATCODE'
                                  'rajeshswami'.
    perform bdc_field       using 'ZMAT-ZDESP'
                                  'test 1001'.
    perform bdc_dynpro      using 'SAPLZMAT' '0003'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'ZMAT-ZDESP'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=NEXT'.
    perform bdc_field       using 'ZMAT-ZDESP'
                                  'TEST 1001'.
    perform bdc_dynpro      using 'SAPLZMAT' '0003'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'ZMAT-ZDESP'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=SAVE'.
    perform bdc_field       using 'ZMAT-ZMATCODE'
                                  'ram 0001'.
    perform bdc_field       using 'ZMAT-ZDESP'
                                  'test 0001'.
    perform bdc_dynpro      using 'SAPLZMAT' '0003'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'ZMAT-ZDESP'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=UEBE'.
    perform bdc_field       using 'ZMAT-ZDESP'
                                  'TEST 0001'.
    perform bdc_dynpro      using 'SAPLZMAT' '0002'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'ZMAT-ZMATCODE(02)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=BACK'.
    perform bdc_dynpro      using 'SAPLZMAT' '0002'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'ZMAT-ZMATCODE(02)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=BACK'.
    perform bdc_transaction using 'ZMAT'.
    perform close_group.

    hi archana , first thanks for helping me.
    well this the code which i wrote.
    report ZRAJESH_07 &
           no standard page heading line-size 255. &
    PARAMETERS: zcode type ZMAT-ZMATCODE, &
                zdesp type ZMAT-ZDESP. &
    data: itab type table of zmat, &
          wa_itab like line of itab. &
    include bdcrecx1. &
    start-of-selection. &
    perform open_group. &
    perform bdc_dynpro      using 'SAPLZMAT' '0002'. &
    perform bdc_field       using 'BDC_CURSOR' &
                                  'VIM_POSITION_INFO'. &
    perform bdc_field       using 'BDC_OKCODE' &
                                  '=NEWL'. &
    perform bdc_dynpro      using 'SAPLZMAT' '0003'. &
    perform bdc_field       using 'BDC_CURSOR' &
                                  'ZMAT-ZDESP'. &
    perform bdc_field       using 'BDC_OKCODE' &
                                  '=SAVE'. &
    perform bdc_field       using 'ZMAT-ZMATCODE' &
                                  'raj1'. &
    perform bdc_field       using 'ZMAT-ZDESP' &
                                  'test raj'. &
    perform bdc_dynpro      using 'SAPLZMAT' '0003'. &
    perform bdc_field       using 'BDC_CURSOR' &
                                  'ZMAT-ZDESP'. &
    perform update_nextdata using 'zcode' 'zdesp'. &
    perform bdc_transaction using 'ZMAT1'. &
    perform close_group. &
    form update_nextdata using wa_itab-ZMATCODE wa_itab-ZMAT-ZDESP. &
      loop at itab into wa_itab. &
    perform bdc_field       using 'BDC_OKCODE' &
                                  '=NEXT'.
    *perform bdc_field       using 'ZMAT-ZDESP' &
                                 'TEST RAJ'.
    perform bdc_dynpro      using 'SAPLZMAT' '0003'. &
    perform bdc_field       using 'BDC_CURSOR' &
                                  'ZMAT-ZDESP'. &
    perform bdc_field       using 'BDC_OKCODE' &
                                  '=SAVE'. &
    perform bdc_field       using 'ZMAT-ZMATCODE' &
                                  wa_itab-ZMATCODE. &
    perform bdc_field       using 'ZMAT-ZDESP' &
                                  wa_itab-ZDESP. &
    perform bdc_dynpro      using 'SAPLZMAT' '0003'. &
    perform bdc_field       using 'BDC_CURSOR' &
                                  'ZMAT-ZDESP'. &
    perform bdc_field       using 'BDC_OKCODE' &
                                  '=ENDE'. &
    perform bdc_field       using 'ZMAT-ZDESP' &
                                  'RAJ2 TEST'. &
    endloop. &
    endform. &
    regards,
    <<Email address removed>>
    Edited by: Matt on Mar 4, 2010 3:41 PM

  • How to make entry into table J_1IEWT_ACKN

    Dear Sir,
    As per SAP Note 1172387 , for  printing Acknowledgement Number in TDS Certificate (Tcode used for Certificate generation is J1INCERT) , Records pertaining to Acknowledgement Numbers need to be created in Table J_1IEWT_ACKN .
    Kindly guide us , as how can we created Records into this table .
    With Thanks and Regards
    Sonia Agarwala

    Hi ,
    Go to SE16 , Enter View Name -> V_EDSDC and Click on Display / Change Button to maintain entries .
    Please note that you must have authorization to do maintainance for this table ; failing which you can only view the table .
    If you are unable to add entries , I can tell you an alternative for doing so , through debugging  .

  • Simple tutorial for using alv-grid for data entry into table, please!

    Hi friends,
    I urgently need a basic, simple tutorial or step-by-step or sample code on the following:
    I want to have a alv-grid like entry list where i can add/remove additional lines/entries that then are saved into an internal table. Please help me with that, as i studied already some documents but do not really get the idea of how to do - <REMOVED BY MODERATOR>
    Thanks in advance,
    Edited by: Alvaro Tejada Galindo on Jan 11, 2008 6:18 PM

    hi clemens,
    follow this link it may be useful to u
    http://www.sap-basis-abap.com/sapab033.htm
    http://www.abapprogramming.blogspot.com/2007/04/alv-details.html
    for tutorial on alv:
    http://www.sapbrainsonline.com/TUTORIALS/TECHNICAL/ALV_tutorial.html
    i have pdf material also ican give it to you if u give your email id.
    hope this helps you
    regards,
    sravanthi

  • How to get entries into table corresponding to transaction screen

    Hi Folks,
    i have got a new requirement i.e i need to develope a sceen which retrieves the records from the few ztables which i already created. I need to create log entry records in to another ztables about who have run that transactions, what are changes they have done and time , text , etc. How to achieve this , please let me know , thanks.
    regards
    Vishal.

    You can also look into USER_EXIT ( SUSR0001) in TR.SMOD.
    Here you can code and update the table with log , who run when run etc .. See the SYST table in SE11 for different system parameters.
    I code once in this user exit to calculate the frequency and time for different transaction with user and time stamp in certain period and I safe the log in my custom table .
    Hope this’ll give you idea!!
    <b>Pl... award the points.</b>
    Good luck
    Thanks
    Saquib Khan
    "Some are wise and some are otherwise"

  • Groupware Intergration - What triggers entry into table ISPQTAB ?

    Hi
    We have extraneous entries in ISPQTAB.  How do entries get created here ? If I delete entries they get recreated automatically.
    Documentation I have doe snot explain about this just tells you check its contents.
    Is it related to userlist.xml in some way  ?
    Regards
    M

    closing un answered

  • Fetching SSIS error message into Audit table using SP

    Hi Experts,
    I want to fetch SSIS Error Info along with Task Name into Audit table 'Error_Info' column. This is nvarchar(max) datatype, i wrote below Stored Procedure for this (Column names passing dynamically in SP)
    CREATE PROC [dbo].[usp_AuditErrorHandler]
    @AuditTableName nvarchar(MAX)
    ,@Audit_Status nvarchar(100)
    ,@Audit_ErrorDescription sql_variant
    ,@Audit_PkgEnd_dttm nvarchar(100)
    ,@task sql_variant
    ,@errordescription sql_variant 
    ,@Audit_ID nvarchar(10)
    ,@LogID INT
    AS
    BEGIN
    DECLARE @STRQuery NVARCHAR(MAX)
    SET @STRQuery = ' 
    UPDATE '+@AuditTableName+'
    SET '+@Audit_Status+' = ''Failed''
    ,'+@Audit_PkgEnd_dttm+' = GETDATE()
    ,'+@Audit_ErrorDescription+' = ''Task['+ @task +']:'+@errordescription +'''
    WHERE ' +@Audit_ID+ ' = ' + CAST(@LogID AS NVARCHAR)
    The above procedure is working fine in SSMS and inserting complete error info into table, but when i am executing thru SSIS Pkg i am getting error like
    "[Execute SQL Task] Error: Executing the query "exec usp_AuditErrorHandler ?,?,?,?,?,?,?,?" failed with the following error: "Incorrect syntax near '@P1'.". Possible failure reasons: Problems with the query, "ResultSet"
    property not set correctly, parameters not set correctly, or connection not established correctly."
    So, i tot of checking with string lenght and modifed the code by adding left () to @errordescription as below.
    UPDATE '+@AuditTableName+'
    SET '+@Audit_Status+' = ''Failed''
    ,'+@Audit_PkgEnd_dttm+' = GETDATE()
    ,'+@Audit_ErrorDescription+' = ''Task['+ @task +']:'+LEFT(@errordescription ,100)+'''
    WHERE ' +@Audit_ID+ ' = ' + CAST(@LogID AS NVARCHAR)
    Here, it is inserting till 119 chars, if i give more than 119 chars pkg is failing with above error.
    I want to get insert Complete error info into the column.
    Can anybody suggest on this?? 
    Thanks in advance !!!

    Thanks Arthur for the response, i have tried with the Sql_Variant data type also, here  procedure itself not creating and throwing below error.
    "The data types nvarchar(max) and sql_variant are incompatible in the add operator."
    This is the procedure i am using to fetch error info into Audit table.
    ALTER PROC [dbo].[usp_AuditErrorHandler]
    @AuditTableName nvarchar(MAX)
    ,@Audit_Status nvarchar(100)
    ,@Audit_PkgEnd_dttm nvarchar(100)
    ,@Audit_Task_ErrorCode nvarchar(100)
    ,@Audit_ErrorDescription SQL_VARIANT
    ,@errorcode nvarchar(max)
    ,@task SQL_VARIANT
    ,@errordescription SQL_VARIANT 
    ,@Audit_ID nvarchar(10)
    ,@LogID INT
    AS
    BEGIN
    SET NOCOUNT ON;
    DECLARE @STRQuery SQL_VARIANT
    BEGIN TRY
    SET @STRQuery = '    
    UPDATE  '+@AuditTableName+'
    SET     '+@Audit_Status+' = ''Failed''
           ,'+@Audit_PkgEnd_dttm+' = GETDATE()
           ,'+@Audit_Task_ErrorCode+' = '''+@errorcode+'''
           ,'+@Audit_ErrorDescription+' = ''Task['+ @task +']:'+ @errordescription +'''
    (Error is giving in this line)
    WHERE   ' +@Audit_ID+ ' = ' + CAST(@LogID AS NVARCHAR)
    EXEC (@STRQuery)
    END TRY 
    Below is the Audit Table Schema

  • Table entries into VIRSA_CC_ALLASTRUN

    Hi folks,
    As per Note 1015921, I am trying to configure Alerts in CC.
    It advocates to insert table entries into table VIRSA_CC_ALLASTRUN on AS Java.
    Where and how do you execute these insert statements, so that the table records are modified?
    Pleaset let me know.
    Regards,
    Reddy P.

    Thanks. My issue is resolved now.
    Basically, the FM /VIRSA/ZCC_GET_STATREC_DATA was giving abap dumps with not enough sort memory available on ERP system. Once that was fixed, the alert job ran like a charm.
    We did not have to modify the table level details in AS Java.
    Regards,
    Reddy P.

  • Entry in table TAORA missing! Please help with this error!

    I am moving a Z table from QAS to PRD and in PRD the table gets moved in inactive state. When I try to activate it I get an error "Entry in table TAORA missing". Could someone please give me any information how to fix this?
    Thanks.
    Mithun

    Hi Mithun Dada,
    when u created this Z table may u have not maintained the
    Data class and some setting correctly.Check for it and move it.
    <REMOVED BY MODERATOR>
    Thanks and regards,
    Rajeshwar.
    Edited by: Alvaro Tejada Galindo on Apr 23, 2008 5:14 PM

  • Entry in table TAX with authority CA --- is missing.

    Hi
    I change dthe residence state record effective june of last year and when the payroll runs , it throws the error
    Entry in table TAX with authority CA XXXX is missing.
    Has anybody come across this kind of error before.
    Thanks
    Revti

    Can you tell me the error number of it. Also make sure that required config for the US tax for both the state authority are configured correctly.

  • OIM: Getting an error when trying to add entry into child table

    Hi OIM Guru,
    I have a process form and child table I am using for provisionng. Everthing was working so far, but suddenly I am getting the following error whenever I try to add an entry into the child table. I
    Can someone tell me what might be going on here?
    Thanks a lot
    tcFormInstanceOperationsBean/addProcessFormChildData encounter some problems: maoErrors:Cannot schedule a task for child table change, schedule item save failed
    tcFormInstanceOperationsBean/addProcessFormChildData encounter some problems: Cannot schedule a task for child table change, schedule item save failed
    Thor.API.Exceptions.tcAPIException: Cannot schedule a task for child table change, schedule item save failed
    at com.thortech.xl.ejb.beansimpl.tcFormInstanceOperationsBean.addProcessFormChildData(Unknown Source)
    at com.thortech.xl.ejb.beansimpl.tcFormInstanceOperationsBean.addProcessFormChildData(Unknown Source)
    at com.thortech.xl.ejb.beans.tcFormInstanceOperationsSession.addProcessFormChildData(Unknown Source)
    at com.thortech.xl.ejb.beans.tcFormInstanceOperations_2j82mm_EOImpl.addProcessFormChildData(tcFormInstanceOperations_2j82mm_EOImpl.java:1298)
    at com.thortech.xl.ejb.beans.tcFormInstanceOperations_2j82mm_EOImpl_CBV.addProcessFormChildData(Unknown Source)
    at Thor.API.Operations.tcFormInstanceOperationsClient.addProcessFormChildData(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at Thor.API.Base.SecurityInvocationHandler$1.run(Unknown Source)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.security.Security.runAs(Security.java:41)
    at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(Unknown Source)

    Never mind. I got it figured out.
    What happened is I changed my adapter that is being called and because of this change the task mappings in Process Definition got wiped out and I had to remap all the attributes again. It now works.
    Whew!! It took me a while to figure this out.
    Thanks

  • Error while creating table 'EDISEGMENT' entry for Transfer Structures

    Hi Guyz...
    I've been facing a few issues regarding activation of transfer structures.
    I'll explain the whole process...so it makes sense to you guys.
    I've initially activated the Transfer Structures in BI Content for Master Data. Later on we faced some issues in the DEV server. So we had to transport all the objects and store them locally on a temporary location. When the BI DEV sever, was up and running, we transported all the objects back to the server.
    Now while moving the objects back to the sever. We had an errors in the Master Data Request (Log- Method Execution). After going into the log...this is what I found.
    Error while creating table 'EDISEGMENT' entry '/BIC/CIIA0DIVISION_TEXT'
    Error while creating table 'EDISEGMENT' entry '/BIC/CIIA0DISTR_CHAN_TEXT'
    Error while creating table 'EDISEGMENT' entry '/BIC/CIIA0MATL_TYPE_TEXT'
    Error while creating table 'EDISEGMENT' entry '/BIC/CIIA0SALESORG_TEXT'
    Error while creating table 'EDISEGMENT' entry '/BIC/CIIA0SALES_GRP_TEXT'
    I hope, I am clear here.
    Any suggestions, guys...
    Thanks,
    Regards,
    G

    Hi,
    Please check this link:
    Error while creating table EDISEGMENT entry
    Hope it helps.
    Thanks and Regards,
    MuraliManohar.

Maybe you are looking for

  • Can't connect Macbook Pro To TV

    Hello, I am trying to hook up my Macbook Pro 2010 middle (2.4GH Intel Core 2 Duo) OS 10.9 Maverick with my LCD TV - Bush LT32M1CA - using HDMI cable with reduction to mini port. When I connect my Mac to the TV nothing happens - TV says no signal and

  • IPod Touch 4th gen keeps on rebooting

    Hi everybody out there, I am posting this because I am having a serious problem with my iTouch 4th gen. The problem below: I did a full+trickle charge like five days ago and everything was going fine, I was using my iTouch and left it in standby for

  • How to get the lost data of a data base table such as MARA

    i have added an include structure to mara table,while activation errors have occured  i went to SE14 and selected 'adjust database' push button . IN this after being activated the testing data of MATA has  been lost. What would be the reason?

  • N900 still restarting after update,

    my n900 restarts everytime it goes to sleep wether it times out or i use the slide lock thing, i have flashed the firmware with the newest and the oldest ones using the NSU and the flasher util, I have also flashed the emmc. The code when using termi

  • GWMonitor lists GWIA as state Unknown

    We've been having issues with GroupWise ever since we upgraded to Linux. Today's issue is the GWIA web interface. Whenever I try to connect to our gwia web interface directly on port 9850 it redirects me to GWMonitor. And under GWMon it lists all of