Giter Site home page Giter Site logo

Comments (2)

vidyadharg avatar vidyadharg commented on July 24, 2024

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.

sample output...
image

from abap-logger.

AlexandreHT avatar AlexandreHT commented on July 24, 2024

I suppose your question has been answered. Please do not hesitate to reopen is issue if need be.

from abap-logger.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.