Trasfer data to a file

Hi,
I have two internal tables, one for Record Type 1 and the other for Record Type 2.
Now I want to transfer those two records to a PC File.
Does anyone know how to do this?

Hi,
I hope ur preassumption was drop the line1 from itab1 and line2 from itab2, if i see ur example .
Before dropping the desired list onto pc, as in your case see that the required o/p is captured into an final internal table.
In this case you have fields A, B , C say from itab1 and fields D,E,F from itab2.
Now ur o/p is 01ABC
              02DEF
how to capture into third table is clear in the thread.
Note.
Eventhough the the two internal tables have differt structures you can go ahead and declare the final internal table with fields as type char and then move the content.
One thing that you will be requiring now is to <b>SORT</b> the final internal table(collected entries from itab1 and itab2 )  based on some required criteria so that you have the desired sequence in ur final internal table.
Then use Fm for download passing this final internal table .
Regards,
Vijay

Similar Messages

  • HOW CAN U CORRECT THE DATA IN UR FILE WHICH CONTAINS 1 LAKSH RECS

    Hai Frnds,
    i Attend an interview they asked this questions can u know the answeres . tell me .
    In File to file scenario how can we reprocess records which failed records.
    HOW CAN U CORRECT THE DATA IN UR FILE WHICH CONTAINS 1 LAKSH RECS
    Thanks in advance
    thahir

    Hi,
    Refer these links:
    this might help you
    Generic Approach for Validating Incoming Flat File in SAP XI - Part 1
    Generic Approach for Validating Incoming Flat File in SAP XI - Part 1
    validating against schema file for the output XML file
    Informing the sender about bad records
    Regards,
    Nithiyanandam

  • Cannot Interpret the data in the file

    Hi,
    I need to upload rate routing and I have created a BDC program using a sample recording.
    While I am uploading the data from the flat file, I am getting an error message " Cannot Interpret the data in the file ".
    Please help me where I might have gone wrong. I have checked with template in the flat file and it is correct.
    Please do the needful.
    Thanks,
    Ranjan R Jinka
    Edited by: Ranjan Jinka on Apr 29, 2011 8:55 AM

    Hai Ranjan,
    Please, Check this
    " Can not interpret the data in file " error while uploading the data in DB
    - Check the heading of the excel column and filed used in program.
    If possible, please paste the program so the viewers have a better idea and you will get the exact solution.
    Regards,
    Mani

  • Pls Help me with steps to add data from xml file to SAP B1 through B1iSN.

    Pls Help me with steps to add data from xml file to SAP B1 through B1iSN. I  am getting stuck in xsl transformation. not able to understand where the mapping code needs to be added.
    Pls explain me the steps for adding data from xml to B1 quotation step by step.
    thanks and regards
    Priya

    Hi,
    Have you checked this: https://sap.na.pgiconnect.com/p45508295/?launcher=false&fcsContent=true&pbMode=normal ?
    Thanks,
    Gordon

  • No Data in PDF file in FTP server

    Hi All,
    I am trying to place a PDF file in FTP server.
    Used
    CONVERT_OTFSPOOLJOB_2_PDF to convert spool to PDF
    SCMS_TEXT_TO_XSTRING
    FTP_R3_TO_SERVER to transfer data to FTP.
    I am able to see PDF file in FTP and no of pages matches with that of R/3 but there is no data in PDF file.

    To get pdf file , you need to set the itcpo-tdgetotf = 'X' and need to pass in the exporting parameter (options in open_form  function module ).Then in close_form function module take all the data of otfdata table into an internal table . Then use SX_OBJECT_CONVERT_OTF_PDF function module to convert it to pdf.
    I will show with an  example.
    tables itcpo.
    DATA: ch_otf  TYPE  STANDARD  TABLE OF  itcoo.
    DATA: w_otf TYPE itcoo.
    DATA: w_pdf TYPE solisti1. "For PDF
    DATA: i_content_txt TYPE soli_tab.   
    DATA: temp1 TYPE sx_format VALUE 'OTF',
            temp2 TYPE sx_format VALUE 'PDF'.
      DATA: c_printer TYPE sx_devtype VALUE 'PRINTER'.
      DATA: w_transfer_bin TYPE sx_boolean. "Content
      DATA: i_content_bin TYPE solix_tab, "Content
            wa_content_bin TYPE solix,
            i_objhead TYPE soli_tab.
    itcpo-tdnoprint  = 'X'.
      itcpo-tdpreview = 'X'.
      itcpo-tdgetotf = 'X'.
    These three parameters need to be passed along with other required parameters
      CALL FUNCTION 'OPEN_FORM'
           EXPORTING form = xformular
                     language = ekko-spras
                     OPTIONS = itcpo
                     archive_index  = toa_dara
                     archive_params = arc_params
                     device = xdevice
                     dialog = xdialog
                     mail_sender        = sender
                     mail_recipient     = recipient
           EXCEPTIONS canceled = 01.
      CALL FUNCTION 'CLOSE_FORM'
        IMPORTING
          RESULT  = RESULT
        tables
          otfdata = ch_otf.
    LOOP AT ch_otf INTO w_otf.
        CONCATENATE w_otf-tdprintcom w_otf-tdprintpar
        INTO w_pdf.
        APPEND w_pdf TO i_content_txt.
      ENDLOOP.
    converting otf file to pdf file
      CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_PDF'
        EXPORTING
          format_src      = temp1        "'OTF'
          format_dst      = temp2        "'PDF'
          devtype         = c_printer
        CHANGING
          transfer_bin    = w_transfer_bin
          content_txt     = i_content_txt
          content_bin     = i_content_bin
          objhead         = i_objhead
          len             = v_len_in
        EXCEPTIONS
          err_conv_failed = 1
          OTHERS          = 2.
    Then open dataset and transfer to ftp of the content of table content_bin(i_content_bin) as shown in above example.
    I think this will be helpful for you

  • UPLOAD DATA FROM EXCEL FILE

    hi guru,
    I want to upload data from excel file for mm02.. first of all help on the matter of how to upload data from excel...
    i hv used the FM ALSM_EXCEL_TO_INTERNAL_TABLE.. but its not working it uploading garbage value ... so tell me how to used it...
    help me on this matter.

    Check below example.
    parameters :  p_file  LIKE rlgrap-filename OBLIGATORY.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      PERFORM get_file_name.
      PERFORM get_file_to_excel.
    *&      Form  get_file_name
    FORM get_file_name.
      DATA: lv_name LIKE sy-repid.
      lv_name = sy-repid..
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
           EXPORTING
                program_name  = lv_name
                dynpro_number = syst-dynnr
                static        = 'X'
           CHANGING
                file_name     = p_file.
    ENDFORM. " get_file_name
    *&      Form  get_file_to_excel
    FORM get_file_to_excel.
      DATA: idata LIKE alsmex_tabline OCCURS 0 WITH HEADER LINE.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
           EXPORTING
                filename                = p_file
                i_begin_col             = '1'
                i_begin_row             = '2'  "Do not require headings
                i_end_col               = '2'
                i_end_row               = '60000'
           TABLES
                intern                  = idata
           EXCEPTIONS
                inconsistent_parameters = 1
                upload_ole              = 2
                OTHERS                  = 3.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        STOP.
      ENDIF.
    * Get first row retrieved
      READ TABLE idata INDEX 1.
    * Set first row retrieved to current row
      DATA: gd_currentrow TYPE i.
      gd_currentrow = idata-row.
      LOOP AT idata.
    *   Reset values for next row
        IF idata-row NE gd_currentrow.
          APPEND f.  CLEAR f.
          gd_currentrow = idata-row.
        ENDIF.
        CASE idata-col.
          WHEN '0001'.
            f-belnr   = idata-value.
        ENDCASE.
      ENDLOOP.
      APPEND f.  CLEAR f.

  • Upload data from excel file to mii without UDS and PCo

    Hi Experts,
    I am trying to upload data from excel file to mii db without using UDS and PCo. Is there any other ways that we can achieve it.
    I am thinking one solution , writing stored procedure. any other solutions?
    Thanks in advance,
    Eswar.

    Hi,
    Thanks for reply.
    I tried to create OLEDB data server which will point to my excel file in D drive.Its created successfully and i tried to query the datasource using sql query, I am not getting any modes in sql query template.
    can u provide some steps..how to access this file.
    Thanks, Eswar

  • Upload data from excel file to Oracle table

    Dear All,
    I have to upload data from excel file to Oracle table without using third party tools and without converting into CSV file.
    Could you tell me please how can i do this using PLSQl or SQL Loader.
    Thnaks in Advance..

    Dear All,
    I have to upload data from excel file to
    Oracle table without using third party tools and
    without converting into CSV file.
    Could you tell me please how can i do this
    using PLSQl or SQL Loader.
    Thnaks in Advance..As billy mentioned using ODBC interface ,the same HS service which is a layer over using traditional ODBC to access non oracle database.Here is link you can hit and trial and come out here if you have any problem.
    http://www.oracle-base.com/articles/9i/HSGenericConnectivity9i.php[pre]
    Khurram                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Read and write excel sheet data from uploded file in sharepoint site programmatically 2013

    hi team,
    I am working on sharepoint 2013.I want to read and write data in excel sheet (micrsoft excel) from stored file in shrepoint docoumnt library .please suggest me
    vijay

    Hi
    Vijay,
    check those links
    http://www.sharepointwithattitude.com/archives/61
    https://social.technet.microsoft.com/Forums/en-US/e760051b-a92f-473c-9ec9-0f0c36c99e40/read-and-write-excel-sheet-data-from-uploded-file-in-sharepoint-site-programmatically-2013?forum=sharepointdevelopment
    Kind Regards, John Naguib Technical Consultant/Architect MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation. Please remember to mark the reply as answer if it helps.

  • Deleting the data from logical file/unix file

    Hi all.
        I need to delete the all the data from logical file (application server file/unix file).But I dont want to delete the logical file ( only data in the logical file should be deleted, i.e making file empty)
    Thanks in advance.
    Cheers.
    sami

    Hi Sami,
    Refer thsi document https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/4d7aeb7d-0c01-0010-fa8a-a4a8e8968a93.
    Regards,
    Flavya

  • Delete data from a file

    Hi,
    I would like to know , how can I delete a line from a text_file,
    and when it is deleted, I don�t want that there is a gap between
    lines.
    Could it be possible to use class RandomAccessFile to do it?
    Please help me.
    thanks.

    You could do it with a BufferedReader. But there's no way to just magically delete the line. No matter what method you use, you'll have to:
    1) Read all the data in the file up to but not including the line, then write it to the new file.
    2) Skip the line you want to delete.
    3) Read all of the data in the file starting after the line you want to delete going to the end of the file, then write that to the new file as well.
    That's pretty general. Those steps could change if you, say, want the input and output file to be the same (in that case, you could just seek to the end of the line and move all the data after the line back to close the gap, then truncate the end of the file off), or if you are implementing stuff a bit different (for example, reading all the lines into a list, removing the lines from the list, and writing them back to a file).
    Jason

  • How to delete data from a file using IO package

    Hi All,
    i am trying to remove some content of the file.
    this content is not at starting of file not even at end of file.
    can anybody tell me how can i delete number of lines from file using IO package.

    iam having some data in text file .ex:in flowrist.txt
    12/5/07,500,300,6000 like many set of datas are
    there.In these if i want to delete the data based on
    the date which i specified.How to do this specific
    deletion?You need to open a stream to read in the file and then use the indexOf method provided in the Sting class to check if the line contains the date or whatever String you are looking for, if so then skip that line and store or re-write the lines you wish to keep, as well as some extra lines you may wish to add.
    Take a look below at this example found on Google.
    http://www.java-tips.org/java-se-tips/java.io/how-to-read-file-in-java.html
    The above read a file line by line and prints it to console. You should be able to modify this, instead of using System.out to print the line you should use index of to check the lines for a date/String. Index of return -1 if the String you specify is not in the line you parse.

  • Not able to extract performance data from .ETL file using xperf commands. getting error "Events were lost in this trace. Data may be unreliable ..."

    Not able to extract  performance data from .ETL file using xperf commands.
    Xperf Commands:
    xperf –i C:\TempFolder\Test.etl -o C:\TempFolder\BootData.csv  –a process
    Getting following error after executing above command:
    "33288636 Events were lost
    in this trace. 
    Data may be unreliable
    This is usually caused
    by insufficient disk bandwidth for ETW lo
    gging.
    Please try increasing the minimum
    and maximum number of buffers
    and/or
                    the buffer size. 
    Doubling these values would be a good first at
    tempt.
    Please note, though, that
    this action increases the amount of me
    mory
                    reserved
    for ETW buffers, increasing memory pressure on your sce
    nario.
    See "xperf -help start"
    for the associated command line options."
    I changed page size file but its does not work for me.
    Any one have idea, how to solve this problem and extract ETL file data.

    I want to mention one point here. I have total 4 machines out of these 3 machines above
    commands working properly. Only one machine has this problem.<o:p></o:p>
    Hi,
    I consider that you can try to use xperf to collect the trace etl file and see if it can be extracted on this computer:
    Refer to following articles:
    start
    http://msdn.microsoft.com/en-us/library/windows/hardware/hh162977.aspx
    Using Xperf to take a Trace (updated)
    http://blogs.msdn.com/b/pigscanfly/archive/2008/02/16/using-xperf-to-take-a-trace.aspx
    Kate Li
    TechNet Community Support

  • Just moved to Mac from Windows, so far biggest headache is the way folders are treated. I manage several very large websites and involve a lot of files within folders and I need the folders to show the date the last file inside it was changed?

    In my FTP client I can click to sort by date modified which is fine if you are in a folder and then it shows the file dates correctly - but any folders within the root folder don't they seem to display randomly all together at the bottom of the list and it is a nightmare trying to find what folders have files in them that have been changed.
    Is there any way to get the folder to register the last date of a file within it that was modified?

    I dont know the answer yet, but i have noted what appears to be a bug in 10.9 in how it handles folder dates.  Right now i am seeing folder modified dates changing randomly ot "today" - whatever date the parent folder was opened.
    In the past my folders "modified" date was always the same as the last modified date of the items within.  But this only moved down ONE level - if a subfolder's entries were updated the "gradfather" folder did not update.
    But now severa people are reporting random, incorrect folder dates. I hoep this will be corrected soon, but who knows?
    Grant

  • By a sub VI, Writing data countinously to file by a ''Write' button in Main VI??

    Good morning...day  to all !
    I've made a program, where I'm reading data generated by a device connected to a com port. These data are red from the port to an indicator buffer and then, into a file when a button, " write file" are pressed. I've placed the 'WriteDataToFile.VI' in a Sub VI placed in Main VI.
    When my Main Program starts and I switch a start button, a file dialog box opens, so I can choose an existing file or a new file to write data to!
    I want to Make a Button named  " Write file" so when pressed , the Dialog box opens and I can choose a file to write to.
    In that way I can avoid the Self pop up dialog box.
    I've spended the hole weekend  trying doing that, but no succes. The biggist problem by that is:
     To write a continously to a file I  also need to continously read the data from the port, And because of that, I got to write the data to a file as quickly as possible when Red from the port. So I gotta put the WriteDataToFile.VI 'sub', in the ReadData:vi 'Sub'. By that I always get the Dialog box poped up, by each while loop iteration. Just because the Software to the open Dialog Box (Write file), is placed in the ReadDataVI, Sub.
    Please Help me with that Guys , girls, any one, also peoble from Mars To!
    Attachements !!
    Regards
    H.F.Zamzam    
    HFZ
    Attachments:
    ReadDataWriteToFile.vi ‏62 KB

    Hi Zamzam,
    I think the point you should work on is the architecture of your whole application, LabVIEW has very well designed templates.
    If you go to new >> new... >> vi from template >> frameworks >> design pattern >> user interface event handler
    It is a very robust architecture with which you can draw cases for (almost) any kind of event such as a click on a button.
    in your application, you could choose the file to write on the first run, then put the file refnum in a shift register and add an event case handled by the "write to file" button that writes the acquired datas.
    You could even go further and set that "wite fo file" case on other event, for instance new data from the port com.
    wooopps... I tried to be as clear as I could but english is not my natural language , so please tell me you need some more help
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

