Professional Documents
Culture Documents
SAP CRM - Reading Messages and Exceptions After Calling CRM Order Maintain
SAP CRM - Reading Messages and Exceptions After Calling CRM Order Maintain
SAP CRM
Powered by Acorel, SAP experts
Links
Acorel
Acorel on Facebook
blog.acorel.nl/2012/05/reading-messages-and-exceptions-after.html 1/6
2/18/13 SAP CRM: Reading messages and exceptions after calling CRM order maintain
DATA:
lt_log_handle TYPE bal_t_logh.
The code below reads the exceptions for the log handles, determined in step 1.
Followers
FIELD-SYMBOLS:
<lfs_log_handle> TYPE balloghndl.
* Get Exception(s)
LOOP AT lt_log_handle ASSIGNING <lfs_log_handle>.
CALL FUNCTION 'CRM_MESSAGES_GET_EXCEPTIONS'
EXPORTING
iv_log_handle = <lfs_log_handle>
iv_from_regmsg = abap_true
IMPORTING Already a member? Sign in
et_exception = lt_exception
blog.acorel.nl/2012/05/reading-messages-and-exceptions-after.html 2/6
2/18/13 SAP CRM: Reading messages and exceptions after calling CRM order maintain
EXCEPTIONS
parameter_error = 1
not_found =2 Subscribe To
OTHERS = 3.
ENDLOOP. Posts
Comments
The code below processes all exceptions, determined in step 2. ▼ 2012 (52)
► December (4)
► November (4)
DATA:
ls_msg TYPE bal_s_msg.
► October (5)
► September (4)
FIELD-SYMBOLS:
<lfs_exception> TYPE crmt_exception. ► August (5)
► July (4)
* Get Exception Message(s)
LOOP AT lt_exception ASSIGNING <lfs_exception>. ► June (4)
CLEAR ▼ May (5)
ls_msg.
Reading
CALL FUNCTION 'CRM_MESSAGES_GET_MSG_INFO' messages and
EXPORTING exceptions
is_msg_handle = <lfs_exception>-msg_handle after calling
IMPORTING CRM ...
es_msg = ls_msg Using
EXCEPTIONS webservices
not_found =1 and document
wrong_context_structure = 2 templates to
data_error =3 genera...
OTHERS = 4.
Disable change
ENDLOOP.
documents for
tables created
blog.acorel.nl/2012/05/reading-messages-and-exceptions-after.html 3/6
2/18/13 SAP CRM: Reading messages and exceptions after calling CRM order maintain
The actual message and it’s attributes are stored in structure “LS_MSG”. using ...
Guide to SAP
Netweaver
Gateway
OData &
Sybase Unwi...
Display specific
actions as
buttons in the
CRM Web...
► April (4)
► March (4)
► February (5)
► January (4)
► 2011 (52)
► 2010 (24)
Conclusion Contributors
Although standard function module “CRM_ORDER_MAINTAIN” doesn’t return functional Martijn de Jong
messages and exceptions, it is quite easy to read them.
Emiel Truijen
Posted by Edwin - Acorel at 12:00 PM
Aart Troost
No comments:
Mark Peeters
Post a Comment
blog.acorel.nl/2012/05/reading-messages-and-exceptions-after.html 4/6
2/18/13 SAP CRM: Reading messages and exceptions after calling CRM order maintain
Chantal Witt-Kuenen
Pieter - Acorel
Edwin - Acorel
Roel Rutten
Jeroen Rikhof
Olaf Pohlmann
Subscribe to: Post Comments (Atom)
Aik Leemreize
Nick Acorel
Gert-Jan Stolmeijer
Pieter Rijlaarsdam
blog.acorel.nl/2012/05/reading-messages-and-exceptions-after.html 5/6
2/18/13 SAP CRM: Reading messages and exceptions after calling CRM order maintain
Contact me
pow ered by
blog.acorel.nl/2012/05/reading-messages-and-exceptions-after.html 6/6