<?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: Drop-Down in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down/m-p/2940967#M693323</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Declare the table gt_values in the Module Pool program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Oct 2007 21:49:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-11T21:49:31Z</dc:date>
    <item>
      <title>Drop-Down</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down/m-p/2940966#M693322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;gt_values-key = 'R'.
  gt_values-text = text-001.
  append gt_values.

  gt_values-key = 'S'.
  gt_values-text = text-002.
  append gt_values.

  gt_values-key = 'C'.
  gt_values-text = text-003.
  append gt_values.


  call function 'VRM_SET_VALUES'
       exporting
            id              = 'V_SEC_REQ_VAL'
            values          = gt_values[]
       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.
  refresh gt_values.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written the above code in the include for PBO.&lt;/P&gt;&lt;P&gt;I declared the gt_values in top include.&lt;/P&gt;&lt;P&gt;when i am try to activate i am getting error message&lt;/P&gt;&lt;P&gt;gt_values-key is not defined.......&lt;/P&gt;&lt;P&gt;i am trying to fix this error since last hour &lt;/P&gt;&lt;P&gt;please let me how to fix this error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 21:20:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down/m-p/2940966#M693322</guid>
      <dc:creator>SG141</dc:creator>
      <dc:date>2007-10-11T21:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Drop-Down</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down/m-p/2940967#M693323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Declare the table gt_values in the Module Pool program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 21:49:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down/m-p/2940967#M693323</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T21:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Drop-Down</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down/m-p/2940968#M693324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;add the following in the TOP include of the module pool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: gt_values like VRM_VALUES occurs 0 with header line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 23:17:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down/m-p/2940968#M693324</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T23:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: Drop-Down</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down/m-p/2940969#M693325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry. I did not realize VRM_VALUES is referencing to a type. so you need to do define the following in the TOP include.&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:                              &lt;/P&gt;&lt;P&gt;      gt_values TYPE vrm_values,                                  &lt;/P&gt;&lt;P&gt;      wa_values LIKE LINE OF gt_values.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then in your regular code change to the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_values-key = 'R'.&lt;/P&gt;&lt;P&gt;  wa_values-text = text-001.&lt;/P&gt;&lt;P&gt;  append wa_values to gt_values.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  wa_values-key = 'S'.&lt;/P&gt;&lt;P&gt;  wa_values-text = text-002.&lt;/P&gt;&lt;P&gt;  append wa_values to gt_values.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  wa_values-key = 'C'.&lt;/P&gt;&lt;P&gt;  wa_values-text = text-003.&lt;/P&gt;&lt;P&gt;  append wa_values to gt_values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then finally pass the gt_values to the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 23:26:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down/m-p/2940969#M693325</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T23:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Drop-Down</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down/m-p/2940970#M693326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karthik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to the below code for the drop down.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS : truxs,vrm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; PERFORM populate.          "For populating the drop-down list.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CLEAR VALUE.&lt;/P&gt;&lt;P&gt;REFRESH LIST.&lt;/P&gt;&lt;P&gt;NAME = 'KHINR1'.&lt;/P&gt;&lt;P&gt;VALUE-KEY = '1S7_NOCASV'.&lt;/P&gt;&lt;P&gt;VALUE-TEXT = '1S7_NOCASV'.&lt;/P&gt;&lt;P&gt;APPEND VALUE TO LIST.&lt;/P&gt;&lt;P&gt;VALUE-KEY = '1S7_NOCJOT'.&lt;/P&gt;&lt;P&gt;VALUE-TEXT = '1S7_NOCJOT'.&lt;/P&gt;&lt;P&gt;APPEND VALUE TO LIST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT SCREEN.            "For toggling between the selection screens.&lt;/P&gt;&lt;P&gt;    IF r1 EQ 'X'.&lt;/P&gt;&lt;P&gt;      IF screen-group1 = 'SAM'.&lt;/P&gt;&lt;P&gt;        screen-active = 0.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ELSEIF r2 EQ 'X'.&lt;/P&gt;&lt;P&gt;      IF screen-group1 = 'FUL'.&lt;/P&gt;&lt;P&gt;        screen-active = 0.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*********************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;For the Drop-Down Listbox&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;**********************************************************************&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                    = name&lt;/P&gt;&lt;P&gt;      values                = list&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;In case you have any further clarifications,do let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Puneet Jhari.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 05:03:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down/m-p/2940970#M693326</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T05:03:32Z</dc:date>
    </item>
  </channel>
</rss>

