<?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: getting the description in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-description/m-p/2541481#M577568</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neha&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;In main program declare the variable&lt;/P&gt;&lt;P&gt;data: gv_maktx type makt-maktx.&lt;/P&gt;&lt;P&gt;tables:mara,makt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PAI &lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;    FIELD makt-maktx MODULE m_matdescrip_validate.&lt;/P&gt;&lt;P&gt;  MODULE user_command_1000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then double click on this module. Just write the piece of code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE m_matdescrip_validate INPUT.&lt;/P&gt;&lt;P&gt;  IF NOT mara-matnr IS INITIAL.&lt;/P&gt;&lt;P&gt;    SELECT SINGLE maktx FROM makt INTO gv_maktx&lt;/P&gt;&lt;P&gt;                 WHERE matnr = mara-matnr.&lt;/P&gt;&lt;P&gt;  makt-maktx = gv_maktx.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDMODULE.  &lt;/P&gt;&lt;P&gt;              I hope this will be useful.&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jul 2007 15:00:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-20T15:00:00Z</dc:date>
    <item>
      <title>getting the description</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-description/m-p/2541474#M577561</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; i am working on module pool program.&lt;/P&gt;&lt;P&gt;i have placed a I/O field MATNR on the screen next to it i have placed another I/O field for displaying the material descriptionMAKTX.&lt;/P&gt;&lt;P&gt;my requirement is when user slects a particular material number the material description coresponding to that material number should be displyed in the screen field MAKTX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in Advance,&lt;/P&gt;&lt;P&gt;neha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 10:28:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-description/m-p/2541474#M577561</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T10:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: getting the description</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-description/m-p/2541475#M577562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Material Descriptions are stored in table MAKT - read this with the key of Material and signon language.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 10:33:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-description/m-p/2541475#M577562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T10:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: getting the description</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-description/m-p/2541476#M577563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Neha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;´Do like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add one I/O field with output only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the PAI of the screen do like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT ZV_MODULE .
TABLES: MAKT.
CALL SCREEN 100.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  USER_COMMAND_0100  INPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE USER_COMMAND_0100 INPUT.
  IF NOT MAKT-MATNR IS INITIAL.
 SELECT SINGLE MAKTX FROM MAKT INTO MAKT-MAKTX WHERE MATNR = MAKT-MATNR
                                                 AND SPRAS = SY-LANGU  .
  ENDIF.
ENDMODULE.                 " USER_COMMAND_0100  INPUT
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  STATUS_0100  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE STATUS_0100 OUTPUT.
*  SET PF-STATUS 'xxxxxxxx'.
*  SET TITLEBAR 'xxx'.
  IF NOT MAKT-MATNR IS INITIAL.
 SELECT SINGLE MAKTX FROM MAKT INTO MAKT-MAKTX WHERE MATNR = MAKT-MATNR
                                                 AND SPRAS = SY-LANGU  .
  ENDIF.
