Get HTML spool and save it as html on a server directory (in batch)

Hi all,
I wrote a program which permits to get a spool an send it per mail as attachment or save it as file in a directory.
It musst be available to start the program in batch mode.
I've no problem to get the spool (type HTML) and send it via mail with the HTML file as attachment.
But by getting the spool and saving it in a directory insteed sending it via mail, I've a corrupted file. Does anybody know how to solve the problem ?
I did following :
get the spool :
CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
     EXPORTING
       rqident              = iv_spool
     IMPORTING
       real_type            = lv_real_type
     TABLES
       buffer               = lt_soli
* convert the file :
  lt_solix = cl_bcs_convert=>soli_to_solix( lt_soli ).
*Transfert the file:
    OPEN DATASET lv_dataset FOR OUTPUT IN LEGACY BINARY MODE.
   LOOP AT lt_solix INTO ls_solix.
     TRANSFER ls_solix TO lv_dataset.
   ENDLOOP.
   CLOSE DATASET lv_dataset.
Some other informations :
- I do not want a spool in text mode (RAW). I want to get the HTML file.
- I allready tried to do an open dataset in text mode -> didn't work.
thank in advance for any advice.
Fred

i'm sorry, i'm pretty dumb and missed the change into solix table.
try give a look here
Spool to HTML Function Module
ABAP Utility : Print-Screen to HTML

