<?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: Issue with Modify statement in MB_DOCUMENT_BADI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-modify-statement-in-mb-document-badi/m-p/7294068#M1533166</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this BADI, the XMSEG structure can not be changed. It can be used for other programs only..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Sep 2010 10:29:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-09-27T10:29:05Z</dc:date>
    <item>
      <title>Issue with Modify statement in MB_DOCUMENT_BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-modify-statement-in-mb-document-badi/m-p/7294067#M1533165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on BADI implementation for the MB_DOCUMENT_BADI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the implementation, i ineed to change the document type (ZMKPF-BLART) value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If use the code like follow, the system is giving syntax error as 'The structure XMKPF can not be modified'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: wa_xmkpf like line of xmkpf.
data: xmseg like line of xmseg.
read table xmkpf into wa_xmkpf index 1.
if wa_xmkpf-bwart = '102'.
read table XMSEG into WA_XMSEG into wa_xmseg.
if sy-subrc = 0.
wa_xmseg-blart = 'RT'.
modify xmseg from wa_mseg.
endif.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other logic, so as to make the zmseg-blart = 'RT'...??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Sep 2010 10:17:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-modify-statement-in-mb-document-badi/m-p/7294067#M1533165</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-27T10:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Modify statement in MB_DOCUMENT_BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-modify-statement-in-mb-document-badi/m-p/7294068#M1533166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this BADI, the XMSEG structure can not be changed. It can be used for other programs only..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Sep 2010 10:29:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-modify-statement-in-mb-document-badi/m-p/7294068#M1533166</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-27T10:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Modify statement in MB_DOCUMENT_BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-modify-statement-in-mb-document-badi/m-p/7294069#M1533167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dont use modify statements in BADI for changing data in standard transactions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Sep 2010 10:30:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-modify-statement-in-mb-document-badi/m-p/7294069#M1533167</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2010-09-27T10:30:53Z</dc:date>
    </item>
  </channel>
</rss>

