<?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: BAL_LOG_MSG_ADD not displaying complete message in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bal-log-msg-add-not-displaying-complete-message/m-p/347786#M6649</link>
    <description>&lt;P&gt;Dear &lt;A href="https://answers.sap.com/users/8013/pratishthabhatnagar.html"&gt;Pratishtha Bhatnagar&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Please Let us know clearly about your Query. &lt;/P&gt;&lt;P&gt;Why you are using this FM?&lt;/P&gt;&lt;P&gt;What you are displaying in Report Output?&lt;/P&gt;&lt;P&gt;Here from this FM, you are importing parameters are,&lt;/P&gt;&lt;P&gt;E_S_MSG_HANDLE    -  Message handle&lt;/P&gt;&lt;P&gt;E_MSG_WAS_LOGGED   - Message collected&lt;/P&gt;&lt;P&gt;E_MSG_WAS_DISPLAYED   -  Message output&lt;/P&gt;&lt;P&gt;Here Logged and Displayed parameter is boolean. Msg_Handle is type of structure BALMSGHNDL.&lt;/P&gt;&lt;P&gt;In that structure two fields Log_Handle and Msgnumber.&lt;/P&gt;&lt;P&gt;Those fields length is only 22 characters. &lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/3248-capture.jpg" /&gt;&lt;/P&gt;&lt;P&gt;So you should receive that export parameters with same character length variable.&lt;/P&gt;&lt;P&gt;data: &lt;U&gt;Msg_handle&lt;/U&gt; LIKE BALMSGHNDL OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;         I_LOG_HANDLE type BALLOGHNDL,&lt;/P&gt;&lt;P&gt;         I_S_MSG type BAL_S_MSG.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAL_LOG_MSG_ADD'&lt;BR /&gt;
 EXPORTING&lt;BR /&gt;   I_LOG_HANDLE = I_LOG_HANDLE&lt;/P&gt;&lt;P&gt;      i_s_msg = i_s_msg&lt;/P&gt;&lt;P&gt;
 IMPORTING&lt;BR /&gt;     E_S_MSG_HANDLE = &lt;U&gt;MSG_HANDLE&lt;/U&gt;&lt;/P&gt;&lt;P&gt;    * E_MSG_WAS_LOGGED =&lt;BR /&gt;    * E_MSG_WAS_DISPLAYED =&lt;BR /&gt;* EXCEPTIONS&lt;BR /&gt;
* LOG_NOT_FOUND = 1&lt;BR /&gt;
* MSG_INCONSISTENT = 2&lt;BR /&gt;
* LOG_IS_FULL = 3&lt;BR /&gt;
* OTHERS = 4&lt;BR /&gt;
 .&lt;BR /&gt;
