Using gl_import_hook_pkg, R12

Hi,
I am trying to use the subject package example of which I found in this forum.
I have this piece of code which fails with table or view doesn't exist exception at lines
l_ddl_sql:='create table xx_test_hook_temp as select * from '||i.interface_table_name;
EXECUTE IMMEDIATE l_ddl_sql;
Appreciate if somebody can share an idea on what is wrong?
Thank you
Anatoliy
The code is below:
CREATE OR REPLACE PACKAGE BODY BOLINF.xx_test_hook_pkg
AS
FUNCTION update_gl_interface (
run_id IN NUMBER,
errbuf IN OUT NOCOPY VARCHAR2
RETURN BOOLEAN
IS
l_run_id NUMBER;
l_sob_id NUMBER;
l_update_sql VARCHAR2 (4000);
l_current_date varchar2(100) :='-HELLOWORLD'||'-'||to_char(sysdate,'DD-MON-YYYY HH:MM:SS');
l_xla_table varchar2(100);
l_insert_stmt varchar2(4000);
v_msg varchar2(200);
l_ddl_sql VARCHAR2 (4000);
CURSOR int_control (p_run_id IN NUMBER)
IS
SELECT GROUP_ID, interface_table_name
FROM gl_interface_control
WHERE interface_run_id = p_run_id;
BEGIN
fnd_client_info.set_org_context (121);
l_run_id := run_id;
FOR i IN int_control (l_run_id)
LOOP
BEGIN
l_ddl_sql:='create table xx_test_hook_temp as select * from '||i.interface_table_name;
EXECUTE IMMEDIATE l_ddl_sql;
EXCEPTION when others then
v_msg := substr(sqlerrm,1,200);
errbuf :=
'User Defined Exception with l_ddl_sql';
INSERT INTO xx_test_hook
VALUES (errbuf, l_run_id, NULL,
v_msg);
RETURN TRUE;
END;
INSERT INTO xx_test_hook
VALUES (l_update_sql, l_run_id, i.GROUP_ID,
i.interface_table_name);
l_insert_stmt:='insert into xx_test_hook_temp select * from '|| i.interface_table_name;
EXECUTE IMMEDIATE l_insert_stmt;
l_update_sql:='update '||i.interface_table_name||
' set reference4=reference4||'||''''||l_current_date||''''||
' where group_id='||i.group_id;
INSERT INTO xx_test_hook
VALUES (l_update_sql, l_run_id, i.GROUP_ID,
i.interface_table_name);
l_insert_stmt:='insert into test_hook_int select * from '|| i.interface_table_name;
EXECUTE IMMEDIATE l_insert_stmt;
EXECUTE IMMEDIATE l_update_sql;
END LOOP;
RETURN TRUE;
EXCEPTION
WHEN OTHERS
THEN
errbuf :=
'User Defined Exception in test_je_import_hook.update_gl_interface';
INSERT INTO xx_test_hook
VALUES (errbuf, l_run_id, NULL,
NULL);
RETURN TRUE;
END;
END xx_test_hook_pkg;

Hello Anatolly,
Are you using any custom GL Interface table?
If yes, then do you have proper grant to APPS on that table?
If No, then you have to use a table name explicitly in the Dynamic SQL you wrote to create the xx_test_hook_temp table.
Regards,
Mriggs

Similar Messages

  • What is the forms or report version which are used in R12?

    Dear all,
    Does anyone know what version is using in R12 (forms & reports development)?
    Best Regards,
    Amy

    Forms & Reports Version 10g i.e. 10.1.2.X

  • How to use EBS R12 Database (10.2.0.2) for report analysis tools?

    Hi All,
    My client wants to use reporting tools for bussiness analysis.For this I want to use a separate database which will be replica of production database.Is there any way to achieve this in R12 database(10.2.0.2)?
    Kindly share your experience.
    Regards
    Latif

    As Srini states, knowing more about your requirements would help us to help you. :-)
    Do you need a daily twice/daily snapshot of your data? If so, then you might be able to implement the solution that Srini mentioned earlier. An added benefit of this method is that it can go beyond the creation of a reporting database: it can also be leveraged in the creation of additional clones for test and dev environments.
    Do you need real-time replication of data to your reporting database? If so, then you might want to investigate Oracle Streams/Goldengate (disclaimer: I'm typing on the fly, so I'm not 100% certain that this is supported).
    If you're willing to license more Oracle software to solve your problem, you might also consider Oracle Business Intelligence Applications, which has out-of-the-box integration with E-Business Suite for common reporting/business intelligence needs. There are additional costs involved, but you can weigh those against the development costs of "rolling your own" MVs and reports, and maintaining them.
    Again, knowing your requirements, constraints, and points of flexibility will go a long way toward figuring out which option best suits you. :)
    Regards,
    John P.
    http://only4left.jpiwowar.com

  • Which Forms/Reports Builder to use for R12.2.4 Apps?

    We are working on upgrading from R12.1.2 to R12.2.4 and I'm reading the Oracle E-Business Suite Developer's Guide Release 12.2 (E22961-12) from March 2015.  On page 1-5 it says to use Oracle Forms and Reports Developer 10g.  However when I go to download said developer suite, Oracle says it's no longer supported and I should download the 11g forms and reports developer.
    Does anyone know which is the correct version to use for any custom forms and reports in R12.2.4?
    Thanks.
    -jean

    Hi,
    It is the same as in 12.1.x.
    You should continue using Forms & Reports Developer 10g 10.1.2.
    Regards,
    Bashar

  • Which version of the R12 documentation set should we use for R12 OCP?

    Good day. Hope you have sun where you are today . . .
    Which version of the R12 documentation set should we use if preparing for the R12 OCP? I am going through the various versions set out here
    http://www.oracle.com/technology/documentation/applications.html
    There are several doc sets available -
    For 12 the doc (Part) number for Application Concepts is B31450-01 (196 pages)
    For 12+ the doc number for Application Concepts is B31450 -04 (204 pages)
    For 12.1.1 the doc number for Application Concepts is E12841-02 (208 pages)
    etc
    etc
    I would like of course, to be reading the most relevant and up to date materials, but I am not sure which version of these documents the exam is based on.
    Could someone please advise, before I begin studying these?
    Many thanks in advance.
    DanA.

    Duplicate post
    Oracle Certification Program

  • Version of JDeveloper to use for R12

    Hi ,
    We recently got one instance upgraded to R12 version 12.1.2
    In the metalink note 787209.1 its mentioned to use
    Patch 8431482 10G Jdeveloper with OA Extension ARU for R12.1.1
    But there is no version for the OAF version 12.1.2.
    Is it okay to use 8431482 for 12.1.2 or is there any other patch which I should use ?
    One more thing is
    Can we have multiple Jdevelopers on one PC .
    If so how should I configure the environment variable JDEV_USER_HOME so that i can work on both versions of Jdev one for 11i instance and another for R12 ?
    --Chandra .                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    I think I got the answer in the article
    http://www.oracle.com/technology/products/jdev/htdocs/10.1.3.3/install.html#homedirectory_windows
    7.0 Setting the User Home Directory
    This section provides instructions on how to define a user home environment variable and set its value for each user in order for JDeveloper to identify user home directories correctly.
    The user home directory contains the user's preferences for JDeveloper (in the system subdirectory). It is also the default location for new projects (in the mywork subdirectory) as well as other configuration files that are specific to a given user.
    To define the name of the user home environment variable:
    Open the file <jdev_home>\jdev\bin\jdev.conf in a text editor. Use an editor that recognizes UNIX end-of-line characters, such as WordPad.
    Find the entry:
    SetUserHomeVariable JDEV_USER_DIR
    This is the default variable that JDeveloper will look for at startup. As the terminal server administrator, you may change the name of this variable to follow your system's naming conventions.
    Save the file. If you are using WordPad, it will warn you that it is about to save the file in text-only format. You can ignore this warning.
    7.1 Setting the Home Environment Variable on Windows
    To set the home environment variable on Windows systems:
    Note: Each user of JDeveloper on a multiuser system must follow these procedures.
    From the Windows Start menu, choose Control Panel | System.
    Select the Advanced tab, then click Environment Variables.
    In the User Variables section, click New.
    Add JDEV_USER_DIR, or the name you chose for the SetUserHomeVariable, as a user variable.
    Set the value of this variable to your home directory (e.g., N:\users\jdoe), and click OK.
    To check your variable setting, open a command shell and enter:
    set
    You should see output similar to the following:
    JDEV_USER_DIR=N:\users\jdoe
    Launch JDeveloper.
    Choose Help | About to verify that the value of ide.user.dir is set to your user home directory.
    By default, the user home directory on Windows is <jdev_home>\jdev.
    --Chandra                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • PDF Encryption using CONTROL File in EBIZ R12 & Decrypting the PDF

    Hi All,
    We are using BI Publisher BURSTING with R12 ebiz.
    We have a requirement to encrypt the file while generating to the filesystem.Then when viewing the File from OAF they went to decrypt before showing to the user.
    As per the Documentation , there are some attributes like pdf-security and encryption level .
    a) Can we set these attributes in control file while using with R12 ? Is there any documentation available for the same ?
    b) Once we encrypt the file , Can we decrypt the file also , any documentation available for the same ??
    Regards,
    Vamsee.

    I can't recommend a solution for that. Tell your management team that this is unnecessary. The file system should be secure, if it's not someone on your unix admin team is in big trouble......
    I mean based on that logic all output files should be secured. By the way OAF is secure too so this really unnecessary as well. If the files need to be secured by a particular user, encryption is still a bad idea. You should just generate a relevant report for the user. Thats how we do security in the apps my friend.

  • Need help for learning how to develop interfaces for Oracle R12 EBS

    Hi all,
    I need to learn how to create interfaces in PL/SQL for Oracle R12 EBS Financials. I cannot find a good starting point for the documentation and examples to help me get started in this area. Would appreciate tips
    for this area.

    Hi,
    What kind of interfaces you are planning to develop?
    Oracle already provides list of APIs that can be used (in R12, it is responsibility).
    Oracle Integration Repository Documentation Resources Release 12 [ID 396116.1]
    Oracle Integration Repository
    http://irep.oracle.com/index.html
    If those APIs do not satisfy your requirements, you can refer to "Oracle Applications Developer" guide as well as SQL-PL/SQL guides.
    Applications Releases 11i and 12
    http://www.oracle.com/technetwork/documentation/applications-167706.html
    Database Documentation -- SQL-PL/SQL
    http://www.oracle.com/technetwork/database/enterprise-edition/documentation/index.html
    Thanks,
    Hussein

  • Upgrade from 11i to R12 - Custom Forms,Reports and Workflows

    Dear Community Friends,
    We are planning for upgrade from oracle apps 11.5.10.2 to R12.
    We have custom Forms,Form Libraries,Reports and Workflows.
    Kindly provide me for approach on how to migrate Custom form libraries,reports and Workflows.
    I beleive, this thread will exists as one shot point for custom forms,reports,workflow upgradation from 11i to r12 with detailed steps.
    I know that many links exists here in the forum for all the above objects mentioned,but still from all those i am able to get a clear picture for oracle forms but not for custom form libraries ,reports and workflows.
    Also,this post will provide a low level,practical picture of the steps for those who are in line with this.
    Links i have read for all these in our forum are:
    For Custom Forms,
    Re: Planning to upgrade from 11i to R12
    Re: Custom forms: After upgrading 11i to R12
    ofcourse,'n' number of links exists providing metalink notes also.
    Hussain,Helios and some others also has given many updates regd this.
    For custom workflow upgradation,
    Upgrade Workflow 11i to R12
    Workflow Upgrade
    Workflow Upgrade
    For reports,links mentioned the below metalink notes:
    Do Not Compile EBS R12 Reports Using rwconverter.sh or Reports Builder from IDS 10gR2 [ID 786794.1]
    Using the OracleAS 10.1.2 Forms and Reports Builders with Oracle Applications Release 12 [ID 444248.1]
    Per my understanding, after searching in many threads,i am here by summarising the practical low level steps for custom forms migration
    Please correct me,if i am wrong.
    1) Download the Forms(.fmb's) and all PLL's(all the PLL from resource folder in AU_TOP) into a Local Machine Folder
    2) Open the forms using Forms Developer 10G and connect to DB
    3) Compile by clicking compilein Forms Developer and then save it.
    4) Upload the Saved Forms(.fmb's) into the new R12 server(system) in the respective custom paths(paths similar to 11i Server)
    5) Compile all the forms using the command like below(example command is shown below or f60 gen commands or frmcmp.sh utility) in the respective custom form paths,
    this will generate the .fmx's.
    frmcmp_batch module=FORMNAME.fmb userid=apps/apps output_file=FORMNAME.fmx compile_all=yes
    Link for compiling forms: https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx?_afrLoop=359210362972527&type=DOCUMENT&id=1085928.1&displayIndex=3&_afrWindowMode=0&_adf.ctrl-state=c348xvwbg_98
    6) Open the form and check in R12 instance
    As per my understanding for custom form libraries,we can just copy paste the PLL's from 11i server to R12 server (Please correct me,if i am wrong)
    Can anyone please help me out in custom reports and custom workflows.Sorry that,i could not get a practical and clear picture for reports and also for workflow even after referring many threads and metalink notes mentioned.
    As for reports,some says that Developer Suite 10g can be used and .rdf can be used in R12.
    Some says that reports should be converted to XML published as reports does not exists in R12.
    So,i am not clear on this.
    Thanks,
    Ganesh
    [email protected]

    Per my understanding, after searching in many threads,i am here by summarising the practical low level steps for custom forms migration
    Please correct me,if i am wrong.
    1) Download the Forms(.fmb's) and all PLL's(all the PLL from resource folder in AU_TOP) into a Local Machine Folder
    2) Open the forms using Forms Developer 10G and connect to DB
    3) Compile by clicking compilein Forms Developer and then save it.
    4) Upload the Saved Forms(.fmb's) into the new R12 server(system) in the respective custom paths(paths similar to 11i Server)
    5) Compile all the forms using the command like below(example command is shown below or f60 gen commands or frmcmp.sh utility) in the respective custom form paths,
    this will generate the .fmx's.
    frmcmp_batch module=FORMNAME.fmb userid=apps/apps output_file=FORMNAME.fmx compile_all=yes
    Link for compiling forms: https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx?_afrLoop=359210362972527&type=DOCUMENT&id=1085928.1&displayIndex=3&_afrWindowMode=0&_adf.ctrl-state=c348xvwbg_98
    6) Open the form and check in R12 instance
    As per my understanding for custom form libraries,we can just copy paste the PLL's from 11i server to R12 server (Please correct me,if i am wrong)You are right, and the steps mentioned above should be sufficient.
    Can anyone please help me out in custom reports and custom workflows.Sorry that,i could not get a practical and clear picture for reports and also for workflow even after referring many threads and metalink notes mentioned.
    As for reports,some says that Developer Suite 10g can be used and .rdf can be used in R12.
    Some says that reports should be converted to XML published as reports does not exists in R12.
    So,i am not clear on this.You can still use RDF files in R12, and just follow the approach you mentioned above, and you do not have to migrate them to XML publisher (though it is recommended, but this can be done after the upgrade as an enhancement task).
    For custom workflow, you need also to do the same thing, open them using workflow builder and make sure they work in R12 (correct the code if required and save them again in R12 once they work properly).
    Thanks,
    Hussein

  • R12 Report customised report not working.

    i have developed a report in R12 for purchasing module.
    simple quey: select * from po_headers_v where po_number=45;
    in Before report trigger.
    mo_global.set_policy_context('S',101);
    In PC report is working but didn't show any record when i attach it R12.

    We have had a similar problem in R12 with getting data output from custom reports pulling data from purchasing tables such as PO_VENDORS.
    You have to add this in the after parameter form trigger of the Oracle Report:
    SRW.USER_EXIT( 'FND SRWINIT');
    Do not call it from the before report trigger like I was used to doing under 11i. This user exit sets up various Oracle Report environment info, including initializing Oracle Reports to work with the new multi-org system used by R12.
    Don't forget to call this in the after report trigger:
    srw.user_exit( 'FND SRWEXIT' );
    Also under R12, you need to set the Operating Unit Mode setting on the web based define concurrent program page. Go to (R) System Administration -> (N) Concurrent -> Programs, once you have queried up your concurrent program for your report, click the Request tab. You will find the Operating Unit Mode option there. This Operating Unit Mode option needs to be set to Single for most R12 instances. This mode setting is not available in the Oracle Forms concurrent program define form, so watch out!
    Cheers
    Daryl

  • R12(Payments)--Accounts Payable Trial Balance Report, Need Info.

    Hi All,
    We are trying to use the report Accounts Payable Trial Balance Report.
    This is an XML Report in R12 now and has 4 different RTF Templates.
    Can you please explain me how this report can be used in R12 and how does it selects the RTF template( from 4 different templates present) at run time.?
    Thanks,

    Hi,
    In 11i we use to have a parameter to give the report in Summary or Detail
    In R12 we have 4 options in templates to have Summary by Account, Summary by Supplier, Detail by Account and Detail by Supplier.
    Report will not select the template automatically. The user needs to select the template before submitting the report.
    Hope it helps
    Regards,
    Sridhar

  • Reports are taking time to complete in EBS r12?

    HI,
    We are using EBS r12 (12.0.6) and database 10.2.0.3 on linux x86.
    Actually when we are run reports from Oracle Report Builder 10g its completing fast, but when same reports set in EBS envoirnment
    its taking long time in completion.
    thx

    Do you have the statistics collected up to date?
    Please enable trace and generate the TKPROF file to find out why those requests take that long to complete.
    FAQ: Common Tracing Techniques within the Oracle Applications 11i/R12 [ID 296559.1]
    How To Trace a Concurrent Request And Generate TKPROF File [ID 453527.1]
    Thanks,
    Hussein

  • R12 reports in XMLP

    Has anyone tried to take a report like the XMLP Purchase Order in R12 and run it in 11.5.10? Does it work? Did you have to change it? Did you learn from it?
    Thanks Dave
    Las Vegas

    The XMLP PO Templates for purchase orders that come delivered in R12 work fine in 11.5.10 without customization. They are still in the old XSL-FO format, so I don't see any reason to use the R12 version instead of the one delivered with 11.5.10. There is not a new RTF template for purchase orders unfortunately.
    The formatting of the document looks the same and the changes within the code are primarily to support complex services purchasing and the enhancements to attachment types supported by PO documents.
    The only quirk I found with the R12 template was that the document type ("standard purchase order") wasn't printing in the page header and in the upper-right table as it usually does. This is due to the use of new style templates in R12 that aren't supported in 11, so you can just do a find and replace and change:
    $ROOT_OBJ/STYLE_DISPLAY_NAME to $ROOT_OBJ/DOCUMENT_TYPE
    The most interesting thing in the code is that all of the revisions are commented as "11i.11" not "R12" by the Oracle developers.

  • BIP 11g and EBS R12

    Hi,
    We have both BI Publisher 11g and are using EBS R12.
    When I create a report in BI 11g, can I download the data model and the layout into files so that I can upload them in the R12 application to be used there?
    What are the steps to do that (for the download part)?, knowing that for the loading in R12 we need a text file for the data template containing all the queries and a file for the layout (like rtf).
    thanks
    Ronny

    Coming back to my own question, with findings so far.
    It seems you can not do this.
    The tools does not seem to have any functionality to downoad e.g. the data model into a flat file.
    And it would probably not be compatible anyway. Since EBS is using a different version.
    I know for a fact that f.i. using the Word built-in for BIP 11g to create the rft file results in errors when trying to run it in EBS R12.
    Maybe someone has different opinions on it...
    regards
    Ronny

  • Login page not working in EBS R12 after autoconfig.

    Hi,
    We are using EBS R12 on windows 2003 server 32 on a test machine. As we were making some changes using autoconfig,
    as the Login page not working in EBS R12 after running autoconfig.
    Kindly help us.
    Thanks in advance.

    Hi,
    Rollback the changes and run AutoConfig, see if you get the same error or not then -- See (Note: 387859.1 - Using AutoConfig to Manage System Configurations in Oracle E-Business Suite Release 12) for details "2.5. Rolling Back an AutoConfig Session".
    Regards,
    Hussein

