Getting error while creating a text file

Hi,
I have one macro which will write all the file names from a particular folder into a text file. However when I run it, I am getting the following error message and only last file of the identified folder is getting added in my text file.
Run Time Error '55'
File Already Open
To reproduce the scenario please add one commandbutton in your excel shhet and add the following code:
Private Sub CommandButton1_Click()
Dim p As String, x As Variant
p = "C:/*.docx"
x = GetFileList(p)
Select Case IsArray(x)
Case True 'files found
MsgBox UBound(x)
For i = LBound(x) To UBound(x)
Open "C:\temp.txt" For Output As 1
Write #1, "File Name " & x(i)
Next i
Close #1
Case False
MsgBox "No matching files"
End Select
End Sub
Function GetFileList(FileSpec As String) As Variant
Dim FileArray() As Variant
Dim FileCount As Integer
Dim FileName As String
On Error GoTo NoFilesFound
FileCount = 0
FileName = Dir(FileSpec)
If FileName = "" Then GoTo NoFilesFound
' Loop until no more matching files are found
Do While FileName <> ""
FileCount = FileCount + 1
ReDim Preserve FileArray(1 To FileCount)
FileArray(FileCount) = FileName
FileName = Dir()
Loop
GetFileList = FileArray
Exit Function
' Error handler
NoFilesFound:
GetFileList = False
End Function
'End Function
For example if I have 3 docx file(1,2,3-name of the files) in my C drive, the o/p that I want in my .txt file will be as follows.
File Name 1.docx
File Name 2.docx
File Name 3.docx
Thanks!!

For i = LBound(x) To UBound(x)
Open "C:\temp.txt" For Output As 1
You call the Open method inside the FOR loop.
BTW, a collection is much more easier.
Andreas.
Private Sub CommandButton1_Click()
Dim Files As New Collection
Dim File
Dim ff As Integer
File = Dir("C:\*.docx")
Do While File <> ""
Files.Add File
File = Dir
Loop
If Files.Count = 0 Then
MsgBox "No matching files"
Exit Sub
Else
MsgBox Files.Count & " files"
End If
ff = FreeFile
Open "C:\temp.txt" For Output As #ff
For Each File In Files
Print #ff, File
Next
Close #ff
End Sub

