<?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: LOG functionality issue in ABAP screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/log-functionality-issue-in-abap-screen/m-p/7714046#M1579396</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check original language of the message and if it was translated to the language in which the log was created/displayed.&lt;/P&gt;&lt;P&gt;The format you describe is used eg. when there is no translation available.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Feb 2011 21:18:36 GMT</pubDate>
    <dc:creator>former_member182670</dc:creator>
    <dc:date>2011-02-28T21:18:36Z</dc:date>
    <item>
      <title>LOG functionality issue in ABAP screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/log-functionality-issue-in-abap-screen/m-p/7714043#M1579393</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;I am creating a log in a sub-screen using the following flow logic:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create log using FM 'BAL_LOG_CREATE'&lt;/P&gt;&lt;P&gt;2. Adding messages using FM 'BAL_LOG_MSG_ADD'&lt;/P&gt;&lt;P&gt;3. Create a display profile where the column is set as Message text from stru BAL_S_SHOW-T_MSG&lt;/P&gt;&lt;P&gt;4. Initialization of display profile using FM 'BAL_DSP_OUTPUT_INIT'&lt;/P&gt;&lt;P&gt;5. And finally setting the data to be displayed using FM 'BAL_DSP_OUTPUT_SET_DATA'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though everything works fine and log gets generated but in the message text column i get the message no, message class also which i need to suppress which i am not able to figure out how.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below you can find the subroutine called for each message:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM LOG_MSG_ADD USING&lt;/P&gt;&lt;P&gt;value(i_log_handle) TYPE balloghndl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: l_s_msg TYPE bal_s_msg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;define data of message for Application Log&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;l_s_msg-msgty = sy-msgty.&lt;/P&gt;&lt;P&gt;l_s_msg-msgid = sy-msgid.&lt;/P&gt;&lt;P&gt;l_s_msg-msgno = sy-msgno.&lt;/P&gt;&lt;P&gt;l_s_msg-msgv1 = sy-msgv1.&lt;/P&gt;&lt;P&gt;l_s_msg-msgv2 = sy-msgv2.&lt;/P&gt;&lt;P&gt;l_s_msg-msgv3 = sy-msgv3.&lt;/P&gt;&lt;P&gt;l_s_msg-msgv4 = sy-msgv4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;add this message to log file&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'BAL_LOG_MSG_ADD'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_log_handle = i_log_handle&lt;/P&gt;&lt;P&gt;i_s_msg = l_s_msg&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;OTHERS = 1.&lt;/P&gt;&lt;P&gt;IF sy-subrc 0.&lt;/P&gt;&lt;P&gt;MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly suggest me pointers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jatin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 16:18:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/log-functionality-issue-in-abap-screen/m-p/7714043#M1579393</guid>
      <dc:creator>jatin_grover</dc:creator>
      <dc:date>2011-02-25T16:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: LOG functionality issue in ABAP screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/log-functionality-issue-in-abap-screen/m-p/7714044#M1579394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Call FM BAL_DSP_PROFILE_SINGLE_LOG_GET to get the standard display profile, adjust the MESS_FCAT component in the profile structure (ie. remove your unwanted columns), then pass this updated profile when you call 'BAL_DSP_OUTPUT_INIT'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 21:40:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/log-functionality-issue-in-abap-screen/m-p/7714044#M1579394</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-25T21:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: LOG functionality issue in ABAP screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/log-functionality-issue-in-abap-screen/m-p/7714045#M1579395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was doing something similar as to what you suggested but in a different manner like:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM GET_DISPLAY_PROFILE  CHANGING C_S_DISPLAY_PROFILE TYPE BAL_S_PROF.

DATA:
    l_s_fcat                     TYPE bal_s_fcat.

* Message text
  CLEAR l_s_fcat.
  l_s_fcat-col_pos   = 1.
  l_s_fcat-ref_table = 'BAL_S_SHOW'.
  l_s_fcat-ref_field = 'T_MSG'.
  APPEND l_s_fcat TO c_s_display_profile-mess_fcat.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In this case i am only adding T_MSG to the display profile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though i tried the approach which you also told and there is no change in the log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the end result is there are 2 columns in the log:-&lt;/P&gt;&lt;P&gt;1. Type - Displaying the icons&lt;/P&gt;&lt;P&gt;2. Message Text - which is displaying the Messgae type, Message class , message no and message text in one column based on the messages inserted through the subroutine specified on top in the thread.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jatin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Feb 2011 08:10:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/log-functionality-issue-in-abap-screen/m-p/7714045#M1579395</guid>
      <dc:creator>jatin_grover</dc:creator>
      <dc:date>2011-02-28T08:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: LOG functionality issue in ABAP screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/log-functionality-issue-in-abap-screen/m-p/7714046#M1579396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check original language of the message and if it was translated to the language in which the log was created/displayed.&lt;/P&gt;&lt;P&gt;The format you describe is used eg. when there is no translation available.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Feb 2011 21:18:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/log-functionality-issue-in-abap-screen/m-p/7714046#M1579396</guid>
      <dc:creator>former_member182670</dc:creator>
      <dc:date>2011-02-28T21:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: LOG functionality issue in ABAP screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/log-functionality-issue-in-abap-screen/m-p/7714047#M1579397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Messages are defined in EN and the log is also being displayed in EN.&lt;/P&gt;&lt;P&gt;Does the context structure in bal_s_msg have any role in this as this structure is used while calling function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'BAL_LOG_MSG_ADD'
       EXPORTING
            i_log_handle = i_log_handle
            i_s_msg      = l_s_msg
       EXCEPTIONS
            OTHERS       = 1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 07:04:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/log-functionality-issue-in-abap-screen/m-p/7714047#M1579397</guid>
      <dc:creator>jatin_grover</dc:creator>
      <dc:date>2011-03-01T07:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: LOG functionality issue in ABAP screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/log-functionality-issue-in-abap-screen/m-p/7714048#M1579398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd double check if the message really exist.&lt;/P&gt;&lt;P&gt;I can reproduce your symptoms if I populate l_s_msg with wrong data.&lt;/P&gt;&lt;P&gt;If I mistype for example MSGID is see following data in the text column:&lt;/P&gt;&lt;P&gt;"MSGTY:MSGID:MSGNO"&lt;/P&gt;&lt;P&gt;Do you raise the message your self before adding it to the log or it's a result of some standard function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also put a breakpoint in LSBAL_DISPLAY_BASEF05 FORM msg_txt_read to see why it is not getting proper text.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 08:02:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/log-functionality-issue-in-abap-screen/m-p/7714048#M1579398</guid>
      <dc:creator>former_member182670</dc:creator>
      <dc:date>2011-03-01T08:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: LOG functionality issue in ABAP screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/log-functionality-issue-in-abap-screen/m-p/7714049#M1579399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was using the message which is defined in the message class but instead of text it consisted of 4 placeholders i.e. &amp;amp;1 &amp;amp;2 &amp;amp;3 &amp;amp;4 which i was filling in my program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So instead of using FM &lt;EM&gt;&lt;STRONG&gt;BAL_LOG_MSG_ADD&lt;/STRONG&gt;&lt;/EM&gt; now i am using FM &lt;EM&gt;&lt;STRONG&gt;BAL_LOG_MSG_ADD_FREE_TEXT&lt;/STRONG&gt;&lt;/EM&gt; which has solved the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 10:15:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/log-functionality-issue-in-abap-screen/m-p/7714049#M1579399</guid>
      <dc:creator>jatin_grover</dc:creator>
      <dc:date>2011-03-01T10:15:17Z</dc:date>
    </item>
  </channel>
</rss>