Maybe you are looking for

  • TCP/IP Connectivity Issue

    I am not sure if this is the correct place to post this question. I work for a company that has an intranet and very active firewall. I recently upgrade to Leopard (10.5.2) on a 2.66GHz Dual-Core Intel Xeon. I usually have Safari, Apple Mail and acce

  • Program not working correctly-Help!

    class Sort      /* method takes an array of integers as an input,      * and returns a copy with the element values sorted      * by select method.      int[] selectSort(int[] input)           /*declare variables to be used in array */           int

  • Link between alocation table(WA01) and purchase order PO/STO

    HI, I have on doubt regarding allocation table which we create in WA01. During the creation of allocation table, when we select line item and goes into taxts tab and enter some text like "abcd". I just to know does this text hav any relation with PO.

  • Consumption of Configurable SFG into Configurable FG

    Hi Gurus, Below are the table in which I have created the FG, SFG, Charaterisctis, class, , Startegies and relationship Material FG SFG Charateristics  Created IM4, IM5, IM6 IM4,IM5,IM6 Class used 300 300 Relationship If Sales Order is created for FG

  • Cannot establish wireless connection with printer

    HP Photosmart C4780/Windows 7 64 bit/no error messages This printer was previously running on this PC via a network router.  I replaced the router with a new one and have not been able to reconnect the printer to the new network.  The printer works w