简体   繁体   中英

Translate standard language text in ABAP

The standard environment is in spanish, but i need to show the error message in english.

The Variable is in the catch and is called text .

TRY.
 INSERT zmxgaspayoclick FROM TABLE it_pagos.  
CATCH cx_sy_open_sql_db INTO oref.
*text = oref->get_text( ).   
ENDTRY.

Is there a command or something to do that?

Note: It is a WebService. Regards.

I think SET LOCALE should work here, see SAP help . You would need to call this before the TRY block.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM