DBA Data[Home] [Help]

APPS.FND_NEW_MESSAGES_PKG SQL Statements

The following lines contain the word 'select', 'insert', 'update' or 'delete':

Line: 15

  sqlbuf := 	'SELECT category, severity, fnd_log_severity
		 FROM   fnd_new_messages
		 WHERE  ROWNUM < 2';
Line: 40

/***** Commented Update Statement

  update FND_NEW_MESSAGES T set (
      MESSAGE_TEXT
    ) = (select
      B.MESSAGE_TEXT
    from FND_NEW_MESSAGES B
    where B.APPLICATION_ID = T.APPLICATION_ID
    and B.LANGUAGE_CODE = T.LANGUAGE_CODE
    and B.MESSAGE_NAME = T.MESSAGE_NAME
    and B.LANGUAGE = T.SOURCE_LANG)
  where (
      T.APPLICATION_ID,
      T.LANGUAGE_CODE,
      T.MESSAGE_NAME,
      T.LANGUAGE
  ) in (select
      SUBT.APPLICATION_ID,
      SUBT.LANGUAGE_CODE,
      SUBT.MESSAGE_NAME,
      SUBT.LANGUAGE
    from FND_NEW_MESSAGES SUBB, FND_NEW_MESSAGES SUBT
    where SUBB.APPLICATION_ID = SUBT.APPLICATION_ID
    and SUBB.LANGUAGE_CODE = SUBT.LANGUAGE_CODE
    and SUBB.MESSAGE_NAME = SUBT.MESSAGE_NAME
    and SUBB.LANGUAGE = SUBT.SOURCE_LANG
    and (SUBB.MESSAGE_TEXT <> SUBT.MESSAGE_TEXT
  ));
Line: 69

  insert into FND_NEW_MESSAGES (
    FND_LOG_SEVERITY,
    APPLICATION_ID,
    LANGUAGE_CODE,
    MESSAGE_NUMBER,
    MESSAGE_NAME,
    MESSAGE_TEXT,
    CREATION_DATE,
    CREATED_BY,
    LAST_UPDATE_DATE,
    LAST_UPDATED_BY,
    LAST_UPDATE_LOGIN,
    DESCRIPTION,
    TYPE,
    MAX_LENGTH,
    CATEGORY,
    SEVERITY
  ) select -- Dropped ORDERED hint here
    B.FND_LOG_SEVERITY,
    B.APPLICATION_ID,
    L.LANGUAGE_CODE,
    B.MESSAGE_NUMBER,
    B.MESSAGE_NAME,
    B.MESSAGE_TEXT,
    B.CREATION_DATE,
    B.CREATED_BY,
    B.LAST_UPDATE_DATE,
    B.LAST_UPDATED_BY,
    B.LAST_UPDATE_LOGIN,
    B.DESCRIPTION,
    B.TYPE,
    B.MAX_LENGTH,
    B.CATEGORY,
    B.SEVERITY
  from FND_NEW_MESSAGES B, FND_LANGUAGES L
  where L.INSTALLED_FLAG in ('I', 'B')
  and B.LANGUAGE_CODE = userenv('LANG')
  and not exists
    (select NULL
    from FND_NEW_MESSAGES T
    where T.APPLICATION_ID = B.APPLICATION_ID
    and T.LANGUAGE_CODE = L.LANGUAGE_CODE
    and T.MESSAGE_NAME = B.MESSAGE_NAME);
Line: 121

sql_string := 'insert into FND_NEW_MESSAGES (
    APPLICATION_ID,
    LANGUAGE_CODE,
    MESSAGE_NUMBER,
    MESSAGE_NAME,
    MESSAGE_TEXT,
    CREATION_DATE,
    CREATED_BY,
    LAST_UPDATE_DATE,
    LAST_UPDATED_BY,
    LAST_UPDATE_LOGIN,
    DESCRIPTION,
    TYPE,
    MAX_LENGTH ';
Line: 143

      ') select /*+ ORDERED */
    B.APPLICATION_ID,
    L.LANGUAGE_CODE,
    B.MESSAGE_NUMBER,
    B.MESSAGE_NAME,
    B.MESSAGE_TEXT,
    B.CREATION_DATE,
    B.CREATED_BY,
    B.LAST_UPDATE_DATE,
    B.LAST_UPDATED_BY,
    B.LAST_UPDATE_LOGIN,
    B.DESCRIPTION,
    B.TYPE,
    B.MAX_LENGTH ';
Line: 170

    (select NULL
    from FND_NEW_MESSAGES T
    where T.APPLICATION_ID = B.APPLICATION_ID
    and T.LANGUAGE_CODE = L.LANGUAGE_CODE
    and T.MESSAGE_NAME = B.MESSAGE_NAME)';
Line: 209

    X_LAST_UPDATE_DATE => null
  );
Line: 227

  X_LAST_UPDATE_DATE in VARCHAR2
) is
  f_luby number;  -- entity owner in file
Line: 230

  f_ludate date;  -- entity update date in file
Line: 232

  db_ludate date; -- entity update date in db
Line: 257

  f_ludate := nvl(to_date(x_last_update_date, 'YYYY/MM/DD'), sysdate);
