<?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: abap general in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-general/m-p/3701498#M891213</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming you're using a Dialog/Module program..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your Global area (_TOP)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPE-POOLS             vrm.
DATA: 
      lgen_field   TYPE vrm_id,
      lgen_result  TYPE STANDARD TABLE OF vrm_value,
      lgen_val     LIKE LINE OF ltype_result.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your PBO routine&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REFRESH lgen_result. clear lgen_result.
lgen_val-key = 'F'.
lgen_val-text = 'Female'.
append lgen_val to lgen_result.
lgen_val-key = 'M'.
lgen_val-text = 'Male'.
append lgen_val to lgen_result.

* Field name to assign drop down values
  lgen_field = 'YOURGENDORFIELD'.

  CALL FUNCTION 'VRM_SET_VALUES'
       EXPORTING
            id              = lgen_field
            values          = lgen_result
       EXCEPTIONS
            id_illegal_name = 1
            OTHERS          = 2.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the screen painter ensure that your Value List on the Field attribute screen is set to 'A'  (From Program)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know you can use this in a selection screen to, but I do not have an example of it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Apr 2008 13:51:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-21T13:51:22Z</dc:date>
    <item>
      <title>abap general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-general/m-p/3701496#M891211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts, can any one give answer to these following questions,it's an urgent reqiurement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. How to allowing only two values 'F' or ' M' for GENDER filed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried this by maintanig at domain level,but is there any other solutions.i just need another way for getting this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 13:41:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-general/m-p/3701496#M891211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T13:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: abap general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-general/m-p/3701497#M891212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you need this is a report or as a search help (value / check table)...where do you want to use it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In report for example you can do a check at selection screen and check what user entered. Or create a new customizing table and a search help for example...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need more info about why, where and how you want to use this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 13:46:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-general/m-p/3701497#M891212</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2008-04-21T13:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: abap general</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-general/m-p/3701498#M891213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming you're using a Dialog/Module program..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your Global area (_TOP)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPE-POOLS             vrm.
DATA: 
      lgen_field   TYPE vrm_id,
      lgen_result  TYPE STANDARD TABLE OF vrm_value,
      lgen_val     LIKE LINE OF ltype_result.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your PBO routine&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REFRESH lgen_result. clear lgen_result.
lgen_val-key = 'F'.
lgen_val-text = 'Female'.
append lgen_val to lgen_result.
lgen_val-key = 'M'.
lgen_val-text = 'Male'.
append lgen_val to lgen_result.

* Field name to assign drop down values
  lgen_field = 'YOURGENDORFIELD'.

  CALL FUNCTION 'VRM_SET_VALUES'
       EXPORTING
            id              = lgen_field
            values          = lgen_result
       EXCEPTIONS
            id_illegal_name = 1
            OTHERS          = 2.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the screen painter ensure that your Value List on the Field attribute screen is set to 'A'  (From Program)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know you can use this in a selection screen to, but I do not have an example of it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 13:51:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-general/m-p/3701498#M891213</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T13:51:22Z</dc:date>
    </item>
  </channel>
</rss>

