ADI Notes

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 5

1 If BNE: Allow No Security Rule = Yes, then you dont need an associated function but if a function is associated then,

whatever the value of the profile, the function must be on the menu that you are accessing the Select Integrator page from. If BNE: Allow No Security Rule = No, then the integrator must be associated with a function on the menu that you are accessing the Select Integrator page from. If you dont conform to these rules then the following message appears on the Select Integrator page: You do not have permission to access this functionality Trying to add non-interface field to interface. Used ADI1.sql to create interface and default layout in 1 pass; then used Create Document/Web ADI Interface Columns Integrator to add the non-interface field; then used Define Layout to try to update existing default layout or even to create new layout; got Java nullpointer exception when then tried to run new integrator. However when integrator is created without at the same time creating the default layout, instead this step being left till after the non-interface field has been added to the interface then this error is not received.
From forums.oracle.com The WebADI caching can be very confusing. I made a little summary of what you can do to avoid caching problems like: "ORA-06508: PL/SQL: Could not Find Program Unit being Called in Custom Web ADI" or "SQL exception occurred during PL/SQL upload" A) clear cache with http://<machine>:<port>/OA_HTML/BneAdminServlet (Release 12) or http://usrnsterx013.terex.com:8008/oa_servlets/oracle.apps.bne.framework.BneAdminServlet (11i) Need to have System Administrator responsibility B) clear IE cache & restart C) clear the cache from the functional administrator responsibility D) Bounce the Apache server E) SQL command: Alter system flush shared_pool F) Download another WebADI spreadsheet (but you can re-use your old spreadsheet) G) log out and log back in EBS H) login at another computer and try it there ...or sometimes just wait for a while till it works again.

5 6 7

Strange behaviour. XXB has field inventory_item_id data_type 2 (char) with TABLE validation specified with id as inventory_item_id, meaning segment1. For several days this just didnt operate, then changed lov_type to POPLIST and got repeated java nullpointer errors. Left for few hours then found log had skipped from bne.log to bne2.log some days after profile was changed. Also XXB was now hanging and timing out. Removed POPLIST and added rownum<11 (had tried 101) to val_where. XXB then worked apparently for any external item number into the inventory_item_id field. How to clear cache in Functional Adminstrator responsibility: Core Services>Caching Framework>Global Configuration>Clear All Cache 360105.1 WEBADI HRMS
http://kr.forums.oracle.com/forums/thread.jspa?threadID=645817&tstart=0 1> Create integrator as per normal integrator creation process. You will need an API to create an integrator. 2> Create Parameter Definition for Import. This definition will be used to display import parameter on Excel. The important fields are PROMPT_LEFT and USER_TIP. Text entered into these fields will appear in Excel. Insert into bne_param_defns_b (APPLICATION_ID,PARAM_DEFN_CODE,OBJECT_VERSION_NUMBER,PARAM_NAME,PARAM_SOURCE,PARAM_CATEGORY,DATATYPE, ATTRIBUTE_APP_ID,ATTRIBUTE_CODE,PARAM_RESOLVER,DEFAULT_REQUIRED_FLAG,DEFAULT_VISIBLE_FLAG, DEFAULT_USER_MODIFYABLE_FLAG,DEFAULT_STRING,DEFAULT_DATE,DEFAULT_NUMBER,DEFAULT_BOOLEAN_FLAG, DEFAULT_FORMULA,VAL_TYPE,VAL_VALUE,MAX_SIZE,DISPLAY_TYPE,DISPLAY_STYLE,DISPLAY_SIZE,HELP_URL,FORMAT_MASK, CREATED_BY,CREATION_DATE,LAST_UPDATED_BY,LAST_UPDATE_DATE,LAST_UPDATE_LOGIN) values (20003,'XX_IMPORT',4,'bne:import','WEBADI:Upload',6,4, null,null,null,N','Y', 'Y',null,null,null,'Y',null, '1',null,100,1,1,100,null,null,2, to_timestamp('10-JUL-08','DD-MON-RR HH24.MI.SSXFF'),2, to_timestamp('10-JUL-08','DD-MON-RR HH24.MI.SSXFF'),0); Insert into BNE_PARAM_DEFNS_TL (APPLICATION_ID,PARAM_DEFN_CODE,LANGUAGE,SOURCE_LANG,USER_NAME, DEFAULT_STRING,DEFAULT_DESC,PROMPT_LEFT,PROMPT_ABOVE,USER_TIP, ACCESS_KEY,CREATED_BY,CREATION_DATE,LAST_UPDATED_BY,LAST_UPDATE_DATE,LAST_UPDATE_LOGIN) values (20003,'XX_IMPORT','US','US','XX_IMPORT',null,'start','Automatically Submit Concurrent Program', null,'Concurrent Program will be automatically submitted on successful completion of the upload', null,2,to_timestamp('10-JUL-08','DD-MON-RR HH24.MI.SSXFF'),2,

