Problem in Upload and Split

Hello All,
I have one text file with 'TAB' seperated fields. When i am uploading this file into UNIX server(thru customize prog) fille uploaded successfully but it take field sepration '#' instead of 'TAB'.
now uploaded file looks like
AAA#BBB#CCC#DDD#
Now if i am split this file to '#' it is not heppening.
  DATA: BEGIN OF T_TEMP OCCURS 16,
         TEXT(300),
        END OF T_TEMP.
  DATA: LV_FILE(3000).
  DATA: L_INT TYPE I,
        L_COUNT TYPE I.        "For index
  DO.
      READ DATASET INPUT INTO LV_FILE.
    IF SY-SUBRC = 0.
          SPLIT LV_FILE AT '#' INTO TABLE T_TEMP.
endif.
enddo.
Can any body help me out.
Rgds,
Paras

Can you check the contents of lv_file after read statement is it just like format you gave : AAA#BBB#CCC#DDD#
I tried the sample code it works:
DATA:
  str TYPE string VALUE 'AAA#BBB#CCC#DDD#'.
DATA:
  BEGIN OF itab OCCURS 0,
    data(255),
  END OF itab.
SPLIT str AT '#' INTO TABLE itab.

Similar Messages

  • Problems with uploading and synching albums

    I am a fairly new user to Elerments, although I've used Photoshop for years.  On-line, I have five albums that I have uploaded and friends can view them.  I am trying unsuccesfully to upload another album and I follow all the steps (I think) in the manual, but my newest album is not available on line. 
    Additionally, I am having teouble synching files and get an error message.  When I thell Elements to "fix it"  the computer just sits and does nothing for a long time.
    Can anyone suggest an approach to solving these issues?
    Thanks.
    Doug

    What you need from your old Mac is a file titled Domain.sites2 which will be located in the your Users/Home/Library/Application Support/iWeb folder where the home folder is the one with this icon:
    Find that file and move/copy it to the same folder on your new Mac.  If there is none go to the Application Support folder and create an "iWeb" folder.
    If you do not have that  domain file you will have to start over from scratch and rebuild your site.  iWeb cannot import published html files.  However, Chapter 2.3 on the iWeb FAQ.org site has tips on using some of the existing files, image, audio, video, etc., from the published site in the recreation of the site.
    To publish to a 3rd party FTP client I suggest you publish your site first to a folder on your hard drive and then use the free FTP client Cyberduck to upload the site folder and its index.html file to the server.
    OT

  • BPM giving problem in Merging and Splitting

    Hi Gurus,
    Im trying to BPM scenarios,
    First i tried to Merging Two message and send to one receiver system. In that both Sender and Receiver communication channel are wokring fine.. all are showing green light.. and the files also got processed from sender side but i cant get result  the output side. i checked my abstract interfaces , interfacing mapping and Container variables in IP everthing is right.. Even  this is not 1:N or N:1 mapping , all message types are having occurance of 1:1 only. when i checked using SXMB_moni... there my two sender are succesfully sending the messages and ip getting the message.. after IP should act as a sender right. that msg not there... what would be the problem... even correlation also correct using the common filed's xpath i was combing the msg. In IP im getting the Yellow color warnin like correlating not used in sender step but no error. but i activated the correlation in sender  step and assigned the xpath of the common field.
    After that i tried to do splitting same problem occuring.. no message in receiver side.. i double checked my abstract interfaces, inbound , outbound interfaces, interface mapping and container variable everthing was assigned properly. In IP Only a blue color waring i getting like receiver determination initialized but not used but no error , but when i checked the interface determination it was fine.. i created receiver type local variabled with multiline . this is not 1;N or N;1 mapping... a simple mapping
    Please help me experts,
    Regards,
    Balaji

    Hiii experts ,
    Please help me.. i have tried many times.. still the same problem exits...
    source msg type having 5 elemtn.. first 2 element mapped first target msg type and remaining fields mapped to receiver 2 target msg type.
    IP step are configured as below
    Container Variables: send,recv1, recv2, 2 receiver type msg for receiver determination (Receiver1, Receiver2) both are multilined.
    Receiver step : sender msg type (sender abs interface type)
    Transformation : Has the interface mapping and one source msg and 2 target msg
    In fork
    Branch1:
    receiver determination1 :receiver msgtype (recv1) and  the multiline element (receiver1) type of receiver.
    sender1 step: receiver msg type (recv1) and Receiver from-> Receiver List : Receiver->Receiver1
    Branch2:
    receiver determination2 :receiver msgtype (recv2) and  the multiline element (receiver2) type of receiver.
    sender2: step.. receiver msg type (recv2) and Receiver from-> Receiver List : Receiver->Receiver2.
    But msg going to IP.. after that IP not start to send msg...
    Please tell me.. what im doing wrong here?
    Regards,
    Balaji

  • Hi, when I upload music into itunes from a cd it sometimes appears in itunes as two different albums and split up the music in 2 or even three albums....how can i merge these albums...this is particularly true when one album may have different composers?

    Hi, when I upload music into itunes from a cd it sometimes appears in itunes as two different albums and split up the music in 2 or even three albums....how can i merge these albums...this is particularly true when one album may have different composers?

    Generally setting a common Album title and Album Artist will fix things.
    For compilations that aren't, select all tracks, Get Info, and on the option tab set Part of a Compilation to No. If it already says No tick the box alongside, then click OK.
    For deeper problems see Grouping tracks into albums.
    tt2

  • How to avoid the split problem when uploading the data from csv file

    Dear Friends,
                  I have to upload data from the .csv file to my custom table , i have found a problem when uploading the data .
    i am using the code as below , please suggest me what i have to do in this regard
          SPLIT wa_raw_csv  AT ',' INTO
                    wa_empdata_csv-status
                     wa_empdata_csv-userid
                     wa_empdata_csv-username
                     wa_empdata_csv-Title
                     wa_empdata_csv-department.
    APPEND wa_empdata_csv TO  itab.
    in the flat file i can see for one of the record for the field Title  as
    Director, Finance - NAR............there by through my code the  wa_empdata_csv-Title is getting splited data as "Director, and  Department field is getting Finance - NAR" , i can see that even though  " Director, Finance - NAR"  is one word it is getting split .
    .......which is the problem iam facing.Please could any body let me know how in this case i should handle in my code that this word
    "Director,Finance - NAR"   wil not be split into two words.
    Thanks & Records
    Madhuri

    Hi Madhuri,
    Best way to avoid such problem is to use TAB delimited file instead of comma separated data. Generally TAB does not appear in data.
    If you are generating the file, use tab instead of comma.
    If you cannot modify the format of file and data length in file is fixed character, you will need to define the structure and then move data in fixed length structure.
    Regards,
    Mohaiyuddin

  • 11.3 problems with crashes, uploads and downloads

    Hi
    I am currently running on windows 7, with firefox 13.0.1 and flashplayer 11.3.300.257.
    I have a couple of problems which i think are linked.
    Firstly, like others i have been having problems with 11.3 crashing when playing video, i did notice that there was a new download 11.3.300.262 of flashplayer for firefox however, despite downloading this and re-booting about 6 times i am still running 11.3.300.257.
    Secondly, i have been having problems with downloads and uploads specifically in email (i use bt yahoo on firefox) I cannot "detach" attachments (even though it looks like its happening its not) and am unable to attach docs to emails - im load the flash uploader has stopped working.
    From digging around on the internet, I think these problems are caused by the flashplayer version and firefox version im currently using somehow "clashing", and would really like some advice on the best way to get around these issues until mozilla and adobe have sorted things out.
    Thank you for any and all advice you can give me

    Under system32\Macromed\Flash i have:
    Flash64_11_2_202_235.ocx
    FlashInstall
    FlashUtil64_11_2_202_235_ActiveX.dll
    FlashUtil64_11_2_202_235_ActiveX
    FlashUtil64_11_3_300_262_Plugin
    NPSWF64_11_3_300_262.dll
    Under syswow64\Macromed\Flash i have:
    Flash32_11_2_202_235.ocx
    FlashInstall
    flashplayer.xpt
    FlashPlayerPlugin_11_3_300_262
    FlashPlayerUpdateService
    FlashUtil32_11_2_202_235_ActiveX.dll
    FlashUtil32_11_2_202_235_ActiveX
    FlashUtil32_11_3_300_262_Plugin
    install
    mms.cfg
    NPSWF32_11_3_300_262.dll
    Interestingly, i re-booted comp again for the umpteenth time before doing anything this morning, and the adobe site is now saying i am running 262 and not 257 a quick test on my email indicates this is now working properly i do not know yet about the crashing.
    Thank you for helping me out, I will come back if i still have problems.

  • Problem Uploading and Sharing Video Files

    I just uploaded a 3.3GB h.264 Quicktime movie to Creative Cloud. It took many hours. Now that it's finished uploading, I can't figure out how to play the video while logged into Creative Cloud, despite that fact that under information it's recognized as a mov and 3.3GB. And when I try to share using the link-in-email option, my friend can't play the movie or download it. When he tries to download it, nothing connects. Creative Cloud seems to be treating this movie as a single still image or something. Suggestions as to how to solve these upload and share video problems? I have a 2011 MacBook Pro with all possible upgrades, Mac OS X Version 10.6.8. Any help here much appreciated. One of the reasons I signed on for a year with Creative Cloud was to utilize this 20GB to share video in the way I've done through Dropbox.

    Thanks for the reply, Dave, but I don't think this is the problem. I've uploaded this h.264 Quicktime (which plays fine before uploading) a few times now and cannot download or share due to a very long period of "Connecting...", then the message "Problem loading page. The connection was reset. The conection to the server was reset while the page was loading. - The site could be temporarily unavailable or too busy. Try again in a few moments. - If you are unable to load any pages, check your computer's network connection. - If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the web." Then I'm given the option to "try again". This or a similar message is what others get when trying to download when I try to share the file with them using the link-in-email method, and neither I nor any of those I try to share this with are having problems with internet connectiions or downloading other large video files from the internet. The reason I suspect that Creative Cloud can't deal with downloading larger files such as this 3.3GB Quicktime is that I have no problem uploading, downloading or sharing small Quicktime movies through CC, and they are identified the same way and look the same when uploaded to CC. I also have no problem downloading much larger video files from other sites on the internet, such as feature length films that are a lot larger than 3.3GB. It seems like only things that download quickly don't time-out, regardless of what browser I'm using. Does Creative Cloud's download system rely on files being able to be downloaded quickly in full before a browser's time-out? As I've mentioned before, I have no problem uploading, downloading, sharing, etc. using Dropbox. Long explanation here, I know, but I thought all this info might help in figuring things out. Any ideas as to what's going on?

  • Problems with How-to upload and download

    I downloaded and followed the instruction listed on the ‘Oracle HTML DB How To Documents’ site titled - Build a file upload and download application
    I completed the exercise and am having the following problems:
    1) The one download link that is working gives me a popup to download a file named XXXX from www.XXX-YYY.net. The actual file I am trying to download is called stinger.exe. Www.XXX-YYY.net is the name of the site where the HTMLDB is loaded. XXXX is the name of the customer. I don't know where it is pulling the customer name from when I do the download. The correct file name is displayed in the file list. However, XXXX is the file named in the dowload pupup and an unrecognized file type call XXXX is downloaded.
    (Actual names are not being used.)
    2) There are two other files in the list but when I click down load for them I get ‘The Page Cannot Be Found Error’.
    Priscilla

    Thanks for responding. Lol! Seriously found this old post and decided to attempt a little bit of humor with the more recent post. Sorry did not mean to create any negative energy. Smile!!
    Do you happen to know anything about APEX in the cloud. Is it out yet?

  • Upload and http auth problem

    Hello.
    I wrote flex application with http basic authorization. After
    I successfuly loginin i try to upload file and independently of
    used browser I recieve authorization window from IE and I have to
    enter login/passwd second time. After it everything work fine and I
    can upload more files without authorization window. How can I make
    away this window? Is there any securinty flash settings?
    bye...

    Adobe Newsbot hopes that the following resources helps you.
    NewsBot is experimental and any feedback (reply to this post) on
    its utility will be appreciated:
    Flex 3 - Working with file upload and download:
    The SWF tried to upload a file to a server that requires
    authentication (such as a user name and password). During upload,
    Flash Player does not provide a
    Link:
    http://livedocs.adobe.com/flex/3/html/17_Networking_and_communications_7.html
    9 Flex File Upload Examples Visited:
    Flash 8 File Upload Download. As we know the Flex Upload is
    actually use the Flash 8 FileReference object to do the work. The
    guy who is writing the book
    Link:
    http://www.flex888.com/296/9-flex-file-upload-examples-visited.html
    Flex 3 - Example: Uploading and downloading files:
    The main application file in Flash (FLA) or Flex (MXML). ...
    A class that includes methods for uploading files to a server.
    Link:
    http://livedocs.adobe.com/flex/3/html/17_Networking_and_communications_9.html
    File Upload in Flex/Flash in Internet Explorer:
    Because Macromedia Flash doesn't include the capability to
    upload files, a Macromedia Flex developer will need to use multiple
    technologies to add uploading
    Link:
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_19382
    Adobe - Developer Center : Multiple file upload with Flex
    and:
    Sep 11, 2006 ... Through the Multi-File Upload application,
    you will learn how to do the ... capabilities of Flex 2, Flash
    Player 9, and ColdFusion MX 7 file
    Link:
    http://www.adobe.com/devnet/coldfusion/articles/multifile_upload.html
    Derrick Grigg's Blog, Flex and Flash file uploading with
    return data:
    I see one for Flex and other for Coldfusion, but none for
    Flash. Maybe the title should be Flex and CF file uploading with
    return data?
    Link:
    http://www.dgrigg.com/post.cfm/08/02/2007/Flex-and-Flash-file-uploading-with-return-data
    Disclaimer: This response is generated automatically by the
    Adobe NewsBot based on Adobe
    Community
    Engine.

  • LSMW upload and Regular upload problem

    Hi All,
    Pt1. I am trying to upload few docs from LSMW.......i can upload all upload and everything is fine, but when i am trying to open the attached doc its says that "c:\user\........" could not be accessed.
    Pt2. If i do manual creating of document for the same doc type i can attach and open the attachement.
    What is the difference, am i missing anything ?
    Do i need some DC30 config ? If yes, then why its working (Point 2.)
    Thanks,
    Tarun.

    sap note is there.

  • Upload and Download of Purchase Orders - Account Assignments problem

    Hi SRM Gurus,
    While downloading the SRM PO into Excel format, Account Assignment is not being downloaded.
    Our requirement is, To add many line items in the downloaded excel and subsequently upload to SRM. However the file structure readability is very poor even after installed Add In given by SAP. Can anyone help me in providing a solution, so that the users can be able to insert the line items and upload.
    Thanks & Regards,
    Ramkumar

    Hi
    <u>Please read this -></u>
    <b>Please see the note mentioned below.</b>
    <u>
    Note 734060 SRM:Upload and Download of Documents using MS Excel
    Note 734946 SRM: Restriction on upload and download.</u>
    <b>Alternativey, try using BBP_DOWNLOAD_BADI in SE18 Transaction.</b>
    Upload PO from XML file in SRM
    Upload + Download in Bid invitation
    Re: Contract Upload to New System
    Re: Bid download to Excel
    Re: Upload new Contracts in SRM4.0
    Contract Upload Scenario
    Re: Upload of contracts from text file or spreadsheet
    Regards
    - Atul

  • Problem in uploading a file

    Hi All,
    I did one application on file upload using the tutorial given in the ****************.
    But i am unable to run my application due to the function module 'HR_KR_XSTRING_TO_STRING'
    that does not exist.Can anybody plz tell me the name of the function module to convert xstring to string or an idea to solve this problem.
    Thanks in Advance.

    If you want to upload an EXCEL file. you can achive it by first saving excel as
    tab delimeted text file. This is simple open excel from save as choose
    save as type Text( Tab delimeted).txt.
    Now use file upload UI element from webdynpro abap. within the context declare
    a context node lets call it NODE  with attribute File type XSTRING.  Bind
    the data property of file upload UI element to the attribute 'File'.
    Create a button upload and on its action write the following code.
    Data: s_cont type string,
            x_cont type xstring,
            convt type ref to cl_abap_conv_in_ce,
            item_file type xstringval.
      data: input_string type string,
            fields  type string_table,
            fields2  type string_table,
            tbl_fields  type string_table,
            s_table type string_table,
            ls_table like line of s_table,
            ls like line of fields,
            lv_kunnr type kunnr,
            lv_ret type boolean,
            lv_num_cols type i.
       field-symbols: <wa_table> like line of s_table.
        DATA:
          node_file                           TYPE REF TO if_wd_context_node,
          elem_file                           TYPE REF TO if_wd_context_element,
          stru_file                           TYPE if_v_upload=>element_file ,
          item_file                           LIKE stru_file-file.
    *   navigate from <CONTEXT> to <NODE> via lead selection
        node_file = wd_context->get_child_node( name = if_v_upload=>wdctx_node ).
    *   get element via lead selection
        elem_file = node_file->get_element(  ).
    *   get single attribute
        elem_file->get_attribute(
          EXPORTING
            name =  `FILE`
          IMPORTING
            value = item_file ).
      convt = cl_abap_conv_in_ce=>create( input = item_file ).
      convt->read( importing data = s_cont ).
      "Column headers
      split s_cont at cl_abap_char_utilities=>cr_lf into table s_table.
      read table s_table into ls_table index 1.
      " delete column header
      delete s_table index 1.
      loop at s_table assigning <wa_table>.
          split <wa_table> at cl_abap_char_utilities=>horizontal_tab into : ls_data-recordid
                                                                            ls_data-candno
                                                                            ls_data-fname
                                                                            ls_data-inits
                                                                            ls_data-lname
                                                                            ls_data-gesch
                                                                            ls_data-gbdat
                                                                            ls_data-uln.
            append ls_data to lt_data.
          clear ls_data.
        endloop.
      wd_this->m_node_data->bind_table(
         exporting
            new_items            = lt_data
            set_initial_elements = abap_true ).
    endmethod.
    Greetings Prashant
    P.S. Points welcome

  • Uploading Access split database to Sharepoint Site.

    Hi, I'm having trouble finding instructions on how exactly you would upload a split database to SharePoint. If I split my database locally i can't then move the back end.
    I want to upload my the back end of the Access database to "mysitesname".sharepoint.com I have full admin privileges but the only place I see to upload a file is the "shared documents" area of the site which I presume would only be useful
    for hosting the front end for users to download. Trying to split the database to the site by using it's URL "https://"mysitesname".sharepoint.com/SitePages/Home.aspx" nd variations results in access telling me the site could not be reached.
    I'm sure this is something simple to do and I'm just missing some critical piece of information.

    Thank you for the reply but I'm not using a web database or web app. I should have mentioned I solved the problem yesterday.
    A split database is simpler than I thought, mine is just a standard access database with linked tables. You share your file (front end) around and the back end is just a bunch of SharePoint lists if you are using SharePoint or an access file containing tables
    if using a file server.
    My problem was that I couldn't upload my back end to SharePoint. I ended up making my tables into SharePoint lists and uploading those to my personal SharePoint folder as the team site didn't allow me to upload them.
    https://example1-my.sharepoint.com/personal/email_emailhost_com_au
    This tutorial worked best. http://www.youtube.com/watch?v=3wdjYIby_b0&list=PL27E956A1537FE1C5&index=2

  • Problem when uploading a large file in PI - weird SQL I/O errors

    Hi guys,
    I'm facing a very difficult problem when uploading a 35 MB with an FTPs adapter. I see in the logs that, after the translation to XML, it's going to 170 MB.
    I receive the following error in the CC Monitoring:
    Error: com.sap.aii.af.ra.ms.api.DeliveryException: Problem inserting 41827ca7-6b8c-4a87-198d-ad8a81fcb12b(OUTBOUND) into the database: com.sap.engine.services.dbpool.exceptions.BaseSQLException: Connection is invalid.
    When I look in the NWA Monitoring, I see the following details:
    SQL error occurred on connection affhb201:X11:SAPSR3DB: code=17,002, state="null", message="Io exception: Socket closed";
    SQL statement is "INSERT INTO "XI_AF_MSG" ("MSG_ID","DIRECTION","MSG_BYTES","TIMES_FAILED","SENT_RECV_TIME","STATUS","CONN_NAME","MSG_TYPE","REF_TO_MSG_ID","ADDRESS","TRANSPORT","CREDENTIAL","TRAN_HEADER","MSG_PROFILE","CONVERSATION_ID","SCHEDULE_TIME","PERSIST_UNTIL","FROM_P........
    I cannot check the Visual Admin Logs 'cause I don't have access to them yet.
    I'm pretty convinced that some swap memory, message size or whatever setting on the adapter engine or on the Java stack is preventing this. I do not get any message in CC Monitoring when uploading a smaller, 6 MB version of the same file.
    Can you please help me solve this or give me some interesting pointers?
    Never before did we experience something like this in the PI system. In addition, I didn't find any useful resource on the SDN and throughout the SAP notes for this.
    Let me know if you need more info about this.
    Best regards,
    George

    Hi George
    I am facing the same issue, where did you configure the message split in the Communication Channel?
    If I do the message split as you said, is it going to create several files or how does it work?
    Thanks in advanced
    Emmanuel

  • Upload and Attach file to Service Notificacion through Web Dynpro

    Hi,
    I need to upload and attach a file (Word, PDF, TXT ...) to Service Notificacion (TX - IW53) through Web Dynpro.
    I have used the integration component "File Upload" to obtain the "fileName" atribute. Also, I have used the functions SO_OBJECT_UPLOAD, SO_INSERT_OBJECT and BINARY_RELATION_CREATE_COMMIT.
    But have a problem, because the function SO_OBJECT_UPLOAD use the class "cl _ gui _ frontend _ services" and that clash with Web Dynpro.
    My question is: how could I resolve that problem?
    I look forward to your response.
    Thanks

    IV_NAME     Importing     Type     STRING
    IV_CONTENT     Importing     Type     STRING
    IV_CONTENT_HEX     Importing     Type     XSTRING
    IS_LPORB     Importing     Type     SIBFLPORB
    IV_OBJTP     Importing     Type     SO_OBJ_TP
    RT_MESSAGES     Returning     Type     BAPIRETTAB
    method save.
      data ls_message type bapiret2.
      data:
        filename     type string,
        filefullname type string,
        mime_type    type string,
        size         type i,
        offset type i,
        offset_old type i,
        temp_len type i,
        objname type string,
        l_obj_type type so_obj_tp,
        hex_null type x length 1 value '20',
        l_document_title type so_text255,
        file_ext type string,
        lt_objcont type standard table of  solisti1 initial size 6,
        objcont like line of lt_objcont,
        lt_ls_doc_change type standard table of sodocchgi1,
        ls_doc_change like line of lt_ls_doc_change,
        lt_data type soli_tab,
        ls_data type soli,
        lt_xdata type solix_tab,
        ls_xdata type solix,
        l_folder_id type sofdk,
        ls_object_id type soodk,
        l_object_id_fol type so_obj_id,
        l_object_id type so_obj_id,
       l_doc_info TYPE sofolenti1,
        l_object_hd_change type sood1,
        l_tab_size type int4,
        l_retype type breltyp-reltype,
        lt_urltab  type standard table of sood-objdes.
    get foler
    l_folder_id = 'FOL29000000000004'.
      call function 'SO_FOLDER_ROOT_ID_GET'
        exporting
         owner                            = sy-uname
          region                           = 'B'
        importing
          folder_id                        = l_folder_id
       tables
         path_table                       =
      if iv_objtp = gc_type_file.
        size = xstrlen( iv_content_hex ).
    get file name and extension
        call method split_path
          exporting
            iv_path           = iv_name
          importing
         E_PATH           =
           ev_filename       = filename
         E_PSERVER        =
        call method split_file_extension
          exporting
            iv_filename_with_ext = filename
          importing
            ev_filename          = objname
            ev_extension         = file_ext.
        ls_doc_change-obj_name = objname.
        ls_doc_change-obj_descr = objname.
        ls_doc_change-obj_langu = sy-langu.
        ls_doc_change-sensitivty = 'F'.
        ls_doc_change-doc_size = size.
        offset = 0.
        while offset <= size.
          offset_old = offset.
          offset = offset + 255.
          if offset > size.
            temp_len = xstrlen( iv_content_hex+offset_old ).
            clear ls_xdata-line with hex_null in byte mode.
            ls_xdata-line = iv_content_hex+offset_old(temp_len).
          else.
            ls_xdata-line = iv_content_hex+offset_old(255).
          endif.
          append ls_xdata to lt_xdata.
        endwhile.
    set object type relation type and other header info
        l_retype = 'ATTA'.
        l_obj_type = 'EXT'.
        l_object_hd_change-objnam = ls_doc_change-obj_name.
        l_object_hd_change-objdes = ls_doc_change-obj_descr.
        l_object_hd_change-objsns = ls_doc_change-sensitivty.
        l_object_hd_change-objla  = ls_doc_change-obj_langu.
        l_object_hd_change-objlen = ls_doc_change-doc_size.
        l_object_hd_change-file_ext = file_ext.
      prepare header
        data lt_obj_header type standard table of solisti1.
        data ls_header type solisti1.
        concatenate '&SO_FILENAME=' filename into ls_header.
        append ls_header to lt_obj_header.
        clear ls_header.
        ls_header = '&SO_FORMAT=BIN'.
        append ls_header to lt_obj_header.
    change hex data to text data
        call function 'SO_SOLIXTAB_TO_SOLITAB'
          exporting
            ip_solixtab = lt_xdata
          importing
            ep_solitab  = lt_data.
      else.
    for note
        size = strlen( iv_content ).
        objname = iv_name.
        ls_doc_change-obj_descr = objname.
        ls_doc_change-sensitivty = 'O'.
        ls_doc_change-obj_langu  = sy-langu.
    put content into table
        offset = 0.
        if iv_objtp = gc_type_note.
    it's a note
          l_retype = 'NOTE'.
          l_obj_type = 'RAW'.
          l_object_hd_change-file_ext = 'TXT'.
    read note content into table
          while offset <= size.
            offset_old = offset.
            offset = offset + 255.
            if offset > size.
              temp_len = strlen( iv_content+offset_old ).
              clear ls_data-line.
              ls_data-line = iv_content+offset_old(temp_len).
            else.
              ls_data-line = iv_content+offset_old(255).
            endif.
            append ls_data to lt_data.
          endwhile.
    get title from content , if it's initial
          if objname is initial.
            read table lt_data index 1 into l_document_title.
            while l_document_title+49 <> ' '.
              shift l_document_title right.
            endwhile.
            shift l_document_title left deleting leading ' '.
            ls_doc_change-obj_descr = l_document_title.
          endif.
        else.
    it's url (not note)
          l_retype = 'URL'.
          l_obj_type = 'URL'.
          if objname is initial.
            split iv_content at '/' into table lt_urltab.
            describe table lt_urltab lines l_tab_size.
            read table lt_urltab index l_tab_size into ls_doc_change-obj_descr.
          endif.
          while offset <= size.
            offset_old = offset.
            offset = offset + 250.
            if offset > size.
              temp_len = strlen( iv_content+offset_old ).
              clear ls_data-line.
              ls_data-line = iv_content+offset_old(temp_len).
            else.
              ls_data-line = iv_content+offset_old(250).
            endif.
            concatenate '&KEY&' ls_data-line into ls_data-line.
            append ls_data to lt_data.
          endwhile.
        endif.
        ls_doc_change-doc_size = size.
       l_object_hd_change-objnam = ls_doc_change-obj_name.
        l_object_hd_change-objdes = ls_doc_change-obj_descr.
        l_object_hd_change-objsns = ls_doc_change-sensitivty.
        l_object_hd_change-objla  = ls_doc_change-obj_langu.
        l_object_hd_change-objlen = ls_doc_change-doc_size.
      endif.
    save object
      call function 'SO_OBJECT_INSERT'
           exporting
                folder_id                  = l_folder_id
               OBJECT_FL_CHANGE           = OBJECT_FL_CHANGE
                object_hd_change           = l_object_hd_change
                object_type                = l_obj_type
               ORIGINATOR_ID              = OWNER_ID
              OWNER                      = USER-USRNAM
           importing
               OBJECT_FL_DISPLAY          = OBJECT_FL_DISPLAY
               OBJECT_HD_DISPLAY          = OBJECT_HD_DISPLAY
                object_id                  = ls_object_id   "l_doc_info-object_id
           tables
                objcont                    = lt_data
                objhead                    = lt_obj_header
               OBJPARA                    = OBJECT_PARA
               OBJPARB                    = OBJECT_PARB
           exceptions
                component_not_available    = 01
                folder_not_exist           = 06
                folder_no_authorization    = 05
                object_type_not_exist      = 17
                operation_no_authorization = 21
                parameter_error            = 23
                others                     = 1000.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 into ls_message-message.
        ls_message-type = sy-msgty.
        ls_message-id = sy-msgid.
        ls_message-number = sy-msgno.
        ls_message-message_v1 = sy-msgv1.
        ls_message-message_v2 = sy-msgv2.
        ls_message-message_v3 = sy-msgv3.
        ls_message-message_v4 = sy-msgv4.
        append ls_message to rt_messages.
        return.
      endif.
    create relation
      data l_obj_rolea type borident.
      data l_obj_roleb type borident.
    MOVE-CORRESPONDING wd_this->ms_lporb to l_obj_rolea.
      l_obj_rolea-objkey = is_lporb-instid.
      l_obj_rolea-objtype = is_lporb-typeid.
      l_obj_rolea-logsys = is_lporb-catid.
      l_object_id_fol  = l_folder_id.
      l_object_id = ls_object_id.
      concatenate l_object_id_fol l_object_id into l_obj_roleb-objkey respecting blanks.
      l_obj_roleb-objtype = 'MESSAGE'.
      clear l_obj_roleb-logsys.
      call function 'BINARY_RELATION_CREATE'
        exporting
          obj_rolea    = l_obj_rolea
          obj_roleb    = l_obj_roleb
          relationtype = l_retype
        exceptions
          others       = 1.
      if sy-subrc = 0.
        commit work and wait.
       wd_this->MV_UPDATE_FLAG = 'X'.
      else.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 into ls_message-message.
        ls_message-type = sy-msgty.
        ls_message-id = sy-msgid.
        ls_message-number = sy-msgno.
        ls_message-message_v1 = sy-msgv1.
        ls_message-message_v2 = sy-msgv2.
        ls_message-message_v3 = sy-msgv3.
        ls_message-message_v4 = sy-msgv4.
        append ls_message to rt_messages.
        return.
      endif.
    endmethod.
    Edited by: Reyleene Hunt on May 26, 2009 10:05 AM

Maybe you are looking for