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

Reg output in Function module

Former Member
0 Likes
691

Under Function Module

Exporting parameter

*" EXPORTING

*" VALUE(Y_HIGHEST_MSGTYPE) LIKE TE950-DISPLAY_MOVEIN

Here I want to do Error out one Message based on condition.

I Written condition, but how should I incorporate error as output in exporting parameter .

This T9950-DISPlay_movein having following parameters

fields

MSGNR(3)

BPWMODE(1)

DISPLAY_BPE(1)

DISPLAY_BPA(1)

DISPLAY_BPI(1)

Thanks,

Sonar

5 REPLIES 5
Read only

Former Member
0 Likes
665

Hi Sonar,

I hope you are referring to a custom FM. If it is standard, please mention the name and people would be able to provide the details.

To get the error messages, you can create and Error Internal Table and pass it to your Tables parameter. Later on read this table and show your messages.

If you have issues, please elaborate a little more, cut paste some code and it will easier to analyze.

Read only

0 Likes
665

It is an enhancement

i want show one error message no. as outout

Here my requirement is how to incorpaorate under exporting parameter?

Read only

0 Likes
665

which version of sap you are using?

Read only

0 Likes
665

SAP ECC 6.0

Read only

Former Member
0 Likes
665

Hi Sonar,

You can use following statement in FM.

MESSAGE <>TYPE 'E'' RAISING <Exception>.

Hope this helps.

Nag