<?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: BADIS while creating/changing the Customer in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/badis-while-creating-changing-the-customer/m-p/1849883#M360134</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhavi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When u say the BADI method is getting triggred while u generate ur IDOC, that means u have got the right BADI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The  parameter T_KNA1_KEY of method PROCESS_ALE_OWN_CHANGE_POINTER is a "Changing" parameter. Whch means it enters ur method with a value and leaves the method with the value u populate. Now here is the Catch......while entering ur code the parameter T_KNA1_KEY will &amp;lt;b&amp;gt;def carry some value&amp;lt;/b&amp;gt; and while leaving ur code the parameter has to be populated back with the changed or initial value. Else the parameter will leave ur code with EMPTY value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably  u would have over looked the fact that parameter T_KNA1_KEY is an internal table, hence u will have to loop at the internal table and only then ul get the value for KUNNR.......if so, then please try looping and get the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mukundhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 07 Jan 2007 04:26:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-07T04:26:07Z</dc:date>
    <item>
      <title>BADIS while creating/changing the Customer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badis-while-creating-changing-the-customer/m-p/1849878#M360129</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;I am new to BADI, but My Boss given me a BADI to wotk over it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; My sys is configured through the change pointers that &lt;/P&gt;&lt;P&gt;when  i change/create customer it is automatically update in decentralised server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my requirement starts ,&lt;/P&gt;&lt;P&gt;having table for conversion when i m trying to change my customer , the BADI&lt;/P&gt;&lt;P&gt;Customer_add_data_bi should trigger ,in that i found the only method PROCESS_ALE_OWN_CHANGE_POINTER is triggering&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is how to write code here with importing/exporting parameters..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please anybody let me know , its urgent.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2007 13:09:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badis-while-creating-changing-the-customer/m-p/1849878#M360129</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-05T13:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: BADIS while creating/changing the Customer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badis-while-creating-changing-the-customer/m-p/1849879#M360130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By trx SE19 you have to create the implemantation for that BADI, for example  ZCustomer_add_data_bi, here do a doubleclick on the method and then insert your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to use the parameter depends on which parameter you need to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example if you need to read T_KNA1_KEY:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: WA_KNA1_KEY TYPE KNA1_KEY_S.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT T_KNA1_KEY WA_KNA1_KEY.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2007 13:13:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badis-while-creating-changing-the-customer/m-p/1849879#M360130</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-05T13:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: BADIS while creating/changing the Customer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badis-while-creating-changing-the-customer/m-p/1849880#M360131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt; i have to select the customer as importing and have to export it,please let me know clearly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;having one conversion table with fields&lt;/P&gt;&lt;P&gt;zcust_tab1 DB table with values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_old           sys old id&lt;/P&gt;&lt;P&gt;cust_old      cust old number&lt;/P&gt;&lt;P&gt;cust_new    cust new number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if change the customer , thro change pointer (RBDMIDOC), BADI should trigger&lt;/P&gt;&lt;P&gt;it has to check CUSTOMER in the segment is equal to CUST_NEW &lt;/P&gt;&lt;P&gt;, if it is then it has to convert with CUST_OLD to the SEGMENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please send me the coding according to this ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2007 16:57:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badis-while-creating-changing-the-customer/m-p/1849880#M360131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-05T16:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: BADIS while creating/changing the Customer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badis-while-creating-changing-the-customer/m-p/1849881#M360132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhavi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope u r clear with creating a BADI implementation(from transaction SE19). &lt;/P&gt;&lt;P&gt;An imprtant foreword when it comes to BADIs is - "We cannot influence(create/change) the export/import/changing parameters of BADI methods. we can only get &amp;amp; set values of the parameters that are available"........so creation of ur own parameter is ruled-out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, as per ur requirement, (if i am not wrong) u want to check the customer number value with the one in ur Z-Table. for that get into ur code and use the parameter T_KNA1_KEY provided for the method PROCESS_ALE_OWN_CHANGE_POINTER.  This parameter is a structure and has KUNNR in it. you can use this field for ur purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More over, the parameter T_KNA1_KEY is of type "changing" , so if u want to alter the value of customer number field on ur own, then change the field T_KNA1_KEY -KUNNR in ur code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Mukundhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jan 2007 09:16:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badis-while-creating-changing-the-customer/m-p/1849881#M360132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-06T09:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: BADIS while creating/changing the Customer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badis-while-creating-changing-the-customer/m-p/1849882#M360133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mukundhan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First  i want to thank you for your clarification.&lt;/P&gt;&lt;P&gt;I gone through the same as you referred , but here the value kunnr is not generating into the importing parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but that the only method triggering when i am generating the idoc through the program RBDMIDOC.&lt;/P&gt;&lt;P&gt;Now i am dilema that whether i am in the right track.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls let me know  ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Madhavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jan 2007 12:10:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badis-while-creating-changing-the-customer/m-p/1849882#M360133</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-06T12:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: BADIS while creating/changing the Customer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badis-while-creating-changing-the-customer/m-p/1849883#M360134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhavi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When u say the BADI method is getting triggred while u generate ur IDOC, that means u have got the right BADI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The  parameter T_KNA1_KEY of method PROCESS_ALE_OWN_CHANGE_POINTER is a "Changing" parameter. Whch means it enters ur method with a value and leaves the method with the value u populate. Now here is the Catch......while entering ur code the parameter T_KNA1_KEY will &amp;lt;b&amp;gt;def carry some value&amp;lt;/b&amp;gt; and while leaving ur code the parameter has to be populated back with the changed or initial value. Else the parameter will leave ur code with EMPTY value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably  u would have over looked the fact that parameter T_KNA1_KEY is an internal table, hence u will have to loop at the internal table and only then ul get the value for KUNNR.......if so, then please try looping and get the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mukundhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Jan 2007 04:26:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badis-while-creating-changing-the-customer/m-p/1849883#M360134</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-07T04:26:07Z</dc:date>
    </item>
  </channel>
</rss>

