<?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: Select statement not populating the internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-populating-the-internal-table/m-p/7362795#M1542005</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is p_vkorg a parameter or select option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is parameter and is blank you will not get data in the table.&lt;/P&gt;&lt;P&gt;In that case make a condition for that field also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
if not tw_zvatcn[] is initial.
if p_vkorg is not initial.
select * from vbrk
into table tw_vbrk
for all entries in tw_zvatcn
where vbeln = tw_zvztcn-vbeln
and vkorg = p_vkorg.
if sy-subrc = 0.
modify ztzb from lw_zvatcn.
endif.
else.
select * from vbrk
into table tw_vbrk
for all entries in tw_zvatcn
where vbeln = tw_zvztcn-vbeln.
if sy-subrc = 0.
modify ztzb from lw_zvatcn.
endif.
endif.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Oct 2010 03:55:38 GMT</pubDate>
    <dc:creator>GauthamV</dc:creator>
    <dc:date>2010-10-13T03:55:38Z</dc:date>
    <item>
      <title>Select statement not populating the internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-populating-the-internal-table/m-p/7362794#M1542004</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; I have a requirement where I have to upload a file from C drive, the fields in this file are VBELN, description &amp;amp; date of creation.&lt;/P&gt;&lt;P&gt;I am able to get this file into the internal table. After this i need to cross check the VBELN against VBRK-VBELN, if present then update a Z-table.... How do I do the cross check part ?... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not tw_zvatcn[] is initial,&lt;/P&gt;&lt;P&gt;  select * from vbrk&lt;/P&gt;&lt;P&gt;      into table tw_vbrk&lt;/P&gt;&lt;P&gt;      for all entries in tw_zvatcn&lt;/P&gt;&lt;P&gt;       where vbeln = tw_zvztcn-vbeln&lt;/P&gt;&lt;P&gt;            and vkorg = p_vkorg.&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;   modify ztzb from lw_zvatcn.&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;Internal table tw_vbrk is coming blank, which is not correct because I see the data in db tbl VBRK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Oct 2010 03:37:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-populating-the-internal-table/m-p/7362794#M1542004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-13T03:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement not populating the internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-populating-the-internal-table/m-p/7362795#M1542005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is p_vkorg a parameter or select option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is parameter and is blank you will not get data in the table.&lt;/P&gt;&lt;P&gt;In that case make a condition for that field also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
if not tw_zvatcn[] is initial.
if p_vkorg is not initial.
select * from vbrk
into table tw_vbrk
for all entries in tw_zvatcn
where vbeln = tw_zvztcn-vbeln
and vkorg = p_vkorg.
if sy-subrc = 0.
modify ztzb from lw_zvatcn.
endif.
else.
select * from vbrk
into table tw_vbrk
for all entries in tw_zvatcn
where vbeln = tw_zvztcn-vbeln.
if sy-subrc = 0.
modify ztzb from lw_zvatcn.
endif.
endif.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Oct 2010 03:55:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-populating-the-internal-table/m-p/7362795#M1542005</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2010-10-13T03:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement not populating the internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-populating-the-internal-table/m-p/7362796#M1542006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Once you get the data from c drive to internal table, modify all VEBLN of  tw_zvatcn[] into SAP format using function module CONVERSION_EXIT_ALPHA_INPUT. This might solve ur issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Oct 2010 03:56:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-populating-the-internal-table/m-p/7362796#M1542006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-13T03:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement not populating the internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-populating-the-internal-table/m-p/7362797#M1542007</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;     Check if there are any entries in table "vbrk" with vbeln and p_vkorg combination. &lt;/P&gt;&lt;P&gt;     Also check if you need to use conversion exit for field "VBELN".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Oct 2010 03:56:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-populating-the-internal-table/m-p/7362797#M1542007</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-13T03:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement not populating the internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-populating-the-internal-table/m-p/7362798#M1542008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Howdy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure the VBELN data in your internal table has leading zeros, eg instead of 90000123 you need 009000123.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do the conversion use FM CONVERSION_EXIT_ALPHA_INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Oct 2010 03:57:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-populating-the-internal-table/m-p/7362798#M1542008</guid>
      <dc:creator>alex_cook</dc:creator>
      <dc:date>2010-10-13T03:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement not populating the internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-populating-the-internal-table/m-p/7362799#M1542009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You Gautham, but p_vkorg is obligatory in teh selection-screen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Oct 2010 03:59:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-not-populating-the-internal-table/m-p/7362799#M1542009</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-13T03:59:40Z</dc:date>
    </item>
  </channel>
</rss>