Line: 275

    select decode(X_MESSAGE_NUMBER, fnd_load_util.null_value, null,
                  null, X_MESSAGE_NUMBER,
                  TO_NUMBER(X_MESSAGE_NUMBER)),
           decode(X_TYPE, fnd_load_util.null_value, null,
                  null, X_TYPE,
                  X_TYPE),
           decode(X_DESCRIPTION, fnd_load_util.null_value, null,
                  null, X_DESCRIPTION,
                  X_DESCRIPTION),
           decode(X_MAX_LENGTH, fnd_load_util.null_value, null,
                  null, X_MAX_LENGTH,
                  TO_NUMBER(X_MAX_LENGTH)),
           decode(X_CATEGORY, fnd_load_util.null_value, null,
                  null, X_CATEGORY,
                  X_CATEGORY),
           decode(X_SEVERITY, fnd_load_util.null_value, null,
                  null, X_SEVERITY,
                  X_SEVERITY),
           decode(X_FND_LOG_SEVERITY, fnd_load_util.null_value, null,
                  null, X_FND_LOG_SEVERITY,
                  TO_NUMBER(X_FND_LOG_SEVERITY))
           into   message_number,
                  msg_type,
                  description,
                  max_length,
                  category,
                  severity,
                  fnd_log_severity
           from dual;
Line: 306

    select LAST_UPDATED_BY, LAST_UPDATE_DATE
    into db_luby, db_ludate
    from FND_NEW_MESSAGES
    where application_id = app_id
    and language_code = userenv('LANG')
    and message_name = X_MESSAGE_NAME;
Line: 329

       sql_string := 'update fnd_new_messages set
          message_number = :1,
          description = :2,
          type =  :3,
          max_length =  :4,';
Line: 345

          'last_updated_by = :8,
          last_update_date = :9,
          last_update_login = 0
          where application_id = :10
          and message_name = :11';
Line: 366

       sql_string := 'update fnd_new_messages set
          message_text = :1
          where application_id = :2
          and message_name = :3
          and language_code = ''' || userenv('LANG') || '''';
Line: 382

     sql_string := 'insert into fnd_new_messages
        (application_id,
         language_code,
         message_number,
         message_name,
         message_text,
         creation_date,
         created_by,
         last_update_date,
         last_updated_by,
         last_update_login,
         description,
         type,
         max_length ';
Line: 459

    X_LAST_UPDATE_DATE  => null
  );
Line: 471

  X_LAST_UPDATE_DATE in VARCHAR2
) is
  f_luby number;  -- entity owner in file
Line: 474

  f_ludate date;  -- entity update date in file
Line: 476

  db_ludate date; -- entity update date in db
Line: 485

  f_ludate := nvl(to_date(x_last_update_date, 'YYYY/MM/DD'), sysdate);
Line: 492

    select LAST_UPDATED_BY, LAST_UPDATE_DATE
    into db_luby, db_ludate
    from FND_NEW_MESSAGES
    where application_id = app_id
    and language_code = userenv('LANG')
    and message_name = X_MESSAGE_NAME;
Line: 501

       update fnd_new_messages set
               message_text      = nvl(X_MESSAGE_TEXT, message_text),
               last_updated_by   = f_luby,
               last_update_date  = f_ludate,
               last_update_login = 0
             where application_id = app_id
             and   language_code  = userenv('LANG')
             and   message_name   = X_MESSAGE_NAME;
Line: 521

     sql_string := 'insert into fnd_new_messages
        (application_id,
         language_code,
         message_number,
         message_name,
         message_text,
         creation_date,
         created_by,
         last_update_date,
         last_updated_by,
         last_update_login,
         description,
         type,
         max_length ';
Line: 543

        ') select
         application_id,
         ''' ||  userenv('LANG') || ''', ' ||
          'message_number,
          message_name,
          :1,
          :2,
          :3,
          :4,
          :5,
          0,
          description,
          type,
          max_length';
Line: 566

        ' from (select
                  application_id,
                  language_code,
                  message_number,
                  message_name,
                  message_text,
                  creation_date,
                  created_by,
                  last_update_date,
                  last_updated_by,
                  last_update_login,
                  description,
                  type,
                  max_length ';
Line: 593

                                   (select L.language_code from fnd_languages L
                                    where L.installed_flag = ''B''), 2,
                                3)
           )
           where rownum = 1';
Line: 607

procedure DELETE_ROW (
  X_APPLICATION_ID in NUMBER,
  X_LANGUAGE_CODE in VARCHAR2,
  X_MESSAGE_NAME in VARCHAR2
) is
begin

  delete from FND_NEW_MESSAGES
  where APPLICATION_ID = X_APPLICATION_ID
  and   LANGUAGE_CODE  = X_LANGUAGE_CODE
  and   MESSAGE_NAME   = X_MESSAGE_NAME;
Line: 623

end DELETE_ROW;
Line: 971

       select count(*) into count_category from fnd_lookups
         where lookup_type = 'FND_KBF_CATEGORY';
Line: 974

          select count(*) into count_category from fnd_lookups
            where lookup_type = 'FND_KBF_CATEGORY' AND
                  lookup_code = X_CATEGORY;
Line: 989

       select count(*) into count_severity from fnd_lookups
         where lookup_type = 'FND_KBF_SEVERITY';
Line: 992

          select count(*) into count_severity from fnd_lookups
            where lookup_type = 'FND_KBF_SEVERITY' AND
                  lookup_code = X_SEVERITY;
Line: 1007

       select count(*) into count_severity from fnd_lookups
         where lookup_type = 'AFLOG_LEVELS';
Line: 1010

          select count(*) into count_severity from fnd_lookups
            where lookup_type = 'AFLOG_LEVELS' AND
                  lookup_code = X_FND_LOG_SEVERITY;