<?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 Code snippet for a User Exit in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-snippet-for-a-user-exit/m-p/1697939#M306114</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an Include like following, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: zzue026, ztbwtrade.&lt;/P&gt;&lt;P&gt;data: zsur_flag type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear: zzue026, zsur_flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single vkorg auart from zzue026 into (zzue026-vkorg,&lt;/P&gt;&lt;P&gt;zzue026-auart)&lt;/P&gt;&lt;P&gt;where vkorg = vbak-vkorg and auart = vbak-auart.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  import zsur_flag from memory id 'ZZSUR_FLAG'.&lt;/P&gt;&lt;P&gt;  if zsur_flag ne 'Y'.&lt;/P&gt;&lt;P&gt;    message w027(zkse).&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if yvbak_updkz eq 'D'.&lt;/P&gt;&lt;P&gt;move-corresponding: xvbak to ztbwtrade.&lt;/P&gt;&lt;P&gt;move: 'D' to ztbwtrade-updkz.&lt;/P&gt;&lt;P&gt;move: sy-datum to ztbwtrade-aedat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify ztbwtrade.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&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;Taking the above inlcude as a reference, I would like to write an include which check below conditions ,I would like to put these in custom table . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales org = 5010, &lt;/P&gt;&lt;P&gt;Order type = RAS &lt;/P&gt;&lt;P&gt;Item category = IRRS &lt;/P&gt;&lt;P&gt;Condition type = ZNET &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the above condition did not meet then the user exit should not be executed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help be with code,?????&lt;/P&gt;&lt;P&gt;Can anyone tell me the steps for creating a Custom table ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Oct 2006 16:56:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-27T16:56:17Z</dc:date>
    <item>
      <title>Code snippet for a User Exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-snippet-for-a-user-exit/m-p/1697939#M306114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an Include like following, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: zzue026, ztbwtrade.&lt;/P&gt;&lt;P&gt;data: zsur_flag type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear: zzue026, zsur_flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single vkorg auart from zzue026 into (zzue026-vkorg,&lt;/P&gt;&lt;P&gt;zzue026-auart)&lt;/P&gt;&lt;P&gt;where vkorg = vbak-vkorg and auart = vbak-auart.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  import zsur_flag from memory id 'ZZSUR_FLAG'.&lt;/P&gt;&lt;P&gt;  if zsur_flag ne 'Y'.&lt;/P&gt;&lt;P&gt;    message w027(zkse).&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if yvbak_updkz eq 'D'.&lt;/P&gt;&lt;P&gt;move-corresponding: xvbak to ztbwtrade.&lt;/P&gt;&lt;P&gt;move: 'D' to ztbwtrade-updkz.&lt;/P&gt;&lt;P&gt;move: sy-datum to ztbwtrade-aedat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify ztbwtrade.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&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;Taking the above inlcude as a reference, I would like to write an include which check below conditions ,I would like to put these in custom table . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales org = 5010, &lt;/P&gt;&lt;P&gt;Order type = RAS &lt;/P&gt;&lt;P&gt;Item category = IRRS &lt;/P&gt;&lt;P&gt;Condition type = ZNET &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the above condition did not meet then the user exit should not be executed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help be with code,?????&lt;/P&gt;&lt;P&gt;Can anyone tell me the steps for creating a Custom table ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2006 16:56:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-snippet-for-a-user-exit/m-p/1697939#M306114</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-27T16:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Code snippet for a User Exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-snippet-for-a-user-exit/m-p/1697940#M306115</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;I think u need some sales order fields into your Ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create a table with what everever u would like to be put these 4 fields into that table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;take ABAPer help to create table from your a team.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: zzue026, ztbwtrade.&lt;/P&gt;&lt;P&gt;data: zsur_flag type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear: zzue026, zsur_flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single vkorg auart from zzue026 into (zzue026-vkorg,&lt;/P&gt;&lt;P&gt;zzue026-auart)&lt;/P&gt;&lt;P&gt;where vkorg = vbak-vkorg and auart = vbak-auart.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import zsur_flag from memory id 'ZZSUR_FLAG'.&lt;/P&gt;&lt;P&gt;if zsur_flag ne 'Y'.&lt;/P&gt;&lt;P&gt;message w027(zkse).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if yvbak_updkz eq 'D'.&lt;/P&gt;&lt;P&gt;move salesorg,ordertype,conditontype and itemcat into Ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**********&lt;STRONG&gt;Poorna&lt;/STRONG&gt;**********&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2006 17:53:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-snippet-for-a-user-exit/m-p/1697940#M306115</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-27T17:53:17Z</dc:date>
    </item>
  </channel>
</rss>