to_timestamp('10-JUL-08','DD-MON-RR HH24.MI.SSXFF'),0); 3> Create List of Parameters to include import parameter at the end Notice the last Item on Param List is pointing to XX_IMPORT which we created in step 2 Insert into BNE_PARAM_LISTS_B (APPLICATION_ID,PARAM_LIST_CODE,OBJECT_VERSION_NUMBER,PERSISTENT_FLAG,COMMENTS, ATTRIBUTE_APP_ID,ATTRIBUTE_CODE,LIST_RESOLVER,CREATED_BY,CREATION_DATE, LAST_UPDATED_BY,LAST_UPDATE_DATE,LAST_UPDATE_LOGIN) values (20003,'XX_UPLOAD',1,'Y','List used to upload data with import', null,null,null,2,to_timestamp('10-JUL-08','DD-MON-RR HH24.MI.SSXFF'),2, to_timestamp('10-JUL-08','DD-MON-RR HH24.MI.SSXFF'),0); Insert into BNE_PARAM_LISTS_TL (APPLICATION_ID,PARAM_LIST_CODE,LANGUAGE,SOURCE_LANG,USER_NAME, USER_TIP,PROMPT_LEFT,PROMPT_ABOVE,CREATED_BY,CREATION_DATE,LAST_UPDATED_BY, LAST_UPDATE_DATE,LAST_UPDATE_LOGIN) values (20003,'XX_UPLOAD','US','US','XX Upload Paramlist',null,null, 'Upload Parameters',2,to_timestamp('10-JUL-08','DD-MON-RR HH24.MI.SSXFF'),2, to_timestamp('10-JUL-08','DD-MON-RR HH24.MI.SSXFF'),0); Insert into BNE_PARAM_LIST_ITEMS (APPLICATION_ID,PARAM_LIST_CODE,SEQUENCE_NUM,OBJECT_VERSION_NUMBER, PARAM_DEFN_APP_ID,PARAM_DEFN_CODE,PARAM_NAME,ATTRIBUTE_APP_ID, ATTRIBUTE_CODE,STRING_VALUE,DATE_VALUE,NUMBER_VALUE,BOOLEAN_VALUE_FLAG, FORMULA_VALUE,DESC_VALUE,CREATED_BY,CREATION_DATE, LAST_UPDATED_BY,LAST_UPDATE_DATE,LAST_UPDATE_LOGIN) values (20003,'XX_UPLOAD',1,1,231,'ROWS','bne:rows',null,null,null, null,null,null,null,null,2,to_timestamp('10-JUL-08','DD-MON-RR HH24.MI.SSXFF'), 2,to_timestamp('10-JUL-08','DD-MON-RR HH24.MI.SSXFF'),0); Insert into BNE_PARAM_LIST_ITEMS (APPLICATION_ID,PARAM_LIST_CODE,SEQUENCE_NUM,OBJECT_VERSION_NUMBER, PARAM_DEFN_APP_ID,PARAM_DEFN_CODE,PARAM_NAME,ATTRIBUTE_APP_ID, ATTRIBUTE_CODE,STRING_VALUE,DATE_VALUE,NUMBER_VALUE,BOOLEAN_VALUE_FLAG, FORMULA_VALUE,DESC_VALUE,CREATED_BY,CREATION_DATE, LAST_UPDATED_BY,LAST_UPDATE_DATE,LAST_UPDATE_LOGIN) values (20003,'XX_UPLOAD',2,1,450,'VALIDATION','bne:validation',null,null,null, null,null,null,null,null,2,to_timestamp('10-JUL-08','DD-MON-RR HH24.MI.SSXFF'), 2,to_timestamp('10-JUL-08','DD-MON-RR HH24.MI.SSXFF'),0); Insert into BNE_PARAM_LIST_ITEMS (APPLICATION_ID,PARAM_LIST_CODE,SEQUENCE_NUM,OBJECT_VERSION_NUMBER, PARAM_DEFN_APP_ID,PARAM_DEFN_CODE,PARAM_NAME,ATTRIBUTE_APP_ID, ATTRIBUTE_CODE,STRING_VALUE,DATE_VALUE,NUMBER_VALUE,BOOLEAN_VALUE_FLAG, FORMULA_VALUE,DESC_VALUE,CREATED_BY,CREATION_DATE, LAST_UPDATED_BY,LAST_UPDATE_DATE,LAST_UPDATE_LOGIN) values (20003,'XX_UPLOAD',3,1,20003,'XX_IMPORT','bne:import',null,null,null, null,null,'Y',null,'TRUE',2,to_timestamp('10-JUL-08','DD-MON-RR HH24.MI.SSXFF'), 2,to_timestamp('10-JUL-08','DD-MON-RR HH24.MI.SSXFF'),0);