ENDMODULE.                 " STATUS_0100  OUTPUT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 10:35:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-description/m-p/2541476#M577563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T10:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: getting the description</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-description/m-p/2541477#M577564</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;i tried using the same code sent by you but it not working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 11:01:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-description/m-p/2541477#M577564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T11:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: getting the description</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-description/m-p/2541478#M577565</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;Put a new I/O field (say name as DESCR) to the right of the user input field, and in the properties specify as display only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the PAI of the screen, on any module, do a select to fill DESCR screen field&lt;/P&gt;&lt;P&gt;(SELECT SINGLE MAKTX FROM MAKT INTO DESCR &lt;/P&gt;&lt;P&gt;WHERE MATNR = MARA-MATNR&lt;/P&gt;&lt;P&gt;AND SPRAS = SY-LANGU.)&lt;/P&gt;&lt;P&gt;Here I assume that MARA-MATNR is the name of the screen field selected by the user. The above code can be writen in PAI in user command also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure you (or user) press enter after filling the MARA-MATNR field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anish Thomas&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;Pls mark all useful answers&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 11:23:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-description/m-p/2541478#M577565</guid>
      <dc:creator>former_member150733</dc:creator>
      <dc:date>2007-07-20T11:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: getting the description</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-description/m-p/2541479#M577566</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;The MATNR which i am placing on the screen is from dictionary. so by default it will have F4 help. so the user will select the material number based on this F4 help.i have to get material desc based on the selected material number .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 12:10:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-description/m-p/2541479#M577566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T12:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: getting the description</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-description/m-p/2541480#M577567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try declaring a global variable in program and create a display only field in transaction with the same name or thru Get from program option and in PAI select description for MATNR from MAKT table to that variable.Then the value will be displayed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 13:17:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-description/m-p/2541480#M577567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T13:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: getting the description</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-description/m-p/2541481#M577568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neha&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;In main program declare the variable&lt;/P&gt;&lt;P&gt;data: gv_maktx type makt-maktx.&lt;/P&gt;&lt;P&gt;tables:mara,makt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PAI &lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;    FIELD makt-maktx MODULE m_matdescrip_validate.&lt;/P&gt;&lt;P&gt;  MODULE user_command_1000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then double click on this module. Just write the piece of code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE m_matdescrip_validate INPUT.&lt;/P&gt;&lt;P&gt;  IF NOT mara-matnr IS INITIAL.&lt;/P&gt;&lt;P&gt;    SELECT SINGLE maktx FROM makt INTO gv_maktx&lt;/P&gt;&lt;P&gt;                 WHERE matnr = mara-matnr.&lt;/P&gt;&lt;P&gt;  makt-maktx = gv_maktx.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDMODULE.  &lt;/P&gt;&lt;P&gt;              I hope this will be useful.&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 15:00:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-description/m-p/2541481#M577568</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T15:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: getting the description</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-description/m-p/2541482#M577569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you're asking about updating a screen field after an F4 search... here is part of an answer I used for a similar question the other day - hopefully it solves your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you should look at function module DYNP_VALUES_UPDATE (or CALL METHOD c_dynpro_handler=&amp;gt;set_dynp_values which calls this function). There are lots of examples in SAP's code but basically this allows you to push values back onto the screen from within an F4 request. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've used it, for example, for filling in the name and address details on the screen after the user has selected a customer number from the searchhelp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will need to trigger the searchhelp yourself inside your screen e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
process on value-request. 
   field gs_9900-my_field
   module d9900_f4_my_field.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
module d9900_f4_my_field input.
  perform d9900_f4_my_field.
endmodule.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then something along the lines of&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;form d9900_f4_my_field.
 
  data:
    l_dynpprog          like sy-repid,
    l_dynpnr            like sy-dynnr,
    lt_dynpfield        like dynpread,
    lt_dynpfield        like dynpread   occurs 10.
 
  l_dynpprog    = sy-repid.
  l_dynpnr      = sy-dynnr.
 
  call function 'F4IF_FIELD_VALUE_REQUEST'  "trigger your search help
     exporting
        ...
     importing
        ...
*
* use the results from 'return_tab-fieldval' to get the other data you want on the screen 
* then build up lt_dynpfield with the field names and values for the screen e.g.
* 
  clear: ls_dynpfield.
  concatenate 'GS_' l_dynpnr '-CUSTOMER_NAME'
    into ls_dynpfield-fieldname.
  ls_dynpfield-stepl      = 0.
  ls_dynpfield-fieldvalue = kna1-name1.
  ls_dynpfield-fieldinp   = space.
  append ls_dynpfield to lt_dynpfield.
  clear: ls_dynpfield.
  concatenate 'GS_' l_dynpnr '-ADDRESS_LINE_01'
    into ls_dynpfield-fieldname.
  ls_dynpfield-stepl      = 0.
  ls_dynpfield-fieldvalue = kna1-name1.
  ls_dynpfield-fieldinp   = space.
  append ls_dynpfield to lt_dynpfield.
* etc etc 
* then call the function that updates the screen
  call function 'DYNP_VALUES_UPDATE'  "update the screen fields
    exporting
      dyname     = l_dynpprog
      dynumb     = l_dynpnr
    tables
      dynpfields = lt_dynpfield
    exceptions
      others     = 0.
 
endform.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Let me know how it goes - and if you need any more specific sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Jul 2007 21:58:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-description/m-p/2541482#M577569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-22T21:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: getting the description</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-description/m-p/2541483#M577570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi neah jasty,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creat a text tanble and use it.&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;Rama.Pammi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2007 07:21:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-the-description/m-p/2541483#M577570</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-23T07:21:13Z</dc:date>
    </item>
  </channel>
</rss>

