<?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: declaring a structure in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-structure/m-p/4048416#M967751</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi KOMV is a cluster table so you cannot join this table with other tables.. you can also get condition records kschl in KONV as well...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jun 2008 17:01:50 GMT</pubDate>
    <dc:creator>former_member156446</dc:creator>
    <dc:date>2008-06-24T17:01:50Z</dc:date>
    <item>
      <title>declaring a structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-structure/m-p/4048415#M967750</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 have a requirement where I need to get the data from the field kschl in komv table but when I write the select statement it says that &lt;/P&gt;&lt;P&gt;"KOMV" is not defined in the ABAP Dictionary as a table, projection:		&lt;/P&gt;&lt;P&gt;even though I declared the table and its internal table...&lt;/P&gt;&lt;P&gt;prior to this situation I have used two function modules.....&lt;/P&gt;&lt;P&gt;RV_price_print_head and RV_price_print_refresh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 16:55:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-structure/m-p/4048415#M967750</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T16:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: declaring a structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-structure/m-p/4048416#M967751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi KOMV is a cluster table so you cannot join this table with other tables.. you can also get condition records kschl in KONV as well...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 17:01:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-structure/m-p/4048416#M967751</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-06-24T17:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: declaring a structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-structure/m-p/4048417#M967752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what does this run time error mean: "too few fiels in into clause"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 17:33:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-structure/m-p/4048417#M967752</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T17:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: declaring a structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-structure/m-p/4048418#M967753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the fields and the structure into which you are placing data in select statement might be different.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use &lt;STRONG&gt;into corresponding field of table&lt;/STRONG&gt;..in select or make sure you follow the order of fields as per ur internal table deceleration.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 17:35:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-structure/m-p/4048418#M967753</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-06-24T17:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: declaring a structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-structure/m-p/4048419#M967754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you pls tell where the problem is???&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;&lt;/P&gt;&lt;P&gt;if p_count = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get sales order header info&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  select vk&lt;SUB&gt;vbeln vk&lt;/SUB&gt;kunnr vk~vbtyp&lt;/P&gt;&lt;P&gt;    vk&lt;SUB&gt;bukrs_vf vk&lt;/SUB&gt;vkorg vk&lt;SUB&gt;vtweg vk&lt;/SUB&gt;spart&lt;/P&gt;&lt;P&gt;    vk&lt;SUB&gt;netwr vk&lt;/SUB&gt;waerk vk~knumv&lt;/P&gt;&lt;P&gt;    vk&lt;SUB&gt;erdat vk&lt;/SUB&gt;ernam&lt;/P&gt;&lt;P&gt;    kn~name1&lt;/P&gt;&lt;P&gt;  into table itabvbak&lt;/P&gt;&lt;P&gt;  from vbak as vk&lt;/P&gt;&lt;P&gt;  inner join kna1 as kn on kn&lt;SUB&gt;kunnr = vk&lt;/SUB&gt;kunnr&lt;/P&gt;&lt;P&gt;  for all entries in itabsd2&lt;/P&gt;&lt;P&gt;  where vk~vbeln = itabsd2-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Get manual discounts.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  clear komk.&lt;/P&gt;&lt;P&gt;  call function 'RV_PRICE_PRINT_REFRESH'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      tkomv = tkomv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  komk-vbtyp = itabvbak-vbtyp.     " Document category&lt;/P&gt;&lt;P&gt;  komk-belnr = itabvbak-vbeln.     " Sales document&lt;/P&gt;&lt;P&gt;  komk-knumv = itabvbak-knumv.     " Number of the document condition&lt;/P&gt;&lt;P&gt;  komk-kalsm = 'ZMADIX'.           " Pricing procedure&lt;/P&gt;&lt;P&gt;  komk-kappl = pr_kappl.           " Application 'V' = Sales &amp;amp; Dist&lt;/P&gt;&lt;P&gt;  komk-waerk = itabvbak-waerk.     " Document currency&lt;/P&gt;&lt;P&gt;  komk-bukrs = itabvbak-bukrs.     " Company code&lt;/P&gt;&lt;P&gt;  komk-vkorg = itabvbak-vkorg.     " Sales org&lt;/P&gt;&lt;P&gt;  komk-vtweg = itabvbak-vtweg.     " Distribution channel&lt;/P&gt;&lt;P&gt;  komk-spart = itabvbak-spart.     " Division&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'RV_PRICE_PRINT_HEAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      comm_head_i = komk&lt;/P&gt;&lt;P&gt;      language    = sy-langu&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      comm_head_e = komk&lt;/P&gt;&lt;P&gt;      comm_mwskz  = print_mwskz&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      tkomv       = tkomv&lt;/P&gt;&lt;P&gt;      tkomvd      = tkomvd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    select kschl knumv&lt;/P&gt;&lt;P&gt;       into CORRESPONDING FIELDS OF TABLE itab_konv&lt;/P&gt;&lt;P&gt;       from konv&lt;/P&gt;&lt;P&gt;       FOR ALL ENTRIES IN itabvbak&lt;/P&gt;&lt;P&gt;       where knumv = itabvbak-knumv&lt;/P&gt;&lt;P&gt;        AND  kschl &amp;lt;&amp;gt; 'ZMAD'.&lt;/P&gt;&lt;P&gt;    if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      write: 'ZMAD is High'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;      DESCRIBE TABLE zvbap LINES count.&lt;/P&gt;&lt;P&gt;      write: count to countn,&lt;/P&gt;&lt;P&gt;             counti to counth.&lt;/P&gt;&lt;P&gt;      write: / 'Number of Quotes to be converted:      ', counth.&lt;/P&gt;&lt;P&gt;      write: / 'Number of Quote Lines to be converted: ', countn.&lt;/P&gt;&lt;P&gt;      Uline.&lt;/P&gt;&lt;P&gt;      write: /10(25)'Sales Document',30(20)'Sales Document Item'.&lt;/P&gt;&lt;P&gt;      Loop at zvbap.&lt;/P&gt;&lt;P&gt;        write: /12(10) zvbap-vbeln,&lt;/P&gt;&lt;P&gt;                36(10) zvbap-posnr.&lt;/P&gt;&lt;P&gt;      endloop.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 17:53:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-structure/m-p/4048419#M967754</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T17:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: declaring a structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-structure/m-p/4048420#M967755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are the fields in your Internal Table for itabvbak?   The values that you have in your select cause must be in your internal table as Jay has mentioned above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 17:58:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-structure/m-p/4048420#M967755</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T17:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: declaring a structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-structure/m-p/4048421#M967756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data: begin of itabvbak occurs 0,&lt;/P&gt;&lt;P&gt;        vbeln like vbak-vbeln,     " Sales doc #&lt;/P&gt;&lt;P&gt;        kunnr like vbak-kunnr,     " Sold-To&lt;/P&gt;&lt;P&gt;        vbtyp like vbak-vbtyp,     " Document category&lt;/P&gt;&lt;P&gt;        bukrs like vbak-bukrs_vf,  " Company code&lt;/P&gt;&lt;P&gt;        vkorg like vbak-vkorg,     " Sales org&lt;/P&gt;&lt;P&gt;        vtweg like vbak-vtweg,     " Distribution channel&lt;/P&gt;&lt;P&gt;        spart like vbak-spart,     " Division&lt;/P&gt;&lt;P&gt;        netwr like vbak-netwr,     " Net total&lt;/P&gt;&lt;P&gt;        waerk like vbak-waerk,     " Document currency&lt;/P&gt;&lt;P&gt;        knumv like vbak-knumv,     " # of the document condition&lt;/P&gt;&lt;P&gt;        erdat like vbak-erdat,     " Create date&lt;/P&gt;&lt;P&gt;        ernam like vbak-ernam,     " Created by&lt;/P&gt;&lt;P&gt;        name1 like kna1-name1,     " Sold-To customer name&lt;/P&gt;&lt;P&gt;      end of itabvbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the internal table itabvbak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 18:07:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-structure/m-p/4048421#M967756</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T18:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: declaring a structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-structure/m-p/4048422#M967757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi did u give the table name on the top of the program like..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
