Comments (2)
Check my fork https://github.com/vidyadharg/ABAP-Logger
I created method ZIF_LOGGER_SETTINGSSET_DISPLAY_PROFILE and ZIF_LOGGER_SETTINGSGET_DISPLAY_PROFILE.
changes in ZCL_logger.
METHOD zif_logger~fullscreen.
DATA:
profile TYPE bal_s_prof,
lt_log_handles TYPE bal_t_logh.
APPEND me->handle TO lt_log_handles.
profile = settings->get_display_profile( ).
IF profile IS INITIAL.
CALL FUNCTION 'BAL_DSP_PROFILE_SINGLE_LOG_GET'
IMPORTING
e_s_display_profile = profile.
ENDIF.
CALL FUNCTION 'BAL_DSP_LOG_DISPLAY'
EXPORTING
i_s_display_profile = profile
i_t_log_handle = lt_log_handles.
ENDMETHOD.
changes in calling program
FORM create_display_profile.
DATA:
lv_expire TYPE aldate_del,
l_s_display_profile TYPE bal_s_prof,
l_s_fcat TYPE bal_s_fcat,
ls_context TYPE zstbal_closing_periods,
lv_col_pos TYPE i.
CONSTANTS : lc_bal_context TYPE lvc_rtname VALUE 'ZSTCLOSEPERIODS'.
DEFINE a_fcat.
l_s_fcat-ref_field = &1.
l_s_fcat-ref_table = &2.
l_s_fcat-col_pos = lv_col_pos = lv_col_pos + 1.
* l_s_fcat-colddictxt = 'S'.
APPEND l_s_fcat TO &3.
CLEAR l_s_fcat.
END-OF-DEFINITION.
* set title of dynpro
l_s_display_profile-title = sy-title.
* set header of tree
l_s_display_profile-head_text = 'Pstng period variant List'.
************* define structure of level 1 in tree
* external number
l_s_fcat-outputlen = 40.
a_fcat 'EXTNUMBER' 'BAL_S_SHOW' l_s_display_profile-lev1_fcat.
************* define structure of level 2 in tree
l_s_fcat-coltext = 'Pstng period variant'.
l_s_fcat-cltxt_add = 'X'.
l_s_fcat-cltxt_len = 12.
* l_s_fcat-is_extern = 'X'.
l_s_fcat-outputlen = 8.
a_fcat 'TX_BUKRS' lc_bal_context l_s_display_profile-lev2_fcat.
l_s_fcat-outputlen = 4.
a_fcat 'BUKRS' lc_bal_context l_s_display_profile-lev2_fcat.
logger = zcl_logger_factory=>create_log(
EXPORTING
object = 'FICO'
subobject = 'Z123'
desc = 'ALL List'
* context = ls_context
settings = zcl_logger_factory=>create_settings(
* )->set_expiry_date( lv_expire
* )->set_autosave( lv_autosave
)->set_must_be_kept_until_expiry( abap_true
)->set_display_profile( EXPORTING i_display_profile = l_s_display_profile context = ls_context
)
).
ENDFORM.
from abap-logger.
I suppose your question has been answered. Please do not hesitate to reopen is issue if need be.
from abap-logger.
Related Issues (20)
- Test classes use APPEND xxx TO yyy on sorted tables HOT 3
- bal_tt_msg type not exist HOT 1
- callback routine useless HOT 5
- adding syst messages no working for methods i,a,e,w,s of zcl_logger HOT 2
- Importance is not propagated when logging a table HOT 4
- Unit tests use non-existing SLG0 subobject HOT 5
- Limited Test Double Framework compatibility? HOT 2
- BAL-Log-Handle remains after destruction of ABAP-Logger HOT 1
- Misleading Name of Method popup() when providing custom Profile
- Build Hierarchy with Logger HOT 1
- Navigation to the application Log is not working for background jobs HOT 2
- Stale project? HOT 4
- Add support for BAPI_ALM_RETURN message structure HOT 1
- ABAP Logger v2 HOT 16
- Add injector class to match factory methods
- Add entry to log with context don't work if obj_to_log is an instance of a exception class
- Avoid abbreviations: add methods error, warning, info and success HOT 3
- Read messages from log with context HOT 4
- Option to use grid for DISPLAY_AS_POPUP HOT 1
- System message is logged if initial object is passed to as object to log HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from abap-logger.