<?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: list box in module pool programming in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/list-box-in-module-pool-programming/m-p/5548371#M1266756</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sree,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is your FM 'VRM_SET_VALUES' is with in the loop.....? or out side....?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and do below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at i_ltak2 into wa_ltak2.
 
    xvrm_values-key = wa_ltak2-lgnum.
    xvrm_values-text = wa_ltak2-bname.
    append xvrm_values to ivrm_values.
 endloop.

    call function 'VRM_SET_VALUES'
      EXPORTING
        id     = 'NAME'    "See this
        values = ivrm_values.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have done below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* This fm will get the values from the list box of DEVICEID field
  CALL FUNCTION 'VRM_GET_VALUES'
    EXPORTING
      id            = 'deviceid'
    IMPORTING
      values        = lt_values    " even it is not the expor parameter...it will work..
   EXCEPTIONS
     id_not_found   = 1
     OTHERS         = 2.
  IF sy-subrc NE 0.
*   No sy-subrc check required.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for me it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Prasanth on Apr 13, 2009 7:07 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Apr 2009 13:35:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-13T13:35:32Z</dc:date>
    <item>
      <title>list box in module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/list-box-in-module-pool-programming/m-p/5548370#M1266755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Module pool program I given drop down for a field,&lt;/P&gt;&lt;P&gt;drop down list is comming but not holding the values in the field,&lt;/P&gt;&lt;P&gt;below is my code in PBO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; type-pools: vrm.

  data: begin of itab occurs 0,
        field(10) type c,
        end of itab.

  data: ivrm_values type vrm_values.
  data: xvrm_values like line of ivrm_values.
  data: name type vrm_id.

  name = 'ITAB-FIELD'.


  refresh i_ltak.
  select LGNUM BNAME from ltak
    into table i_ltak2.

  delete adjacent duplicates from i_ltak2.

  loop at i_ltak2 into wa_ltak2.

    xvrm_values-key = wa_ltak2-lgnum.
    xvrm_values-text = wa_ltak2-bname.
    append xvrm_values to ivrm_values.

    call function 'VRM_SET_VALUES'
      EXPORTING
        id     = name
        values = ivrm_values.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks n regds,&lt;/P&gt;&lt;P&gt;sree,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2009 13:24:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/list-box-in-module-pool-programming/m-p/5548370#M1266755</guid>
      <dc:creator>former_member125931</dc:creator>
      <dc:date>2009-04-13T13:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: list box in module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/list-box-in-module-pool-programming/m-p/5548371#M1266756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sree,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is your FM 'VRM_SET_VALUES' is with in the loop.....? or out side....?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and do below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at i_ltak2 into wa_ltak2.
 
    xvrm_values-key = wa_ltak2-lgnum.
    xvrm_values-text = wa_ltak2-bname.
    append xvrm_values to ivrm_values.
 endloop.

    call function 'VRM_SET_VALUES'
      EXPORTING
        id     = 'NAME'    "See this
        values = ivrm_values.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have done below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* This fm will get the values from the list box of DEVICEID field
  CALL FUNCTION 'VRM_GET_VALUES'
    EXPORTING
      id            = 'deviceid'
    IMPORTING
      values        = lt_values    " even it is not the expor parameter...it will work..
   EXCEPTIONS
     id_not_found   = 1
     OTHERS         = 2.
  IF sy-subrc NE 0.
*   No sy-subrc check required.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for me it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Prasanth on Apr 13, 2009 7:07 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2009 13:35:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/list-box-in-module-pool-programming/m-p/5548371#M1266756</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-13T13:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: list box in module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/list-box-in-module-pool-programming/m-p/5548372#M1266757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try with the below function module also.&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;P&gt;      retfield               = 'NAME'&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      value_tab              = ivrm_values&lt;/P&gt;&lt;P&gt;&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;  PARAMETER_ERROR        = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_VALUES_FOUND        = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                 = 3&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;Regards,&lt;/P&gt;&lt;P&gt;Aswin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2009 13:39:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/list-box-in-module-pool-programming/m-p/5548372#M1266757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-13T13:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: list box in module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/list-box-in-module-pool-programming/m-p/5548373#M1266758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sree,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call the FM 'VRM_SET_VALUES' after the loop at i_ltak2 instead of calling with in the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hemanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2009 13:39:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/list-box-in-module-pool-programming/m-p/5548373#M1266758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-13T13:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: list box in module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/list-box-in-module-pool-programming/m-p/5548374#M1266759</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;Goto to se51 in ur form painter..&lt;/P&gt;&lt;P&gt;select ur field and double click on it..&lt;/P&gt;&lt;P&gt;In the attributes window...select the listbox in dropdown field.&lt;/P&gt;&lt;P&gt;And Use the below shown FM as per ur requirement---&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF VALUE ,&lt;/P&gt;&lt;P&gt;FRMNM TYPE PINPF-FRMNM,&lt;/P&gt;&lt;P&gt;END OF VALUE .&lt;/P&gt;&lt;P&gt;DATA : VTAB LIKE TABLE OF VALUE ,&lt;/P&gt;&lt;P&gt;VAL LIKE LINE OF VTAB .&lt;/P&gt;&lt;P&gt;CLEAR VTAB .&lt;/P&gt;&lt;P&gt;MOVE 'YES' TO VAL-FRMNM .&lt;/P&gt;&lt;P&gt;APPEND VAL TO VTAB .&lt;/P&gt;&lt;P&gt;CLEAR VAL .&lt;/P&gt;&lt;P&gt;MOVE 'NO' TO VAL-FRMNM .&lt;/P&gt;&lt;P&gt;APPEND VAL TO VTAB .&lt;/P&gt;&lt;P&gt;CLEAR VAL .&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 = 'FRMNM'&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;P&gt;DYNPROFIELD = 'ZSTORES-MODVATE'&lt;/P&gt;&lt;UL&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;LI level="1" type="ul"&gt;&lt;P&gt;VALUE = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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 = VTAB&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;LI level="1" type="ul"&gt;&lt;P&gt;RETURN_TAB =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;DYNPFLD_MAPPING =&lt;/P&gt;&lt;/LI&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;PARAMETER_ERROR = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;NO_VALUES_FOUND = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OTHERS = 3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC 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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2009 13:56:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/list-box-in-module-pool-programming/m-p/5548374#M1266759</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-13T13:56:41Z</dc:date>
    </item>
  </channel>
</rss>

