<?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: Use of Native SQL in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/use-of-native-sql/m-p/2483264#M559787</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want ot change the format of Date like to retrive date in 'dd-mon-yy' or to retrive only 'Mon' from the supplied date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jun 2007 11:58:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-25T11:58:40Z</dc:date>
    <item>
      <title>Use of Native SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/use-of-native-sql/m-p/2483261#M559784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can i use all sql statementsa which are used in oracle ? Basically I am more interested in oracle data conversion functions like to_date(),To_Char() with appropriate formats. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that to use oracle's native commands i have to use Native SQL and for that i have to write my query between EXEC SQL and ENDEXEC.  But i am not able to use query that uses date conversion fuctions like to_date() and to_char().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also i want to know the list of SQL statements which can be used with Native SQL in Oracle.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 11:41:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/use-of-native-sql/m-p/2483261#M559784</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-25T11:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Native SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/use-of-native-sql/m-p/2483262#M559785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deval,&lt;/P&gt;&lt;P&gt;Trry this,&lt;/P&gt;&lt;P&gt;EXEC SQL PERFORMING read_dental.&lt;/P&gt;&lt;P&gt;select emp_ssn_num, emp_fname, emp_lname,&lt;/P&gt;&lt;P&gt;to_char(start_date, 'YYYYMMDD') as start_date,&lt;/P&gt;&lt;P&gt;rec_type,&lt;/P&gt;&lt;P&gt;to_char(eff_date, 'YYYYMMDD') as eff_date,&lt;/P&gt;&lt;P&gt;vendor_plan_id&lt;/P&gt;&lt;P&gt;into :dental&lt;/P&gt;&lt;P&gt;from opr$8oc.BVER_CURR_DENTAL_MASTER&lt;/P&gt;&lt;P&gt;ENDEXEC.&lt;/P&gt;&lt;P&gt;Reward if useful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 11:43:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/use-of-native-sql/m-p/2483262#M559785</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-25T11:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Native SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/use-of-native-sql/m-p/2483263#M559786</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;please refer this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To avoid the standard F4 help to be show, insert the event PROCESS ON-VALUE-REQUEST request in the program and add a field statement for the field that should trigger the F4 help. In the module called from PROCESS ON-VALUE-REQUEST request, call function module F4IF_FIELD_VALUE_REQUEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example Code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;process before output.&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;process after input.&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS ON VALUE-REQUEST.&lt;/P&gt;&lt;P&gt;FIELD sflight-carrid MODULE f4_help_for_carrid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE f4_help_for_carrid INPUT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;NOTE:&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Tabname/fieldname is the name of the table and field&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;for which F4 should be shown.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Dynprog/Dynpnr/Dynprofield are the names of the Progran/Dynpro/Field&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;in which the f4 value should be returned.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Value: The value of the Dynpro field when calling the F4 help.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;You can limit the values shown, by inseting a value in this parameter&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;e.g 'A*' to show only values beginning with A&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;tabname = 'SFLIGHT'&lt;/P&gt;&lt;P&gt;fieldname = 'CARRID'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SEARCHHELP = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SHLPPARAM = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;dynpprog = 'ZDANY_F4_OWN_CALL'&lt;/P&gt;&lt;P&gt;dynpnr = '0100'&lt;/P&gt;&lt;P&gt;dynprofield = 'SFLIGHT-CARRID'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;STEPL = 0&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;value = 'A*'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MULTIPLE_CHOICE = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;DISPLAY = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SUPPRESS_RECORDLIST = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CALLBACK_PROGRAM = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CALLBACK_FORM = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;RETURN_TAB =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FIELD_NOT_FOUND = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;NO_HELP_FOR_FIELD = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;INCONSISTENT_HELP = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;NO_VALUES_FOUND = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OTHERS = 5&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE. " F4_help_for_carrid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To control F4 help in a selection screen use the AT SELECTION-SCREEN ON VALUE-REQUEST FOR event.Note that for ranges both the low and high value of the field must have there own ON VALUE-REQUEST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_prctr-low.&lt;/P&gt;&lt;P&gt;PERFORM f4_help_carrid.&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_prctr-high.&lt;/P&gt;&lt;P&gt;PERFORM f4_help_carrid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards all helpfull answers.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 11:47:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/use-of-native-sql/m-p/2483263#M559786</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-25T11:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Native SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/use-of-native-sql/m-p/2483264#M559787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want ot change the format of Date like to retrive date in 'dd-mon-yy' or to retrive only 'Mon' from the supplied date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 11:58:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/use-of-native-sql/m-p/2483264#M559787</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-25T11:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Native SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/use-of-native-sql/m-p/2483265#M559788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please avoid NAIVE SQL. Instead u have lot of option in SQL to perform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 12:03:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/use-of-native-sql/m-p/2483265#M559788</guid>
      <dc:creator>alex_m</dc:creator>
      <dc:date>2007-06-25T12:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Native SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/use-of-native-sql/m-p/2483266#M559789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesn't work.  I issued the following statement ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  EXEC SQL PERFORMING LOOP_OUTPUT.&lt;/P&gt;&lt;P&gt;    SELECT MANDT,VBELN,TO_CHAR(FKDAT,'YYYYMMDD') AS FKDAT,VTWEG&lt;/P&gt;&lt;P&gt;    INTO :wa&lt;/P&gt;&lt;P&gt;    FROM VBRK&lt;/P&gt;&lt;P&gt;    WHERE MANDT = 300&lt;/P&gt;&lt;P&gt;    ORDER BY VBELN&lt;/P&gt;&lt;P&gt;  ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i receive the error as bellow&lt;/P&gt;&lt;P&gt;Error 1481 occured in the current database connection "DEFAULT".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 12:06:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/use-of-native-sql/m-p/2483266#M559789</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-25T12:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Native SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/use-of-native-sql/m-p/2483267#M559790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, Please tell me how to change the date format using Open SQL.I want to change the date format of all selected rows in single shot. means i don't want to perform loop on internal table to change the format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 12:11:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/use-of-native-sql/m-p/2483267#M559790</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-25T12:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Native SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/use-of-native-sql/m-p/2483268#M559791</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;please avoid Native SQL. try SQL as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;      l_mandt type vbrk-mandt,&lt;/P&gt;&lt;P&gt;       l_vbeln type vbrk-vbeln,&lt;/P&gt;&lt;P&gt;       l_date type sy-datum.&lt;/P&gt;&lt;P&gt;end of itab &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select MANDT VBELN &amp;lt;which filed for date&amp;gt; from vbrk into itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;write :itab-l_date.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this it will help for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rewards all helpfull answers.&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 12:38:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/use-of-native-sql/m-p/2483268#M559791</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-25T12:38:26Z</dc:date>
    </item>
  </channel>
</rss>

