<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2741844#M637117</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;Please try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT ZZTEST.

TABLES: MARA, MAKT.
                                                                        
SELECTION-SCREEN: BEGIN OF LINE.
SELECTION-SCREEN: COMMENT 01(20) T_MATNR.
PARAMETERS: P_MATNR LIKE MARA-MATNR.
SELECTION-SCREEN: COMMENT 50(40) T_DESC.
SELECTION-SCREEN: END OF LINE.
                                                                        
DATA: DYNFIELDS TYPE TABLE OF DYNPREAD WITH HEADER LINE.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_MATNR.
  DATA: RETURN_TAB TYPE TABLE OF DDSHRETVAL WITH HEADER LINE.
  DATA: X_MATNR LIKE MARA-MATNR.
                                                                        
  CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
    EXPORTING
      TABNAME    = 'MARA'
      FIELDNAME  = 'MATNR'
    TABLES
      RETURN_TAB = RETURN_TAB.

  READ TABLE RETURN_TAB INDEX 1.
  CHECK SY-SUBRC = 0.

  DYNFIELDS-FIELDNAME = 'P_MATNR'.
  WRITE RETURN_TAB-FIELDVAL TO DYNFIELDS-FIELDVALUE.
  APPEND DYNFIELDS.

  X_MATNR = DYNFIELDS-FIELDVALUE.
  DYNFIELDS-FIELDNAME = 'T_DESC'.
  SELECT SINGLE * FROM MAKT WHERE MATNR = X_MATNR.
  WRITE MAKT-MAKTX TO DYNFIELDS-FIELDVALUE.
  APPEND DYNFIELDS.

  CALL FUNCTION 'DYNP_VALUES_UPDATE'
    EXPORTING
      DYNAME     = SY-REPID
      DYNUMB     = SY-DYNNR
    TABLES
      DYNPFIELDS = DYNFIELDS.
                                                                        
INITIALIZATION.
  T_MATNR = 'Material Number'.
  T_DESC = SPACE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Nov 2007 14:56:12 GMT</pubDate>
    <dc:creator>ferry_lianto</dc:creator>
    <dc:date>2007-11-02T14:56:12Z</dc:date>
    <item>
      <title>selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2741836#M637109</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;selection-screen begin of block b1 with frame title text-001.&lt;/P&gt;&lt;P&gt;selection-screen begin of line.&lt;/P&gt;&lt;P&gt;selection-screen comment (20) matnr .&lt;/P&gt;&lt;P&gt;parameters: p_matnr type mara-matnr obligatory.&lt;/P&gt;&lt;P&gt;selection-screen comment (40) maktx  .&lt;/P&gt;&lt;P&gt;selection-screen end of line.&lt;/P&gt;&lt;P&gt;selection-screen end of block b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using this code...&lt;/P&gt;&lt;P&gt;i'm displaying the description in the same line...&lt;/P&gt;&lt;P&gt;But not able to get  MATERIAL (text element) infront of Material number field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz help me...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 13:46:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2741836#M637109</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T13:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2741837#M637110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use can use selection-texts.......&lt;/P&gt;&lt;P&gt;goto-textelements-selection texts.......in menu bar.....&lt;/P&gt;&lt;P&gt;n give MATERIAL for the parameter p_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vasu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 13:50:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2741837#M637110</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T13:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2741838#M637111</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;use this...&lt;/P&gt;&lt;P&gt;selection-screen begin of block b1 with frame title text-001.&lt;/P&gt;&lt;P&gt;selection-screen begin of line.&lt;/P&gt;&lt;P&gt;parameters: p_matnr type mara-matnr obligatory.&lt;/P&gt;&lt;P&gt;selection-screen comment (20) v_matnr for FIELD p_matnr .&lt;/P&gt;&lt;P&gt;selection-screen end of line.&lt;/P&gt;&lt;P&gt;selection-screen end of block b1.&lt;/P&gt;&lt;P&gt;now in initialization. uwrite...&lt;/P&gt;&lt;P&gt;initialization.&lt;/P&gt;&lt;P&gt;v_matnr = 'MATERIAL'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 13:53:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2741838#M637111</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T13:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2741839#M637112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see the comment code from help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECTION-SCREEN COMMENT /1(50) comm1 MODIF ID mg1. 
SELECTION-SCREEN ULINE. 
SELECTION-SCREEN SKIP. 

SELECTION-SCREEN COMMENT /1(30) comm2. 
SELECTION-SCREEN ULINE /1(50). 
PARAMETERS: r1 RADIOBUTTON GROUP rad1, 
            r2 RADIOBUTTON GROUP rad1, 
            r3 RADIOBUTTON GROUP rad1. 
SELECTION-SCREEN ULINE /1(50). 

