Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Getting message-ID and message-TYPE, but not Message?

Hi Friends,

I am not getting message along with ID and TYPE...in my output table parameter..,

Let me show what i did..,

Delared one table parameter to get output message..,

in table parameter of my function module..,

> ET_RETURN LIKE BAPIRET2

And in the TOP include of that function module..,i declared xreturn

data: xreturn like bapiret2 occurs 0 with header line.

And in the source code of that FM, where I want to trigger taht message..,

perform add_message using 'E' 'MID' '001' ' ' 'ASC'
                                        ' '    ' '    ' '    ' '    ' '.
et_return[] = xreturn[].

Here MID is my message ID, where Iam havingg

one error messages like "THERE IS NO OUPUT FOR THIS"

And have a look at above subroutine, which is saved in F include of that FM,

FORM add_message  USING   type
                          id
                          number
                          language
                          format
                          v1
                          v2
                          v3
                          v4
                          field.
  clear xreturn.                                                             
  move type to xreturn-type.
  move id to xreturn-id.
  move number to xreturn-number.
  move v1 to xreturn-message_v1.
  move v2 to xreturn-message_v2.
  move v3 to xreturn-message_v3.
  move v4 to xreturn-message_v4.
  move field to xreturn-field.
  append xreturn.
  clear xreturn.

ENDFORM.

My probelm is, Iam getting this message in output.., But only ID and TYPE

So messsage as empty...??

Infact I am not good with this area, I did all this with reference of other code..!

Where I did mistake..?

Please let me know..!

Thanks,

Naveen.I

Tags:
replied

HI Naveen,

This situation arises when message is not mainatined in your logon language. Just check in SE91 giving your message ID and message number whether it is maintained in your login langauge or not.

SE91>enter message class>enter message number>click on message>goto(in menu bar)-->Translation (here you give logon language and check whether it is mainatined or not)

Srikanth.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question