Similar Messages

  • Read HTML tags and Save Images in web page

    I had problem with reading HTML tags and save all images in that page. I can source code in web page but I dont know how to Identifly the image tag ( IMG tag ). I think i want to use string tokenizer class.
    But i dont know how to use it in my problem. If any one know how to do it. reply this.

    cnapagoda wrote:
    I had problem with reading HTML tags and save all images in that page. I can source code in web page but I dont know how to Identifly the image tag ( IMG tag ). I think i want to use string tokenizer class.
    But i dont know how to use it in my problem. If any one know how to do it. reply this.If you have a big, long string with HTML content in it you might try splitting on a regex like so:
    String html = ...
    String[] imgTags = html.split("<img.*?>");[http://java.sun.com/javase/6/docs/api/java/lang/String.html#split(java.lang.String)|http://java.sun.com/javase/6/docs/api/java/lang/String.html#split(java.lang.String)]
    to get your image tag data and then parsing that to get the src attribute. You can either treat this problem as a big string-parsing problem, or getting some HTML DOM library and using that to structure the page as a tree for easier access.
    If you want more help you'll have to show the code you have so far. We can't write this for you.

  • How can I get the "Open" and "Save As" dialog boxes to open at larger than their default size?

    How can I get the "Open" and "Save As" dialog boxes to open at larger than their default size?  I would like them to open at the size they were previously resized like they used to in previous operating systems.  They currently open at a very small size and the first colum is only a few letters wide necessitating a resize practically every time one wants to use it.  Any help would be appreciated.

    hi Prasanth,
    select werks matnr from ZVSCHDRUN into table it_plant.
    sort it_plant by matnr werks.
    select
            vbeln
            posnr
            matnr
            werks
            erdat
            kbmeng
            vrkme
            from vbap
            into table it_vbap
            for all entries in it_plant
            where matnr = it_plant-matnr and
                  werks = it_plant-werks.
    and again i have to write one more select query for vbup.
    am i right?

  • Get html code and save it to disk

    Hi! I have a question... Does anyone know, how can I save the html source code of a web page through java code? I want to do the following thing:
    1. give the url an get the html page
    2. save the html page source code
    -both functions should be in one class..
    Thanks a lot

    private void httpResponse2File(java.net.URL url, java.io.File file) throws Exception{
    java.net.HttpURLConnection newConn = new sun.net.www.protocol.http.HttpURLConnection(url, null, 0);
    newConn.setRequestMethod("GET");
    newConn.connect();
    int responseCode = newConn.getResponseCode();
    if(responseCode == 200) {
    java.io.FileOutputStream out = new java.io.FileOutputStream(file);
    java.io.BufferedReader in = new java.io.BufferedReader(new java.io.InputStreamReader(newConn.getInputStream()));
    int contentLength = newConn.getContentLength();
    String nextLine = null;
    while((nextLine = in.readLine()) != null)
    out.write((nextLine+"\r\n").getBytes());
    in.close();
    newConn.disconnect();
    out.close();
    }

  • How do I get to download and save files again?

    When I try to download or save a file, a file with any format, nothing happens. Only way of getting the file saved is to open it in its designated programme and save it from there. Certain file types can not be saved since they have no programme to open in (like .ies file, for example).
    Changing the file behaviours will not help, it still behaves the same way, i.e. it won´t let me save straight from the browser.

    You really need to provide more information if you expect anybody to help you.

  • How to search files, get cells, loop, and save

    Howdy Folks, I'm another Applescript newbie in over my head. I'm working on a script to copy xl files into a master xl file. the files is a roster with student and class information. the number of students will vary. WIth help from a friend I have it about 80% where I want it. Need help with the rest. I hope its okay to ask multiple question about the script if not i do apoligize.
    when the script runs it asks for the location of the file. the files are titled Houston_Sam_DWI_Jan.xlsx. I have several files in a master folder that i am trying to get data from, but the script goes through one at a time.
    I know i need to loop it somehow to go through all of the files containing "DWI" in the title, I just don't know how to do it.
    the script is set up to get a range of cells, but there are other individual cells i need to copy like dates(C7), Instructor(H7), and location(C11). How do i get these individual cells and paste them to the master doc: Location(E7), Dates (F7), Instructor(G7) and have them repeat down the column as the number of students from each of the classes populates the list.
    finally, i have the master file name as annual report, the script does update the anual report file, but when it goes to save it creates a file named "sheet 1". i just want it to update the annual report file and save all changes.
    here is the script i am currently working with:
    set master_path to alias "Users:bs:Desktop:master:Annual Report.xlsx"
    get_all_files(master_path)
    on get_all_files(master_path)
              set example_path to choose file with prompt "Find an example file to work with"
    transfer_data(example_path, master_path)
    end get_all_files
    on transfer_data(child_path, master_path)
              tell application "Microsoft Excel"
                        set child_book to (open workbook workbook file name (child_path as string))
                        set child_doc to worksheet 1 of child_book
                        set master to worksheet 1 of (open workbook workbook file name (master_path as string))
                        set num to 15 --All lists start at index 12 or later, I'm putting 10 to be safe
                        set students to {}
                        tell child_doc --grab values from child document
                                  repeat until (value of cell (("A" & num) as string)) is 1
                                            set num to num + 1
                                  end repeat
                                  repeat until (value of cell (("B" & num) as string)) is ""
                                            set end of students to {name:(value of cell (("B" & num) as string)), driver_id:(value of cell (("C" & num) as string)), DOB:(value of cell (("D" & num) as string)), pre_test:(value of cell (("J" & num) as string)), post_test:(value of cell (("K" & num) as string)), cert_id:(value of cell (("L" & num) as string))}
                                            set num to num + 1
                                  end repeat
                        end tell
                        tell master
                                  set num to 7
                                  log (value of cell (("B" & num) as string))
                                  repeat until (value of cell (("B" & num) as string)) is ""
                                            set num to num + 1
                                  end repeat
                                  repeat with student in students
                                            set value of cell (("B" & num) as string) to name of student
                                            set value of cell (("C" & num) as string) to driver_id of student
                                            set value of cell (("D" & num) as string) to DOB of student
                                            set value of cell (("H" & num) as string) to pre_test of student
                                            set value of cell (("I" & num) as string) to post_test of student
                                            set value of cell (("J" & num) as string) to cert_id of student
                                            set num to num + 1
                                  end repeat
      save master
                        end tell
      save child_book
      close child_book
      save active workbook in master_path
      close active workbook
              end tell
    end transfer_data
    Any help would be greatly appreciated.

    That did it. had to tinker with it but it's doing what i want. Thanks for all of the help. here is the final code
    tell application "Finder"
              set master_path to alias "Users:bs:Desktop:master:Annual Report.xlsx"
              set filesWithDWI to get every file of folder ((path to desktop folder) & "master" as string) whose name contains "DWI"
              repeat with f in filesWithDWI
                        my transfer_data(f, master_path)
              end repeat
    end tell
    on processfile(f)
    display dialog f as string
    end processfile
    on transfer_data(child_path, master_path)
              tell application "Microsoft Excel"
                        set child_book to (open workbook workbook file name (child_path as string))
                        set child_doc to worksheet 1 of child_book
                        set master to worksheet "sheet 1" of (open workbook workbook file name (master_path as string))
                        set num to 15 --All lists start at index 12 or later, I'm putting 10 to be safe
                        set students to {}
                        tell child_doc --grab values from child document
                                  repeat until (value of cell (("A" & num) as string)) is 1
                                            set num to num + 1
                                  end repeat
                                  repeat until (value of cell (("B" & num) as string)) is ""
                                            set end of students to {namevalue of cell (("B" & num) as string)), driver_idvalue of cell (("C" & num) as string)), DOBvalue of cell (("D" & num) as string)), pre_testvalue of cell (("J" & num) as string)), post_testvalue of cell (("K" & num) as string)), cert_idvalue of cell (("L" & num) as string))}
                                            set num to num + 1
                                  end repeat
                                  set startdate to range "C7"
                                  set classlocation to range "C11"
                                  set instructor to range "H7"
                        end tell
                        tell master
                                  set num to 7
                                  log (value of cell (("B" & num) as string))
                                  repeat until (value of cell (("B" & num) as string)) is ""
                                            set num to num + 1
                                  end repeat
                                  repeat with student in students
                                            set value of cell (("B" & num) as string) to name of student
                                            set value of cell (("C" & num) as string) to driver_id of student
                                            set value of cell (("D" & num) as string) to DOB of student
                                            set value of cell (("H" & num) as string) to pre_test of student
                                            set value of cell (("I" & num) as string) to post_test of student
                                            set value of cell (("J" & num) as string) to cert_id of student
                                            set value of cell (("f" & num) as string) to startdate
                                            set value of cell (("E" & num) as string) to classlocation
                                            set value of cell (("G" & num) as string) to instructor
                                            set num to num + 1
                                  end repeat
                        end tell
      save child_book
      close child_book
      save active workbook in master_path
      close active workbook
              end tell
    end transfer_data

  • CS5 slow to get the 'open' and 'save' dialog box over networked computer.

    I have been having this problem since the suite was installed, but recently has gotten much slower. Any time I click open or save it takes 8-10 seconds just for the dialog box to come up.  CS1 was lightening fast - I know that was ages ago, but I can't help compare the two.  I have the same problem with InDesign and Illustrator. The suite is running on a Windows 7 machine through a home network, accessing files from an XP machine as well as a Buffalo Linkstation.  Once the dialog box comes up, and I double click, the file is pretty quick to appear.  I have researched online and I believe the problem to be somewhere in the network or the settings.  The network is quick, Windows Explorer has no delay in opening or finding files, nor do other programs outside of Creative Suite. I did an experiment to narrow down the problem - I closed Photoshop, unplugged the network cable, and reopened the program.  AMAZING - it was SO FAST to open the dialog box for both opening and saving files!  I then closed Photoshop again, plugged the network cable back in, and opened Photoshop.  It was back to the slow opening of the dialog box.  Everything else in the programs runs fine - no delay when performing operations in any of the Creative Suite - it has to do with the network and how CS is looking for the files.  Can anyone help me, I am so frustrated - this is adding unnecessary time to everything I do and I dread opening and saving any files!!

    Once again - thank you!
    We used to have a network storage device attached to our home network, but it crashed and we replaced it with another model.  A while back I had added it as an item to display in the places bar.  When we removed it from the network, the link on the left side disapeared, so I forgot all about it.  When I read your posting it jogged my memory.  I searched the subject to remember how I had made the change and found this posting from Adobe Community: http://forums.adobe.com/thread/795196 (its in #6).  I found the original storage device in the places bar, removed it and replaced it with the new device.  I opened Photoshop and Acrobat and both open and save dialog boxes appear as they should - the problem has been resolved!  THANK YOU!

  • Can GoodReader download html content and save?

    The question is vague, but what I mean is the following:  If I download an html link in GoodReader, I can click on the link and then it loads the page.
    But to avoid downloading a number of times, is there a way to save the content in a pdf so the content is stored on the iPad?
    This would be like printing to pdf on a mac, so the document resides in pdf on your system.
    Thanks

    Thanks.  This helped.  Though apparently it just downloads and stores the text, not the icons of pictures, which appear off line as question marks.  The reason I didn't notice this is that the thing I tried had the desired text inside the graphic, so nothing appeared off line.
    By the way, some sources (e.g. the New York Times) have a "Print" version, which just shows the text without all the graphics, but when yu try to download these, it loads the original article. 
    Something like "Print to pdf" with the pdf loaded onto the iPad still would be nice.
    Thanks.

  • Sometime I search a pdf file in google, but when I right click on the link and choose "save link as" or "download with IDM" it says that the target is url (html extension) and save a webpage file. It happens with firefox 4 and there's no problem in IE.

    it happens for both Adobe Acrobat and Foxit phantom.

    First, I sent an email to the author of PhotoME to inform him of the serious issues his addon caused with Firefox latest versions.
    Now, for those of you who do not have the PhotoME addon and yet experience the same problem that I had and that I described above, I suggest the following strategy.
    As PhotoME did cause these problems with Firefox latest versions, I am pretty covinved other addons probably might cause these problems too. Therefore, adopt the following method.
    Test one addon at a time to see if this particular addon is behind your Firefox issues like the ones I had.
    So, disable one addon only at a time. Then close your Firefox and restart it from scratch and see if you still have your Firefox problems. You must restart the Firefox browser from scratch. If you still have these Firefox problems, re-enable the disabled addon, restart your Firefox (again!) and repeat the same method for every single addon that you have.
    Try to be selective by choosing first addons that are more likely to cause your Firefox problems such as not very well-known or not very popular addons (like it was the case for the PhotoME addon).
    If this method works or if it does not work, report it on this web page so that others can be helped with your comments.
    I hope this method will help you because I was really upset that I had these Firefox problems and I first thought it was the fault of Firefox, only to discover later that this PhotoME addon was the culprit and had caused me such upset.

  • I have to attach a pdf which i get from spool and also attach some files

    hi , i have requirement where i have to send a pdf as attachment , this pdf is generated throught the spool request , along with this pdf i need to attach some files from the presentation server, i am using the fm SO_OBJECT_SEND, but the problem is in the mail i get the attchment from the presentation server only , while the pdf content which are stored in the objcont are not received, when i comment the folder_id part in the FM i get the PDF attachment, can any one help me know what is the reson and how can i solve this, ur suggestion will be very helpful.kindly suggest

    That's an Outlook issue. You'll probably get better responses posting on the Office for Mac forums.

  • I lost a lot of my contacts when I updated my iphone yesterday.  Is there a way to get them back and save them so they will not be lost when I update again?

    When I connected to itunes and updated my iphone, a lot of my contacts were removed.  Why and can I get them back without having to do this by hand again?

    Download the free app My Contacts Backup and use it to back up the contacts on your device now (it will back them up as an attachment to an email that you send to yourself).  Then restore your device to your most recent backup to see if it will recover your contacts.  If not, if necessary you can open the email and tap the attachment to re-import the contacts you have now back to your device.
    If you need to restore to an iCloud backup this has to be done in the initial setup process, which requires you to first erase your device.  If you have any more recent data on your device now that is not in the backup that you want to save you'll need to do that first.  Then go to Settings>General>Reset and tap Erase All Content and Settings.  You will then go through the setup screens on your device, and when given the option, choose Restore from iCloud Backup (see image below).  Be sure you are connected to wifi and your charger as this will take some time to finish.

  • Iused to get the "Close and Save?" box.....now I don't...why?

    On closing Firefox I used to get a box that allowed me to close the browser but retain my log-ins etc. I no longer get this on the new version...why?

    Firefox 4 and later versions save the previous session automatically, so there is no longer need for the dialog asking if you want to save the current session.<br />
    Use "File > Exit" or "Firefox > Exit" (Mac: "Firefox > Quit Firefox") if you want to restore multiple windows or otherwise have problems with restoring tabs.<br />
    You can use "History > Restore Previous Session" to get the previous session at any time.<br />
    You may need to click the orange/gray Firefox button to see History.<br />
    There is also a "Restore Previous Session" button on the default <b>about:home</b> Home page.<br />

  • Is it possible to collect and save the formscentral responses locally on server

    We would like to collect the data and responses from our online forms created in Adobe XI and Formscentral to a locally hosted server so it may be accessed by our BI Dashboard software.  It is unable to access the data since it is hosted on Adobe servers/cloud.  If this is not possible it would be a great feature/option.

    Hi,
    Thanks for the feedback. If you use the FormsCentral authoring tool to generate a PDF that is not submission-enabled for data collection though FormsCentral, it would be possible to use Acrobat to add logic within the form to submit to a local server. That workflow is outside the scope of this forum, so if you have questions I would suggest that you post to the Acrobat Forms user forum - http://forums.adobe.com/community/acrobat/forms.
    Regards,
    Brian

  • Remove html tags and retrieve the data on the page

    hi,
    i want some help regarding removal of all the html tags and save the text that is on that page... i am relatively new to java and dont know how to go about this problem.
    can someone plz help me out

    > hi yeah i know that there are too many posts of this
    kind....but no1 gives a solid code or idea of how to
    remove the tags.... and i being a newbie dont get wat
    they want to say...... so plz help me out here guyz
    Write in clear, grammatical, correctly-spelled language
    We've found by experience that people who are careless and sloppy writers are usually also careless and sloppy at thinking and coding (often enough to bet on, anyway). Answering questions for careless and sloppy thinkers is not rewarding; we'd rather spend our time elsewhere.
    So expressing your question clearly and well is important. If you can't be bothered to do that, we can't be bothered to pay attention. Spend the extra effort to polish your language. It doesn't have to be stiff or formal -- in fact, hacker culture values informal, slangy and humorous language used with precision. But it has to be precise; there has to be some indication that you're thinking and paying attention.
    Spell, punctuate, and capitalize correctly. Don't confuse "its" with "it's", "loose" with "lose", or "discrete" with "discreet". Don't TYPE IN ALL CAPS; this is read as shouting and considered rude. (All-smalls is only slightly less annoying, as it's difficult to read. Alan Cox can get away with it, but you can't.)
    More generally, if you write like a semi-literate boob you will very likely be ignored. Writing like a l33t script kiddie hax0r is the absolute kiss of death and guarantees you will receive nothing but stony silence (or, at best, a heaping helping of scorn and sarcasm) in return.
    If you are asking questions in a forum that does not use your native language, you will get a limited amount of slack for spelling and grammar errors -- but no extra slack at all for laziness (and yes, we can usually spot that difference). Also, unless you know what your respondent's languages are, write in English. Busy hackers tend to simply flush questions in languages they don't understand, and English is the working language of the Internet. By writing in English you minimize your chances that your question will be discarded unread.
    Best of luck.
    ~

  • Program to read html file and to open the links in that html file

    program to read html file and to open the links in that html file..
    ex:- to read automatically all next links in the html file and save it hard disk

    Start here;
    http://java.sun.com/products/jfc/tsc/articles/bookmarks/
    It gives you all of the information you need to parse the HTML file using the HTMLEditorKit that is a part of the Java SDK.
    Once you get the links from the file, then you can think about connecting to each.

Maybe you are looking for