<?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: Please check user-exit code for any inconsistencies/problems/wrong code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-check-user-exit-code-for-any-inconsistencies-problems-wrong-code/m-p/2262753#M490652</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are selecting ALL of VBAK and then only selecting the records from KNVV using data that is at the header of of the internal table I_VBAK (where VKORG and VTWEG match).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Were you trying to do something like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM knvv WHERE kunnr EQ vbak-kunnr&lt;/P&gt;&lt;P&gt;                            AND vkorg EQ vbak-vkorg&lt;/P&gt;&lt;P&gt;                            AND vtweg eq vbak-vtweg&lt;/P&gt;&lt;P&gt;                            AND spart eq vbak-spart.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      move knvv-eikto to tkomk-zzeikto.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 May 2007 13:55:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-16T13:55:08Z</dc:date>
    <item>
      <title>Please check user-exit code for any inconsistencies/problems/wrong code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-check-user-exit-code-for-any-inconsistencies-problems-wrong-code/m-p/2262748#M490647</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;This will go into USEREXIT_PRICING_PREPARE_TKOMK of MV45AFZZ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check to make sure that this was written correctly and professionally, as well as for performance optimization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: I_KNVV LIKE KNVV OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      I_VBAK LIKE VBAK OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * INTO TABLE I_VBAK FROM VBAK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * INTO TABLE I_KNVV FROM KNVV&lt;/P&gt;&lt;P&gt;WHERE VKORG = I_VBAK-VKORG AND&lt;/P&gt;&lt;P&gt;      VTWEG = I_VBAK-VTWEG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MOVE KNVV-EIKTO TO TKOMK-ZZEIKTO.&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;HR originaltext="--------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points will be rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You, &lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2007 13:43:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-check-user-exit-code-for-any-inconsistencies-problems-wrong-code/m-p/2262748#M490647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-16T13:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Please check user-exit code for any inconsistencies/problems/wrong code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-check-user-exit-code-for-any-inconsistencies-problems-wrong-code/m-p/2262749#M490648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U r using select * that can be a performance issue.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;DATA I_EIKTO TYPE KNVV-EIKTO.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF I_VBAK OCCURS 0,&lt;/P&gt;&lt;P&gt;        VKORG LIKE VBAK-VKORG,&lt;/P&gt;&lt;P&gt;        VTWEG LIKE VBAK-VTWEG,&lt;/P&gt;&lt;P&gt;      END OF I_VBAK.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;SELECT VKORG VTWEG INTO TABLE I_VBAK FROM VBAK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u r moving only 1 field then why u need select * here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to simplicize...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;LOOP AT I_VBAK.&lt;/P&gt;&lt;P&gt;SELECT EIKTO INTO I_EIKTO FROM KNVV&lt;/P&gt;&lt;P&gt;WHERE VKORG = I_VBAK-VKORG AND&lt;/P&gt;&lt;P&gt;VTWEG = I_VBAK-VTWEG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE I_EIKTO TO TKOMK-ZZEIKTO.&lt;/P&gt;&lt;P&gt;APPEND TKOMK.&lt;/P&gt;&lt;P&gt;ENDIF.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CLEAR I_EIKTO.&lt;/P&gt;&lt;P&gt;ENDLOOP.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;SAB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2007 13:46:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-check-user-exit-code-for-any-inconsistencies-problems-wrong-code/m-p/2262749#M490648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-16T13:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: Please check user-exit code for any inconsistencies/problems/wrong code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-check-user-exit-code-for-any-inconsistencies-problems-wrong-code/m-p/2262750#M490649</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;first of all you don't tell us what exactly you want to do, moreover the statement SELECT * INTO TABLE I_VBAK FROM VBAK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will select everything from vbak into your internal table. you should have a where clause there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br&lt;/P&gt;&lt;P&gt;Kostas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2007 13:49:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-check-user-exit-code-for-any-inconsistencies-problems-wrong-code/m-p/2262750#M490649</guid>
      <dc:creator>kostas_tsioubris</dc:creator>
      <dc:date>2007-05-16T13:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Please check user-exit code for any inconsistencies/problems/wrong code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-check-user-exit-code-for-any-inconsistencies-problems-wrong-code/m-p/2262751#M490650</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;DATA: I_KNVV LIKE KNVV OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;I_VBAK LIKE VBAK OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * INTO TABLE I_VBAK FROM VBAK.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;IF sy-subrc = 0 .&lt;/P&gt;&lt;P&gt;   sort i_vbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * INTO TABLE I_KNVV FROM KNVV&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;            for all entries in i_vbak&amp;lt;/b&amp;gt;WHERE VKORG = I_VBAK-VKORG AND&lt;/P&gt;&lt;P&gt;             VTWEG = I_VBAK-VTWEG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         MOVE KNVV-EIKTO TO TKOMK-ZZEIKTO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       ENDIF.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;   refresh i_vbak.&lt;/P&gt;&lt;P&gt;ENDIF.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Award points if it helps.&lt;/P&gt;&lt;P&gt;-Gaurang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2007 13:51:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-check-user-exit-code-for-any-inconsistencies-problems-wrong-code/m-p/2262751#M490650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-16T13:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Please check user-exit code for any inconsistencies/problems/wrong code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-check-user-exit-code-for-any-inconsistencies-problems-wrong-code/m-p/2262752#M490651</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;Please try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT SINGLE EIKTO 
INTO (KNVV-EIKTO)  
FROM KNVV
WHERE KUNNR = VBAK-KUNNR
  AND VKORG = VBAK-VKORG 
  AND VTWEG = VBAK-VTWEG
  AND SPART = VBAK-SPART

IF SY-SUBRC = 0.
  MOVE KNVV-EIKTO TO TKOMK-ZZEIKTO.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2007 13:54:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-check-user-exit-code-for-any-inconsistencies-problems-wrong-code/m-p/2262752#M490651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-16T13:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Please check user-exit code for any inconsistencies/problems/wrong code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-check-user-exit-code-for-any-inconsistencies-problems-wrong-code/m-p/2262753#M490652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are selecting ALL of VBAK and then only selecting the records from KNVV using data that is at the header of of the internal table I_VBAK (where VKORG and VTWEG match).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Were you trying to do something like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM knvv WHERE kunnr EQ vbak-kunnr&lt;/P&gt;&lt;P&gt;                            AND vkorg EQ vbak-vkorg&lt;/P&gt;&lt;P&gt;                            AND vtweg eq vbak-vtweg&lt;/P&gt;&lt;P&gt;                            AND spart eq vbak-spart.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      move knvv-eikto to tkomk-zzeikto.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2007 13:55:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-check-user-exit-code-for-any-inconsistencies-problems-wrong-code/m-p/2262753#M490652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-16T13:55:08Z</dc:date>
    </item>
  </channel>
</rss>

