<?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 Substitution exit in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/substitution-exit/m-p/1667052#M295204</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there is anyway of passing the data from standard code to an user exit without changing the standard code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the contents inside an internal table (it_partner) which is part of standard code (CJ20N). Now I need to pass the contents (it_partner) to an userexit. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will substitution exit help me in this case? &lt;/P&gt;&lt;P&gt;If not is there any other way of achieving this without copy the standard code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 21 Oct 2006 04:28:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-21T04:28:26Z</dc:date>
    <item>
      <title>Substitution exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substitution-exit/m-p/1667052#M295204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there is anyway of passing the data from standard code to an user exit without changing the standard code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the contents inside an internal table (it_partner) which is part of standard code (CJ20N). Now I need to pass the contents (it_partner) to an userexit. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will substitution exit help me in this case? &lt;/P&gt;&lt;P&gt;If not is there any other way of achieving this without copy the standard code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Oct 2006 04:28:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substitution-exit/m-p/1667052#M295204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-21T04:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Substitution exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substitution-exit/m-p/1667053#M295205</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;There is a "dirty" way to do that which implies the use of field-symbols.&lt;/P&gt;&lt;P&gt;This would be coded like this.&lt;/P&gt;&lt;P&gt;Let's call:&lt;/P&gt;&lt;P&gt;SAPxxxx the name of the main program where it_partner is located&lt;/P&gt;&lt;P&gt;PARTNER_TYPE the type of the structure of it_partner&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FIELD-SYMBOLS : &amp;lt;ft_partner&amp;gt; TYPE TABLE OF partner_type,
                &amp;lt;fs_parter&amp;gt; TYPE partner_type.

ASSIGN ('(SAPxxxx)it_partner[]') TO &amp;lt;ft_partner&amp;gt;.

LOOP AT &amp;lt;ft_partner&amp;gt; ASSIGNING &amp;lt;fs_partner&amp;gt;.
  ... your processing here
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;There is also an example in the ABAP FAQ:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/840ad679-0601-0010-cd8e-9989fd650822#q-5" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/840ad679-0601-0010-cd8e-9989fd650822#q-5&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;Please, consider the involvements of this solution carefully. In particular, SAP might change its own coding of the CJ20N transaction so that you will be obliged to find another solution in times of the next upgrade.&lt;/P&gt;&lt;P&gt;Now, that I have exposed the possible problems, I can personnally add that this works great (as long as you do not modify the standard internal table from your user exit !!) !) &lt;/P&gt;&lt;P&gt;&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Guillaume&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Oct 2006 09:24:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substitution-exit/m-p/1667053#M295205</guid>
      <dc:creator>guillaume-hrc</dc:creator>
      <dc:date>2006-10-21T09:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Substitution exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substitution-exit/m-p/1667054#M295206</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;you can use BADI for this.&lt;/P&gt;&lt;P&gt;Execute transaction SE19. Click create, then input&lt;/P&gt;&lt;P&gt;PROJECTDEF_UPDATE in the field definition name. Then write your code in the method BEFORE_UPDATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Oct 2006 14:18:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substitution-exit/m-p/1667054#M295206</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2006-10-22T14:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Substitution exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substitution-exit/m-p/1667055#M295207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Clemens,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the details..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem with this BADI is partner details are not getting passed to the badi which I actually need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2006 12:36:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substitution-exit/m-p/1667055#M295207</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-23T12:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Substitution exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substitution-exit/m-p/1667056#M295208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sree,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry, that was just a quick one as I don't know your specific situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Goto se24 &lt;/P&gt;&lt;P&gt;Display class cl_exithandler&lt;/P&gt;&lt;P&gt;Double click on the method GET_INSTANCE.&lt;/P&gt;&lt;P&gt;Put a break point at Line no.25 (CASE sy-subrc).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Execute your transaction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will stop at any BADI calls because &lt;/P&gt;&lt;P&gt;cl_exithandler-&amp;gt;GET_INSTANCE&lt;/P&gt;&lt;P&gt;must be called for all BADIs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully you will find the right one!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2006 13:06:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substitution-exit/m-p/1667056#M295208</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2006-10-23T13:06:48Z</dc:date>
    </item>
  </channel>
</rss>

