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 function modules return parameters

Former Member
0 Likes
373

hi experts,

thnx in advance

i have requirement to make a rfc enabled function mudule, that will return some messages mat be error or information , such as 'read is implausible in sap-isu' etc, so how can make the export parameters of this fm, so that it return such mesages thru export parameters but not thru exceptions

pls help

2 REPLIES 2
Read only

Former Member
0 Likes
340

You can collect the messages that arise in an internal table and export them in you calling program through parameter.

i.e you need to collect the error messages .

Hope you understand it.

Read only

Former Member
0 Likes
340

either you can create a string table as return parameter which will hold your messages, then you can display them.

or a better method can be as seen in BAPIs..

a table of type BAPIRETURN.

just goto SE37, open any BAPI (BAPI* - then F4).

see in the table of type BAPIRETURN.

here you can pass the message details ... and use them from where you have called it.