<?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: vrm_set_values in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/vrm-set-values/m-p/8587642#M1661310</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ima using this FM in PBO module,when iam giving event at selection screen output or process on value request it is showing syntax error that started module has to end with endmodule.it is not accepting any event .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my doubt is iam picking this value from text and iam passing this to input selection screen,for this iam writing logic in PBO only,will iam able to get this string as Search help for that perticular field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reg&lt;/P&gt;&lt;P&gt;shiv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Feb 2012 05:50:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-02-17T05:50:08Z</dc:date>
    <item>
      <title>vrm_set_values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vrm-set-values/m-p/8587639#M1661307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;iam using FM vrm_set_vlaues to get F4 help on inputscreen.iam getting the data for this field as text using reaa_text.so iam splitting the text and iam passing that value to string.for this i have written code as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : lid type vrm_id,&lt;/P&gt;&lt;P&gt;      l_val type vrm_values,&lt;/P&gt;&lt;P&gt;      val like line of l_val.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    val-text = string3.&lt;/P&gt;&lt;P&gt;    append val to l_val.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'VRM_SET_VALUES'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    id                    = 'ZURZZT'&lt;/P&gt;&lt;P&gt;    values                = l_val&lt;/P&gt;&lt;UL&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;  ID_ILLEGAL_NAME       = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                = 2&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;ENdid.&lt;/P&gt;&lt;P&gt;iam getting that number into l_val,but iam unable to get that on input selection screen.&lt;/P&gt;&lt;P&gt;plese suggest me any other possiblities are there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reg&lt;/P&gt;&lt;P&gt;shiv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 10:57:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vrm-set-values/m-p/8587639#M1661307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-16T10:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: vrm_set_values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vrm-set-values/m-p/8587640#M1661308</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;   You can use this code to get F4 help values for a parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
   parameters: p_ebeln type ekko-ebeln.

TYPES: BEGIN OF t_ekko,
  ebeln TYPE ekpo-ebeln,
 END OF t_ekko.

DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
      wa_ekko TYPE t_ekko,
      it_return type STANDARD TABLE OF DDSHRETVAL,
      wa_return like line of it_return.

**************************************************************
*at selection-screen
at selection-screen on value-request for p_ebeln.

select *
  up to 10 rows
  from ekko
  into CORRESPONDING FIELDS OF TABLE it_ekko.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
  EXPORTING
*   DDIC_STRUCTURE         = 'EKKO'
    RETFIELD               = 'EBELN'
*   PVALKEY                = ' '
*    DYNPPROG               = sy-repid
*    DYNPNR                 = sy-dynnr
*   DYNPROFIELD            = 'EBELN'
*   STEPL                  = 0
    WINDOW_TITLE           = 'Ekko Records'
*   VALUE                  = ' '
    VALUE_ORG              = 'S'
*    MULTIPLE_CHOICE        = 'X'  "allows you select multiple entries from the popup
*   DISPLAY                = ' '
*   CALLBACK_PROGRAM       = ' '
*   CALLBACK_FORM          = ' '
*   MARK_TAB               =
* IMPORTING
*   USER_RESET             = ld_ret
  TABLES
    VALUE_TAB              = it_ekko
*    FIELD_TAB              = lt_field
    RETURN_TAB             = it_return
*   DYNPFLD_MAPPING        =
 EXCEPTIONS
   PARAMETER_ERROR        = 1
   NO_VALUES_FOUND        = 2
   OTHERS                 = 3.

READ TABLE it_return into wa_return index 1.
p_ebeln = wa_return-fieldval.
   &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 11:50:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vrm-set-values/m-p/8587640#M1661308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-16T11:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: vrm_set_values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vrm-set-values/m-p/8587641#M1661309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Shiva,&lt;/P&gt;&lt;P&gt;         Keep Initialisation event. You will get values on selection screen. Just I passed one value to string3 and check the code.&lt;/P&gt;&lt;P&gt;Its working fine.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
type-pools: vrm.
PARAMETERS : zurzzt(9) TYPE c AS LISTBOX VISIBLE LENGTH 9.
data: string3 TYPE string VALUE 'Satya'.
data : lid type vrm_id,
l_val type vrm_values,
val like line of l_val.

INITIALIZATION.
val-key = '1'.
val-text = string3.
append val to l_val.
AT SELECTION-SCREEN OUTPUT.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'ZURZZT'
values = l_val
 EXCEPTIONS
 ID_ILLEGAL_NAME = 1
 OTHERS = 2
