Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

/SAPDMC/LSM_FILE_INFO_GET with MESSAGE_TYPE_UNKNOWN runtime error

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Lawrence,

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

Regards,

John.

3 REPLIES 3

Former Member
0 Kudos

Hi Lawrence,

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

Regards,

John.

0 Kudos

Hi john i've tried that. syst-subrc == 1, but somehow sy-msgty seems to be returning nothing, its just not returning any value

0 Kudos

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.