--INSERTING into pophelp

Insert into  pophelp (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION) values ('CUST_CODE         ','W_RECEIPT_ADV                                               ','select SITE_customer.cust_code as cust_code,customer.cust_name as name, customer.chg_date as cust_date from customer,site_customer where customer.cust_code=site_customer.cust_code and site_customer.site_code = ''?'' ',null,'CUSTOMER LIST       ',0,0,to_timestamp('12-MAR-05','DD-MON-RR HH.MI.SSXFF AM'),'SUN       ','16FMIS276E     ','0',null,':site_code',null,null,null,null,null,null,null,'2');
Insert into  pophelp (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION) values ('ANAL_CODE         ','W_RECEIPT_ADV                                               ','select anal_code from analysis',null,null,0,0,to_timestamp('07-DEC-05','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','BASE           ','0',null,null,null,null,null,null,null,null,null,null);
Insert into  pophelp (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION) values ('CCTR_CODE         ','W_RECEIPT_ADV                                               ','select cctr_code from costctr',null,null,0,0,to_timestamp('07-DEC-05','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','BASE           ','0',null,null,null,null,null,null,null,null,null,null);
Insert into  pophelp (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION) values ('EMP_CODE          ','W_RECEIPT_ADV                                               ','select emp_code,emp_fname,emp_mname,emp_lname from employee ',null,'EMP                 ',0,0,to_timestamp('02-MAR-12','DD-MON-RR HH.MI.SSXFF AM'),'BASE      ','BASE           ','0',null,null,null,null,null,null,null,null,null,null);

--UPDATE into system_events

UPDATE SYSTEM_EVENTS SET COMP_TYPE='EJB',COMP_NAME='ReceiptAdv' WHERE  OBJ_NAME='receipt_adv' AND SERVICE_CODE IN('poic_default_ejb','prv_default_ejb');

