<?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: Problem Faced when using VRM Values - Urgent in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-faced-when-using-vrm-values-urgent/m-p/3774108#M908143</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friend,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this is not the problem i m facing is not about how to use VRM Values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following is the Code that I have written&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type-pools: vrm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: vrm_value type VRM_VALUE,&lt;/P&gt;&lt;P&gt;      vrmtable type VRM_VALUES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameter: p_list(2) TYPE c as LISTBOX VISIBLE LENGTH 12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear vrm_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vrm_value-key = 'A'.&lt;/P&gt;&lt;P&gt;vrm_value-text = 'A'.&lt;/P&gt;&lt;P&gt;APPEND vrm_value to vrmtable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vrm_value-key = 'B'.&lt;/P&gt;&lt;P&gt;vrm_value-text = 'BB'.&lt;/P&gt;&lt;P&gt;APPEND vrm_value to vrmtable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vrm_value-key = 'C'.&lt;/P&gt;&lt;P&gt;vrm_value-text = 'CC'.&lt;/P&gt;&lt;P&gt;APPEND vrm_value to vrmtable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vrm_value-key = 'D'.&lt;/P&gt;&lt;P&gt;vrm_value-text = 'D'.&lt;/P&gt;&lt;P&gt;APPEND vrm_value to vrmtable.&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                    = 'P_LIST'&lt;/P&gt;&lt;P&gt;    values                = vrmtable&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;ENDIF.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output when i display comes like below in the list&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;B  BB&lt;/P&gt;&lt;P&gt;C  CC&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I m Not able to Understand  why for the First Row only A and last row only D is coming. while for others both text and the key is coming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is coming only when the Key and the Text of VRM Value table is same. This makes the List look very Odd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 May 2008 11:39:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-08T11:39:08Z</dc:date>
    <item>
      <title>Problem Faced when using VRM Values - Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-faced-when-using-vrm-values-urgent/m-p/3774106#M908141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I m facing a Unique problem when using the Function Module "VRM_SET_VALUES".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Values i m selecting from the database have the Key and the Description field both having the same value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like KEY = "A"&lt;/P&gt;&lt;P&gt;      Text = "A"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in such cases only one of the value ie only the KEY is appearing in the list box and the text is not appearing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is creating a problem since for some fields the key and the value are different so the listbox looks odd with some some single values and some lines having 2 values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me on this issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2008 07:39:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-faced-when-using-vrm-values-urgent/m-p/3774106#M908141</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-08T07:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Faced when using VRM Values - Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-faced-when-using-vrm-values-urgent/m-p/3774107#M908142</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 show only one set of values in list box not both at a time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS : vrm. "Value Request Manager&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_test AS LISTBOX VISIBLE LENGTH 12 OBLIGATORY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM f4_value_request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE P_TEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Form f4_value_request&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM f4_value_request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: l_name TYPE vrm_id,&lt;/P&gt;&lt;P&gt;li_list TYPE vrm_values,&lt;/P&gt;&lt;P&gt;l_value LIKE LINE OF li_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_value-key = '1'.&lt;/P&gt;&lt;P&gt;l_value-text = 'January'.&lt;/P&gt;&lt;P&gt;APPEND l_value TO li_list.&lt;/P&gt;&lt;P&gt;CLEAR l_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_value-key = '2'.&lt;/P&gt;&lt;P&gt;l_value-text = 'February'.&lt;/P&gt;&lt;P&gt;APPEND l_value TO li_list.&lt;/P&gt;&lt;P&gt;CLEAR l_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_value-key = '3'.&lt;/P&gt;&lt;P&gt;l_value-text = 'March'.&lt;/P&gt;&lt;P&gt;APPEND l_value TO li_list.&lt;/P&gt;&lt;P&gt;CLEAR l_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_value-key = '4'.&lt;/P&gt;&lt;P&gt;l_value-text = 'April'.&lt;/P&gt;&lt;P&gt;APPEND l_value TO li_list.&lt;/P&gt;&lt;P&gt;CLEAR l_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_value-key = '5'.&lt;/P&gt;&lt;P&gt;l_value-text = 'May'.&lt;/P&gt;&lt;P&gt;APPEND l_value TO li_list.&lt;/P&gt;&lt;P&gt;CLEAR l_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_value-key = '6'.&lt;/P&gt;&lt;P&gt;l_value-text = 'June'.&lt;/P&gt;&lt;P&gt;APPEND l_value TO li_list.&lt;/P&gt;&lt;P&gt;CLEAR l_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_value-key = '7'.&lt;/P&gt;&lt;P&gt;l_value-text = 'July'.&lt;/P&gt;&lt;P&gt;APPEND l_value TO li_list.&lt;/P&gt;&lt;P&gt;CLEAR l_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_value-key = '8'.&lt;/P&gt;&lt;P&gt;l_value-text = 'August'.&lt;/P&gt;&lt;P&gt;APPEND l_value TO li_list.&lt;/P&gt;&lt;P&gt;CLEAR l_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_value-key = '9'.&lt;/P&gt;&lt;P&gt;l_value-text = 'September'.&lt;/P&gt;&lt;P&gt;APPEND l_value TO li_list.&lt;/P&gt;&lt;P&gt;CLEAR l_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_value-key = '10'.&lt;/P&gt;&lt;P&gt;l_value-text = 'October'.&lt;/P&gt;&lt;P&gt;APPEND l_value TO li_list.&lt;/P&gt;&lt;P&gt;CLEAR l_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_value-key = '11'.&lt;/P&gt;&lt;P&gt;l_value-text = 'November'.&lt;/P&gt;&lt;P&gt;APPEND l_value TO li_list.&lt;/P&gt;&lt;P&gt;CLEAR l_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_value-key = '12'.&lt;/P&gt;&lt;P&gt;l_value-text = 'December'.&lt;/P&gt;&lt;P&gt;APPEND l_value TO li_list.&lt;/P&gt;&lt;P&gt;CLEAR l_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_name = 'P_TEST'.&lt;/P&gt;&lt;P&gt;p_test = '1'. "this is to set the default value of the list box.&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 = l_name&lt;/P&gt;&lt;P&gt;values = li_list&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;id_illegal_name = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. " f4_value_request&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also refer the following thread.&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="5348119"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Velangini Showry Maria Kumar Bandanadham on May 8, 2008 9:50 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2008 07:48:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-faced-when-using-vrm-values-urgent/m-p/3774107#M908142</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-08T07:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Faced when using VRM Values - Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-faced-when-using-vrm-values-urgent/m-p/3774108#M908143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friend,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this is not the problem i m facing is not about how to use VRM Values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following is the Code that I have written&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type-pools: vrm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: vrm_value type VRM_VALUE,&lt;/P&gt;&lt;P&gt;      vrmtable type VRM_VALUES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameter: p_list(2) TYPE c as LISTBOX VISIBLE LENGTH 12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear vrm_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vrm_value-key = 'A'.&lt;/P&gt;&lt;P&gt;vrm_value-text = 'A'.&lt;/P&gt;&lt;P&gt;APPEND vrm_value to vrmtable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vrm_value-key = 'B'.&lt;/P&gt;&lt;P&gt;vrm_value-text = 'BB'.&lt;/P&gt;&lt;P&gt;APPEND vrm_value to vrmtable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vrm_value-key = 'C'.&lt;/P&gt;&lt;P&gt;vrm_value-text = 'CC'.&lt;/P&gt;&lt;P&gt;APPEND vrm_value to vrmtable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vrm_value-key = 'D'.&lt;/P&gt;&lt;P&gt;vrm_value-text = 'D'.&lt;/P&gt;&lt;P&gt;APPEND vrm_value to vrmtable.&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                    = 'P_LIST'&lt;/P&gt;&lt;P&gt;    values                = vrmtable&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;ENDIF.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output when i display comes like below in the list&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;B  BB&lt;/P&gt;&lt;P&gt;C  CC&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I m Not able to Understand  why for the First Row only A and last row only D is coming. while for others both text and the key is coming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is coming only when the Key and the Text of VRM Value table is same. This makes the List look very Odd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2008 11:39:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-faced-when-using-vrm-values-urgent/m-p/3774108#M908143</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-08T11:39:08Z</dc:date>
    </item>
  </channel>
</rss>

