<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Getting dump. '' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dump/m-p/5257464#M1214472</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error message: &lt;/P&gt;&lt;P&gt;Runtime Error        CALL_FUNCTION_CONFLICT_TYPE       &lt;/P&gt;&lt;P&gt;Exception              CX_SY_DYN_CALL_ILLEGAL_TYPE       &lt;/P&gt;&lt;P&gt;       Occurred on     09.03.2009 at   11:36:45                                                                                &lt;/P&gt;&lt;P&gt;Type conflict when calling a function module.            &lt;/P&gt;&lt;P&gt;                                                          &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;program:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;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 &amp;lt;&amp;gt; 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.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Code tags&lt;/P&gt;&lt;P&gt;Use a better subject- "Getting a dump" is what a user would say.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moved to the correct forum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Mar 9, 2009 9:35 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Mar 2009 13:26:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-09T13:26:18Z</dc:date>
    <item>
      <title>Getting dump. ''</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dump/m-p/5257464#M1214472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error message: &lt;/P&gt;&lt;P&gt;Runtime Error        CALL_FUNCTION_CONFLICT_TYPE       &lt;/P&gt;&lt;P&gt;Exception              CX_SY_DYN_CALL_ILLEGAL_TYPE       &lt;/P&gt;&lt;P&gt;       Occurred on     09.03.2009 at   11:36:45                                                                                &lt;/P&gt;&lt;P&gt;Type conflict when calling a function module.            &lt;/P&gt;&lt;P&gt;                                                          &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;program:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;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 &amp;lt;&amp;gt; 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.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Code tags&lt;/P&gt;&lt;P&gt;Use a better subject- "Getting a dump" is what a user would say.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moved to the correct forum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Mar 9, 2009 9:35 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 13:26:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dump/m-p/5257464#M1214472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-09T13:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Getting dump. ''</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dump/m-p/5257465#M1214473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_file is of type rlgrap-filename. What you need to do is you need to declare the field with string type and pass to Fm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : l_string TYPE string.

l_string = p_file

CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = l_string

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.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 13:29:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dump/m-p/5257465#M1214473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-09T13:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Getting dump. ''</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dump/m-p/5257466#M1214474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: BEGIN OF itab OCCURS 0,
        matnr(10),
        werks(4),
        lgort(4),
      END OF itab.

data : lv_path type string  "----&amp;gt;  Declare a variable of type string
 
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.
 
lv_path = p_file.

  CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      filename                      = lv_path "-------&amp;gt; replace p_file with lv_path
*         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.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; REgards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 13:44:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dump/m-p/5257466#M1214474</guid>
      <dc:creator>Mohamed_Mukhtar</dc:creator>
      <dc:date>2009-03-09T13:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Getting dump. ''</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dump/m-p/5257467#M1214475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Modified Code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itab OCCURS 0,&lt;/P&gt;&lt;P&gt;        matnr(10),&lt;/P&gt;&lt;P&gt;        werks(4),&lt;/P&gt;&lt;P&gt;        lgort(4),&lt;/P&gt;&lt;P&gt;      END OF itab.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;PARAMETERS: p_file LIKE rlgrap-filename.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'F4_FILENAME'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;     program_name        = syst-cprog&lt;/P&gt;&lt;P&gt;     dynpro_number       = syst-dynnr&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FIELD_NAME          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;     file_name           = p_file .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Data :  g_fname type string.  "santosh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move p_file to g_fname.   "santosh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename                      = g_fname          "santosh&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        FILETYPE                      = 'ASC'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     has_field_separator           = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        HEADER_LENGTH                 = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        READ_BY_LINE                  = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        DAT_MODE                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        FILELENGTH                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        HEADER                        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab                      = itab&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     file_open_error               = 1&lt;/P&gt;&lt;P&gt;     file_read_error               = 2&lt;/P&gt;&lt;P&gt;     no_batch                      = 3&lt;/P&gt;&lt;P&gt;     gui_refuse_filetransfer       = 4&lt;/P&gt;&lt;P&gt;     invalid_type                  = 5&lt;/P&gt;&lt;P&gt;     no_authority                  = 6&lt;/P&gt;&lt;P&gt;     unknown_error                 = 7&lt;/P&gt;&lt;P&gt;     bad_data_format               = 8&lt;/P&gt;&lt;P&gt;     header_not_allowed            = 9&lt;/P&gt;&lt;P&gt;     separator_not_allowed         = 10&lt;/P&gt;&lt;P&gt;     header_too_long               = 11&lt;/P&gt;&lt;P&gt;     unknown_dp_error              = 12&lt;/P&gt;&lt;P&gt;     access_denied                 = 13&lt;/P&gt;&lt;P&gt;     dp_out_of_memory              = 14&lt;/P&gt;&lt;P&gt;     disk_full                     = 15&lt;/P&gt;&lt;P&gt;     dp_timeout                    = 16&lt;/P&gt;&lt;P&gt;     OTHERS                        = 17&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  IF sy-subrc  0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  LOOP AT itab.&lt;/P&gt;&lt;P&gt;    WRITE : / itab-matnr, itab-werks, itab-lgort.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 13:59:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dump/m-p/5257467#M1214475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-09T13:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: Getting dump. ''</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dump/m-p/5257468#M1214476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mahaboob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Check the data types of the importing parameter FILE_NAME in the FM F4_FILENAME and the data type of the exporting parameter FILENAME in the FM GUI_UPLOAD. They both appear to be different. You are getting the value of p_file from F4_FILENAME and passing the same to GUI_UPLOAD. And that is the reason why you are getting the type conflict error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to pass the correct format to the FM's and this would solve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swapna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 14:10:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dump/m-p/5257468#M1214476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-09T14:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Getting dump. ''</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dump/m-p/5257469#M1214477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to all...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 14:18:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dump/m-p/5257469#M1214477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-09T14:18:12Z</dc:date>
    </item>
  </channel>
</rss>

