Professional Documents
Culture Documents
1
rem * Filetype : NOEXEC
rem * Author : Ravi Tata, Oracle USA
rem * Original : 16-OCT-2000
rem * Modified : 17-Jul-2001 shulin add trouble shooting tips
rem * Description : Gives info about the list line , qualifiers , pricing
attrs etc.
rem * Usage : run qp_list_line_detail_tips.sql
rem * and enter the list_line_id when prompted. list_line_id
can be found
rem * by position the cursor on list line in the pricelist/m
odifierlist form,
rem * menu Help>Diagnostics>Examine>Field List_Line_Id value
rem /* $Header: qp_list_line_detail.sql 115.16 2004/04/12 21:25:25 gtippire ship
$ */
REM FILETYPE NOEXEC
REM dbdrv: none
set verify off
whenever sqlerror exit failure rollback;
set pages 24
set linesize 132
spool &&list_line_id;
prompt 'List Line Information'
prompt =========================================================================
==================================================
col list_line_id format 99999999 heading 'Line Id'
col list_header_id format 99999999 heading 'Hdr Id' new_value p_list_header_id
col list_line_type_code format a5 heading 'Line Type'
col start_date_active format date heading 'Start Date'
col end_date_active format date heading 'End Date'
col modifier_level_code format a5 heading 'Level'
col pricing_phase_id format 999 heading 'Phase' new_value p_pricing_phase_id
col incompatibility_grp_code format a20 heading 'Incomp'
col price_break_type_code format a8 heading 'Brk Type'
col operand format 9999999.99 heading 'Operand'
col arithmetic_operator format a10 heading 'Operator'
col qualification_ind format 99 heading 'QualInd'
col product_precedence format 9999 heading 'Prod Preced'
col automatic_flag format a10 heading 'Auto'
col price_by_formula_id format 999999 heading 'Formula Id'
select
a.list_line_id
, a.list_header_id
, a.list_line_type_code
, a.start_date_active
, a.end_date_active
, a.modifier_level_code
, a.pricing_phase_id
, a.incompatibility_grp_code
, a.price_break_type_code
, a.operand
, a.arithmetic_operator
, a.qualification_ind
, a.product_precedence
, a.automatic_flag
, a.price_by_formula_id
from qp_list_lines a
where a.list_line_id = &&list_line_id ;
prompt 'Related List Line Information'
prompt =========================================================================
==================================================
col list_line_id format 999999 heading 'Line Id'
col list_header_id format 999999 heading 'Hdr Id'
col list_line_type_code format a5 heading 'Line Type'
col start_date_active format date heading 'Start Date'
col end_date_active format date heading 'End Date'
col modifier_level_code format a5 heading 'Level'
col pricing_phase_id format 999 heading 'Phase'
col incompatibility_grp_code format a20 heading 'Incomp'
col price_break_type_code format a9 heading 'Brk Type'
col operand format 9999999.99 heading 'Operand'
col arithmetic_operator format a10 heading 'Operator'
col qualification_ind format 99 heading 'QualInd'
col product_precedence format 9999 heading 'Prod Preced'
col automatic_flag format a10 heading 'Auto'
col price_by_formula_id format 999999 heading 'Formula Id'
select a.list_line_id
, a.list_header_id
, a.list_line_type_code
, a.start_date_active
, a.end_date_active
, a.modifier_level_code
, a.pricing_phase_id
, a.incompatibility_grp_code
, a.price_break_type_code
, a.operand
, a.arithmetic_operator
, a.qualification_ind
, a.product_precedence
, a.automatic_flag
, a.price_by_formula_id
from qp_list_lines a, qp_rltd_modifiers b
where b.from_rltd_modifier_id = &&list_line_id and a.list_line_id = b.to_rltd_mo
difier_id;
prompt *** trouble shooting tips for List Line Info ****************************
*************
prompt * Line Type - verify it is the line type you are expecting. PLL- pricelis
t, PBH - price break header, SUR, DIS... - modifier list.
prompt * Start Date, End Date - verify Pricing Date from sales order is between
Start Date and End Date, blank means no restrictions.
prompt * Level - modifier level code could be Line (line level adjustment), Line
Group(group of lines), Order(order level adjustment).
prompt * Phase - verify phase is attached to the correct event, event can be PRI
CE, LINE, ORDER, BATCH..., each event may have several phases.
prompt * Incomp - modifiers should be in the same incompatibility level (set fro
m modifier form, mod line, Incompatibility Group) for the engine to solve the in
compatibility by precedence.
prompt * Brk Type - can be point, range, recurring.
prompt * Operand - the unit price based on UOM, if null then formula may be used
.
prompt * Prod Preced - product precedence, verify the line with lowest precedenc
e value gets selected. To price either by Precedence or by Best Price, check inc
ompat_resolve_code in qp_pricing_phases table.
prompt * Auto - automatic or manual.
prompt * Formula Id - id of the formula used to calculate price.
prompt *************************************************************************
*************