OPEN DATASET and TRANSFER

Hi all,
I open Dataset in Text Mode with default encoding and trying to transfer data from an internal table to TEXT file in application server.
But my internal table has 1 numeric field, so while transfering i am getting error stating: "cannot write Non-chracter field".
So, is there any way to write Non-character fields also using same OPEN Dataset and TRANSFER Statements.
Help will be rewarded.
Sachin

Hi  Saching..
As per UNICODE We cannot transfer Numeric fields to file .
So We must convert the Record to Character format.
This is the Modified code. Changes are in BOLD.
TABLES: ZSACHIN_STUDENT.
PARAMETERS:
OUTFILE(20) DEFAULT 'sachin_test.txt'
LOWER CASE.
TYPES: BEGIN OF st_student,
ID TYPE ZSACHIN_STUDENT-ID,
NAME TYPE ZSACHIN_STUDENT-NAME,
ADDRESS TYPE ZSACHIN_STUDENT-ADDRESS,
STATE TYPE ZSACHIN_STUDENT-STATE,
CITY TYPE ZSACHIN_STUDENT-CITY,
STATUS TYPE ZSACHIN_STUDENT-STATUS,
END OF st_student.
DATA : it_student TYPE STANDARD TABLE OF st_student,
it_student_wa TYPE st_student.
<b>DATA: V_RECORD(200) TYPE C.</b>
OPEN DATASET OUTFILE FOR OUTPUT IN TEXT MODE encoding default.
IF sy-subrc <> 0.
message e001(z_error).
endif.
SELECT * FROM ZSACHIN_STUDENT INTO
CORRESPONDING FIELDS OF TABLE it_student.
<b>LOOP AT it_student INTO it_student_wa.
<b>CONCATENATE IT_student_wa-name
                         IT_student_wa-address
                         IT_student_wa-state
                         IT_student_wa-city
                         IT_student_wa-status
                         INTO V_RECORD
   SEPARATED BY CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.
TRANSFER V_RECORD TO OUTFILE.</b>
ENDLOOP.</b>
CLOSE DATASET OUTFILE.
Here SEPARATED BY is for generating  TAB delimiter .
<b>Reward if Helpful</b>