.
IF sy-subrc &amp;lt;&amp;gt; 0.
 MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENdif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If any doubts revert back.&lt;/P&gt;&lt;P&gt;I will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Supriya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 13:08:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vrm-set-values/m-p/8587641#M1661309</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-16T13:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: vrm_set_values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vrm-set-values/m-p/8587642#M1661310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ima using this FM in PBO module,when iam giving event at selection screen output or process on value request it is showing syntax error that started module has to end with endmodule.it is not accepting any event .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my doubt is iam picking this value from text and iam passing this to input selection screen,for this iam writing logic in PBO only,will iam able to get this string as Search help for that perticular field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reg&lt;/P&gt;&lt;P&gt;shiv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 05:50:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vrm-set-values/m-p/8587642#M1661310</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-17T05:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: vrm_set_values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vrm-set-values/m-p/8587643#M1661311</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;Provide the values to the val-text in the initialization event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then call the VRM_Set_values fm at Selection-Screen Output event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your purpose will be solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 06:10:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vrm-set-values/m-p/8587643#M1661311</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-17T06:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: vrm_set_values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vrm-set-values/m-p/8587644#M1661312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For using search help ( F4 help ) for your input field,please follow these Function Module calls&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 .Call F4IF_INT_TABLE_VALUE_REQUEST for fetching the request value from the input.&lt;/P&gt;&lt;P&gt;2. Then use DYNP_VALUES_READ for reading the selected input from the table ( search help table for your input field).&lt;/P&gt;&lt;P&gt;3. Then use DYNP_VALUES_UPDATE for updating your input field with the selected input from search help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write POV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
process on value-request .
  field i_keyword  module search_help. " i_keyfield is the input field for seach help to be implemanted &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above FM calls has to be done in PAI of the screen of search help.&lt;/P&gt;&lt;P&gt;Let me know if you need code help on above FMs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 06:21:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vrm-set-values/m-p/8587644#M1661312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-17T06:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: vrm_set_values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vrm-set-values/m-p/8587645#M1661313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Shiv,&lt;/P&gt;&lt;P&gt;          I tried in PBO event. Its working fine. See the code below. You can declare data statements in top include also.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
module STATUS_0099 output.
*  SET PF-STATUS 'xxxxxxxx'.
*  SET TITLEBAR 'xxx'.

 type-pools: vrm.
data: string3 TYPE string VALUE 'Satya'.
data : lid type vrm_id,
l_val type vrm_values,
val like line of l_val.
val-key = '1'.
val-text = string3.
append val to l_val.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'S'
values = l_val
 EXCEPTIONS
 ID_ILLEGAL_NAME = 1
 OTHERS = 2
.
IF sy-subrc &amp;lt;&amp;gt; 0.
 MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENdif.
endmodule.                 " STATUS_0099  OUTPUT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this if any problem revert back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Supriya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 06:29:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vrm-set-values/m-p/8587645#M1661313</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-17T06:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: vrm_set_values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vrm-set-values/m-p/8587646#M1661314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : lid type vrm_id,&lt;/P&gt;&lt;P&gt;l_val type vrm_values,&lt;/P&gt;&lt;P&gt;val like line of l_val.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;val-text = string3.&lt;/P&gt;&lt;P&gt;append val to l_val.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA: IT_RETURN1  TYPE STANDARD TABLE OF ddshretval WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     DDIC_STRUCTURE         = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        RETFIELD               = 'ZURZZT'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     PVALKEY                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       DYNPPROG               = sy-repid&lt;/P&gt;&lt;P&gt;       DYNPNR                 = sy-dynnr&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     DYNPROFIELD            = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     STEPL                  = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     WINDOW_TITLE           =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       value           = '*'&lt;/P&gt;&lt;P&gt;       value_org       = 'S'&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;   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;    MARK_TAB               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   USER_RESET             =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        VALUE_TAB              = l_val    **********  (pass internal table here)&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     FIELD_TAB              =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       RETURN_TAB             = IT_RETURN1  ********  here u get the selected value&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    DYNPFLD_MAPPING        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;       PARAMETER_ERROR        = 1&lt;/P&gt;&lt;P&gt;       NO_VALUES_FOUND        = 2&lt;/P&gt;&lt;P&gt;       OTHERS                 = 3&lt;/P&gt;&lt;P&gt;              .&lt;/P&gt;&lt;P&gt; IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;   READ TABLE l_val INTO wa_l_val  WITH KEY ZURZZT = IT_RETURN1-fieldval.&lt;/P&gt;&lt;P&gt;     IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;          zurzzt = wa_l_val-ZURZZT.           ********** This stores the selected value into screen field.&lt;/P&gt;&lt;P&gt;     ENDIF.&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 06:48:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vrm-set-values/m-p/8587646#M1661314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-17T06:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: vrm_set_values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vrm-set-values/m-p/8587647#M1661315</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;Kindly check the below point &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Check ZURZZT is the screen field name if not give the correct screen field name  .&lt;/P&gt;&lt;P&gt;2. Enter val-key = '1' and so on incrementing for other value.&lt;/P&gt;&lt;P&gt;3. If u want to trigger any event based on the value assign a FCODE for the field in the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Revert back.&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;Madhukar Shetty&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 07:36:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vrm-set-values/m-p/8587647#M1661315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-17T07:36:07Z</dc:date>
    </item>
  </channel>
</rss>

