How to accomodate more than 255 characters in character field

HI All
i need to accomodate more than 255 characters in character field. How can i do that ?
thanks in advance!!!

Hi,
You can try the following things:
1. Use a datatype STRING and check it will work.
2. In se11 transaction goto datatype and search for char* in data elements.
You will find predefined data types ,you can make use of it.
For eg. char2000,char3000,char4000 etc.
Hope this will help.
Regards,
Nitin.

Similar Messages

  • How to display more than 255 characters in the report

    Hi all,
    In my program, i try to output a variable type c length 500 in the report. But this report still keep on display 255 characters only although i had set the line-size to 500.
    Is there any method output all characters?
    thanks,
    Janice

    Hi Janice Yeoh,
      I am assuming this is classical report......And just need to do is increase the line-size in report statement. Find below for small example which i ve tried..
    REPORT  ytest1 LINE-SIZE 500.
    DATA :  BEGIN OF it OCCURS 500,
            v TYPE c,
            END OF it.
    DO 503 TIMES.
      IF sy-index = 500.
        WRITE '500'.
      ELSE.
        WRITE : 'X' NO-GAP.
      ENDIF.
    ENDDO.
    Dont forgot to Reward me points .....All the very best....
    Regards,
    Sreenivasa sarma K.

  • How to display more than 132 characters in a smartform

    Hi Experts,
    I am reading notes/text entries by calling read_text and then passing them in a variable. I want to display the notes. But even after declaring the variable as  LINE2048, it is displaying only 255characters as output length in smartform.
    My code:
    TYPES: BEGIN OF TYP_FINAL,
             PARTNER_NO      TYPE BU_PARTNER,         "Partner No.
            OBJECT_ID       TYPE CRMT_OBJECT_ID_DB,  "Object ID
            PROCESS_TYPE    TYPE CRMT_PROCESS_TYPE,  "Activity Type
           ACTUAL_NOTE     TYPE LINE2048,           "Actual Notes
           END OF TYP_FINAL.
    data : T_FINAL           TYPE STANDARD TABLE OF TYP_FINAL,
              WA_FINAL          TYPE TYP_FINAL.
    data:  v_actualnote     TYPE LINE2048.
              CALL FUNCTION 'READ_TEXT'
                EXPORTING
                 CLIENT                        = SY-MANDT
                  ID                            = C_0002
                  LANGUAGE                      = sy-langu
                  NAME                          = l_name1
                  OBJECT                        = C_BUT000
                TABLES
                  LINES                         = t_line
               EXCEPTIONS
                 ID                            = 1
                 LANGUAGE                      = 2
              IF SY-SUBRC = 0.
               clear: v_accountnote.
               LOOP AT T_LINE INTO WA_LINE.
                 CONCATENATE v_accountnote wa_line INTO v_accountnote SEPARATED BY space.
                 clear: wa_line.
               ENDLOOP.
              wa_final-account_note = v_accountnote.
              clear: v_accountnote.
             ENDIF.
    On the smartformm side, under main window->loop->text(to display the variables).
    How to display more than 255 characters in a smartform.
    Regards,
    Sangeeta.

    why the heck would you use read_text when you want to print a text/note on a form?
    in SAP-Script we use the "INCLUDE"-Statement for this.
    and in smartforms a Text-node of type 'I'.
    you can not write all in one line and expect the system to handle this like a floating text.
    one character takes a cretain amount of space (varying for different characters and font and font sizes).
    you Page has a certain width, so where is the miracle in the thesis that on a sheet of paper with a certain width just a certain amount of characters will fit?

  • Display more than 255 characters in SAP 4.6c version.

    Hi
    Can anyone tell me how to display more than 255 characters in the spool log  of sap or the application server?
    Thanks in advance.
    Geeta

    Hi,
      You have to have some patch.Pls refer to SAP oss notes 626010.
    Pls reward if useful.
    Sushil.

  • How to declare and read a variable more than 255 characters

    Hi Friends,
          Actually i want to declare a variable which can accepts more than 255 characters as input and the same manner i want to read the data and pass the data as a output length more than 255 characters.
      So how can i delcare the data as a field in the table.
    Thanks & Regards
    Gupta

    Hi Raj,
       Thanks for your reply, please privide the further clarification actually by declaring a variable as string i can able to pass 1023 characters form selection screen like that i passed the data to the three varibles and i concatenated those three varibles in to single varible now is there any way to pass the result into the smartform.
      Please give me some techincal stuff on this
    Regards
    Gupta

  • How to declare a custom field more than 255 characters?

    Dear Freinds,
                  I have custom table where one character field name i want more than 255 characters .....the size of the field  i require is  800 .Could any one one let me know how i can increase the size to 800 or is there any way we can declare to size 800 ....as
    normally i know is we can declare only 255 character in size, but i heard there is another way around we can declare . Could any one please help me out.
    regards
    madhuri

    Hi Ruby,
                i have tried changing at dataelement level only..byusingthe standrd ie char 2000  , and i have tried other way by creating a custom domain and for the data type  i have used char and given size as 2000. Wheniam activating it is aying i can use the size range from 0 to 255 characters only......i have tried by declaring as string the data element ...it has taken as zero size as in the string we can use as many characters i can , but when iam trying to  table generator ...it saying i canot declare my field as String .
    please help what i can do to solve this issue.
    thanks
    regards
    madhuri

  • How to send text file as an email attachment havin more than 255 characters

    My requirement is to generate a text file and to send this text file as E-mail attachment. I am using FM 'SO_NEW_DOCUMENT_ATT_SEND_API1' to send the E-mail. but here the limitation is the number of characters per line must not be more than 255 characters whereas in my case it is exceeding 1000 characters per line. could anyone please suggest me what should i do now ? Each field in the text file has to be tab delimited.

    Simplest might well be to use javamail API instead of the two tags that Sites provides, e.g. see email - Sending mail attachment using Java - Stack Overflow for a full example.
    Phil

  • Excel 2007 to Sql server table. Column with more than 255 characters.

    Hi there,
    I am facing a problem while converting data from Excel 2007 to SQL server 2005 table. I am using BIDS 2005.I have an excel file where one particular column has more than 255 characters. I use OLEDB connection for excel file as there is no driver for Excel
    2007 in BIDS2005. I am using Microsoft Office 12.0 Access Database Engine OLE DB Provider for Excel file.
    Next, I changed advanced properties for the column to DT_NTEXT. But when I am getting errors on execution. They are:
    [OLE DB Source [1949]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E21.
    [OLE DB Source [1949]] Error: Failed to retrieve long data for column "action".
    [OLE DB Source [1949]] Error: There was an error with output column "action" (2046) on output "OLE DB Source Output" (1959). The column status returned was: "DBSTATUS_UNAVAILABLE".
    [OLE DB Source [1949]] Error: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "output column "action" (2046)" failed because error code 0xC0209071 occurred, and the error row disposition on "output column "action"
    (2046)" specifies failure on error. An error occurred on the specified object of the specified component.  There may be error messages posted before this with more information about the failure.
    Please advise on how can I deal with columns having more than 255 characters in Excel file.
    Thanks!

    Here is what your connection string should look like for excel source
    Provider
    =Microsoft.Jet.OLEDB.4.0;Data
    Source=c:\temp\test.xls;Extended
    Properties="EXCEL 8.0;HDR=YES";
    http://sqlworkday.blogspot.com/

  • How to display more than 255 chars in background job with ALV Grid ????

    Hi All,
    I am using ALV grid with OO.
    I have used call screen for ALV grid display. I have to display more than 255 characters in width. While running it, I can see the list perfectly.
    But in background mode, the list is truncated after 255 chars.
    Can anybody help how to send complete list(width more than 255 chars) to spool.
    Thanks and Regards,
    Neha

    Hi SAP fan,
    <b>YES you can run the ALV report in background mode.
    To run the report in background do F9 instead of F8, then give immediate and save.
    Now goto Sm35 goto job overview and view the job listed
    Choose the job and press the spool button. It will show the list created on the next page. When u clcik the list u can see the ALV output.
    To see this the job should be in the finished status.
    How to define Periodic Jobs
    1.Execute transaction SM36
    2.Define Job name, Job class, Target server
    3.Click on 'START CONDITION' button
    4.Click on 'Date/Time' button
    5.Enter Scheduled start DATE & TIME. Check mark 'Periodic Job' field. Click on 'Period values' button and select 'Hourly' or 'Dialy' or 'Weekly' or 'Monthly' or Other period and SAVE. Go back to main screen.
    6.Click on 'STEPS' button and enter Program name and Variant under box 'ABAP Program'. Click on 'Print Specification' button and enter Printer name under 'Output device' and SAVE
    7.Click on SAVE button until you get message on bottom of the screen that describes 'Job XYZ saved with status: Scheduled'.
    8.Click on 'Job overview' button or execute SM37 transaction.
    9.Select the appropriate 'Job name', 'User name', 'Job Status' & Schedule date under 'Job start condition' and click on 'Execute' button or press F8.
    10.You will now see all your scheduled JOBS.
    <b>Case: 2</b>
    You can Run in Background but make sure it is alv list, not alv Grid FM. if you are uisng alv list not problem , but if you are using alv grid then you can code like this..
    if sy-batch = ' '.
    call 'REUSE_ALV_GRID_DISPLAY'.
    else.
    call 'REUSE_ALV_LIST_DISPLAY'.
    endif.
    if you are using OO alv then write this code..
    CALL METHOD cl_gui_alv_grid=>offline
                    RECEIVING e_offline = off.
        IF off IS INITIAL.
          CREATE OBJECT g_custom_container
                 EXPORTING container_name = g_container.
        ENDIF.
    <b>Case: 3</b>
    if you are using OO ALV.
    Just before creating the custom container check for the following condition.
    Batch or Web Reporting
    IF cl_gui_alv_grid=>offline( ) IS INITIAL.
    CREATE OBJECT o_custcontainer
    EXPORTING
    container_name = lc_custcontrol
    EXCEPTIONS
    cntl_error = 1
    cntl_system_error = 2
    create_error = 3
    lifetime_error = 4
    lifetime_dynpro_dynpro_link = 5
    OTHERS = 6
    ENDIF.
    You can see the output in Spool in transaction SP01.</b>
    Good Luck and thanks
    AK

  • More than 255 characters in a table text field

    Dear experts,
    i am facing a problem (in WD Alv too) that i can not display more than 255 characters in a single text field.
    I want to display a table containing a description field without a limitation of its length. As soon as providing a (formatted) string longer than 255 characters of length, no interactive form is shown on screen.
    Debugging a while, the following error message occurs;
    ADS: com.adobe.ProcessingException: com.adobe.ProcessingException: XMLFM Exception - PDF render operation exception, reason code: 0 : InvalidXDPException: Xml parsing error: reference to invalid character number (error code 14) ...
    Does anybody have similar problems to mine?
    Did anyone resolve the issue to show more than 255 characters in a table in interactive form?
    Regards,
    Florian Royer
    Edited by: Florian Royer on Feb 11, 2010 2:48 PM

    CALL METHOD lr_service_manager->retrieve
            EXPORTING
              iv_bo_name       = 'cPro_Project' "lv_bo_name "cPro_Project
    *      iv_bo_name      = cl_dpr_api_co=>sc_bo_cprojects "
              iv_bo_node_name =  'Longtext.Root' "lv_bo_node_name "Longtext.Root
              it_keys         = lt_ltext_key
              iv_edit_mode    = '0' "iv_edit_mode "0
            IMPORTING
              et_data         = lt_longtext_mast
              et_failed_keys  = lt_ltext_key_fail.
          READ TABLE lt_longtext_mast INTO ls_longtext_mast INDEX 1.
          MOVE ls_longtext_mast-longtext TO ls_action_item-zz_description.
    This is how i get the text with format (line feeds).
    zz_description is type string.
    My table is on a page, wrapped in a subform. and zz_description is type text field.
    Yes, i maintained "allow multiple lines" and did not limit length somehow.
    The problem arises in portal, pressing the preview button of a zform. providing a string <255 characters of length, everything works fine.
    Edited by: Florian Royer on Feb 11, 2010 3:10 PM

  • Inserting data with more than 255 characters in to MSACCESS through JDBC

    Hi All,
    I have developed a product using servlets,JDBC,HTML.The backend is MS access database.
    I have to provide an option for the user to key in more than 255 characters of data in the textarea & then store it in the access database.But i read that access ODBC driver has a limit of 255 characters.Is this correct.
    I tried changing the Datatype of the field from text to Memo field in MS ACCESS.But when i insert the data using setString method of the PreparedStatement ,it's giving the following SQL exception:SQLException caught:[Microsoft][ODBC Microsoft Access Driver]String data, right truncated (null)
    How do i let an user key in more than 255 characters.Can somebody help me on this please ASAP as this is a very crucial issue which i need to solve by tomorrow.
    Thanks in Advance
    GCR

    hi rashmi,
    HOw bout using CLOB facility to store such large strings?? try it.
    Cheers,
    -Jer

  • More than 255 Characters in 2D barcode

    Hi All,
    We are not able to print more than 255 characters in a 2D barcode which
    is used in a label using a smartform.
    We did Checked note 497380 but cant use SO10 as its a dynamic data.
    Any pointers would be extremely useful.
    Regards,
    Swati

    CALL METHOD lr_service_manager->retrieve
            EXPORTING
              iv_bo_name       = 'cPro_Project' "lv_bo_name "cPro_Project
    *      iv_bo_name      = cl_dpr_api_co=>sc_bo_cprojects "
              iv_bo_node_name =  'Longtext.Root' "lv_bo_node_name "Longtext.Root
              it_keys         = lt_ltext_key
              iv_edit_mode    = '0' "iv_edit_mode "0
            IMPORTING
              et_data         = lt_longtext_mast
              et_failed_keys  = lt_ltext_key_fail.
          READ TABLE lt_longtext_mast INTO ls_longtext_mast INDEX 1.
          MOVE ls_longtext_mast-longtext TO ls_action_item-zz_description.
    This is how i get the text with format (line feeds).
    zz_description is type string.
    My table is on a page, wrapped in a subform. and zz_description is type text field.
    Yes, i maintained "allow multiple lines" and did not limit length somehow.
    The problem arises in portal, pressing the preview button of a zform. providing a string <255 characters of length, everything works fine.
    Edited by: Florian Royer on Feb 11, 2010 3:10 PM

  • How to handle more than 255 char in excel att. in FM SO_DOCUMENT_SEND_API1

    hi all,
    Good morning.
    My requirement is to send a report as an excel attatchment to the respective managers mail box. For this I am using the function module SO_DOCUMENT_SEND_API1 as follows.
    call function 'SO_DOCUMENT_SEND_API1'
    exporting
    document_data =
    put_in_outbox =
    sender_address =
    sender_address_type =
    commit_work =
    tables
    packing_list =
    object_header =
    contents_bin =
    contents_txt =
    receivers =
    exceptions
    too_many_receivers = 1
    document_not_sent = 2
    document_type_not_exist = 3
    operation_no_authorization = 4
    parameter_error = 5
    x_error = 6
    enqueue_error = 7
    others = 8.
    Here the problem is contents_bin is of type SOLISTI1 which takes max 255 characters, As my report columns occupies more than 400 characters, I am unable to get all the column values in excel attachement.
    Can anyone please help me to get all the column values in the excel attachment.
    Thanks in Advance.

    Hi,
    Please check the following extract of a sample program I had executed.It deals with how to handle more that 255 chars in excel att in FM SO_DOCUMENT_SEND_API1
    Hope this helps....
    CONSTANTS: con_cret TYPE x VALUE '0D',  "OK for non Unicode
               con_tab  TYPE X VALUE '09'.  "OK for non Unicode
    data : Begin of wa_output ,
              BUFFER(1000)  TYPE C,  " data to be written into xls format
           End of wa_output.
    data : gt_output LIKE wa_output OCCURS 0 WITH HEADER LINE.
    data : FIELDNAME_OFFSET TYPE I.
    Attachement contents
    DATA: BEGIN OF wa_att_cont.
            INCLUDE STRUCTURE solisti1.
    DATA: END OF wa_att_cont.
    DATA: lt_att_cont LIKE wa_att_cont OCCURS 0.
    data : begin of zdfies occurs 0.
                 include structure dfies.
    data : end of zdfies.
    data : begin of it_field occurs 0,
                 fldname(40) type c,
           end of it_field.
    data : yfilname like RLGRAP-FILENAME value 'C:\Documents and
    Settings\'.
    data : ok_code TYPE sy-ucomm,
           save_ok TYPE sy-ucomm.
    data : flag type i.
    ********************************Variables*****************************
      DATA: lv_count   TYPE i,                   "  count
            lv_forwarder LIKE soud-usrnam,       " Forwarder.
            lv_lines TYPE i.                     " no of lines
    ********************************Structures****************************
      DATA: w_doc_data LIKE sodocchgi1,
            w_sent_all(1) TYPE c,
            ld_sender_address LIKE  soextreci1-receiver,
            ld_sender_address_type LIKE  soextreci1-adr_typ.
    ******Structure for Folder ID
      DATA: BEGIN OF wa_folder_id.
              INCLUDE STRUCTURE soodk.
      DATA: END OF wa_folder_id.
    Folder Contents, change attributes
      DATA: BEGIN OF wa_object_fl_change.
              INCLUDE STRUCTURE sofm1.
      DATA: END OF wa_object_fl_change.
    ******Object definition, change attributes
      DATA: BEGIN OF wa_object_hd_change.
              INCLUDE STRUCTURE sood1.
      DATA: END OF wa_object_hd_change.
    ******Object ID
      DATA: BEGIN OF wa_object_id.
              INCLUDE STRUCTURE soodk.
      DATA: END OF wa_object_id.
    ******Object Defintion.
      DATA: BEGIN OF wa_sood.
              INCLUDE STRUCTURE sood.
      DATA: END OF wa_sood.
    ******User Definition
      DATA: BEGIN OF wa_soud.
              INCLUDE STRUCTURE soud.
      DATA: END OF wa_soud.
    ******Sent to all flag.
      DATA: BEGIN OF wa_sonv.
              INCLUDE STRUCTURE sonv.
      DATA: END OF wa_sonv.
    ******Mail contents
      DATA: BEGIN OF wa_objcont.
              INCLUDE STRUCTURE solisti1.
      DATA: END OF wa_objcont.
    ******Mail header.
      DATA: BEGIN OF wa_objhead.
              INCLUDE STRUCTURE soli.
      DATA: END OF wa_objhead.
    ******Para A
      DATA: BEGIN OF wa_objpara.
              INCLUDE STRUCTURE soparai1.
      DATA: END OF wa_objpara.
    ******Para B
      DATA: BEGIN OF wa_objparb.
              INCLUDE STRUCTURE soparbi1.
      DATA: END OF wa_objparb.
    ******Receivers list
      DATA: BEGIN OF wa_receivers.
              INCLUDE STRUCTURE somlreci1.
      DATA: END OF wa_receivers.
    Pack list
      DATA: BEGIN OF wa_packlist.
              INCLUDE STRUCTURE sopcklsti1.
      DATA: END OF wa_packlist.
      DATA: BEGIN OF wa_att_head.
              INCLUDE STRUCTURE soli.
      DATA: END OF wa_att_head.
    ********************internal tables******************************
      DATA: lt_objcont   LIKE wa_objcont OCCURS 0, "mail contents
            lt_objhead   LIKE wa_objhead OCCURS 0, "mail header
            lt_objpara   LIKE wa_objpara OCCURS 0, "Paragraph A
            lt_objparb   LIKE wa_objparb OCCURS 0, "Paragraph B
            lt_receivers LIKE wa_receivers OCCURS 0," receiver list
            lt_packlist  LIKE wa_packlist OCCURS 0,"Pack list
            lt_att_head  LIKE wa_att_head OCCURS 0."Attachment Header
    **************************Constants***********************************
      CONSTANTS: lc_kreuz LIKE sonv-flag   VALUE 'X', "Outbox flag,
                 lc_colon(1) TYPE c VALUE ':',
                 lc_raw(3) TYPE c VALUE 'RAW',
                 lc_f(1) TYPE c VALUE 'F',
                 lc_u(1) TYPE c VALUE 'U'.
    DATA: w_cnt TYPE i.
    data : wa_edition like t_edition.
    DATA : i_strlen TYPE i,
            i_off TYPE i ,
            i_len TYPE i VALUE 254,
            i_totlen TYPE i,
            lv_fill_space TYPE i,
            lv_split_times TYPE i,
            lv_len TYPE i.
    **>> Populate the attachment contents.*
      LOOP AT gt_output INTO wa_output.
        i_strlen = strlen( wa_output ) .
        IF i_strlen LE 254.
          CONCATENATE con_cret wa_output-buffer
               INTO wa_output-buffer.
          APPEND wa_output-buffer TO lt_att_cont.
        ELSE.               "  i.e the data is more than 255 characters
         DO 4 TIMES.
            i_totlen = i_off + i_len .
            IF i_totlen = 254.
              wa_att_cont = wa_output+i_off(i_len).
              CONCATENATE con_cret wa_att_cont
              INTO wa_att_cont.
              APPEND wa_att_cont TO lt_att_cont.
            ELSE.
          wa_att_cont = wa_output+i_off(i_len). "splitting more than 255
               APPEND wa_att_cont TO lt_att_cont.
            ENDIF.
            IF i_totlen GE i_strlen.
              CLEAR : i_off .
              EXIT.
            ELSE.
              i_off = i_off + 254.
            ENDIF.
          ENDDO.
        ENDIF.
        CLEAR : wa_output.
      ENDLOOP.

  • SQ01 Output fields having more than 255 characters

    Hello,
    I need to show query output more than 255 charaters but system is not allowing
    Here is the Error message:
    List is wider than 255 characters (generation not possible)
    I used SQ01 as t-code to create query.
    How can i show my output more than 255 characters
    Thanks

    Refer SAP Note 857823, ALV grid cannot display more than 128 characters per field and will truncate all the characters beyond if it's an ABAP program
    From my experience it will not display the field at all in SQ01.
    You need to write an abap program and split the field into two fields of length 128 and display side by side.
    Work around:  If you cannot write abap program uncheck (no display in query) that field in SQ02 and generate it. Execute your query and copy the key field use se16n to input in the key fields and use import to excel sheet function to get the required data.

  • More than 255 characters need to be populated in text file of destination.

    Dear experts,
    i am having following scenario in which i am sending the file to a destination system through RFC connection which is having more than 255 characters, But it is not allowing me to enter more than 255
    The code i have written is mentioned below,
    lv_string = '///++++#####$$&&^%$%@$$@@(&@&@#%@&%#464(@)))(@&@&&@*&@)@(&@@%&%&@&@*@&@&&*@&*****^&&*&%$%$$#$##@#$@%%&&*******(((((((((((((((&!@#$$%%%&&(()))_(**&&&&&^^^^%%%%$$$$###'.
    itab-l_string = lv_string.
    CONCATENATE itab-l_string itab-l_string itab-l_string into itab-l_string.
    CONDENSE itab-l_string.
    Append Itab.
    call function 'RFC_REMOTE_FILE'
        DESTINATION 'BJRFC'
        EXPORTING
        FILE = 'D:\tmp\test_ster3.txt'
        WRITE = 'X'
    *FILETYPE = ''
        TABLES
        FILEDATA = itab
        exceptions
        system_failure = 1 message dg_ermsg
        communication_failure = 2 message dg_ermsg.
    Can anybody suggest me how to fetch the requireoutput.

    Dear alex,
    With this output the the following cases appearing in system,
    1) rfc connection is getting failed due to excess length, no file generated
    2)Some times o/p file getting generated with 0KB, i mean there is no data in the output.
    Once agian i am putting the code here
    Kindl suggest
    *& Report  Z_ZIC_ZI001
    REPORT  Z_ZIC_ZI001 line-SIZE 250.
    Data : lv_string type string,
           dg_ermsg TYPE char120.
    Types : begin of ty_itab,
          l_string(2050) type c,
           l_string type string,
          end of ty_itab.
    data : itab type ty_itab occurs 0 with HEADER LINE.
    lv_string = 'I am having following scenario in which i am sending the file to a destination system through RFC connection which is having more than 255 characters, But it is not allowing to enter more than 255 XXXXXXXXXXXXXXFFAFFAGAGAGAGAGG'.
    CONCATENATE  lv_string lv_string lv_string into lv_string.
    CONDENSE lv_string.
    *while strlen( lv_string ) > 255.
        itab-l_string = lv_string+0(255).
        append itab.
        lv_string = lv_string+255.
    *endwhile.
    itab-l_string = lv_string.
    append itab.
    call function 'RFC_REMOTE_FILE'
        DESTINATION 'BJRFC'
        EXPORTING
        FILE = 'D:\tmp\test_ster5.txt'
        WRITE = 'X'
    *FILETYPE = ''
        TABLES
        FILEDATA = itab
        exceptions
        system_failure = 1 message dg_ermsg
        communication_failure = 2 message dg_ermsg.
    if sy-subrc = 0.
    write : 'success'.
    else .
       write : dg_ermsg.
    endif.

Maybe you are looking for