Application Development 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: 

Update Function module - How to provide detailed messages in case of errors

Former Member
0 Kudos

Hello everyone,

I am using update function modules. When there is a error, the Message i provide goes to inbox and i get a express message.

I am looking for ways to provide detailed messages (multiple lines) and i also need to add the error message returned by the BAPI

Providing a long text for the MESSAGE also does not work.

How can i achieve this ?

Thanks

2 REPLIES 2

kesavadas_thekkillath
Active Contributor
0 Kudos

Hi,

The express message is because the update functions executes in background.

You can view the detail messages of updates [Error Information from Update Management|http://help.sap.com/saphelp_nw04/helpdata/en/e5/de874735cd11d3acb00000e83539c3/content.htm]

For your requirement have alook at [Application Log and Application-Specific Error Tables|http://help.sap.com/saphelp_nw04/helpdata/en/a5/3ec9f74ac011d1894e0000e829fbbd/content.htm]

There are some functions avaibale for this and is mentioned in the document.

Keshav

Former Member
0 Kudos

Hi ,

try something like this...

TRY.

UPDATE (table)

SET (set_expr)

WHERE (condition).

CATCH cx_sy_dynamic_osql_error.

MESSAGE `Error in update!` TYPE 'I'.

ENDTRY.

regards

Prabhu