<?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 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/7669150#M1574956</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 create 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 &lt;STRONG&gt;'BAL_LOG_CREATE'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2. Adding messages using FM &lt;STRONG&gt;'BAL_LOG_MSG_ADD'&lt;/STRONG&gt;&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 &lt;STRONG&gt;'BAL_DSP_OUTPUT_INIT'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;5. And finally setting the data to be displayed using FM &lt;STRONG&gt;'BAL_DSP_OUTPUT_SET_DATA'&lt;/STRONG&gt;&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 &amp;lt;&amp;gt; 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;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jatin Grover on Feb 14, 2011 12:19 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Feb 2011 11:18:47 GMT</pubDate>
    <dc:creator>jatin_grover</dc:creator>
    <dc:date>2011-02-14T11:18:47Z</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/7669150#M1574956</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 create 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 &lt;STRONG&gt;'BAL_LOG_CREATE'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2. Adding messages using FM &lt;STRONG&gt;'BAL_LOG_MSG_ADD'&lt;/STRONG&gt;&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 &lt;STRONG&gt;'BAL_DSP_OUTPUT_INIT'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;5. And finally setting the data to be displayed using FM &lt;STRONG&gt;'BAL_DSP_OUTPUT_SET_DATA'&lt;/STRONG&gt;&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 &amp;lt;&amp;gt; 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;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jatin Grover on Feb 14, 2011 12:19 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Feb 2011 11:18:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/log-functionality-issue-in-abap-screen/m-p/7669150#M1574956</guid>
      <dc:creator>jatin_grover</dc:creator>
      <dc:date>2011-02-14T11:18:47Z</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/7669151#M1574957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Your code looks good. But I am not sure on Step 3 and 4 below.&lt;/P&gt;&lt;P&gt;Try calling BAL_DB_SAVE in step 3 and then after saving to database, You can access the message and display on screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Feb 2011 12:00:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/log-functionality-issue-in-abap-screen/m-p/7669151#M1574957</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-14T12:00:30Z</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/7669152#M1574958</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 BAL_LOG_MSG_ADD now i am using FM BAL_LOG_MSG_ADD_FREE_TEXT which has solved the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jatin Grover on Mar 1, 2011 11:17 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 16:14:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/log-functionality-issue-in-abap-screen/m-p/7669152#M1574958</guid>
      <dc:creator>jatin_grover</dc:creator>
      <dc:date>2011-02-25T16:14:39Z</dc:date>
    </item>
  </channel>
</rss>

