Skip to Content
author's profile photo Former Member
Former Member

CX_SY_IMPORT_MISMATCH_ERROR

Hi All,

I am getting this dump message at my FM call.Please let me know if I am doing something wrong in passing variables.

ls_thead-tdid = 'ST'.
     ls_thead-tdspras = pa_spras.
     ls_thead-tdname = 'Z_TEST_FOOTER'.
     ls_thead-tdobject = 'TEXT'.

CALL FUNCTION 'READ_TEXT'
        EXPORTING
*   CLIENT                        = SY-MANDT
          ID                            = ls_thead-TDID
          LANGUAGE                      = pa_spras
          NAME                          = ls_thead-TDNAME
          OBJECT                        = ls_thead-TDOBJECT
        TABLES
          LINES                         = lt_lines
       EXCEPTIONS
         ID                            = 1
         LANGUAGE                      = 2
         NAME                          = 3
         NOT_FOUND                     = 4
         OBJECT                        = 5
         REFERENCE_CHECK               = 6
         WRONG_ACCESS_TO_ARCHIVE       = 7
         OTHERS                        = 8
                .
      IF SY-SUBRC = 0.

      loop at lt_lines into ls_line.
        concatenate p_lv_string ls_line-tdline into p_lv_string.
      endloop.
      ENDIF.

      write : p_lv_string.

Thanks

Kiran

Please use code tags.

Edited by: Rob Burbank on Jan 19, 2012 10:04 AM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 19, 2012 at 03:04 PM

    How are ls_thead and lt_lines defined?

    Rob

    Edited by: Rob Burbank on Jan 19, 2012 10:05 AM

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 19, 2012 at 03:35 PM

    Hi Kiran,

    Since the code would not compile most likely due to the usage of structure references for ls_thead then I'm thinking there is a problem in your declaration of the parameter pa_spras. I don't see anything else that would really be cause for concern.

    Regards,

    Ryan Crosby

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.