{"id":5068,"date":"2015-04-09T11:07:09","date_gmt":"2015-04-09T09:07:09","guid":{"rendered":"http:\/\/www.karadere.com\/blog\/?p=5068"},"modified":"2015-04-09T11:07:09","modified_gmt":"2015-04-09T09:07:09","slug":"sap-bsp-set-get-all-post-fields-call-method-m_runtime-server-request-get_form_fields","status":"publish","type":"post","link":"https:\/\/www.karadere.com\/blog\/sap-bsp-set-get-all-post-fields-call-method-m_runtime-server-request-get_form_fields.html","title":{"rendered":"SAP BSP set get all post fields. call method m_runtime->server->request->get_form_fields"},"content":{"rendered":"<p><a href=\"http:\/\/www.karadere.com\/blog\/uploads\/\/2010\/02\/sap-abap-logo.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-309\" src=\"http:\/\/www.karadere.com\/blog\/uploads\/\/2010\/02\/sap-abap-logo.png\" alt=\"SAP Fiori\" width=\"230\" height=\"121\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>method IF_BSP_NAVIGATION~SET_PARAMETER.<\/p>\n<p>* uses ****************************************************************<\/p>\n<p>class cl_bsp_utility definition load.<br \/>\n* data ****************************************************************<\/p>\n<p>data: l_fields type tihttpnvp,<br \/>\nl_field type ihttpnvp,<br \/>\nl_name_len type i,<br \/>\nl_name_len2 type i.<br \/>\n* code ****************************************************************<\/p>\n<p>check not name is initial.<br \/>\ntranslate name to lower case. &#8220;#EC *<br \/>\nl_name_len = strlen( name ).<\/p>\n<p>if value is supplied.<br \/>\ncall method cl_bsp_utility=&gt;serialize_data<br \/>\nexporting name = name<br \/>\ndata = value<br \/>\nchanging fields = m_parameters.<br \/>\nelse.<br \/>\ncall method m_runtime-&gt;server-&gt;request-&gt;get_form_fields<br \/>\nchanging fields = l_fields.<br \/>\nloop at l_fields into l_field.<\/p>\n<p>translate l_field-name to lower case. &#8220;#EC SYNTCHAR<br \/>\nl_name_len2 = strlen( l_field-name ).<br \/>\nif l_name_len2 = l_name_len and l_field-name = name.<br \/>\nappend l_field to m_parameters.<br \/>\nelseif l_name_len2 &gt; l_name_len<br \/>\nand l_field-name(l_name_len) = name<br \/>\nand ( l_field-name+l_name_len(1) = &#8216;.&#8217;<br \/>\nor l_field-name+l_name_len(1) = &#8216;-&#8216;<br \/>\nor l_field-name+l_name_len(1) = &#8216;[&#8216; ).<br \/>\nappend l_field to m_parameters.<br \/>\nendif.<br \/>\nendloop.<br \/>\nendif.<\/p>\n<p>endmethod.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h1>CL_BSP_NAVIGATION SAP Class &#8211; Business Server Pages (BSP) Navigation<\/h1>\n<div id=\"rightcol\"><ins class=\"adsbygoogle adslot_rightcol\" data-ad-client=\"ca-pub-6389415953938571\" data-ad-slot=\"8165419743\"><\/ins><\/p>\n<\/div>\n<div class=\"descrip\">\n<p>CL_BSP_NAVIGATION is a standard SAP class available within R\/3 SAP systems depending on your version and release level. Below is the standard documentation available for this class interface. You can view this information and more if you enter the class name CL_BSP_NAVIGATION into the relevant SAP transaction such as <a href=\"http:\/\/www.se80.co.uk\/saptcodes\/s\/se24\/se24.htm\">SE24<\/a> or <a href=\"http:\/\/www.se80.co.uk\/saptcodes\/s\/se80\/se80.htm\">SE80<\/a>.<\/p>\n<p>Within the comments section below there is also an opportunity for you to add useful hints, tips and information specific to this SAP object. This means that you and other users will be able to find these details quickly by simply searching on the object name CL_BSP_NAVIGATION or its description.<\/p>\n<div class=\"sapDocu\"><\/div>\n<h2>Class Attributes<\/h2>\n<p>Class attributes can be referenced using the following syntax CL_BSP_NAVIGATION=&gt;<i>&lt;attribute name&gt;<\/i>. Although depending on where you are inserting the ABAP code you do need to check if the attribute is public or private.<br \/>\n<b>CO_NAV_CALL_APPLICATION<\/b> &#8211; Navigation Call<br \/>\n<b>CO_NAV_COMPLETED<\/b> &#8211; Ready, Returns Response<br \/>\n<b>CO_NAV_EXIT<\/b> &#8211; Exit<br \/>\n<b>CO_NAV_GOTO_PAGE<\/b> &#8211; Goto page<br \/>\n<b>CO_NAV_NEXT_PAGE<\/b> &#8211; Navigate to Next Page<br \/>\n<b>CO_NAV_UNDEFINED<\/b> &#8211; No Navigation Call<br \/>\n<b>M_ABSOLUTE_URL<\/b> &#8211; Uses absolute URL<br \/>\n<b>M_AUTO_SUBMIT_FORM<\/b> &#8211; Uses auto submit form<br \/>\n<b>M_ENCODE_PARAMETERS<\/b> &#8211; Codes parameters<br \/>\n<b>M_LAST_NAV<\/b> &#8211; See co_nav_*<br \/>\n<b>M_PARAMETERS<\/b> &#8211; Navigation parameter<br \/>\n<b>M_RAISING_EXCEPTION<\/b> &#8211; 1. Sets navigation exception from<br \/>\n<b>M_RUNTIME<\/b> &#8211; BSP Runtime<br \/>\n<b>M_TARGET_FRAME<\/b> &#8211; Current return target frame<br \/>\n<b>M_URL<\/b> &#8211; Current return URL<\/p>\n<h2>Class Methods<\/h2>\n<p>Class methods are similar to function modules in that they are a coding block that performs certain ABAP functionality. Methods can be referenced using the following syntax: CALL METHOD CL_BSP_NAVIGATION EXPORTING\/IMPORTING&#8230;<br \/>\n<b>ADD_SID_TO_URL<\/b> &#8211; Adds Session ID to URL<br \/>\n<b>CONSTRUCTOR<\/b> &#8211; Constructor<br \/>\n<b>CONSTRUCT_AUTO_SUBMIT_FORM<\/b> &#8211; Constructs the Redirect Page from the Current Settings<br \/>\n<b>CONSTRUCT_URL<\/b> &#8211; Constructs the Redirect URL from the Current Settings<br \/>\n<b>DECODE_PARAMETERS<\/b> &#8211; Decodes the current parameter from the URL<br \/>\n<b>ENCODE_PARAMETERS<\/b> &#8211; Codes the current parameter in the URL<br \/>\n<b>FIND_PAGE<\/b> &#8211; Returns the name of the next page at navigation pass<br \/>\n<b>MAKE_ABSOLUTE_URL<\/b> &#8211; Creates an abolute URL from a relative URL<br \/>\n<b>RAISE_EXCEPTION<\/b> &#8211; Sets the navigation raising behavior<br \/>\n<b>RESET<\/b> &#8211; Reset the Object<\/p>\n<h2>Class Events<\/h2>\n<p>Events are created within your class using special event handler methods. These must be registered at runtime for the event and can then be triggered using the ABAP syntax: RAISE EVENT &lt;evnet name&gt; EXPOTING&#8230;<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>call method m_runtime->server->request->get_form_fields<\/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":[87,6,100,41],"tags":[395,432,615,638,940,1031,1462,1652,1708,1837],"class_list":["post-5068","post","type-post","status-publish","format-standard","hentry","category-advanced-business-application-programming","category-bilisim-it-haber","category-bsp","category-programlama-software","tag-abap","tag-all","tag-bsp-2","tag-call","tag-fiels","tag-get","tag-method","tag-parametr","tag-post","tag-sap","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"aioseo_notices":[],"views":2461,"_links":{"self":[{"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/posts\/5068","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=5068"}],"version-history":[{"count":0,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/posts\/5068\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/media?parent=5068"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/categories?post=5068"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/tags?post=5068"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}