4> Create a Success Parameter to display on Excel This message will display Success message after running Concurrent Program The important field is DEFAULT_STRING

Insert into BNE_PARAM_DEFNS_B (APPLICATION_ID,PARAM_DEFN_CODE,OBJECT_VERSION_NUMBER, PARAM_NAME,PARAM_SOURCE,PARAM_CATEGORY,DATATYPE,ATTRIBUTE_APP_ID, ATTRIBUTE_CODE,PARAM_RESOLVER,DEFAULT_REQUIRED_FLAG,DEFAULT_VISIBLE_FLAG, DEFAULT_USER_MODIFYABLE_FLAG,DEFAULT_STRING,DEFAULT_DATE,DEFAULT_NUMBER, DEFAULT_BOOLEAN_FLAG,DEFAULT_FORMULA,VAL_TYPE,VAL_VALUE,MAX_SIZE,DISPLAY_TYPE, DISPLAY_STYLE,DISPLAY_SIZE,HELP_URL,FORMAT_MASK,

CREATED_BY,CREATION_DATE,LAST_UPDATED_BY,LAST_UPDATE_DATE,LAST_UPDATE_LOGIN) values (231,'XX_SUCCESS',1,'XX Upload Success Message','WEBADI:ImporterSuccess', 5,1,null,null,null,'Y','Y','Y',null,null,null,null,null,'1',null,100,3,1,100, null,null,2,to_timestamp('10-JUL-08','DD-MON-RR HH24.MI.SSXFF'),2, to_timestamp('10-JUL-08','DD-MON-RR HH24.MI.SSXFF'),0); Insert into BNE_PARAM_DEFNS_TL (APPLICATION_ID,PARAM_DEFN_CODE,LANGUAGE,SOURCE_LANG, USER_NAME,DEFAULT_STRING,DEFAULT_DESC,PROMPT_LEFT,PROMPT_ABOVE, USER_TIP,ACCESS_KEY,CREATED_BY,CREATION_DATE, LAST_UPDATED_BY,LAST_UPDATE_DATE,LAST_UPDATE_LOGIN) values (231,'XX_SUCCESS','US','US','Success Message','Concurrent Program Request ID $import$.requestid', 'Success Message',null,null,null,null,2,to_timestamp('10-JUL-08','DD-MON-RR HH24.MI.SSXFF'), 2,to_timestamp('10-JUL-08','DD-MON-RR HH24.MI.SSXFF'),0);

5> Create List of Parameters to call Concurrent Request and Display Success Message The important field is STRING_VALUE in first Record of BNE_PARAM_LIST_ITEMS This is pointing to 20003:IMP_EMP_CONC_REQ We will be using this value to define the Concurrent Program

insert into BNE_PARAM_LISTS_B (APPLICATION_ID, PARAM_LIST_CODE, OBJECT_VERSION_NUMBER,PERSISTENT_FLAG, COMMENTS, ATTRIBUTE_APP_ID, ATTRIBUTE_CODE, LIST_RESOLVER, CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE, LAST_UPDATE_LOGIN) values (20003,'IMP_EMP', 1,'Y','Employee Upload',2,30/04/2008,2,30/04/2008, 0) insert into BNE_PARAM_LISTS_TL (APPLICATION_ID,PARAM_LIST_CODE,LANGUAGE,SOURCE_LANG, USER_NAME, USER_TIP, PROMPT_LEFT, PROMPT_ABOVE, CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE, LAST_UPDATE_LOGIN) values (20003,'IMP_EMP','US','US','IMP_EMP'2,30/04/2008, 2, 30/04/2008, 0)

6>Create List of Parameter for Concurrent Program Definition This is very important step. The param List Code should match to String defined in Step 5 The String in step 5 is made up by concanating Application ID and Param List Code separated by ":" This list is same for all the concurrent programs. The list should have minimum 7 records to define 1 concurrent program If the concurrent programs have parameters then some additional rows will be created for those parameters Important Field in List is ATTRIBUTE_CODE

