report in EBS 11.5.10

Hello

I am new to oracle tuning in EBS (11.5.10), my DB is 9.2.0.6 and os is HP-UX 11.11

recently we had a problem with a report in EBS, this report took 15 min to run in TEST

but it took 5 hours to work on PROD

can someone guide me on how shud I start the update, I genrated explain plans for the two

MY TEST s iinstance on oracle 10g (10.2.0.4)

in TEST plan_table output


OPERATION OPTIONS OBJECT_NODE PROPRIETAIRE_OBJET OBJECT_NAME OBJECT_INSTANCE OBJECT_TYPE OPTIMIZER SEARCH_COLUMNS ID PARENT_ID POSITION CARDINALITY COST BYTES OTHER_TAG PARTITION_START PARTITION_STOP ID_PARTITION CPU_COST IO_COST DISTRIBUTION
SELECT STATEMENT SELECT 0 909 909 2 394 909
1 0 1 CONCATENATION
FILTER                                             2     1     1
NESTED LOOPS                                             3     2     1     468     1     197                                   468
NESTED LOOPS                                             4     3     1     466     1     184                                   466
MERGE JOIN CARTESIAN 5 4 1 464 1 176 464
NESTED LOOPS                                             6     5     1     33     1     125                                   33
NESTED LOOPS                                             7     6     1     32     1     101                                   32
ACCESS FULL PO PO_VENDORS 2 TABLE 8 7 1 29 1 51 29 ANALYSIS
TABLE ACCESS BY INDEX ROWID AP AP_INVOICES_ALL 5 9 7 2 3 1 50 3 ANALYSIS TABLE
INDEX RANGE SCAN AP AP_INVOICES_N2 INDEX 1 10 9 1 2 1 2 ANALYSIS
ACCESS BY INDEX ROWID PO PO_VENDOR_SITES_ALL 1 TABLE TABLES 11 6 2 1 1 24 1 ANALYSIS
INDEX PO PO_VENDOR_SITES_U1 (UNIQUE) INDEX UNIQUE SCAN 1 12 11 1 1 ANALYSES
13 5 2 463 1 032 52 632 463 BUFFER
INLIST ITERATOR 14 13 1
ACCESS BY INDEX ROWID AP AP_AE_LINES_ALL 3 TABLES TABLE 15 14 1 431 1 032 431 52 632 ANALYSIS
INDEX RANGE SCAN AP AP_AE_LINES_N5 INDEX 1 16 15 1 31 31 4 130 ANALYSED
TABLE ACCESS BY INDEX ROWID AP AP_INVOICE_DISTRIBUTIONS_ALL 6 TABLE 17 4 2 2 1 8 2 ANALYSIS
INDEX OF AP AP_INVOICE_DISTRIBUTIONS_U2 OF UNIQUE (UNIQUE) SCANNING ANALYSIS 1 18 17 1 1 1 1
TABLE ACCESS BY INDEX ROWID AP AP_AE_HEADERS_ALL 4 TABLE 19 3 2 2 1 13 2 ANALYSIS
INDEX OF AP AP_AE_HEADERS_U1 OF UNIQUE (UNIQUE) SCANNING ANALYSIS 1 20 19 1 1 1 1
FILTER                                             21     1     2
NESTED LOOPS                                             22     21     1     441     1     197                                   441
NESTED LOOPS                                             23     22     1     439     1     189                                   439
MERGE JOIN CARTESIAN 24 23 1 437 1 176 437
NESTED LOOPS                                             25     24     1     6     1     125                                   6
NESTED LOOPS                                             26     25     1     5     1     101                                   5
TABLE ACCESS BY INDEX ROWID PO PO_VENDORS 2 TABLE 27 26 1 2 1 51 2 ANALYSIS
INDEX PO PO_VENDORS_U3 (UNIQUE) INDEX UNIQUE SCAN ANALYSIS 1 28 27 1 1 1 1
TABLE ACCESS BY INDEX ROWID AP AP_INVOICES_ALL 5 29 26 2 3 1 50 3 ANALYSIS TABLE
INDEX RANGE SCAN AP AP_INVOICES_N2 1 30 29 1 2 1 2 ANALYSIS INDEX
ACCESS BY INDEX ROWID PO PO_VENDOR_SITES_ALL 1 TABLE TABLES 31 25 2 1 1 24 1 ANALYSIS
INDEX PO PO_VENDOR_SITES_U1 (UNIQUE) INDEX UNIQUE SCAN 1 32 31 1 1 ANALYSES
33 24 2 436 1 032 436 52 632 BUFFER
INLIST ITERATOR 34 33 1
ACCESS BY INDEX ROWID AP AP_AE_LINES_ALL 3 TABLES TABLE 35 34 1 431 1 032 431 52 632 ANALYSIS
INDEX RANGE SCAN AP AP_AE_LINES_N5 1 36 35 1 31 31 4 130 ANALYSED INDEX
TABLE ACCESS BY INDEX ROWID AP AP_AE_HEADERS_ALL 4 37 23 2 2 1 13 2 ANALYSIS TABLE
INDEX OF AP AP_AE_HEADERS_U1 OF UNIQUE (UNIQUE) SCANNING ANALYSIS 1 38 37 1 1 1 1
TABLE ACCESS BY INDEX ROWID AP AP_INVOICE_DISTRIBUTIONS_ALL 6 TABLE 39 22 2 2 1 8 2 ANALYSIS
INDEX OF AP AP_INVOICE_DISTRIBUTIONS_U2 OF SCANNING UNIQUE (UNIQUE) 1 40 39 1 1 1 1 ANALYSES


