How to delete the error stack in process chain?

Hi all,
we just want to do the following:
- we are loading in FULL daily to our datatarget (data is versionized by 0calday)
- we want to use the error-stack in order to analyze wrong data
--> but we now encounter the problem that, if data has once been added to the error stack and has not been handled yet, all data from the next daily load will be sorted out as records with this key do already exist in the error-stack. But that's exactly what we want to avoid.
with other words: how can we delete the records in the error stack by a report by e.g. using this in a process chain?
Thanks in advance,
Best regards,
bivision
Edited by: bivision2009 on Jul 6, 2010 12:25 PM

Dbl click that DTP.... From menu... Extras -> Setting for Error Stack
Here U can see error stack table name /BIC/B0001234000.
Using SE38, create simple program "Delete from /BIC/B0001234000"
In the process chain, add process type "ABAP Program" to add above deletion statement.

Similar Messages

  • How to delete the error stack?

    Hi guys
    we just have a simple problem but cannot find the answer:
    We are working with error handling on our transformations / dtp requests.
    There are as well error dtps for coping with the errors produced.
    However, there is often the case that there are records which can not be corrected.
    Therefore, we would like to delete the remaining content in the errorstack.
    Unfortunately, we couldn't find any standard report so far for doing this.
    So how is this possible?
    Thanks & regards
    bivision

    Hi bi vision,
    Create ABAP program and include it in your process chain.
    Logic is as follows:
    1) Create a Program variant.
    2) Save the variant with all your DTP Technical names.
    3) write a program.
    4)   SELECT odsname_tech userapp userobj FROM rstsods
                       INTO TABLE lt_rstsods
                       WHERE userobj IN s_dtp
                       AND userapp = 'ERRORSTACK'.
      IF lt_rstsods IS NOT INITIAL.
        SORT lt_rstsods.
        SELECT requid dtp FROM rsbkrequest
                          INTO TABLE lt_rsbkreq
                          WHERE dtp IN s_dtp.
        IF lt_rsbkreq IS NOT INITIAL.
          SORT lt_rsbkreq BY requid DESCENDING.
          SELECT requid sid FROM /bi0/srequid INTO TABLE lt_srequid
                            FOR ALL ENTRIES IN lt_rsbkreq
                            WHERE sid = lt_rsbkreq-requid.
          IF lt_srequid IS NOT INITIAL.
            SORT lt_srequid BY sid DESCENDING.
          ENDIF.
        ENDIF.
      ENDIF.
    5)   LOOP AT lt_rstsods INTO ls_rstsods.
        lv_errtab = ls_rstsods-odsname_tech.
        READ TABLE lt_rsbkreq INTO ls_rsbkreq WITH KEY
                   dtp = ls_rstsods-userobj BINARY SEARCH.
        IF sy-subrc = 0.
          lv_requid = ls_rsbkreq-requid.
          READ TABLE lt_srequid INTO ls_srequid WITH KEY
                        sid = lv_requid.
          IF sy-subrc = 0.
            lv_treqid = ls_srequid-requid.
            DELETE FROM (lv_errtab) WHERE request NE lv_treqid.
            if sy-subrc = 0.
              MESSAGE text-005 TYPE 'S'.
            else.
              MESSAGE text-006 TYPE 'S'.
            endif.
          ELSE.
            lv_treqid = ''.
          ENDIF.
        ELSE.
          lv_requid = ''.
        ENDIF.
        CLEAR: lv_errtab, lv_requid, lv_treqid.
      ENDLOOP.
    Hope this will help you.  The same has implemented in our project and it is working fine.
    Regards,
    Krishna Chaitanya

  • How to fill the error stack

    Hi,
    we want to check the data quality of the source in the start routine, process the good in the target and the bad in the error stack. Have you any idea which exception I have to raise to put it in the error stack?
    regards, Adrian

    Hi Adrian,
    you have to use skip record exception in a transformation routine. If this exception is rissen, the return code of the routine is unequal to zero and the data row is moved to error stack.
    If you create a transformation routine there is a short example given how to rise skip record exception. Skip value exception wont help, it will only clear the result and returns a blank or zero to the target.
    Please be aware of that the exception neither exits in start nor in end routines. There is no errorhandling on row level possible.
    Additionally create monitor entries to describe the error you are creating with calling the exception. It's recommended to create your own message class to do so.
    Regards Michael
    edit
    Remember switching on error handling in DTP configuration
    Edited by: Michael Seifert on Aug 12, 2008 1:46 PM

  • How to populate the Error stack during error records in field level routine

    hi,
    I am capturing the error records in Field level routine in transformation. now i want these records to reflect in error stack.
    i am using 'Append monitor-rec to MONITOR' at the moment but i cant see any records in error stack.
    but when i am using the same statement in start routine i am getting records in error stack.
    can anyone please help as to how can i populate error stack through field level routine?

    Hi,
    Try to do it in the end routine instead of the field routine.
    It should work.
    Regards,
    Joe

  • How to delete the error message in Adapter?

    I got one error record stuck in destination JDBC adapter. Is it possible for me to delete the error record?

    Hi Elliot,
    SXMB_ADM
    Integration Engine Configuration
    Specific Configuration
    Category: DELETION
    Parameters: PERSIST_DURATION, PERSIST_DURATION_ERROR
    Subparameters: SYNC, ASYNC
    Change "Current Value".
    and execute your delete job again!
    Regards,
    Udo

  • How to create the variable variant in process chains for ip

    how to create the variable variant in process cahins for ip

    Hi venky,
    check these links
    http://help.sap.com/saphelp_nw70/helpdata/EN/c0/980398e58611d194cc00a0c94260a5/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/EN/c0/98038ce58611d194cc00a0c94260a5/content.htm
    bhaskar

  • How to delete  old schedule time of process chain after changing

    I am try to change the schedule time of process chain on production but after changed the old schedule is still working (i.e. every day on 7 am I want change it to 6 am only) ,one process scheduled two time.
    I want only last changed. How to remove the older one?
    Thanks

    hmm wierd...one more thing check if this process chain get trigger by anyother process chain by some abap program or any.
    Check the table rspcchain to know if it has any meta chain or not. IF not follow the below steps :
    make your process chain trigger based upon the event. Follow the below step.
    1.SM64 ---> Create event -
    > come to your process chain -> maintain the start variant -> event base---> give that event name here.Now we will be require to create the job which will trigger this event for  this.
    2.Let us take the below PC as example;
    ZL_TD_HCM_004 -- This PC is running after event u2018START_ZL_TD_HCM_004u2019
    3.Go to T Code: SM36 Here we define the Background job which will be available in SM37 after saving it.
    4.It will ask for ABAP Program to be entered. Give it as Z_START_BI_EVENT and Select Variant from the list. (Based on Process chain, you can select it)
    5.Then select Start Conditions and give the start time of process chain. and select periodicity.
    6.Save the newly created job in SM36.It will be now available in SM37.
    This should solve your problem now .. have  fingure crossed
    Thanks,
    Deepak
    Edited by: Deepak Machal on Dec 14, 2011 8:20 AM

  • How to delete the error message in the Web page Message Monitoring

    Hi All:
    I'd like to ask a question.If there is error message in the T-code sxmb_moni->Monitor for Processed XML Messages,I can cancel the error message manually and archive the message. After that,I can delete the message from "Monitor for Processed XML Messages".
    But after those operation,I find in the web page " Message Monitoring", there are still messages in the "Messages from Component Integration Server and/or Adapter Engine".
    How can I delete those message both successful and error.
    Thanks All
    Elliott

    Hi Elliot,
    SXMB_ADM
    Integration Engine Configuration
    Specific Configuration
    Category: DELETION
    Parameters: PERSIST_DURATION, PERSIST_DURATION_ERROR
    Subparameters: SYNC, ASYNC
    Change "Current Value".
    and execute your delete job again!
    Regards,
    Udo

  • How to identify what are all the errors appears in process chain,

    Hi all,
    i have a process chain running, but i want to find out what are all the errors that the process chain has thrown
    thanks
    pooja

    Hi Pooja,
    Errors in monitoring:
    SID error
    Reason: If the corresponding master data is missing for the particular transaction data.
             1. Check for the load timing for the respective master data, if it less than an hour  then make the request red and repeat the ip.
             2. If the data is loaded to PSA then you have to delete the request from target and manually push the data to from PSA.
             3. If we are required for selective update then note down the info source from header and find it in RSA1,select the one with ‘Single as postfix’.
             4. Goto ‘data selection’ tab and change the range.
    Tip: change the last 4 digits for from to ‘0000’and the last 4 digit for to     ‘9999’.
            5. Repeat the ip.
             6. In case only of failure in one target goto RSA1 find the PSA, put he request no. and reschedule it.
    Note: IF PSA is present never make the request red rather delete it.
    Replication error
    Reason: Data source replication Failed.
             1. In order to handle this error you should be known to IP, info source and source system.
             2. Goto RSA1, find the data source in the source sys tab.
             3. Right click on the data source and replicate it.
             4. Since all the transformation rules pertaining to this data source need to be reactivated so go to SE38 and execute rs_transtru_activat_all, data source and sys name.
             5. Delete the ‘red’ request from the target.
    Update R not supported
    Reason: The corresponding initialization flag for the ip is lost.
             1. Goto header click on the ip and goto schedule tab and click initialize in the source system, whatever screen appears delete the only request present(the initialization flag).
             2. Goto RSA1, find the ip in the info source (one with the Adhoc initialize flag).
             3. Goto update tab and select ‘Initialize delta process’ try going for ‘with data transfer’.
             4. Reschedule the IP.
    Duplicate Record Error
    Reason: Duplicate error records for the loaded master data.
             1. Goto info package via header or via RSA1.
             2. Goto ‘processing tab’ and change the ip setting, selecting only PSA and ignore duplicate records and re run the ip.
             3. Do remember to change the ip settings back to the original once after the second step.
    ODS activation failure
    Reason: Prerequisites for ODs activation not satisfied i.e. unique key.
             1. Goto ‘maintain variant’.
             2. Check for the ‘QM’ status of the requests in the target they should be green.
             3. Then click the ODS activation tab.
             4. In the screen which appears put the requests for which ODS activation failed.
             5. Activate these and keep on refreshing them until status reverts from green,
    Remember to refresh these requests one at a time.
             6. If requests are red then delete them from target.
             7. Reschedule the IP.
    Note: Never Try activating ODS manually if it is Y1.
    Aggregate Rollup error
    Reason: No aggregate found for the respective rollup.
             1. Click on the variant in which the error occurred.
             2. Goto chain tab and copy the variant and instance.
             3. Run the nestle provided program YBW05.
             4. Put in info in there and put the status as g – ‘green’.
             5. Execute and refresh the status.
    Lock issue
    Reason: The same ip is been locked by other user or may be used by other process chain.
             1. We can see the locked entries and in the transaction SM12.
             2. Wait for the other process to get complete once the ip loads to target in that process then there is no need for running it for the process.
             3. In other case make the request red, when PSA is present then goto environment tab ->schedule->initiate update.
             4. In the box appears select update in the background.
             5. And the manually update the failed IP’s by selecting manual update in the context menu.
    Alfa confirming value error, Time conversion error, Chain didn’t start, Delay due to long running job, Poor system performance,Heirarchy node exist in duplicate.
    Reasons:
      Alfa confirming error: Data format mismatch.
      Time conversion error: Date, time format mismatch.
      Chain didn’t start: A scheduled chain didn’t triggered at the prescribed timing.
    -For all the above error we have to raise a ticket.
    Idoc or TRFC error
    Reason: An Idoc is been stuck somewhere.
             1. Reload the Master Data manually again from Info-package at RSA1.
             2. Release the Idoc.
             3. In the source system level got environment->transaction->Transaction RFC or Data ware housing level.
             4. In the Screen if the status is ‘Transaction Recorded’ it means its stuck goto edit and click Execute LUW or press F6.
             5. If status is ‘Transaction executing’ then it means its fine wait.
             6. Or raise ticket.
    Error Due to short Dump
    Reason: Error due to Short dump could be due to many reasons i.e. memory, table space, lock, error record, page allocation, failed change run.
    Process terminated in the Source system.
               Reason: Sometimes we face that a load has failed due to job Termination at Source System.             
          This happens due to unavailability of the source system or some connectivity problem between source and target systems.
    1.      Make the request red.
    2.      Delete the request from the data target.
    3.      Reschedule the ip.
    4.      If still the job fails raise the ticket.
    And also check in following links:
    Process Chain Errors
    /people/mona.kapur/blog/2008/01/14/process-chain-errors
    Common Process chain errors
    For Data Load Errors check this blog:
    /people/siegfried.szameitat/blog/2005/07/28/data-load-errors--basic-checks
    Pls assign points if it helps u,
    Thanks & Regards,
    Madhu

  • How to delete Init flag in a  process chain, before processing the init

    Hi,
    At the end of the week i need to re-execute the init request from ODS1 to ODS2.
    Therefore, i have to delete the init flag first and the requests in the CUBE1, everything automatically in the process chain.
    The schedule must be as follow :
    1. Delete init flag on ODS1
    2. Delete all request from ODS1 in the CUBE1
    3. Load an regular INIT request from ODS1 to CUBE1.
    Notes :
    I cannont clear all the CUBE1 content, as i have other datasource than ODS1.
    CUBE1 is the only one data-target of ODS1.
    Any suggestion, as there is no process in the process chain to "Delete Init Flag".
    Best regards,
    Ludovic

    Hi
    Ad.1
    start code----
    DATA: v_count TYPE i,
    p_dsourc LIKE roosprmsc-oltpsource,
    p_rlogsy LIKE roosprmsc-rlogsys.
    p_dsourc = 'your source'. *"8E2_ODS1"
    p_rlogsy = 'your system'. *"BP100"
    SELECT COUNT(*) FROM rssdlinit INTO v_count
    WHERE oltpsource = p_dsourc
    AND logsys = p_rlogsy.
    IF sy-subrc NE 0. "MesgTyp E end the program abnormally
    MESSAGE e508(db6) WITH 'x' 'x' 'in DSource and/or LogSys'.
    EXIT.
    ENDIF.
    Call delete function
    CALL FUNCTION 'RSS1_QUEUE_DELETED_IN_OLTP'
    EXPORTING
    i_oltpsource = p_dsourc "OLTP-Source
    i_logsys = p_rlogsy "LogSys (Myself or Remote)
    EXCEPTIONS
    failed = 1
    OTHERS = 2.
    IF sy-subrc <> 0.
    MESSAGE e508(db6) WITH 'x' 'x' '===> No sucess <==='.
    ENDIF.
    ---end code
    Ad.2
    See RSA1-> Infosources -> select your Infopackage -> Change ->
    Data targets -> Automatic Loading of Similar.. -> Delete existing Request
    Ad. 3
    Create Infopackage with init
    Regards
    PWnuk

  • How to revert back the deleted the message varient in Process chain

    Hi All,
    By mistake i have deleted the message varient for one loading infopackage process in one process chain in production.
    These chain was not in dev and quality. I need to know this message and to whom they were sending this message.
    Is there any way to know revert back the message details ?

    Hi Dennis,
    It was physically deleted.
    I will explain in more detail :
    i have one process chain which has 4 info packages in parellel, after these info packages there is END process which combines all info packages.In this END process there was a Message which used to send mails to business users.
    Today i have removed the END process by mistkenly. I dont know what was the message and who are the recepitents.
    It has happend in production and we dont have any back up.
    Now i want know the what was message and to whom this message was used to send.
    Thanks in advance

  • How to delete InfoCube data in a Process Chain with restictions?

    Hi Friends!
    My process chain is a full update in the cube 
    I need delete the data everyday except  the last day in the month.
    How can I do this in 7.0 release?
    Thanks!

    Hi,
    Please use the option Delete of overlapp requests process type
    Take the following conditions as :
    1) Only delete request from same DTP
    3) Only Full DTP
    3) Only Delete DTP requests from same souce
    Selections are
    Overlapping
    Request date
    Is in the current month
    based on the month
    Hope this helps out
    Thanks
    PT
    Edited by: PT on Feb 23, 2010 7:18 PM

  • How to delete requests in PSA using Process chains

    Hi All,
    Can anyone explain me how to delete all the requests in PSA using Process chains.
    This is what I did...
    1. use Process type 'Deletion of Requests from PSA'
    2. Settings:
    Object Type - PSA table
    Object Name - <Datasource name>          
    Older than - 0 (Zero) days
    These settings doesn't work. Can you please let me know exact settings to use for deleting all the requests in PSA of a datasource.

    Hello Praveen,
    That's what I thought too. But if I use '1' one day, what if I need to run it twice same day? So this doen't work for my requirement.
    Any other suggestions?
    Thanks.

  • How to change the status of a process chain

    Hi,
    I went through Siegfried's blog and knew how to restart a process chain at a failed step which doesn't have "Repeat" option.
    But is there any other function module through which we can change the "Actual State" of the process chain, in siggi's method we can change only the "i_state" of a particular process but not the "Actual State"(refer to RSPCPROCESSLOG table) of the process chain.
    Please do give your suggestions if there is any way to change the "Actual State" of a process chain.
    Regards

    hey Vamshi,
    We can directly change the status of the process chain.
    there is a specific way to do it, you can go in se38 and change the status from one to another ...go to se38 .... type....rspcprocessmonitor*.........presss f4...
    you will get a standard program ..
    now go to this program ...and give the set of inputs .... like PID and all from RSPCPROCESSLOG table ..
    and in the state give the state you want and press f8.
    this should work.
    Assign points if it answers your queries.
    Thanks,
    Dennis

  • How to see the installed BI content process chain?

    Hi Expert,
    I've installed a BI content process chain, called 0TCT_MD_C_FULL_P01, but I can not see it in tcode RSPC, also can not use it. Can you tell how to make it available in RSPC?
    Thanks a lot.
    Happy.Bear

    Hi,Check in RSPC under "Not Assigned"
    And also chcek in Tables related to PCs,
    RSEVENTCHAIN Event Chain Processing Event Table
    RSEVENTHEAD Header for the event chain
    RSEVENTHEADT Header for the event chain
    RSPCCHAIN Process chain details
    RSPCCHAINATTR Attributes for a Process Chain
    RSPCCHAINEVENTS Multiple Events with Process Chains
    RSPCCHAINT Texts for Chain
    RSPCCOMMANDLOG System Command Execution Logs (Process Chains)
    RSPCLOGCHAIN Cross-Table Log ID / Chain ID
    RSPCLOGS Application Logs for the Process Chains
    RSPCPROCESSLOG Logs for the Chain Runs
    RSPCRUNVARIABLES Variables for Process Chains for Runtime
    RSPC_MONITOR Monitor individual process chains
    Thanks
    Reddy

Maybe you are looking for