insert into BNE_PARAM_LISTS_B (APPLICATION_ID,PARAM_LIST_CODE,OBJECT_VERSION_NUMBER,PERSISTENT_FLAG, COMMENTS, CREATED_BY,CREATION_DATE,LAST_UPDATED_BY,LAST_UPDATE_DATE,LAST_UPDATE_LOGIN) values (20003,'IMP_EMP_CONC_REQ', 1,'Y','Employee Update',2, 30/04/2008, 2, 30/04/2008, 0); insert into BNE_PARAM_LISTS_TL (APPLICATION_ID, PARAM_LIST_CODE, LANGUAGE, SOURCE_LANG, USER_NAME, CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE, LAST_UPDATE_LOGIN) values (20003,'IMP_EMP_CONC_REQ','US','US','Employee Update', 2,30/04/2008,2, 30/04/2008,0); insert into BNE_PARAM_LIST_ITEMS (APPLICATION_ID,PARAM_LIST_CODE, SEQUENCE_NUM, OBJECT_VERSION_NUMBER, PARAM_NAME, ATTRIBUTE_APP_ID,ATTRIBUTE_CODE,CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE, LAST_UPDATE_LOGIN) values (20003,'IMP_EMP_CONC_REQ', 1, 1, 'Application',20003,'IMP_EMP_CONC_REQ_P1_ATT', 2, 30/04/2008, 2, 30/04/2008, 0); insert into BNE_PARAM_LIST_ITEMS (APPLICATION_ID,PARAM_LIST_CODE, SEQUENCE_NUM, OBJECT_VERSION_NUMBER, PARAM_NAME, ATTRIBUTE_APP_ID, ATTRIBUTE_CODE, CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE, LAST_UPDATE_LOGIN)

values (20003,'IMP_EMP_CONC_REQ',2, 1,'Program',20003,'IMP_EMP_CONC_REQ_P2_ATT', 2, 30/04/2008, 2, 30/04/2008, 0); insert into BNE_PARAM_LIST_ITEMS (APPLICATION_ID,PARAM_LIST_CODE, SEQUENCE_NUM, OBJECT_VERSION_NUMBER, PARAM_NAME, ATTRIBUTE_APP_ID, ATTRIBUTE_CODE,CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE, LAST_UPDATE_LOGIN) values (20003,'IMP_EMP_CONC_REQ', 3, 1,'Description', 20003,'IMP_EMP_CONC_REQ_P3_ATT', 2,30/04/2008, 2, 30/04/2008, 0); insert into BNE_PARAM_LIST_ITEMS (APPLICATION_ID,PARAM_LIST_CODE, SEQUENCE_NUM, OBJECT_VERSION_NUMBER, PARAM_NAME, ATTRIBUTE_APP_ID, ATTRIBUTE_CODE, CREATED_BY,CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE,LAST_UPDATE_LOGIN) values (20003,'IMP_EMP_CONC_REQ',4, 1,'Run Date',20003,'IMP_EMP_CONC_REQ_P4_ATT', 2, 30/04/2008, 2, 30/04/2008, 0); insert into BNE_PARAM_LIST_ITEMS (APPLICATION_ID,PARAM_LIST_CODE, SEQUENCE_NUM, OBJECT_VERSION_NUMBER, PARAM_NAME, ATTRIBUTE_APP_ID, ATTRIBUTE_CODE,CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE, LAST_UPDATE_LOGIN) values (20003, 'IMP_EMP_CONC_REQ', 5, 1, 'Sub Request', 20003, 'IMP_EMP_CONC_REQ_P5_ATT', 2,30/04/2008, 2, 30/04/2008, 0); insert into BNE_PARAM_LIST_ITEMS (APPLICATION_ID,PARAM_LIST_CODE, SEQUENCE_NUM, OBJECT_VERSION_NUMBER, PARAM_NAME, ATTRIBUTE_APP_ID, ATTRIBUTE_CODE,CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE, LAST_UPDATE_LOGIN) values (20003,'IMP_EMP_CONC_REQ', 6, 1,'End of Concurrent Request Parameters', 20003,'IMP_EMP_CONC_REQ_P6_ATT'2, 30/04/2008, 2, 30/04/2008, 0); insert into BNE_PARAM_LIST_ITEMS (APPLICATION_ID,PARAM_LIST_CODE, SEQUENCE_NUM, OBJECT_VERSION_NUMBER, PARAM_NAME, ATTRIBUTE_APP_ID, ATTRIBUTE_CODE,CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE, LAST_UPDATE_LOGIN) values (20003,'IMP_EMP_CONC_REQ',7, 1,'Rest of Parameters Defaults', 20003, 'IMP_EMP_CONC_REQ_P7_ATT'2, 30/04/2008, 2, 30/04/2008, 0)

