How we cam naintain different directory file in native SQL

Hi Friends.
Pls solve my problem.
I am writing code using native sql for getting data from different directories as
first i have only one directory file
execsql
SELECT * INTO :WA  FROM file.
endexec.
now the costumer has 3 different directory files.
he need a selection on which he can choose any directory.
if i used as
parameters  x type .   for selection screen
what type i should used and how i use that parameter in Select statement to pass data in WA.
i am waiting for ur reply.
regards

Hi,
You can place your code inside a loop...endloop.
Loop at itab into wa_tab.
exec sql.
SELECT * INTO :WA FROM :wa_tab-file.
endexec.
endloop.
Regards
Subramanian

Similar Messages

  • How can I combine different pdf files in one?

    How can I combine different pdf files in one?

    Sara,
    It is not working. I wish to decline in having the pdf pack. How can I give up this purchase? I definitely do not want the Adobe PDF Pack anymore.
    Who do I have to contact or what do I need to do to cancel this purchase?
    Flávia
    Enviado do Email do Windows
    De: Sara.Forsberg
    Enviado: terça-feira, 6 de maio de 2014 14:59
    Para: Eu
    How can I combine different pdf files in one?
    created by Sara.Forsberg in Adobe PDF Pack - View the full discussion 
    Hi Flávia,
    Adobe PDF Pack is an online subscription--it definitely allows you to combine several files into one PDF file. For more information about PDF Pack, see Reliably Create PDFs, Convert PDFs, & Merge PDFs Online | Adobe PDF Pack. If you don't have the full version of Acrobat, this is a great solution for combining PDF files.
    However, if you're using Acrobat (not Adobe Reader), you combine files by following these steps:
    Open a PDF file that you want to add pages to.
    Click the Pages pane on the Tools panel (on the right side of the application).
    Click Insert From File, and choose the file that you want to combine with the PDF that you opened in step 1.
    Make any changes necessary in the Insert Pages dialog box--these settings determine where the new file will be inserted.
    Click OK.
    Please let me know how it goes.
    Best,
    Sara
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6358990#6358990
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Adobe PDF Pack by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • How will i create physical directory in oracle pl/sql using java

    how will i create physical directory in oracle pl/sql using java

    This is, I suspect, related to Re: how will i overcome from this error java.io.IOException. Quite why you felt the need to have two partial threads instead of one thread with a complete set of information is beyond me. Perhaps this muddled thinking is indicative....
    Anyway, if I was looking to do this particular task in Java I would look to using the specific command File.mkdir() rather than trying to use a generic exec approach.
    Cheers, APC

  • How to enforce a different configuration file while invoking SAPShcut.exe

    I'm using sapshcut.exe to logon to SAP. Following is syntax of  command that Iu2019m using for that prupose:
    sapshcut.exe /sysname=IDES /client=800 /user=xxxx /pwd=yyyy
    By default, the configuration file (saplogon.ini) that is being used during this process by sapshcut.exe is located in user directory (SAP GUI 7.2). However, Iu2019d like to use a different configuration file that is located at other location (e.g., h:/test/saplogon.ini). SAP has mentioned to use additional parameter "INI_FILE" for that purposes so Iu2019m using following command:
    sapshcut.exe /sysname=IDES /client=800 /user=xxxx /pwd=yyyy /INI_FILE=h:/test/saplogon.ini
    No matter what value I defined for the u2018INI_FILEu2019 parameter, SAP ignores it and always uses default configuration file located in the user directory and if given SAP system does not exist in that configuration file then I report an error. Interestingly, I found that if use 'saplogon.exe' instead of 'sapshcut.exe' and provide same parameter value for 'INI_FILE' parameter then SAP overwrite the default configuration file and uses saplogon.ini defined there. But i cannot use saplogon.exe as I must have to use sapchcut.exe to directly log into SAP system for automation testing.
    I've also found out that the only way sapshcut.exe can overwrite the default ini file is through the use of environment variable "SAPLOGON_INI_FILE". But rather than using environment variable I'd like to define configuration file during the command line.
    Any help would be really appreciated.

    We stumbled upon the same problem. Thank you for mentioning that using the environment variable works.
    This leads to the following single command line as a workaround.
    First set the needed saplogon.ini and then execute in a nested command shell the call to sapshcut.exe
    cmd /c set SAPLOGON_INI_FILE=C:\config\saplogon.ini & cmd /c "%ProgramFiles%\SAP\FrontEnd\SAPgui\sapshcut.exe"  -user= -pw= -language=E -system=XXX -client=100
    This works, but only if there is not already an instance of saplogon.exe running with a different saplogon.ini.
    Best regards,
    Axel.

  • How to set two different welcome-file to different servlets in web.xml

    Hi friends,
    Can some one help with web.xml file
    I have to different servlets in applications.
    I want to set two different welcome files for my two different
    servlets in web.xml
    Please, can some one give me sample code to achieve this.
    Here web.xml code:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app PUBLIC
    "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>     
         <servlet>
              <servlet-name>reports</servlet-name>
              <servlet-class>com.caremark.ivr.servlet.IvrReportsServlet</servlet-class>
         </servlet>
         <servlet-mapping>
              <servlet-name>reports</servlet-name>
              <url-pattern>/reports</url-pattern>
         </servlet-mapping>
         <session-config>
              <session-timeout>30</session-timeout>
         </session-config>
         <welcome-file-list>
              <welcome-file>reportsindex.jsp</welcome-file>
         </welcome-file-list>
         <servlet>
              <servlet-name>calldetails</servlet-name>
              <servlet-class>com.caremark.ivr.servlet.IvrCallDetailsServlet</servlet-class>
         </servlet>
         <servlet-mapping>
              <servlet-name>calldetails</servlet-name>
              <url-pattern>/calldetails</url-pattern>
         </servlet-mapping>
    <welcome-file-list>
              <welcome-file>calldetailsindex.jsp</welcome-file>
         </welcome-file-list>
    </web-app>
    I need this fix immediately. Your help will be really appreciated. Thanks in advance.

    First of all, my understanding is that you need to have a Servlet 2.4 complaint server to do this...Given that, you're supposed to be able to simply specify the Name of the servlet as the welcome-file to get it to work. For example:
    Your servlet section:
    <servlet>
      <servlet-name>Controller</servlet-name>
      <servlet-class>com.company.ControllerServlet</servlet-class>
    </servlet>Now you would add the following to your welcome file list:
    <welcome-file-list>
      <welcome-file>Controller</welcome-file>
    </welcome-file-list>Note that you use the servlet-name value from the servlet definition, NOT the url-mapping from the servlet-mapping section.
    Please note that I cannot verify this as I am running a 2.3 server at home. When I get to work Friday I can test on a 2.4 machine. However this shouldn't take you more than a minute to test.
    Note that I did try this on the 2.3 compliant server and it did NOT work (as I expected)...
    HTH.

  • How can I move or delete files with PL-SQL???

    I have Oracle 9i and Sun Solaris 5.8
    I have a table (“TABLE_FILENAME”) with the files name in one directory. (I read the files name in a directory and put it in a table). I charge some files with external tables and then I have to move some fields to another directory and delete others files.
    How can I delete files with PL-SQL and How can I move files with PL-SQL?
    I have the names of files and the actions (Delete o Move) in a table (“TABLE_FILENAME”) (The files in this table are dynamics).

    If you're using 9i then you will find that the new functions UTL_FILE.FCOPY and UTL_FILE.FREMOVE will allow you to do what you want. Check out the documentation for more details.
    Cheers, APC

  • How can I load a .xlsx File into a SQL Server Table using a Foreach Loop Container in SSIS?

    I know I've REALLY struggled with this before. I just don't understand why this has to be soooooo difficult.
    I can very easily do a straight Data Pump of a .xlsX File into a SQL Server Table using a normal Excel Connection and a normal Excel Source...simply converting Unicode to DT_STR and then using an OLE DB Destination of the SQL Server Table.
    If I want to make the SSIS Package a little more flexible by allowing multiple .xlsX spreadsheets to be pumped in by using a Foreach Loop Container, the whole SSIS Package seems to go to hell in a hand basket. I simply do the following...
    Put the Data Flow Task within the Foreach Loop Container
    Add the Variable Mapping Variable User::FilePath that I defined as a Variable and a string within the FOreach Loop Container
    I change the Excel Connection and its Expression to be ExcelFilePath ==> @[User::FilePath]
    I then try and change the Excel Source and its Data Access Mode to Table Name or view name variable and provide the Variable Name User::FilePath
    And that's when I run into trouble...
    Exception from HRESULT: 0xC02020E8
    Error at Data Flow Task [Excel Source [56]]:SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occured. Error code: 0x80004005.
    Error at Data Flow Task [Excel Source [56]]: Opening a rowset for "...(the EXACT Path and .xlsx File Name)...". Check that the object exists in the database. (And I know it's there!!!)
    I don't understand by adding a Foreach Loop Container to try and make this as efficient as possible has caused such an error unless I'm overlooking something. I have even tried delaying my validations and that doesn't seem to help.
    I have looked hard in Google and even YouTube to try and find a solution for this but for the life of me I cannot seem to find anything on pumping a .xlsX file into SQL Server using a Foreach Loop Container.
    Can ANYONE please help me out here? I'm at the end of my rope trying to get this to work. I think the last time I was in this quandry, trying to pump a .xlsX File into a SQL Server Table using a Foreach Loop Container in SSIS, I actually wrote a C# Script
    to write the contents of the .xlsX File into a .csv File and then Actually used the .csv File to pump the data into a SQL Server Table.
    Thanks for your review and am hoping and praying for a reply and solution.

    Hi ITBobbyP,
    If I understand correctly, you want to load data from multiple sheets in an .xlsx file into a SQL Server table.
    If in this scenario, please refer to the following tips:
    The Foreach Loop container should be configured as shown below:
    Enumerator: Foreach ADO.NET Schema Rowset Enumerator
    Connection String: The OLE DB Connection String for the excel file.
    Schema: Tables.
    In the Variable Mapping, map the variable to Sheet_Name, and change the Index from 0 to 2.
    The connection string for Excel Connection Manager is the original one, we needn’t make any change.
    Change Table Name or View name to the variable Sheet_Name.
    If you want to load data from multiple sheets in multiple .xlsx files into a SQL Server table, please refer to following thread:
    http://stackoverflow.com/questions/7411741/how-to-loop-through-excel-files-and-load-them-into-a-database-using-ssis-package
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How can i download these jar files to load SQL server derive

    Hi
    pls tell me how can i download these jar files and from what site i can do that to enable to load SQL server driver
    msbase.jar
    msutil.jar
    mssqlserver.jar

    if u use sqlserver 2000 u can download for free from microsoft.com
    and other sites are freetds.com i guess

  • How to update two different tables by ony one sql query???

    Hi All,
    i need to update two different talbes in a single sql query..
    i m using the following query
    UPDATE FT_User_Alert SET Subscription = 'W' where product_key=1 and measure_key = 12
    AND
    UPDATE LU_Monthly_Alert_Budget_Sheet SET Min_Red_Range ='16.0' AND Max_Green_Range ='24.0'AND Max_Red_Range ='27.0'AND Min_Green_Range ='16.0' where product_key='1' and measure_key = 12
    i m getting the following error:
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43093] An error occurred while processing the EXECUTE PHYSICAL statement. [nQSError: 17001] Oracle Error code: 936, message: ORA-00936: missing expression at OCI call OCIStmtExecute: UPDATE FT_User_Alert SET Subscription = 'W' where product_key=1 and measure_key = 12 AND UPDATE LU_Monthly_Alert_Budget_Sheet SET Min_Red_Range ='16.0' AND Max_Green_Range ='24.0'AND Max_Red_Range ='27.0'AND Min_Green_Range ='16.0' where product_key='1' and measure_key = 12 . [nQSError: 17011] SQL statement execution failed. (HY000)
    SQL Issued: EXECUTE PHYSICAL CONNECTION POOL writeback UPDATE FT_User_Alert SET Subscription = 'W' where product_key=1 and measure_key = 12 AND UPDATE LU_Monthly_Alert_Budget_Sheet SET Min_Red_Range ='16.0' AND Max_Green_Range ='24.0'AND Max_Red_Range ='27.0'AND Min_Green_Range ='16.0' where product_key='1' and measure_key = 12
    but when i m ushin the same query in Microsoft SQL Server it executes properly:
    please help me out...

    There's no valid syntax for this, but there are some tricks you could do to achieve it.
    i) You could place an update trigger on TABLE1 to update TABLE2 automatically.
    ii) You could define a view across both tables and add an INSTEAD OF UPDATE trigger to it to maintain them.
    If I had to do this I'd choose option2, but frankly I'd just be running two updates if it really was me.

  • How do I create a binary file using PL/SQL

    Hi
    Can you help me with writing a binary file in PL/SQL? I like to load binary data from data file, process in database then write to a new binary file.
    Thank you very much in advance.
    regrds
    Yongdong

    DBMS_LOB won't help you write a BLOB to disk.
    You need to an external procedure to do that. Eric K's java works great and he's helped me with his solution and probably about a thousand others.
    Doing a search on this forum will yield many discussions on this often regurgitated topic.

  • How can I open different binary files from BLOB column ?

    If we store some type of binary file (XLS, DOC, PDF, EML and so on, not only pictures) in BLOB column how can I show the different contents? We use designer and forms 9i with PL/SQL.
    How can I copy the files from BLOB to file in a directory or how can I pass BLOB's content to the proper application directly to open it?

    The mime type is just a string as explained above (e.g. application/pdf...). There are lot of samples here and on metalink.
    E.g. add a column mime_type varchar(30) to your blob table. Create a procedure similar to the following:
    PROCEDURE getblob
    (P_FILE IN VARCHAR2
    IS
    vblob blob;
    vmime_type myblobs.mime_type%type;
    length number;
    begin
         select document, mime_type into vblob,vmime_type from myblobs where docname = p_file;
         length := dbms_lob.getlength(vblob);
         if length = 0 or vblob is null then
         htp.p('Document not available yet.');
         else
         owa_util.mime_header(vmime_type);
         htp.p('Content-Length: ' || dbms_lob.getlength(vblob));
         owa_util.http_header_close;
         wpg_docload.download_file(vblob);                
         end if;
    exception
         when others then
         htp.p(sqlerrm);
    END;
    Create a DAD on your application server (refer to documentation on how to create a DAD).
    Display the blob from forms (e.g. on a when-button-pressed trigger):
    web.show_document('http://myserver:port/DAD/getblob?p_file=myfilename','_blank');
    For storing blobs in a directory on your db server take a look at the dbms_lob package.
    For storing blobs in a directory on your app server take a look at WebUtil available on OTN.
    HTH
    Gerald Krieger

  • How to import 12 different PPro files into one Encore file to make DVD

    I'm trying to create a DVD with 12 different lessons on it.  I have created 12 Premiere Pro CS4 files (each is a slideshow lessons with narration) and I want to bring them all into one Encore file.  I can send one file to Encore via Dynamic Link - but when I open another PPro file and try to send it to the same Encore folder - it erases the file I put in there previously.  Maybe I'm going about this all wrong - I really don't know.  Please Help.

    Hi Stan,
    Thanks for the reply.
    Since I wanted to get the DVD finished asap - I jumped right into PPro CS4 without going through a learning process first.
    When I said "file" I meant one of the 12 or 13 different PPro projects that I saved to my Desktop...each lesson is different - so I made and saved each lesson separately and placed each of them in a different folder.  Each lesson only has one "sequence" (and I'm not sure what "sequence" means yet).
    These are basically PowerPoint lessons with narration - each lesson containing anywhere from 25-75 pictures or text slides.
    When I opened up one of the lessons in PPro and sent it via DL to Encore - that was fine.  It created an Encore file.  When I opened up the next PPro file and tried to DL to that same Encore file - it appeared to delete or do away with the first file I had sent there.  I could DL each of the 12 or 13 files - but only to its own Encore file.  I couldn't figure out how to get them all into the same Encore file.  But thanks to all the help on this forum - there are now 13 little videos that I can import into the same Encore file.  And that's amazing.
    Thanks for the encouraging words that this project might all fit on the same DVD (I was worred because the files add up to 107 minutes - and I the DVD holds 120 minutes (I think).  I was assuming that after I created a menu and added a picture for the background in the title page, etc., that it would all add up to too much information for one DVD).
    I'll let you know how the DVD turns out.
    Thank you very much.
    ph

  • How to do Local (Client) Directory/File changes?

    Ok, here's one I could not find on the net nor these forums..
    How can I have a CFM page that will list all files in a
    client's directory ... basically, I am looking for a directory
    watcher/listener for a client's directory using cold fusion ..
    Any hints?

    ShannaraAlaska wrote:
    > Any hints?
    Recognize the difference between a server and a client in a
    server/client system and then one does not ask questions like
    "how can
    my server sneak in and spy on the clients system against all
    security
    models designed to protect them from this violation."
    Short answer: NO -- you can not do this. [And this is a good
    thing.]
    A little longer answer. If you are on a well defined network
    and the
    server and the client machines are on the same domain and you
    want to
    define a domain user that has permissions to read the desired
    directories across the network. You could configure CF to run
    as this
    user and use UNC paths to access the client machine.
    Otherwise, no there is no way for ColdFusion, or any server
    application,
    to read or watch a clients directory. Just imagine the havoc
    if every
    website you visited could start snooping around well known
    directories
    on your computer.

  • How to specify a different config file for a weblogic 6.1 server

    Hi,
    I have 2 weblogic startup scripts (startWebLogic.sh and
    startWebLogic_recovery.sh) for the same domain.
    startWebLogic.sh uses config.xml file.
    I would like to use config_recovery.xml as the configuration file for startWebLogic_recovery.sh
    How would I do this ?
    I am using WebLogic Server 6.1 on SunOS 5.8 / HP-UX 11.0.
    Appreciate any help.
    Regards
    Gunaseelan Venkateswaran

    Hello Gunaseelan,
    This is not possible because WLS 6.1 needs a config.xml file, exactly this
    name, to start.
    What you can do is to define a recovery domain, called myrecovery_domain for
    instance, and put the config_recovery.xml, renamed "config.xml".
    Hope this helps,
    Ludovic.
    Developer Relations Engineer
    BEA Support.
    "Gunaseelan Venkateswaran" <[email protected]> a écrit dans le message
    news: 3cd6a324$[email protected]..
    >
    Hi,
    I have 2 weblogic startup scripts (startWebLogic.sh and
    startWebLogic_recovery.sh) for the same domain.
    startWebLogic.sh uses config.xml file.
    I would like to use config_recovery.xml as the configuration file forstartWebLogic_recovery.sh
    >
    >
    How would I do this ?
    I am using WebLogic Server 6.1 on SunOS 5.8 / HP-UX 11.0.
    Appreciate any help.
    Regards
    Gunaseelan Venkateswaran

  • How to specify a different directory for the Run-Time Engine?

    With LV 7.1 it's become even more difficult to create installation sets in third-party tools without having to include the full run-time engine separately.
    If you use any of the advanced analysis VIs you have to install the run-time engine (no use in including files in the same directory as the built application) and if you do and you use the old serial VIs you get a problem because the application will load the run-time from the main run-time installation and then look for serpdrv in that directory, not in the application folder...
    So - being forced to use the installer builder in the application builder and include the run-time engine in the installation kit I wonder whether it is possible to specify where the run-time should be installed?
    By default it will go in a directory called National Instruments in the program files folder, however that is not ideal due to the fact that the users have no relation to the fact that our application needs something from NI...and may end up deleting the directory ("National Instruments? - what do I need that for...let me delete it...). We would like to be able to specify that the run-time is installed silently in a directory named with our company name instead.
    MTO

    When you create the stand alone, in options you can actually set the temp directory and default directory. You can change it there OR in goto options and check for libraries/directories. You can change it there too.
    Kudos always welcome for helpful posts

Maybe you are looking for

  • My HP Pavilion Notebook can support a solid-state drive (SSD) (also known as a solid-state disk)

    Hi, Product Name dv6-6093ex Product Number LM610EA I don't know if my HP laptop can  support a solid-state drive (SSD) (also known as a solid-state disk or not.

  • Japanese, Question Marks, Locales, Eclipse, and Windows XP ????

    Hello. I am having some issues localizing JSP to Japanese. I have read a lot of stuff on the topic. I have my .properties file in unicode with native2ascii, etc. When I debug under Eclipse 3.0, I see the Japanese characters correctly displayed in my

  • Oracle DB Connect and Dates

    Hello From what I have read, reading dates from a table connected via dbconnect is not easy. OSS recommends that you create a view in the source system with a character mask on the date fields as Oracle stores dates in a unique way. In my situation I

  • Updating the DOM with a JSTL import?

    I want to update the content of my page dynamically and I understand how to use javascript and the DOM to access and and change the content that way. My question is can I change the DOM by using a JSTL import statement to specify the content? somethi

  • SAP-Router : timeout while pending for route completion

    Hi Experts, I have configured sap-router . Through router I am able to maintain connection for my sap systems on service.sap.com But when I try to connect through 0SS1 or trying to connect through sm59 it is giving error ERROR: timeout while pending