<?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: selection screen descriptions in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-descriptions/m-p/6880007#M1478367</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECTION-SCREEN BEGIN OF LINE.

PARAMETERS p_vkorg TYPE vkorg.

SELECTION-SCREEN COMMENT 20(40) v_name.

SELECTION-SCREEN END OF LINE.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_vkorg.

  DATA: it_ret TYPE STANDARD TABLE OF ddshretval,
        wa_ret TYPE ddshretval,
        it_dynnr TYPE STANDARD TABLE OF dynpread,
        wa_dynnr TYPE dynpread.

  CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
    EXPORTING
      tabname           = `TVKO`
      fieldname         = `VKORG`
      dynpprog          = sy-repid
      dynpnr            = sy-dynnr
      dynprofield       = `P_VKORG`
    TABLES
      return_tab        = it_ret
    EXCEPTIONS
      field_not_found   = 1
      no_help_for_field = 2
      inconsistent_help = 3
      no_values_found   = 4
      OTHERS            = 5.
  IF sy-subrc = 0.
    READ TABLE it_ret INTO wa_ret INDEX 1.
    CHECK sy-subrc = 0.

    p_vkorg = wa_ret-fieldval.
    SELECT SINGLE vtext FROM tvkot INTO v_name
      WHERE
      spras = sy-langu AND
      vkorg = p_vkorg.

    wa_dynnr-fieldname = `V_NAME`.
    wa_dynnr-fieldvalue = v_name.
    APPEND wa_dynnr TO it_dynnr.

    CALL FUNCTION 'DYNP_VALUES_UPDATE'
      EXPORTING
        dyname               = sy-repid
        dynumb               = sy-dynnr
      TABLES
        dynpfields           = it_dynnr
      EXCEPTIONS
        invalid_abapworkarea = 1
        invalid_dynprofield  = 2
        invalid_dynproname   = 3
        invalid_dynpronummer = 4
        invalid_request      = 5
        no_fielddescription  = 6
        undefind_error       = 7
        OTHERS               = 8.
    IF sy-subrc NE 0.
*     Can't help
    ENDIF.

  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 May 2010 05:49:32 GMT</pubDate>
    <dc:creator>SuhaSaha</dc:creator>
    <dc:date>2010-05-17T05:49:32Z</dc:date>
    <item>
      <title>selection screen descriptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-descriptions/m-p/6880004#M1478364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all help me in the issue . &lt;/P&gt;&lt;P&gt;                   I am having Selection screen with the field sales order type when the user enter particular sales order type the description of the sales order type should come correspondig to the order type how to acheive the same &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 May 2010 04:13:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-descriptions/m-p/6880004#M1478364</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-17T04:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen descriptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-descriptions/m-p/6880005#M1478365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could implement customized value help for sale order type.&lt;/P&gt;&lt;P&gt;In  AT SELECTION SCREEN ON VALUE HELP event,  call the  FM: F4IF_INT_TABLE_VALUE_REQUEST. &lt;/P&gt;&lt;P&gt;FM will return selected order type , then you chould get order type description from table TVAKT, &lt;/P&gt;&lt;P&gt;Then update selection screen field value with fm DYNP_VALUES_UPDATE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 May 2010 04:49:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-descriptions/m-p/6880005#M1478365</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-17T04:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen descriptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-descriptions/m-p/6880006#M1478366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check in Maintenance View " V_TVAK " field Name of Description for sales order type id BEZEI.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 May 2010 04:52:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-descriptions/m-p/6880006#M1478366</guid>
      <dc:creator>umashankar_sahu</dc:creator>
      <dc:date>2010-05-17T04:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen descriptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-descriptions/m-p/6880007#M1478367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECTION-SCREEN BEGIN OF LINE.

PARAMETERS p_vkorg TYPE vkorg.

SELECTION-SCREEN COMMENT 20(40) v_name.

SELECTION-SCREEN END OF LINE.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_vkorg.

  DATA: it_ret TYPE STANDARD TABLE OF ddshretval,
        wa_ret TYPE ddshretval,
        it_dynnr TYPE STANDARD TABLE OF dynpread,
        wa_dynnr TYPE dynpread.

  CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
    EXPORTING
      tabname           = `TVKO`
      fieldname         = `VKORG`
      dynpprog          = sy-repid
      dynpnr            = sy-dynnr
      dynprofield       = `P_VKORG`
    TABLES
      return_tab        = it_ret
    EXCEPTIONS
      field_not_found   = 1
      no_help_for_field = 2
      inconsistent_help = 3
      no_values_found   = 4
      OTHERS            = 5.
  IF sy-subrc = 0.
    READ TABLE it_ret INTO wa_ret INDEX 1.
    CHECK sy-subrc = 0.

    p_vkorg = wa_ret-fieldval.
    SELECT SINGLE vtext FROM tvkot INTO v_name
      WHERE
      spras = sy-langu AND
      vkorg = p_vkorg.

    wa_dynnr-fieldname = `V_NAME`.
    wa_dynnr-fieldvalue = v_name.
    APPEND wa_dynnr TO it_dynnr.

    CALL FUNCTION 'DYNP_VALUES_UPDATE'
      EXPORTING
        dyname               = sy-repid
        dynumb               = sy-dynnr
      TABLES
        dynpfields           = it_dynnr
      EXCEPTIONS
        invalid_abapworkarea = 1
        invalid_dynprofield  = 2
        invalid_dynproname   = 3
        invalid_dynpronummer = 4
        invalid_request      = 5
        no_fielddescription  = 6
        undefind_error       = 7
        OTHERS               = 8.
    IF sy-subrc NE 0.
*     Can't help
    ENDIF.

  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 May 2010 05:49:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-descriptions/m-p/6880007#M1478367</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-05-17T05:49:32Z</dc:date>
    </item>
  </channel>
</rss>

