<?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 error. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-error/m-p/2023843#M414558</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use FM CONVERSION_EXIT_ALPHA_INPUT&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
  EXPORTING
    INPUT  = knvp-kunnr 
  IMPORTING
    OUTPUT = knvp-kunnr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Mar 2007 07:59:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-20T07:59:28Z</dc:date>
    <item>
      <title>Select statement error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-error/m-p/2023836#M414551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friends,   &lt;/P&gt;&lt;P&gt;                     I am using a select statement to fetch Bill to Party No. from KNVP table. Here is the select statement.&lt;/P&gt;&lt;P&gt;                    &lt;/P&gt;&lt;P&gt;                  SELECT SINGLE kunn2 FROM knvp INTO y_kunn2&lt;/P&gt;&lt;P&gt;                   WHERE kunnr = vbrk-kunag and parvw = 'BP'. " c_bp.&lt;/P&gt;&lt;P&gt;Even though I could able to select with the same value in data dictionary, but in program this statement does not bring the record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank U for ur time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 07:38:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-error/m-p/2023836#M414551</guid>
      <dc:creator>senthil_kumar29</dc:creator>
      <dc:date>2007-03-20T07:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-error/m-p/2023837#M414552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;try to fetch the same Partner function from VBPA table&lt;/P&gt;&lt;P&gt;Pass the VBRP-AUBEL(sales order No) for this table VBPA and pass the partner function 'BP' you will get the required partner function.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Anji Reddy Vangala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 07:42:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-error/m-p/2023837#M414552</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-20T07:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-error/m-p/2023838#M414553</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 code will work only if u have an internal table VBRK and a field in it as kunag and then loop into it and inside the loop place this select statement. Else the other option is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * from VBRK into VBRK.&lt;/P&gt;&lt;P&gt;SELECT SINGLE kunn2 FROM knvp INTO y_kunn2&lt;/P&gt;&lt;P&gt;WHERE kunnr = vbrk-kunag and parvw = 'BP'.&lt;/P&gt;&lt;P&gt;IF SY_SUBRC = 0.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u have done similar thing, then plz paste ur complete code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 07:43:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-error/m-p/2023838#M414553</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-20T07:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-error/m-p/2023839#M414554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check if  vbrk-kunag  has the leading zeroes , if not try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
  EXPORTING
    INPUT  = vbrk-kunag 
  IMPORTING
    OUTPUT = vbrk-kunag.

SELECT SINGLE kunn2 FROM knvp INTO y_kunn2
WHERE kunnr = vbrk-kunag and parvw = 'BP'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 07:52:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-error/m-p/2023839#M414554</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-20T07:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-error/m-p/2023840#M414555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am bringing the correct value in vbrk-kunag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I need to use some conversion exits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 07:55:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-error/m-p/2023840#M414555</guid>
      <dc:creator>senthil_kumar29</dc:creator>
      <dc:date>2007-03-20T07:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-error/m-p/2023841#M414556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is not with the inputs you are giving the problem is with the format of KUNNR in KNVP and VBRK-KUNAG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To solve this issue you need to use the conversion exit before the select query to get the records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use foolowing conversion exit&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CONVERSION_EXIT_ALPHA_INPUT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kunjal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 07:57:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-error/m-p/2023841#M414556</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-20T07:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-error/m-p/2023842#M414557</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;There seems to be a problem with the kunnr value you are using ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, you may try it like kunnr = '0000345' checking it out in the dictionary the field length .&lt;/P&gt;&lt;P&gt;Once this is diagnosed , u can use CONVERSION_EXIT_ALPHA_INPUT to add zeros in the beginning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shweta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 07:59:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-error/m-p/2023842#M414557</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-20T07:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-error/m-p/2023843#M414558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use FM CONVERSION_EXIT_ALPHA_INPUT&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
  EXPORTING
    INPUT  = knvp-kunnr 
  IMPORTING
    OUTPUT = knvp-kunnr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 07:59:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-error/m-p/2023843#M414558</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-20T07:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-error/m-p/2023844#M414559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    I have used the conversion exit.. but to my wonder its a simplest of the select statements.. still it does not bring the record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 08:00:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-error/m-p/2023844#M414559</guid>
      <dc:creator>senthil_kumar29</dc:creator>
      <dc:date>2007-03-20T08:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-error/m-p/2023845#M414560</link>
      <description>&lt;P&gt;Don't use PARVW = 'BP', there is a conversion exit on PARVW. Try using PARVW = 'RE'&lt;/P&gt;&lt;P&gt;You can see the unconverted value using SE16N by double clicking on the row.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 13:21:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-error/m-p/2023845#M414560</guid>
      <dc:creator>former_member378318</dc:creator>
      <dc:date>2019-08-09T13:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-error/m-p/2023846#M414561</link>
      <description>&lt;P&gt;The problem is with the parvw = 'BP' input. &lt;/P&gt;&lt;P&gt;While fetching data using a select query you must provide the internal partner function which is mapped with BP i.e. RE. You can pass RE directly by hardcoding it in your code or else you can use  CONVERSION_EXIT_PARVW_INPUT Function Module by passing BP as an input and getting RE as an output.&lt;/P&gt;&lt;P&gt;Reward if it was helpful for you.&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Basim Wangde&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 14:58:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-error/m-p/2023846#M414561</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-08-09T14:58:23Z</dc:date>
    </item>
  </channel>
</rss>

