Advertising:

Create application log in cloud development

From SAP Knowledge Base
Revision as of 11:13, 21 December 2024 by Unirab (talk | contribs) (Created page with "For T1 / cloud developments the familiar function modules(FMs) or classic classes for creating application logs can no loger be used. For this purpose, SAP offers several released classes for cloud development. The object and sub-object should not be created via SLG0, but via Eclipse with ABAP Development Tools. = How to use the classes = == Create new business application log == <syntaxhighlight lang="abap" line copy> TRY. DATA(lo_log) = cl_bali_log=>create( ). CATCH...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

For T1 / cloud developments the familiar function modules(FMs) or classic classes for creating application logs can no loger be used. For this purpose, SAP offers several released classes for cloud development. The object and sub-object should not be created via SLG0, but via Eclipse with ABAP Development Tools.

How to use the classes

Create new business application log

TRY.
DATA(lo_log) = cl_bali_log=>create( ).
CATCH cx_bali_runtime INTO DATA(lx_runtime_exception).
ENDTRY.

This is a wiki created in the spare time of a private person working in the SAP ERP area. The aim is to collect knowledge for the own use. The wiki is maintained to the best of knowledge and belief.
All products shown, including in form of screenshots, belong to SAP SE. Their trademarks are, among others: SAP®,ABAP®,SAP Fiori®,SAP HANA®,SAP NetWeaver®,SAP® R/3®,SAP S/4HANA®,SAP S/4HANA® Cloud