IF sy-subrc &amp;lt;&amp;gt; 0.&lt;BR /&gt;
* Implement suitable error handling here&lt;BR /&gt;
ENDIF.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sivaraj Sadasivam.&lt;/P&gt;</description>
    <pubDate>Tue, 25 Oct 2016 11:10:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-10-25T11:10:32Z</dc:date>
    <item>
      <title>BAL_LOG_MSG_ADD not displaying complete message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bal-log-msg-add-not-displaying-complete-message/m-p/347782#M6645</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;I am using BAL_LOG_MSG_ADD to add message to the log but the ALV in the log is not displaying the complete message. How can i display the complete message in the logs?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 07:02:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bal-log-msg-add-not-displaying-complete-message/m-p/347782#M6645</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-10-25T07:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: BAL_LOG_MSG_ADD not displaying complete message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bal-log-msg-add-not-displaying-complete-message/m-p/347783#M6646</link>
      <description>&lt;P&gt;What do you mean? Are you using the grid or list output? For the grid, it displays up to 255 characters. Can you show a screenshot?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 07:20:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bal-log-msg-add-not-displaying-complete-message/m-p/347783#M6646</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2016-10-25T07:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: BAL_LOG_MSG_ADD not displaying complete message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bal-log-msg-add-not-displaying-complete-message/m-p/347784#M6647</link>
      <description>&lt;P&gt;It is a grid display.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 09:36:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bal-log-msg-add-not-displaying-complete-message/m-p/347784#M6647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-10-25T09:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: BAL_LOG_MSG_ADD not displaying complete message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bal-log-msg-add-not-displaying-complete-message/m-p/347785#M6648</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q: What do you mean exactly?&lt;/P&gt;&lt;P&gt;A: ?&lt;/P&gt;&lt;P&gt;. &lt;/P&gt;Q: Are you using the grid or list output?&lt;P&gt;&lt;STRONG&gt;A: It is a grid display.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;. &lt;/P&gt;&lt;P&gt;Q: For the grid, it displays up to 255 characters. Can you show a screenshot?&lt;/P&gt;&lt;P&gt;A: ?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 10:04:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bal-log-msg-add-not-displaying-complete-message/m-p/347785#M6648</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2016-10-25T10:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: BAL_LOG_MSG_ADD not displaying complete message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bal-log-msg-add-not-displaying-complete-message/m-p/347786#M6649</link>
      <description>&lt;P&gt;Dear &lt;A href="https://answers.sap.com/users/8013/pratishthabhatnagar.html"&gt;Pratishtha Bhatnagar&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Please Let us know clearly about your Query. &lt;/P&gt;&lt;P&gt;Why you are using this FM?&lt;/P&gt;&lt;P&gt;What you are displaying in Report Output?&lt;/P&gt;&lt;P&gt;Here from this FM, you are importing parameters are,&lt;/P&gt;&lt;P&gt;E_S_MSG_HANDLE    -  Message handle&lt;/P&gt;&lt;P&gt;E_MSG_WAS_LOGGED   - Message collected&lt;/P&gt;&lt;P&gt;E_MSG_WAS_DISPLAYED   -  Message output&lt;/P&gt;&lt;P&gt;Here Logged and Displayed parameter is boolean. Msg_Handle is type of structure BALMSGHNDL.&lt;/P&gt;&lt;P&gt;In that structure two fields Log_Handle and Msgnumber.&lt;/P&gt;&lt;P&gt;Those fields length is only 22 characters. &lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/3248-capture.jpg" /&gt;&lt;/P&gt;&lt;P&gt;So you should receive that export parameters with same character length variable.&lt;/P&gt;&lt;P&gt;data: &lt;U&gt;Msg_handle&lt;/U&gt; LIKE BALMSGHNDL OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;         I_LOG_HANDLE type BALLOGHNDL,&lt;/P&gt;&lt;P&gt;         I_S_MSG type BAL_S_MSG.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAL_LOG_MSG_ADD'&lt;BR /&gt;
 EXPORTING&lt;BR /&gt;   I_LOG_HANDLE = I_LOG_HANDLE&lt;/P&gt;&lt;P&gt;      i_s_msg = i_s_msg&lt;/P&gt;&lt;P&gt;
 IMPORTING&lt;BR /&gt;     E_S_MSG_HANDLE = &lt;U&gt;MSG_HANDLE&lt;/U&gt;&lt;/P&gt;&lt;P&gt;    * E_MSG_WAS_LOGGED =&lt;BR /&gt;    * E_MSG_WAS_DISPLAYED =&lt;BR /&gt;* EXCEPTIONS&lt;BR /&gt;
* LOG_NOT_FOUND = 1&lt;BR /&gt;
* MSG_INCONSISTENT = 2&lt;BR /&gt;
* LOG_IS_FULL = 3&lt;BR /&gt;
* OTHERS = 4&lt;BR /&gt;
 .&lt;BR /&gt;
