SO_NEW_DOCUMENT_ATT_SEND_API1 and txt file problem

Hi
I'm using FM SO_NEW_DOCUMENT_ATT_SEND_API1 for sending a txt file attachment, but the format of data is wrong.
U s e r   :   T F R A N C O 
D a t e   :   1 8 / 0 5 / 2 0 1 0
clear objpack-transf_bin.
  objpack-transf_bin = 'X'.
  objpack-head_start = 1.
  objpack-head_num = 1.
  objpack-body_start = 1.
  objpack-body_num = tab_lines.
  objpack-doc_type = 'TXT'.
  objpack-obj_descr = 'Document'.
  objpack-doc_size = tab_lines * 255.
call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
      Document_data              = doc_chng
      put_in_outbox              = 'X'
      commit_work                = 'X'
    TABLES
      Packing_list               = objpack
      object_header              = objhead
      contents_bin               = objbin
      contents_txt               = objtxt
      Receivers                  = reclist
    EXCEPTIONS
      too_many_receivers         = 1
      Document_not_sent          = 2
      Document_type_not_exist    = 3
      Operation_no_authorization = 4
      others                     = 99.
Thanks in advance.

Hi Carlos
I've could delete space between letters but I need how to make for put new line in text format
USER:TFRANCO   FECHA:25/05/2010.
Format must be:
USER:TFRANCO 
FECHA:25/05/2010.
code:
DATA: hexa(1) TYPE c VALUE CL_ABAP_CHAR_UTILITIES=>CR_LF.
  CONCATENATE hexa text-H02 SY-UNAME INTO objbin-line . APPEND objbin.
  CONCATENATE hexa text-H03 SY-DATUM INTO objbin-line . APPEND objbin.
Thanks in advance.

