Search Results as_script_pre_defined_answers
Overview
The table AS_SCRIPT_PRE_DEFINED_ANSWERS is a core data object within the Oracle E-Business Suite Sales Foundation (AS) module, specifically for versions 12.1.1 and 12.2.2. It functions as the master repository for defining the standardized, permissible answer choices associated with scripted questions in the application's scripting engine. This table is owned by the OSM schema and is integral to configuring structured, guided interactions, such as those used in tele-sales, customer service, or survey campaigns. By storing pre-defined answers, it ensures data consistency, facilitates automated branching logic within scripts, and enables the analysis of response patterns. Its role is foundational to the execution and tracking of script-based promotions and interactions managed within the Oracle EBS framework.
Key Information Stored
The table's primary purpose is to define the relationship between a script question and its valid answer options. The critical columns, as indicated by its constraints, include the unique identifier SCRIPT_PRE_DEF_ANSWER_ID. The compound unique key on SCRIPT_ID and LABEL enforces that answer labels are unique within a given script. Foreign key columns establish essential linkages: QUESTION_ID references AS_SCRIPT_QUESTIONS to tie the answer to a specific question, and SCRIPT_ID references AS_PROMOTIONS_ALL, anchoring the answer definition to the overarching script or promotion. While the explicit metadata for additional columns like ANSWER_VALUE or SEQUENCE_NUM is not provided, such tables typically store the display label, a corresponding internal value, and the order of presentation for the answer choice.
Common Use Cases and Queries
This table is central to administrative setup and operational reporting for script-driven processes. A common use case involves extracting the full question-and-answer hierarchy for a specific sales campaign to validate script configuration. For example, a support query to list all pre-defined answers for a particular script would utilize a join to the questions table:
- SELECT q.question_text, a.label FROM osm.as_script_pre_defined_answers a, osm.as_script_questions q WHERE a.question_id = q.question_id AND a.script_id = :script_id ORDER BY q.sequence_num, a.label;
Another critical scenario is data integrity validation, ensuring that every ANSWER_ACTION defined (in AS_SCRIPT_ANSWER_ACTIONS_ALL) references a valid pre-defined answer. Analysts may also query this table to report on the distribution of available answer choices across different script modules.
Related Objects
AS_SCRIPT_PRE_DEFINED_ANSWERS is a key reference point within a larger data model governing script execution. It has defined foreign key relationships with several critical tables:
- AS_SCRIPT_QUESTIONS: The parent table defining the questions to which these answers belong.
- AS_PROMOTIONS_ALL: The master table for the script or promotion definition.
- AS_SCRIPT_ACTUAL_ANSWERS: Stores the concrete answers given by users during a script session, which reference the pre-defined answer chosen.
- AS_SCRIPT_ANSWER_ACTIONS_ALL: Defines the conditional actions or branching logic triggered by the selection of a specific pre-defined answer.
These relationships illustrate that this table sits at the intersection of script design (questions and promotions) and script execution (actual answers and triggered actions).
-
Table: AS_SCRIPT_PRE_DEFINED_ANSWERS
12.1.1
owner:OSM, object_type:TABLE, fnd_design_data:AS.AS_SCRIPT_PRE_DEFINED_ANSWERS, object_name:AS_SCRIPT_PRE_DEFINED_ANSWERS, status:VALID, product: AS - Sales Foundation , description: Defines answers to script questions , implementation_dba_data: OSM.AS_SCRIPT_PRE_DEFINED_ANSWERS ,
-
Table: AS_SCRIPT_PRE_DEFINED_ANSWERS
12.2.2
owner:OSM, object_type:TABLE, fnd_design_data:AS.AS_SCRIPT_PRE_DEFINED_ANSWERS, object_name:AS_SCRIPT_PRE_DEFINED_ANSWERS, status:VALID, product: AS - Sales Foundation , description: Defines answers to script questions , implementation_dba_data: OSM.AS_SCRIPT_PRE_DEFINED_ANSWERS ,
-
Table: AS_SCRIPT_QUESTIONS
12.2.2
owner:OSM, object_type:TABLE, fnd_design_data:AS.AS_SCRIPT_QUESTIONS, object_name:AS_SCRIPT_QUESTIONS, status:VALID, product: AS - Sales Foundation , description: Defines script questions , implementation_dba_data: OSM.AS_SCRIPT_QUESTIONS ,
-
Table: AS_SCRIPT_ACTUAL_ANSWERS
12.1.1
owner:OSM, object_type:TABLE, fnd_design_data:AS.AS_SCRIPT_ACTUAL_ANSWERS, object_name:AS_SCRIPT_ACTUAL_ANSWERS, status:VALID, product: AS - Sales Foundation , description: Holds answers for script questions , implementation_dba_data: OSM.AS_SCRIPT_ACTUAL_ANSWERS ,
-
View: AS_SCRIPT_PRE_DEF_ANS_ACTIVE_V
12.1.1
product: AS - Sales Foundation , description: Active predefined answers view , implementation_dba_data: Not implemented in this database ,
-
View: AS_SCRIPT_PRE_DEF_ANS_ACTIVE_V
12.2.2
product: AS - Sales Foundation , description: Active predefined answers view , implementation_dba_data: Not implemented in this database ,
-
View: AS_SCRIPT_ANSWERS_ACTS_EXIST_V
12.2.2
product: AS - Sales Foundation , description: Script answers view , implementation_dba_data: Not implemented in this database ,
-
Table: AS_SCRIPT_QUESTIONS
12.1.1
owner:OSM, object_type:TABLE, fnd_design_data:AS.AS_SCRIPT_QUESTIONS, object_name:AS_SCRIPT_QUESTIONS, status:VALID, product: AS - Sales Foundation , description: Defines script questions , implementation_dba_data: OSM.AS_SCRIPT_QUESTIONS ,
-
Table: AS_SCRIPT_ANSWER_ACTIONS_ALL
12.2.2
owner:OSM, object_type:TABLE, fnd_design_data:AS.AS_SCRIPT_ANSWER_ACTIONS_ALL, object_name:AS_SCRIPT_ANSWER_ACTIONS_ALL, status:VALID, product: AS - Sales Foundation , description: Holds actions resulting from script answers , implementation_dba_data: OSM.AS_SCRIPT_ANSWER_ACTIONS_ALL ,
-
Table: AS_SCRIPT_ACTUAL_ANSWERS
12.2.2
owner:OSM, object_type:TABLE, fnd_design_data:AS.AS_SCRIPT_ACTUAL_ANSWERS, object_name:AS_SCRIPT_ACTUAL_ANSWERS, status:VALID, product: AS - Sales Foundation , description: Holds answers for script questions , implementation_dba_data: OSM.AS_SCRIPT_ACTUAL_ANSWERS ,
-
View: AS_SCRIPT_PRE_DEF_ANSWERS_V
12.2.2
product: AS - Sales Foundation , description: Predefined answers view , implementation_dba_data: Not implemented in this database ,
-
View: AS_SCRIPT_PRE_DEF_ANSWERS_V
12.1.1
product: AS - Sales Foundation , description: Predefined answers view , implementation_dba_data: Not implemented in this database ,
-
Table: AS_SCRIPT_ANSWER_ACTIONS_ALL
12.1.1
owner:OSM, object_type:TABLE, fnd_design_data:AS.AS_SCRIPT_ANSWER_ACTIONS_ALL, object_name:AS_SCRIPT_ANSWER_ACTIONS_ALL, status:VALID, product: AS - Sales Foundation , description: Holds actions resulting from script answers , implementation_dba_data: OSM.AS_SCRIPT_ANSWER_ACTIONS_ALL ,
-
View: AS_SCRIPT_ANSWERS_ACTS_EXIST_V
12.1.1
product: AS - Sales Foundation , description: Script answers view , implementation_dba_data: Not implemented in this database ,
-
Table: AS_PROMOTIONS_ALL
12.1.1
owner:OSM, object_type:TABLE, fnd_design_data:AS.AS_PROMOTIONS_ALL, object_name:AS_PROMOTIONS_ALL, status:VALID, product: AS - Sales Foundation , description: Defines promotions , implementation_dba_data: OSM.AS_PROMOTIONS_ALL ,
-
View: AS_SCRIPT_ACTUAL_ANSWERS_V
12.1.1
product: AS - Sales Foundation , description: Script actual answers view , implementation_dba_data: Not implemented in this database ,
-
Table: AS_PROMOTIONS_ALL
12.2.2
owner:OSM, object_type:TABLE, fnd_design_data:AS.AS_PROMOTIONS_ALL, object_name:AS_PROMOTIONS_ALL, status:VALID, product: AS - Sales Foundation , description: Defines promotions , implementation_dba_data: OSM.AS_PROMOTIONS_ALL ,
-
View: AS_SCRIPT_ACTUAL_ANSWERS_V
12.2.2
product: AS - Sales Foundation , description: Script actual answers view , implementation_dba_data: Not implemented in this database ,
-
View: AS_SCRIPT_ANSWER_ACTIONS_V
12.1.1
product: AS - Sales Foundation , description: Script actual answers view , implementation_dba_data: Not implemented in this database ,
-
View: AS_SCRIPT_ANSWER_ACTIONS_V
12.2.2
product: AS - Sales Foundation , description: Script actual answers view , implementation_dba_data: Not implemented in this database ,