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

display message returned by function module

Hi

I want to display messages returned by function modules in message manager.

all the error message returned by function module get displayed in the form of a dump on enterprise portal which is not user friendly. i tried to capture the messages returned in this way: but it didnt worked.

CALL FUNCTION 'HR_GETEMPLOYEEDATA_FROMUSER'

EXPORTING

username = sy-uname

validbegin = sy-datum

IMPORTING

employeenumber = v_pernr

employeesubgroup = v_subgrp

EXCEPTIONS

user_not_found = 1

countrygrouping_not_found = 2

infty_not_found = 3

OTHERS = 4.

IF sy-subrc IS NOT INITIAL.

CALL METHOD l_message_manager->report_t100_message

EXPORTING

msgid = sy-msgid

msgno = sy-msgno

msgty = sy-msgty

p1 = sy-msgv1

p2 = sy-msgv2

p3 = sy-msgv3

p4 = sy-msgv4.

ENDIF.

Kindly get back to me on the same.

Regards

Vishal Kapoor

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Aug 06, 2007 at 06:05 AM

    What is the error you are getting now? Are you still getting a dump?

    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.