Similar Messages

  • Open dataset and close dataset

    Hi
    I need to write log file in fileshare.
    I am using the following FM to create the file.
    Z_FILE_OPEN_OUT_UNICODE'
    I have following qns
    1. do i need to use open dataset and close dataset stmts, even I create the files with the FM?

    Hi,
    you can fill in the name of the FM in transaction SE37, then click 'Display' and look at the source code and the 'Tables' tab.
    It's a custom build FM, so you might have to look at the import parameters it needs... ( Tab 'Import' and 'Tables' ).
    To answer your question, as the name of the FM suggests it will write the file for you, so no open/close dataset. Please doublecheck tab 'Source code' and you might find these statements there...
    hope that helps,
    Rolf

  • FCP Crash when opening log and transfer with some AVCHD footage on a card

    Hi,
    I'm using a freshly (re)installed version of FCP 7 on a brand new macbookpro loaded with 8gb ram and equipped with a small 2ghz Intel Core i7
    I get footage shot on Panasonic ag-hmr10 minicams coming on SD cards as AVCHD footage. Sometimes the files are quite big, 17gb of compressed footage.
    When I go to log and transfer, to convert the footage in apple prores, the l/t window opens, I see a preview of my footage, than the spinning beach ball of death shows up and FCP crashes every time. I've tried deleting the preferences and reinstalling the software. Still, it keeps crashing. Now the same file on a different computer equipped with FCP will be processed, slowly but surely.
    Now I know I can work around this problem by going to toast as an encoder, but I want to fix this issue so I can operate from FCP. I've seen this problem posted before but never found any good solution.
    Any suggestions?

    Have you tried setting the L&T AVCHD audio conversion prefs to plain stereo?
    Open the L&T window.
    Click on the gear icon towards the upper center of the frame.
    Select "Plain Stereo" For the AVCHD plugin.
    MtD

  • Open, save and transfer files in Java

    I need to find methods that will enable me to open files using a string (i.e. fileOpen(C:\temp\theDocument.doc), save files in the same way and transfer (or copy) files between drives and directories.
    The files may be of any type (.doc, .jpg, .gif, .pdf, etc).
    Can anyone help me by giving example of code that will enable me to do this, I am new to Java.
    Thanks,
    Lindsay

    Try http://java.sun.com/docs/books/tutorial/essential/io/index.html

  • Why does Final Cut Express 4 quit automatically when I open Log and Transfer window?

         I'm using a Sony NXCAM and I am editing on a Mac OS X. The clips I have recorded are in MTS format so I understand I must use the Log and Transfer setting to import my clips. I plug the camera into my computer, go into Final Cut Express 4, turn the camera on, and then go into the Log and Transfer window. Once I open that, Final Cut quits and an error message pops up that reads, "Final Cut Express quit unexpectedly." Final Cut quits too fast for me to even click on anything in the Log and Transfer window. I really don't understand why it does this. The only thing I can think of why Final Cut is quitting is because I have over 100 clips on the camera, so maybe that is too much for Final Cut Express 4 to handle. However, I wouldn't think that would be the case. If anyone knows of anything I could do to fix this problem, then please send me a reply. I've looked around the internet to see if anyone else has had this problem, but I haven't found anything. Thank you, any responses will be greatly appreciated!
                                            -Snowconedxx39

    Shooted videos directly saved to the SD memory card is no problem, the log and transfer window immediately recognizes the sd card and I was able to convert the videos. I will check later today if this were 25p, 50i or 50p footages.
    Strangely enough is that transferring the .mts files from the internal memory to the sd card (using the Mac finder, I don't know if it is possible within the camera itself) won’t help, the log and transfer window doesn't the recognizes the transferred files, strange!
    I hope that this problem will not occur using Final Cut Pro X, which I will start using soon.
    I'm curious what the exact problem will be.

  • Should i open folder and transfer cd file to n200 or whole fold

    I used mediasource to rip my cds to computer and ended up in widows explorer with a folder for the cd and inside the folder a file with cd in it.when i ripped using windows media i ended up with just a file with cd in it in explorer. In transfering cds using drag and drop from explorer does it make more sense to open folder first and drag file to player to copy?Will this make playback easier on the n200?

    Basically it's up to you. Folders offer some advantage in terms of organisation, and if the player is formatted as FAT you can only have about 30 files and folders in the root of the player's dri've.

  • How to open a pdf file using OPEN DATASET

    Im trying to convert a pdf into binary format. So im trying to read the contents of the pdf into a XSTRING. Using the FM 'SCMS_XSTRING_TO_BINARY' i can convert the XSTRING to binary format.
    How to open a pdf file using OPEN DATASET and transfer its contents in a XSTRING variable.
    What i've tried is....
    DATA: f_name type string value 'C:\rep_output_pdf.pdf',
          x1 type xstring,
          LT_DATA TYPE STANDARD TABLE OF X255.
    OPEN DATASET f_name FOR input IN BINARY MODE.
    READ DATASET f_name INTO x1.
    CLOSE DATASET f_name.
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
        EXPORTING
          BUFFER     = x1
        TABLES
          BINARY_TAB = LT_DATA.
    Im getting a short dump .
    Short text: The file is not open.
    Plz help me out.

    Hello Rajesh,
    You are trying to do use OPEN DATASET with a local file. NOT POSSIBLE
    You have to have the file in the app server to use OPEN DATASET.
    BR,
    Suhas

  • Open Dataset : File creation in server

    Hi Guys,
    I am trying to use  
    Open dataset dsn for output in text mode encoding default.   " dsn = '
    pt-net\taskout\outfile.txt'.
    loop at itab.
    transfer itab to dsn.
    endloop.
    to write a file at a destination on a windows NT server For eg :
    pt-net\taskout\outfile.txt
    I see sy-subrc = 0 at both open dataset and transfer commands in the debugger. But the file is not written.
    I can manually create files when I access this path in my explorer. So it is not an access issue.
    Also, my SAP application server is a Unix server. But the file I am trying to write is in NT server. THis is for  a 3rd party application. Where am I possibly going wrong ? I am able to write this file to the Unix application server path using the above command. But I need to write this in the Windows server.
    Do I need first write to Unix path and then FTP it to Windows server ? I can manually do this. But since this program is going to run as a job, I want to automate this..
    THanks in advance!!

    Hi,
    This is my advice:
    First write the file in the file system of your application server.
    After that find out, what to do for transport on operation system level.
    Since SAP allows system calls, you can do it in the same way by program.
    I give you some code. Unfortunately it is from Windows to Windows. Nevertheless I hope you can profit by it.
    *&      Form  file_to_l66
    FORM file_to_l66  USING src_fpath
                            dest_fname.
    - src_fpath full path of source file
    - dest_fname intended file name for destination
      DATA:
        parcom(250),
        BEGIN OF tabl OCCURS 0,
          line(200),
        END OF tabl,
        str(250).
    drive y free
      parcom = 'y:'.
      CALL 'SYSTEM' ID 'COMMAND' FIELD parcom
                  ID 'TAB'     FIELD tabl-sys.
      IF sy-subrc IS INITIAL.
        RAISE file_to_l66_err_drive_y.
      ENDIF.
    mapping y
    128.1.123.1 ServerL66
      parcom =
        'net use y:
    128.1.123.1\SAPDATA passwd /user:usr01'.
      CALL 'SYSTEM' ID 'COMMAND' FIELD parcom
                  ID 'TAB'     FIELD tabl-sys.
      IF NOT sy-subrc IS INITIAL.
        RAISE file_to_l66_err_mapping_y.
      ENDIF.
    copying
      CONCATENATE 'copy' src_fpath 'y:\' INTO str SEPARATED BY space.
      CONCATENATE str dest_fname INTO parcom.
    example:
      src_fpath  = 'e:\trans\l66.xml'
      dest_fname = 'l66_20080531235959.xml'
      -> parcom = 'copy e:\trans\l66.xml y:\l66_20080531235959.xml'.
      CALL 'SYSTEM' ID 'COMMAND' FIELD parcom
                  ID 'TAB'     FIELD tabl-sys.
      IF NOT sy-subrc IS INITIAL.
        RAISE file_to_l66_err_copying.
      ENDIF.
    release y
      parcom =
        'net use y: /delete'.
      CALL 'SYSTEM' ID 'COMMAND' FIELD parcom
                    ID 'TAB'     FIELD tabl-sys.
      IF NOT sy-subrc IS INITIAL.
        RAISE file_to_l66_err_unmapping_y.
      ENDIF.
    ENDFORM.                    " file_to_l66
    Edited by: Walter Habich on May 22, 2008 4:24 PM

  • Transfering the data using OPEN DATASET

    Hi all,
    I am trying to get the data using OPEN DATASET to down load the data and using TRANSFER i am transfering.
    i got strucked while i am downloading.
    Please send coding how to use open dataset and transfer.
    Thanks in advance
    Venkat

    Hi ,
    you can try this code frangment.
    open the file to be created on application server.
      OPEN DATASET app_path FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
      IF sy-subrc NE 0.
        MESSAGE e001(zs) .
      ELSE.
    get header data
         PERFORM get_data_header.
    *transfer data to application server file.
        TRANSFER v_header TO app_path.
    get segment data
        PERFORM get_data_segment.
    *transfer data to application server file.
        TRANSFER v_segment TO app_path.
    *clear work areas and local variables.
        PERFORM clear_local.
    get trailer record.
        PERFORM get_data_trailer.
    *transfer data to application server file.
        TRANSFER v_trailer TO app_path.
      ENDIF.
      CLOSE DATASET app_path.
    regards,
    Sumit.

  • Open dataset twice once for input and once for output in unicode system

    Hi All,
    In a program
    I used a open dataset to read the data from the file.
    OPEN DATASET cmp_file FOR INPUT IN TEXT MODE
          ENCODING NON-UNICODE.
    Then i closed the file.
    Again later in the program,
    I used a open dataset to transfer the data.
    OPEN DATASET cmp_file FOR OUTPUT IN TEXT MODE
          ENCODING NON-UNICODE.
    But this time I get sy-subrc = 8.
    Unable to open the file and subsequent TRANSFER is leading to the runtime error.
    Note : I am using a unicode system
    I could run the same program well in non-unicode system..
    ->
    Is it that if a file contains data already
    1.I need to delete the data and open it
    or
    2.I need to open in APPENDING mode manadatorily...
    in case of UNICODE system..
    Kindly suggest..

    Hi,
    IF you have write permission al S.O. Level you need to check your DATASET rigths using AUTHORITY_CHECK_DATASET, this validate your rigths with S_DATASET object.
    Example
    TYPE-POOLS SABC.
    CALL FUNCTION 'AUTHORITY_CHECK_DATASET'
    EXPORTING PROGRAM = 'ZDATASET'
    ACTIVITY = SABC_ACT_READ
    FILENAME = '/tmp/sapv01'
    EXCEPTIONS NO_AUTHORITY = 1
    ACTIVITY_UNKNOWN = 2.
    See SABC type pool to know wich activities are aviable.
    Hope this help.
    Regards

  • Open data and close dataset

    code required for  how to upload to application server and download it from application server using open dataset and closedataset.

    Hello bharath,
    Check out this code:
    EPORT Z_CRM_REP_SCORE100 no standard page heading message-id zmsgap.
    *&     Type Declaration
    Types: Begin of t_file,
           BPEXT type BU_BPEXT,               "External Number of Business Partner
           NAME_FIRST type BU_NAMEP_F,        "First Name
           NAME_LAST type BU_NAMEP_L,         "Last Name
           CITY1 type AD_CITY1,               "City
           COUNTRY type AD_COMCTRY,           "Country
           TEL_NUMBER type AD_TLNMBR1,        "Telephone Number
           End of t_file.
    Types: Begin of t_but000,                "External Number of Business Partner
           PARTNER type BU_PARTNER,
           BPEXT type BU_BPEXT,
           NAME_FIRST type BU_NAMEP_F,       "First Name
           NAME_LAST type BU_NAMEP_L,        "Last Name
           PERSNUMBER type AD_PERSNUM,       "Person Number
           ADDRCOMM type BU_ADDRCOMM,        "Address Number
           end of t_but000.
    Types: Begin of t_adr2,
           ADDRNUMBER type AD_ADDRNUM,       "Address Number
           PERSNUMBER type AD_PERSNUM,       "Person Number
           COUNTRY type AD_COMCTRY,          "Country
           TEL_NUMBER type AD_TLNMBR,        "Telephone Number
           End of t_adr2.
    Types: Begin of t_adrc,
           ADDRNUMBER type AD_ADDRNUM,       "Address Number
           CITY1 type AD_CITY1,              "City
           End of t_adrc.
    *&      Internal tables and Work Areas Declaration
    Data: it_file type standard table of t_file,
          wa_file type t_file,
          it_sapdata type standard table of t_file,
          wa_sapdata type t_file,
          it_output type standard table of t_file,
          wa_output type t_file,
          it_but000 type standard table of t_but000,
          wa_but000 type t_but000,
          it_adr2 type standard table of t_adr2,
          wa_adr2 type t_adr2,
          it_adrc type standard table of t_adrc,
          wa_adrc type t_adrc.
    *Variable Declaration for file path
    Data:gv_path type SAPB-SAPPFAD value 'C:\FILE.TXT',
         gv_path1 type string value 'file1.txt'.
    *Variable Declaration for index.
    Data: gv_tabix type sy-tabix.
    *Variable Declaration for Line selection.
    Data: v_fieldname type BUT000-BPEXT,
           v_fieldvalue type BU_BPEXT.
    *Calling subroutine to create flat file in application server.
    Perform f_file_to_server.
    *Calling subroutine to fetch values from flat file into an internal table.
    Perform f_dataset.
    *&      Event Start-of-Selection.
    Start-of-Selection.
    *Calling subroutine to fetch values from table BUT000 into an internal table.
      Perform f_select_but000.
    *Calling subroutine to fetch values from table ADR2 into an internal table.
      Perform f_select_adr2.
    *Calling subroutine to fetch values from table ADRC into an internal table.
      Perform f_select_adrc.
    *&      Event End-of-Selection.
    End-of-Selection.
    *Calling subroutine to fill an internal table with SAP data.
      Perform f_fill_sapdata.
    *Calling subroutine to compare the values between I_SAPDATA and I_FILE.
      Perform f_compare.
    *&      Event At Line Selection.
    At Line-Selection.
    *Checking for list index.
      Case sy-lsind.
    *When list index is 1.
        When '1'.
    *Get the value of external number and apss it to the field value..
          Get Cursor Field v_fieldname value v_fieldvalue.
    *Passing field value to field name.
          wa_sapdata-BPEXT = v_fieldvalue.
          If v_fieldname = 'WA_SAPDATA-BPEXT'.
    *Taking only that value whose External Number exist in the internal table IT_BUT000.
            Read Table it_but000 into wa_but000 with key BPEXT = v_fieldvalue binary search.
    *Checking if value exist.
            If sy-subrc eq 0.
    *If it exists then call BP transaction to change the values for that particualr BP according to Aries data.
              Set Parameter id 'BPA' FIELD WA_BUT000-partner.
              Call Transaction 'BP' and skip first screen..
            Endif.                                                        "End of Sy-subrc check.
          Endif.
        Endcase.
    *&      Form  f_file_to_server
    *       This module is used to create flat file in application server
    *       by using function module ARCHIVFILE_CLIENT_TO_SERVER .
    FORM f_file_to_server .
    *Calling function module to create flat file in application server.
      CALL FUNCTION 'ARCHIVFILE_CLIENT_TO_SERVER'
        EXPORTING
          PATH       = GV_PATH
          TARGETPATH = 'FILE1.TXT '
        EXCEPTIONS
          ERROR_FILE = 1
          OTHERS     = 2.
    *checking if file is created successfully
      IF SY-SUBRC <> 0.
    *If file is not created then display a message.
        Message E009.
      ENDIF.                 "End of Sy-subrc check.
    ENDFORM.                    " f_file_to_server
    *&      Form  f_dataset
    *       This module is used to fetch values from flat file,stored in
    *       application server, into an internal table it_file.
    FORM f_dataset .
    *Opening file from application server.
      Open dataset gv_path1 for input in text mode encoding default.
    *Reading the file.
      While sy-subrc eq 0.
        Read dataset gv_path1 into wa_file.
        Append wa_file to it_file.
        Clear wa_file.
      Endwhile.
    *closing the file in application server.
      Close dataset gv_path1.
    ENDFORM.                    " f_dataset
    *&      Form  f_select_but000
    *       This module is used to select values from table BUT000 into an
    *       internal table i_but000.
    FORM f_select_but000 .
    *Selecting values from table BUT000.
      Select PARTNER
             BPEXT
             NAME_FIRST
             NAME_LAST
             PERSNUMBER
             ADDRCOMM
             From but000 into table it_but000
             where TYPE = '1'
             and BPEXT ne ''
             and ADDRCOMM ne ''.
    *Checking if values are fetched in the internal table.
      If sy-subrc eq 0.
        sort it_but000 by BPEXT PERSNUMBER .
      Endif.                           " End of Sy-subrc check.
    ENDFORM.                    " f_select_but000
    *&      Form  f_select_adr2
    *       This module is used to select values from table ADR2 into an
    *       internal table i_adr2 corresponding to the values in i_but000.
    FORM f_select_adr2 .
    *Checking if internal table i_but000 is not empty.
      If not it_but000[] is initial.
    *Selecting values from table ADR2.
        Select ADDRNUMBER
               PERSNUMBER
               COUNTRY
               TEL_NUMBER
               into table it_adr2
               from adr2
               for all entries in it_but000
               where PERSNUMBER = it_but000-PERSNUMBER.
    *Checking if values are fetched in the internal table.
        If sy-subrc eq 0.
          sort it_adr2 by ADDRNUMBER.         " End of Sy-subrc check.
        Endif.
      Endif.                                  "End of internal table check.
    ENDFORM.                    " f_select_adr2
    *&      Form  f_select_adrc
    *      This module is used to select values from table ADRC into an
    *      internal table i_adrc on the basis of values in i_adr2.
    FORM f_select_adrc .
    *Checking if internal table i_but000 is not empty.
      If not it_adr2[] is initial.
    *Selecting values from table ADRC.
        Select ADDRNUMBER
               CITY1
               from adrc
               into table it_adrc
               for all entries in it_adr2
               where ADDRNUMBER = it_adr2-ADDRNUMBER.
    *Checking if values are fetched in the internal table.
        If sy-subrc eq 0.
          sort it_adrc by ADDRNUMBER.         " End of Sy-subrc check.
        Endif.
      Endif.                                  "End of internal table check.
    ENDFORM.                    " f_select_adrc
    *&      Form  f_fill_sapdata
    *       This module is used to fill values in internal table i_sapdata
    *       with the values selected from BUT000,ADRC and ADR2.
    FORM f_fill_sapdata .
    *Checking if internal table it_but000 is not empty.
      If not it_but000[] is initial.
        Loop at it_but000 into wa_but000.
    *Filling the values of internal table IT_BUT000 into workarea of IT_SAPDATA.
          wa_sapdata-BPEXT = wa_but000-BPEXT.
          wa_sapdata-NAME_FIRST = wa_but000-NAME_FIRST.
          wa_sapdata-NAME_LAST = wa_but000-NAME_LAST.
    *Taking only those values whose Person Number exist in the internal table IT_ADR2.
          Read  table it_adr2 into wa_adr2 with key PERSNUMBER = wa_but000-PERSNUMBER Binary Search.
    *If value exists then populate those values in work area of IT_SAPDATA.
          If sy-subrc eq 0.
            wa_sapdata-COUNTRY = wa_adr2-COUNTRY.
            wa_sapdata-TEL_NUMBER  = wa_adr2-TEL_NUMBER .
    *Taking only those values whose Address Number exist in the internal table I_ADRC.
            Read table it_adrc into wa_adrc with key ADDRNUMBER = wa_adr2-ADDRNUMBER Binary Search.
    *If value exists then populate that value in work area of I_SAPDATA.
            If sy-subrc eq 0.
              wa_sapdata-CITY1 = wa_adrc-CITY1.
            Endif.                              "End of Sy-subrc Check.
          Endif.                                "End of Sy-subrc Check.
    *Inserting workarea of sapdata into its internal table.
          Append wa_sapdata to it_sapdata.
    *Clearing all workareas.
          Clear: wa_adrc,wa_adr2,wa_sapdata.
        Endloop.
      Endif.                                      "End of internal table check.
    *Clearing workarea.
      Clear wa_but000.
    ENDFORM.                    " f_fill_sapdata
    *&      Form  f_compare
    *       This module is used to compare values between the Aries data
    *       and SAP data and display those values which are different.
    FORM f_compare .
    *Checking if internal table it_sapdata is not empty.
      If not it_sapdata[] is initial.
        Loop at it_sapdata into wa_sapdata.
    *Taking only those values whose External Number exist in the internal table IT_FILE.
          Read table it_file into wa_file with key BPEXT = wa_sapdata-BPEXT.
    *Comparing the workareas of two internal tables
          If wa_sapdata ne wa_file.
    *Checking if values of work area donot match then write the header.
            Write: / sy-uline(120).
            Format color 1.
            Write: /1 'External Number' Centered.
            Format Hotspot on.
            Write: 17 wa_sapdata-BPEXT.
            Format Hotspot off.
            Write: 47 sy-vline,
               48 'Aries data' Centered,
               80 sy-vline,
               81 'SAP data' Centered,
               120 sy-vline.
            WRITE: / sy-uline(120).
    *Checking if first name in the aries data and SAP data does not match.
            If wa_sapdata-NAME_FIRST ne wa_file-NAME_FIRST.
    *If it doesnt match then display it using subroutine.
              Perform f_write using 'First Name' wa_file-NAME_FIRST  wa_sapdata-NAME_FIRST.
            Endif.                                                                              " End of Sy-subrc check.
    *Checking if last name in the aries data and SAP data does not match.
            If wa_sapdata-NAME_LAST ne wa_file-NAME_LAST.
    *If it doesnt match then display it using subroutine.
              Perform f_write using 'Last Name' wa_file-NAME_LAST  wa_sapdata-NAME_LAST.
            Endif.                                                                              " End of Sy-subrc check.
    *Checking if city in the aries data and SAP data does not match.
            If wa_sapdata-CITY1 ne wa_file-CITY1.
    *If it doesnt match then display it using subroutine.
              Perform f_write using 'City' wa_file-CITY1  wa_sapdata-CITY1.
            Endif.                                                                             " End of Sy-subrc check.
    *Checking if country in the aries data and SAP data does not match.
            If wa_sapdata-COUNTRY ne wa_file-COUNTRY.
    *If it doesnt match then display it using subroutine.
              Perform f_write using 'Country' wa_file-COUNTRY  wa_sapdata-COUNTRY.
            Endif.                                                                             " End of Sy-subrc check.
    *Checking if phone number in the aries data and SAP data does not match.
            If wa_sapdata-TEL_NUMBER ne wa_file-TEL_NUMBER.
    *If it doesnt match then display it using subroutine.
              Perform f_write using 'Phone Number' wa_file-TEL_NUMBER  wa_sapdata-TEL_NUMBER.
            Endif.                                                                            " End of Sy-subrc check.
          Endif.                                                                               "End of Equality check.
        Endloop.
    *Clearing workareas.
        Clear: wa_sapdata, wa_file.
      Endif.                                                                                "End of internal table check.
    ENDFORM.                    " f_compare
    *&      Form  f_write
    *       This module is used to display the field names which has been
    *       changed in SAP from Aries data.
    *      -->P_field_name   text
    *      -->P_Aries_data   text
    *      -->P_SAP_data     text
    FORM f_write  USING    VALUE(P_field_name)
                           VALUE(P_Aries_data)
                           VALUE(P_SAP_data).
      Format color 2.
      Write : /1 P_field_name,
              47 sy-vline.
      Format color off.
      Write: 48 P_Aries_data,
             80 sy-vline,
             81 P_SAP_data,
             120 sy-vline.
      WRITE: / sy-uline(120).
    ENDFORM.                    " f_write
    Please reward points if helpful.
    Regards,
    Aditi

  • Log and Transfer FCP6 Crashes on open

    Running Snow Leopard on a uni-MBP I open FCP 6.0.6 and try to open Log and Transfer, as soon as I select it the program quits. In the console I get "Unexpectedly Quit" as the error, and nothing more. Everything else works fine except this.
    Anyone know what could be up? I've tried re-installing and have no success at all.
    Thanks!

    Sorry you're having so much trouble. You did not say if you ad run all of the updates after reinstalling FCP. Be sure to do that, too. How you uninstalled FCP can make a huge difference; you want Jon Chapell's free FCP uninstaller app, see digitalrebellion.com
    We've seen many "unexpectedly quit" threads over the last few months. I had my own episode; very frustrating. I ended up deleting Qmaster, reinstalling it from the FCP disks and then running all of the updates again. No clue yet why that needed to be done but it solved MY problem.
    Deleting Qmaster is painless and easy reinstalled (much easier than doing the same with FCP but I have absolutely no idea if Qmaster is related to your situation at all. No idea at all.
    bogiesan

  • Fetch excel file from app. server using open dataset...

    Hello Experts,
    Our functional consultant is asking me if it possible to get an excel file from the
    application server file using OPEN dataset and in background mode? If yes, Please tell me on how to do this.
    Thank you guys and take care!

    Hi Viraylab,
    to download this the procedure:
    you can use the FM 'EXCEL_OLE_STANDARD_DAT ' for this purpose.
    this FM 'EXCEL_OLE_STANDARD_DAT' can be used to start Excel with a new sheet and transfer data from an internal table to the sheet.
    Here are some of the parameters:
    file_name: Name and path of the Excel worksheet file e.g. ?C:TEMPZTEST?
    data_tab: Name of the internal table that should be uploaded to Exvcel
    fieldnames: Internal tabel with column headers
    How to build the field names table:
    data: begin of i_fieldnames occurs 20,
    field(60), end of i_fieldnames.
    i_fieldnames-field = ?This is column 1?. append i_fieldnames-field.
    i_fieldnames-field = ?This is column 2?. append i_fieldnames-field.
    to upload follow this:
    OPEN DATASET dsn FOR INPUT IN BINARY MODE.
    DO.
    READ DATASET dsn INTO itab-field.
    IF sy-subrc = 0.
    APPEND itab.
    ELSE.
    EXIT.
    ENDIF.
    ENDDO.
    [/code]Rob
    or Try this function module.
    FILE_READ_AND_CONVERT_SAP_DATA
    pass 'XLS' to I_FILEFORMAT..
    Dont forgot to Reward me points .....All the very best....
    Regards,
    Sreenivasa sarma K.

  • OPEN DATASET in ABAP MAPPING

    Hi Gurus
    I'm trying to use the statement OPEN DATASET into a  ABAP MAPPING but when I test in ID I get this error:
    <Trace level="1" type="T">Error in mapping program ZCL_FI_CFD_MEX (type SAP-ABAP, kernel error ID UNCAUGHT_EXCEPTION) </Trace>
    Also I've a ABAP program to test MAPPING and in debbuging time OPEN DATASET is everything OK.
    Can I use any ABAP statement in ABAP MAPPING?
    Thanks in advance.
    Carlos

    Hello Carlos,
    Please check exception handling implementation in your ABAP mapping - precisely speaking, handling of exceptions for OPEN DATASET. From error message you receive, it is seen that the exception is raised in OPEN DATASET and this exception is not handled. List of exceptions that can occur when calling OPEN DATASET is given below (taken from ABAP documentation):
    CX_SY_FILE_OPEN / DATASET_REOPEN
    CX_SY_CODEPAGE_CONVERTER_INIT / CONVT_CODEPAGE_INIT
    CX_SY_CONVERSION_CODEPAGE / CONVT_CODEPAGE
    CX_SY_FILE_AUTHORITY /OPEN_DATASET_NO_AUTHORITY, OPEN_PIPE_NO_AUTHORITY
    CX_SY_PIPES_NOT_SUPPORTED
    CX_SY_TOO_MANY_FILES / DATASET_TOO_MANY_FILES
    Non-catchable exception / DATASET_PIPE_POSITION
    Please let me know what exactly exception occurs so that more accurate analysis of the issue could be provided to you.
    Please also provide source code extract of the affected mapping program (the part where OPEN DATASET is called) if possible.
    Regards,
    Vadim

  • How to use TYPE addition with the OPEN DATASET ?

    Hi,
    How to use TYPE addition with the OPEN DATASET and what is the use ?
    For Example:
    OPEN DATASET 'test.dat'
      TYPE 'lrecl=80, blksize=8000, recfm=FB'
      FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    Also, if I wish to do the same for a .CSV file how can we do it.
    Thanks,
    -Sid

    Hi,
    OPEN DATASET 'test.dat'
      TYPE 'lrecl=80, blksize=8000, recfm=FB'
      FOR OUTPUT IN TEXT MODE ENCODING DEFAULT
    For more information press F1 on OPEN DATASET.
    Thanks

Maybe you are looking for

  • While transporting a role getting issue - Role type is undetermined

    Hi While trying to transport a single role getting the below error : Role type is undetermined. Can somebody help? Regards Saurabh

  • Why does iTunes suck so bad?

    I use iTunes for Windows and the program is awful. Great if I'm looking to buy music, terrible for actually playing said music. It freezes the first time I open it every time I turn on my computer. I can't change it's audio output to play through the

  • How do I fix that my preferred@icloud email is attached to the wrong Apple ID?

    I have two Apple IDs.  I use one of them for iTunes and the AppStore to purchase music and aps.  The other is my main Apple ID for my iPhone and iPad, and I have purchased extra iCloud storage for that Apple ID.  My problem is that I have an @iCloud.

  • Waking from sleep issues

    Hi, I have a 17" G-5 i-sight imac, running os 10.4.8, and have been having wake from sleep issues similar to what others have posted. These first showed up in late August. About 25 % of the time, when waking the computer from sleep the screen remains

  • New Field in MB51

    Hi... please help for my problem bellow, How to add new field "Good Recipient" in report MB51. Thanks Before. -ely-