<?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 problem in the select query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-the-select-query/m-p/5566049#M1269847</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;here i have to make the code in exit_saplv56u_004 in include zxv56u11.&lt;/P&gt;&lt;P&gt;there are tables defined in itself.&lt;/P&gt;&lt;P&gt;i have written like this,but not sure about the table updation and the declaration part:&lt;/P&gt;&lt;P&gt;here i am writing this code in exit_sap&lt;/P&gt;&lt;P&gt;  TABLES:VTTP,VTTK,LIKP,KNA1.&lt;/P&gt;&lt;P&gt;  TABLES:ZOTC_SHPMNT_RTE.&lt;/P&gt;&lt;P&gt;  DATA:x_vttp type vttpvb,&lt;/P&gt;&lt;P&gt;       x_vttk type vttkvb,&lt;/P&gt;&lt;P&gt;       X_LIKP TYPE LIKP,&lt;/P&gt;&lt;P&gt;       X_KNA1 TYPE KNA1,&lt;/P&gt;&lt;P&gt;       X_ZOTC_SHPMNT_RTE TYPE ZOTC_SHPMNT_RTE,&lt;/P&gt;&lt;P&gt;       t_temp type vttk,       feels that declaration iswrong&lt;/P&gt;&lt;P&gt;       x_temp type vttk.      this table andwork area will be used to finally update vttk table feilds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE I_XVTTK INTO X_VTTK INDEX 1.&lt;/P&gt;&lt;P&gt;  READ TABLE I_XVTTP INTO X_VTTP INDEX 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR X_LIKP.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE *     FROM LIKP&lt;/P&gt;&lt;P&gt;                      INTO X_LIKP&lt;/P&gt;&lt;P&gt;                      WHERE VBELN = X_VTTP-VBELN.&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;      CLEAR X_KNA1.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE * FROM KNA1              i jus need 2-3 feilds so howcan i avoid the performance prob&lt;/P&gt;&lt;P&gt;       INTO X_KNA1&lt;/P&gt;&lt;P&gt;    WHERE KUNNR = X_LIKP-KUNNR.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;  CLEAR X_TEMP.&lt;/P&gt;&lt;P&gt;     SELECT SINGLE * FROM ZOTC_SHPMNT_RTE INTO table t_TEMP&lt;/P&gt;&lt;P&gt;     WHERE SHTYP = X_VTTK-SHTYP&lt;/P&gt;&lt;P&gt;     AND   LAND1 = X_KNA1-LAND1&lt;/P&gt;&lt;P&gt;     AND   BLAND = X_KNA1-REGIO&lt;/P&gt;&lt;P&gt;     AND   ZONE1 = X_KNA1-LZONE.&lt;/P&gt;&lt;P&gt;     IF SY-SUBRC = 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       IF T_TEMP[] IS INITIAL.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       READ TABLE T_TEMP INTO X_TEMP.     i want to create a temp internal table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       SELECT SINGLE * FROM ZOTC_SHPMNT_RTE INTO TABLE t_TEMP&lt;/P&gt;&lt;P&gt;     WHERE SHTYP = X_VTTK-SHTYP&lt;/P&gt;&lt;P&gt;     AND   LAND1 = X_KNA1-LAND1&lt;/P&gt;&lt;P&gt;     AND   BLAND = X_KNA1-REGIO.&lt;/P&gt;&lt;P&gt;       IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;          READ TABLE T_TEMP INTO X_TEMP.&lt;/P&gt;&lt;P&gt;          IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;         MODIFY vttk FROM t_TEMP.       here i want to modify the feilds like vttk-route and vttk-tdlnr&lt;/P&gt;&lt;P&gt;         ENDIF.&lt;/P&gt;&lt;P&gt;         ENDIF.&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;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 May 2009 10:37:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-05T10:37:04Z</dc:date>
    <item>
      <title>problem in the select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-the-select-query/m-p/5566049#M1269847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;here i have to make the code in exit_saplv56u_004 in include zxv56u11.&lt;/P&gt;&lt;P&gt;there are tables defined in itself.&lt;/P&gt;&lt;P&gt;i have written like this,but not sure about the table updation and the declaration part:&lt;/P&gt;&lt;P&gt;here i am writing this code in exit_sap&lt;/P&gt;&lt;P&gt;  TABLES:VTTP,VTTK,LIKP,KNA1.&lt;/P&gt;&lt;P&gt;  TABLES:ZOTC_SHPMNT_RTE.&lt;/P&gt;&lt;P&gt;  DATA:x_vttp type vttpvb,&lt;/P&gt;&lt;P&gt;       x_vttk type vttkvb,&lt;/P&gt;&lt;P&gt;       X_LIKP TYPE LIKP,&lt;/P&gt;&lt;P&gt;       X_KNA1 TYPE KNA1,&lt;/P&gt;&lt;P&gt;       X_ZOTC_SHPMNT_RTE TYPE ZOTC_SHPMNT_RTE,&lt;/P&gt;&lt;P&gt;       t_temp type vttk,       feels that declaration iswrong&lt;/P&gt;&lt;P&gt;       x_temp type vttk.      this table andwork area will be used to finally update vttk table feilds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE I_XVTTK INTO X_VTTK INDEX 1.&lt;/P&gt;&lt;P&gt;  READ TABLE I_XVTTP INTO X_VTTP INDEX 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR X_LIKP.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE *     FROM LIKP&lt;/P&gt;&lt;P&gt;                      INTO X_LIKP&lt;/P&gt;&lt;P&gt;                      WHERE VBELN = X_VTTP-VBELN.&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;      CLEAR X_KNA1.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE * FROM KNA1              i jus need 2-3 feilds so howcan i avoid the performance prob&lt;/P&gt;&lt;P&gt;       INTO X_KNA1&lt;/P&gt;&lt;P&gt;    WHERE KUNNR = X_LIKP-KUNNR.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;  CLEAR X_TEMP.&lt;/P&gt;&lt;P&gt;     SELECT SINGLE * FROM ZOTC_SHPMNT_RTE INTO table t_TEMP&lt;/P&gt;&lt;P&gt;     WHERE SHTYP = X_VTTK-SHTYP&lt;/P&gt;&lt;P&gt;     AND   LAND1 = X_KNA1-LAND1&lt;/P&gt;&lt;P&gt;     AND   BLAND = X_KNA1-REGIO&lt;/P&gt;&lt;P&gt;     AND   ZONE1 = X_KNA1-LZONE.&lt;/P&gt;&lt;P&gt;     IF SY-SUBRC = 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       IF T_TEMP[] IS INITIAL.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       READ TABLE T_TEMP INTO X_TEMP.     i want to create a temp internal table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       SELECT SINGLE * FROM ZOTC_SHPMNT_RTE INTO TABLE t_TEMP&lt;/P&gt;&lt;P&gt;     WHERE SHTYP = X_VTTK-SHTYP&lt;/P&gt;&lt;P&gt;     AND   LAND1 = X_KNA1-LAND1&lt;/P&gt;&lt;P&gt;     AND   BLAND = X_KNA1-REGIO.&lt;/P&gt;&lt;P&gt;       IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;          READ TABLE T_TEMP INTO X_TEMP.&lt;/P&gt;&lt;P&gt;          IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;         MODIFY vttk FROM t_TEMP.       here i want to modify the feilds like vttk-route and vttk-tdlnr&lt;/P&gt;&lt;P&gt;         ENDIF.&lt;/P&gt;&lt;P&gt;         ENDIF.&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;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2009 10:37:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-the-select-query/m-p/5566049#M1269847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-05T10:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: problem in the select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-the-select-query/m-p/5566050#M1269848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First declare a types structure with this 3 variables u want...&lt;/P&gt;&lt;P&gt;now declare a work area(X_KNA1) of this types structure.&lt;/P&gt;&lt;P&gt;And&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE LAND1 REGIO LZONE FROM KNA1&lt;/P&gt;&lt;P&gt;INTO X_KNA1&lt;/P&gt;&lt;P&gt;WHERE KUNNR = X_LIKP-KUNNR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2009 11:36:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-the-select-query/m-p/5566050#M1269848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-05T11:36:42Z</dc:date>
    </item>
  </channel>
</rss>