7> Create attributes for concurrent Program Each record in Paramater List from step 6 will have one record in BNE_ATTRIBUTE Table System identifes ATTRIBUTE base on Application ID and ATTRIBUTE_CODE

insert into BNE_ATTRIBUTES (APPLICATION_ID,ATTRIBUTE_CODE, OBJECT_VERSION_NUMBER, ATTRIBUTE1, ATTRIBUTE2, ATTRIBUTE3, ATTRIBUTE4, ATTRIBUTE5, ATTRIBUTE6, CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE, LAST_UPDATE_LOGIN) values (20003,'IMP_EMP_CONC_REQ_P1_ATT', 1, 'APPLICATION', 'VARCHAR2', 'IN','N', "'XX'", 2, 30/04/2008, 2, 30/04/2008, 0); insert into BNE_ATTRIBUTES (APPLICATION_ID,ATTRIBUTE_CODE, OBJECT_VERSION_NUMBER, ATTRIBUTE1, ATTRIBUTE2, ATTRIBUTE3, ATTRIBUTE4, ATTRIBUTE5, ATTRIBUTE6, CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE, LAST_UPDATE_LOGIN) values (20003, 'IMP_EMP_CONC_REQ_P2_ATT', 1, 'PROGRAM','VARCHAR2', 'IN', 'N', "'XXUPD_EMP'", 2, 30/04/2008, 2, 30/04/2008, 0);

insert into BNE_ATTRIBUTES (APPLICATION_ID,ATTRIBUTE_CODE, OBJECT_VERSION_NUMBER, ATTRIBUTE1, ATTRIBUTE2, ATTRIBUTE3, ATTRIBUTE4, ATTRIBUTE5, ATTRIBUTE6, CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE, LAST_UPDATE_LOGIN) values (20003,'IMP_EMP_CONC_REQ_P3_ATT', 1, 'DESCRIPTION', 'VARCHAR2', 'IN', 'N', "'Test Employee Update'", 2, 30/04/2008, 2, 30/04/2008, 0); insert into BNE_ATTRIBUTES (APPLICATION_ID,ATTRIBUTE_CODE, OBJECT_VERSION_NUMBER, ATTRIBUTE1, ATTRIBUTE2, ATTRIBUTE3, ATTRIBUTE4, ATTRIBUTE5, ATTRIBUTE6, CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE, LAST_UPDATE_LOGIN) values (20003, 'IMP_EMP_CONC_REQ_P4_ATT', 1, 'RUN_DATE', 'VARCHAR2', 'IN', 'N', '', 2, 30/04/2008, 2, 30/04/2008, 0); insert into BNE_ATTRIBUTES (APPLICATION_ID,ATTRIBUTE_CODE, OBJECT_VERSION_NUMBER, ATTRIBUTE1, ATTRIBUTE2, ATTRIBUTE3, ATTRIBUTE4, ATTRIBUTE5, ATTRIBUTE6, CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE, LAST_UPDATE_LOGIN) values (20003, 'IMP_EMP_CONC_REQ_P5_ATT'1, 'SUB_REQUEST', 'BOOLEAN', 'IN' , 'N', FALSE, 2, 30/04/2008, 2, 30/04/2008, 0); insert into BNE_ATTRIBUTES (APPLICATION_ID,ATTRIBUTE_CODE, OBJECT_VERSION_NUMBER, ATTRIBUTE1, ATTRIBUTE2, ATTRIBUTE3, ATTRIBUTE4, ATTRIBUTE5, ATTRIBUTE6, CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE, LAST_UPDATE_LOGIN) values (20003, 'IMP_EMP_CONC_REQ_P6_ATT',1, 'END' , 'VARCHAR2' , 'IN', 'N' , 'CHR(0)', 2, 30/04/2008, 2, 30/04/2008, 0); insert into BNE_ATTRIBUTES (APPLICATION_ID,ATTRIBUTE_CODE, OBJECT_VERSION_NUMBER, ATTRIBUTE1, ATTRIBUTE2, CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE, LAST_UPDATE_LOGIN) values (20003, 'IMP_EMP_CONC_REQ_P7_ATT', 1, "''",99, 2, 30/04/2008, 2, 30/04/2008, 0);

To access Parameter UI: Assign your user Application Developer responsibility. Create following function (Page 103 dev guide): Function BNE_DEFINE_PARAMS Type SSWA Servlet Function Parameters Bne:page=BneParameter HTML Call oracle.apps.bne.webui.BneApplicationService Add Function to Menu DESKTOP INTEGRATION MENU with no prompt. Not sure need the function, just the Application Developer responsibility.

You might also like