09-22-2011 4:02 AM
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
09-22-2011 4:39 AM
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
09-22-2011 4:55 AM
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