ICR - Proces. & Comm Status

All,
Is there a way of resetting the Processing/Communication status? It seems that once a status has been set, there is no way of removing it from a record.
Any info will be appreciated.
Thanks
Kris

Hello Kris,
Simply add a new status value '000' and assign an icon. Then this status "Initial" can be selected...
Best regards,
Ralph

Similar Messages

  • Auto setting of the Prod /Proc Order Status

    Even if System status for Prod/Proc Order is not set to CLSD, it is possible to set DLFL indicator or DLF status using Batch Job, but is there a way to do it automatically.
    In CO side while running KO88.... is there a way to set config so that if Order balance is 0 , then the settlement run will also set the system Status is set to CLSD for successfully settled Prod/Proc order

    dear friend,
    the best way to do it is to set the background job (s) based on the standard program PPIO_ENTRY
    you can set several steps, say one for deletion (for example, mass proc. - use function 250 with status DLFL) and other for order closing (you don't need to change a config).
    good luck.

  • ICR Proces 02, 03

    Hi Friends
    Im implementing ICR and I have aplied the correction note 863630 and others, but, I have any doubt still about the process,
    For reconciliate open items ( GL account and Customer and verdors I can use process 03)
    For reconsiliate GL account with out open items I can use Process 02)
    is necesary to use both process because my company use GL open items and GL account with out open items and, customer/vendor open items.
    Thanks in advance

    Hello Lucio,
    As Vishal pointed out the question regarding two separate processes was answered (to some degree) in thread ICR - Which process to use?
    Usually you would not want to look at receivables / payables (open items) and revenue / expense (no open items) at the same time. Therefore it makes sense to separate the processes. Also, as pointed out in the other thread, you would have to specify a key date for open items and a range of posting dates for the other accounts in order to determine which data records should be reconciled with the same program run. Also, your customizing for separating the different object groups would have to be more complex.
    Best regards,
    Ralph

  • ICR proces 003: data reconciliation runtime

    Dear all,
    we are implementing SAP ICR process 003 for both customer/vendor open items and GL open items and have come across the following issue:
    If a user runs tcode FBICR3 for a period in which no data exist (yet) in table FBICRC003A, tcode FBICR3 runs forever without producing any results.
    When running FBICR3 for another period (with data existing in FBICRC003A) we get a result at least after a couple of minutes and everything is fine.
    The issue only occurs in systems with a big amount of data in FBICRC003A.
    Has anybody come across this issue so far? Is there any way to prevent this?
    Thanks in advance for any help + best regards,
    Claus

    The reason was a basis issue (database statistics not updated), no ICR issue.

  • Stored proc execution status, pls help

    hi,
    i need to know if there is a way to find out whether an sp has been executed successfully or not, with the status code being returned.
    i know about the dbms_output.getline() function but i don't know how to use it!
    pls help
    thank you

    Hi,
    do you mean something like that ?
    SQL> create or replace procedure getData(id in number)
      2  is
      3   status number;
      4  begin
      5   select count(1) into status from emp where empno = id;
      6   if status > 0 then
      7     dbms_output.put_line('Success');
      8   else
      9     dbms_output.put_line('Failed');
    10   end if;
    11  end;
    12  /
    &nbsp
    Procedure created.
    &nbsp
    SQL> set serveroutput on
    SQL> exec getData(1)
    Failed
    &nbsp
    PL/SQL procedure successfully completed.
    &nbsp
    SQL> exec getData(7369)
    Success
    &nbsp
    PL/SQL procedure successfully completed.
    &nbspRgds.

  • ICR Proces 003 Functionality

    Hi friends
    Recently I m cuztomizing SEM BCS for financial statement consolidated, from some years ago in version SAP R/3 4.6c, the transaction code F.2E was used to, butin version 5.0 and 6.0 this funcionality there isnt, now Intercompany Reconciliation is used,
    any of yours have implemented this functionality, I have read the notes about this topic and I dont understand verywell how to do this
    Is necesary configured all process, 01, 02, 03
    is necesary use a special ledger , the new functionality mentioned that I can do reconciliation fron sistem No SAP and SAP old versions like 4.6c, 4.7 etc
    I have version 6.0 and I want to do reconciliation beetwen Trading partner, one trading partner was in another client, Ineed to do RFC`s, IDOC`s???
    Best regards
    thanks in advance

    Hello Lucio,
    1. Please apply the corrections from note 863630, 1062292, 1159776, and 1172591 to your system x (ECC6.0) and y (ECC5.0). Please apply the corrections from note 789242 to system z (4.6C). Depending on your use of ICR additional corrections may be necessary. But for getting started the ones I mentioned should be sufficient.
    2. In your central ICR system x (ECC6.0) you should make sure that all companies to be reconciled are set up in transaction OX15.
    3. Run transaction FBICC, specify Reconciliation Process 003, deactivate Test Run and choose Execute. The program will ask you whether you want to include GL open items as well. If you have any companies that post their IC documents to GL accounts, you need to choose Yes. Otherwise choose No.
    4. Start transaction FBIC031. The Inactive flag for FBICRC003A is probably checked. Uncheck this and save your changes.
    5. Start transaction FBIC004. Deactivate Test Run and choose Execute. Please note that you should run this program only when nobody is trying to post FI documents in the system at that time since it will generate the posting framework. This might lead to canceled updates if someone is trying to post. For this reason the program will also not run automatically in the target system when you transport your settings. You have to start the program manually in each system of your system x landscape (development, test, production). Try to choose a time when no postings in FI will be made.
    6. Go to transaction SM59 and create a RFC connection for system y and a RFC connection for system z. You should set up these RFC connections so the user and password are stored. That way data selection will be able to run automatically without logon screens.
    7. If you want your users to be able to display the original FI documents in the original system you should create a second RFC connection for systems y and z. For these RFC connections you should not specify a user name. That way you ensure that if a user tries to display the original FI document they can only do this if they have a user with appropriate authorizations in the original system.
    8. Go to transaction FBIC032. Transaction FBICC created an entry for each company from OX15. There will be two entries if you specified that you want to include GL open items. For each entry you need to specify the appropriate RFC connection from #6 in the column RFC Destination for Data Selection (the second column). If you want to specify the RFC connection from #7 in the first column (RFC Connection for Interactive Functions).
    This completes the setup.
    9. Start transaction FBICS3 in system x to collect all ICR documents from systems x, y, and z using the customizing you set up in FBIC032 (and the customizing generated by FBICC). Specify the year and period you would like to reconcile, deactivate Test Run and choose Execute.
    10. Start transaction FBICA3. Deactivate Test Run and choose Execute.
    11. For productive use you should set up #9 and #10 as two steps of a batch job to run at regular intervals.
    12. Start transaction FBICR3. This is the only transaction that your users will usually execute themselves. For a demo of this transaction please review FI_EN_ICR_sim.zip attached to note 863630. This simulation was recorded for process 001 and is not quite up-to-date regarding a couple of minor details. But it does show the important points. Please download iTutor Software from https://websmp207.sap-ag.de/swdc (search for software iTutor).
    You do not need to actually set up SL in any of your systems for process 003!
    Hope this helps,
    Ralph

  • ICR Proces 001+003

    Hello,
    We start to work with ICR and I have problems with selection.
    I activate process 003 and ask to include the GL open items.
    I maintain the customization of 003 but didn't maintain any on 001.
    I have 2 problems:
    1. I only customize few company codes but the selection include companies that I didn't maintain in "Companies to be Reconciled".
    2. From the documentation I fought that for GL open items, in table FBICR003A/T the field RCUST will contain the GL account number. But I see that in this field is a number that I do not know where it came from.
    Thank You
    Orna

    Hello Oma,
    Ad 1. This probably happens because you do not restrict the company IDs on the selection screen of FBICR3. In this case the partner companies are also included as first level nodes in the navigation tree so you can see the business relationship from both sides.
    Example
    You set up reconciliation for company C1000. You have 1 open item for partner company C2000. You select data for C1000. If you now start FBICR3 your tree will look like this:
    C1000
       C2000
    C2000
       C1000
    Ad 2. I do not have an explanation for this. If this issue still persists you may want to consider opening a service ticket.
    Hope this helps,
    Ralph

  • How to check Passthrough nad auto commit status

    Hi;
    I am connected with my dsn.
    [timesten@dellstudio info]$ ttisql tt_passuser1
    Copyright (c) 1996-2008, Oracle. All rights reserved.
    Type ? or "help" for help, type "exit" to quit ttIsql.
    All commands must end with a semicolon character.
    connect "DSN=tt_passuser1";
    Connection successful: DSN=TT_passuser1;UID=passuser1;DataStore=/d01/app/oracle/tt70/DataStore/TT_passuser1;DatabaseCharacterSet=WE8ISO8859P1;ConnectionCharacterSet=US7ASCII;DRIVER=/d01/app/oracle/tt70/TimesTen/tt70/lib/libtten.so;OracleId=db10g;Authenticate=0;PermSize=100;PassThrough=1;TypeMode=0;
    (Default setting AutoCommit=1)
    Command>
    what should i write in command>
    1)now how to check that what is passthrough(01,2,3,) for this DSN ..........command is something "passthrough status"
    2)Also want to chack autocommit status (0 or 1)

    you r Greattttttttttttttttttt..........................................
    [timesten@dellstudio ~]$ ttisql tt_passuser1
    Copyright (c) 1996-2008, Oracle. All rights reserved.
    Type ? or "help" for help, type "exit" to quit ttIsql.
    All commands must end with a semicolon character.
    connect "DSN=tt_passuser1";
    Connection successful: DSN=TT_passuser1;UID=passuser1;DataStore=/d01/app/oracle/tt70/DataStore/TT_passuser1;DatabaseCharacterSet=WE8ISO8859P1;ConnectionCharacterSet=US7ASCII;DRIVER=/d01/app/oracle/tt70/TimesTen/tt70/lib/libtten.so;OracleId=db10g;Authenticate=0;PermSize=100;PassThrough=1;TypeMode=0;
    (Default setting AutoCommit=1)
    Command> show autocommit;
    autocommit = 1 (ON)
    Command> show passthrough;
    PassThrough = 1

  • ICR- Message no. FB_RC017

    Message no. FB_RC017
    Diagnosis
    Due to the definition of display categories Open Items and Payables some of the selected data records are contained in both display categories. This will also affect the calculated total amounts.
    System Response
    Warning
    Procedure
    I went throgh the thread Re: ICR Proces 003 Functionality and also went through the notes'
    https://service.sap.com/sap/support/notes/1164059. It is like searching a needle in a haystack. Appreciate your help for resolution
    Sivakumar

    Hello Sivakumar,
    What exactly is your question?
    Apparently you have object group Open Items as well as object group Payables. Open payables by definition are open items as well. Therefore any open payables item is included in both object groups. So you will see the open payables if you select object group Open Items and you will the the open payables if you select object group Payables.
    Your display probably looks something like this:
    C001               90'000
    -  C002            90'000
       - Open Items    45'000
       - Payables      45'000
    In reality the total difference between C001 and C002 is 45'000. But because all items are included twice the difference for this business relationship is displayed as 90'000. The warning is just supposed to let you know that if e.g. you were to compare the business relationship difference to your balances of the two business partners there will be a mismatch.
    Recommendation: Decide whether you want to use Open Items or Payables/Receivables. Delete the object group you do not want to use.
    Best regards,
    Ralph

  • XI messages can't be archived or delete - Is this a commit issue?

    Hello Experts,
    XI team is reporting that messages sent from ECC are in a 'no commit' status and XI administrators are neither able to archive them nor delete them.
    I see we have following COMMIT code:
          CALL METHOD iref_proxy->execute_asynchronous
            EXPORTING
              output = t_employee_master_data.
          COMMIT WORK.
    Is this not the right way to commit the work. Please inform if you have any clue to address the root cause.
    Thank you very much.
    saplover

    HI
    Commit work usage looks fine
    But where you are watching this error and what is the requirement you are trying to achieve. Please provide more info on this
    Thanks
    Gaurav

  • Inserts into Global Temporary Table

    I'm working on using a global temporary table in one of my apps. I have a small test run here to isolate the problem. It simply creates the global temporary table, inserts a row, commits and then does a select to see if the insert worked. No data shows in the table when running this. I don't know much about global temp tables, so any help would be appreciated.
    CREATE GLOBAL TEMPORARY TABLE AGENT_SILO.AS_TEMP_VALIDATE (
    SBI_EMPLOYEE_ID NUMBER,
    CURRENT_FLAG char(1),
    EFFECTIVE_START date,
    EFFECTIVE_END date
    ) ON COMMIT DELETE ROWS;
    INSERT INTO AGENT_SILO.AS_TEMP_VALIDATE(SBI_EMPLOYEE_ID, CURRENT_FLAG, EFFECTIVE_START, EFFECTIVE_END)
    VALUES(0, '', SYSDATE, SYSDATE);
    commit;
    SELECT * FROM AGENT_SILO.AS_TEMP_VALIDATE;

    So I wonder what else I'm doing wrong that's really obvious. Here's what i'm trying to accomplish and maybe there's a better way of going about it.
    I have a trigger that is supposed to do some validation before the insert is allowed to go through. So here's my approach. I have a trigger fired when there's an insert into the AS_Employee_history table. This passes some of the fields from this insert into a proc (the id, a flag and a couple of dates). Within the proc, i create a global temp table, insert these passed values into the temp table. Then I have a cursor to basically copy the rows from the as_employee_history table that have the same id. Then I can do some selects on the temp table to see if it passes the validation.
    I have outputs throughout for debugging and it gets to right after the inserts into the temp table, then the rest of the code doesn't appear to be executed. So it looks like it's failing at the execution of select statements on the temp table. Anything else obvious that I"m missing here?
    Here's my proc.
    PROCEDURE "PAS_VALIDATE" (STATUS OUT VARCHAR2, v_status OUT BOOLEAN, NEW_SBI_EMPLOYEE_ID IN NUMBER,
    NEW_CURRENT_FLAG IN CHAR, NEW_EFFECTIVE_START IN DATE,
    NEW_EFFECTIVE_END IN DATE)
    IS
    v_prev_effective_end date;
    v_flag_count number;
    v_flag_count_date number;
    --variables to store dynamic sql returns
    v_sql_flag_count_date varchar2(255);
    v_sql_flag_count varchar2(255);
    v_sql_prev_eff_end varchar2(255);
    cursor c_row is
    select * from AGENT_SILO.AS_EMPLOYEE_HISTORY EMP
    where (EMP.SBI_EMPLOYEE_ID = NEW_SBI_EMPLOYEE_ID);
    r_row c_row%ROWTYPE;
    BEGIN
    Status := 'Started';
    v_status := true;
    DBMS_OUTPUT.PUT_LINE('Creating temporary table...');
    execute immediate 'CREATE GLOBAL TEMPORARY TABLE AGENT_SILO.AS_TEMP_VALIDATE (
    SBI_EMPLOYEE_ID NUMBER,
    CURRENT_FLAG char(1),
    EFFECTIVE_START date,
    EFFECTIVE_END date
    ) ON COMMIT PRESERVE ROWS';
         DBMS_OUTPUT.PUT_LINE('Validating the data...');
         --DBMS_OUTPUT.PUT_LINE('Inserting submitted row into temp table');
    --Insert the new row being submitted from user into the temp table
    execute immediate 'INSERT INTO AGENT_SILO.AS_TEMP_VALIDATE(SBI_EMPLOYEE_ID, CURRENT_FLAG, EFFECTIVE_START, EFFECTIVE_END)
    VALUES(' || NEW_SBI_EMPLOYEE_ID || ',
    ''' || NEW_CURRENT_FLAG || ''',
    to_date(''' || to_char(NEW_EFFECTIVE_START, 'mm/dd/yyyy hh:mi:ss') || ''', ''mm/dd/yyyy hh:mi:ss''),
    to_date(''' || to_char(NEW_EFFECTIVE_END, 'mm/dd/yyyy hh:mi:ss') || ''', ''mm/dd/yyyy hh:mi:ss''))';
    --Insert the other rows to we end up with a subset of the employee history table
    --with only rows that match the sbi_employee_id of the submitted row
         --DBMS_OUTPUT.PUT_LINE('Inserting into temp table...');
    open c_row;
    loop
    fetch c_row into r_row;
    exit when c_row%NOTFOUND;
    execute immediate 'INSERT INTO AGENT_SILO.AS_TEMP_VALIDATE(SBI_EMPLOYEE_ID, CURRENT_FLAG, EFFECTIVE_START, EFFECTIVE_END)
    VALUES(' || r_row.SBI_EMPLOYEE_ID || ',
    ''' || r_row.CURRENT_FLAG || ''',
    to_date(''' || to_char(r_row.EFFECTIVE_START, 'mm/dd/yyyy hh:mi:ss') || ''', ''mm/dd/yyyy hh:mi:ss''),
    to_date(''' || to_char(r_row.EFFECTIVE_END, 'mm/dd/yyyy hh:mi:ss') || ''', ''mm/dd/yyyy hh:mi:ss''))';
    end loop;
    close c_row;
    DBMS_OUTPUT.PUT_LINE('After inserts');
    -----Store queries to determine values for validation--------------------------
    v_sql_prev_eff_end := 'SELECT to_char(max(effective_end), ''dd-mon-yy'')
    FROM AGENT_SILO.AS_TEMP_VALIDATE
    where to_char(EFFECTIVE_END, ''dd-mon-yy'') != ''31-dec-99'' AND
    SBI_EMPLOYEE_ID = NEW_SBI_EMPLOYEE_ID';
    --Find the largest effective_end, besides the 9999 value
    execute immediate v_sql_prev_eff_end into v_prev_effective_end;
    DBMS_OUTPUT.PUT_LINE('The highest previous end date: ' || v_prev_effective_end);
    --...........Validation testing...........
    execute immediate 'DROP TABLE AGENT_SILO.AS_TEMP_VALIDATE'; --Drop temp table
    DBMS_OUTPUT.PUT_LINE('Validation Procedure Complete');
    COMMIT;
    status:='Success';
    EXCEPTION
    When Others Then
    ROLLBACK;
    Status := SQLERRM;
    END;
    Thanks a bunch for helping a noob out.

  • Java API - EventHandler threads not getting killed

    Hello everybody,
    I didn't know whether to post this in the PI forum or in the MDM forum. I use the following scenario:
    We run an EJB session bean in the Java Proxy environment of PI 7.1. In this bean we create an MDM session, log on to a repository and then attach a RecordListener that reacts to any change of the records. When an interesting change took place, the record is distributed to PI.
    The code looks like this:
    EventDispatcher evDis = new EventDispatcher(servername);
    RecordListener recLis = new RecordListener();
    evDis.registerDataNotifications(username, password, repIdent, regions[0]);
    evDis.addListener(recLis);
    The problem arises when we try to undeploy or stop the application. You would assume that it would stop everything connected to the application. However, it does not. The mentioned EventDispatcher creates a thread object when invoked, and this thread is never killed. The consequence: Records keep getting distributed as if nothing had happened, although the application is gone (even undeploying doesn't help). But when we redeploy the application, a new thread is created. So after some development you get 10 or more threads firing every change to PI. The only thing that helps is a restart of the J2EE engine.
    So, my question: Has anybody here made a similar experience? Is this common for MDM or is rather PI the cause of this issue?
    Any comments on that are very welcome.
    Best regards,
    Jörg

    Hi Veera,
    thanks a lot, that pot me on the right track! In fact, it's the @PreDestroy annotation which has to be used for some cleanup method. When we execute this and included the coding you mentioned the threads are killed properly.
    Currently we're facing the issue that somehow the commit status of the bean is not set to "Committed" and from the second message on we get exceptions. If anybody came across this, help is appreciated.
    Best regards,
    Jörg

  • LifeCycle Manager: The kind 'Note' does not exist in the CMS

    Hi there,
    I'm trying to promote a Crystal Report from one relatively fresh XI 3.1 environment to another fresh XI 3.1 environment (TEST to PROD) using LifeCycle Manager, and for this report, which has no dependencies, I get the following error when I do a Test Promote or actual Promote:
    Commit Status=Commit attempted and failed, Promotion Status=Failure : com.businessobjects.lcm.utilities.LCMException: com.businessobjects.sdk.biar.exception.XSDException$UnknownKindException: The kind 'Note' does not exist in the CMS. (FWM 04030)
    Has anyone encountered anything similar to this? I can't find any InfoObject that logically relates to the type/kind 'Note'. Perhaps it has to do with discussions?
    Thanks,
    Allan

    Hi,
    Can you try promoting it with the security option enabled.
    Based on the error condition it seems that the discussion plugin does not exist in the destination system.

  • [SOLVED]ZSH and regular expressions

    Hi
    I am getting into regular expressions and i have noticed that with my .zshrc file i have some problem. In bash this expression works:
    \^\[^#]
    but not also in zsh. I have also noted that regular expression works fine with other zshrc configurations found in archwiki (like grml) but i want to have my configuration. And i really can't find what command make a difference
    My .zshrc file is pulled from this site https://github.com/slashbeast/things/bl … s/DOTzshrc.
    # .zshrc
    # Author: Piotr Karbowski <[email protected]>
    # License: beerware.
    # Basic zsh config.
    umask 077
    ZDOTDIR=${ZDOTDIR:-${HOME}}
    ZSHDDIR="${HOME}/.config/zsh.d"
    HISTFILE="${ZDOTDIR}/.zsh_history"
    HISTSIZE='10000'
    SAVEHIST="${HISTSIZE}"
    export EDITOR="/usr/bin/vim"
    export TMP="$HOME/tmp"
    export TEMP="$TMP"
    export TMPDIR="$TMP"
    export TMPPREFIX="${TMPDIR}/zsh"
    if [ ! -d "${TMP}" ]; then mkdir "${TMP}"; fi
    if ! [[ "${PATH}" =~ "^${HOME}/bin" ]]; then
    export PATH="${HOME}/bin:${PATH}"
    fi
    # Not all servers have terminfo for rxvt-256color. :<
    if [ "${TERM}" = 'rxvt-256color' ] && ! [ -f '/usr/share/terminfo/r/rxvt-256color' ] && ! [ -f '/lib/terminfo/r/rxvt-256color' ] && ! [ -f "${HOME}/.terminfo/r/rxvt-256color" ]; then
    export TERM='rxvt-unicode'
    fi
    # Colors.
    red='\e[0;31m'
    RED='\e[1;31m'
    green='\e[0;32m'
    GREEN='\e[1;32m'
    yellow='\e[0;33m'
    YELLOW='\e[1;33m'
    blue='\e[0;34m'
    BLUE='\e[1;34m'
    purple='\e[0;35m'
    PURPLE='\e[1;35m'
    cyan='\e[0;36m'
    CYAN='\e[1;36m'
    NC='\e[0m'
    # Functions
    if [ -f '/etc/profile.d/prll.sh' ]; then
    . "/etc/profile.d/prll.sh"
    fi
    run_under_tmux() {
    # Run $1 under session or attach if such session already exist.
    # $2 is optional path, if no specified, will use $1 from $PATH.
    # If you need to pass extra variables, use $2 for it as in example below..
    # Example usage:
    # torrent() { run_under_tmux 'rtorrent' '/usr/local/rtorrent-git/bin/rtorrent'; }
    # mutt() { run_under_tmux 'mutt'; }
    # irc() { run_under_tmux 'irssi' "TERM='screen' command irssi"; }
    # There is a bug in linux's libevent...
    # export EVENT_NOEPOLL=1
    command -v tmux >/dev/null 2>&1 || return 1
    if [ -z "$1" ]; then return 1; fi
    local name="$1"
    if [ -n "$2" ]; then
    local file_path="$2"
    else
    local file_path="command ${name}"
    fi
    if tmux has-session -t "${name}" 2>/dev/null; then
    tmux attach -d -t "${name}"
    else
    tmux new-session -s "${name}" "${file_path}" \; set-option status \; set set-titles-string "${name} (tmux@${HOST})"
    fi
    t() { run_under_tmux rtorrent; }
    irc() { run_under_tmux irssi "TERM='screen' command irssi"; }
    over_ssh() {
    if [ -n "${SSH_CLIENT}" ]; then
    return 0
    else
    return 1
    fi
    reload () {
    exec "${SHELL}" "$@"
    confirm() {
    local answer
    echo -ne "zsh: sure you want to run '${YELLOW}$@${NC}' [yN]? "
    read -q answer
    echo
    if [[ "${answer}" =~ ^[Yy]$ ]]; then
    command "${=1}" "${=@:2}"
    else
    return 1
    fi
    confirm_wrapper() {
    if [ "$1" = '--root' ]; then
    local as_root='true'
    shift
    fi
    local runcommand="$1"; shift
    if [ "${as_root}" = 'true' ] && [ "${USER}" != 'root' ]; then
    runcommand="sudo ${runcommand}"
    fi
    confirm "${runcommand}" "$@"
    poweroff() { confirm_wrapper --root $0 "$@"; }
    reboot() { confirm_wrapper --root $0 "$@"; }
    hibernate() { confirm_wrapper --root $0 "$@"; }
    detox() {
    if [ "$#" -ge 1 ]; then
    confirm detox "$@"
    else
    command detox "$@"
    fi
    has() {
    local string="${1}"
    shift
    local element=''
    for element in "$@"; do
    if [ "${string}" = "${element}" ]; then
    return 0
    fi
    done
    return 1
    begin_with() {
    local string="${1}"
    shift
    local element=''
    for element in "$@"; do
    if [[ "${string}" =~ "^${element}" ]]; then
    return 0
    fi
    done
    return 1
    termtitle() {
    case "$TERM" in
    rxvt*|xterm|nxterm|gnome|screen|screen-*)
    local prompt_host="${(%):-%m}"
    local prompt_user="${(%):-%n}"
    local prompt_char="${(%):-%~}"
    case "$1" in
    precmd)
    printf '\e]0;%s@%s: %s\a' "${prompt_user}" "${prompt_host}" "${prompt_char}"
    preexec)
    printf '\e]0;%s [%s@%s: %s]\a' "$2" "${prompt_user}" "${prompt_host}" "${prompt_char}"
    esac
    esac
    git_check_if_worktree() {
    # This function intend to be only executed in chpwd().
    # Check if the current path is in git repo.
    # We would want stop this function, on some big git repos it can take some time to cd into.
    if [ -n "${skip_zsh_git}" ]; then
    git_pwd_is_worktree='false'
    return 1
    fi
    # The : separated list of paths where we will run check for git repo.
    # If not set, then we will do it only for /root and /home.
    if [ "${UID}" = '0' ]; then
    # running 'git' in repo changes owner of git's index files to root, skip prompt git magic if CWD=/home/*
    git_check_if_workdir_path="${git_check_if_workdir_path:-/root:/etc}"
    else
    git_check_if_workdir_path="${git_check_if_workdir_path:-/home}"
    git_check_if_workdir_path_exclude="${git_check_if_workdir_path_exclude:-${HOME}/_sshfs}"
    fi
    if begin_with "${PWD}" ${=git_check_if_workdir_path//:/ }; then
    if ! begin_with "${PWD}" ${=git_check_if_workdir_path_exclude//:/ }; then
    local git_pwd_is_worktree_match='true'
    else
    local git_pwd_is_worktree_match='false'
    fi
    fi
    if ! [ "${git_pwd_is_worktree_match}" = 'true' ]; then
    git_pwd_is_worktree='false'
    return 1
    fi
    # todo: Prevent checking for /.git or /home/.git, if PWD=/home or PWD=/ maybe...
    # damn annoying RBAC messages about Access denied there.
    if [ -d '.git' ] || [ "$(git rev-parse --is-inside-work-tree 2> /dev/null)" = 'true' ]; then
    git_pwd_is_worktree='true'
    git_worktree_is_bare="$(git config core.bare)"
    else
    unset git_branch git_worktree_is_bare
    git_pwd_is_worktree='false'
    fi
    git_branch() {
    git_branch="$(git symbolic-ref HEAD 2>/dev/null)"
    git_branch="${git_branch##*/}"
    git_branch="${git_branch:-no branch}"
    git_dirty() {
    if [ "${git_worktree_is_bare}" = 'false' ] && [ -n "$(git status --untracked-files='no' --porcelain)" ]; then
    git_dirty='%F{green}*'
    else
    unset git_dirty
    fi
    precmd() {
    # Set terminal title.
    termtitle precmd
    if [ "${git_pwd_is_worktree}" = 'true' ]; then
    git_branch
    git_dirty
    git_prompt=" %F{blue}[%F{253}${git_branch}${git_dirty}%F{blue}]"
    else
    unset git_prompt
    fi
    preexec() {
    # Set terminal title along with current executed command pass as second argument
    termtitle preexec "${(V)1}"
    chpwd() {
    git_check_if_worktree
    man() {
    if command -v vimmanpager >/dev/null 2>&1; then
    PAGER="vimmanpager" command man "$@"
    else
    command man "$@"
    fi
    # Are we running under grsecurity's RBAC?
    rbac_auth() {
    local auth_to_role='admin'
    if [ "${USER}" = 'root' ]; then
    if ! grep -qE '^RBAC:' "/proc/self/status" && command -v gradm > /dev/null 2>&1; then
    echo -e "\n${BLUE}*${NC} ${GREEN}RBAC${NC} Authorize to '${auth_to_role}' RBAC role."
    gradm -a "${auth_to_role}"
    fi
    fi
    #rbac_auth
    # Check if we started zsh in git worktree, useful with tmux when your new zsh may spawn in source dir.
    git_check_if_worktree
    if [ "${git_pwd_is_worktree}" = 'true' ]; then
    git_branch
    git_dirty
    git_prompt=" %F{blue}[%F{253}${git_branch}${git_dirty}%F{blue}]"
    else
    unset git_prompt
    fi
    # Le features!
    # extended globbing, awesome!
    setopt extendedGlob
    # zmv - a command for renaming files by means of shell patterns.
    autoload -U zmv
    # zargs, as an alternative to find -exec and xargs.
    autoload -U zargs
    # Turn on command substitution in the prompt (and parameter expansion and arithmetic expansion).
    setopt promptsubst
    # Control-x-e to open current line in $EDITOR, awesome when writting functions or editing multiline commands.
    autoload -U edit-command-line
    zle -N edit-command-line
    bindkey '^x^e' edit-command-line
    # Include user-specified configs.
    if [ ! -d "${ZSHDDIR}" ]; then
    mkdir -p "${ZSHDDIR}" && echo "# Put your user-specified config here." > "${ZSHDDIR}/example.zsh"
    fi
    for zshd in $(ls -A ${HOME}/.config/zsh.d/^*.(z)sh$); do
    . "${zshd}"
    done
    # Completion.
    autoload -Uz compinit
    compinit
    zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
    zstyle ':completion:*' completer _expand _complete _ignored _approximate
    zstyle ':completion:*' menu select=2
    zstyle ':completion:*' select-prompt '%SScrolling active: current selection at %p%s'
    zstyle ':completion::complete:*' use-cache 1
    zstyle ':completion:*:descriptions' format '%U%F{cyan}%d%f%u'
    # If running as root and nice >0, renice to 0.
    if [ "$USER" = 'root' ] && [ "$(cut -d ' ' -f 19 /proc/$$/stat)" -gt 0 ]; then
    renice -n 0 -p "$$" && echo "# Adjusted nice level for current shell to 0."
    fi
    # Fancy prompt.
    if over_ssh && [ -z "${TMUX}" ]; then
    prompt_is_ssh='%F{blue}[%F{red}SSH%F{blue}] '
    elif over_ssh; then
    prompt_is_ssh='%F{blue}[%F{253}SSH%F{blue}] '
    else
    unset prompt_is_ssh
    fi
    case $USER in
    root)
    PROMPT='%B%F{cyan}%m%k %(?..%F{blue}[%F{253}%?%F{blue}] )${prompt_is_ssh}%B%F{blue}%1~${git_prompt}%F{blue} %# %b%f%k'
    PROMPT='%B%F{blue}%n@%m%k %(?..%F{blue}[%F{253}%?%F{blue}] )${prompt_is_ssh}%B%F{cyan}%1~${git_prompt}%F{cyan} %# %b%f%k'
    esac
    # Ignore lines prefixed with '#'.
    setopt interactivecomments
    # Ignore duplicate in history.
    setopt hist_ignore_dups
    # Prevent record in history entry if preceding them with at least one space
    setopt hist_ignore_space
    # Nobody need flow control anymore. Troublesome feature.
    #stty -ixon
    setopt noflowcontrol
    # Fix for tmux on linux.
    case "$(uname -o)" in
    'GNU/Linux')
    export EVENT_NOEPOLL=1
    esac
    # Aliases
    alias cp='cp -iv'
    alias rcp='rsync -v --progress'
    alias rmv='rsync -v --progress --remove-source-files'
    alias mv='mv -iv'
    alias rm='rm -iv'
    alias rmdir='rmdir -v'
    alias ln='ln -v'
    alias chmod="chmod -c"
    alias chown="chown -c"
    if command -v colordiff > /dev/null 2>&1; then
    alias diff="colordiff -Nuar"
    else
    alias diff="diff -Nuar"
    fi
    alias grep='grep --colour=auto'
    alias egrep='egrep --colour=auto'
    alias ls='ls --color=auto --human-readable --group-directories-first --classify'
    # Keys.
    case $TERM in
    rxvt*|xterm*)
    bindkey "^[[7~" beginning-of-line #Home key
    bindkey "^[[8~" end-of-line #End key
    bindkey "^[[3~" delete-char #Del key
    bindkey "^[[A" history-beginning-search-backward #Up Arrow
    bindkey "^[[B" history-beginning-search-forward #Down Arrow
    bindkey "^[Oc" forward-word # control + right arrow
    bindkey "^[Od" backward-word # control + left arrow
    bindkey "^H" backward-kill-word # control + backspace
    bindkey "^[[3^" kill-word # control + delete
    linux)
    bindkey "^[[1~" beginning-of-line #Home key
    bindkey "^[[4~" end-of-line #End key
    bindkey "^[[3~" delete-char #Del key
    bindkey "^[[A" history-beginning-search-backward
    bindkey "^[[B" history-beginning-search-forward
    screen|screen-*)
    bindkey "^[[1~" beginning-of-line #Home key
    bindkey "^[[4~" end-of-line #End key
    bindkey "^[[3~" delete-char #Del key
    bindkey "^[[A" history-beginning-search-backward #Up Arrow
    bindkey "^[[B" history-beginning-search-forward #Down Arrow
    bindkey "^[Oc" forward-word # control + right arrow
    bindkey "^[Od" backward-word # control + left arrow
    bindkey "^H" backward-kill-word # control + backspace
    bindkey "^[[3^" kill-word # control + delete
    esac
    bindkey "^R" history-incremental-pattern-search-backward
    bindkey "^S" history-incremental-pattern-search-forward
    if [ -f ~/.alert ]; then cat ~/.alert; fi
    Thanks for all the help.
    Last edited by Shark (2013-05-11 22:32:24)

    Raynman wrote:
    "This expression doesn't work", "It doesn't work" ...
    Could you try being a bit more specific?
    Firstly, i am sorry i didn't post the output. I should have know better.
    Secondly, chill out.
    I have used above regex with grep command. Output from terminal is:
    zsh: bad pattern: ^[^#]
    In bash it works perfectly.
    If i issue "setopt re_match_pcre" i have the same ouput as above.
    EDIT: If i issue "unsetopt no_match" it actually works but i have to change the regex from "\^\[^#]" to "\^[^#]" otherwise i get the same output as above. In bash both options work.
    Last edited by Shark (2013-05-11 22:07:21)

  • ColdFusion 11 and Solr

    I just installed ColdFusion 11. I am pretty sure I selected the option to install the addons like Solr, but when I am in the coldfusion administrator under Data & Services, I click ColdFusion Collections and I get nothing. It won't go to the page at all. If I click on Solr Services a page will come up. If I click on ColdFusion collections and then restart the coldfusion addons I get a page that comes up saying
    "Unable to retrieve collections from the Search Services.Ensure that you have installed ColdFusion Search Service and it is running."
    I am assuming it means it isn't installed.
    So I went to Adobe - ColdFusion Support Center : More Downloads and downloaded/installed the Windows Add-on Services Standalone Installer. I didn't change any of the settings or folders and installed it. I restarted the server. I logged back into the coldfusion administrator and I see the same thing. Nothing changed. When I go to view the file folders I have c:coldfuion11 and a c:coldfusionAdd-onServices. Should the coldfusionAdd-onServices folder been within the coldfusion11 folder?
    I read you can create your collection through the administrator or through coding a page. I thought maybe I need to try it this way. So I created a page to create the collection and it did not work either.
    What am I missing? Did I miss a step or something to make this work?
    Any help I can get, I would appreciate.
    I have a windows 2008 server.

    Here are just a few of the solr files for you to look at. They all appear to be SUCCESSFUL.
    Install File:             C:\ColdFusion11\cfusion\jetty\solr\bin\abc
                              Status: SUCCESSFUL
    Install File:             C:\ColdFusion11\cfusion\jetty\solr\bin\abo
                              Status: SUCCESSFUL
    Install File:             C:\ColdFusion11\cfusion\jetty\solr\bin\backup
                              Status: SUCCESSFUL
    Install File:             C:\ColdFusion11\cfusion\jetty\solr\bin\backupcleaner
                              Status: SUCCESSFUL
    Install File:             C:\ColdFusion11\cfusion\jetty\solr\bin\commit
                              Status: SUCCESSFUL
    Install File:             C:\ColdFusion11\cfusion\jetty\solr\bin\optimize
                              Status: SUCCESSFUL
    Install File:             C:\ColdFusion11\cfusion\jetty\solr\bin\readercycle
                              Status: SUCCESSFUL
    Install File:             C:\ColdFusion11\cfusion\jetty\solr\bin\rsyncd-disable
                              Status: SUCCESSFUL
    Install File:             C:\ColdFusion11\cfusion\jetty\solr\bin\rsyncd-enable
                              Status: SUCCESSFUL
    Install File:             C:\ColdFusion11\cfusion\jetty\solr\bin\rsyncd-start
                              Status: SUCCESSFUL
    Install File:             C:\ColdFusion11\cfusion\jetty\solr\bin\rsyncd-stop
                              Status: SUCCESSFUL
    Install File:             C:\ColdFusion11\cfusion\jetty\solr\bin\scripts-util
                              Status: SUCCESSFUL
    Install File:             C:\ColdFusion11\cfusion\jetty\solr\bin\snapcleaner
                              Status: SUCCESSFUL
    Install File:             C:\ColdFusion11\cfusion\jetty\solr\bin\snapinstaller
                              Status: SUCCESSFUL
    Install File:             C:\ColdFusion11\cfusion\jetty\solr\bin\snappuller
                              Status: SUCCESSFUL
    Install File:             C:\ColdFusion11\cfusion\jetty\solr\bin\snappuller-disable
                              Status: SUCCESSFUL
    Install File:             C:\ColdFusion11\cfusion\jetty\solr\bin\snappuller-enable
                              Status: SUCCESSFUL
    Install File:             C:\ColdFusion11\cfusion\jetty\solr\bin\snapshooter
                              Status: SUCCESSFUL
    Install File:             C:\ColdFusion11\cfusion\jetty\solr\conf\admin-extra.html
                              Status: SUCCESSFUL
    Install File:             C:\ColdFusion11\cfusion\jetty\solr\conf\elevate.xml
                              Status: SUCCESSFUL
    Install File:             C:\ColdFusion11\cfusion\jetty\solr\conf\mapping-ISOLatin1Accent.txt
                              Status: SUCCESSFUL
    Install File:             C:\ColdFusion11\cfusion\jetty\solr\conf\protwords.txt
                              Status: SUCCESSFUL
    Install File:             C:\ColdFusion11\cfusion\jetty\solr\conf\schema.xml
                              Status: SUCCESSFUL
    On the coldfusion-out.log file it all appears ok as well.
    I can see things like this that shows solr is starting:
    Apr 6, 2015 15:16:54 PM Information [localhost-startStop-1] - Starting jaxrs...
    Apr 6, 2015 15:16:54 PM Information [localhost-startStop-1] - Starting graphing...
    Apr 6, 2015 15:16:55 PM Information [localhost-startStop-1] - Starting solr...
    Apr 6, 2015 15:16:55 PM Information [localhost-startStop-1] - Starting archive...
    Apr 6, 2015 15:16:55 PM Information [localhost-startStop-1] - Starting document...
    Apr 6, 2015 15:16:55 PM Information [localhost-startStop-1] - Starting eventgateway...
    Apr 6, 2015 15:16:55 PM Information [localhost-startStop-1] - Event Gateway Disabled.
    I can see on this same log, when I am in the coldfusion administrator I click on ColdFusion Collections I see this:
    Apr 24, 2015 10:12:21 AM Error [ajp-bio-8014-exec-6] - The request has exceeded the allowable time limit Tag: cfoutput The specific sequence of files included or processed is: C:\ColdFusion11\cfusion\wwwroot\CFIDE\administrator\solr\index.cfm, line: 331

Maybe you are looking for