tables: vbak, vbap, komv, konv.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 18:15:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-structure/m-p/4048422#M967757</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-06-24T18:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: declaring a structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-structure/m-p/4048423#M967758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tables: vbak,&lt;/P&gt;&lt;P&gt;        vbfa,&lt;/P&gt;&lt;P&gt;        komk,&lt;/P&gt;&lt;P&gt;        kna1,&lt;/P&gt;&lt;P&gt;        konv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of tkomv occurs 50.&lt;/P&gt;&lt;P&gt;        include structure komv.&lt;/P&gt;&lt;P&gt;data: end of tkomv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of tkomvd occurs 50.&lt;/P&gt;&lt;P&gt;        include structure komvd.&lt;/P&gt;&lt;P&gt;data: end of tkomvd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab_konv occurs 0,&lt;/P&gt;&lt;P&gt;        kschl like konv-kschl,&lt;/P&gt;&lt;P&gt;        knumv like konv-knumv,&lt;/P&gt;&lt;P&gt;      end of itab_konv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did give that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 18:21:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-structure/m-p/4048423#M967758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T18:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: declaring a structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-structure/m-p/4048424#M967759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there.. check my past code.. it works fine.. interpret ur code to this.. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF gt_citm_z2,
knumv TYPE konv-knumv,
kposn TYPE konv-kposn,
kschl TYPE konv-kschl,
kbetr TYPE konv-kbetr,
END OF gt_citm_z2.
DATA: lt_citm_z2 TYPE STANDARD TABLE OF gt_citm_z2 WITH HEADER LINE,
wa_citm_z2 TYPE gt_citm_z2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* Konv is an cluster table, so had to populate data seperately.
IF NOT lt_citm_z1[] IS INITIAL.
SELECT
knumv kposn kschl kbetr
INTO TABLE lt_citm_z2
FROM konv
FOR ALL ENTRIES IN lt_citm_z1
WHERE knumv EQ lt_citm_z1-knumv
AND kposn EQ lt_citm_z1-posnr.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 18:28:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-a-structure/m-p/4048424#M967759</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-06-24T18:28:51Z</dc:date>
    </item>
  </channel>
</rss>

