<?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: BAdI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi/m-p/1505154#M233497</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rajendra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The procedure to implement a BAdI is as following:&lt;/P&gt;&lt;P&gt;(1) Define an implementation of the required BAdI (SE19)&lt;/P&gt;&lt;P&gt;(2) Create the implementing class for the BAdI interface (SE19).&lt;/P&gt;&lt;P&gt;(3) Put the required coding into the methods of the implementing class.&lt;/P&gt;&lt;P&gt;(4) Activate the BAdI implementation (SE19). Without activation your BAdI implementation will never passed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's all. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;   Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Sep 2006 11:16:38 GMT</pubDate>
    <dc:creator>uwe_schieferstein</dc:creator>
    <dc:date>2006-09-06T11:16:38Z</dc:date>
    <item>
      <title>BAdI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi/m-p/1505153#M233496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to BadI&amp;#146;s. I need to do the following one.. I changing the BAdI method &lt;/P&gt;&lt;P&gt;I confused to do this with import export parameters. I need to the code, how to write in that method..&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SELECTION CRITERIA:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This enhancement must only do the following selection criteria based on the account group field in table KNA1. The following account group field [KNA1/KTOKD] must be equal to one of the following:&lt;/P&gt;&lt;P&gt;1011&lt;/P&gt;&lt;P&gt;1012&lt;/P&gt;&lt;P&gt;1013&lt;/P&gt;&lt;P&gt;1014&lt;/P&gt;&lt;P&gt;XEM&lt;/P&gt;&lt;P&gt;ONE&lt;/P&gt;&lt;P&gt;SUN&lt;/P&gt;&lt;P&gt;INT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENHANCEMENT DETAILS:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BADI			:	CUSTOMER_ADD_DATA&lt;/P&gt;&lt;P&gt;Method		:	MODIFY_ACCOUNT_NUMBER&lt;/P&gt;&lt;P&gt;Import Parameters 	:	I_NROBJ Number range object&lt;/P&gt;&lt;P&gt;Change Parameters	:	C_KUNNR Customer number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calculation of CDV for GJMC VENUS accounts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	The CDV is calculated, using a Modulus 11  algorithm&lt;/P&gt;&lt;P&gt;The following weights are used in the calculation&lt;/P&gt;&lt;P&gt;       digit    weight	&lt;/P&gt;&lt;P&gt;	1	29	&lt;/P&gt;&lt;P&gt;	2	23&lt;/P&gt;&lt;P&gt;	3	19	&lt;/P&gt;&lt;P&gt;	4	17&lt;/P&gt;&lt;P&gt;	5	13&lt;/P&gt;&lt;P&gt;	6	7	&lt;/P&gt;&lt;P&gt;	7	5	&lt;/P&gt;&lt;P&gt;	8	3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Multiply each digit with the respective weight for the digit.&lt;/P&gt;&lt;P&gt;Calculate the modulus of the sum of the previous calculation.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;If the remainder equals zero, then the CDV equals zero.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;If the remainder equals ten then the CDV must be set to  the fourth digit of the account number if the first digit of the account number is zero. Otherwise the CDV must be set to the third digit of the account number.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;If the remainder is not equal to ten or zero then the CDV must be set to eleven minus the remainder.&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;   Example A:&lt;/P&gt;&lt;P&gt;     Account number 50369677, excluding CDV&lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;P&gt;        5     0     3     6     9     6     7     7      &lt;/P&gt;&lt;P&gt;        x     x     x     x     x     x     x     x&lt;/P&gt;&lt;P&gt;        29    23    19    17    13    7     5     3&lt;/P&gt;&lt;P&gt;        --    --    --    --    --    --    --    --&lt;/P&gt;&lt;P&gt;       145  + 0   + 57 + 102  + 117 + 42 +  35  + 21  = 519&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;       519 divided by 11 = 47   &lt;/P&gt;&lt;P&gt;          47 x 11 = 517&lt;/P&gt;&lt;P&gt;       Remainder = 519 - 517     = 2&lt;/P&gt;&lt;P&gt;       Test_CDV = 11 - 2  &lt;/P&gt;&lt;P&gt;       CDV = 9&lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;  Example B:&lt;/P&gt;&lt;P&gt;      Account number 50370101, excluding CDV&lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;P&gt;        5     0     3     7     0     1     0     1      &lt;/P&gt;&lt;P&gt;        x     x     x     x     x     x     x     x&lt;/P&gt;&lt;P&gt;        29    23    19    17    13    7     5     3&lt;/P&gt;&lt;P&gt;        --    --    --    --    --    --    --    --&lt;/P&gt;&lt;P&gt;       145  + 0   + 57 + 119  + 0  +  7  +  0  +  3  = 331&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;       331 divided by 11 = 30   &lt;/P&gt;&lt;P&gt;          30 x 11 = 330&lt;/P&gt;&lt;P&gt;       Remainder = 331 - 330     = 1&lt;/P&gt;&lt;P&gt;       Test_CDV = 11 - 1  &lt;/P&gt;&lt;P&gt;       Test_CDV = 10       &lt;/P&gt;&lt;P&gt;        IF the first digit of the account number was a zero, the &lt;/P&gt;&lt;P&gt;           CDV would be equal to the value of the fourth digit.&lt;/P&gt;&lt;P&gt;          else&lt;/P&gt;&lt;P&gt;           CDV is set to the value of the third digit (ie 3)&lt;/P&gt;&lt;P&gt;        CDV = 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Sep 2006 07:40:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi/m-p/1505153#M233496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-06T07:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: BAdI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi/m-p/1505154#M233497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rajendra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The procedure to implement a BAdI is as following:&lt;/P&gt;&lt;P&gt;(1) Define an implementation of the required BAdI (SE19)&lt;/P&gt;&lt;P&gt;(2) Create the implementing class for the BAdI interface (SE19).&lt;/P&gt;&lt;P&gt;(3) Put the required coding into the methods of the implementing class.&lt;/P&gt;&lt;P&gt;(4) Activate the BAdI implementation (SE19). Without activation your BAdI implementation will never passed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's all. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;   Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Sep 2006 11:16:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi/m-p/1505154#M233497</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2006-09-06T11:16:38Z</dc:date>
    </item>
  </channel>
</rss>

