‎2007 Jun 12 11:41 AM
A standard report program is their,in which a character variable is used to fetch the data from the message class.what i have to do is to collect the message from the variable and to give it as a export parameter in my RFC.
can u just guide me how to do that?
‎2007 Jun 12 11:44 AM
Hi,
The convention for returning message from an RFC function module is to have an export parameter ofname RETURN and type BAPIRET2.
You need to provide an export paramter of type BAPIRET2. and in your FM you need to use the code as follows.
DATA: wa_return type BAPIRET2.
CALL FUNCTION 'BALW_BAPIRETURN_GET2'
EXPORTING
type = 'E' "message type
cl = 'MSGCL' "Message class
number = '115' "Message number
IMPORTING
return = wa_return.
Regards,
Sesh
Sesh
Message was edited by:
Seshatalpasai Madala
‎2007 Jun 12 11:44 AM
Hi,
The convention for returning message from an RFC function module is to have an export parameter ofname RETURN and type BAPIRET2.
You need to provide an export paramter of type BAPIRET2. and in your FM you need to use the code as follows.
DATA: wa_return type BAPIRET2.
CALL FUNCTION 'BALW_BAPIRETURN_GET2'
EXPORTING
type = 'E' "message type
cl = 'MSGCL' "Message class
number = '115' "Message number
IMPORTING
return = wa_return.
Regards,
Sesh
Sesh
Message was edited by:
Seshatalpasai Madala
‎2007 Jun 12 1:01 PM
as u mentioned above, for this code it gets the reply for 1 specific msg no ie no-115 but i need a function module which can list out all the specific message numbers.