for PROD



OPTIONS OBJECT_NODE PROPRIETAIRE_OBJET OBJECT_NAME OBJECT_TYPE OPTIMIZER SEARCH_COLUMNS ID PARENT_ID POSITION OPERATING COST OBJECT_INSTANCE
SELECT STATEMENT SELECT 0 1 006 1 006
1 0 1 CONCATENATION
FILTER                                             2     1     1
3 2 1 488 NESTED LOOPS
4 3 1 486 NESTED LOOPS
MERGE JOIN CARTESIAN 5 4 1 483
NESTED LOOPS                                             6     5     1     6
NESTED LOOPS                                             7     6     1     5
TABLE ACCESS FULL PO PO_VENDORS 2 8 7 1 2 ANALYSIS
TABLE ACCESS BY INDEX ROWID AP 5 9 7 2 3 AP_INVOICES_ALL ANALYSIS
INDEX RANGE SCAN AP ANALYSIS 1 10 9 1 2 NON-UNIQUE AP_INVOICES_N2
ACCESS BY INDEX ROWID PO PO_VENDOR_SITES_ALL 1 TABLE 11 6 2 1 ANALYSIS
INDEX UNIQUE PO PO_VENDOR_SITES_U1 UNIQUE 1 12 11 1 ANALYSIS SCAN
13 5 2 482 BUFFER
ACCESS BY INDEX ROWID AP AP_AE_HEADERS_ALL 4 14 13 1 477 ANALYSIS TABLES
INDEX RANGE SCAN AP ANALYSIS 1 15 14 1 44 NON-UNIQUE AP_AE_HEADERS_N3
ACCESS BY INDEX ROWID AP AP_AE_LINES_ALL 3 16 4 2 3 ANALYSIS TABLES
INDEX RANGE SCAN AP UNIQUE 1 17 16 1 2 ANALYSIS AP_AE_LINES_U2
ACCESS BY INDEX ROWID AP AP_INVOICE_DISTRIBUTIONS_ALL 6 18 3 2 2 ANALYSIS TABLES
INDEX UNIQUE SCAN AP UNIQUE ANALYSIS 1 19 18 1 1 AP_INVOICE_DISTRIBUTIONS_U2
FILTER                                             20     1     2
21 20 1 488 NESTED LOOPS
22 21 1 486 NESTED LOOPS
MERGE JOIN CARTESIAN 23 22 1 483
24 23 1 6 NESTED LOOPS
25 24 1 5 NESTED LOOPS
ACCESS BY INDEX ROWID PO PO_VENDORS 2 TABLES ANALYSIS 26 25 1 2
INDEX UNIQUE PO PO_VENDORS_U3 UNIQUE 1 27 26 1 1 ANALYSIS SCAN
ACCESS BY INDEX ROWID AP AP_INVOICES_ALL 5 28 25 2 3 ANALYSIS TABLES
INDEX RANGE SCAN AP ANALYSIS 1 29 28 1 2 NON-UNIQUE AP_INVOICES_N2
ACCESS BY INDEX ROWID PO PO_VENDOR_SITES_ALL 1 TABLE 30 24 2 1 ANALYSIS
INDEX UNIQUE PO PO_VENDOR_SITES_U1 UNIQUE 1 31 30 1 ANALYSIS SCAN
32 23 2 482 BUFFER
ACCESS BY INDEX ROWID AP AP_AE_HEADERS_ALL 4 33 32 1 477 ANALYSIS TABLES
INDEX RANGE SCAN AP ANALYSIS 1 34 33 1 44 NON-UNIQUE AP_AE_HEADERS_N3
ACCESS BY INDEX ROWID AP AP_AE_LINES_ALL 3 35 22 2 3 ANALYSIS TABLES
INDEX RANGE SCAN AP UNIQUE 1 36 35 1 2 ANALYSIS AP_AE_LINES_U2
ACCESS BY INDEX ROWID AP AP_INVOICE_DISTRIBUTIONS_ALL 6 37 21 2 2 ANALYSIS TABLES
INDEX UNIQUE SCAN AP UNIQUE ANALYSIS 1 38 37 1 1 AP_INVOICE_DISTRIBUTIONS_U2