Similar Messages

  • Getting error while creating the variable of Schema Element type

    Hi everybody,
    For creating a variable of schema element type I am doing the following steps...
    Select 'Variables' after right clicking on bpel process. IN this window, go to 'Create VAriable' then select 'Element' type. Now in Type Choose, I expanded the my imported schema files. And selected a element type, then click ok to create this variable... I am getting the message...
    IN ORDER TO SAVE IMPORTED WSDL/SCHEMA FILES, YOU MUST HAVE A PARTNER LINK LOCATED UNDER THE CURRENT PROJECT DIRECTORY.
    What is mean by that.
    I have imported the schema files in project. AFter that I have imported them into the WSDL also. Now why I am getting error while creating the variable. However I can create variable directly in .BPEL file then everything is fine. And it is working also. But what is mean with the above error? Why I am not able to create variable through GUI?
    Thanks.

    Hi,
    I have this same problem this morning, and I was going crazy, until I found this webpage on the internet:
    [http://technology.amis.nl/blog/1803/problem-importing-xml-schema-in-bpel-process|http://technology.amis.nl/blog/1803/problem-importing-xml-schema-in-bpel-process]
    The idea is that the jdeveloper is not very good working with directories with spaces on the directory name. If you move all your work to a directory without spaces, it will work smoothly. At least, it had worked for me.
    Regards,
    Nacho

  • Getting Error while creating Genric Datasource

    Hi,
    I was try to create genric extracter where i was getting error
    While creating view genric extracter where i am getting error "Entry A ZV_ZFRT  does not exist in DD02L - check your entry".
    My requirement is need to create extracter which is getting populated from three modules like SD,MM,FI/CO.From these three module i am using several tables and some of the tables don't have relation btween these tables as like foreign key and refrence key.
    Which extracter i need to create as given scenario?
    Does view will fullfill with my requirement or any other extracter.
    Please some one can help me in this scenario.
    Answer would be great appreciate.

    Hi,
    Rather than writing a program write a function module. Create a structure and include all the necessary fields in the structure. Then in the function module write the logic to extract the values for those fields. While creating the datasource specify the function module and structure name.
    Refer this link:
    /people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
    Hope this helps.
    PB

  • Logminer error while creating a dictionary file

    Hi ,
    I am working on logminer.
    i got the following error while creating a dictionary file :--
    please help me out.
    SQL> show parameter utl_
    NAME TYPE VALUE
    utl_file_dir string $ORACLE_BASE/utl_file/cecms
    SQL> execute dbms_logmnr_d.build(dictionary_filename => 'dictionary.ora',dictionary_location => '/u00/oracle/utl_file/cecms');
    BEGIN dbms_logmnr_d.build(dictionary_filename => 'dictionary.ora',dictionary_location => '/u00/oracle/utl_file/cecms'); END;
    ERROR at line 1:
    ORA-01336: specified dictionary file cannot be opened
    ORA-29280: invalid directory path
    ORA-06512: at "SYS.DBMS_LOGMNR_D", line 928
    ORA-06512: at "SYS.DBMS_LOGMNR_D", line 2052
    ORA-06512: at line 1
    Asif

    ORA-01336: specified dictionary file cannot be opened
    Cause: The dictionary file or directory does not exist or is inaccessible.
    Action: Make sure that the dictionary file and directory exist and are accessible.
    Probably an issue with the rights on the directories.
    To confirm the same, try writing a sample procedure with UTL_FILE to create a file at this location and capture the error. It will give you more details about the problem.

  • Getting error while creating the Shopping cart.

    Hi ,
    I am getting error while creating the Shopping cart.
    a.Error in account assignment for item 1  (Item  Testing SC ) 
    b.Duplicates of Cost Centre T10063 are defined in SRM  (Item  Testing SC ) 
    Kindly provide the solutions.
    Thanks,
    Dev

    Try the following in the ERP backend system:
    Standard Hierarchy Inconsistencies
    Issue: one Cost Center is repeating in more than one node in Cost Center Standard Hierarchy.
    Update from SAP Global support, the following was the email received:
    in transaction KSH3 please run both the ambiguity and completeness check(Menu -> Extras -> Check and Help functions).
    If you think that your standard hierarchy is inconsistent you can check that as following:
    Run transaction Extras -> Hierarchy - Master data -> Test. The result shows you if there are in consistencies. If that is the case run also Extras -> Hierarchy - Master data -> Comparison.
    Alternatively, you can run the report 'RKCORRH1' (TN SE38).
    Run both the Hierarchy->Master data->test and the
    Hierarchy->Master data->comparison.
    As stated above inconsistency message showed after Test. Run the comparison and you get a similar message.
    Once the above two are run, again when you go to test, the inconsistency disappears.

  • Getting error  while creating users in Peoplesoft

    Have a good day
    new fresh instance installed , getting error while creating users in peoplesoft
    SQL ERROR FUNCTION SQLExec
    ERROR POSISTION 52
    RETRUN 904- ORA-00904 PSWDREQUPPER invalid identifier statement, select minpsdlength
    pswdreqspecial pswdreqlower
    PSWDREQUPPER, PSWDREQDIGITS,ALLOWDOPRID,PSWDEXPIRESDAYS FROM PSSECOPTIONS
    original statement: SELECT MINPSWDLENGTH PSWDREQSPECIAL PSWDREQLOWER PSWDREQUPPERS
    PSWDREQDIGITS, ALLOWOPRID, PSWDEXPIRESDAYS FORM PSSECOPTIONS

    >
    RETRUN 904- ORA-00904 PSWDREQUPPER invalid identifier statement, select minpsdlength
    pswdreqspecial pswdreqlower
    PSWDREQUPPER, PSWDREQDIGITS,ALLOWDOPRID,PSWDEXPIRESDAYS FROM PSSECOPTIONS
    original statement: SELECT MINPSWDLENGTH PSWDREQSPECIAL PSWDREQLOWER PSWDREQUPPERS
    PSWDREQDIGITS, ALLOWOPRID, PSWDEXPIRESDAYS FORM PSSECOPTIONS
    >
    How is it possible that the first statement has ALLOWDOPRID column that does not exist, where as the original statement has ALLOWOPRID which does exist?
    How is it possible that the second original statement has two more errors:
    PSWDREQUPPERS should be PSWDREQUPPER
    FORM should be FROM.
    Please provide the actual error which is being raised, without editing.
    Hakan

  • Error while importing a text file for a list of values

    Hi Experts,
    While importing a text file for a list of values in designer, I am getting error message as below:
    "Invalid setting in Excel key of the Engines section of the Windows Registry. (3433)".
    I am using BO XI R3. Universe Designer version : 12.1.0.882
    Any suggestion ?
    Regards

    plzzzzzzzzzzzzzzzzz.............sme1 help me out

  • Getting error while creating Business Action with EDI EDIFACT 837 document.

    Hi,
    When I am trying to create a business action with EDI 837 &lsquo;.ecs&rsquo; file, I am getting a error. It is not creating the business action. Even it is not displaying any error details.
    Please help me in resolving this issue as it's very urgent.
    Thanks in advance.

    Hi Jyotirmoy,
    What error you are getting exactly while creating the business action? Did you try to create business action for any other protocol? If not, then please try to create business action for any other protocol and check whether you are getting the same error over there also.
    Regards,
    Anuj

  • Getting error while compiling frmcmp_batch batch file

    HI
    I am getting error while running frmcmp_batch commant
    to create .fmx file
    following is command that i am using
    $ frmcmp_batch module=$AU_TOP/forms/US/DEMxxEOR.fmb userid=APPS/apps output_file=$PO/forms/US/DEMxxEOR.fmx module_type=form batch=no compile_all=specialfollowing is error that i am getting
    Forms 10.1 (Form Compiler) Version 10.1.2.3.0 (Production)
    Forms 10.1 (Form Compiler): Release - Production
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application >>Testing options
    PL/SQL Version 10.1.0.5.0 (Production)
    Oracle Procedure Builder V10.1.2.3.0 - Production
    Oracle Virtual Graphics System Version 10.1.2.0.0 (Production)
    Oracle Multimedia Version 10.1.2.0.2 (Production)
    Oracle Tools Integration Version 10.1.2.0.2 (Production)
    Oracle Tools Common Area Version 10.1.2.0.2
    Oracle CORE 10.1.0.5.0 Production
    FRM-18108: Failed to load the following objects.
    Source Module:APPSTAND>> Source Object: STANDARD_PC_AND_VA
    Source Module:APPSTAND>>Source Object: STANDARD_TOOLBAR
    Source Module:APPSTAND>>Source Object: STANDARD_CALENDAR
    Compiling package specification APP_CUSTOM...>> No compilation errors.
    Compiling package specification APP_CUSTOM...>> No compilation errors.
    Compiling package body APP_CUSTOM...
    Compilation error on package body APP_CUSTOM:
    PL/SQL ERROR 302 at line 22, column 19
    component 'DISABLED' must be declared
    PL/SQL ERROR 0 at line 22, column 5
    Statement ignored
    PL/SQL ERROR 201 at line 40, column 5
    identifier 'APP_WINDOW.CLOSE_FIRST_WINDOW' must be declared
    PL/SQL ERROR 0 at line 40, column 5
    Statement ignored
    Compilation errors have occurred.
    Form not created

    Hi;
    I am getting error while running frmcmp_batch commant
    to create .fmx file
    following is command that i am using
    $ frmcmp_batch module=$AU_TOP/forms/US/DEMxxEOR.fmb userid=APPS/apps output_file=$PO/forms/US/DEMxxEOR.fmx module_type=form batch=no compile_all=special
    Please try wiht below syntax
    frmcmp_batch userid=apps/apps module=/u01/VIS/apps/apps_st/appl/au/12.0.0/forms/US/INVTTMTX.fmb output_file=/u01/VIS/apps/apps_st/appl/au/12.0.0/forms/US/INVTTMTX.fmx module_type=form batch=no compile_all=yes
    Regard
    Helios

  • Hey plz let me know y im getting error while creating DropDownIndx

    Hi Folks,
    While Creating Dropdown Indx im getting error while doing Databinding with Text.
    error as ' Property "TEXTS" is not type-compatible with context element "TEXT" .'
    i mean i declared in Context a sinle Node which is having TEXT attribute type of String. And when im trying to bind with Dropdownindx its showing error.
    so , plz kindly help me out the process of Dropdown Indx to list my owndata init.
    thanks
    NKumar

    Hi,
    This error comes incase the node which we have created is having cardinality 1..1. Please change the node's cardinality 0..n.
    For example if u have defined a node 'TEXT' with cardinality '0..n' with attribute TEXT. Bind the  text property of DropDownbyIndex UI element to attribute Text of context node Text.
    In the WDDOINIT method you can prepare an internal table with the values and bind it to the node and the lead selection defines the selected element.
    The below code sample may help.
    method WDDOINIT .
      data:
        node_text                  type ref to if_wd_context_node,
        stru_text                  type if_componentcontroller=>element_text,
        tab_text                   type if_componentcontroller=>elements_text .
      node_text = wd_context->get_child_node( name = if_componentcontroller=>wdctx_text ).
    Set/fill your values
      stru_text-text = 'Value1'.
      append stru_text to tab_text.
      stru_text-text = 'Value2'.
      append stru_text to tab_text.
    set values to the node
      call method node_ddi_also_text->bind_table
        exporting
          new_items = tab_text.
    endmethod.
    Best regards,
    Suresh

  • Error while uploading standard text files for the Global rule set

    Hi all,
    As part of Post Installation Activities we have uploaded standard text files for business process, functions, risks and rule set obtained with the installable Software.
    While uploading the text files we have uploaded the Basis Functions Authorizations first and then R/3 text files.
    When we checked no actions are appearing in the rule architect under respective functions except for the BASIS Module.
    Is this because we have uploaded the Basis functions before the R/3 text files?If yes, how to replace the Basis with the R/3 ones.
    We tried to replace the Basis function authorizations by re-uploading the R/3 text files again but we got the below error message u201CORA-00001:unique constraint (SAPSR3DB.SYS_C004479) violatedu201D
    Can somebody please help in this regard how to get the standard rule set in our system?
    Thanks and Best Regards,
    Srihari.K

    Hi Sri,
    you should upload first the static text files and the authorization objects first and then the GRC standard rule set files following the instructions of the SAP Configuration Guide available in Service Market Place under http://service.sap.com/instguides .
    The GRC standard rule set contains files named Basis_functions_action.txt and R3_function_action.txt. The first one contains ONLY function definitions in terms of transcation codes for basis only, whereas the second one contains functions definition for basis AND ERP modules. The same holds for the *_function_permission.txt files. There are also function definition files for other SAP solutions such as APO, CRM, HR  etc.
    You can open a customer message and request a deletion script for the rule sets files you have uploaded already. After their application of this script all rule set data will be deleted from your database. If you have uploaded static text and authorization files correctly, you can then upload the GRC standard rule set files as needed again.
    best regards,
    Frank

  • Error, while creating a control file

    Hi All,
    DB Version :- SQL*Plus: Release 10.2.0.3.0
    I am in process of carrying out full db refresh from cold backup. I came across with following, while creating a contrl file. strange to see two dbf's has same file_id. Please help me to solve this issue.
    ==
    SQL> @a.sql
    CREATE CONTROLFILE SET DATABASE LNRATU2 RESETLOGS NOARCHIVELOG
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01167: two files are the same file/group number or the same file
    ORA-01110: data file 6: '/data/oracle/LNRATU2/data02/LNRATU2_audits.dbf'
    ORA-01110: data file 6: '/data/oracle/LNRATU2/data01/LNRATU2_audits_01.dbf'
    ===
    hare krishna

    Thanks.. Find below the a.sql contents.
    CREATE CONTROLFILE SET DATABASE LNRATU2 RESETLOGS NOARCHIVELOG
    MAXLOGFILES 5
    MAXLOGMEMBERS 3
    MAXDATAFILES 300
    MAXINSTANCES 1
    MAXLOGHISTORY 58720
    LOGFILE
    GROUP 2 (
    '/data/oracle/LNRATU2/redo01/LNRATU2_redo02a.dbf',
    '/data/oracle/LNRATU2/redo02/LNRATU2_redo02b.dbf'
    ) SIZE 500M,
    GROUP 3 (
    '/data/oracle/LNRATU2/redo01/LNRATU2_redo03a.dbf',
    '/data/oracle/LNRATU2/redo02/LNRATU2_redo03b.dbf'
    ) SIZE 500M
    DATAFILE
    '/data/oracle/LNRATU2/data01/LNRATU2_audits_01.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_01.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_02.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_03.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_04.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_05.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_06.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_07.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_08.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_09.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_10.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_11.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_12.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_13.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_14.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_15.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_16.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_17.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_18.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_19.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_20.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_21.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_22.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_23.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_24.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_25.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_26.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_27.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_28.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_29.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_DATA01_30.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_01.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_02.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_03.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_04.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_05.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_06.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_07.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_08.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_09.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_10.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_11.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_12.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_13.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_14.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_15.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_16.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_INDX01_19.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_MCINFO_DATA01_01.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_MCINFO_INDX01_01.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_MCINFO_LOB01_01.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_quest_01.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_RATEOD_LOB01_01.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_RMS_DATA01_01.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_RMS_DATA01_02.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_RMS_INDX01_01.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_RMS_INDX01_02.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_RMS_INDX01_03.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_RMS_LOB01_01.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_sysaux_01.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_system01.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_tools_01.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_UNDOTBS101.dbf',
    '/data/oracle/LNRATU2/data01/LNRATU2_users_01.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_audits.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_DATA01_31.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_DATA01_32.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_DATA01_33.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_DATA01_34.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_DATA01_35.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_DATA01_36.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_DATA01_37.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_DATA01_38.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_DATA01_39.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_DATA01_40.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_DATA01_41.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_17.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_18.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_20.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_21.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_22.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_23.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_24.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_25.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_26.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_27.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_28.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_29.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_30.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_31.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_32.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_33.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_34.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_35.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_36.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_37.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_INDX01_38.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_quest_01.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_RATEOD_LOB01_02.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_RMS_DATA01_03.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_RMS_DATA01_04.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_RMS_DATA01_05.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_RMS_INDX01_04.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_RMS_INDX01_05.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_RMS_INDX01_06.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_RMS_INDX01_07.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_statpack_01.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_sysaux_01.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_system01.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_tools_01.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_UNDOTBS1_02.dbf',
    '/data/oracle/LNRATU2/data02/LNRATU2_users_01.dbf'
    CHARACTER SET WE8ISO8859P1
    hare krishna

  • Getting Error while creating Project through API:PA_PROJECT_PUB.CREATE_PROJ

    Hi Gurus,
    I'm getting an error while creating a New project.
    My code looks like this:
    APPS.PA_PROJECT_PUB.CREATE_PROJECT
    (p_api_version_number => l_object_version_number --IN Parameter
    ,p_commit => l_commit --IN Parameter
    ,p_init_msg_list => l_init_msg_list --IN Parameter
    ,p_msg_count => l_msg_count --OUT Parameter
    ,p_msg_data => l_msg_data --OUT Parameter
    ,p_return_status => l_return_status --OUT Parameter
    ,p_workflow_started => l_workflow_started --OUT Parameter
    ,p_pm_product_code => g_pm_product_code --IN Parameter
    ,p_op_validate_flag => l_op_validate_flag --IN Parameter
    ,p_project_in => g_project_in --IN Parameter
    ,p_project_out => g_project_out --OUT Parameter
    ,p_tasks_in => g_task_in --IN Parameter
    ,p_tasks_out => g_task_out --OUT Parameter
    The out put params are: p_msg_count => 1
    p_return_status => E
    p_workflow_started => N
    g_project_out.pa_project_id => 170000000000000000000
    g_project_out.pa_project_number => ^
    g_task_out_rec.pa_task_id => 170000000000000000000
    End process record p_proj_insert => 1
    Resetting the task count variable
    when I checked the API code I found this:
    PA_INTERFACE_UTILS_PUB.G_PROJECt_ID := null; --bug 2471668 ( not in the project context )
    PA_PM_FUNCTION_SECURITY_PUB.check_function_security
    (p_api_version_number => p_api_version_number,
    p_responsibility_id => l_resp_id,
    p_function_name => 'PA_PM_CREATE_PROJECT',
    p_msg_count => l_msg_count,
    p_msg_data => l_msg_data,
    p_return_status => l_return_status,
    p_function_allowed => l_function_allowed
    . I think I am getting the error because of this.
    Now, question.
    Do I need to run the Create Project from a specific Responsibility?
    because when I ran the underlined query, I fpound the final status as 'N'.
    I'm a HR guy and PA is a new world for me. Any help will be appreciated.
    Thanks!!
    Viky

    You need to find any responsibility and userid that lets you create a project using the screen.
    And then in your code, you need to set your context to that resp/userid.
    Hope this helps
    Sandeep Gandhi

  • Error while creating an EAR file in 7.1 version

    Hi All,
    While developing an Adapter module in PI 7.1 version, facing a problem while creating an EAR file.
    Using NWDS 7.1 version
    1) Have developed the code compatible to 7.1 version changes which is not throwing any error while compilation
    2) Have given the jndi info in ejb-j2ee-engine.xml
    3) Also entered info in ejb-jar.xml like
    <?xml version="1.0" encoding="UTF-8"?>
    <ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="ejb-jar_ID"
    version="2.1" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
    <description>EJB JAR description</description>
    <display-name>EJB JAR</display-name>
    <enterprise-beans>
    <session>
    <ejb-name>EncryptModParam</ejb-name>
    <home>com.sap.aii.af.lib.mp.module.ModuleHome</home>
    <remote>com.sap.aii.af.lib.mp.module.ModuleRemote</remote>
    <local-home> com.sap.aii.af.lib.mp.module.ModuleLocalHome</local-home>
    <local>com.sap.aii.af.lib.mp.module.ModuleLocal</local>
    <ejb-class>com.abc.encryption.EncryptModParam</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    </enterprise-beans>
    </ejb-jar>
    Then have clicked on Build project. Its throwing the following error
    Bean Interfaces: Stateless Bean "Encryption" should have atleast one of the following interface pairs: "local" and "localhome", "home" and "remote" or service endpoint interface
    Bean Interfaces: The home interface "com.sap.aii.af.lib.mp.module.ModuleHome" cannot be found in the search path
    Bean Interfaces: The local home interface "com.sap.aii.af.lib.mp.module.ModuleLocalHome" cannot be found in the search path
    Bean Interfaces: The local interface "com.sap.aii.af.lib.mp.module.ModuleLocal" cannot be found in the search path
    Bean Interfaces: The remote interface "com.sap.aii.af.lib.mp.module.ModuleRemote" cannot be found in the search path
    Also I have included the below code in the class file
    @ejbHome <{com.sap.aii.af.lib.mp.module.ModuleHome}>
    @ejbLocal <{com.sap.aii.af.lib.mp.module.ModuleLocal}>
    @ejbLocalHome <{com.sap.aii.af.lib.mp.module.ModuleLocalHome}>
    @ejbRemote <{com.sap.aii.af.lib.mp.module.ModuleRemote}>
    @stateless
    Request to give suggestions to resolve the above problem.
    Thanks in advance.
    Ganesh

    This is what I was looking for: http://maveninjdeveloper.blogspot.com/2012/04/handle-adf-application-maven-ant.html
    It further references:
    - http://docs.oracle.com/cd/E24382_01/user.1112/e17455/deploying_apps.htm#BACIIDEJ
    - http://javaosdev.blogspot.in/2011/12/ojdeploy-documentation-for-tool.html
    The only issue now is that Oracle JDeveloper release 11.1.2.2.0 (version being used) does NOT seem to support Ant while release 11.1.2.1.0 does. This necessitates a further kluge to make things work. The amount of difference between versions of JDeveloper is quite amazing.

  • Getting error while creating trigger!!

    Hi Guys,
    I am getting the following error while creating trigger in Oracle10g Database in TOAD environment.
    Error: PLS-00306: wrong number or types of arguments in call to '='
    Table details:
    One of the column having BLOB Data type in the table.
    In the trigger, I have compared :old and :new values.
    CREATE OR REPLACE TRIGGER INPL.trigger_new
    AFTER INSERT OR UPDATE OR DELETE
    ON TABLE_NEW REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    DECLARE
    action_flag VARCHAR2(1);
    new_image BLOB;
    BEGIN
    IF UPDATING
    THEN
    action_flag := 'U';
    ELSIF DELETING
    THEN
    action_flag := 'D';
    ELSIF INSERTING
    THEN
    action_flag := 'I';
    END IF;
    IF (:NEW.image = :OLD.image)
    THEN
    new_image := '';
    ELSE
    new_image := :NEW.image;
    END IF;
    INSERT INTO TABLE_NEW(action_flag, date_changed,nimage,oimage) values(new_image,:old.image);
    end;
    Any one knows about this issue, please let me know with the proper solution.
    Thanks for your immediate response!
    Regards,
    Lakshman

    CREATE OR REPLACE TRIGGER INPL.trigger_new
    AFTER INSERT OR UPDATE OR DELETE
    ON TABLE_NEW REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    DECLARE
    action_flag VARCHAR2(1);
    new_image BLOB;
    BEGIN
    IF UPDATING
    THEN
    action_flag := 'U';
    ELSIF DELETING
    THEN
    action_flag := 'D';
    ELSIF INSERTING
    THEN
    action_flag := 'I';
    END IF;
    IF (:NEW.image = :OLD.image)
    THEN
    new_image := '';
    ELSE
    new_image := :NEW.image;
    END IF;
    INSERT INTO TABLE_AUD(action_flag, date_changed,nimage,oimage) values(new_image,:old.image);
    end;
    I am getting the error in line at If condition
    Error: PLS-00306: Wrong number or tpyes of arguments in call '='
    Please let me know if any one knows exact solution!
    Thanks in advance!
    Regards,
    Lakshman

