<?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: how to write the code in BADI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-the-code-in-badi/m-p/1703080#M308094</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neeraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out following link of SDN. It gives detail explanation on BADI implementation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/developerareas/abap?rid=/webcontent/uuid/2342e1f3-0b01-0010-a186-fdd404884050#idacz24d" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/developerareas/abap?rid=/webcontent/uuid/2342e1f3-0b01-0010-a186-fdd404884050#idacz24d&lt;/A&gt; &lt;B&gt;[original link is broken]&lt;/B&gt; &lt;B&gt;[original link is broken]&lt;/B&gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess this definitely add a lot to your knowledge repository&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enjoy SAP.&lt;/P&gt;&lt;P&gt;Pankaj Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 28 Oct 2006 08:55:36 GMT</pubDate>
    <dc:creator>messier31</dc:creator>
    <dc:date>2006-10-28T08:55:36Z</dc:date>
    <item>
      <title>how to write the code in BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-the-code-in-badi/m-p/1703079#M308093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA : IT_SECSTRUCT LIKE ZSEC_STRUCT OCCURS 0 WITH HEADER LINE ,&lt;/P&gt;&lt;P&gt;       IT_MESSAGEHEAD LIKE ZSECMESSAGE OCCURS 0 WITH HEADER LINE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF ITAB OCCURS 0 ,&lt;/P&gt;&lt;P&gt;         MATNR LIKE MSEG-MATNR ,&lt;/P&gt;&lt;P&gt;       END OF ITAB .&lt;/P&gt;&lt;P&gt;DATA : ITR(15) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : counter1(10),counter(10),counter2(10).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS &amp;lt;FS&amp;gt; LIKE I_MSEG.&lt;/P&gt;&lt;P&gt;ASSIGN I_MSEG TO &amp;lt;FS&amp;gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if &amp;lt;FS&amp;gt;-bwart = '201' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM ZSECMESSAGE INTO CORRESPONDING FIELDS OF TABLE IT_MESSAGEHEAD WHERE TCODE1 = 'MB1A' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at IT_MESSAGEhead.&lt;/P&gt;&lt;P&gt; split IT_MESSAGEhead-msgid at'-' into counter1 counter2 .&lt;/P&gt;&lt;P&gt; counter2 = counter2 + 1.&lt;/P&gt;&lt;P&gt; condense counter2.&lt;/P&gt;&lt;P&gt; concatenate counter1 '-' counter2 into counter.&lt;/P&gt;&lt;P&gt; IT_MESSAGEhead-msgid = counter.&lt;/P&gt;&lt;P&gt; update zsecmessage from IT_MESSAGEhead.&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITR = &amp;lt;FS&amp;gt;-MENGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB-MATNR = &amp;lt;FS&amp;gt;-MATNR .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND ITAB .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IT_SECSTRUCT-COLUMNKEY = 'MENGE'.&lt;/P&gt;&lt;P&gt;  IT_SECSTRUCT-COLUMNVALUE =  ITR .&lt;/P&gt;&lt;P&gt;  IT_SECSTRUCT-COLUMNTYPE = 'NUMBER' .&lt;/P&gt;&lt;P&gt;  APPEND IT_SECSTRUCT.&lt;/P&gt;&lt;P&gt;LOOP AT ITAB .&lt;/P&gt;&lt;P&gt;  IT_SECSTRUCT-COLUMNKEY = 'MATNR'.&lt;/P&gt;&lt;P&gt;  IT_SECSTRUCT-COLUMNVALUE =  ITAB-MATNR.&lt;/P&gt;&lt;P&gt;  IT_SECSTRUCT-COLUMNTYPE = 'STRING' .&lt;/P&gt;&lt;P&gt;  APPEND IT_SECSTRUCT.&lt;/P&gt;&lt;P&gt;  ENDLOOP .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'Z_IDOC_OUTBOUND_MTIDOCOUT'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CONTROL_RECORD_IN        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CONTROL_RECORD_OUT       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   TABLES&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INT_EDIDD                =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   IT_SECSTRUCT             =  IT_SECSTRUCT&lt;/P&gt;&lt;P&gt;     IT_MESSAGEHEAD           = IT_MESSAGEHEAD .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     endif .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Oct 2006 05:55:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-the-code-in-badi/m-p/1703079#M308093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-28T05:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to write the code in BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-the-code-in-badi/m-p/1703080#M308094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neeraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out following link of SDN. It gives detail explanation on BADI implementation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/developerareas/abap?rid=/webcontent/uuid/2342e1f3-0b01-0010-a186-fdd404884050#idacz24d" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/developerareas/abap?rid=/webcontent/uuid/2342e1f3-0b01-0010-a186-fdd404884050#idacz24d&lt;/A&gt; &lt;B&gt;[original link is broken]&lt;/B&gt; &lt;B&gt;[original link is broken]&lt;/B&gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess this definitely add a lot to your knowledge repository&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enjoy SAP.&lt;/P&gt;&lt;P&gt;Pankaj Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Oct 2006 08:55:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-the-code-in-badi/m-p/1703080#M308094</guid>
      <dc:creator>messier31</dc:creator>
      <dc:date>2006-10-28T08:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to write the code in BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-the-code-in-badi/m-p/1703081#M308095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi neeraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. go to transaction se19 &lt;/P&gt;&lt;P&gt;2. select the radio button lassic badi' in the 'CREATE IMPLEMENTATION' tab &lt;/P&gt;&lt;P&gt;3. give the name of the corresponding BAdI.&lt;/P&gt;&lt;P&gt;4. Clcik the create implementation button&lt;/P&gt;&lt;P&gt;5. It will ask for the implementation name,provide a 'Z_xXXX' name for your BAdI implementation&lt;/P&gt;&lt;P&gt;6.Choose the tab Interfaces&lt;/P&gt;&lt;P&gt;7. Double click on the required method &lt;/P&gt;&lt;P&gt;8. Enter the code you want to write..&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;Sajan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Oct 2006 11:08:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-the-code-in-badi/m-p/1703081#M308095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-28T11:08:07Z</dc:date>
    </item>
  </channel>
</rss>

