SAP R/3 форум ABAP консультантов
Russian ABAP Developer's Club

Home - FAQ - Search - Memberlist - Usergroups - Profile - Log in to check your private messages - Register - Log in - English
Blogs - Weblogs News

Exceptions в workflow



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP
View previous topic :: View next topic  
Author Message
den
Старший специалист
Старший специалист



Joined: 11 Oct 2007
Posts: 103

PostPosted: Mon Jul 07, 2008 4:41 pm    Post subject: Exceptions в workflow Reply with quote

В коде программа бизнес-объекта встречается макрос 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.
Back to top
View user's profile Send private message
John Doe
Модератор
Модератор


Age: 45
Joined: 05 Nov 2007
Posts: 725
Location: КраснАдар

PostPosted: Tue Jul 08, 2008 12:28 pm    Post subject: Reply with quote

Можно зайти в БО (SWO1), встать на интересующий метод и нажать кнопку "Особые ситуации" - получите список эксепшенов с тексатми сообщений.
Собственно, макрос exit_return их и поднимает.
Back to top
View user's profile Send private message Blog
vga
Мастер
Мастер


Age: 85
Joined: 04 Oct 2007
Posts: 1218
Location: Санкт-Петербург

PostPosted: Tue Jul 08, 2008 12:59 pm    Post subject: Reply with quote

Может такой способ поможет?
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

exit_return <exception number> <var1> <var2> <var3> <var4>.

All three are valid ways, which one is suitable depends on your scenario.


How to add outcome to activity step

Как я понял, это активирует отображение текста exepctions в workflow диаграме. Могу ошибаться Sad
Back to top
View user's profile Send private message Blog Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
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.