<?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: Function Module ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/977571#M71225</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tushar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look at FM 'DD_SHLP_CALL_FROM_DYNP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erwan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jun 2005 14:19:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-06-29T14:19:13Z</dc:date>
    <item>
      <title>Function Module ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/977570#M71224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am looking for a function module which will give the list of available F4 check values for a given characteristic field when I pass the field name to it.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tushar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2005 13:53:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/977570#M71224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-29T13:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/977571#M71225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tushar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look at FM 'DD_SHLP_CALL_FROM_DYNP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erwan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2005 14:19:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/977571#M71225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-29T14:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/977572#M71226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you referring to a VC characteristic?  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

* Enter a characteristic name in the P_ATNAM field.
* Then do F4 on the P_ATWRT field.

report zrich_0002 .

parameters: p_atnam type cabn-atnam,
            p_atwrt type cawn-atwrt.

at selection-screen on value-request for p_atwrt.

* Internal Table for storage location help
  data: begin of help_char occurs 0,
         atwrt type cawn-atwrt,
         atwtb type cawnt-atwtb,
        end of help_char.

  data: dynfields type table of dynpread with header line.


  dynfields-fieldname = 'P_ATNAM'.
  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_ATNAM'.


  select * into corresponding fields of table help_char
                from cabn
                    inner join cawn
                     on cabn~atinn = cawn~atinn
                    inner join cawnt
                     on cawn~atinn = cawnt~atinn
                    and cawn~atzhl = cawnt~atzhl
                           where cabn~atnam = dynfields-fieldvalue.

  delete adjacent duplicates from help_char comparing atwrt.

  call function 'F4IF_INT_TABLE_VALUE_REQUEST'
       exporting
            retfield    = 'ATWRT'
            dynprofield = 'P_ATWRT'
            dynpprog    = sy-cprog
            dynpnr      = sy-dynnr
            value_org   = 'S'
       tables
            value_tab   = help_char.

&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>Wed, 29 Jun 2005 14:34:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/977572#M71226</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-06-29T14:34:43Z</dc:date>
    </item>
  </channel>
</rss>