Maybe you are looking for

  • Buffalo Linkstation and filename errors

    I've got a Linkstation NAS 250 gig and have been trying out a neat little backup program called Synk Standard 5, in the course of which I've discovered that the Linkstation's linux kernel cannot handle certain characters that appear in file names. I

  • How to add enter-in-insert mode without post-generation steps

    Hello, We'd like to enter one of our pages in insert mode. We found the trick how to do it, there is one step which is a post JHeadstart generation step (add code to Page Definition). I'd like to know if we can avoid this post-generation step Here th

  • Virtual desktop template creation with UR1 - two issues

    There are two new issues affecting Virtual Desktop template creation with WMS 2012 with UR1. Issue #1: Some systems fail to create a new or customized virtual desktop template with UR1 applied. UR1 includes an updated MultiPoint Connector which is co

  • ESS : Career and job - data overview problem

    Hi Experts, I am getting error in ESS -> Career and job -> data overview. Although SSO is successfully configures it asks for login  when i click on data overview link and it always fails for login. Please give me solution Thanks Sameer

  • Start up Issue, Major

    After deleting numerous files, pictures to be exact (not all at once to avoid a system failure) I restarted my computer as a safety precaution. Mind you the computer was working fine, up to that point. Upon start up, it went to a white screen w/a fla