Help needed to write download file program

I want to write a servlet which will allow clients to download files from server. Main work is, a fixed no.of downloads(only n users can have download permission) will be allowed at any time. if any more no.of new users came they have to wait for a download connection. if a connection is freed then that connection will be given to a user who had entered first. (First In First Out). Can it possible. Plz help me. Thanks in advance.

It's easy:
In PAI you have do an insert into a database table, following the steps:
1.on PAI  create a module: for exemple Zwrite_table.
2. inside Zwrite_table code as follow:
move var1 to wa_table-var1.
move var2 to wa_table-var2.
move var3 to wa_table-var3. etc etc
insert table ztable from wa_table.
P.s. ztable is a database table.
wa_table is a structure that have the same structure of ztable.
var1 var2 var3 etc is a variable inside your dynpro.
regards,
Roberto.

Similar Messages

  • Help needed to write control file.

    Hi Guys,
    i need to write one control file to upload data from .txt file to oracle table.
    .txt file data contains like this
    2006041110:40:22
    2006041111:30:42
    2006041210:40:22
    i need to upload this data into date column in oracle table.
    please help me to write control file for this requirement.
    Thanks for your help and time

        data1        "to_date(:data1, 'YYYYMMDDHH24:MI:SS')"

  • Help needed to write a dialog program

    Hello ABAP Gurus,
    I am very much new to ABAP Programming.
    Can anybody help me to write a simple Dialog Program ??
    I have a database table.
    I have created a screen with screen painter, and kept some input fields & a push button in it.
    I want to fill the database table with the data entered into the fields on the screen.
    When the user enters the data and  presses  the PUSH BUTTON then that data record should be stored into the Database table.
    So what kinda code I have to write in PAI (Process After Input),  to achieve this functionality ??
    The help will be greatly appreciated.
    Thanks in advance
    Best regards
    Ravi
    Edited by: Ravi Kiran on Oct 28, 2009 2:17 PM

    It's easy:
    In PAI you have do an insert into a database table, following the steps:
    1.on PAI  create a module: for exemple Zwrite_table.
    2. inside Zwrite_table code as follow:
    move var1 to wa_table-var1.
    move var2 to wa_table-var2.
    move var3 to wa_table-var3. etc etc
    insert table ztable from wa_table.
    P.s. ztable is a database table.
    wa_table is a structure that have the same structure of ztable.
    var1 var2 var3 etc is a variable inside your dynpro.
    regards,
    Roberto.

  • Help needed in Finding Download location for Sun One Portal 7

    Hi,
    help needed for finding download location for Sun ONE Portal 7. I tried to find in Oracle Download page ,
    http://www.oracle.com/us/sun/sun-products-map-075562.html, But unable to find.
    Please share the link for download location.
    I am totally new in Sun ONE Portal.
    Thanks,
    Edited by: 945439 on Oct 5, 2012 3:41 AM

    try edelivery.oracle.com under sun products.

  • Help needed in creating pdf file

    Hi all,
    I keep coming back to this question again. I chose iText over jasper reports to generate PDF files for some good reasons. in my application I
    1. accept file uploaded by the user
    2. process the data inside files and separate them into good data & bad data
    3. put these good and bad data in a vector
    4. pass it to a bean to write PDF files
    5. files are stored in a application ROOT path under different folders based each data input (ex: each employer folder)
    6. I delete these files from the application path
    I go back to the data submit screen and start submitting for another employer. While processing for the next employer the system process data correctly and writes the PDF files into the appropriate folder, but t when the browser link that has the PDF get clicked, instead of current PDF, we still get the previous employer documents.
    what to do?
    please please somebody help me
    hepzi

    hey folks
    I have found out that every time the PDF file is downloaded, in the firefox download manager, that opens up to show the status of the downloaded PDF, when I click on the "Remove" button once I open the much needed PDF, the PDF is not carried onto the next upload for some reason... but I still need to investigate in Netscape and see how it works..
    thanks guys
    I will come back to update you once I test it in netscape navigator
    hepzi

  • I need to re download a program

    I purchase Photoshop Elements 10 & Premier Elements 10 in Feb, 2012.
    According to policy, I can re download the programs, which I need to do for a new computer, but cannot find where to do this.
    In "My Account', I have the SNs of all my products, but DLs are not available there.
    Product support has failed to help me and sent me to forums.
    Where?
    Cliff

    Cliff
    Did Adobe Chat indicate why you were not finding your opportunity to do another download for your purchased Premiere Elements 10?
    They should be available under My Orders over at http://www.adobe.com. Have you been to the My Order section there and not found the download opportunity?
    Whatever the case, there is another way to resolve the matter. Go to the following web site and download the Premiere Elements 10 tryout and then insert your purchased serial number in it to make it your working copy. The key to success in this approach is reading very carefully the "Note: Very Important Instructions" details in order to avoid getting Access Denied message.
    http://prodesigntools.com/photoshop-elements-10-direct-download-links-pse-premiere-pre.htm l
    Please let us know if any of the above worked for you.
    Thank you.
    ATR

  • Help needed on properties of files attached to the transaction-crmd_order

    Hi Experts,
    My requirement is to hide the file attached to the transaction(crmd_order).
    For this, I got the information about the file from cl_crm_documents=> get_info method and the FLAG VARIABLE used for hiding th file is KW_SYSTEM_FLAGS.
    But if I try to set this flag by passing this as a import paramter(as properties) to cl_crm_documents=> change_properties method, I am getting 'SKWF_IO E003KW_SYSTEM_FLAGS' error.I am getting this error in cl_skwf_io_util=>check_properties_authority method. It says that the hidden property is a restricted one and we are not supposed to change it.
    But I am in need of changing this. Can anyone help me out in this?
    Regards
    Athikrish.

    Al_Barrs wrote:
    THR AUG th?I have some picture, graphic and text files that have in some way been saved in the Creative Player2 format on my computer. I need to associate these files with another program so that I can reoer the images and text. Can anyone tell me what program I can use to associate these Creative Player2 files to revover them, or if there is some other way to open them... Desperate for help!!! Thanks in advance. Al [email][email protected]][email protected][/url]?
    What player are you referring to? Is it Creative PlayCenter 2? Playcenter doesn't save any special extension to the files. It uses all the standard extension. eg. jpg,txt.... Not sure what you are trying to say.

  • Please help me Remove this bad file program DefaultTab

    please help me to delete this bad file/program DefaultTab.
    i tried to delete it on program files but it keep saying i dont have permision, 
    I try to search it on regedit but i can find it there,
    im using HP Pavilion p6140d Desktop PC, windos vista 32bit, 
    please help me to fix this problem

    Hi,
    As this is a permissions issue, try the following.
    This is a useful utility that will add 'Take Ownership' to the right click context menu.  The download is on the following link.
    Take Ownership
    This is a zipped file.  If you don't have an extraction utility installed, download and install 7-Zip which can be used to open this so that you can run the installer.
    Once you've installed 7-Zip, just right click the zipped 'Take Ownership' folder, select 7-Zip and select Extract Files and click Ok.  When done, open the newly extracted folder and you will find the utility to add 'Take Ownership' to the right click menu.  Just double click it to install and then close the Window. 
    Now go into your Program files, right click on DefaultTab and select Take Ownership.  Now right click it again and see if you can now delete it.
    Let me know.
    Best regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • Help needed in writting Customer exit - ABAP Code

    Hi Friends,
    I have a scenario in one of the query and need to write a customer exit for the same. Here is the scenario:
    I am using one input variable XXX to get input from user which feeds value to one of the charateristic  lets say "CHAR1" in query. I have one more characteristic "CHAR2" which has to get the value from the same variable XXX. This is not allowed in BI7.0 as the variable is Hierarchy Node type. It gives error that "Variable XXX is used for two different characteristics."
    So i need to create one more vaiable YYY which will get the value from XXX and then YYY will feed value to CHAR2.  I would appreciate if some one could tell me step by step how to write customer exit and give me the piece of ABAP code i need to write in my case.
    Your help will be appreciated in terms of points.
    Thanks,
    manmit

    Hi Arun,
    1. What should CHAR2 take - Hierarchy node variable or something else ?
    --> CHAR2 is a simple charateristic
    2. In your scenario - why have CHAR1 and CHAR2 ? why not have the user enter values against CHAR2 ??
    --> We dont want user to enter two input as the input values for both Chars are same.
    3. Did you try using a replacement path variable with the CHAR2 variable taking values from Variable on CHAR1 ?
    --> In BI7.0 replacement path variable only take values from Query results. So not able to do the same.
    Thanks

  • Help...Problems downloading files

    Hi, my problem is when I try and download Limewire the download window opens and it will download 8k of the install file that is a few Mbs and then it will say "cannot download file". I also tired to download a mp3 file from a website and I had the same thing happen aswell. Does anyone have an idea of what I might be doing wrong. Thanks
    12 iBook G4 1.33 GHz,   Mac OS X (10.4.3)  

    Hi Slick,
    Welcome to Apple Discussions
    Well here is what I am thinking you did wrong. By any chance was that an MP3 file from a popular music artist? Well if it is, there is your problem. It has a very clear name to that problem, its called stealing. Buy off iTunes, the quality is so much better. Anyways I wouldn't use any programs like Limewire if you paid me. I have constantly heard complaints from people whose computers are messed up/slow ever since they started. It is no good.
    Jon

  • Help needed on Transforming input File to EDI Format

    I have an input flat file in one location. Using BizTalk, i need to pick that file from that Recieve location, transform it to EDI format and send it to Destination location.
    Now, when I place input file in the "Recieve location", it is being processed and it is erased from recieve location. But I am not able to see the output in the Destination location.
    And when i query it in BizTalk Administration console, the state is "Completed" without any errors.
     Any guidance/suggestions are appreciated. Thanks in advance.

    Hi all, I have just collated everything and have put it in my words below..Please
    let me know your valuable inputs as I am struck in this point from more than a week.
    I need to fetch an input flat file (.txt format) from the "Receive location" and I am supposed to transform that to an EDI message X12 format and send it to Destination folder.
    I have set up the receive port and send port configurations in the Admin Console, have created the Trading Partners, agreement and other settings.
    The problem I am facing : Now, when I place input file in the "Receive location", it is being processed and I am able to pick up the file from the input folder
    but I am not able to figure out why the file is not being processed and sent to the destination folder.. (If I query for All In Progress instances, suspended instances or Running instances : I am not getting any results and the below grid is always empty).
    And when i query it in Biz-talk Administration console for Tracked instances, the Receive pipeline component's state is "Completed" without any errors.
    And I am not using any Orchestration in between..
    Thank you all in advance....

  • I need the right download file for CS4 Design standard.

    i can not install cs4 from the cd's i bought a few years ago and i can not find the right download file so i can go use again

    yes i do think so the cs4 design standard
    ADBESTPPCS4_LS1.dmg
    STPPCS4_Cont_LS1-2
    once i start the set up it lounges and asks for my serial number which i have on the back of the dvd box i got
    and then i get this .... and it is the right serial number
    Invalid Serial Number
    The serial number you entered is not valid. Click OK to retry entering the serial number.

  • HT204320 Help needed organsing my photo files in the new Photos program

    The new Photos application has reorganised all my picture files and displays them according to the EXIF data. As many of them were scanned from vintage sources a photograph taken in 1900 now turns up in the wrong place. In iPhoto I had the pictures sorted by file name so they were chronological. Can Photos sort my pictures according to the file name?
    I have also found that organising the pictures in Photos on my Macbook Pro does not mean they will retain that organisation when displayed on my iPad Mini 3 and iPhone6+. I have wasted so much time on this.
    I have already tried using 'EXIF Editor' and 'Photo Meta Edit' (both recommended by the Apple App Store) to change the EXIF data. After paying for these apps and spending many hours editing numerous picture files they have now spontaneously reset themselves to 1st January 1970. Aaaaaaargh. Two pictures of my great grandparents (taken in about 1900) now have a generated 'created on' dates for themselves of Monday 7th July, 2036.
    I need Photos to allow me to organise my pictures according to the file name. HELP!!!
    Geoff

    Moments in Photo are the new Events, i.e. groupings of photos sorted by date taken.
    When the iPhoto Library was first migrated to Photos there was a folder created in the sidebar titled iPhoto Events and all migrated iPhoto Events (which are now Moments) are represented by an album in that folder. To open the sidebar if it's not already open use the Option+Command+S key combination.
    There's a way to simulate events in Photos.
    When new photos are imported into the Photos library go to the Last Import smart album, select all the photos and use the File ➙ New Album menu option or use the key combination Command+N.  Name it as desired.  It will appear just above the iPhoto Events folder where you can drag it into the iPhoto Events folder
    When you click on the iPhoto Events folder you'll get a simulated iPhoto Events window.
    The downside to the simulation is that the Album/Events can only be sorted automatically by Title. But they can also be sorted manually, either in the sidebar or in the folder's window at the right.
    Ask Apple for more sorting options in Photos via https://www.apple.com/feedback/photos.html.

  • Help needed in Idoc To File Scenario

    Hi Experts,
    My scenario is Idoc to File.
    Here my job is to convert the purchase order idoc into xml file.
    In this there are three conditions.
                       converting the standard PO into xml file
    (ii)                 converting the PO with serial number  into xml file
    (iii)                converting the PO using serial number with subcontracting into xml file
    so what I feel is I need to create one scenario and based on the condition that particular PO will convert into xml file.
    Conditions:
                       if no condition is specified then it is standard PO first case
    (ii)                 if field tdline ne space then it is PO with serial number second case
    (iii)                if field pstyp eq 3 then it is PO using serial number with    subcontracting third case.
    Please guide how to do this scenario.
    IR:
    1)       how many data types I need to create
    2)       how many message types I need to create
    3)       how many message interfaces I need to create
    4)       how many message mappings I need to create
    5)       how many message interfaces I need to create
    ID:
    1)       how many receiver determinations I need to create
    2)       how many interface determinations I need create
    3)       how many receiver agreements I need to create
    And where to write the conditions at message mapping level or at receiver determination level.
    Kindly provide solution to every point.
    Regards,
    Venkat.

    1) if no condition is specified then it is standard PO first case
    2) if field tdline ne space then it is PO with serial number second case
    3) if field pstyp eq 3 then it is PO using serial number with subcontracting third case.
    you have to create
    1. outbound ( IDOC)
    2. 3 Inbound (same MT)
    create 3 mapping program each for 1 condition
    create 3 interface mappings
    ID:
    1 reveri BS.
    3 Interface determinations, so 3 receiver agrement.......
    you can put the condition on the mapping or in the condition tab of the interface determinations.

  • Please help me to write a file from applet to server with a servlet.

    In an applet the client elaborates a string and stores it in the variable of the name "line"
    I would Like to write the string "line" in the file myfile.txt on the server.
    I am in an applet trying to make the URLconnection to a servlet.
    The part of the applet which calls the servlet is the following:
    private void writeToSer(String line)
    try
    URL u = new URL("http://192.168.1.103:8180/servlet/ScriviFileServletFor1?stringa="+line);
    HttpURLConnection urlConn = (HttpURLConnection)u.openConnection();
    catch(IOException ioe)
    JOptionPane.showMessageDialog(null,"IO Exception ","attenzione",JOptionPane.ERROR_MESSAGE );
    the code of the servlet is the following:
    import java.io.*;
    import java.io.File;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class ScriviFileServletFor1 extends HttpServlet {
    public void doGet (HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    //read the parameters
    String string = request.getParameter("stringa");
    try {
    File file = new File("/home/icurrado/myfile.txt");
    FileWriter out = new FileWriter(file);
    out.write(string);
    out.close();
    catch (Exception e) {
    e.printStackTrace();
    When I call the servlet from the bar of the URL with :
    http://localhost:8180/servlet/ScriviFileServletFor1?stringa=prova
    It works and writes the string "prova" in the file "/home/icurrado/myfile.txt".
    When I call the servlet from the applet it doesn't work and it doesn't write the string in the file.
    What is wrong or is missing ?
    Please help me.

    You dont need to go through the URL mechanism.
    From an Applet you can directly save the file on the server at destinated location.
    You can look for "Uploader Applet" in google.

Maybe you are looking for

  • Problem with Date of files and email

    Hi, I have a MacBook with MacOSx snow Leopard 10.6.3. I have a problem with the date showed for the files inside Finder and for my emails on Apple Mail. All files show a date with correct day and correct hour but with wrong month; all files have as m

  • Windows Vista does not see my Ipad but it always did prior to this attempt

    Windows Vista does not see my Ipad, this is a new problem and I have not made any major changes to either my computer or to my Ipad.  I am running Vista 64 as an operating system.  I get the message that windows has an unrecognized USB device.  I che

  • Please Help! TV shows show up in my library, but not on iPod

    I downloaded 3 TV shows which I watched on my iPod. They were in the "recently added" folder, but I couldn't find them elsewhere. Now, after importing some music, it shows in my iTunes library but it's nowhere on my iPod. I have tried checking and un

  • Error handling in B1if

    Dear All, I searched the forum but could not find a full answer to my question. How can you handle errors in B1if? When something goes wrong the errormessage is displayed in the failure section of the message log. I found out that on the package desi

  • Check deposit print from FF68

    Hello, the scenario is that i want to print the check deposit form from FF68 according to a different fornat(which is very diff from the standard one).. I checked in the customizing and it gave me the option of defining my own form. But for printing