<?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: regarding the select query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-select-query/m-p/3055307#M723534</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Madhvi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             You should put proper query to get the out put...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just try this and see...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Tables : vbep.

SELECT SINGLE * FROM vbep
                          WHERE vbeln = v_vbelns.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;It should work.&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Enjoy.&lt;/P&gt;&lt;P&gt;Sagun Desai...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 24 Nov 2007 11:26:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-24T11:26:13Z</dc:date>
    <item>
      <title>regarding the select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-select-query/m-p/3055303#M723530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gurus,&lt;/P&gt;&lt;P&gt;Im  using bapi create sales order for creating a new sales order. now this FM&lt;/P&gt;&lt;P&gt;BAPI_SALESDOCU_CREATEFROMDATA1 has a retun vbeln ie SO number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now based on this SO number i want the PR ref number from the vbep table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM vbep INTO vbep&lt;/P&gt;&lt;P&gt;   WHERE vbeln = v_vbelns .&lt;/P&gt;&lt;P&gt;but this select querry doesnt pick any value.&lt;/P&gt;&lt;P&gt;but when i check this DBase table vbep this SO number is there anr the PR number is also there.&lt;/P&gt;&lt;P&gt;But im not able to find the error why it is not picking the data in the inernal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points for all usefull ans.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Nov 2007 11:18:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-select-query/m-p/3055303#M723530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-24T11:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: regarding the select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-select-query/m-p/3055304#M723531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhvi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I think you need to call FM CONVERSION_EXIT_ALPHA_INPUT or CONVERSION_EXIT_ALPHA_OUTPUT on v_vbelns before using it in select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check v_vbelns value in debugging, what value it is passing to select query and put the same valu in DBTABLE and see whether you are getting any value or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Nov 2007 11:23:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-select-query/m-p/3055304#M723531</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-24T11:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: regarding the select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-select-query/m-p/3055305#M723532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;generally after calling bapi we have to call bapi_transaction_commit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Nov 2007 11:23:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-select-query/m-p/3055305#M723532</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-24T11:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: regarding the select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-select-query/m-p/3055306#M723533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pass your return doc number v_vbelns  from the BAPI to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_ALPHA_OUTPUT  and then use it into your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Nov 2007 11:24:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-select-query/m-p/3055306#M723533</guid>
      <dc:creator>former_member195698</dc:creator>
      <dc:date>2007-11-24T11:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: regarding the select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-select-query/m-p/3055307#M723534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Madhvi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             You should put proper query to get the out put...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just try this and see...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Tables : vbep.

SELECT SINGLE * FROM vbep
                          WHERE vbeln = v_vbelns.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;It should work.&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Enjoy.&lt;/P&gt;&lt;P&gt;Sagun Desai...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Nov 2007 11:26:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-select-query/m-p/3055307#M723534</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-24T11:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: regarding the select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-select-query/m-p/3055308#M723535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is my exact code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM spool_print using v_vbelns&lt;/P&gt;&lt;P&gt; t_repc_create_spool STRUCTURE t_repc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*internal table for the  spool&lt;/P&gt;&lt;P&gt;*data: itab11 like vbep occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: begin of i_spool occurs 0,&lt;/P&gt;&lt;P&gt;        vbeln1 type vbap-vbeln,&lt;/P&gt;&lt;P&gt;        vbeln4 type vbap-vbeln,&lt;/P&gt;&lt;P&gt;        p_req type vbep-banfn,&lt;/P&gt;&lt;P&gt;        p_pur type vbkd-bstkd,&lt;/P&gt;&lt;P&gt;        end of i_spool.&lt;/P&gt;&lt;P&gt;  tables: vbep.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_ALPHA_output'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      input  = v_vbelns&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      output = v_vbelns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT SINGLE * FROM vbep INTO vbep&lt;/P&gt;&lt;P&gt;   WHERE vbeln = v_vbelns .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  write: /0(71) sy-uline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  write: /1 sy-vline, 2(15) 'SalesOrder-Ch1', sy-vline , 19(15)&lt;/P&gt;&lt;P&gt;  'SalesOrder-Ch4',&lt;/P&gt;&lt;P&gt;  sy-vline, 37(15) 'Purch_order', sy-vline, 55(15)'purcu_req', sy-vline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*v_vbelns&lt;/P&gt;&lt;P&gt;*select banfn&lt;/P&gt;&lt;P&gt;*from vbep&lt;/P&gt;&lt;P&gt;*into req&lt;/P&gt;&lt;P&gt;*where vbeln = v_vbeln and posnr = 10 and ETENR = 1 .&lt;/P&gt;&lt;P&gt;*endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  i_spool-vbeln1 = t_repc_create_spool-vbeln.&lt;/P&gt;&lt;P&gt;  i_spool-vbeln4 = v_vbelns.&lt;/P&gt;&lt;P&gt;  i_spool-p_pur  = p_purch.&lt;/P&gt;&lt;P&gt;  i_spool-p_req  = vbep-banfn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  append i_spool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at i_spool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    write: /0(71) sy-uline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    write: /1 sy-vline, 2 i_spool-vbeln1,18 sy-vline, i_spool-vbeln4,&lt;/P&gt;&lt;P&gt;    35 sy-vline, i_spool-p_pur,&lt;/P&gt;&lt;P&gt;    53 sy-vline, i_spool-p_req, 71 sy-vline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    write: /0(71) sy-uline.&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;ENDFORM.                    " spool_print&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;im using the function CONVERSION_EXIT_ALPHA_INPUT.&lt;/P&gt;&lt;P&gt;but yet not able to get the desired result. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the v_vbelns field has a value in it but yet the select querry is nt able to take out the result from the data base table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Nov 2007 11:32:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-select-query/m-p/3055308#M723535</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-24T11:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: regarding the select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-select-query/m-p/3055309#M723536</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;        Before above query and after the bapi.&lt;/P&gt;&lt;P&gt;Just check the output value of sales order "v_vbelns".&lt;/P&gt;&lt;P&gt;If the value is just a number without initial zeros for eg. "12334545".&lt;/P&gt;&lt;P&gt;Then you have to uses the following function module...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
  EXPORTING
    INPUT         = v_vbelns
 IMPORTING
   OUTPUT        = v_vbelns
          .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the value is just a number with initial zeros for eg. "0012334545".&lt;/P&gt;&lt;P&gt;Then you have to call following transaction....&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
  EXPORTING
    INPUT         = v_vbelns
 IMPORTING
   OUTPUT        = v_vbelns
          .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BEFORE ALL ABOVE THIS JUST CHECK DATA IN THE TABLE HOW THE SALES ORDER NUMBER IS MAINTAINED. WHEATHER ITS WITH ZEROS OR WITHOUT ZEROS....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THIS SHOULD WORK....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHEERS,&lt;/P&gt;&lt;P&gt;SAGUN DESAI...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Nov 2007 11:35:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-select-query/m-p/3055309#M723536</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-24T11:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: regarding the select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-select-query/m-p/3055310#M723537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Madhvi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below Function call is working?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'CONVERSION_EXIT_ALPHA_output' "&amp;lt;&amp;lt; Make output to UPPER CASE
EXPORTING
input = v_vbelns
IMPORTING
output = v_vbelns.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Nov 2007 11:39:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-select-query/m-p/3055310#M723537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-24T11:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: regarding the select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-select-query/m-p/3055311#M723538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After the BAPI call to create the document, when you call BAPI TRANSACTION_COMMIT, specify WAIT = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Nov 2007 17:22:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-select-query/m-p/3055311#M723538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-24T17:22:38Z</dc:date>
    </item>
  </channel>
</rss>

