{"id":5518,"date":"2016-04-11T14:46:04","date_gmt":"2016-04-11T11:46:04","guid":{"rendered":"http:\/\/www.karadere.com\/blog\/?p=5518"},"modified":"2016-04-11T14:46:59","modified_gmt":"2016-04-11T11:46:59","slug":"sap-bsp-call-oninputprocessing-event-from-sap-bsp-page-via-href-or-button-or-href-link-or-javascript-action-event","status":"publish","type":"post","link":"https:\/\/www.karadere.com\/blog\/sap-bsp-call-oninputprocessing-event-from-sap-bsp-page-via-href-or-button-or-href-link-or-javascript-action-event.html","title":{"rendered":"SAP BSP Call onInputProcessing event from SAP BSP page via href or button or href link or javascript action event"},"content":{"rendered":"<p>SAP BSP Call onInputProcessing event from SAP BSP page via href or button or href link or javascript action event<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/encrypted-tbn3.gstatic.com\/images?q=tbn:ANd9GcQ7x2xNMmlVoKWh95b-v0QkmrAhAZOoYYjCfd6dVGTXZp70n1oOSROSr2xF\" alt=\"\" width=\"233\" height=\"123\" \/><\/p>\n<p><b><span style=\"color: blue;\">Using &#8216;&lt;input type=submit&#8230;&#8217; button <\/span><\/b><br \/>\nCall OnInputProcessing BSP event from an HTMl button, this code will pass &#8216;search&#8217; into the event_id<\/p>\n<div id=\"abapcode\">\n<pre>&lt;form method=\"post\" name=\"form\" id=\"form\" &gt;\r\n  &lt;INPUT type=\"submit\" name=\"OnInputProcessing(search)\" value=\"New search\"&gt;\r\n&lt;\/form&gt;\r\n<\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p><b><span style=\"color: blue;\">Using &#8216;&lt;a href=&#8217; link <\/span><\/b><br \/>\nCall OnInputProcessing BSP event from an &#8216;&lt;a href=&#8217; link, this code also passes &#8216;search&#8217; into the event_id<\/p>\n<div id=\"abapcode\">\n<pre>&lt;a href=\"?onInputProcessing(search)\"  &gt;New search&lt;\/a&gt;<\/pre>\n<\/div>\n<p><b>Capture user input via this method<\/b><br \/>\nIf you want to use this method an also capture values entered within html &lt;input&gt; fields on the screen, you will also need to add an onclick event to call a peice of javascript to manually submit the &lt;form&gt;<\/p>\n<p><b>&lt;a href=&#8221;?onInputProcessing(search)&#8221; onclick=&#8221;PassValues();&#8221; &gt;New search&lt;\/a&gt; <\/b><\/p>\n<p>You also need to ensure you create an page attribute with the same name as your input field name tag. Then add the following javascript code between your &lt;head&gt; &lt;\/head&gt; tags. Note &#8216;formname&#8217; is the name of your form as declared in your HTML code i.e. &lt;form name=&#8221;formname&#8221;&#8230;<\/p>\n<div id=\"abapcode\">\n<pre>&lt;SCRIPT TYPE=\"text\/javascript\"&gt;\r\n&lt;!--\r\nfunction PassValues() {\r\n&lt;% data: ld_test type string.\r\n*  add abap code can go here\r\n%&gt;\r\ndocument.forms[\"formname\"].submit();\r\n}\r\n\/\/--&gt;\r\n&lt;\/SCRIPT&gt;<\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>SAP BSP Call onInputProcessing event from SAP BSP page via href or button or href link or javascript action event &nbsp; Using &#8216;&lt;input type=submit&#8230;&#8217; button Call OnInputProcessing BSP event from an HTMl button, this code will pass &#8216;search&#8217; into the event_id &lt;form method=&#8221;post&#8221; name=&#8221;form&#8221; id=&#8221;form&#8221; &gt; &lt;INPUT type=&#8221;submit&#8221; name=&#8221;OnInputProcessing(search)&#8221; value=&#8221;New search&#8221;&gt; &lt;\/form&gt; &nbsp; Using &#8216;&lt;a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":"","_links_to":"","_links_to_target":""},"categories":[2],"tags":[395,2502,615,638,2499,2500,1241,2498,1837,2501],"class_list":["post-5518","post","type-post","status-publish","format-standard","hentry","category-2015-2016","tag-abap","tag-action","tag-bsp-2","tag-call","tag-event","tag-from","tag-javascript","tag-oninputprocessing","tag-sap","tag-sap-bsp-page-via-href-or-button-or-href-link-or","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"aioseo_notices":[],"views":1871,"_links":{"self":[{"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/posts\/5518","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/comments?post=5518"}],"version-history":[{"count":2,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/posts\/5518\/revisions"}],"predecessor-version":[{"id":5520,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/posts\/5518\/revisions\/5520"}],"wp:attachment":[{"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/media?parent=5518"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/categories?post=5518"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/tags?post=5518"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}