Custom Validations and Error Handling

Hi
I have a requirement that I have to use the custom validation and the errors and/or exceptions should display in the page. All the errors needs to be displayed in the page at the same time.
Suppose If i have two fields like...1)First Name and 2) BirthDate ...both are required fields. If user does not enter any values for both the fields, the errors should display in the page like 'First Name is required! Save Failed' /n
'Float the mouse cursr over the red arrows to see the filed serror mesg'. So all the errors in JSF page should be recorded and displayed when user mouse over taht particular component.
I am new to JSF. Can you please anybody tell me what is best way to implement this in JSF?

We should not use the JSF built-in validation framework and desiging the custom validation. For that we are writing the validate() method in BackingBean.
My Requirement is as follows...
Capture all the errors in JSF page and display the same JSF page with all the errors.
For example: If I have 5 fields in form, and 3 fields out of it fails in validation ...we need to show the page with all the fields and some kind of Red border and arrow on the fileds that are failed in validation.
Also in the bottom of the page we need to display the first field error mesg .....
-- Suppose say First Name, Last Name, DOB, Gender, Field5 are the fields and only Last Name, DOB and field5 are failed in validation...
Then we have to display in the botton of the page **{color:#ff0000}'Last Name is required! Save Failed{color}**' along with this,
We need to display the mesg *{color:#ff0000}''Float the mouse cursor over the red arrows to see the filed error mesg'{color}*. -> This means we are dislaying the page with red arrows on the fileds that are failed in validation.
So when user mouse over in the arrow...we should display the error message for that particular field.

Similar Messages

  • Custom Trigger and error handling problem

    hi ! I'm creating a custom trigger in ASP
    <br />
    <br />all it do is to check the lenght of given string.
    <br />it has a logic , true or false operation.
    <br />I just want to display an error message !
    <br />
    <br />I try BEFORE or AFTER in trigger register, but still didn't work !
    <br />
    <br />but why it didn't work ?
    <br />
    <br />any ideas ?
    <br />
    <br /><%<br />'start Trigger_Custom trigger<br />Function Trigger_Custom (ByRef tNG)<br /><br /> xemployer = len(trim(tNG.getColumnValue("employer")))<br /> xemail = len(trim(tNG.getColumnValue("email")))<br /> xjob_position = len(trim(tNG.getColumnValue("job_position")))<br /> xeducation = len(trim(tNG.getColumnValue("education")))<br /> xreference = len(trim(tNG.getColumnValue("reference")))<br /> xage_max = len(trim(tNG.getColumnValue("age_max")))<br /> xgender = len(trim(tNG.getColumnValue("gender")))<br /> <br /> totallen = (xemployer + xemail + xjob_position + xeducation + xreference + xage_max + xgender)<br /><br /> if (totallen > 158) then<br /><br /> Set update_error = new tNG_error<br /> update_error.init "Your Data contain too much characters ! (max 158)", Array(), Array()<br /> Set Trigger_Custom = update_error<br /><br />  else<br /> Set Trigger_Custom = nothing<br />  end if<br /><br />Set Trigger_Custom = nothing<br />End Function<br />'end Trigger_Custom trigger<br />%>
    <br /><%<br />' Register triggers<br />ins_Job.registerTrigger Array("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Insert1")<br />ins_Job.registerTrigger Array("BEFORE", "Trigger_Default_FormValidation", 10, formValidation)<br />ins_Job.registerTrigger Array("END", "Trigger_Default_Redirect", 99, "../includes/nxt/back.asp")<br />ins_Job.registerTrigger Array("BEFORE", "Trigger_Custom", 50)<br />%>
    <br />
    <br /><%<br />' Register triggers<br />upd_Job.registerTrigger Array("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Update1")<br />upd_Job.registerTrigger Array("BEFORE", "Trigger_Default_FormValidation", 10, formValidation)<br />upd_Job.registerTrigger Array("END", "Trigger_Default_Redirect", 99, "../includes/nxt/back.asp")<br />upd_Job.registerTrigger Array("BEFORE", "Trigger_Custom", 50)<br />%>

    hello there, thanks for replying
    <br />i know what you mean, i see that the first time i submitted in to this forum.
    <br />
    <br />actually IT IS SEPARATED !
    <br />i just copy paste my code into this TextBOX, and that's whats happened
    <br />
    <br />ok i copy paste my code again, but this time i use ENTER to seperated those lines.
    <br />
    <br /><% 'start Trigger_Custom trigger <br /><br />Function Trigger_Custom (ByRef tNG) <br /><br />xemployer = len(trim(tNG.getColumnValue("employer"))) <br />xemail = len(trim(tNG.getColumnValue("email"))) <br />xjob_position = len(trim(tNG.getColumnValue("job_position"))) <br />xeducation = len(trim(tNG.getColumnValue("education"))) <br />xreference = len(trim(tNG.getColumnValue("reference"))) <br />xage_max = len(trim(tNG.getColumnValue("age_max"))) <br />xgender = len(trim(tNG.getColumnValue("gender"))) <br /><br />totallen = (xemployer + xemail + xjob_position + xeducation + xreference + xage_max + xgender) <br /><br />if (totallen > 158) then <br /><br />Set update_error = new tNG_error <br />update_error.init "Your Data contain too much characters ! (max 158)", Array(), Array() <br />Set Trigger_Custom = update_error <br /><br />else <br />Set Trigger_Custom = nothing <br />end if <br /><br />Set Trigger_Custom = nothing <br />End Function <br />'end Trigger_Custom trigger <br />%>
    <br />
    <br /><% ' Register triggers <br /><br />ins_Job.registerTrigger Array("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Insert1") ins_Job.registerTrigger Array("BEFORE", "Trigger_Default_FormValidation", 10, formValidation) ins_Job.registerTrigger Array("END", "Trigger_Default_Redirect", 99, "../includes/nxt/back.asp") ins_Job.registerTrigger Array("BEFORE", "Trigger_Custom", 50) <br /><br />%>
    <br />
    <br /><% ' Register triggers <br /><br />upd_Job.registerTrigger Array("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Update1") upd_Job.registerTrigger Array("BEFORE", "Trigger_Default_FormValidation", 10, formValidation) upd_Job.registerTrigger Array("END", "Trigger_Default_Redirect", 99, "../includes/nxt/back.asp") upd_Job.registerTrigger Array("BEFORE", "Trigger_Custom", 50) <br /><br />%>
    <br />
    <br />there it is My Actual Code looks like.
    <br />
    <br />again, thanks for replying

  • Mapping and Error handling in Seeburger Adapters ?

    Hi,
    1.   In B2B integration part of PI.Whats the way of doing mapping in XI mapping editor and error handling in the mapping ?
    2. Do you think SEEBURGER BIC mapping designer is must for developing maps ? cant we develop same maps in XI mapping editor?
    Thanks and regards,
    Ram.
    Edited by: Ramakrishna kopparaju on Sep 30, 2008 12:27 PM

    Whats the way of doing mapping using seeburger adapters
    The standard mappings are part of Seeburger Suite and if any additional mapping has to be accommodated, then custom mapping could be developed in Seeburger BIC Mapper tool. This has to deployed on adapter engine then. The other mapping is the normal XI mapping (message, java, xsl) which could be performed based on business logic.
    error handling in the mapping ?
    The easiest way is to raise Alert based on the errors in mapping.
    Regards,
    Prateek

  • For IDOC monitoring, analysis and error handling in  ALE & idoc

    Hello...experts..can u please tell me about idoc monitoring,analysis and error handling..and can u please tell as per interview  point of view in this area..if availble can u send material about this...
    thx
    Message was edited by:
            durga kottapalli

    Hi,
    Reprocessing IDocs with errors
    Outbound (BD88)
    Once the error has been determined and corrected it is not necessary to resend the IDoc again. You simply resend the IDocs that have already been generated.
    Using the IDoc overview screen you need to take note of the following for each IDoc that was not processed:
    Error number: 2, 4, 5, 25, 29
    Error number: 30 (Execute Check IDoc dispatch to process)
    IDoc number
    Using the Error number, the IDoc number and the transaction BD88 , with the required message type you can resend the IDoc. Match the error number with this transaction and execute the function for the IDocs incorrectly processed.
    Just check the below link, u will get all IDOC related Interview questions
    http://www.allsaplinks.com/idoc_sample.html
    http://www.allsaplinks.com/
    http://www.sappoint.com/abap.html
    http://www.sap-img.com/
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVEDISC/CAEDISCAP_STC.pdf
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFAALEQS/CABFAALEQS.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVEDI/CAEDI.pdf
    http://www.sappoint.com/abap.html
    http://sap.ittoolbox.com/documents/popular-q-and-a/extending-a-basic-idoc-type-2358
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://expertanswercenter.techtarget.com/eac/knowledgebaseCategory/0,295197,sid63_tax296858_idx0_off50,00.html
    http://www.sapgenie.com/sapedi/index.htm
    http://www.allsaplinks.com/idoc_sample.html
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDALEIO/BCMIDALEIO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDALEPRO/BCMIDALEPRO.pdf
    http://help.sap.com/saphelp_47x200/helpdata/en/dc/6b7eee43d711d1893e0000e8323c4f/frameset.htm
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sap-img.com/
    http://www.allsaplinks.com/
    Regards,
    Suresh.
    Message was edited by:
            SureshKumar Ramamoorthy

  • Proxies - Queueing and Error handling features ???

    My understanding is that you can have synchronous and asynchronous proxies. Do proxies have a queueing mechanism, and do they provide reprocessing and error handling features ???
    Thanks in advance.

    Hi,
    The error can happen due to application error, may be incorrect data or or wrong type of data.
    Or system error, in case the call to SAP XI is not successful.
    Youc an use fault message for the same.
    If you want to catch these exceptions in SAP itself and send alert then you can either use standard FM for raising alert.
    More here:
    http://help.sap.com/saphelp_nw04/helpdata/en/25/a45c3cff8ca92be10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/a1/082589fc4246f09793039d5fb01a17/content.htm
    First configure CCMS in XI System:-
    /people/sap.user72/blog/2005/11/24/xi-configuring-ccms-monitoring-for-xi-part-i
    For Monitoring in the CCMS:-
    http://help.sap.com/saphelp_nw04/helpdata/en/4d/6272376d3bfa2be10000009b38f8cf/frameset.htm
    Go thro' this link for configuration scenario:-
    /people/aravindh.prasanna/blog/2005/12/23/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part--1
    Inbound ABAP Proxy Trace and error handling
    Handling Exceptions
    ABAP Server Proxies - Fault Handling
    Exception handling in integration processes
    ABAP Proxy and fault messages
    /people/bhanu.thirumala/blog/2006/02/07/abap-proxy--xml-to-abap-transformation
    regards
    Aashish Sinha
    PS : reward points if helpful

  • Customized error messages and error handling?

    Hi All ,
    how can we Customized error messages?
    and how we can do error handling in Sibel Analytics ?

    The ADF Developer Guide has a section about "Handling and Displaying Exceptions in an ADF Application", this will explain how to display errors in a new page.
    All you need to do is have the navigation to this page use the dialog framework.

  • Break execution after custom run-time error handler callback

    I am using Teststand 2010 SP1 and have written a custom runtime error handler based on the ErrorHandlerExample example that ships with TestStand. It has been implemented as a StationPostStepRuntimeError callback in my Station Callbacks folder.  I have modified the example as follows:
    (1) Added code to turn off the UUT transmitter if it was on.
    (2) Added a call to an executable that sends an email to the currently logged in user.
    (3) Calls the standard TestStand run-time error dialog using the Engine DisplayRunTimeErrorDialog method.
    (4) Processes the user's selection, then turns on the UUT transmitter for any option other then Abort.
    The callback also checks the status of the Break and "Don't Show again for this execution" options selected by the user.  If the user selects Break then the only option I can find is to call the API Execution.Break() method which breaks the execution right there in my callback. The user then has to single step there way out of the callback.   Is there a way of instructing TestStand to complete the callback execution and break immediately after completing the callback (i.e.at the step following the error)?  I've zipped up and attached my modified sequence.
    Alternatively, is there a better way of doing this?
    Regards,
    David
    Solved!
    Go to Solution.
    Attachments:
    StationCallbacks.7z ‏13 KB

    Didn't have a chance to try it yet but maybe StepOut is your solution?
    From the TS Help:
    StepOut Method
    Syntax
    Execution.StepOut
    Purpose
    Resumes the execution from a suspended state and then suspends the execution again after execution of the current sequence completes.
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • Validation and  Error Message Dialog Box

    hi,
    I created 2 items DateFrom and DateTo.....when User enter dates into these items I need validate these dates i.e DateTo should be greater than DateFrom
    if it is not so,,,,I need to Popup a Error message in Dialog Box.........
    and this Error should not terminate the Program.
    Thanks in Advanced
    regards,
    Radhika

    Radhika,
    You need to attach PPR event to the Date To column. In the event code in controller, you can validate do the validation and accordingly throw error on the page.
    Why do you need a pop up(javascript alert) for that?
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • JCo Client Programming and Error Handling

    Hi all,
    I was wondering if anybody could help me out with some advice on error handling when writing code to send messages to SAP via a JCo Client, particularly IDocs.
    I understand from my reading that IDocs are always sent asyncronously to the SAP system from JCo, using JCO.Client.send(). So it is possible (and I have some test code working to do this) to force an exception with say a malformed IDoc, and catch the exception in my code.
    But due to the asyncronous nature of the send functionality for IDoc, I cannot see any way of getting back any "business level" exceptions (e.g. Order Number does not exist, Unknown Material, etc.)
    So my question is, is it possible to receive any of these type of error messages when sending IDocs to an SAP system using JCo? Perhaps by setting up a JCo Server with the correct error/exception listeners to receive these messages - but are they even sent out in the way?
    If not what is the process for handling them?
    It is of course possible to look in the SAP system using txn WE02 and see the problem/error but that does not help me to propagate this back to the sending application or to maintain state alignment between the two apps.
    Any advice much appreciated!!
    Chris

    Hi Anil,
    you should check on those trheads:
    <a href="https://www.sdn.sap.com/irj/sdn/thread?messageID=3104772&#3104772">https://www.sdn.sap.com/irj/sdn/thread?messageID=3104772&#3104772</a>
    <a href="https://www.sdn.sap.com/irj/sdn/thread?messageID=579794&#579794">https://www.sdn.sap.com/irj/sdn/thread?messageID=579794&#579794</a>
    Regards,
    Gianluca Barile

  • Transaction and Error handling in Mediator 11g

    Hi Experts/Gurus/All,
    We have following scenario in Mediators :-
    For Inbound Interfaces :-
    M1-->M2-->M3
    M1 calls M2 and M2 calls M3
    There are 3 mediators, Mediator#1(M1),Mediator#2(M2) and Mediator#3(M3)
    M1 performs a FIle Read and do a ABO-->OAGIS conversion
    M2 performs routing
    M3 performs a OAGIS -->ABO(JDE E1) conversion.
    Now,we are in middle to decide the Fault Handling Mechanism for this case.
    M1 is Asynchronous , M2 is Synchronous and M3 is also Synchronous.
    Question is :
    1. M1 will start a new Transaction,Do M1 will propogate the same transaction to M2 which,as being Synch,propogates the same transaction to M3 ?
    2. How will the commit and Roll back will be taken care of?
    3. What if M1 errors out?
    4. Whatif M2 errors out?
    5. What if M3 errors out?
    In question 3,4 and 5:
    What will happen will the Full Transaction ? If M3 erros out,would the Entire Transaction Propogated by M1 will be roll back?
    Also ,How about Error handling in this case:
    Do I need to create seperate fault-policy.xml and fault-binding.xml for M1,M2 and M3 ?
    Another Scenario is of OUTBOUND interfaces :-
    M1-->M2-->M3
    M1 calls M2 and M2 calls M3
    However , M1,M2 and M3 are all Asynchronous.
    In this scenarios how would I handle following :-
    1. If M2 Errors out,I need the entire Interface which comprises of M1-->M2-->M3 to roll back?
    2. If M3 Errors out,I need the entire Interface which comprises of M1-->M2-->M3 to roll back?
    3. Seperate Transactions means I have to create seperate fault-policy.xml and fault-mapping.xml to handle errors?

    Hi,
    You could create a package, and use the OdiSqlUnload to export the data into a flat file (csv) from snp_check_tab, then amend it. Then create an interface to load the data from the flat file to your tables, either via external tables or SQL Loader.
    Question is, why are you amending data going from source to target? there surely has to be something wrong with the Architecture (especially if you are getting errors in production). If you amend data, so that it is different in source as it is in target, then when it comes to regression testing, this will never match.
    The errors should go be fixed at source, and either you, or the business should have access to do so.
    Cheers
    Bos

  • Alerts and Error handling in BPM Async/Sync Bridge

    Hello All,
    I am developing an Async/Sync Bridge in BPM for sending a request from ECC webservice asychronously to a front end application synchronously using BPM Async/Sync Bridge. I get a response from the front end to PI and stays there.
    It wont be send back to ECC. What are the possibilities of error handling required in this type of scenario.
    Thanks
    Deno

    . I get a response from the front end to PI and stays there.
    Then it should mean that the BPM design is faulty...did you have a send step at the end which closes the Async-Sync Bridge by sending the message to original sender?
    In SXMB_MONI --> For BPM message processing there will be a link called PE...click it...check the graphic workflow...see till where the message has processed.
    error handling
    include your Sync send step whithin a Block....this block will have an Exception Branch....in this exception branch you can have your Exception handling logic...like raise alert, cancel process etc.
    Regards,
    Abhishek.

  • JMS adapters and error handling

    Dear all,
    1. I have a scenario in which XI will be getting messages from Two JMS servers located in different locations. The messages from the two servers have no relation but XI has to check if messages are present in any of the servers and poll them. So can anyone suggest me a better approach. I can use two sender adapters and use a BPM. Is there any other way to do it avoiding BPM?
    2. How do I delete the message from the JMS Queue once it is processed?
    3. In the Reciever side I have to send messages to two different target systems based on a condition. From the sender side a field (value) is passed which will check these conditions. If the value contains one of the target system names, the message has to go to that particular system and if the value contains both the target system names, the message has to go to both the target systems. I think this can be done in BPM but please recommend an approach for this.
    4. I need to do error handling both in the adapter side and in mapping level. Kindly give suggestions for the same.
    Expecting your replies soon,
    Harikumar. S

    Hi ,
    Refer to following blogs ,
    JMS Adapter
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cd/d85a9d6fab7d4dbb7ae421f710626c/content.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3867a582-0401-0010-6cbf-9644e49f1a10
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f02d12a7-0201-0010-5780-8bfc7d12f891
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/3.0/how%20to%20use%20the%20content%20conversion%20module%20with%20the%20xi%203%20j2ee%20jms%20adapter
    /thread/217893 [original link is broken]
    JMS adapter -Message format pre-requisites
    /people/alessandro.guarneri/blog/2006/01/04/jms-sender-adapter-handling-too-short-lines
    /people/william.li/blog/2006/11/13/how-to-use-saps-webas-j2ees-jms-queue-in-exchange-infrastructure
    Thanks ,
    Suvarna
    Award pts if ans helps .

  • Applescript and error handling

    Hi,
    is there something like error-handling for applescript in general or just limited to special actions/functions like "try" ?
    i want to optimize my applescript app just for the case that it could be needed.
    Best regards
    fidel

    To elaborate a bit, error handling in a 'try' block is implemented with the 'on error' statement. The simplest use is something like this pseudo-script :
    try
    {script steps that might produce an error}
    on error
    {script steps for the error condition}
    end try
    'on error' optionally will return information about the error. Most widely used are the error message (text) & the error number:
    try
    {script steps that might produce an error}
    on error errMsg number errNum
    {script steps for the error condition using the variables errMsg and/or errNum}
    end try
    The second form allows you to detect & handle specific errors.

  • Editable alv: add custom validation and display "errors" in protocol list

    Hi,
    What I want to do:
    PAI validation of editable alv with displaying error's in the protocol list by adding custom entries to the existing protocol object.
    What is my problem:
    After registering "data_changed event", the protocol list don't appear.
    My understanding is, that the object "er_data_changed" is passed by the event "data_changed"
    an so I thought I can add some more entries to the protocol list.
    After "de-registering" the "data_changed" event, the protocol appears with the standard errros messages (e.g. "input to numeric" by enter charachters)
    One more hint:
    By creating a new object "er_data_changed" in the handler method the protocol list works, but I would like to append entries to the object that was passed with the event.
    Probably I've misunderstand something, please help !
    My coding:
    PAI:
    trigger event "data_changed" -> calls handler method
      CALL METHOD r_myalv->check_changed_data
        IMPORTING
          e_valid = is_valid.
    stop processing
      IF is_valid NE 'X'.
        MESSAGE 'invalid input' TYPE 'E' .
      ENDIF.
    handler method:
    handle_data_changed FOR EVENT data_changed  OF cl_gui_alv_grid  IMPORTING e_ucomm
                                                                                    er_data_changed.
    METHOD handle_data_changed.
        data: ls_mod_cell type lvc_s_modi.
         CALL METHOD er_data_changed->add_protocol_entry
                    EXPORTING
                           i_msgid     = 'SU'
                           i_msgty     = 'E'
                           i_msgno     = '000'
                           i_msgv1     = 'This is a test !'
                           i_fieldname = ls_mod_cell-fieldname.
         er_data_changed->refresh_protocol( ).
         er_data_changed->DISPLAY_PROTOCOL( ).
    ENDMETHOD.                    "handle_data_changed

    Dear Olaf,
        If understood correctly, you want to Edit an ALV and do some data validations when some data is changed in an ALV.   To do this follow the following steps:
    1.   Before displaying ALV, Register the edit event.
    * Set cell modified to trigger data_changed
    CALL METHOD go_alv_grid->register_edit_event
    EXPORTING
    i_event_id = cl_gui_alv_grid=>mc_evt_modified.
    2.  Register the event DATA_CHANGED of class CL_GUI_ALV_GRID & handle the event.
    SET HANDLER lo_event_receiver->handle_data_changed FOR go_alv_grid.
    The event DATA_CHANGED of class CL_GUI_ALV_GRID has a parameter ER_DATA_CHANGED which is of type CL_ALV_CHANGED_DATA_PROTOCOL.
    This er_data_changed has internal table MT_MOD_CELLS(contains index of records changed ) & MP_MOD_ROWS(contains the changed row), using these update your internal table accordingly.
    DATA : wa_mod_cell TYPE lvc_s_modi.
    FIELD-SYMBOLS: <fs> TYPE table.
    LOOP AT er_data_changed->mt_mod_cells INTO wa_mod_cell.
    ASSIGN er_data_changed->mp_mod_rows->* TO <fs>.
    READ TABLE <fs> INTO wa_output INDEX wa_mod_cell-tabix.
    MODIFY lt_output FROM wa_output INDEX wa_mod_cell-row_id.
    ENDLOOP.
    3.   Here it self you can do the required data validations(No need of any PAI modules) as below.
    IF wa_orders-zfstfirmtyp = c_9.
    MESSAGE s288(zcsp).
    DELETE er_data_changed->mt_mod_cells.
    EXIT.
    ENDIF.
    Regards
    Kesava

  • Custom inbound Idoc error handling/ Workflow

    Dear Experts,
            I have a requirement where in I created a custom inbound idoc, but now i need to handle the errors in the workflow and notify the users thru workflow on an error.
    Can some one please provide me a step by step guide on how to create a organizational unit, position and assign users to the position... and any other steps that need to be configured to notify the user on the error.
    I'm pretty new to all these organizational uints and workflow related stuff. Any step by step would really be helpful.
    Thanks for your time.
    -Amit.
    Moderator message: sorry, these forums cannot replace proper training, if there is step by step guides out there, then please use the search functions.
    Edited by: Thomas Zloch on Oct 31, 2010 11:50 AM

    Vittal,
    1. If your requirement is for a SAP Standard Basic Message type and a Z extension: Then you simply have to find out the 'Standard Task' associated with basic type. You shouldn't worry about extensions. The standard task will be triggered at input error.
    2. If your requirement is for a Z basic type i.e. you have created a customer IDOC for a custom processing: There are many dependencies on how you can achieve this. Firstly, you need to know how you're are processing this Z_IDOC. Are you using a standard FM or custom workflow or custom FM? There should be some triggering event within the processing of this Z_IDOC which will raise a certain flag when the error you want to capture happens (or when there is a generic error). You can configure this event in binding objects to trigger a workflow task. If you take a look at any standard tasks, you'll get an idea how the triggering event happens.
    Once the workflow task (you can use custom task or use a standard task i.e. by triggering a standard event within the IDOC processing program) is triggered, you can either send it to SAP inbox, e-mail, trigger another processing etc. This is altogether another story.
    So bottomline: For custom IDOC processing, you need to trigger an event when error happens. This can be a custom event or a standard event. This event should be linked to a task (custom/standard - check in SWETYPV). Bind all of these in PFTC. Once the task is triggered, you can do whatever you want to do with it.

Maybe you are looking for