Maybe you are looking for

  • How do i change the file preview image for mp4 files?  I replaced the image but it doesnt show in my dock, instead it shows the first still of a movie

    http://imageshack.us/photo/my-images/21/screenshot07m.jpg/ http://imageshack.us/photo/my-images/39/screenshot04s.jpg/ pls help. i change the file preview of a movie file, and it shows that i have changed the preview in finder but when i open the fold

  • Problems with new start button right-click context menu

    I have been unable to come up with a rhyme or reason to this problem. For some reason the Windows 8.1 start button will no longer respond to a right-click.  The context menu will not come up.  You can see that the active window is no longer active be

  • Blackberry Curve 8520 not working correctly

    My Blackberry Curve 8520 is not working correctly. It has worked on and off for about 2 days now. The first thing to stop was the media files - at first it said the SD card was inserted, but couldn't find any files. I've tried repairing the card. The

  • IPhone to monitor with sound

    I'm wanting to connect my iPhone to a computer monitor and watch TV on it, but I am wondering that when I use the VGA cable will sound come through the monitor or will it be coming the iPhone and if it is how do I get sound to come through monitor Th

  • Vertical text in CR 2008

    Hello, I need to display the text in the columns labels vertically. When I set text rotation to 90 degrees, the text is rotated in the designer, but when I run the report - it's horizontal. However, when I print or export the report, the text is vert