Application Development and Automation 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: 
Read only

regarding message class

Former Member
0 Likes
661

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?

1 ACCEPTED SOLUTION
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
589

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

2 REPLIES 2
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
590

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

Read only

0 Likes
589

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.