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