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

how to display success message in function module

Former Member
0 Likes
1,350

Hi Experts,

I am developing new function module regarding URL finder. As per my requirement ,

If USER ID is not provided -display SUCCESS MESSAGE and Provide sy-uname.

how to display success message.if possible can You write the code.

Thanks

raju

Hi Experts,

I am developing new function module regarding URL finder. As per my requirement ,

If USER ID is not provided -display SUCCESS MESSAGE and Provide sy-uname.

how to display success message.if possible can You write the code.

Thanks

raju

2 REPLIES 2
Read only

Former Member
0 Likes
813

Hello,

We can use an exporting parameter like single character field like 'S' for success and 'E' for error instead of a message.

Another option is you can use the Tables parameter and populate Return table with error or success message. Return table of type 'BAPIRET2'.

Hope this might help you!

Regards,

MM Jaffer.

Read only

matt
Active Contributor
0 Likes
813

These are not forums to teach you how to program in ABAP. For that, try a course, buy a book, read the help.