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

/SAPDMC/LSM_FILE_INFO_GET with MESSAGE_TYPE_UNKNOWN runtime error

Hi, I can't figure it out why sy-msgty just wouldn't return any value. It just kept on prompting the "MESSAGE_TYPE_UNKNOWN" runtime error, saying that "Only message types A, E, I, W, S, and X are allowed".Please advise, below are the codes.

CALL FUNCTION '/SAPDMC/LSM_FILE_INFO_GET'

EXPORTING

project = p_project

subproj = p_subproj

object = p_object

x_only_used_files = ' '

  • IMPORTING

  • FILE_READ =

  • FILE_CONV =

  • PATH_CONV_LOG =

  • FILE_CONV_LOG =

TABLES

t_lsoinp = i_file

EXCEPTIONS

no_such_object = 1

OTHERS = 2

.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 27, 2007 at 10:21 AM

    Hi Lawrence,

    Just put a breakpoint on the IF syst-subrc NE 0 statement and check the value of SYST-MSGTY.

    Regards,

    John.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Lawrence,

      I have taken a look into the FM, but it's just raising the exception NO_SUCH_OBJECT. Hence no automatic filling of variables in the SYST-structure. You should use your own message in this case.

      Regards,

      John.

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.