<?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: parameters in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/2802727#M654637</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean, that you want to only provide the CONNIDs for the CARRID in the F4 help of the CONNID field?  If so, check this program, enter "AA" in CARRID field and do F4 help on the CONNID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0002 .

parameters: p_carrid type spfli-carrid,
            p_connid type spfli-connid.

at selection-screen on value-request for p_connid.


  data: begin of help_item occurs 0,
          carrid type spfli-carrid,
          connid type spfli-connid,
        end of help_item.

  data: dynfields type table of dynpread with header line.


  dynfields-fieldname = 'P_CARRID'.
  append dynfields.

  call function 'DYNP_VALUES_READ'
       exporting
            dyname               = sy-cprog
            dynumb               = sy-dynnr
            translate_to_upper   = 'X'
       tables
            dynpfields           = dynfields
       exceptions
            invalid_abapworkarea = 1
            invalid_dynprofield  = 2
            invalid_dynproname   = 3
            invalid_dynpronummer = 4
            invalid_request      = 5
            no_fielddescription  = 6
            invalid_parameter    = 7
            undefind_error       = 8
            double_conversion    = 9
            stepl_not_found      = 10
            others               = 11.


  read table dynfields with key fieldname = 'P_CARRID'.

  p_carrid = dynfields-fieldvalue.


  select carrid connid into table help_item
                  from spfli
                       where carrid = p_carrid.

  call function 'F4IF_INT_TABLE_VALUE_REQUEST'
       exporting
            retfield    = 'CONNID'
            dynprofield = 'P_CONNID'
            dynpprog    = sy-cprog
            dynpnr      = sy-dynnr
            value_org   = 'S'
       tables
            value_tab   = help_item.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch HEilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Sep 2007 16:53:16 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2007-09-10T16:53:16Z</dc:date>
    <item>
      <title>parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/2802726#M654636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi everyone ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can &amp;amp;#305; select only specific data in parameters ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters : p_carrid type sflight-carrid,&lt;/P&gt;&lt;P&gt;                   p_connid type spfi-connid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;#305; wanna get only p_carrid 's connid. thnks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 16:42:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/2802726#M654636</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-10T16:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/2802727#M654637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean, that you want to only provide the CONNIDs for the CARRID in the F4 help of the CONNID field?  If so, check this program, enter "AA" in CARRID field and do F4 help on the CONNID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0002 .

parameters: p_carrid type spfli-carrid,
            p_connid type spfli-connid.

at selection-screen on value-request for p_connid.


  data: begin of help_item occurs 0,
          carrid type spfli-carrid,
          connid type spfli-connid,
        end of help_item.

  data: dynfields type table of dynpread with header line.


  dynfields-fieldname = 'P_CARRID'.
  append dynfields.

  call function 'DYNP_VALUES_READ'
       exporting
            dyname               = sy-cprog
            dynumb               = sy-dynnr
            translate_to_upper   = 'X'
       tables
            dynpfields           = dynfields
       exceptions
            invalid_abapworkarea = 1
            invalid_dynprofield  = 2
            invalid_dynproname   = 3
            invalid_dynpronummer = 4
            invalid_request      = 5
            no_fielddescription  = 6
            invalid_parameter    = 7
            undefind_error       = 8
            double_conversion    = 9
            stepl_not_found      = 10
            others               = 11.


  read table dynfields with key fieldname = 'P_CARRID'.

  p_carrid = dynfields-fieldvalue.


  select carrid connid into table help_item
                  from spfli
                       where carrid = p_carrid.

  call function 'F4IF_INT_TABLE_VALUE_REQUEST'
       exporting
            retfield    = 'CONNID'
            dynprofield = 'P_CONNID'
            dynpprog    = sy-cprog
            dynpnr      = sy-dynnr
            value_org   = 'S'
       tables
            value_tab   = help_item.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch HEilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 16:53:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/2802727#M654637</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-09-10T16:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/2802728#M654638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or you might want to try a listbox.  Enter "AA" and hit enter, the listbox for CONNID will be fill with values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0002 .

type-pools: vrm.

data: ivrm_values type vrm_values.
data: xvrm_values like line of ivrm_values.

parameters: p_carrid type spfli-carrid,
            p_connid type spfli-connid
                as listbox visible length 10.

at selection-screen output.


  data: name type vrm_id.


  name = 'P_CONNID'.

  data: ispfli type table of spfli with header line.

  select * into table ispfli from spfli
             where carrid = p_carrid.
  loop at ispfli.
    xvrm_values-key  = ispfli-connid.
    xvrm_values-text = ispfli-connid.
    append xvrm_values to ivrm_values.
  endloop.


  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;Regards,&lt;/P&gt;&lt;P&gt;Rich HEilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 17:02:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/2802728#M654638</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-09-10T17:02:03Z</dc:date>
    </item>
  </channel>
</rss>

