How to trace an event

Hi,
  I want to trace an event. I goto transaction swels and switch on and I create a material using MM01 and then I goto transaction swels and switch off. There after I execute transaction swel. But I get trace on and trace off only. Material creation event I am not getting.
What may be the problem. Please suggest.
Thanks and regards,
Venkat
Edited by: VENKAT RAMAN on Aug 12, 2009 9:58 AM

Hello,
If your requirement is to start a workflow for the creation of a material, please make an entry in the tcode SWECwith the following inputs,
Change doc. object = MATERIAL
Object Type             = BUS1001006 or the BO that you are going to use, but make sure that the key fields of the change document object and the business object are same.
Event                         = Event of the BO.
check the 'On Create' radio button for Triggering event.
Hope this will help.
Thanks,
Samson

Similar Messages

  • How to trace the EVENT's source which triggers the process chain

    hello Friends,
    I am currently involved in a new project, which does'nt have any documentation of the system. There is a process chain which is triggered by the event ( say..... "BI_START") and it gets triggered every day night,.......
    But the problem I have is, I could'nt trace where this EVENT gets triggered....
    Can you please advice me  how to trace plz...... Thanks very much for your time.....
    Thanks,

    Check in SM37 or in the tables TBTCO or TBTCP with below selected fields.
    JOBNAME = Background job name
    SDLSTRTDT = Planned Start Date for Background Job
    SDLSTRTTM = Planned start time for background Job
    SDLUNAME = Initiator of job/step scheduling
    PRDMINS = Duration period (in minutes) for a batch job
    PRDHOURS = Duration period (in hours) for a batch job
    PRDDAYS = Duration (in days) of DBA action
    PRDWEEKS = Duration period (in weeks) for a batch job
    PRDMONTHS = Duration period (in months) for a batch job
    PERIODIC = Periodic jobs indicator ('X')
    STATUS = State of Background Job, S = Released, F = Finished
    AUTHCKMAN = Background client for authorization check
    EVENTID = Background Processing Event
    EVENTPARM = Background Event Parameters (Such as, Jobname/Jobcount)

  • How can we trace the event

    Hello Expert,
    We have a lot of process chain which was trigger by one event with different variant. However, since the last two days, the process chain did not run. it seems the event was not triggered.
    How can we trace the event? I mean, if it is triggered or not within one day.
    As I checked the process chain, some of the process chain was successfully triggered by the same event. it is really weird...
    Thanks
    XY
    Edited by: xy chen on Nov 6, 2008 3:24 AM
    Edited by: xy chen on Nov 6, 2008 3:30 AM

    Hi......
    Copy the event...........then go to SE16 >> RSEVENTHEAD............there in the event field give the event name.........then execute............from there you will get the event collector name................
    If you don't get it here then search in table RSEVENTCHAIN.........
    Copy the event and go to RSA1OLD(if you are in 7.0)............otherwise go to RSA1...............from there go to the Event collector........give the event collector name and check whether it registered or not............if registered when last it was registered.............if you are unable to find this event in these two chains............then go SM37................from there choose the event..........and in the Job field write BI_PROCESS_TRIGGER..............from there check when this job last triggered for this event.............
    Hope this helps.........
    Regards,
    Debjani........
    Edited by: Debjani  Mukherjee on Nov 6, 2008 4:44 AM

  • Dataloss in network... How to trace it..?

    Hi,
    Though this question is related to SAP XI and SMICM trace, I feel this question can also be answered by people in WebAs General, so i am posting this in this forum.
    In my current scenario where SAP XI system pushes data to another system(ABC system) using HTTPS connection. I have set up an RFC destination of Type G to connect to the external system.
    When i do a Test connection, i see in SMICM log file, i found that connection established, request message written into ABC system.When response is being written i could find BINDUMP of content denied in the SMICM log file. What does that exactly mean..?
    Also When i contacted the other party--ABC, they have told that they could not see any messages in their system.
    XI shows successfully processed and ABC system did not receive the message... So where did the data go?? I have no clue :-(( Need your inputs in this regard. How to trace if the message has been successfully posted by XI. Below is the SMICM log file.
    [Thr 5880] IcmConnConnect: direct connect to www2.ABC.com:443
    [Thr 5880] nihsl-getHostAddr: found hostname '.www2.ABC.com' in cache
    [Thr 5880] nihsi-getHostAddr: hostname '.www2.ABC.com' = addr 16.256.48.91
    [Thr 5880] nihsi-getServNo: servicename '443' = port 01.BB/0443
    [Thr 5880] NiCreateHandle: state hdl 23 / socket -1 NI_INITIAL
    [Thr 5880] NiIBlockMode: switch off block-mode for hdl 23 / socket -1
    [Thr 5880] NiLowLevCon: connect to: host 16.256.48.91, port 01.BB/0443, fam 2 (low adr..high adr)
    [Thr 4532] [Thr 4532] NiISelect: fds in write-mask: [Thr 5880] NiIInitSocket: set default settings for socket 65268
    [Thr 5880] NiISocket: hdl 23 got socket 65268
    [Thr 5880] NiPBlockMode: set socket 65268 to NONBLOCK mode
    [Thr 4532]
    [Thr 5880] NiPConnect: connect in progress
    [Thr 5880] SiPeekPendConn: connection of socket 65268 established
    [Thr 5880] NiLowLevCon: took local port 10.1B/4123
    [Thr 5880] nilh-localCheck: using local address list
    [Thr 5880] NiSetStat: state hdl 23 NI_CONNECTED
    [Thr 5880] ->> SapSSLSessionInit(&sssl_hdl=015BC3DC, role=1 (CLIENT), auth_type=3 (USE_CLIENT_CERT))
    [Thr 5880] <<- SapSSLSessionInit()==SAP_O_K
    [Thr 5880] in: args = "role=1 (CLIENT), auth_type=3 (USE_CLIENT_CERT)"
    [Thr 5880] out: sssl_hdl = 19193D20
    [Thr 5880] ->> SapSSLSetNiHdl(sssl_hdl=19193D20, ni_hdl=23)
    [Thr 5880] IcmPlCheckRetVal: Next status: WRITE_REQUEST(3)
    [Thr 5880] IcmConnRollInWP: no need to roll in WP status: ROLLED IN
    [Thr 5880] MPI<12ee>0#7 GetInbuf 5 1489e0 2179 (1) -> 6
    [Thr 5880] NiPBlockMode: set socket 65268 to NONBLOCK mode
    [Thr 5880] NiPSockGetStatus: socket 65268 ok, no data pending
    [Thr 5880] NiPBlockMode: set socket 65268 to BLOCK mode
    [Thr 5880] IcmReadFromPartner(id=0/4693): fe-nihdl timeout
    [Thr 5880] PlugInHandleServData: role: 2, status: 3, content-length: 0/0
    buf_len: 2127, buf_offset: 0, buf_status: 6
    [Thr 5880] HttpParseRequestHeader: content length: 1805
    [Thr 5880] HttpParseRequestHeader: no transfer-encoding set
    [Thr 5880] HttpParseRequestHeader: Version: 1000
    [Thr 5880] HttpParseRequestHeader: Keep-Alive: 0
    [Thr 5880] IcmPlCheckRetVal: Next status: READ_RESPONSE(2)
    [Thr 5880] IcmHandleNetWrite(id=0/4693): HandleServData returned: 2
    [Thr 5880] BINDUMP of content denied
    [Thr 5880] IcmWriteToConn(id=0/4693): prepared to write data to partner (len = 2127)
    [Thr 5880] ->> SapSSLWrite(sssl_hdl=19193D20, buf=061F8A74, len=2127, timeout=2000, &writelen=123EFF24)
    [Thr 5880] <<- SapSSLWrite(sssl_hdl=19193D20)==SAP_O_K
    [Thr 5880] result = "written= 2127 of 2127 (all)"
    [Thr 5880] IcmWriteToConn(id=0/4693): wrote data to partner (len = 2127)
    [Thr 5880] MPI<12ee>0#8 FreeInbuf#1 0 1489e0 0 -> 0
    [Thr 5880] IcmConnRollInWP: no need to roll in WP status: ROLLED IN
    [Thr 5880] IcmReadFromConn(id=0/4693): request new MPI (0/0)
    [Thr 5880] MPI<12ed>1#4 GetOutbuf -1 1489e0 65536 (0) -> 061F8A40 0
    [Thr 5880] ->> SapSSLRead(sssl_hdl=19193D20, buf=061F8A74, maxlen=65483, timeout=500, &readlen=123EFEE8)
    [Thr 5880] Fri Dec 02 08:59:10 2005
    [Thr 5880] <<- SapSSLRead(sssl_hdl=19193D20)==SAP_O_K
    [Thr 5880] result = "max=65483, received=8036"
    [Thr 5880] IcmReadFromConn(id=0/4693): read 8036 bytes(timeout 500)
    [Thr 5880] BINDUMP of content denied
    [Thr 5880] PlugInHandleNetData: role: 2, status: 1, content-length: 0/-1
    buf_len: 8036, buf_offset: 0, buf_status: 0
    [Thr 5880] PlugInHandleNetData: read response header
    [Thr 5880] HttpParseResponseHeader: no transfer-encoding set
    [Thr 5880] HttpParseResponseHeader: Version: 1000
    [Thr 5880] HttpParseResponseHeader: Keep-Alive: 0
    [Thr 5880] PlugInHandleNetData: more data to read
    [Thr 5880] PlugInHandleNetData: need more data (7936/12484)
    [Thr 5880] IcmPlCheckRetVal: Next status: READ_RESPONSE(2)
    [Thr 5880] IcmHandleNetRead(id=0/4693): read_len: 8036, HandleNetData returned: 2
    [Thr 5880] IcmHandleNetRead(id=0/4693): status 2 -> 2
    [Thr 5880] ->> SapSSLReadPending(sssl_hdl=19193D20, &pendlen=123EFF1C)
    [Thr 5880] <<- SapSSLReadPending(sssl_hdl=19193D20)==SAP_O_K
    [Thr 5880] out: pendlen = 0
    [Thr 5880] IcmHandleNetRead(id=0/4693): pending SSL data: 0, rollout=1
    [Thr 5880] nihsl-getHostAddr: found hostname 'localhost' in cache
    [Thr 5880] nihsi-getHostAddr: hostname 'localhost' = addr 127.0.0.1
    [Thr 5880] NiIDgSend: re-connect dgram to: host 127.0.0.1, port FD.E6/64998, fam 2 (low adr..high adr)
    [Thr 5880] IcmConnRollOut: connection (id=0/4693) rolled out:
    [Thr 5880] CONNECTION (id=0/4693):
    used: 1, role: 2, stateful: 0
    NI_HDL: 23, protocol: 2
    host: www2.ABC.com:443
    status: READ_RESPONSE
    connect time: 02.12.2005 08:59:08
    WP-status: ROLLED IN (Context: 0, Role: 2)
    tid: 15, mode: 0, uid: 746, roll-reason: ICM_ROLL_NONE
    MPI request: <12ee> MPI response: <12ed>
    request_buf_size: 2127 response_buf_size: 65484
    request_buf_used: 2127 response_buf_used: 8036
    request_buf_offset: 0 response_buf_offset: 0
    [Thr 4852] NiBufSelect: Postprocessing...
    [Thr 4852] NiBufSelect: returning 1 clients
    [Thr 4852] NiSelNext: returning hdl 5, r--, 00000000, rest 0 entries (0164FEF0)
    [Thr 5880] IcmWorkerThread: Thread 6: Waiting for event
    [Thr 4852] NiIPeek: peek successful for hdl -1 / socket 65588 (r)
    [Thr 4852] NiIDgReceive - WAKEUP DGRAM received from:
    host 127.0.0.1, port 07.B0/1968, fam 2 (low adr..high adr)
    [Thr 4852] NiIPeek: peek for hdl -1 / socket 65588 timed out (r; 0)
    [Thr 4852] IcmWatchDogThread: dg received
    [Thr 4852] IcmWatchDogUpdateRollQueue(id=0/4693): insert fe-nihdl 23, flags=1
    [Thr 4852] NiSelSet: hdl 23, r-, 01679D50
    [Thr 4852] IcmWatchDogThread: check ni handles (timeout=10000)
    [Thr 4852] NiBufSelect: Preprocessing...
    [Thr 4852] NiISelect: timeout 10000 ms
    [Thr 4852] NiISelect: maximum fd=65757
    [Thr 4852] NiISelect: fds in read-mask: [Thr 4852]
    [Thr 4852] NiISelect: fds in write-mask: [Thr 4852]
    [Thr 4852] NiBufSelect: Postprocessing...
    [Thr 4852] NiBufSelect: returning 1 clients
    [Thr 4852] NiSelNext: returning hdl 23, r--, 01679D50, rest 0 entries (0164FF00)
    [Thr 4852] IcmWatchDogThread(id=0/4693): nihdl 23 - data received(read)
    [Thr 4852] NiSelClear: removed hdl 23 from selectset
    [Thr 4852] IcmQueueAppend: Queuelen: 1
    [Thr 4852] IcmCreateRequest: Appended request 8369
    [Thr 4852] IcmConnRollIn: connection (id=0/4693) rolled back to status: READ_RESPONSE
    [Thr 4852] IcmWatchDogThread: check ni handles (timeout=10000)
    [Thr 4852] NiBufSelect: Preprocessing...
    [Thr 4852] NiISelect: timeout 10000 ms
    [Thr 4852] NiISelect: maximum fd=65757
    [Thr 4852] NiISelect: fds in read-mask: [Thr 4152] IcmWorkerThread: worker 3 got the semaphore
    [Thr 4152] REQUEST:
    Type: READ_RESPONSE Index = 8368
    [Thr 4152] CONNECTION (id=0/4693):
    used: 1, role: 2, stateful: 0
    NI_HDL: 23, protocol: 2
    host: www2.ABC.com:443
    status: READ_RESPONSE
    connect time: 02.12.2005 08:59:08
    WP-status: ROLLED IN (Context: 0, Role: 2)
    tid: 15, mode: 0, uid: 746, roll-reason: ICM_ROLL_NONE
    MPI request: <12ee> MPI response: <12ed>
    request_buf_size: 2127 response_buf_size: 65484
    request_buf_used: 2127 response_buf_used: 8036
    request_buf_offset: 0 response_buf_offset: 0
    [Thr 4152] ->> SapSSLRead(sssl_hdl=19193D20, buf=061FA9D8, maxlen=57447, timeout=500, &readlen=10BEFEE8)
    [Thr 4852]
    [Thr 4852] NiISelect: fds in write-mask: [Thr 4852]
    [Thr 4152] <<- SapSSLRead(sssl_hdl=19193D20)==SAP_O_K
    [Thr 4152] result = "max=57447, received=4548"
    [Thr 4152] IcmReadFromConn(id=0/4693): read 12584 bytes(timeout 500)
    [Thr 4152] BINDUMP of content denied
    [Thr 4152] PlugInHandleNetData: role: 2, status: 2, content-length: 7936/12484
    buf_len: 12584, buf_offset: 8036, buf_status: 0
    [Thr 4152] PlugInHandleNetData: read response body (len=12484/12484)
    [Thr 4152] PlugInHandleNetData: response completely read(EOS=0)
    [Thr 4152] IcmFlushBuf: Flushing 12584 Bytes, buf_status: 6
    [Thr 4152] flush buffer with mpi buffer id 1
    [Thr 4152] MPI<12ed>1#5 FlushOutbuf l1 1 1 1489e0 12636 6 -> 061F8A20 0
    [Thr 4152] IcmConnRollInWP: no need to roll in WP status: ROLLED IN
    [Thr 4152] PlugInHandleNetData: close connection
    [Thr 4152] IcmPlCheckRetVal: Plugin retval: PLUGIN_RET_CLOSE (-702)
    [Thr 4152] IcmHandleNetRead(id=0/4693): read_len: 4548, HandleNetData returned: -702
    [Thr 4152] IcmConnRollInWP: no need to roll in WP status: ROLLED IN
    [Thr 4152] PlugInStopConn: role: 2, error: 0, write_err: 1
    [Thr 4152] ->> SapSSLSessionDone(&sssl_hdl=015BC3DC)
    [Thr 4152] <<- SapSSLSessionDone(sssl_hdl=19193D20)==SAP_O_K
    [Thr 4152] NiICloseHandle: shutdown and close hdl 23 / socket 65268
    [Thr 4152] IcmConnClose: Connection 0/4693 closed
    [Thr 4152] IcmConnFreeContext: context 0 released
    [Thr 4152] IcmServDecrRefCount: intersrv.afdb.local:443 - serv_ref_count: 1
    [Thr 4152] IcmWorkerThread: Thread 3: Waiting for event
    Cheers,
    Siva Maranani

    SMICM with trave level3 is the only way(i know) to trace whether the message has left XI server or not.

  • How to trace an error

    Dear all,
    How to trace a purticular error ?
    from metalink
    Diagnose the issue by running the following trace
    alter system set events '1775 trace name ERRORSTACK level 3';
    Redo the import and reproduce the error. The trace file should be in the
    USER_DUMP_DEST directory.
    alter system set events '1775 trace name errorstack off';
    Trace file will show something like the following:
    ksedmp: internal or fatal error
    ORA-01775: looping chain of synonyms
    Current SQL statement for this session:
    SELECT COUNT(*) FROM SYS_IMPORT_TABLE_01
    I am getting the same ora 01775 error. But when I am tracing, I am not getting any result in my udump. Is there any other setting do I have to make to get the trace file?
    Thanks

    Your question can not be answered.
    Not only you don't include a version (this seems to be too difficult for most posters here), but you also include ambiguous sentences like 'When I am tracing'.
    This results in the question 'did you issue the alter system command and was it successful?'
    As far as I am aware the syntax is
    alter system set events='<errornum> trace name errorstack level 3';
    There are no other 'settings'
    The only other solution is to set up an afterserver error trigger.
    Works like a charm, 8i onwards.
    You uncover way too many things you don't even want to know!
    Sybrand Bakker
    Senior Oracle DBA

  • How to trace a USER in oracle?

    Hi Sir,
    I have a rquirement that I need to Trace a session created through the Application. The only data I have is that I know the application will connect to a Database schema and nothing else. How is it possilbe that I can create a trace file for it.
    Also is it possilble, that i can trace complete user. how to find all the trace as it create number of process inturn number of trace, how do I find it and combine. I read the documentation but can't understand it clearly?
    Any help will be great.

    sanora600 wrote:
    Aman, thanks for replying. This is the problem, they have not implemented dbms_application_info.
    That is the reason I want to know how to trace user(all session of a schema) and combine all the session generated trace(something like trcsess) and then generate tkprof. I am on Oracle 10g.Well, first off, users connect to databases, they don't connect to schemas. And as a follow on, users have sessions, schemas don't.
    That said, you might investigate a logon trigger that initiates a 1046 trace. Something like this:
    -- create a logon trigger for capturing extended trace data
    -- NOTE: must be run as SYS
    -- NOTE: Be sure to change both occurances of the target username
    -- ('user = xxx' and 'TRACEFILE_IDENTIFIER=') to the
    -- correct value for the session you want to trace.
    create or replace trigger logon_trigger
    after logon on database
    begin
    if (user = 'SCOTT' ) then
    execute immediate 'ALTER SESSION SET TRACEFILE_IDENTIFIER=''SCOTT_APP''';
    execute immediate 'alter session set timed_statistics=true';
    execute immediate 'ALTER SESSION SET EVENTS ''10046 TRACE NAME CONTEXT FOREVER, LEVEL 12''';
    end if;
    exception
    when others then
    null;
    end;
    end;
    Of course, you can play around with the 'if' condition, and delete or disable the trigger when it is no longer needed. The resulting trace file can be run through tkprof.
    Edited by: EdStevens on Dec 19, 2008 9:03 AM

  • How to trace the save menu in cs3 using javascript?

    i can able to add menu items using the following syntex
    app.scriptMenuActions.add("Script 1");
    but i dont know how to trace the save menu, i want to do certain action while the user try to save their active document.
    is it possible in script?
    thanks
    subha

    Hi subha,
    re: "i dont know where to get that BeforePrint.jsx, but by using scripting guide i able to trace the menu events."
    All of the scripts shown in fragmentary form in the Scripting Guide are included in the associated scripts archive on the InDesign Scripting home page.
    The BeforePrint.jsx script shows how to cancel the display of the Print dialog box; I assume that the same techniques will work for the Save dialog box. No time to check right now.
    Thanks,
    Ole

  • How does the invoke event for an Air iOS app work?

    Hi,
    If my app gets invoked for the first time the invoke event isn't fired.
    If the app gets invoked for the second time it is working.
    How to get the event.arguments[0] every time the app gets opened/invoked?
    NativeApplication.nativeApplication.addEventListener(InvokeEvent.INVOKE, onAppInvoke);
    function onAppInvoke(event:InvokeEvent):void {
    trace("INVOKE ARGS: "+event.arguments[0]);
    Thanks

    Helo fideld, officially Adobe Air don't support Danish language. But I may help you.
    1. Download this file https://www.dropbox.com/s/ytx44mxzdgmlfq2/adt.jar
    2. Go to Air SDK\lib\ folder and backup your original adt.jar
    3. Copy my one from step 1
    You may understand that patched adt.jar was produced by me and not by Adobe.
    I just done this for you as a part of community friendly support. It's allow to add "da" language.
    1. Open your *-app.xml
    2. Add lang="da"
    3. Go to supportedLanguages in XML and add "da" also there so it's will be like "en fr de da".
    Patched ADT was made from original latest 4.0.0.1619 and you must use http://labs.adobe.com/downloads/air.html 4.0.0.1619 before apply this patch
    This works well, just tested!

  • How to trace every dml statement for a schema/ database

    hi,
    how to trace every dml statement for a schema/ database
    PFile Entrie
    init.ora Parameter Example event='1401 trace name errorstack, level 12';
    tkprof orcl_ora_3632.trc b.txt
    after these two steps I am not able to see the sql statements in trace ...
    Please suggest.
    Thanks & Regards,

    Hi,
    Trace Event 1401 will create a trace file and dumps the information when ORA-01401 error occurs. This error occurs when "inserted value too large for column"
    You will see the trace file getting populated only when you encounter ORA-01401 error.
    Regards

  • How to trace phoneCallChanged-tests?

    Hi,
    Im trying to extend the IciEventService -> phoneCallChanged-transaction to send additional data to the Webclient to identify the client.
    Im using the wsnavigator-testpages to test the events which works so far, just my problem is I dont know how to trace them and how to check what and if it is transmitted.
    If I do a test call via the simulator I can see the actions in CRM_ICI_TRACE, but not what is send manually even its same data.
    Can anybody tell me how I can make it work? Im quite new to SAP and could need some help here.
    Thanks in advance,
    Benedikt

    It can't find the class then:
    java.lang.ClassNotFoundException: com.sun.javafx.pgstub.StubToolkit
    Do I need any further classes or settings? I am using JDK 8 b103.
    EDIT:
    I also found this:
    StubToolkit must go!
    which is a little confusing to me as a non-Oracle employee.
    Can somebody elaborate on the current state of how to do Automated testing or what we can expect for JavaFX 8?

  • How to stop Timer event inside movie clip that does not exist?

    Hello. I am using Adobe Flash CS6.
    As this topic title says. how to stop Timer event nside movieclip that does not exist?
    I mean my fla stracture is  there are 2 frames on main timeline, and I put mcA on frame 2.
    And I put a button on root that does
    if(currentFrame ==1)
    gotoAndStop(2);
    else if (currentFrame ==2)
    gotoAndStop(1);
    And mcA has AS inside and it is
    var T_Timer:Timer = new Timer(1000,0)
    T_Timer.addEventListener(TimerEvent.TIMER, test)
    function test(e:TimerEvent):void{
    trace("Timer active")
    T_Timer.start();
    I need to stop T_TImer from root on frame 1, not on frame 2.
    but, "mcA.T_Timer.stop();" won't work.
    I get TypeError: Error #1010 error.
    I don't know how to stop this timer event. I have to stop it from root, and I can't use EVENT_REMOVED in this case.

    If the object doesn't exist you cannot do anything relative to targeting it.  Maybe you should move the timer to the main timeline where you can access it any time.

  • How to cancel the event in Item Adding and display javascript message and prevent the page from redirecting to the SharePoint Error Page?

    How to cancel the event in Item Adding without going to the SharePoint Error Page?
    Prevent duplicate item in a SharePoint List
    The following Event Handler code will prevent users from creating duplicate value in "Title" field.
    ItemAdding Event Handler
    public override void ItemAdding(SPItemEventProperties properties)
    base.ItemAdding(properties);
    if (properties.ListTitle.Equals("My List"))
    try
    using(SPSite thisSite = new SPSite(properties.WebUrl))
    SPWeb thisWeb = thisSite.OpenWeb();
    SPList list = thisWeb.Lists[properties.ListId];
    SPQuery query = new SPQuery();
    query.Query = @"<Where><Eq><FieldRef Name='Title' /><Value Type='Text'>" + properties.AfterProperties["Title"] + "</Value></Eq></Where>";
    SPListItemCollection listItem = list.GetItems(query);
    if (listItem.Count > 0)
    properties.Cancel = true;
    properties.ErrorMessage = "Item with this Name already exists. Please create a unique Name.";
    catch (Exception ex)
    PortalLog.LogString("Error occured in event ItemAdding(SPItemEventProperties properties)() @ AAA.BBB.PreventDuplicateItem class. Exception Message:" + ex.Message.ToString());
    throw new SPException("An error occured while processing the My List Feature. Please contact your Portal Administrator");
    Feature.xml
    <?xml version="1.0" encoding="utf-8"?>
    <Feature Id="1c2100ca-bad5-41f5-9707-7bf4edc08383"
    Title="Prevents Duplicate Item"
    Description="Prevents duplicate Name in the "My List" List"
    Version="12.0.0.0"
    Hidden="FALSE"
    Scope="Web"
    DefaultResourceFile="core"
    xmlns="http://schemas.microsoft.com/sharepoint/">
    <ElementManifests>
    <ElementManifest Location="elements.xml"/>
    </ElementManifests>
    </Feature>
    Element.xml
    <?xml version="1.0" encoding="utf-8" ?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <Receivers ListTemplateId="100">
    <Receiver>
    <Name>AddingEventHandler</Name>
    <Type>ItemAdding</Type>
    <SequenceNumber>10000</SequenceNumber>
    <Assembly>AAA.BBB, Version=1.0.0.0, Culture=neutral, PublicKeyToken=8003cf0cbff32406</Assembly>
    <Class>AAA.BBB.PreventDuplicateItem</Class>
    <Data></Data>
    <Filter></Filter>
    </Receiver>
    </Receivers>
    </Elements>
    Below link explains adding the list events.
    http://www.dotnetspark.com/kb/1369-step-by-step-guide-to-list-events-handling.aspx
    Reference link:
    http://msdn.microsoft.com/en-us/library/ms437502(v=office.12).aspx
    http://msdn.microsoft.com/en-us/library/ff713710(v=office.12).aspx
    Amalaraja Fernando,
    SharePoint Architect
    Please Mark As Answer if my post solves your problem or Vote As Helpful if a post has been helpful for you. This post is provided "AS IS" with no warrenties and confers no rights.

    Recommended way for binding the list event handler to the list instance is through feature receivers.
    You need to create a feature file like the below sample
    <?xmlversion="1.0"encoding="utf-8"?>
    <Feature xmlns="http://schemas.microsoft.com/sharepoint/"
    Id="{20FF80BB-83D9-41bc-8FFA-E589067AF783}"
    Title="Installs MyFeatureReceiver"
    Description="Installs MyFeatureReceiver" Hidden="False" Version="1.0.0.0" Scope="Site"
    ReceiverClass="ClassLibrary1.MyFeatureReceiver"
    ReceiverAssembly="ClassLibrary1, Version=1.0.0.0, Culture=neutral,
    PublicKeyToken=6c5894e55cb0f391">
    </Feature>For registering/binding the list event handler to the list instance, use the below sample codeusing System;
    using Microsoft.SharePoint;
    namespace ClassLibrary1
        public class MyFeatureReceiver: SPFeatureReceiver
            public override void FeatureActivated(SPFeatureReceiverProperties properties)
                SPSite siteCollection = properties.Feature.Parent as SPSite;
                SPWeb site = siteCollection.AllWebs["Docs"];
                SPList list = site.Lists["MyList"];
                SPEventReceiverDefinition rd = list.EventReceivers.Add();
                rd.Name = "My Event Receiver";
                rd.Class = "ClassLibrary1.MyListEventReceiver1";
                rd.Assembly = "ClassLibrary1, Version=1.0.0.0, Culture=neutral,
                    PublicKeyToken=6c5894e55cb0f391";
                rd.Data = "My Event Receiver data";
                rd.Type = SPEventReceiverType.FieldAdding;
                rd.Update();
            public override void FeatureDeactivating(SPFeatureReceiverProperties properties)
                SPSite sitecollection = properties.Feature.Parent as SPSite;
                SPWeb site = sitecollection.AllWebs["Docs"];
                SPList list = site.Lists["MyList"];
                foreach (SPEventReceiverDefinition rd in list.EventReceivers)
                    if (rd.Name == "My Event Receiver")
                        rd.Delete();
            public override void FeatureInstalled(SPFeatureReceiverProperties properties)
            public override void FeatureUninstalling(SPFeatureReceiverProperties properties)
    }Reference link: http://msdn.microsoft.com/en-us/library/ff713710(v=office.12).aspxOther ways of registering the list event handlers to the List instance are through code, stsadm commands and content types.
    Amalaraja Fernando,
    SharePoint Architect
    Please Mark As Answer if my post solves your problem or Vote As Helpful if a post has been helpful for you. This post is provided "AS IS" with no warrenties and confers no rights.

  • How to create the event in the report for jobs scheduling.

    Hi Experts,
    i have a requirement like as follows:
    The following triggers for Batch Jobs in the SCM system will be created.i.     
    Background Processing Event = u201CAPO Background Processing Eventu201D. After sending the Event, write a Log Report line u201CEvent u201CAPO Background Processing Eventu201D sentu201D.
    Could you please suggest me how we create the Event or which transaction ?
    Please give me a steps for creating events so that based on these events we use
    CALL METHOD cl_batch_event=>raise
        EXPORTING
          i_eventid                      = p_bpeve
          i_server                       = p_server
          i_ignore_incorrect_server      = p_ignore
        EXCEPTIONS
          excpt_raise_failed             = 1
          excpt_server_accepts_no_events = 2
          excpt_raise_forbidden          = 3
          excpt_unknown_event            = 4
          excpt_no_authority             = 5
          OTHERS                         = 6.
    Right now i received message "APO Background Processing Event" is doesn't exists.
    Thanks in Advance.
    Puneet.

    Hi Puneet,
    Goto transaction SM62 and in there to BckProcEvents tab. There you can create the events.
    You just need to specify the name and Description of an event.
    Hope this serves your purpose.
    Thanks

  • How to trace an Inbound R3 IDoc by seeing application document

    Hi all,
    How to trace an Inbound IDoc number by seeing application document in R3.
    sometimes 'Services from object' also we could'nt able to trace out the IDoc.
    'Services from object'  option sometimes appears in blank status with no IDoc.
    Any possible tracing options?

    HI Chitra,
    You can findout the Idoc number in R/3 System by using the  tr.code WE05 or WE02.
    Go throgh the following blog for message monitoring.
    /people/alessandro.guarneri/blog/2006/02/14/super-message-monitor-for-sap-xi
    Regards
    Goli Sridhar

  • How to trace purchase order number with respect to Purchase requestion numb

    Hi friends,
    Can u please help me how to Trace purchase order number with respect to purchase Requetuion  number. Is there any standard report  available in R/3

    Hi Vamsi,
    Thats what!!!
    Goto SE16 - EBAN - Give PR number in the iput screen.
    In the output screen you will have to do field selection from Menu - Settings - formatlist - choose fields.
    There you choose Purchase Order.
    So the output will display for you POs for the PR that you entered.
    Regards,
    Vishal

Maybe you are looking for

  • How do I remove iTunes Match from my 3Gs?

    I used iTunes match on my iPhone 3Gs for a while, and would like to now purge all traces of iTunes Match from it.  I prefer to use the old-fashioned sync by plugging in the device on to my PC, where my music collection is stored (in addition to the i

  • Problem in running animation file during forms runtime can any body help

    Hi, I did a small project using forms 6I . When I run my project the first cansvas named “Welcome Screen” will be displayed. I.e this is the first canvas displayed. Now my problem is : In that “ WelcomeScreen” canvas I placed a OLE object and inserte

  • Using Changed Data

    Hi, I implemented CDC without error and started the journal. My table name to be journalized: DWH_SEC_TYPES In the J$DWH_SEC_TYPES table and JV$DDWH_SEC_TYPES view, the changed data can be viewed. Also there is another view named JV$DWH_SEC_TYPES whi

  • Treasury: Multiple Exercise/Partial Exercise for 1 Option Contract

    Dear fellow SAPers, I have created a product type of an OTC Option with specification: Product Category : OTC option Settlement : Cash Settlement Exercise Type : American Option Category : Standard assigned to it is transaction type with specificatio

  • Camera not working - Elitepad 900

    Hello I am having a problem with the built-in camera on my Elitepad 900. When I open the camera app in win8.1, I get the following error : I have tried installing all new updates from the HP support site, with no luck. The camera is present in my dev