AT SELECTION-SCREEN OUTPUT. 
  comm1 ='Selection Screen'. 
  comm2 ='Select one'. 
  LOOP AT SCREEN. 
    IF screen-group1 = 'MG1'. 
       screen-intensified = '1'. 
      MODIFY SCREEN. 
    ENDIF. 
  ENDLOOP. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 13:57:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2741839#M637112</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T13:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2741840#M637113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go to selection texts and click on dictionary reference check box,,,then..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block b1 with frame title text-001.&lt;/P&gt;&lt;P&gt;*selection-screen begin of line.&lt;/P&gt;&lt;P&gt;*selection-screen comment (20) matnr .&lt;/P&gt;&lt;P&gt;parameters: p_matnr type mara-matnr obligatory.&lt;/P&gt;&lt;P&gt;*selection-screen comment (40) maktx .&lt;/P&gt;&lt;P&gt;*selection-screen end of line.&lt;/P&gt;&lt;P&gt;selection-screen end of block b1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 13:59:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2741840#M637113</guid>
      <dc:creator>Manohar2u</dc:creator>
      <dc:date>2007-09-12T13:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2741841#M637114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balu, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using Comment statement : &lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT   (length) TEXT FOR FIELD P_MATNR &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TEXT can be a name or text symbol. &lt;/P&gt;&lt;P&gt;use text symbol like this and make sure that is active.&lt;/P&gt;&lt;P&gt;selection-screen comment (20)  text-002 for field p_matnr. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Venkat. &lt;/P&gt;&lt;P&gt;Award me with points, if given tip is useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 14:15:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2741841#M637114</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T14:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2741842#M637115</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;give like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block b1 with frame title text-001.&lt;/P&gt;&lt;P&gt;selection-screen begin of line.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT  5(20) TEXT-203.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN POSITION 28.&lt;/P&gt;&lt;P&gt;parameters: p_matnr type mara-matnr obligatory.&lt;/P&gt;&lt;P&gt;selection-screen end of line.&lt;/P&gt;&lt;P&gt;selection-screen end of block b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;priya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 14:17:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2741842#M637115</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T14:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2741843#M637116</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;If I understood the your requirement correctly, you want to display the description of the material in the same line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to use the following code....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------------------------------" /&gt;&lt;P&gt;selection-screen begin of block b1 with frame title text-001.&lt;/P&gt;&lt;P&gt;selection-screen begin of line.&lt;/P&gt;&lt;P&gt;selection-screen comment 1(10) matnr .&lt;/P&gt;&lt;P&gt;parameters: p_matnr type mara-matnr obligatory.&lt;/P&gt;&lt;P&gt;selection-screen comment 35(40) maktx .&lt;/P&gt;&lt;P&gt;selection-screen end of line.&lt;/P&gt;&lt;P&gt;selection-screen end of block b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;initialization.&lt;/P&gt;&lt;P&gt;    move text-002 to matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on p_matnr.&lt;/P&gt;&lt;P&gt;     select single maktx into maktx from makt where &lt;/P&gt;&lt;P&gt;     spras = sy-langu and matnr = p_matnr.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above code will display text element text-002 at position 1 in front of the Parameter Field and the material description at position 35 as soon as you press enter after selecting the material on the same line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if answer is useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hema&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 14:24:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2741843#M637116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T14:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2741844#M637117</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;Please try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT ZZTEST.

TABLES: MARA, MAKT.
                                                                        
SELECTION-SCREEN: BEGIN OF LINE.
SELECTION-SCREEN: COMMENT 01(20) T_MATNR.
PARAMETERS: P_MATNR LIKE MARA-MATNR.
SELECTION-SCREEN: COMMENT 50(40) T_DESC.
SELECTION-SCREEN: END OF LINE.
                                                                        
DATA: DYNFIELDS TYPE TABLE OF DYNPREAD WITH HEADER LINE.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_MATNR.
  DATA: RETURN_TAB TYPE TABLE OF DDSHRETVAL WITH HEADER LINE.
  DATA: X_MATNR LIKE MARA-MATNR.
                                                                        
  CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
    EXPORTING
      TABNAME    = 'MARA'
      FIELDNAME  = 'MATNR'
    TABLES
      RETURN_TAB = RETURN_TAB.

  READ TABLE RETURN_TAB INDEX 1.
  CHECK SY-SUBRC = 0.

  DYNFIELDS-FIELDNAME = 'P_MATNR'.
  WRITE RETURN_TAB-FIELDVAL TO DYNFIELDS-FIELDVALUE.
  APPEND DYNFIELDS.

  X_MATNR = DYNFIELDS-FIELDVALUE.
  DYNFIELDS-FIELDNAME = 'T_DESC'.
  SELECT SINGLE * FROM MAKT WHERE MATNR = X_MATNR.
  WRITE MAKT-MAKTX TO DYNFIELDS-FIELDVALUE.
  APPEND DYNFIELDS.

  CALL FUNCTION 'DYNP_VALUES_UPDATE'
    EXPORTING
      DYNAME     = SY-REPID
      DYNUMB     = SY-DYNNR
    TABLES
      DYNPFIELDS = DYNFIELDS.
                                                                        
INITIALIZATION.
  T_MATNR = 'Material Number'.
  T_DESC = SPACE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2007 14:56:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/2741844#M637117</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-11-02T14:56:12Z</dc:date>
    </item>
  </channel>
</rss>