Similar Messages

  • Maximum number of lines in Al11 for csv and txt files

    Hello Experts,
    I need to extract millions of records to a file in AL11 from several DSO - based on fiscal period and year. Can anyone tell me about the maximun number of lines a csv and txt file can hold in AL11.
    Points will be assigned.
    Kevin.

    Hi.
    As per my knowledge there is no limit for text files but for csv file its 1048576 rows.
    Hope this helps.
    Regards
    Sai

  • Export to Excel and Txt File

    Is there a way to export a report to more than one option?
    In other words, I need to be able to provide an option to
    report to excel and report to a txt file in a tilde-delimited format.

    I too am asking if there is an API to do things like this -
    i imagine I could run a trace and see what it does ....

  • Txt file problem

    Hi all :
    would you mind tell me how to access txt file,but
    txt like as Database format as following:
    Name Ago tele
    A 12 123456
    B 13 123445
    C 14 12334213
    In this TXT file , I want to get Record 1 field 2
    What method can I use that?
    Thank you

    Here's the tutorial on streams:
    http://java.sun.com/docs/books/tutorial/essential/io/index.html
    That's how you read it in, then you can use StreamTokenizer to parse out whatever you want. If you're having trouble getting all that to work, search this forum and the New to Java forum for tons of information, and if that doesn't help, post the code you have and someone will be glad to help.

  • Create folder and copy files problem

    Hello all indesign script Members
    where I work we use a permanent folder structure for an example
    a jobnumber called "123123"
    I have wrote a little interface called interface.jsx, this file is saved and located in
    123123/scripts/interface
    I want my interface to navigate two folders up
    to 123123/source/ creates  a folder called "hej" so result is "123123/source/hej"
    then I can pick from a little dialog box the folder 123123/source/a/ copy all .indd files to the folder hej (or any other folder I choose from the dialog box)
    I want the script to know the active path instead of whole locations because, we have different project numbers all the time.
    then run an extern script called hej.jsx
    the best should be also if the script could chose 123123 as default jobnumber too.
    Please could  someone help me to script this?
    /get started I am very newbie
    Thank you so much in advance
    All Adobe Members

    Hi tjacobs01,
    Thanks for reply. I didnt include main method since i dont want to make the problem looks too complicated. I called both of the methods in main. The following is the simplified class code including main method.
    import java.io.File;
    import java.io.IOException;
    public class TestClass{
    public void buildFolder(){
    File f=new File("/documents/hospital_backup");
    if(f.exists()==false){
    f.mkdirs();
    public void copyFile(String file){
    String form_cmd="cp /job_holding/hospital/" + file + " /documents/hospital_backup/"+file;
    String[] command = new String[]{"sh", "-c", form_cmd};
    try{
    Runtime r=Runtime.getRuntime();
    Process p =r.exec(command);
    BufferedReader in = new BufferedReader(new InputStreamReader(p.getInputStream()));
    String line = null;
    while ((line = in.readLine()) != null) {
    System.out.println(line);}
    int exitVal=p.waitFor();
    System.out.println("Process exitValue:"+exitVal);
    }catch(Exception e){System.out.println(e);}
    public static void main(String[] args) {
    String dir_root="/job_holding/hospital/";
    File f=new File(dir_root);
    File[] fList = f.listFiles();
    for (int i=0; i<fList.length; i++)
    String file=dir_root+fList.getName();
    TestClass test = new TestClass();     
    test.buildFolder();
    test.CopyFile(file);

  • Broken Ftp Connection and big files problem

    I have a problem with big-files downloading.
    Does anybody know how to resume downloading using FTP-connection?
    Or how can I get bytes from FTP connected file using something like random access to avoid the restart of downloading the file?
    "InputStream" does not support "seek"-like methods.

    From RFC 959
    RESTART (REST)
    The argument field represents the server marker at which
    file transfer is to be restarted. This command does not
    cause file transfer but skips over the file to the specified
    data checkpoint. This command shall be immediately followed
    by the appropriate FTP service command which shall cause
    file transfer to resume.
    You should also be aware of RFC 959 Section 3.4.2 on BLOCK MODE transfers which is what allows FTP to REST a connection and "skip" n-bytes of a file.

  • Frontrow movie covers and avi-files problems

    I have a problem with the movie covers in Fontrow.
    I have placed every avi-file in a separate catalogue, and named the catalogue after the movie. I have also placed the movie cover in the same catalogue(preview.jpg). And when I scroll down the list of movie covers in Frontrow everything looks ok... But when I scroll back up again, the movie covers are changed to the first frame of the movie
    To get back to the covers I must re-start Frontrow,and everythins looks ok, but as soon as I scroll back up again Im back to the first frame of the movie.
    Is there something I can do to have Frontrow ignoring the first frame in the avi-file and always show the preview.jpg??

    Varlinge,
    I'm experiencing simular behaviour.
    Frontrow alternates (5 sec) between "preview.jpg" and the "movie.avi" file.
    Did you manage to find a solution / workaround?
    Marco.

  • PHP 5.0.4, php apps and zip file problems

    I use various opensource web apps that allow for files to be uploaded in zip format. The app then unzips the files and does what it needs to do with them. ie: Gallery2 uploading photos that are zipped up and placing the enclosed photos into the gallery.
    Anyway, this was working very well with the base install of OS X Server's PHP4.? and Apache 1.4.3
    I upgraded to PHP 5.0.4 using Entropy PHP (recommended by another OS X Server admin). Anyway, I lost the ability to handle the zip files. I am unsure what to look for.
    phpinfo() shows the following about compressed files:
    Configure Command
    './configure' '--prefix=/usr/local/php5' '--with-config-file-path=/usr/local/php5/lib' '--with-apxs' '--with-iconv' '--with-openssl=/usr' '--with-zlib=/usr' '--with-mysql=/Users/marc/svn/entropy/php-module/src/mysql-standard-*' '--with-mysqli=/usr/local/mysql/bin/mysql_config' '--with-libxml-dir=/usr/local/php5' '--with-xsl=/usr/local/php5' '--with-pdflib=/usr/local/php5' '--with-pgsql=/Users/marc/svn/entropy/php-module/build/postgresql-build' '--with-gd' '--with-jpeg-dir=/usr/local/php5' '--with-png-dir=/usr/local/php5' '--with-zlib-dir=/usr' '--with-freetype-dir=/usr/local/php5' '--with-t1lib=/usr/local/php5' '--with-imap=../imap-2002d' '--with-imap-ssl=/usr' '--with-gettext=/usr/local/php5' '--with-ming=/Users/marc/svn/entropy/php-module/build/ming-build' '--with-ldap' '--with-mime-magic=/usr/local/php5/etc/magic.mime' '--with-iodbc=/usr' '--with-xmlrpc' '--with-expat-dir=/usr/local/php5' '--with-iconv-dir=/usr' '--with-curl=/usr/local/php5' '--enable-exif' '--enable-wddx' '--enable-soap' '--enable-sqlite-utf8' '--enable-ftp' '--enable-sockets' '--enable-dbx' '--enable-dbase' '--enable-mbstring' '--enable-calendar' '--with-bz2=/usr' '--with-mcrypt=/usr/local/php5' '--with-mhash=/usr/local/php5' '--with-mssql=/usr/local/php5' '--with-fbsql=/Users/marc/svn/entropy/php-module/build/frontbase-build/Library/ FrontBase' '--enable-openbase_module'
    Registered PHP Streams
    php, file, http, ftp, compress.bzip2, compress.zlib, https, ftps
    BZip2 Support Enabled
    BZip2 Version 1.0.2, 30-Dec-2001

    I wish I could be as optimistic about your configuration, you have/had more than two issues, even after building a PHP that would work for you it had to be reconfigured to obtain optimal performance.
    I noticed other errors in your logs but since they weren't specifically related to your issue with zip or PHP running properly I place a low priority on them and ignored them.
    I eventually found the build issue with the entrophy PHP however Mark wasn't interested in the fix since it basically performed the majority of the tasks that were expected and everything else was considered experimental with no real support provided.
    You did get a better PHP built in the ADE (Apple Developer Environment) targeted specifically for your CPU (although they are universal binaries) and I included some modules I wrote myself that provide some (IMHO) key functionality for a production web service like scanning uploaded files for viruses and the ability to generate RRDTool graphs natively without slowing the process down by having to rely on external resources.
    While I have thoroughly tested the modules I wrote, I have not had the time (or the help) to write proper documentation for them so I might later provide some sample PHP scripts since they are fairly simple to implement.
    The biggest problem I saw was that you had a lot of nice toys but none of them were designed to work smoothly together and the entrophy PHP is a good alternative for someone who needs more than what apple provides but isn't capable of generating something that integrates well in the environment.
    Also to note, the entrophy (or Server Logistics) PHP is an all-purpose/general-purpose solution and isn't ever going to be optimal for any specific architecture due to the build process which is why the one I provided works significantly better, it was built specifically for both architectures individually then combined into a single binary giving you the ultimate performer for either architecture without sacraficing performance or degrading functionality.
    I tend to use as much Apple provided software as I can since it makes no sense to me to build and install any software that is already available and built specifically for the environment other than to waste disk space, freetype is a good example, any that is provided will never include the same features and functionality as the apple provided installation yet all PHP makers seem to build the basic bare-bones freetype and build their PHP off of it expecting to achieve the same feature-rich functionality which it clearly isn't capable of.
    They also include a lot of features which are never used and I have removed and/or substituted some of these in an attempt to provide a more usefull set of features and functionality and I include a very complete pear installation which also contains just about every feature and functionality you would ever require without providing anything that that would be considered fluff.
    I've been watching the performance of the installation for a couple of days now and I'm more than satified that it's a solid performer for you so smile and enjoy, santa was nice to you this year.

  • Save and dependant files problem

    hi
    when i press f12 to see in the browser i get the "put
    dependant files" dialogue. why is that and how can i turn it
    off?

    Hi,
    I had that problem when I was working on a website at school
    using a mac but when I used it at home on a pc it was fine. Im not
    sure if this will work for you (it did for me) I just moved the few
    pages into a new folder and redefined the site. It worked for me im
    not sure if it will work for you.

  • Saving characters with ASCII codes (128 - 256) into txt file problem

    Hello,
    I am saving a query results into a text file (test.txt) with this procedure:
    BEGIN
    OWA_UTIL.mime_header ('application/octet', FALSE);
    HTP.p ('Content-Disposition: attachment; filename="TEST.TXT"');
    OWA_UTIL.http_header_close;
    for rec in (select sample_text from tmp)
    loop
    htp.prn ( chr(230) || rec.sample_text || utl_tcp.crlf);
    end loop;
    -- Send an error code so that the rest of the HTML does not render
    HTMLDB_APPLICATION.g_unrecoverable_error := TRUE;
    END;
    How can I save characters with ascii codes from 128 - 256 into the output file? If I use chr() function, characters are missing in the output file.
    Platform: Apex 4.2 on apex.oracle.com

    Hi 1010398,
    Some thoughts:
    I assume you've counted the characters in the output and/or used a "hex" text editor so you KNOW these characters are not being written. Are they not written at all, or are blanks being substituted or are NULLs being substituted?
    I couldn't find much documentation on htp.prn. Though, one place I found
    htp.prn (cbuf IN VARCHAR2 CHARACTER SET ANY_CS DEFAULT NULL);Do you suppose it's affected by the character set used?
    Howard

  • Photoshop CC Camera RAW and 32bit files problem

    The new Camera RAW from Photoshop CC has problem with 32bit EXR,HDR files when camera calibration is set to 2012 mode. Very bright tones like specular highlights are flattened and there is no possibility to bring them back. Old modes (2010, 2003) are working fine.

    Photoshop CC camera raw 8.5 where is the fill light and recovery buttons
    Hi Teresa, you may have worked this out already? but i just downloaded Photoshop CC and I too used the recovery and fill light buttons and couldnt see them in the raw processing window... HOWEVER!! i did some research and they are available!! YAY, you can toggle between the latest and the older layout... and the recovery and fill optoins ARE  there... the link explains it... but when you open some raw files... on the right you should see a little camera - camera calibration button when you click on there the first drop down PROCESS - change to 2012 mode and then click back to the BASIC processing wheel and they will be there... cheers Danni

  • J2ee1.4 and log file problem

    Hello all,
    I am running J2ee1.4 on Win 2000 Pro. I have 2 problems:
    1) The server.log file becomes too big even I set its size. Seem like it does not rotate when the limit size is reached. (I set it for 2MB)
    2) Under Logging tab, I enabled the option "Log messages to standard error", but when I restart the server It cannot start the server1 instance.
    Can anyone please help me on this. I would like to see messages on standard output screen and I do not want the log file take all my hardrive space. Thank you so much!

    Thank you for responding. When I enable the option "Log messages to standard error" and restart the j2ee1.4 server I got the following message:
    Starting Domain domain1, please wait.
    Log redirected to C:\Sun\AppServer\domains\domain1\logs\server.log
    Subprocess timed out after 600000mS
    CLI156 Could not start the domain domain1
    Press any key to countinue...
    When I look at processes under Window Task Manager, java.exe and javaw.exe is running. At the end, I cannot start it in "verbose" mode. Is there any other thing I need to do beside enable the "Log messages to standard error" ?
    I am appreciated any help.

  • Difference in Download Performance Rates Between Binary Files (IE mysql ibd) and Txt file

    Hi !
    i would thank you if anyone could clarify this to me .
    im testing passing traffic from one DC to another DC .
    if the file is a text file ie: SpeedTest.txt , i can download in about 20MB/s  .
    if the file is a binary file ie :SpeedTest.ibd (mysql) , i can download in about 2MB/s .
    all tests were made using Rsync on Linux Machines . ( but it also happens with scp/sftp etc )
    so i guess its something with encoding or perhaps hashing that is make per "chunk" ?
    what is this happening , and if you know , what is the best way to pass binary files ? ( i use rsync because it use multiple sessions thus faster )
    Thanks A lot !

    Not sure about the exact differences but loading pdf files to view in a browser seems to have a high overhead (as in memory required to load and display the file). For that reason I prefer to view all pdf's in the reader. It's just quicker to load and smoother when scrolling to read.
    Simon

  • Read and write file problem

    hello
    I have web application and I try using servlet to upload an image
    upload proccess works fine
    example
    1. I upload the the file C:\images\books\mybook.gif into
    temp folder
    2. other actions
    3. I want to write the fole mybook.gif into othet folder
    this process oerks fine on my home pc
    but I becom an ecxeption by webprovider
    /home/mydomain/public_html/projects/tempData/C:\images\books\mybook.gif(No such file or directory)what shoud be the problem and how to solve this issue
    thanks

    here is the code of the uploadservlet
    public void doPost(HttpServletRequest request, HttpServletResponse response)
                   throws ServletException, IOException
        PrintWriter out = null;
        String tempUploadDir = request.getSession().getServletContext().getRealPath("/")+"MyTemp"+File.separator;
         try
              out = response.getWriter();
             response.setContentType("text/html");
             MultipartRequest parser = new ServletMultipartRequest(request,
                                                                               MultipartRequest.MAX_READ_BYTES,
                                                                               MultipartRequest.IGNORE_FILES_IF_MAX_BYES_EXCEEDED,
                                                                               null);
                 Enumeration files= parser.getFileParameterNames();
                      while(files.hasMoreElements()){
                                boolean sizeOK    = true;         
                                String name       = (String)files.nextElement();
                                String filename   = parser. getBaseFilename(name);
                              InputStream ins   = parser.getFileContents(name);
                              if((parser.getFileSize(name) / 1024) > AppConstants.MAX_READ_BYTES){sizeOK = false;}
                         if(sizeOK){
                              if (ins!=null)
                                      BufferedInputStream input = new BufferedInputStream(ins);
                                   FileOutputStream outfile = new FileOutputStream(new File("MyTemp",filename));
                                             int read;
                                             byte[] buffer = new byte[4096];
                                             while ((read=input.read(buffer))!=-1){
                                                        outfile.write(buffer, 0, read);
                                             outfile.close();
                                             input.close();
             }// end out while
         }catch (Exception e) {  out.flush(); }
    what is to change here thanks

  • Saving in USB and retrieving file problem?

    My file was able to be previewed in my computer (imac). However, when file is saved in USB, and reopened, linkage to other pages and pictures were lost. How to solve this?

    Check the links in your site to verify they are not absolute paths. You should be using Document Relative paths instead.
    So if you see something like...
    c://computer/user/site/folder/image.jpg
    You'll need to fix them in DW first so they look more like
    folder/image.jpg
    If the site was set up correctly locally, and your links are no longer absolute paths, you will be able to save it onto a USB and have those files viewable from in IE, Firefox or other browsers.
    If you are attempting to modify the USB files from DW, you'll want to create a site from them in DW first or you could end up in the same situation you were in to begin with.
    Site > New Site > give it a name > for Local Root Folder, browse to the site's root folder on the USB device.

Maybe you are looking for

  • Mini failure help - beyond the flashing finder

    I have one of the original 1.25 Mac Mini G4's with 1.25 RAM running 10.4.10, all other software UTD & permissions repaired. Recently, perhaps following a thunderstorm (despite surge protector), upon returning from vacation, the flashing finder folder

  • Converting a class for use in a jsp page.

    I was just wondering if it is possible/normal to convert complex(ish) classes to change the output from the system.out, to a return value from a method that is displayed via a jsp page. (I am just beginning, and trying to make the coversion from asp

  • Blocking of Incentive Amount for two months by restriction "?" in EVENT "?".

    Hello Experts, Currently our Client is giving Incentive to their customer on prompt payment in next month by Clearing Restriction "8" in EVENT "42". Presently the Client requirement is to give Incentive of particular month should be given in successi

  • Problems accessing Bridge/Minibridge from PS CS6

    I was never much of a user of Bridge or Minibridge until I upgraded to PS CS5, I gradually became aware of the various conveniences offered and have been disappointed to find that, using CS6, although I can click on Bridge, see its normal screen disp

  • Programmatically creating a page with portlets in it

    Hello! I need a little help figuring out how to programmatically create a page and add a couple portlets to it. I have figured out how to create the PageDefinition and that code works great. How can I add 2 portlets (the portlet definitions already e