Skip to Content
0
Mar 09, 2009 at 01:26 PM

Getting dump. ''

40 Views

I am getting dump while running this program. Here I am maintaining the input data in text file in my PC. Even though I am getting dump.

Error message:

Runtime Error CALL_FUNCTION_CONFLICT_TYPE

Exception CX_SY_DYN_CALL_ILLEGAL_TYPE

Occurred on 09.03.2009 at 11:36:45

Type conflict when calling a function module.

program:

DATA: BEGIN OF itab OCCURS 0,
        matnr(10),
        werks(4),
        lgort(4),
      END OF itab.


PARAMETERS: p_file LIKE rlgrap-filename.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.

  CALL FUNCTION 'F4_FILENAME'
   EXPORTING
     program_name        = syst-cprog
     dynpro_number       = syst-dynnr
*   FIELD_NAME          = ' '
   IMPORTING
     file_name           = p_file .


START-OF-SELECTION.

  CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      filename                      = p_file
*         FILETYPE                      = 'ASC'
     has_field_separator           = 'X'
*         HEADER_LENGTH                 = 0
*         READ_BY_LINE                  = 'X'
*         DAT_MODE                      = ' '
*       IMPORTING
*         FILELENGTH                    =
*         HEADER                        =
    TABLES
      data_tab                      = itab
   EXCEPTIONS
     file_open_error               = 1
     file_read_error               = 2
     no_batch                      = 3
     gui_refuse_filetransfer       = 4
     invalid_type                  = 5
     no_authority                  = 6
     unknown_error                 = 7
     bad_data_format               = 8
     header_not_allowed            = 9
     separator_not_allowed         = 10
     header_too_long               = 11
     unknown_dp_error              = 12
     access_denied                 = 13
     dp_out_of_memory              = 14
     disk_full                     = 15
     dp_timeout                    = 16
     OTHERS                        = 17
            .
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.


  LOOP AT itab.
    WRITE : / itab-matnr, itab-werks, itab-lgort.
  ENDLOOP.

Please:

Use Code tags

Use a better subject- "Getting a dump" is what a user would say.

Moved to the correct forum

Edited by: Rob Burbank on Mar 9, 2009 9:35 AM