Posted: Mon Jul 07, 2008 4:41 pm Post subject: Exceptions в workflow
В коде программа бизнес-объекта встречается макрос exit_return, генерирующий исключение. Существует ли какая-нибудь транзакция, чтобы посмотреть все исключения в workflow и главное текст message?
Code:
CALL TRANSACTION c_fb02 USING it_bdcdata MODE l_mode
UPDATE 'S'
MESSAGES INTO it_bdcmsg.
IF sy-subrc NE 0.
swc_set_table container 'MSG_TAB' it_bdcmsg.
exit_return 9001 sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Age: 46 Joined: 05 Nov 2007 Posts: 725 Location: КраснАдар
Posted: Tue Jul 08, 2008 12:28 pm Post subject:
Можно зайти в БО (SWO1), встать на интересующий метод и нажать кнопку "Особые ситуации" - получите список эксепшенов с тексатми сообщений.
Собственно, макрос exit_return их и поднимает.
Age: 175 Joined: 04 Oct 2007 Posts: 1218 Location: Санкт-Петербург
Posted: Tue Jul 08, 2008 12:59 pm Post subject:
Может такой способ поможет?
Quote:
The third (and possibly simplest) way to add outcomes to a custom method is to define an exception on the BOR method. Exceptions are automatically possible outcomes in the WF builder (but must be activated in the outcomes tab).
They work exactly like messages, in your code you can raise it with
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG. SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG. Every effort is made to ensure content integrity. Use information on this site at your own risk.