{"id":114,"date":"2012-08-07T08:57:41","date_gmt":"2012-08-07T07:57:41","guid":{"rendered":"http:\/\/oprsteny.cz\/?p=114"},"modified":"2014-10-30T17:03:46","modified_gmt":"2014-10-30T16:03:46","slug":"how-to-fill-in-more-fields-using-a-search-help","status":"publish","type":"post","link":"https:\/\/oprsteny.cz\/?p=114","title":{"rendered":"How to fill in more fields using a search help"},"content":{"rendered":"<p><!--more--><\/p>\n<pre lang=\"abap\"> SELECTION-SCREEN\u00a0BEGIN\u00a0OF\u00a0BLOCK\u00a0b1\u00a0WITH\u00a0FRAME.\r\n PARAMETERS:\r\n \u00a0\u00a0p_name\u00a0TYPE\u00a0xubname,\r\n \u00a0\u00a0p_creat\u00a0TYPE\u00a0xuaname.\r\n SELECTION-SCREEN\u00a0END\u00a0OF\u00a0BLOCK\u00a0b1.\r\n \r\n AT\u00a0SELECTION-SCREEN\u00a0ON\u00a0VALUE-REQUEST\u00a0FOR\u00a0p_name.\r\n \u00a0\u00a0PERFORM\u00a0f4_search.\r\n \r\n AT\u00a0SELECTION-SCREEN\u00a0ON\u00a0VALUE-REQUEST\u00a0FOR\u00a0p_creat.\r\n \u00a0\u00a0PERFORM\u00a0f4_search.\r\n \r\n *&amp;---------------------------------------------------------------------*\r\n *&amp;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Form\u00a0\u00a0f4_search\r\n *&amp;---------------------------------------------------------------------*\r\n *\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0text\r\n *----------------------------------------------------------------------*\r\n FORM\u00a0f4_search.\r\n \u00a0\u00a0DATA:\u00a0BEGIN\u00a0OF\u00a0ls_users,\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0indx\u00a0TYPE\u00a0cntr_de,\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0bname\u00a0TYPE\u00a0xubname,\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0aname\u00a0TYPE\u00a0xuaname,\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0END\u00a0OF\u00a0ls_users,\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0lt_users\u00a0LIKE\u00a0TABLE\u00a0OF\u00a0ls_users,\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0lt_return\u00a0TYPE\u00a0ddshretval\u00a0OCCURS\u00a00\u00a0WITH\u00a0HEADER\u00a0LINE,\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0lt_fields\u00a0TYPE\u00a0TABLE\u00a0OF\u00a0dynpread,\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0l_counter\u00a0TYPE\u00a0i\u00a0VALUE\u00a01.\r\n \u00a0\u00a0FIELD-SYMBOLS:\u00a0&lt;fs_user&gt;\u00a0LIKE\u00a0ls_users,\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;fs_field&gt;\u00a0TYPE\u00a0dynpread.\r\n \r\n \u00a0\u00a0SELECT\u00a0bname\u00a0aname\u00a0\r\n     FROM\u00a0usr02\u00a0\r\n     INTO\u00a0CORRESPONDING\u00a0FIELDS\u00a0OF\u00a0TABLE\u00a0lt_users.\r\n \r\n \u00a0\u00a0LOOP\u00a0AT\u00a0lt_users\u00a0ASSIGNING\u00a0&lt;fs_user&gt;.\r\n \u00a0\u00a0\u00a0\u00a0&lt;fs_user&gt;-indx\u00a0=\u00a0l_counter.\r\n \u00a0\u00a0\u00a0\u00a0l_counter\u00a0=\u00a0l_counter\u00a0+\u00a01.\r\n \u00a0\u00a0ENDLOOP.\r\n \r\n \u00a0\u00a0CALL\u00a0FUNCTION\u00a0'F4IF_INT_TABLE_VALUE_REQUEST'\r\n \u00a0\u00a0\u00a0\u00a0EXPORTING\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0retfield\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0=\u00a0'INDX'\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0value_org\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0=\u00a0'S'\r\n \u00a0\u00a0\u00a0\u00a0TABLES\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0value_tab\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0=\u00a0lt_users\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0return_tab\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0=\u00a0lt_return\r\n \u00a0\u00a0\u00a0\u00a0EXCEPTIONS\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0parameter_error\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0=\u00a01\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0no_values_found\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0=\u00a02\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0OTHERS\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0=\u00a03\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0.\r\n \u00a0\u00a0IF\u00a0sy-subrc\u00a0=\u00a00 AND lt_return[] IS NOT INITIAL.\r\n \u00a0\u00a0\u00a0\u00a0READ\u00a0TABLE\u00a0lt_users\u00a0INDEX\u00a0lt_return-fieldval\u00a0ASSIGNING\u00a0&lt;fs_user&gt;.\r\n \r\n \u00a0\u00a0\u00a0\u00a0APPEND\u00a0INITIAL\u00a0LINE\u00a0TO\u00a0lt_fields\u00a0ASSIGNING\u00a0&lt;fs_field&gt;.\r\n \u00a0\u00a0\u00a0\u00a0&lt;fs_field&gt;-fieldname\u00a0=\u00a0'P_NAME'.\r\n \u00a0\u00a0\u00a0\u00a0&lt;fs_field&gt;-fieldvalue\u00a0=\u00a0&lt;fs_user&gt;-bname.\r\n \r\n \u00a0\u00a0\u00a0\u00a0APPEND\u00a0INITIAL\u00a0LINE\u00a0TO\u00a0lt_fields\u00a0ASSIGNING\u00a0&lt;fs_field&gt;.\r\n \u00a0\u00a0\u00a0\u00a0&lt;fs_field&gt;-fieldname\u00a0=\u00a0'P_CREAT'.\r\n \u00a0\u00a0\u00a0\u00a0&lt;fs_field&gt;-fieldvalue\u00a0=\u00a0&lt;fs_user&gt;-aname.\r\n \r\n \u00a0\u00a0\u00a0\u00a0CALL\u00a0FUNCTION\u00a0'DYNP_VALUES_UPDATE'\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0EXPORTING\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0dyname\u00a0\u00a0\u00a0\u00a0\u00a0=\u00a0sy-repid\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0dynumb\u00a0\u00a0\u00a0\u00a0\u00a0=\u00a0sy-dynnr\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0TABLES\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0dynpfields\u00a0=\u00a0lt_fields.\r\n \u00a0\u00a0ENDIF.\r\n ENDFORM.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\"f4_search<\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[16,9],"tags":[446,20,19,17,18],"class_list":["post-114","post","type-post","status-publish","format-standard","hentry","category-abap","category-development","tag-abap","tag-dynp_values_update","tag-f4if_int_table_value_request","tag-sap","tag-search-help"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3nYbe-1Q","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/posts\/114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=114"}],"version-history":[{"count":6,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/posts\/114\/revisions"}],"predecessor-version":[{"id":1204,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=\/wp\/v2\/posts\/114\/revisions\/1204"}],"wp:attachment":[{"href":"https:\/\/oprsteny.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oprsteny.cz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}