Hello

It is a standard report
Book of creditors

When it comes to standard reports, I suggest that save you an SR like this can be saved as a (internal bug) bug and a fix (patch of performance or a workaround) is available.

Kind regards
Hussein

Tags: Oracle Applications

Similar Questions

  • Customize reports in EBS R12.2

    Hi all

    Is the discoverer and bi publisher still supported to customize reports in EBS R12.2?

    Thank you very much

    JC

    Please see the link below.

    How to create a simple report using BI Publisher in Oracle E Business Suite R12 | Blogging about Oracle Applications

  • Forms/Report for EBS R12

    Hi hussein/helios

    What version of oracle forms/reports Director EBS R12.1.1 did? R12.0.4 of the EBS and EBS R12.1.1 have the same version of the developer of forms?


    Thank you very much


    MsK

    Hello

    What version of oracle forms/reports Director EBS R12.1.1 did?

    Developer Oracle 10g (10.1.2). See the manual of concept for more details:

    Concepts of Oracle Applications
    http://download.Oracle.com/docs/CD/B53825_03/current/Acrobat/121oacg.PDF

    Note: 750359.1 - upgrade to a previous Version of OracleAS 10 g forms and reports Oracle E-Business Suite Release 12

    R12.0.4 of the EBS and EBS R12.1.1 have the same version of the developer of forms?

    Both use Developer 10 g.

    Kind regards
    Hussein

  • Report in EBS R12.2.4 Manager

    Hi all

    EBS R12.2.4

    11 GR 2

    OL 6.5

    Report Manager is available in R12.2.4 EBS?

    Kind regards

    JC

    Better to read the documentation. Here is the link to the User Guide of the report manager for 12.2:

    http://docs.Oracle.com/CD/E26401_01/doc.122/e22006.PDF

    Kind regards

    Bashar

  • Problem running Oracle PDF reports on EBS

    Hello

    I installed Oracle EBS 11.5.9 and database version 9 on a virtualization computer running IBM AIX 5.3

    If xhost + is not running on the console, reports does not.

    On a non virtualized machine which is the autonomic system, after starting the Oracle database and services (application), one must connect as root on the console and run the command:

    # xhost +.
    disabled access control, customers can connect from any host


    Now, as the machines of virtualization is not a console, as well as the telnet session, how can I use the xhost + command to activate the PDF reports?

    For example try to view the PDF report for active users == > SYSADMIN == > REQUESTS == > RUN == > ACTIVE USERS

    Then, I get this error message:

    ---------------------------------------------------------------------------
    Application object library: Version: 11.5.0 - development

    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.

    Module FNDSCURS: active users
    ---------------------------------------------------------------------------

    Current system time is 9 February 2013 23:42:09

    ---------------------------------------------------------------------------


    +-----------------------------
    | Starting the competitor program...
    +-----------------------------


    Current environment variable NLS_LANG is:
    American_America.AR8MSWIN1256

    REP-3000: internal error from Oracle Toolkit.
    REP-3000: internal error from Oracle Toolkit.

    Generator: Release 6.0.8.20.2 - Production on Sat Feb 9 23:42:11 2013

    (c) Copyright 1999 Oracle Corporation. All rights reserved.

    Enter the user name:
    Program exited with status 1
    Competitor Manager encountered an error when executing Oracle * report for your concurrent request 1908767.

    Review your output request file competitor newspaper and/or report for more information.


    ---------------------------------------------------------------------------


    Options, AutoComplete, the request for enforcement.


    End of query options AutoComplete.



    ---------------------------------------------------------------------------
    Simultaneous request ended
    Current system time is 9 February 2013 23:42:26

    ---------------------------------------------------------------------------



    I did a thorough search on this forum, the Metalink and articles but has not gotten a solution yet


    https://www.Google.com/search?source=IG & rlz = 1G1ASUT_ENUS489 & q=forums.Oracle.com+xhost+%2b & OQ=forums.Oracle.com+xhost+%2b & gs_l = iGoogle.3... 44957.47834.0.49558.9.4.0.5.0.0.258.848.0j2j2.4.0... 0.0... 1ac.1.ys_4zwElWYY



    In the problem summary:

    running xhost + using xmanager on a virtualized machine will not work even if you get the message when you run the command of xmanager
    # xhost +.
    disabled access control, customers can connect from any host

    This is useful information from where I ran the xhost +.


    # echo $DISPLAY
    TestServer:0.0

    Note: testserver is the windows machine I used to connect to the Oracle Machine Xmanager

    # lscons
    / dev/vty2

    Note: the above shows that it is not console - lscons on a console would show as/dev/lft0

    bash - $3.2 cd/oracle/prodappl
    bash - $3.2. ./APPSPROD_test1.env
    bash - $3.2 grep-i $CONTEXT_FILE to display
    < oa_var = "s_display" = "unix" osd DISPLAY > test1:0.0 < / DISPLAY >


    Anyone know the solution for this problem?

    applprod@Test1:/Oracle/prodappl > export DISPLAY = testserver:0.0
    applprod@Test1:/Oracle/prodappl >
    applprod@Test1:/Oracle/prodappl > xhost +.
    disabled access control, customers can connect from any host
    applprod@Test1:/Oracle/prodappl >
    applprod@Test1:/Oracle/prodappl > xclock &
    [1] 675940

    I tried the reports once again and the same error.

    I understand that you were able to run the command xclock, so in this case you must set the value of the variable DISPLAY (testserver:0.0) in the application context file, run AutoConfig and bounce the services again.

    Thank you
    Hussein

  • Printing reports in EBS R12

    Hello world

    OS Linux RHEL 4.6

    Our EBS R12 worked without problem for months. Today users have complained that they are unable to print all reports.
    Previously, when this happens, I just restart managers simultaneously and power off, they go again. Or I have to restart all processes at the level of the Apps and DB level because they can afford to wait 5 minutes. Or worse the solution is to restart the server itself. Be that as it may, the problem has been resolved before.
    But today, I have tried all of these procedures, but still reports do not print.

    No idea how hard to pull of this problem? Thank you very much.

    Today users have complained that they are unable to print all reports.

    Any errors? Are you able to print from the OS?

  • Reports in EBS R12

    Hello
    can u please... Tell me how to configure oracle reports in R12... im I have very urgent...
    is there an ant script to be launched to begin with reports...
    If any detailed message or... with paper on the R12 reports will be useful...

    Dear
    No startup for this configuration script. The only thing is you need to develop the report using the report designer. File of RDF FTP in the directory of respective products.

    According to the installation program is concerned, have need create a program executable, simultaneous and assign to the report specific game module.

  • The Report Builder for Windows and Linux - EBS 11i

    Hi hussein.

    I'm editing reports in EBS 11i (11.5.10.2) and I discovered the sound report version is 6.0.8.25.
    My generator of windows is 6.0.8.11, this is why I was careful when I tried to open a report from the linux EBS 11i, saying the "report was recorded on a newer version and my be lost".
    Where can I download the compatible version for my build of EBS 11i report?


    Thank you very much

    Hello

    I can find the patch. Go to (Note: 125767.1), get the patch and click the link for the patch.

    Kind regards
    Hussein

  • Reports of 10g for EBS 11i

    Hello

    Can I use Oracle 10 g XP reports windows to modify reports Oracle EBS 11i?


    Thank you very much

    Hello

    No, Developer (forms/States) 10g is NOT certified with 11i applications. 6i developer user instead. Developer 10 g can be used with Oracle EBS R12 ONLY.

    Kind regards
    Hussein

  • Where EBS store custom items of LOV?

    Dear all,

    We are developing a report on EBS r12 > > debt > > payments screen.
    The team of Business Consultants added a FDF ( view_inv_pay.) DESC_FLEX ) with 1 single segment and its description in the payment of the Bill block ( VIEW_INV_PAY )
    which synchronizes with each row corresponding to this block.

    FACTO values from selecting from a personalized list of the value that the team of Business Consultants had filled its elements using the data loader.
    We have an obligation to display the DESCRIPTION of the segment in FACT in the report not its real value.

    So the question is:
    Where EBS stores the data associated with a custom LOV ?

    And how to join between the LOV in bearing tables and the tables in the report below
    ( AP_CHECKS_ALL AC , HZ_PARTIES HZP PV AP_SUPPLIERS , GL_DAILY_CONVERSION_TYPES GDCT , AP_INVOICE_PAYMENTS_ALL LTD , AP_INVOICES_ALL AI ) to display the description of de FACTO?

    Since then, only the actual values of the de FACTO forces are stored in the AP_INVOICE_PAYMENTS_ALL table.

    You should not have performance issues if you run this query for specific invoice payments.
    The performance will be bad if you are not a narrowing of the invoice payment table records.
    Since it is a custom report, you can limit the output by the seller or by date range at least.

    Sandeep Gandhi

  • How can I get calendar Date in Date setting? [EBS R12]

    Hello

    I have requirment to have the calendar date [see Image link: http://img828.imageshack.us/img828/6241/calenderu.jpg]
    to appear in a date parameter.

    P.S I created this report for EBS 12.1.1.


    Best regards

    I don't think this is currently possible - pl see MOS Doc 457838.1 (how do to activate the calendar LOV For a concurrent program Parameter) for an explanation

    HTH
    Srini

  • BEEP in Oracle EBS R12.1 - characters in question marks

    Hello

    We have recently upgraded to EBS 12.1.1 and have noticed that since doing so, outputs of some characters in PDF format (from BEEP reports run in EBS) are displayed as question marks.

    Models are created by using the Arial font, and the characters that are not displayed are "long dashes" "-" (being) and where Microsoft Word group three openings of the diaphragm together «...» "(\'85)


    For example, the text in Word format and in the PDF file when run using Oracle BI Publisher Desktop is:


    Three openings of the diaphragm...
    A long terms-
    Short a dash-

    However, the output in PDF format when you run the report in EBS is:

    Three openings of the diaphragm?
    A long line?
    Short a dash-



    Has anyone previously met, or nobody knows how to solve. I tried downloading a file of font Arial and creation of maps (although Arial is already under a seeded font file), but this has not solved the problem.



    Concerning
    Carl

    Hello

    Check if you have all the necessary fonts under your jre/lib/fonts ($AF_JRE_TOP and $OA_JRE_TOP) on all of your nodes and web simultaneously. Or, try to copy the fonts from $FND_TOP/resource (check post install steps for XMLP 5.6.3). Rebound of mid-range necessary after copy.

    I hope this helps.
    Rownald

  • Standard reports

    Hi hussein.

    Where can I get a list of all standard reports in EBS R12?


    Thank you very much

    Hello

    Get it from table FND_CONCURRENT_PROGRAMS (search for CREATION/update DATE) or from the user manuals (there is a separate chapter/index which lists all the standard competitive program that is provided with each module).

    Applications releases 11i and 12
    http://www.Oracle.com/technology/documentation/applications.html

    Kind regards
    Hussein

  • XMl report

    Hello

    I have a problem with xml report in ebs.how can we delete a template for the report and once a model is registered also can we idle its use? any idea please

    Thank you and best regards

    VIN

    Hello

    As far as I KNOW, there is no way to delete a model, you can finish date to make it inactive - see (Note: 415636.1 - how to remove Custom templates created in Report Manager) for more details.

    Kind regards
    Hussein

  • Number of the lexical reference in EBS

    Hi all

    I have a XML file with the lexical reference. When I run the report at EBS, it gives me error Invaild identifier.
    Here is the the .xml

    <? XML version = "1.0"? >
    < name of dataTemplate = 'Programs' description = 'Report' defaultPackage = "part_date_range" version = "1.0" >
    < Parameters >
    < name of the parameter 'p_part_from' = 'character' dataType = / >
    < / Parameter >
    < lexicals / >
    < dataQuery >
    < SQLStatement instance name = "Q1" >
    <! [CDATA]
    SELECT
    MSI.concatenated_segments,
    SUBSTR (msi.description, 1, 70) dana_part_desc
    Of
    MSI apps.mtl_system_items_kfv
    WHERE
    & lpdpartnum "FBPTP30036".
    []] >
    < / sqlStatement >
    < / dataQuery >
    < name dataTrigger = source = "part_date_range.part_range" / "afterParameterForm" >
    < / dataTemplate >

    Package:
    CREATE or REPLACE PACKAGE part_date_range AS

    FUNCTION part_range-(p_part_from in Varchar2)
    RETURN A BOOLEAN VALUE;
    lpdpartnum varchar2 (1000);
    p_part_from varchar2 (40);

    END part_date_range;
    /

    CREATE or REPLACE PACKAGE BODY APPS.part_date_range as

    function part_range return BOOLEAN is
    Start

    Fnd_File.put_line (Fnd_File.LOG,'* This is the mistake1 *'| p_part_from |) » ######');
    If
    p_part_from is not null then
    Fnd_File.put_line (Fnd_File.LOG,'* This is the error2 *');
    lpdpartnum: =' msi.concatenated_segments BETWEEN p_part_from AND ';
    ELSIF
    p_part_from is null then
    lpdpartnum: =' msi.concatenated_segments < =';
    End if;

    Fnd_File.put_line (Fnd_File.LOG,'* This is the error3 *');
    return (TRUE);
    end part_range;
    END part_date_range;
    /

    Value of the parameter
    p_part_from: FBPTP30018

    Here is the error message:
    Indicator of debug: N
    {p_part_from = FBPTP30018}
    Calls the engine data OPE...
    java.sql.SQLException: ORA-00904: "P_PART_FROM": invalid identifier

    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
    at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
    at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:590)
    at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1973)
    at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(TTC7Protocol.java:850)
    at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2599)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2963)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:658)
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:584)
    at oracle.apps.xdo.dataengine.XMLPGEN.writeDefaultGroup(XMLPGEN.java:382)
    at oracle.apps.xdo.dataengine.XMLPGEN.writeGroupStructure(XMLPGEN.java:279)
    at oracle.apps.xdo.dataengine.XMLPGEN.processData(XMLPGEN.java:266)
    at oracle.apps.xdo.dataengine.XMLPGEN.processXML(XMLPGEN.java:205)
    at oracle.apps.xdo.dataengine.XMLPGEN.writeXML(XMLPGEN.java:237)
    at oracle.apps.xdo.dataengine.DataProcessor.processData(DataProcessor.java:364)
    at oracle.apps.xdo.oa.util.DataTemplate.processData(DataTemplate.java:236)
    at oracle.apps.xdo.oa.cp.JCP4XDODataEngine.runProgram(JCP4XDODataEngine.java:293)
    at oracle.apps.fnd.cp.request.Run.main(Run.java:161)

    ---------------------------------------------------------------------------
    Beginning of the FND_FILE log messages
    ---------------------------------------------------------------------------
    It's the mistake1 * FBPTP30018 #.
    This is the error2 *.
    It's the error3 *.
    ---------------------------------------------------------------------------
    End of the FND_FILE log messages
    ---------------------------------------------------------------------------

    I don't know what I'm doing worng... The pointers will be greatly appreciated.

    Thanks in advance...

    Instead:

    lpdpartnum :=' msi.concatenated_segments BETWEEN p_part_from AND';
    

    Try this:

    lpdpartnum :=' msi.concatenated_segments BETWEEN '''||p_part_from||''' AND';
    

Maybe you are looking for