IF sy-subrc &amp;lt;&amp;gt; 0.&lt;BR /&gt;
* Implement suitable error handling here&lt;BR /&gt;
ENDIF.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sivaraj Sadasivam.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 11:10:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bal-log-msg-add-not-displaying-complete-message/m-p/347786#M6649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-10-25T11:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: BAL_LOG_MSG_ADD not displaying complete message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bal-log-msg-add-not-displaying-complete-message/m-p/347787#M6650</link>
      <description>&lt;P&gt;We are using this FM to log error messages in SLG1. so when i am looking for the error message in SLG1 the message is not displayed completely. Some part of it is truncated because of which we are not able to know about the reason of error.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 13:33:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bal-log-msg-add-not-displaying-complete-message/m-p/347787#M6650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-10-25T13:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: BAL_LOG_MSG_ADD not displaying complete message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bal-log-msg-add-not-displaying-complete-message/m-p/347788#M6651</link>
      <description>&lt;P&gt;BAL_LOG_MSG_ADD doesn't
display anything, SLG1 and some of the BAL* FM can display data.&lt;/P&gt;&lt;P&gt;If you correctly fill the
parameters, the message should be correctly displayed, did you map fields'
value in your code or did you use a tool like
cl_ops_ehp_mapping_helper=&amp;gt;map_bapiret2_to_bal_s_msg, also the four
parameter of a message are limited in size to 50 characters. &lt;/P&gt;&lt;P&gt;NB: The displayed tree has
limitations too, but there is easily found options to display a message in a
pop-up.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;There is a trick to add
information, you can add one "context" structure (not too wide) to
the message that can be displayed in SLG1, map a structure to context-value
(max length 256, if possible use char type, Unicode use method
cl_abap_container_utilities=&amp;gt;fill_container_c) and the ddic reference name
to context-tabname.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;
Raymond&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 07:04:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bal-log-msg-add-not-displaying-complete-message/m-p/347788#M6651</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2016-11-04T07:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: BAL_LOG_MSG_ADD not displaying complete message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bal-log-msg-add-not-displaying-complete-message/m-p/347789#M6652</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sorry, I was wrong: a grid displays up to 128 characters and cannot be changed&lt;/STRONG&gt;. Cf note 857823 (ALV Grid: Strings with maximum of 128 characters) -&amp;gt; &lt;A href="https://service.sap.com/sap/support/notes/857823"&gt;https://service.sap.com/sap/support/notes/857823&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 08:07:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bal-log-msg-add-not-displaying-complete-message/m-p/347789#M6652</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2016-11-04T08:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: BAL_LOG_MSG_ADD not displaying complete message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bal-log-msg-add-not-displaying-complete-message/m-p/347790#M6653</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;P&gt;The grid can display values up to 128 characters and cannot be changed. Cf note 857823 (ALV Grid: Strings with maximum of 128 characters) -&amp;gt; &lt;A href="https://service.sap.com/sap/support/notes/857823"&gt;https://service.sap.com/sap/support/notes/857823&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You have to double-click the message to display the whole text. Or create a program to display the log via BAL_DSP_LOG_DISPLAY, and add an additional column in the ALV grid to display the second part of the message, and use a callback routine to fill it (see for example demo program SBAL_DEMO_04_SELF).&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 08:09:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bal-log-msg-add-not-displaying-complete-message/m-p/347790#M6653</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2016-11-04T08:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: BAL_LOG_MSG_ADD not displaying complete message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bal-log-msg-add-not-displaying-complete-message/m-p/347791#M6654</link>
      <description>&lt;P&gt;Double-click or click on display icon trigger two pop-up (if that was not as easy as I supposed)&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Double-click : display message as for any transaction when you double-click on the lower displayed message&lt;/LI&gt;&lt;LI&gt;Click on display icon:  display technical data of cursor selected item, those related to message itself and the fields values of the context structure&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Regards,&lt;BR /&gt;Raymond&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 11:09:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bal-log-msg-add-not-displaying-complete-message/m-p/347791#M6654</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2016-11-04T11:09:44Z</dc:date>
    </item>
  </channel>
</rss>

