<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Application log: SLG1 does not show additional (CONTEXT) fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-log-slg1-does-not-show-additional-context-fields/m-p/7646790#M1572732</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Emilia,&lt;/P&gt;&lt;P&gt;I am trying to find in my notes - it was long time ago and I don't have access to client's system. I don't remember really...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prabhu,&lt;/P&gt;&lt;P&gt;Field ID is shown when you run the program, but not in SLG1. This is the problem, not other fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KR,&lt;/P&gt;&lt;P&gt;Igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Apr 2012 12:03:08 GMT</pubDate>
    <dc:creator>former_member185943</dc:creator>
    <dc:date>2012-04-27T12:03:08Z</dc:date>
    <item>
      <title>Application log: SLG1 does not show additional (CONTEXT) fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-log-slg1-does-not-show-additional-context-fields/m-p/7646787#M1572729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I amI creating application log and filling messages in my custom program. In order to provide more information to the user, I am using the CONTEXT field while calling the BAL_LOG_MSG_ADD function. After the main program finishes, the function BAL_DSP_LOG_DISPLAY displays the log as expected. However, the recording of the same app log which can be seen by calling tcode SLG1 does not show the additional fields, only messages. Is there a way to enable these additional data to be shown in SLG1?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Igor&lt;/P&gt;&lt;P&gt;Here is my sample program:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: gs_log     TYPE bal_s_log,
      gs_msg     TYPE bal_s_msg,
      gt_handle  TYPE bal_t_logh,
      gs_handle  LIKE LINE OF gt_handle,
      gs_context TYPE bal_s_ex01,
    l_s_display_profile TYPE bal_s_prof,
    l_s_fcat            TYPE bal_s_fcat.

* create log entry
gs_log-extnumber = 'TEST_APPLOG'.                           "#EC NOTEXT
gs_log-aluser    = sy-uname.
gs_log-alprog    = sy-repid.
gs_log-object    = 'ALERT'.     "possible entries in BALSUB table, maint tcode SLG0
gs_log-subobject = 'ALERT_LCL'.

CALL FUNCTION 'BAL_LOG_CREATE'
  EXPORTING
    i_s_log      = gs_log
  IMPORTING
    e_log_handle = gs_handle.
APPEND gs_handle TO gt_handle.


* add message 3 to log
CLEAR gs_msg.
gs_msg-msgty           = 'W'.
gs_msg-msgid           = 'OO'.
gs_msg-msgno           = '023'.
* add context
gs_context-carrid      = 'LH'.
gs_context-connid      = '0400'.
gs_context-fldate      = '20100101'.
gs_context-id          = '12'.
gs_msg-context-value   = gs_context.
gs_msg-context-tabname = 'BAL_S_EX01'.
CALL FUNCTION 'BAL_LOG_MSG_ADD'
  EXPORTING
    i_s_msg       = gs_msg
    i_log_handle  = gs_handle.

* save log to DB - display with tcode SLG1
CALL FUNCTION 'BAL_DB_SAVE'
  EXPORTING
    i_t_log_handle   = gt_handle.

* get standard display profile
  CALL FUNCTION 'BAL_DSP_PROFILE_SINGLE_LOG_GET'
       IMPORTING
            e_s_display_profile = l_s_display_profile.
* add passenger ID to message table  
  l_s_fcat-ref_table = 'BAL_S_EX01'.
  l_s_fcat-ref_field = 'ID'.
  l_s_fcat-col_pos   = 100.
  APPEND l_s_fcat TO l_s_display_profile-mess_fcat.

