DB Instance creation using DBCA Gives ERROR

Hi All,
I am getting below error while creating a new DB instance using DBCA. Initially I thought it could be a problem of the oracle version. But I checked it is Oracle 10G server version 10.2.0.1. I got it re-installed 3 times, but still same issue. Please help !!!
ORA-31011: XML parsing failed
ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 3
ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 14
ORA-06512: at line 143

I remember that issue from long long ago, for that old version, although I didn't encounter it that often.
If I am not mistaken, I solved it by running @?/rdbms/admin/catqm after creation (a multiple times?) and @?/rdbms/admin/utlrp
Maybe the following will help/assist in solving the issue: http://www.liberidu.com/blog/2009/07/13/howto-clean-xml-db-install/

Similar Messages

  • Database creation using DBCA silent installation

    Hi,
    I have installed oracel 11g release 2.
    but when i create database using dbca slient installation . I am getting below error.
    Copying database files
    DBCA_PROGRESS : 1%
    DBCA_PROGRESS : 2%
    ORA-12547: TNS:lost contact
    ORA-12547: TNS:lost contact
    DBCA_PROGRESS : 4%
    DBCA_PROGRESS : 37%
    Creating and starting Oracle instance
    ORA-12547: TNS:lost contact
    DBCA_PROGRESS : 38%
    ORA-12547: TNS:lost contact
    DBCA_PROGRESS : 40%
    ORA-12547: TNS:lost contact
    DBCA_PROGRESS : 45%
    DBCA_PROGRESS : 50%
    DBCA_PROGRESS : 51%
    ORA-12547: TNS:lost contact
    DBCA_PROGRESS : 56%
    ORA-12547: TNS:lost contact
    ORA-12547: TNS:lost contact
    ORA-12547: TNS:lost contact
    DBCA_PROGRESS : 57%
    ORA-12547: TNS:lost contact
    Please suggest reason of it.
    Thanks in advance

    cpp = 4.1.2-51.el5 is needed by gcc-4.1.2-51.el5.i386
    glibc-devel >= 2.2.90-12 is needed by gcc-4.1.2-51.el5.i386
    libgcc >= 4.1.2-51.el5 is needed by gcc-4.1.2-51.el5.i386
    libgomp >= 4.1.2-51.el5 is needed by gcc-4.1.2-51.el5.i3
    I am getting above error ... how to find dependent rpm file..As it is already mention in error . So first install cpp rpm then glibc-dlevel rpm and so on as mention above in your message.
    --neeraj                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Database creation using DBCA

    Hi,
    when i am creating database using DBCA then i get error
    I am using Linux NL2 2.6.18-84.el5xen #1 SMP Fri Feb 29 16:42:34 EST 2008 x86_64 x86_64 x86_64 GNU/Linux.
    [oracle@NL2 ~]$ dbca
    DISPLAY not set.
    Set DISPLAY environment variable, then re-run.
    when
    [oracle@NL2 ~]$ echo $DISPLAY then it has given blank ..
    i do not know how to set DISPLAY variable?
    your early response is appericiated.
    thanks in advance
    Edited by: user647572 on Sep 9, 2010 5:58 AM
    Edited by: user647572 on Sep 9, 2010 6:02 AM

    Hi -
    I cannot get dbca to display on my xp machine.
    I installed xming and have xclock running.
    Started putty and enabled X11, and this is the result:
    echo $DISPLAY
    localhost:11.0
    When I start running dbca, I basically get no response.
    It is running on the linux server, but I get no display (X window)
    to work from. My colleague has experienced the exact same
    issue.
    Thanks for your attention,
    Mark

  • Instance creation using WAPI

    Hi,
    In our project, there is a requirement to show a UI (JSF which is imported in Global Creation screenflow)which should create an instance in Oracle BPM from an external web application. For this purpose we are using WAPI. Is this approach right?
    Also, we need to pass values from external web application to BPM which are used to display on the UI mentioned above. How to acheive this using WAPI?
    It will be really helpful if some one provides examples for the same.
    Thanks,
    Sana

    Thanks Dan for the document link.
    In the document it is given that
    "WAPI provides two different ways to interact with the FuegoBPM Work Portal.
    • External to the Work Portal, through the HTML Process API, and
    • Internal to the Work Portal, through the URLForAction Java Class."
    For my requirement, i have to use HTML Process API since I need to create instance from an External WebApplication. I tried out the example given for HTML Process API. But the url "http://localhost:8585/portal/servlet/ExecutionDispatcher" is not found exception is coming.
    What is the corresponding url in Oracle BPM 10g.
    This requirement is very urgent. Please give your suggestions.

  • Loading big XML files using JDBC gives errors

    Hi,
    I've created a XMLType table using binary storage, with the restriction that any document stored has a (any) schema:
    CREATE TABLE XMLBIN OF XMLTYPE
    XMLTYPE STORE AS BINARY XML
    ALLOW ANYSCHEMA;Then I use JDBC to store a relatively large document using the following code:
    Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
    String connectionString = "jdbc:oracle:thin:@host:1521:sid";
    File f = new File("c:\\temp\\big.xml");
    Connection conn = DriverManager.getConnection(connectionString, "username", "password");
    XMLType xml = XMLType.createXML(conn,new FileInputStream(f));
    String statementText = "INSERT INTO xmlbin VALUES (?)";
    OracleResultSet resultSet = null;
    OracleCallableStatement statement = (OracleCallableStatement)conn.prepareCall(statementText);
    statement.setObject(1,xml);
    statement.execute();
    statement.close();
    conn.commit();
    conn.close();Loading a file of 61Mb (real Mb, in non-IT Mb (where 1Mb seems to be 10^6) it is 63.9Mb) or less doesn't give any errors, loading a file bigger then that gives the following error:
    java.sql.SQLRecoverableException: Io exception: Software caused connection abort: socket write error
            at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:101)
            at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:112)
            at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:173)
            at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:229)
            at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:458)
            at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:960)
            at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1222)
            at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3381)
            at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3482)
            at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:3856)
            at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1373)
            at jdbctest.Tester.main(Tester.java:60)A succesful insert of a 63Mb file takes about 23 seconds to execute. The 70Mb file fails already after a few seconds, so I'm ruling out any time outs.
    I'm guessing there are some buffers that need to be enlarged, but don't have a clue which ones.
    Anyone any idea what might cause the problem and how to resolve?
    My server runs Oracle 11g Win32. The client is Windows running Sun Java 1.6, using ojdbc6.jar and Oracle 11g Client installed.
    Cheers,
    Harald

    Hi Mark,
    The trace log in the OEM shows me:
    Errors in file d:\oracle11g\app\helium\diag\rdbms\helium\helium\trace\helium_ora_6948.trc  (incident=7510): ORA-07445: exception encountered: core dump [__intel_new_memcpy()+613] [ACCESS_VIOLATION] [ADDR:0x0] [PC:0x6104B045] [UNABLE_TO_WRITE] []  If needed I can post the full contents (if I find out how, am still a novice :-))
    Cheers,
    Harald

  • Selecting entire row into instance of jpub class gives error

    Hi. I'm using oracle 9i. I used JPublisher to create classes for my db objects, and now I want to execute:
    select value(u) from university_tb where u.name = 'Harvard';
    where university_tb is a table of university_t. I want to have the row returned into an instance of my java university_t class. So I create an instance of university_t and then say:
    ResultSet rs = stmt.executeQuery("select value(u) from University_tb u");
    rs.next();
    uniInstance = ((university_t)rs.getObject(1));
    I get an error which I traced to the casting of the returned object into a university_t. JPub classes use the readSQL() method to handle casting of an object. That's where my error occurs.
    public void readSQL(SQLInput stream, String type)
    throws SQLException
    super.readSQL(stream, type);
    setDescription(stream.readString());
    setAddress((AddressT) stream.readObject()); <-- IT OCCURS RIGHT HERE
    setYearfoundation(stream.readString());
    setContactinfo((ContactinfoT) stream.readObject()); <-- IF I REMOVE THE LINE ABOVE IT OCCURS RIGHT HERE INSTEAD
    setPresident(stream.readRef());
    setFaculties(stream.readArray());
    So it can be seen that in both cases it happens when trying to read a non-primitive type. Has anyone heard of any problems/solution with the readSQL() method of jpublisher classes, when there is a non-primitve, user defined type? My schema definitions follow. Any advice would be appreciated. Thanks.
    create or replace type Address_t as object
    ( Num int,
    Street varchar2(100),
    City varchar2(50),
    Province varchar2(50),
    Country varchar2(50),
    Postcode varchar2(15));     
    create type contactinfo_t as object (
    phone varchar2(20),
    fax varchar2(20),
    email varchar2(35));
    create type unit_t as object (
    name varchar2(200)) not final;
    create or replace type University_t under unit_t
         Description varchar2(1000),
         Address Address_t,
         YearFoundation varchar2(10),
         ContactInfo ContactInfo_t,
         President ref Person_t,
         Faculties AcademicUnit_nt);

    Hi Saro,
    DBMS_STATS.AUTO_SAMPLE_SIZE is a DB setting set for the Estimate Percentage.
    We can know the value currently set by using below SQL.
    SQL> select dbms_stats.get_prefs('ESTIMATE_PERCENT','DACREP','W_ETL_RUN_S') from dual;
    assuming DACREP is the owner of the DAC Repository. If the value is not set please set it by below SQL. The 2 in sql is variable you can size it optimal.
    SQL> exec dbms_stats.set_database_prefs('ESTIMATE_PERCENT',2);
    Regards,
    Jay

  • Send email using SKPSMTPMessage gives error "The oparation could'nt be completed" ?"

    - (void) sendMessage{
    SKPSMTPMessage *testMsg = [[SKPSMTPMessage alloc] init];
        NSString *myString;
        testMsg.relayHost = @"smtp.gmail.com";
        testMsg.requiresAuth = YES;
        testMsg.login = @"[email protected]";
        testMsg.pass = @"my password";
        testMsg.subject =  [NSString stringWithFormat:@"Client iPhone App - %@", self.navigationItem.title];
        testMsg.bccEmail = emailField.text;
        testMsg.wantsSecure = YES; // smtp.gmail.com doesn't work without TLS!
        testMsg.fromEmail = emailField.text;
        NSString *ff = [[UIDevice currentDevice] uniqueIdentifier];
        NSString *gg = [[UIDevice currentDevice] model];
        NSString *hh = [[UIDevice currentDevice] localizedModel];
        NSString *ii = [[UIDevice currentDevice] name];
        NSString *jj = [[UIDevice currentDevice] systemName];
        NSString *kk = [[UIDevice currentDevice] systemVersion];
        NSString *path;
        if ([self.navigationItem.title isEqualToString:@"Request Authorization"])
            path = [[NSBundle mainBundle] pathForResource:@"ThankYou" ofType:@"txt"];
            testMsg.toEmail = @"my other [email protected]";
        else
            path = [[NSBundle mainBundle] pathForResource:@"ThankYou2" ofType:@"txt"];
            testMsg.toEmail = @"my other [email protected]";
        testMsg.delegate= self;
        NSString *fileText = [NSString stringWithContentsOfFile:path];
        myString = [NSString stringWithFormat:@"LEADERS %@-\n\n%@\n\nName:  %@\nCompany:  %@\nAddress:  %@\nCity:  %@\nState:  %@\nZip:  %@\nPhone:  %@\nFax:  %@\nEmail:  %@\nComments:  %@\nRequire New Merchant Account:  %@\nReferral Code:  %@\nIdentifier:  %@\nModel:  %@\nLocalized Model:  %@\nName:  %@\nSystem Name:  %@\nSystem Version:  %@",self.navigationItem.title,fileText, firstNameField.text,companyField.text,addressField.text,cityField.text,stateFie ld.text,zipCodeField.text,phoneField.text,faxField.text,emailField.text,countryF ield.text,customerIdField.text,lastNameField.text,ff,gg,hh,ii,jj,kk];
        NSDictionary *plainPart = [NSDictionary dictionaryWithObjectsAndKeys:@"text/plain",kSKPSMTPPartContentTypeKey,
                                   myString,kSKPSMTPPartMessageKey,@"8bit",kSKPSMTPPartContentTransferEncodingKey, nil];
        testMsg.parts = [NSArray arrayWithObjects:plainPart,nil,nil];
        [testMsg send];   

    Ok.. I see the app now in iTunes.
    Best thing to do is email the developer of that app.
    You can do that here >  http://www.lymobilesoft.com/contact.html
    Make sure and tell them exactly what the error says: 
    it gives me the error 'Your request could not be completed'.
    Instead of using a third party app, you can download movies directly from the iTunes store.

  • Using omwb2003 gives error #5

    Attempting to run omwb2003 on an .mdb created in Access 2003 I get the following error. Several developers in our office have tried with the same results. Also on omwb2002.
    Application Error
    Error # 5:Invalid procedure call or argument
    OK
    Any suggestions?

    Hi,
    Just to ensure you're using the latest version of the Exporter tool, can you confirm that you are using the Exporter Tool shipped as part of the Application Migration Workshop, and not the version shipped with the latest version of the Oracle Migration Workbench?
    Previously I have seen as issue regarding the use of some DATE default values, namely when using a combination of DatePart calls within the one default value setting. Would you have any such default values set in your database?
    Regards,
    Hilary

  • Class instances creation using MEF

    Hi,
    I have class implementing one interface e.g.
    interface IFoo
    Class Foo : IFoo
    Using ServiceLocator, I want to create multiple instances of class in following manner: -
    1. instance CommonFoo
    2. instance SpecificFoo1
    3. instance SpecificFoo2
    How to export this class in such a way that if I pass "Specific" as parameter to ServiceLocator it will create new instance every time. But if I pass "Common" as parameter, ServiceLocator will create only one instance
    Regards,
    Sharda

    Hi Sharda,
    Per my understanding, you want to determine retrieving Singleton object programmatically. From the description of the following link,
    http://blogs.msdn.com/b/gblock/archive/2009/01/29/managed-extensibility-framework-preview-4-a-grab-bag-of-goodies.aspx, it is supported from MEF version 4. Please check it and try the solution on that blog. Feel free to let me know the result.
    Regards,    
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Java 1.5 plugin download using Object  gives error

    In my website i show applet .My applet requires jvm 1.5 .When user not has support for 1.5 then it ask for installing .I use object tag .
    <OBJECT classid="clsid:CAFEEFAC-0015-0000-0000-ABCDEFFEDCBA"
    width ="200" height="200"
    codebase ="http://java.sun.com/update/1.5.0/jinstall-1_5_0-windows-i586.cab#Version=1,5,0,0">
    param value
    <comment>
    </comment>
    </OBJECT>
    in between installation it says incorrect location .
    Can anyone please give what is the correct class id and path for it
    Thanks

    Reinstall Lion and then http://support.apple.com/kb/DL1572

  • Paraller Query Server Error while creating the database using DBCA on UNIX

    Hi All,
    I am try to create the database on UNIX PLATFORM database 11g R1.
    At the end of database creation using DBCA i got the errors:
    ORA-12801:error signaled in parallel query server P077
    ORA-00018: maximun number of sessions exceeded
    ORA-06512:at"SYS.UTL_RECOMP",line 760
    ORA-06512:at"SYS.UTL_RECOMP",line 773
    ORA-06512:at line 1
    Please suggest what can i do to remove this issue.
    Regards
    Girish Sharma

    user12104101 wrote:
    Hi All,
    I am try to create the database on UNIX PLATFORM database 11g R1.
    At the end of database creation using DBCA i got the errors:
    ORA-12801:error signaled in parallel query server P077
    ORA-00018: maximun number of sessions exceeded
    ORA-06512:at"SYS.UTL_RECOMP",line 760
    ORA-06512:at"SYS.UTL_RECOMP",line 773
    ORA-06512:at line 1
    Please suggest what can i do to remove this issue.
    Regards
    Girish SharmaIncrease value of SESSIONS(also processes) parameter as
    sqlplus "/as sysdba"
    show parameter sessions
    alter system set sessions =<new big value> scope=spfile;
    shutdown immediate;
    startup;

  • Database Storage location using DBCA

    I'm trying to create a database. I would like to put the database on drive M and the logs on drive N.
    I'm getting that if I want to do it during creation using DBCA I need to define the location on step 11 - Database Storage.
    When I click on Datafile I then click on File Location Variables do I change ORACLE_BASE, ORACLE_HOME or both?
    When I click on Redo Log Groups I then click on File Location Variables do I change ORACLE_BASE, ORACLE_HOME or both?
    Do I do anything with the Control files location?

    In that step you got File Name and File Directory menu.
    Change the paths in File Directory menu.
    Suppose you have create oradata folder in both M and N drives.
    System01.dbf M:\oradata
    redolog01a.log N:\oradata
    suggestion:- Please multiplex controlfiles and redo log files.

  • Error when creating Oracle12c PDB using DBCA response file in silent mode

    I am getting an Oracle dbca NullPointerException when trying to create a PDB (Pluggable Database) usingdbca response file in silent mode.
    I have a Oracle 12c CDB up and running, listener is also up, $ORACLE_HOME and $ORACLE_SID are also set correctly.
    After database install and creating CDB using response files, I am now trying to create a PDB using dbca response file. Contents of dbca.rsp -
    [GENERAL]
    RESPONSEFILE_VERSION = "12.1.0"
    OPERATION_TYPE = "createPluggableDatabase"
    [CREATEPLUGGABLEDATABASE]
    SOURCEDB = "orcl"
    PDBNAME = "dev"
    CREATEPDBFROM = "DEFAULT"
    PDBADMINUSERNAME = "oracle"
    PDBADMINPASSWORD = "oracle"
    CREATEUSERTABLESPACE = "true" 
    I tried following commands:
    dbca -silent -responseFile /<file path>/dbca.rsp dbca -silent -createPluggableDatabase -responseFile /<file path>/dbca.rsp
    Both give same error:
    ---- Begin output of /u01/app/oracle/product/12c/db_1/bin/dbca -silent -responseFile /<file path>/dbca.rsp
    STDOUT:
    STDERR: Exception in thread "main" java.lang.NullPointerException
    at oracle.sysman.assistants.dbca.backend.CommandLineArguments.processResponseFile(CommandLineArguments.java:6885)
    at oracle.sysman.assistants.dbca.backend.CommandLineArguments.process(CommandLineArguments.java:4544)
    at oracle.sysman.assistants.dbca.Dbca.execute(Dbca.java:110) at oracle.sysman.assistants.dbca.Dbca.main(Dbca.java:184)
    However when I pass exact same parameters as command line arguments, dbca works absolutely fine and PDB is created: Following command runs succefully.
    dbca -silent -createPluggableDatabase -sourceDB orcl -pdbName dev -createPDBFrom default -pdbAdminUserName oracle -pdbAdminPassword oracle -createUserTableSpace true
    My environment need installation using response files only. I had used a dbca response file with "createDatabase" option for CDB and it worked fine. Error is observed only when I run it with OPERATION_TYPE as "createPluggableDatabase".
    There is an option to create PDBs along with CDB creation when OPERATION_TYPE is "createDatabase". But Oracle does not give flexibility to name PDBs in this option. If I ask Oracle to create 3 PDBs, it will name them itself like PDB01, PDB02, PDB03 and so on. This doesn't work in my deployment because of applications compile time dependencies on specific PDB names.

    Yes, I am pointing to correct response file. I have two of these. One for "createDatabase" and another one for "createPluggableDatabase".
    While the first one works absolutely fine, the one which creates PDBs always gives error.
    I tried renaming the response file like dbca_dev.rsp for PDB install but same error message. I read in another forum that rename dbca.rsp is not a good idea.
    So I kept it as dbca.rsp but built it using PDB template.
    When I try after removing -silent, it tries to launch a UI installer. Since I am in Amazon AWS platform, my instance is CentOS based which doesn't support Xwindows display.
    I am stuck with -silent install only. When I try with -progressOnly, I get exactly same error.
    Also tried removing some parameters but still get exact same error message.
    Tried same trick with "createDatabase" response file, now I see parameters missing error message.
    It seems like Oracle doesn't like response file install for "createPluggableDatabase".

  • Database creation with ASM using dbca

    hi all,
    i found the steps to create the database using ASM diskgroup.
    but i received errors when configuring the FRA(flash recovery area), DBF(normal), +ARCH(archival dest),
    i tried atleast 2 to 3 times from scratch but found the same error....................
    ORA: 19624
    ORA: 19870
    here are the steps can somebody correct these steps..................
    Create Virtual Disks from VM Ware software when server is down.
    Choose Edit Virtual Machine Settings.
    Click on Add button
    Press Next and Highlight Hard Disk, then click Next
    Check ‘Create a New Virtual Disk’
    Choose SCSI as type
    Select Size as 2 GB
    Name the virtual disk as ‘ASMDBF1.vmdk’
    Create additional disks as:
    ASMDBF1.vmdk for DBF files
    ASMDBF2.vmdk Failover group
    ASMFRA.vmdk Flash Back Recovery Area
    ASMREDO.vmdk Redo Log Area
    ASMARCH.vmdk Archived Logs
    •     Start up the server OraWorld1
    •     Go to Disk Management and you will be prompted with a screen which should display all five disks with a check mark. Accept defaults and Click next.
    •     On second script all five will be unchecked, click Next
    •     Press Finish to complete and you should see all 5 disks as Type Basic Unallocated. For each of the disk perform:
    1.     Right click, New Partition, Extended Partition and Finish
    2.     Right click, New Logical drive, Do not assign drive letter nor partition it.
    3.     From command prompt type Diskpart and enter Automount enable.
    4.     From command prompt, configure basic CRS services as
    5.     C:\oracle\product\10.2.0\db_1>localconfig add
    6.     C:\oracle\product\10.2.0\db_1>localconfig add
    7.     Step 1: creating new OCR repository
    8.     Successfully accumulated necessary OCR keys.
    9.     Creating OCR keys for user 'administrator', privgrp ''..
    10.     Operation successful.
    11.     Step 2: creating new CSS service
    12.     successfully created local CSS service
    13.     successfully added CSS to home
    •     Launch DBCA and choose Configure Storage Management.
    •     Select Create New group, choose stamp disks which will show you all of your five disks. Configure ASM links to all these disks as:
    1.     ORCLDISKASMDBF1 \Device\Harddisk1\Partition1
    2.     ORCLDISKASMDBF2 \Device\Harddisk2\Partition1
    3.     ORCLDISKASMFRA \Device\Harddisk3\Partition1
    4.     ORCLDISKASMREDO \Device\Harddisk4\Partition1
    5.     ORCLDISKASMARCH \Device\Harddisk5\Partition1
    Now make Change Disk Discovery Path as Null and you should see all disks.
    Now create Disk groups as :
    ARCH \\.\ORCLDISKASMARCH External 1GB
    REDO \\.\ORCLDISKASMREDO External 1GB
    FRA \\.\ORCLDISKASMFRA External 2GB
    DBF (MAIN GROUP WITH 2 SUB-GROUPS) Must create as Normal Redundancy
    DBFP \\.\ORCLDISKASMDBF1 External 2GB
    DBFS \\.\ORCLDISKASMDBF2 External 2GB
    You now have a running ASM instance on the server.
    •     Checking ASM instance
    You can always use DBCA to check settings of ASM.
    Alternatively, go to command prompt:
    Set ORACLE_SID=+ASM
    Sqlplus /nolog
    Connect sys/password as sysdba
    Show sga (80MB)
    Total System Global Area 83886080 bytes
    Fixed Size 1247420 bytes
    Variable Size 57472836 bytes
    ASM Cache 25165824 bytes
    SQL>desc You can then check C:\oracle\product\10.2.0\db_1\database for these files. You can also view v$parameter for all possible values for ASM instance.
    +asm.asm_diskgroups='DATA1','ARCH','REDO','FRA','DBF'#Manual Mount
    *.asm_diskgroups='DATA1','ARCH','REDO','FRA','DBF'
    *.asm_diskstring=''
    *.background_dump_dest='C:\oracle\product\10.2.0\admin\+ASM\bdump'
    *.core_dump_dest='C:\oracle\product\10.2.0\admin\+ASM\cdump'
    *.instance_type='asm'
    *.large_pool_size=12M
    *.remote_login_passwordfile='SHARED'
    *.user_dump_dest='C:\oracle\product\10.2.0\admin\+ASM\udump'
    You can change some of the values like large pool and even db cache size. You can also manually create the disk group as:
    Create diskgroup DBF NORMAL redundancy
    Failgroup flgrp1 disk ‘\\.\ORCLDISKDATA0’, ‘\\.\ORCLDISKDATA1’
    Failgroup flgrp2 disk ‘\\.\ORCLDISKDATA2’, ‘\\.\ORCLDISKDATA3’;
    Check Candidate disks:
    select group_number, disk_number, mount_status, header_status, state, path from v$asm_disk;
    Other useful queries:
    Select group_number, name, total_mb, free_mb, state, type
    From v$asm_diskgroup;
    Select group_number, disk_number, mount_status, header_status, state, path, failgroup
    From v$asm_disk;
    You can use sql commands to perform most of the ASM tasks, however EM console can also be used here
    Oracle Database Installation
    •     Launch DBCA
    •     Choose Create Database and select OLTP type
    •     Name it as ORCL2, choose ASM as file system, select all disk groups to be used.
    •     Use oracle managed files as:+DBF press Next
    *•     Specify Flash Recovery Area as +FRA*
    *•     Enable archiving at +ARCH*
    *•     Choose Auto SGA as 55% of memory*
    *•     Leave else default and complete DB creation.*
    *•     Launch NetConfig and define Listener with default settings.* here i received the errors,.................
    Database ORCL2 is created with the following attributes:
    NAME: ORCL2
    SPFILE: +ARCH/ORCL2/spfileORCL2.ora
    URL: http://oraworld1:1158/em

    Strange, those messages are RMAN backup errors -- are you trying to backup the database?
    Or...if you selected "create starter database" it may be that dbca is not finding the backup files from the "demo" database.
    :p

  • Error in : Purchase order Creation using BAPI_PO_CREATE1

    Hell  guys,
    I am trying to create a PO using a BAPI - BAPI_PO_CREATE1
    I want the new PO to have all the characteristics of an existing PO. whose PO # is  stored in wa_order_split_create-docnr and for the new PO, i want the quantity from wa_order_split_create-qty_acptd and the delivery data to be wa_order_split_create-dly_date. But this process and code below gives a short dump in the std FM - MEPO_DOC_ITEM_GET . It raises an exception of failure. I am trying to create many new PO's in the loop below. If there is just one row, sometimes, it creates the PO even with the exception failure ( which is pretty weird).
    Am i making any mistake while filling the header or item or schedule lines for the BAPI_PO_CREATE1 ? Any tips or clues why I am getting a dump ?
    DATA: i_insert,
            i_create_order,
            i_cycle     TYPE cycle,
            i_qty_acpt  TYPE dzmeng,
            i_dly_date  TYPE vbak-vdatu,
            i_item      TYPE roijnomiio .
      DATA: i_order TYPE symsgv,
            i_return TYPE swd_return .
      DATA: i_vbak      TYPE vbak,
            i_vbap      TYPE vbap,
            i_ekko      TYPE ekko,
            i_ekpo      TYPE ekpo,
            i_bsoh      TYPE bapisdhd1,
            i_bsohx     TYPE bapisdhd1x,
            i_bpoh      TYPE bapimepoheader,
            i_bpohx     TYPE bapimepoheaderx,
            i_vbeln     TYPE vbeln_va,
            i_posnr     TYPE posnr_va,
            i_contr     TYPE vbeln_va,
            i_conit     TYPE posnr_va,
            i_ebeln     TYPE ebeln,
            i_ebelp     TYPE ebelp,
            i_pargr     TYPE pargr,
            i_thead     TYPE thead,
            i_line      TYPE tline,
            i_note      TYPE txw_note,
            i_new_vbeln TYPE vbeln_va,
            i_new_ebeln TYPE ebeln,
            i_wa_bsoi   TYPE bapisditm,
            i_wa_bsoix  TYPE bapisditmx,
            i_wa_bsop   TYPE bapiparnr,
            i_wa_bsos   TYPE bapischdl,
            i_wa_bsosx  TYPE bapischdlx,
            i_wa_vbpa   TYPE vbpa,
            i_wa_vbkd   TYPE vbkd,
            i_wa_bpoi   TYPE bapimepoitem,
            i_wa_bpoix  TYPE bapimepoitemx,
            i_wa_bpos   TYPE bapimeposchedule,
            i_wa_bposx  TYPE bapimeposchedulx,
            i_wa_bpop   TYPE bapiekkop,
            i_wa_ekpa   TYPE ekpa,
            i_message   TYPE char72,
            i_bapiretn  TYPE bapiret2,
            i_bapiret2  TYPE TABLE OF bapiret2 INITIAL SIZE 1,
            i_vbpa      TYPE TABLE OF vbpa INITIAL SIZE 1,
            i_vbkd      TYPE TABLE OF vbkd INITIAL SIZE 1,
            i_ekpa      TYPE TABLE OF ekpa INITIAL SIZE 1,
            i_bsoi      TYPE TABLE OF bapisditm INITIAL SIZE 1,
            i_bsoix     TYPE TABLE OF bapisditmx INITIAL SIZE 1,
            i_bsos      TYPE TABLE OF bapischdl INITIAL SIZE 1,
            i_bsosx     TYPE TABLE OF bapischdlx INITIAL SIZE 1,
            i_bsop      TYPE TABLE OF bapiparnr INITIAL SIZE 1,
            i_bpoi      TYPE TABLE OF bapimepoitem INITIAL SIZE 1,
            i_bpoix     TYPE TABLE OF bapimepoitemx INITIAL SIZE 1,
            i_bpos      TYPE TABLE OF bapimeposchedule INITIAL SIZE 1,
            i_bposx     TYPE TABLE OF bapimeposchedulx INITIAL SIZE 1,
            i_bpop      TYPE TABLE OF bapiekkop INITIAL SIZE 1,
            i_text_tab  TYPE TABLE OF tline INITIAL SIZE 1,
            i_line_tab  TYPE TABLE OF tline INITIAL SIZE 1,
            i_txw_note  TYPE TABLE OF txw_note INITIAL SIZE 1,
            i_oij_el_doc_mot TYPE oij_el_doc_mot .
      CONSTANTS: c_char_c VALUE 'C',
                 c_char_e VALUE 'E',
                 c_char_p VALUE 'P',
                 c_char_g VALUE 'G',
                 c_char_i VALUE 'I',
                 c_char_s VALUE 'S',
                 c_char_x VALUE 'X',
                 c_zsw(3) VALUE 'ZSW',
                 c_nomit_stat(4) VALUE 'ZDNY' .
      DATA : lv_nomtk_split        TYPE oij_nomtk.
      DATA : i_order_split_create  TYPE TABLE OF zsws_order_split.
      DATA : wa_order_split_create TYPE zsws_order_split.
      LOOP AT i_order_split_create INTO wa_order_split_create.
        IF NOT i_create_order IS INITIAL .
          CLEAR: i_create_order .
              MOVE: wa_order_split_create-docnr  TO i_ebeln,
                    wa_order_split_create-docitm TO i_ebelp .
              CALL FUNCTION 'ME_EKKO_SINGLE_READ'
                   EXPORTING
                        pi_ebeln         = i_ebeln
                   IMPORTING
                        po_ekko          = i_ekko
                   EXCEPTIONS
                        no_records_found = 1
                        OTHERS           = 2.
              IF sy-subrc <> 0 .
              ENDIF .
    * Fill PO Header
              i_bpoh-comp_code   = i_ekko-bukrs .
              i_bpoh-doc_type    = i_ekko-bsart .
              i_bpoh-vendor      = i_ekko-lifnr .
              i_bpoh-langu       = i_ekko-spras .
              i_bpoh-pmnttrms    = i_ekko-zterm .
              i_bpoh-purch_org   = i_ekko-ekorg .
              i_bpoh-pur_group   = i_ekko-ekgrp .
              i_bpoh-currency    = i_ekko-waers .
              i_bpoh-agreement   = i_ekko-konnr .
              i_bpoh-incoterms1  = i_ekko-inco1 .
              i_bpoh-incoterms2  = i_ekko-inco2 .
    * Fill PO update indicator 'X'
              i_bpohx-comp_code  = c_char_x .
              i_bpohx-doc_type   = c_char_x .
              i_bpohx-vendor     = c_char_x .
              i_bpohx-langu      = c_char_x .
              i_bpohx-pmnttrms   = c_char_x .
              i_bpohx-purch_org  = c_char_x .
              i_bpohx-pur_group  = c_char_x .
              i_bpohx-currency   = c_char_x .
              i_bpohx-agreement  = c_char_x .
              i_bpohx-incoterms1 = c_char_x .
              i_bpohx-incoterms2 = c_char_x .
              CALL FUNCTION 'ME_EKPO_SINGLE_READ'
                   EXPORTING
                        pi_ebeln         = i_ebeln
                        pi_ebelp         = i_ebelp
                   IMPORTING
                        po_ekpo          = i_ekpo
                   EXCEPTIONS
                        no_records_found = 1
                        OTHERS           = 2.
              IF sy-subrc <> 0 .
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
              ENDIF .
    * Fill PO Item
              i_wa_bpoi-po_item    = i_ekpo-ebelp .
              i_wa_bpoi-material   = i_ekpo-matnr .
              i_wa_bpoi-plant      = i_ekpo-werks .
              i_wa_bpoi-stge_loc   = i_ekpo-lgort .
              i_wa_bpoi-quantity   = wa_order_split_create-qty_acptd .
              i_wa_bpoi-po_unit    = i_ekpo-meins .
              i_wa_bpoi-tax_code   = i_ekpo-mwskz .
              i_wa_bpoi-val_type   = i_ekpo-bwtar .
              i_wa_bpoi-item_cat   = i_ekpo-pstyp .
              i_wa_bpoi-acctasscat = i_ekpo-knttp .
              i_wa_bpoi-agreement  = i_ekpo-konnr .
              i_wa_bpoi-agmt_item  = i_ekpo-ktpnr .
              APPEND i_wa_bpoi TO i_bpoi .
    * Fill PO Item update indicator 'X'
              i_wa_bpoix-po_item    = i_ekpo-ebelp .
              i_wa_bpoix-po_itemx   = c_char_x .
              i_wa_bpoix-material   = c_char_x .
              i_wa_bpoix-plant      = c_char_x .
              i_wa_bpoix-stge_loc   = c_char_x .
              i_wa_bpoix-quantity   = c_char_x .
              i_wa_bpoix-po_unit    = c_char_x .
              i_wa_bpoix-tax_code   = c_char_x .
              i_wa_bpoix-val_type   = c_char_x .
              i_wa_bpoix-item_cat   = c_char_x .
              i_wa_bpoix-acctasscat = c_char_x .
              i_wa_bpoix-agreement  = c_char_x .
              i_wa_bpoix-agmt_item  = c_char_x .
              APPEND i_wa_bpoix TO i_bpoix .
    * Fill PO Item Schedule
              i_wa_bpos-po_item       = i_ekpo-ebelp .
              i_wa_bpos-sched_line    = '0001' .
              i_wa_bpos-delivery_date = wa_order_split_create-dly_date .
              i_wa_bpos-quantity      = wa_order_split_create-qty_acptd .
              APPEND i_wa_bpos TO i_bpos .
    * Fill PO Item schedule update indicator 'X'
              i_wa_bposx-po_item       = i_ekpo-ebelp .
              i_wa_bposx-sched_line    = '0001' .
              i_wa_bposx-delivery_date = c_char_x .
              i_wa_bposx-quantity      = c_char_x .
              APPEND i_wa_bposx TO i_bposx .
              CLEAR: i_pargr .
              SELECT SINGLE pargr
                INTO i_pargr
                FROM t161
               WHERE bstyp = i_ekko-bstyp
                 AND bsart = i_ekko-bsart .
              CLEAR i_ekpa[].
              CALL FUNCTION 'MM_READ_PARTNERS'
                   EXPORTING
                        application = c_char_p
                        ebeln       = i_ebeln
                        bstyp       = i_ekko-bstyp
                        pargr       = i_pargr
                   TABLES
                        x_ekpa      = i_ekpa[].
              LOOP AT i_ekpa INTO i_wa_ekpa .
                i_wa_bpop-partnerdesc = i_wa_ekpa-parvw .
                i_wa_bpop-langu = sy-langu .
                IF NOT i_wa_ekpa-lifn2 IS INITIAL .
                  i_wa_bpop-buspartno = i_wa_ekpa-lifn2 .
                ELSE .
                  i_wa_bpop-buspartno = i_wa_ekpa-parnr .
                ENDIF .
                APPEND i_wa_bpop TO i_bpop .
                CLEAR: i_wa_ekpa, i_wa_bpop .
              ENDLOOP .
              CALL FUNCTION 'DIALOG_SET_NO_DIALOG'.
              CALL FUNCTION 'BAPI_PO_CREATE1'
                   EXPORTING
                        poheader         = i_bpoh
                        poheaderx        = i_bpohx
                   IMPORTING
                        exppurchaseorder = i_new_ebeln
                   TABLES
                        return           = i_bapiret2
                        poitem           = i_bpoi[]
                        poitemx          = i_bpoix[]
                        poschedule       = i_bpos[]
                        poschedulex      = i_bposx[].
              i_order = i_new_ebeln .
              SHIFT i_order LEFT DELETING LEADING '0' .
              i_return-errortype = c_char_i .
              i_return-workarea  = c_zsw .
              i_return-message   = '064' .
              i_return-variable1 = i_order .
            loop at i_bapiret2 into i_bapiretn where type ca 'EAX' .
            append i_bapiretn to t_bapi_return .
          endloop .
          if t_bapi_return[] is initial .
             i_create_order = c_char_x .
               CALL FUNCTION 'SWD_POPUP_MESSAGE_SEND'
                   EXPORTING
                        act_return = i_return. "Popup with new PO no.
          ENDCASE .                                     " Docind
        ENDIF .
      ENDLOOP.

    Hi Shareen,
    I think in the following parts of the code,
              CALL FUNCTION 'MM_READ_PARTNERS'
                   EXPORTING
                        application = c_char_p
                        ebeln       = i_ebeln
                        bstyp       = i_ekko-bstyp
                        pargr       = i_pargr
                   TABLES
                        x_ekpa      = i_ekpa[].
    Error in : Purchase order Creation using BAPI_PO_CREATE1
    Posted: Mar 20, 2006 7:39 PM      Reply      E-mail this post 
    Hell guys,
    I am trying to create a PO using a BAPI - BAPI_PO_CREATE1
    I want the new PO to have all the characteristics of an existing PO. whose PO # is stored in wa_order_split_create-docnr and for the new PO, i want the quantity from wa_order_split_create-qty_acptd and the delivery data to be wa_order_split_create-dly_date. But this process and code below gives a short dump in the std FM - MEPO_DOC_ITEM_GET . It raises an exception of failure. I am trying to create many new PO's in the loop below. If there is just one row, sometimes, it creates the PO even with the exception failure ( which is pretty weird).
    Am i making any mistake while filling the header or item or schedule lines for the BAPI_PO_CREATE1 ? Any tips or clues why I am getting a dump ?
    DATA: i_insert,
            i_create_order,
            i_cycle     TYPE cycle,
            i_qty_acpt  TYPE dzmeng,
            i_dly_date  TYPE vbak-vdatu,
            i_item      TYPE roijnomiio .
      DATA: i_order TYPE symsgv,
            i_return TYPE swd_return .
      DATA: i_vbak      TYPE vbak,
            i_vbap      TYPE vbap,
            i_ekko      TYPE ekko,
            i_ekpo      TYPE ekpo,
            i_bsoh      TYPE bapisdhd1,
            i_bsohx     TYPE bapisdhd1x,
            i_bpoh      TYPE bapimepoheader,
            i_bpohx     TYPE bapimepoheaderx,
            i_vbeln     TYPE vbeln_va,
            i_posnr     TYPE posnr_va,
            i_contr     TYPE vbeln_va,
            i_conit     TYPE posnr_va,
            i_ebeln     TYPE ebeln,
            i_ebelp     TYPE ebelp,
            i_pargr     TYPE pargr,
            i_thead     TYPE thead,
            i_line      TYPE tline,
            i_note      TYPE txw_note,
            i_new_vbeln TYPE vbeln_va,
            i_new_ebeln TYPE ebeln,
            i_wa_bsoi   TYPE bapisditm,
            i_wa_bsoix  TYPE bapisditmx,
            i_wa_bsop   TYPE bapiparnr,
            i_wa_bsos   TYPE bapischdl,
            i_wa_bsosx  TYPE bapischdlx,
            i_wa_vbpa   TYPE vbpa,
            i_wa_vbkd   TYPE vbkd,
            i_wa_bpoi   TYPE bapimepoitem,
            i_wa_bpoix  TYPE bapimepoitemx,
            i_wa_bpos   TYPE bapimeposchedule,
            i_wa_bposx  TYPE bapimeposchedulx,
            i_wa_bpop   TYPE bapiekkop,
            i_wa_ekpa   TYPE ekpa,
            i_message   TYPE char72,
            i_bapiretn  TYPE bapiret2,
            i_bapiret2  TYPE TABLE OF bapiret2 INITIAL SIZE 1,
            i_vbpa      TYPE TABLE OF vbpa INITIAL SIZE 1,
            i_vbkd      TYPE TABLE OF vbkd INITIAL SIZE 1,
            i_ekpa      TYPE TABLE OF ekpa INITIAL SIZE 1,
            i_bsoi      TYPE TABLE OF bapisditm INITIAL SIZE 1,
            i_bsoix     TYPE TABLE OF bapisditmx INITIAL SIZE 1,
            i_bsos      TYPE TABLE OF bapischdl INITIAL SIZE 1,
            i_bsosx     TYPE TABLE OF bapischdlx INITIAL SIZE 1,
            i_bsop      TYPE TABLE OF bapiparnr INITIAL SIZE 1,
            i_bpoi      TYPE TABLE OF bapimepoitem INITIAL SIZE 1,
            i_bpoix     TYPE TABLE OF bapimepoitemx INITIAL SIZE 1,
            i_bpos      TYPE TABLE OF bapimeposchedule INITIAL SIZE 1,
            i_bposx     TYPE TABLE OF bapimeposchedulx INITIAL SIZE 1,
            i_bpop      TYPE TABLE OF bapiekkop INITIAL SIZE 1,
            i_text_tab  TYPE TABLE OF tline INITIAL SIZE 1,
            i_line_tab  TYPE TABLE OF tline INITIAL SIZE 1,
            i_txw_note  TYPE TABLE OF txw_note INITIAL SIZE 1,
            i_oij_el_doc_mot TYPE oij_el_doc_mot .
      CONSTANTS: c_char_c VALUE 'C',
                 c_char_e VALUE 'E',
                 c_char_p VALUE 'P',
                 c_char_g VALUE 'G',
                 c_char_i VALUE 'I',
                 c_char_s VALUE 'S',
                 c_char_x VALUE 'X',
                 c_zsw(3) VALUE 'ZSW',
                 c_nomit_stat(4) VALUE 'ZDNY' .
      DATA : lv_nomtk_split        TYPE oij_nomtk.
      DATA : i_order_split_create  TYPE TABLE OF zsws_order_split.
      DATA : wa_order_split_create TYPE zsws_order_split.
      LOOP AT i_order_split_create INTO wa_order_split_create.
        IF NOT i_create_order IS INITIAL .
          CLEAR: i_create_order .
              MOVE: wa_order_split_create-docnr  TO i_ebeln,
                    wa_order_split_create-docitm TO i_ebelp .
              CALL FUNCTION 'ME_EKKO_SINGLE_READ'
                   EXPORTING
                        pi_ebeln         = i_ebeln
                   IMPORTING
                        po_ekko          = i_ekko
                   EXCEPTIONS
                        no_records_found = 1
                        OTHERS           = 2.
              IF sy-subrc <> 0 .
              ENDIF .
    Fill PO Header
              i_bpoh-comp_code   = i_ekko-bukrs .
              i_bpoh-doc_type    = i_ekko-bsart .
              i_bpoh-vendor      = i_ekko-lifnr .
              i_bpoh-langu       = i_ekko-spras .
              i_bpoh-pmnttrms    = i_ekko-zterm .
              i_bpoh-purch_org   = i_ekko-ekorg .
              i_bpoh-pur_group   = i_ekko-ekgrp .
              i_bpoh-currency    = i_ekko-waers .
              i_bpoh-agreement   = i_ekko-konnr .
              i_bpoh-incoterms1  = i_ekko-inco1 .
              i_bpoh-incoterms2  = i_ekko-inco2 .
    Fill PO update indicator 'X'
              i_bpohx-comp_code  = c_char_x .
              i_bpohx-doc_type   = c_char_x .
              i_bpohx-vendor     = c_char_x .
              i_bpohx-langu      = c_char_x .
              i_bpohx-pmnttrms   = c_char_x .
              i_bpohx-purch_org  = c_char_x .
              i_bpohx-pur_group  = c_char_x .
              i_bpohx-currency   = c_char_x .
              i_bpohx-agreement  = c_char_x .
              i_bpohx-incoterms1 = c_char_x .
              i_bpohx-incoterms2 = c_char_x .
              CALL FUNCTION 'ME_EKPO_SINGLE_READ'
                   EXPORTING
                        pi_ebeln         = i_ebeln
                        pi_ebelp         = i_ebelp
                   IMPORTING
                        po_ekpo          = i_ekpo
                   EXCEPTIONS
                        no_records_found = 1
                        OTHERS           = 2.
              IF sy-subrc <> 0 .
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
              ENDIF .
    Fill PO Item
              i_wa_bpoi-po_item    = i_ekpo-ebelp .
              i_wa_bpoi-material   = i_ekpo-matnr .
              i_wa_bpoi-plant      = i_ekpo-werks .
              i_wa_bpoi-stge_loc   = i_ekpo-lgort .
              i_wa_bpoi-quantity   = wa_order_split_create-qty_acptd .
              i_wa_bpoi-po_unit    = i_ekpo-meins .
              i_wa_bpoi-tax_code   = i_ekpo-mwskz .
              i_wa_bpoi-val_type   = i_ekpo-bwtar .
              i_wa_bpoi-item_cat   = i_ekpo-pstyp .
              i_wa_bpoi-acctasscat = i_ekpo-knttp .
              i_wa_bpoi-agreement  = i_ekpo-konnr .
              i_wa_bpoi-agmt_item  = i_ekpo-ktpnr .
              APPEND i_wa_bpoi TO i_bpoi .
    Fill PO Item update indicator 'X'
              i_wa_bpoix-po_item    = i_ekpo-ebelp .
              i_wa_bpoix-po_itemx   = c_char_x .
              i_wa_bpoix-material   = c_char_x .
              i_wa_bpoix-plant      = c_char_x .
              i_wa_bpoix-stge_loc   = c_char_x .
              i_wa_bpoix-quantity   = c_char_x .
              i_wa_bpoix-po_unit    = c_char_x .
              i_wa_bpoix-tax_code   = c_char_x .
              i_wa_bpoix-val_type   = c_char_x .
              i_wa_bpoix-item_cat   = c_char_x .
              i_wa_bpoix-acctasscat = c_char_x .
              i_wa_bpoix-agreement  = c_char_x .
              i_wa_bpoix-agmt_item  = c_char_x .
              APPEND i_wa_bpoix TO i_bpoix .
    Fill PO Item Schedule
              i_wa_bpos-po_item       = i_ekpo-ebelp .
              i_wa_bpos-sched_line    = '0001' .
              i_wa_bpos-delivery_date = wa_order_split_create-dly_date .
              i_wa_bpos-quantity      = wa_order_split_create-qty_acptd .
              APPEND i_wa_bpos TO i_bpos .
    Fill PO Item schedule update indicator 'X'
              i_wa_bposx-po_item       = i_ekpo-ebelp .
              i_wa_bposx-sched_line    = '0001' .
              i_wa_bposx-delivery_date = c_char_x .
              i_wa_bposx-quantity      = c_char_x .
              APPEND i_wa_bposx TO i_bposx .
              CLEAR: i_pargr .
              SELECT SINGLE pargr
                INTO i_pargr
                FROM t161
               WHERE bstyp = i_ekko-bstyp
                 AND bsart = i_ekko-bsart .
              CLEAR i_ekpa[].
              CALL FUNCTION 'MM_READ_PARTNERS'
                   EXPORTING
                        application = c_char_p
                        ebeln       = i_ebeln
                        bstyp       = i_ekko-bstyp
                        pargr       = i_pargr
                   TABLES
                        x_ekpa      = <b>i_ekpa[].</b>
              LOOP AT i_ekpa INTO i_wa_ekpa .
                i_wa_bpop-partnerdesc = i_wa_ekpa-parvw .
                i_wa_bpop-langu = sy-langu .
                IF NOT i_wa_ekpa-lifn2 IS INITIAL .
                  i_wa_bpop-buspartno = i_wa_ekpa-lifn2 .
                ELSE .
                  i_wa_bpop-buspartno = i_wa_ekpa-parnr .
                ENDIF .
                APPEND i_wa_bpop TO i_bpop .
                CLEAR: i_wa_ekpa, i_wa_bpop .
              ENDLOOP .
              CALL FUNCTION 'DIALOG_SET_NO_DIALOG'.
              CALL FUNCTION 'BAPI_PO_CREATE1'
                   EXPORTING
                        poheader         = i_bpoh
                        poheaderx        = i_bpohx
                   IMPORTING
                        exppurchaseorder = i_new_ebeln
                   TABLES
                        return           = i_bapiret2
                    <b>    poitem           = i_bpoi[]
                        poitemx          = i_bpoix[]
                        poschedule       = i_bpos[]
                        poschedulex      = i_bposx[].</b>
    it should be only i_bpoi, i_bpoix, i_bpos, i_bposx but not  i_bpoi[], i_bpoix[], i_bpos[], i_bposx[].
    CHange the code as follows:
    DATA: i_insert,
            i_create_order,
            i_cycle     TYPE cycle,
            i_qty_acpt  TYPE dzmeng,
            i_dly_date  TYPE vbak-vdatu,
            i_item      TYPE roijnomiio .
      DATA: i_order TYPE symsgv,
            i_return TYPE swd_return .
      DATA: i_vbak      TYPE vbak,
            i_vbap      TYPE vbap,
            i_ekko      TYPE ekko,
            i_ekpo      TYPE ekpo,
            i_bsoh      TYPE bapisdhd1,
            i_bsohx     TYPE bapisdhd1x,
            i_bpoh      TYPE bapimepoheader,
            i_bpohx     TYPE bapimepoheaderx,
            i_vbeln     TYPE vbeln_va,
            i_posnr     TYPE posnr_va,
            i_contr     TYPE vbeln_va,
            i_conit     TYPE posnr_va,
            i_ebeln     TYPE ebeln,
            i_ebelp     TYPE ebelp,
            i_pargr     TYPE pargr,
            i_thead     TYPE thead,
            i_line      TYPE tline,
            i_note      TYPE txw_note,
            i_new_vbeln TYPE vbeln_va,
            i_new_ebeln TYPE ebeln,
            i_wa_bsoi   TYPE bapisditm,
            i_wa_bsoix  TYPE bapisditmx,
            i_wa_bsop   TYPE bapiparnr,
            i_wa_bsos   TYPE bapischdl,
            i_wa_bsosx  TYPE bapischdlx,
            i_wa_vbpa   TYPE vbpa,
            i_wa_vbkd   TYPE vbkd,
            i_wa_bpoi   TYPE bapimepoitem,
            i_wa_bpoix  TYPE bapimepoitemx,
            i_wa_bpos   TYPE bapimeposchedule,
            i_wa_bposx  TYPE bapimeposchedulx,
            i_wa_bpop   TYPE bapiekkop,
            i_wa_ekpa   TYPE ekpa,
            i_message   TYPE char72,
            i_bapiretn  TYPE bapiret2,
            i_bapiret2  TYPE TABLE OF bapiret2 INITIAL SIZE 1,
            i_vbpa      TYPE TABLE OF vbpa INITIAL SIZE 1,
            i_vbkd      TYPE TABLE OF vbkd INITIAL SIZE 1,
            i_ekpa      TYPE TABLE OF ekpa INITIAL SIZE 1,
            i_bsoi      TYPE TABLE OF bapisditm INITIAL SIZE 1,
            i_bsoix     TYPE TABLE OF bapisditmx INITIAL SIZE 1,
            i_bsos      TYPE TABLE OF bapischdl INITIAL SIZE 1,
            i_bsosx     TYPE TABLE OF bapischdlx INITIAL SIZE 1,
            i_bsop      TYPE TABLE OF bapiparnr INITIAL SIZE 1,
            i_bpoi      TYPE TABLE OF bapimepoitem INITIAL SIZE 1,
            i_bpoix     TYPE TABLE OF bapimepoitemx INITIAL SIZE 1,
            i_bpos      TYPE TABLE OF bapimeposchedule INITIAL SIZE 1,
            i_bposx     TYPE TABLE OF bapimeposchedulx INITIAL SIZE 1,
            i_bpop      TYPE TABLE OF bapiekkop INITIAL SIZE 1,
            i_text_tab  TYPE TABLE OF tline INITIAL SIZE 1,
            i_line_tab  TYPE TABLE OF tline INITIAL SIZE 1,
            i_txw_note  TYPE TABLE OF txw_note INITIAL SIZE 1,
            i_oij_el_doc_mot TYPE oij_el_doc_mot .
      CONSTANTS: c_char_c VALUE 'C',
                 c_char_e VALUE 'E',
                 c_char_p VALUE 'P',
                 c_char_g VALUE 'G',
                 c_char_i VALUE 'I',
                 c_char_s VALUE 'S',
                 c_char_x VALUE 'X',
                 c_zsw(3) VALUE 'ZSW',
                 c_nomit_stat(4) VALUE 'ZDNY' .
      DATA : lv_nomtk_split        TYPE oij_nomtk.
      DATA : i_order_split_create  TYPE TABLE OF zsws_order_split.
      DATA : wa_order_split_create TYPE zsws_order_split.
      LOOP AT i_order_split_create INTO wa_order_split_create.
        IF NOT i_create_order IS INITIAL .
          CLEAR: i_create_order .
              MOVE: wa_order_split_create-docnr  TO i_ebeln,
                    wa_order_split_create-docitm TO i_ebelp .
              CALL FUNCTION 'ME_EKKO_SINGLE_READ'
                   EXPORTING
                        pi_ebeln         = i_ebeln
                   IMPORTING
                        po_ekko          = i_ekko
                   EXCEPTIONS
                        no_records_found = 1
                        OTHERS           = 2.
              IF sy-subrc <> 0 .
              ENDIF .
    Fill PO Header
              i_bpoh-comp_code   = i_ekko-bukrs .
              i_bpoh-doc_type    = i_ekko-bsart .
              i_bpoh-vendor      = i_ekko-lifnr .
              i_bpoh-langu       = i_ekko-spras .
              i_bpoh-pmnttrms    = i_ekko-zterm .
              i_bpoh-purch_org   = i_ekko-ekorg .
              i_bpoh-pur_group   = i_ekko-ekgrp .
              i_bpoh-currency    = i_ekko-waers .
              i_bpoh-agreement   = i_ekko-konnr .
              i_bpoh-incoterms1  = i_ekko-inco1 .
              i_bpoh-incoterms2  = i_ekko-inco2 .
    Fill PO update indicator 'X'
              i_bpohx-comp_code  = c_char_x .
              i_bpohx-doc_type   = c_char_x .
              i_bpohx-vendor     = c_char_x .
              i_bpohx-langu      = c_char_x .
              i_bpohx-pmnttrms   = c_char_x .
              i_bpohx-purch_org  = c_char_x .
              i_bpohx-pur_group  = c_char_x .
              i_bpohx-currency   = c_char_x .
              i_bpohx-agreement  = c_char_x .
              i_bpohx-incoterms1 = c_char_x .
              i_bpohx-incoterms2 = c_char_x .
              CALL FUNCTION 'ME_EKPO_SINGLE_READ'
                   EXPORTING
                        pi_ebeln         = i_ebeln
                        pi_ebelp         = i_ebelp
                   IMPORTING
                        po_ekpo          = i_ekpo
                   EXCEPTIONS
                        no_records_found = 1
                        OTHERS           = 2.
              IF sy-subrc <> 0 .
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
              ENDIF .
    Fill PO Item
              i_wa_bpoi-po_item    = i_ekpo-ebelp .
              i_wa_bpoi-material   = i_ekpo-matnr .
              i_wa_bpoi-plant      = i_ekpo-werks .
              i_wa_bpoi-stge_loc   = i_ekpo-lgort .
              i_wa_bpoi-quantity   = wa_order_split_create-qty_acptd .
              i_wa_bpoi-po_unit    = i_ekpo-meins .
              i_wa_bpoi-tax_code   = i_ekpo-mwskz .
              i_wa_bpoi-val_type   = i_ekpo-bwtar .
              i_wa_bpoi-item_cat   = i_ekpo-pstyp .
              i_wa_bpoi-acctasscat = i_ekpo-knttp .
              i_wa_bpoi-agreement  = i_ekpo-konnr .
              i_wa_bpoi-agmt_item  = i_ekpo-ktpnr .
              APPEND i_wa_bpoi TO i_bpoi .
    Fill PO Item update indicator 'X'
              i_wa_bpoix-po_item    = i_ekpo-ebelp .
              i_wa_bpoix-po_itemx   = c_char_x .
              i_wa_bpoix-material   = c_char_x .
              i_wa_bpoix-plant      = c_char_x .
              i_wa_bpoix-stge_loc   = c_char_x .
              i_wa_bpoix-quantity   = c_char_x .
              i_wa_bpoix-po_unit    = c_char_x .
              i_wa_bpoix-tax_code   = c_char_x .
              i_wa_bpoix-val_type   = c_char_x .
              i_wa_bpoix-item_cat   = c_char_x .
              i_wa_bpoix-acctasscat = c_char_x .
              i_wa_bpoix-agreement  = c_char_x .
              i_wa_bpoix-agmt_item  = c_char_x .
              APPEND i_wa_bpoix TO i_bpoix .
    Fill PO Item Schedule
              i_wa_bpos-po_item       = i_ekpo-ebelp .
              i_wa_bpos-sched_line    = '0001' .
              i_wa_bpos-delivery_date = wa_order_split_create-dly_date .
              i_wa_bpos-quantity      = wa_order_split_create-qty_acptd .
              APPEND i_wa_bpos TO i_bpos .
    Fill PO Item schedule update indicator 'X'
              i_wa_bposx-po_item       = i_ekpo-ebelp .
              i_wa_bposx-sched_line    = '0001' .
              i_wa_bposx-delivery_date = c_char_x .
              i_wa_bposx-quantity      = c_char_x .
              APPEND i_wa_bposx TO i_bposx .
              CLEAR: i_pargr .
              SELECT SINGLE pargr
                INTO i_pargr
                FROM t161
               WHERE bstyp = i_ekko-bstyp
                 AND bsart = i_ekko-bsart .
              CLEAR i_ekpa[].
              CALL FUNCTION 'MM_READ_PARTNERS'
                   EXPORTING
                        application = c_char_p
                        ebeln       = i_ebeln
                        bstyp       = i_ekko-bstyp
                        pargr       = i_pargr
                   TABLES
                        x_ekpa      = i_ekpa.
              LOOP AT i_ekpa INTO i_wa_ekpa .
                i_wa_bpop-partnerdesc = i_wa_ekpa-parvw .
                i_wa_bpop-langu = sy-langu .
                IF NOT i_wa_ekpa-lifn2 IS INITIAL .
                  i_wa_bpop-buspartno = i_wa_ekpa-lifn2 .
                ELSE .
                  i_wa_bpop-buspartno = i_wa_ekpa-parnr .
                ENDIF .
                APPEND i_wa_bpop TO i_bpop .
                CLEAR: i_wa_ekpa, i_wa_bpop .
              ENDLOOP .
              CALL FUNCTION 'DIALOG_SET_NO_DIALOG'.
              CALL FUNCTION 'BAPI_PO_CREATE1'
                   EXPORTING
                        poheader         = i_bpoh
                        poheaderx        = i_bpohx
                   IMPORTING
                        exppurchaseorder = i_new_ebeln
                   TABLES
                        return           = i_bapiret2
                        poitem           = i_bpoi
                        poitemx          = i_bpoix
                        poschedule       = i_bpos
                        poschedulex      = i_bposx.
              i_order = i_new_ebeln .
              SHIFT i_order LEFT DELETING LEADING '0' .
              i_return-errortype = c_char_i .
              i_return-workarea  = c_zsw .
              i_return-message   = '064' .
              i_return-variable1 = i_order .
            loop at i_bapiret2 into i_bapiretn where type ca 'EAX' .
            append i_bapiretn to t_bapi_return .
          endloop .
          if t_bapi_return[] is initial .
             i_create_order = c_char_x .
               CALL FUNCTION 'SWD_POPUP_MESSAGE_SEND'
                   EXPORTING
                        act_return = i_return. "Popup with new PO no.
          ENDCASE .                                     " Docind
        ENDIF .
      ENDLOOP.

Maybe you are looking for

  • My iphone 5 won't charge anymore

    my iphone 5 won't charge anymore

  • Handling a panic when using DB_REGISTER

    I have just run into a problem which I think is a bug in BerkeleyDB 4.4.20. I am checking to see if there is any known work-around or patch for this. We have a design in which two processes use one environment. Both processes employ the combination o

  • Email link to a pdf with text anchor on web site

    I'm trying to create an email with a link to a web site's pdf file with a text anchor. I want the link to take the reader not just to the pdf file but to a certain location in the pdf file. I'm creating the pdf with the text anchor in Indesign 4. It'

  • Is GeForce 2 MX the same as nVidia GeForce card?

    Hi... I want to play a game on my eMac and was wondering if GeForce 2 MX is the same as nVidia GeForce card. Please help!

  • New network created every time I connect

    Hi, I have an E51 connected to Windows 7 Home Premium using Ovi Suite 2.2.0.241. Every time I connect to the Internet, a new network is created in Windows (called "Nokia E51 USB Modem (Nokia Ovi Suite)  2", 3, 4, etc.) and I'm asked whether it's a Ho