<?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 Issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-issue/m-p/3966990#M947564</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there is CONVERSION_EXIT for MEINS so ur geting that data in that way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to change 1 to d Use FM  'CONVERSION_EXIT_CUNIT_OUTPUT'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jun 2008 11:29:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-19T11:29:32Z</dc:date>
    <item>
      <title>SELECT statement Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-issue/m-p/3966988#M947562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have used the follwoing select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select posnr kwmeng meins vbeln from VBAP&lt;/P&gt;&lt;P&gt;into corresponding fields of table it_vbap&lt;/P&gt;&lt;P&gt;where vbeln = v_vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, i am able to get the required fields from VBAP table without any issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, it has been observed that for particluar sales document, the value for the field VBAP-MEINS is 'H' (Hours). I am able to get this value as 'H' only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But few Sales Documents have the VBAP-MEINS value as 'D' (Day).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then select statement should retrieve this value as 'D' only.&lt;/P&gt;&lt;P&gt;But instead of this, the select statement is getting this value as '1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i look into SE11--&amp;gt;VBAP table, the table shows it as VBAP-MEINS as 'D'.&lt;/P&gt;&lt;P&gt;When i debug the code, the value shows as '1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to resolve this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 11:22:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-issue/m-p/3966988#M947562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T11:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT statement Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-issue/m-p/3966989#M947563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That behaviour is normal, because the field MEINS has a convertion routine. The measure Day, has output format as D, but internal as 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use FM CONVERSION_EXIT_CUNIT_OUTPUT after select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To check how it works, try in SE37, with input parameter 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Valter Oliveira.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 11:28:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-issue/m-p/3966989#M947563</guid>
      <dc:creator>valter_oliveira</dc:creator>
      <dc:date>2008-06-19T11:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT statement Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-issue/m-p/3966990#M947564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there is CONVERSION_EXIT for MEINS so ur geting that data in that way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to change 1 to d Use FM  'CONVERSION_EXIT_CUNIT_OUTPUT'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 11:29:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-issue/m-p/3966990#M947564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T11:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT statement Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-issue/m-p/3966991#M947565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;  The reaseon for it is that MEINS has a conversion routine CUNIT attached to it.&lt;/P&gt;&lt;P&gt; So the value which you get in the internal table will be the internal representation , but you will not have any problem when you print it or display it in ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 11:30:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-issue/m-p/3966991#M947565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T11:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT statement Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-issue/m-p/3966992#M947566</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;use this function module &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_CUNIT_OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if hlpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 11:31:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-issue/m-p/3966992#M947566</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2008-06-19T11:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT statement Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-issue/m-p/3966993#M947567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Why dont you use the conversion exit for that field of the internal table.&lt;/P&gt;&lt;P&gt;I guess MEINS has the conversion exit.&lt;/P&gt;&lt;P&gt;If it does not solve ur problem u can use CASE Statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 11:34:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-issue/m-p/3966993#M947567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T11:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT statement Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-issue/m-p/3966994#M947568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as my understanding it should not get like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let it be i have one solution try like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select posnr kwmeng meins vbeln from VBAP&lt;/P&gt;&lt;P&gt;into corresponding fields of table it_vbap&lt;/P&gt;&lt;P&gt;where vbeln = v_vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after collecting the data into the internal table write the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_vbap where meins eq '1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_vbap-meins = 'D'.&lt;/P&gt;&lt;P&gt;modify it_vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think this may solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sree..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 11:58:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-issue/m-p/3966994#M947568</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T11:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT statement Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-issue/m-p/3966995#M947569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 05:45:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-issue/m-p/3966995#M947569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T05:45:38Z</dc:date>
    </item>
  </channel>
</rss>

