<?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: BSP: Call function modul from JavaScript? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bsp-call-function-modul-from-javascript/m-p/1204588#M131813</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;The solution we use is calling a BSP page in a popup. In that popup you do the validation of that field via the an FM in the oninitialisation. That'll give back is something is valid or not. In the layout of that popup, you nothing else than updating a JS variable indicating that it's valid or not and close itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively you can do everything in the oniputprossing of the original page and you work with different event_id. When you come to the case of the input validation, you call that FM and put the result an a ABAP var. You do no page navigation, thus the original page will be reloaded wher you can check if the abap var contains a certain var and than create the JS for an eventual alert. This method requires good bookkeeping of all variables and stuff.&lt;/P&gt;&lt;P&gt;The first method is thus preferable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Mar 2006 10:26:37 GMT</pubDate>
    <dc:creator>eddy_declercq</dc:creator>
    <dc:date>2006-03-13T10:26:37Z</dc:date>
    <item>
      <title>BSP: Call function modul from JavaScript?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bsp-call-function-modul-from-javascript/m-p/1204584#M131809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;business needs require, that we do some checks on data entered in a form before we save the information to the R/3 System. After trying several ways with the event handler "onInputProcessing", the question came out, if it would not be easier to do the validation via JavaScript. The issue there is that we have to validate the data against a table in R/3. Is it possible to call a function modul, that deliveres true or false, directly from JavaScript?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Stephan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2006 10:11:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bsp-call-function-modul-from-javascript/m-p/1204584#M131809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-13T10:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: BSP: Call function modul from JavaScript?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bsp-call-function-modul-from-javascript/m-p/1204585#M131810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can better use the BSP forum for this post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2006 10:14:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bsp-call-function-modul-from-javascript/m-p/1204585#M131810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-13T10:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: BSP: Call function modul from JavaScript?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bsp-call-function-modul-from-javascript/m-p/1204586#M131811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephan,&lt;/P&gt;&lt;P&gt;Since you need to validate data against the tables it would be much better to validate in the server itself.&lt;/P&gt;&lt;P&gt;Since the need of using Javascript is lost here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I dont think that you can make a call to the server from the Javascript. You can better make a try using Remote Enabled Function Modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Wenceslaus.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2006 10:17:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bsp-call-function-modul-from-javascript/m-p/1204586#M131811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-13T10:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: BSP: Call function modul from JavaScript?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bsp-call-function-modul-from-javascript/m-p/1204587#M131812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In future please post BSP related questions in BSP forum.&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_community" href="https://community.sap.com/" __jive_macro_name="community" modifiedtitle="true" __default_attr="2023"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Coming to your question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to check the input value against database table you have to do a server event, with just javascript (which is client side only) you cannot validate against table values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However , if your intention is to avoid the server rountrip and the resulting reloading of the page, you can achieve this with the use of AJAX programming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2006 10:20:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bsp-call-function-modul-from-javascript/m-p/1204587#M131812</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2006-03-13T10:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: BSP: Call function modul from JavaScript?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bsp-call-function-modul-from-javascript/m-p/1204588#M131813</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;The solution we use is calling a BSP page in a popup. In that popup you do the validation of that field via the an FM in the oninitialisation. That'll give back is something is valid or not. In the layout of that popup, you nothing else than updating a JS variable indicating that it's valid or not and close itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively you can do everything in the oniputprossing of the original page and you work with different event_id. When you come to the case of the input validation, you call that FM and put the result an a ABAP var. You do no page navigation, thus the original page will be reloaded wher you can check if the abap var contains a certain var and than create the JS for an eventual alert. This method requires good bookkeeping of all variables and stuff.&lt;/P&gt;&lt;P&gt;The first method is thus preferable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2006 10:26:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bsp-call-function-modul-from-javascript/m-p/1204588#M131813</guid>
      <dc:creator>eddy_declercq</dc:creator>
      <dc:date>2006-03-13T10:26:37Z</dc:date>
    </item>
  </channel>
</rss>