* display log (possible w/o saving)
  CALL FUNCTION 'BAL_DSP_LOG_DISPLAY'
  EXPORTING
    i_t_log_handle = gt_handle
    i_s_display_profile    = l_s_display_profile.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2011 08:45:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/application-log-slg1-does-not-show-additional-context-fields/m-p/7646787#M1572729</guid>
      <dc:creator>former_member185943</dc:creator>
      <dc:date>2011-03-03T08:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Application log: SLG1 does not show additional (CONTEXT) fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-log-slg1-does-not-show-additional-context-fields/m-p/7646788#M1572730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Igor,&lt;/P&gt;&lt;P&gt;did you solve this error?&lt;/P&gt;&lt;P&gt;can you share with me your solution?&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;emilia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2012 14:20:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/application-log-slg1-does-not-show-additional-context-fields/m-p/7646788#M1572730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-26T14:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Application log: SLG1 does not show additional (CONTEXT) fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-log-slg1-does-not-show-additional-context-fields/m-p/7646789#M1572731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need to maintain field catalog for those fieilds..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;" here he mainatined only for field 'ID' that why he cant see all the fields on the log"&lt;/P&gt;&lt;P&gt;* add passenger ID to message table&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; l_s_fcat-ref_table = 'BAL_S_EX01'.&lt;/P&gt;&lt;P&gt;&amp;nbsp; l_s_fcat-ref_field = 'ID'.&lt;/P&gt;&lt;P&gt;&amp;nbsp; l_s_fcat-col_pos&amp;nbsp;&amp;nbsp; = 100.&lt;/P&gt;&lt;P&gt;&amp;nbsp; APPEND l_s_fcat TO l_s_display_profile-mess_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 09:08:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/application-log-slg1-does-not-show-additional-context-fields/m-p/7646789#M1572731</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-27T09:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Application log: SLG1 does not show additional (CONTEXT) fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-log-slg1-does-not-show-additional-context-fields/m-p/7646790#M1572732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Emilia,&lt;/P&gt;&lt;P&gt;I am trying to find in my notes - it was long time ago and I don't have access to client's system. I don't remember really...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prabhu,&lt;/P&gt;&lt;P&gt;Field ID is shown when you run the program, but not in SLG1. This is the problem, not other fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KR,&lt;/P&gt;&lt;P&gt;Igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 12:03:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/application-log-slg1-does-not-show-additional-context-fields/m-p/7646790#M1572732</guid>
      <dc:creator>former_member185943</dc:creator>
      <dc:date>2012-04-27T12:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Application log: SLG1 does not show additional (CONTEXT) fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-log-slg1-does-not-show-additional-context-fields/m-p/7646791#M1572733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi igor,&lt;/P&gt;&lt;P&gt;i found a reply to your question on another site:&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.ittoolbox.com/groups/technical-functional/sap-abap/application-log-slg1-does-not-show-additional-context-fields-4075226" title="http://sap.ittoolbox.com/groups/technical-functional/sap-abap/application-log-slg1-does-not-show-additional-context-fields-4075226"&gt;http://sap.ittoolbox.com/groups/technical-functional/sap-abap/application-log-slg1-does-not-show-additional-context-fields-4075226&lt;/A&gt;&lt;/P&gt;&lt;P&gt;i found a way to view the parameters in SLG1:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/96891" /&gt;&lt;/P&gt;&lt;P&gt;if i add the parameter name and value as message 2 and 3 i can view them in the display. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hi prahbu,&lt;/P&gt;&lt;P&gt;igor is right. i need this functionality for slg1. i don't even use the 'BAL_DSP_LOG_DISPLAY' function but if i use it i get the ok list in&amp;nbsp; a z_transaction just not in SLG1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your help guys,&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;emilia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 13:42:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/application-log-slg1-does-not-show-additional-context-fields/m-p/7646791#M1572733</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-27T13:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: Application log: SLG1 does not show additional (CONTEXT) fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-log-slg1-does-not-show-additional-context-fields/m-p/7646792#M1572734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Emilia,&lt;/P&gt;&lt;P&gt;I remember now - this is how I did it exactly! But you still deserve your points for this reply.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 13:51:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/application-log-slg1-does-not-show-additional-context-fields/m-p/7646792#M1572734</guid>
      <dc:creator>former_member185943</dc:creator>
      <dc:date>2012-04-27T13:51:49Z</dc:date>
    </item>
  </channel>
</rss>

