<?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: Populating the error message log (while executing BAdI implementation) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-the-error-message-log-while-executing-badi-implementation/m-p/1513627#M236635</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;put like this &lt;/P&gt;&lt;P&gt;data:   w_msg type standard table of shp_badi_error_log initial size 0,&lt;/P&gt;&lt;P&gt;        msg like line of w_msg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;      msg-msgty  = 'E'.&lt;/P&gt;&lt;P&gt;      msg-msgid  = 'YW2'.&lt;/P&gt;&lt;P&gt;      msg-msgno  = '041'.&lt;/P&gt;&lt;P&gt;      msg-msgv1  =&lt;/P&gt;&lt;P&gt;       'PGI not allowed ,Pls Enter Truck No in Bill of lad.Field'.&lt;/P&gt;&lt;P&gt;      append msg to ct_log.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;In BADI u cannt raise Error Messages but u can Post the Messages to Application Logs, So u have to Update ur messages to CT_LOG.&amp;lt;/b&amp;gt;Regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Prabhu Peram&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Sep 2006 12:49:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-06T12:49:37Z</dc:date>
    <item>
      <title>Populating the error message log (while executing BAdI implementation)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-the-error-message-log-while-executing-badi-implementation/m-p/1513626#M236634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a BAdI to implement CRM_ORDERADM_H_BADI where it will check certain header data. If there is a certain condition that is met, we must not allow the transaction to continue by adding error message on the top (the red button). How can we populate this error log within the BAdI implementation (putting it in codes in the method of the BAdI implementation).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MuJi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Sep 2006 12:48:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-the-error-message-log-while-executing-badi-implementation/m-p/1513626#M236634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-06T12:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Populating the error message log (while executing BAdI implementation)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-the-error-message-log-while-executing-badi-implementation/m-p/1513627#M236635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;put like this &lt;/P&gt;&lt;P&gt;data:   w_msg type standard table of shp_badi_error_log initial size 0,&lt;/P&gt;&lt;P&gt;        msg like line of w_msg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;      msg-msgty  = 'E'.&lt;/P&gt;&lt;P&gt;      msg-msgid  = 'YW2'.&lt;/P&gt;&lt;P&gt;      msg-msgno  = '041'.&lt;/P&gt;&lt;P&gt;      msg-msgv1  =&lt;/P&gt;&lt;P&gt;       'PGI not allowed ,Pls Enter Truck No in Bill of lad.Field'.&lt;/P&gt;&lt;P&gt;      append msg to ct_log.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;In BADI u cannt raise Error Messages but u can Post the Messages to Application Logs, So u have to Update ur messages to CT_LOG.&amp;lt;/b&amp;gt;Regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Prabhu Peram&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Sep 2006 12:49:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-the-error-message-log-while-executing-badi-implementation/m-p/1513627#M236635</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-06T12:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Populating the error message log (while executing BAdI implementation)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-the-error-message-log-while-executing-badi-implementation/m-p/1513628#M236636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Prabhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the type of msg?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also what do you mean by &amp;lt;i&amp;gt;CT_lOG create APPLICATION Log for the transaction.&amp;lt;/i&amp;gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;MuJi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Sep 2006 12:56:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-the-error-message-log-while-executing-badi-implementation/m-p/1513628#M236636</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-06T12:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Populating the error message log (while executing BAdI implementation)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-the-error-message-log-while-executing-badi-implementation/m-p/1513629#M236637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the Changing and Export parameters of the BADI method you are implementing, normally most of the BADIs have a parameter defined to handle error messages.  My system doesnt have the enhancement otherwise would have helped you in pointing out the parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hith&lt;/P&gt;&lt;P&gt;Sunil Achyut&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Sep 2006 13:05:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-the-error-message-log-while-executing-badi-implementation/m-p/1513629#M236637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-06T13:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Populating the error message log (while executing BAdI implementation)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-the-error-message-log-while-executing-badi-implementation/m-p/1513630#M236638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, I don't think there is any parameter that handles errors...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://static.flickr.com/96/235931030_60f8ecc1c4_o.jpg" target="test_blank"&gt;http://static.flickr.com/96/235931030_60f8ecc1c4_o.jpg&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Sep 2006 13:14:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-the-error-message-log-while-executing-badi-implementation/m-p/1513630#M236638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-06T13:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: Populating the error message log (while executing BAdI implementation)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-the-error-message-log-while-executing-badi-implementation/m-p/1513631#M236639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prabhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems liek shp_badi_error_log is not recognised, is that the correct one?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Sep 2006 13:33:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-the-error-message-log-while-executing-badi-implementation/m-p/1513631#M236639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-06T13:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Populating the error message log (while executing BAdI implementation)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-the-error-message-log-while-executing-badi-implementation/m-p/1513632#M236640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your objective is just to show an error, then you can use a message type I to show a popup at the cost of annoying user to hit enter.  If however, you use message type E, it basically stops the transaction which I dont think is your objective.  Have you read the documenation in SPRO to see if there is any error handling done in the BADI.  Normally each BADI has a purpose and sometimes you may not have error handling in the BADI, it all depends on what the BADI is trying to influence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hith&lt;/P&gt;&lt;P&gt;Sunil Achyut&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Sep 2006 13:48:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-the-error-message-log-while-executing-badi-implementation/m-p/1513632#M236640</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-06T13:48:13Z</dc:date>
    </item>
  </channel>
</rss>

