<?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: Enchancement Implementation Error At selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/enchancement-implementation-error-at-selection-screen/m-p/3650252#M879159</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first :create a data element and give it the text u need....&lt;/P&gt;&lt;P&gt;eg: ZZDIR' is dataelement in sell and you gave it text "directory"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the code do the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;          int_dtel	type	rsseldtel occurs 0,&lt;/P&gt;&lt;P&gt;          wa_dtel	type	rsseldtel.    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    wa_dtel-name = 'P_DIR'. "field for which u need the text change&lt;/P&gt;&lt;P&gt;    wa_dtel-kind = 'P'.   "p for parameters/s for select options&lt;/P&gt;&lt;P&gt;    wa_dtel-datenelment = 'ZZDIR'.  "give the name of data  elememtfrom which the text has to be displayed&lt;/P&gt;&lt;P&gt;    append wa_dtel to int_dtel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*********************************************&lt;/P&gt;&lt;P&gt;then on calling the following your parameter/select option field will have required text of that data element&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can do it for more than one parameter/selection-screen by appending it to the internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call function 'SELECTION_TEXTS_MODIFY_DTEL'&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        program                     = sy-repid&lt;/P&gt;&lt;P&gt;      tables&lt;/P&gt;&lt;P&gt;        sel_dtel                    = int_dtel&lt;/P&gt;&lt;P&gt;      exceptions&lt;/P&gt;&lt;P&gt;        program_not_found           = 1&lt;/P&gt;&lt;P&gt;        program_cannot_be_generated = 2&lt;/P&gt;&lt;P&gt;        others                      = 3.&lt;/P&gt;&lt;P&gt;    if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now "directory" will be name of the selection parameter on the screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will modify the name of the field in the selection screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful please&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Byju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Apr 2008 08:48:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-10T08:48:19Z</dc:date>
    <item>
      <title>Enchancement Implementation Error At selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enchancement-implementation-error-at-selection-screen/m-p/3650243#M879150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, can implicit enhancement be done on selection screen? When I tried to add a parameter after first selection-screen block or inside the block, always get error message during activation. The standard program i try to enhance is report LSO_RHXBUCH0 (Bookings per Participant). I am sure there is no syntax error on the codes I wrote. The error message is "Between "DATA BEGIN OF' name" and "DATA END OF name" only data statements are allowed.&lt;/P&gt;&lt;P&gt;Here the code, see enhancement: ZIMP_BOOKING_PARTICIPANT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-v-Block 1-----v-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t01.&lt;/P&gt;&lt;P&gt;PARAMETERS pchplvar LIKE pchdy-plvar NO-DISPLAY.         "Planvariante&lt;/P&gt;&lt;P&gt;PARAMETERS pchotype LIKE pchdy-otype NO-DISPLAY.         "Objekttyp&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;PARAMETERS ptyp1 LIKE hrvpv-ptyp1 RADIOBUTTON GROUP xxx. "Objekttyp1&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 4(22) ptxt1 FOR FIELD ptyp1.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN POSITION 27.&lt;/P&gt;&lt;P&gt;PARAMETERS ptyp2 LIKE hrvpv-ptyp2 RADIOBUTTON GROUP xxx. "Objekttyp2&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 30(22) ptxt2 FOR FIELD ptyp2.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN POSITION 53.&lt;/P&gt;&lt;P&gt;PARAMETERS ptyp3 LIKE hrvpv-ptyp3 RADIOBUTTON GROUP xxx. "Objekttyp3&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 56(22) ptxt3 FOR FIELD ptyp3.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;PARAMETERS ptyp4 LIKE hrvpv-ptyp4 RADIOBUTTON GROUP xxx. "Objekttyp4&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 4(22) ptxt4 FOR FIELD ptyp4.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN POSITION 27.&lt;/P&gt;&lt;P&gt;PARAMETERS ptyp5 LIKE hrvpv-ptyp5 RADIOBUTTON GROUP xxx. "Objekttyp5&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 30(22) ptxt5 FOR FIELD ptyp5.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN POSITION 53.&lt;/P&gt;&lt;P&gt;PARAMETERS ptyp6 LIKE hrvpv-ptyp6 RADIOBUTTON GROUP xxx. "Objekttyp6&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 56(20) ptxt6 FOR FIELD ptyp6.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN PUSHBUTTON 76(4) morepart USER-COMMAND more.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(3 ) Struct. %F4_MACO_TAB, End                                                                                S&lt;/P&gt;&lt;P&gt;rhx-f4-objid-data.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS pchobjid FOR objec-realo NO INTERVALS.      "Teilnehmer&lt;/P&gt;&lt;P&gt;PARAMETERS pchseark LIKE pchdy-seark.  "Suchbegriff&lt;/P&gt;&lt;P&gt;PARAMETERS pchostat LIKE pchdy-ostat NO-DISPLAY.         "Objektstatus&lt;/P&gt;&lt;P&gt;PARAMETERS pchistat LIKE pchdy-istat NO-DISPLAY.          "Datenstatus&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Strukturparameter&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;PARAMETERS pchwegid LIKE pchdy-wegid NO-DISPLAY.&lt;/P&gt;&lt;P&gt;PARAMETERS pchsvect LIKE pchdy-svect NO-DISPLAY.&lt;/P&gt;&lt;P&gt;PARAMETERS pchactiv LIKE pchdy-activ NO-DISPLAY.&lt;/P&gt;&lt;P&gt;PARAMETERS pchdepth LIKE pchdy-depth NO-DISPLAY.&lt;/P&gt;&lt;P&gt;PARAMETERS pchdymod LIKE t77s3-dymod NO-DISPLAY.       "Dynp.variation&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-&lt;SUP&gt;-Block 1-----&lt;/SUP&gt;-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(1 ) Struct. $PCH_TEXTPOOL_KEY, End                                                                                S&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$&lt;/STRONG&gt;$-Start: (1 )----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------------" /&gt;&lt;P&gt;$&lt;STRONG&gt;$&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ENHANCEMENT 1  ZIMP_BOOKING_PARTICIPANT.    "active version&lt;/P&gt;&lt;P&gt;*SELECTION-SCREEN BEGIN OF BLOCK bb2.&lt;/P&gt;&lt;P&gt;PARAMETERS tpchdepth LIKE pchdy-depth NO-DISPLAY.&lt;/P&gt;&lt;P&gt;*SELECTION-SCREEN END OF BLOCK bb2.&lt;/P&gt;&lt;P&gt;ENDENHANCEMENT.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$&lt;/STRONG&gt;$-End:   (1 )----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------------" /&gt;&lt;P&gt;$&lt;STRONG&gt;$&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;rhx-obeg-radios-define.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-Block 2 (Aufbereitungsoption)-----&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;*SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-RB3.&lt;/P&gt;&lt;P&gt;PARAMETER : tc LIKE pp0j-tc_disp NO-DISPLAY.&lt;/P&gt;&lt;P&gt;*SELECTION-SCREEN END OF BLOCK B3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 08:07:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enchancement-implementation-error-at-selection-screen/m-p/3650243#M879150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T08:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Enchancement Implementation Error At selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enchancement-implementation-error-at-selection-screen/m-p/3650244#M879151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets reanalyse our situation here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the error says : "Between "DATA BEGIN OF' name" and "DATA END OF name" only data statements are allowed.&lt;/P&gt;&lt;P&gt;it is a declaration error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this implies somewhere in the program there is a declaration statement but in the wrong format &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do this -&amp;gt; use the Find(binaculor) icon on top and search for Begin of name...select radio button :in the main program..if you find it..check the syntax of it....if you got no results...comment all the changes done by you and activate to see if the same error comes...if the error does not come....please revert back&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Byju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 08:25:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enchancement-implementation-error-at-selection-screen/m-p/3650244#M879151</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T08:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Enchancement Implementation Error At selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enchancement-implementation-error-at-selection-screen/m-p/3650245#M879152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Byju,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are quite a number of standard include programs which have "begin of" data declaration. They are all SAP standard include programs and shouldn't have syntax errors. At the enhancement option that I added the enchancement codes, it shows "Struct. $PCH_TEXTPOOL_KEY, End". The declaration of $PCH_TEXTPOOL_KEY found in include RHXMACRO. If you see the code below, the statement rhx-obeg-radios-define which refer to a definition in RHXMACRO is right after the enhancement I added..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(1 ) Struct. $PCH_TEXTPOOL_KEY, End                                                                                S&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$&lt;/STRONG&gt;$-Start: (1 )----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------------" /&gt;&lt;P&gt;$&lt;STRONG&gt;$&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ENHANCEMENT 1  ZIMP_BOOKING_PARTICIPANT.    "active version&lt;/P&gt;&lt;P&gt;*SELECTION-SCREEN BEGIN OF BLOCK bb2.&lt;/P&gt;&lt;P&gt;*PARAMETERS tpchdepth LIKE pchdy-depth NO-DISPLAY.&lt;/P&gt;&lt;P&gt;*SELECTION-SCREEN END OF BLOCK bb2.&lt;/P&gt;&lt;P&gt;ENDENHANCEMENT.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$&lt;/STRONG&gt;$-End:   (1 )----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------------" /&gt;&lt;P&gt;$&lt;STRONG&gt;$&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;rhx-obeg-radios-define.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=================================================================&lt;/P&gt;&lt;P&gt;//codes extracted from RHXMACRO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEFINE RHX-OBEG-RADIOS-DEFINE.&lt;/P&gt;&lt;P&gt;  RHX-INT-RADIOS-DEFINE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Datatime&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  PARAMETERS:&lt;/P&gt;&lt;P&gt;    PCHBEGDA LIKE PCHDY-BEGDA NO-DISPLAY.&lt;/P&gt;&lt;P&gt;  PARAMETERS:&lt;/P&gt;&lt;P&gt;    PCHENDDA LIKE PCHDY-ENDDA NO-DISPLAY.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN END   OF BLOCK FRAME2.&lt;/P&gt;&lt;P&gt;  RHX-INT-RADIO-DATA.&lt;/P&gt;&lt;P&gt;END-OF-DEFINITION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$&lt;/STRONG&gt;$**&lt;STRONG&gt;RHX-INT-RADIOS-DEFINE&lt;/STRONG&gt;*******************************************&lt;/P&gt;&lt;P&gt;DEFINE RHX-INT-RADIOS-DEFINE.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN BEGIN OF BLOCK FRAME2 WITH FRAME TITLE $TX$ZTST.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;  PARAMETERS : PCHZTR_D LIKE PCHDY-ZTR_D&lt;/P&gt;&lt;P&gt;                        RADIOBUTTON GROUP $ZTR.&lt;/P&gt;&lt;P&gt; SELECTION-SCREEN COMMENT 4(17) $TX$ZTRD             FOR FIELD PCHZTR_D&lt;/P&gt;&lt;P&gt;                                                      MODIF ID $ZT.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN POSITION 23.&lt;/P&gt;&lt;P&gt;  PARAMETERS : PCHZTR_A LIKE PCHDY-ZTR_A&lt;/P&gt;&lt;P&gt;                        RADIOBUTTON GROUP $ZTR.&lt;/P&gt;&lt;P&gt; SELECTION-SCREEN COMMENT 26(17) $TX$ZTRA            FOR FIELD PCHZTR_A&lt;/P&gt;&lt;P&gt;                                                      MODIF ID $ZT.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN POSITION 49.&lt;/P&gt;&lt;P&gt;  PARAMETERS : PCHZTR_Z LIKE PCHDY-ZTR_Z&lt;/P&gt;&lt;P&gt;                        RADIOBUTTON GROUP $ZTR MODIF ID $Z1.&lt;/P&gt;&lt;P&gt; SELECTION-SCREEN COMMENT 52(17) $TX$ZTRZ            FOR FIELD PCHZTR_Z&lt;/P&gt;&lt;P&gt;                                                         MODIF ID $Z1.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN END   OF LINE.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;  PARAMETERS : PCHZTR_M LIKE PCHDY-ZTR_M&lt;/P&gt;&lt;P&gt;                        RADIOBUTTON GROUP $ZTR.&lt;/P&gt;&lt;P&gt; SELECTION-SCREEN COMMENT 4(17) $TX$ZTRM             FOR FIELD PCHZTR_M&lt;/P&gt;&lt;P&gt;                                                      MODIF ID $ZT.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN POSITION 23.&lt;/P&gt;&lt;P&gt;  PARAMETERS : PCHZTR_P LIKE PCHDY-ZTR_P&lt;/P&gt;&lt;P&gt;                        RADIOBUTTON GROUP $ZTR.&lt;/P&gt;&lt;P&gt; SELECTION-SCREEN COMMENT 26(17) $TX$ZTRP            FOR FIELD PCHZTR_P&lt;/P&gt;&lt;P&gt;                                                      MODIF ID $ZT.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN PUSHBUTTON 49(30) $PS$ZTST&lt;/P&gt;&lt;P&gt;                   USER-COMMAND $STT MODIF ID $Z3.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN END   OF LINE.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;  PARAMETERS : PCHZTR_Y LIKE PCHDY-ZTR_Y&lt;/P&gt;&lt;P&gt;                        RADIOBUTTON GROUP $ZTR.&lt;/P&gt;&lt;P&gt; SELECTION-SCREEN COMMENT 4(17) $TX$ZTRY             FOR FIELD PCHZTR_Y&lt;/P&gt;&lt;P&gt;                                                      MODIF ID $ZT.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN POSITION 23.&lt;/P&gt;&lt;P&gt;  PARAMETERS : PCHZTR_F LIKE PCHDY-ZTR_F&lt;/P&gt;&lt;P&gt;                        RADIOBUTTON GROUP $ZTR.&lt;/P&gt;&lt;P&gt; SELECTION-SCREEN COMMENT 26(17) $TX$ZTRF            FOR FIELD PCHZTR_F&lt;/P&gt;&lt;P&gt;                                                      MODIF ID $ZT.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN PUSHBUTTON 49(30) $PS$ZTRZ&lt;/P&gt;&lt;P&gt;                   USER-COMMAND $ZTZ MODIF ID $Z2.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN END   OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Objecttime&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN COMMENT 1(30) $PA$OBEG             FOR FIELD PCHOBEG&lt;/P&gt;&lt;P&gt;                                                         MODIF ID  $ZO.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN POSITION POS_LOW.&lt;/P&gt;&lt;P&gt;  PARAMETERS:&lt;/P&gt;&lt;P&gt;    PCHOBEG  LIKE PCHDY-OBEG MODIF ID  $ZO.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN COMMENT 45(5) $PA$OEND             FOR FIELD PCHOEND&lt;/P&gt;&lt;P&gt;                                                         MODIF ID  $ZE.&lt;/P&gt;&lt;P&gt;  PARAMETERS:&lt;/P&gt;&lt;P&gt;    PCHOEND  LIKE PCHDY-OEND MODIF ID  $ZE.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN PUSHBUTTON 63(16) $PS$PZTR&lt;/P&gt;&lt;P&gt;                   USER-COMMAND $ZTR MODIF ID $ZR.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN END   OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;pchtimed&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  PARAMETERS :&lt;/P&gt;&lt;P&gt;    PCHTIMED LIKE PCHDY-TIMED NO-DISPLAY.&lt;/P&gt;&lt;P&gt;END-OF-DEFINITION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEFINE RHX-INT-RADIO-DATA.&lt;/P&gt;&lt;P&gt;  DATA : $TIMED_FIRST_PBO VALUE '1'.&lt;/P&gt;&lt;P&gt;  TABLES : SSCRFIELDS, T77MT.&lt;/P&gt;&lt;P&gt;  DATA : BEGIN OF $PCH_TEXTPOOL OCCURS 1.&lt;/P&gt;&lt;P&gt;          INCLUDE STRUCTURE TEXTPOOL.&lt;/P&gt;&lt;P&gt;  DATA : END   OF $PCH_TEXTPOOL.&lt;/P&gt;&lt;P&gt;  DATA : $PCH_TEXTPOOL_LINES TYPE I.&lt;/P&gt;&lt;P&gt;  DATA : BEGIN OF $PCH_TEXTPOOL_KEY,&lt;/P&gt;&lt;P&gt;           ID  LIKE TEXTPOOL-ID,&lt;/P&gt;&lt;P&gt;           KEY LIKE TEXTPOOL-KEY,&lt;/P&gt;&lt;P&gt;         END   OF $PCH_TEXTPOOL_KEY.&lt;/P&gt;&lt;P&gt;  DATA : $KEYDATE$(1) TYPE N.&lt;/P&gt;&lt;P&gt;  DATA : $DAYNUM$ LIKE SCAL-INDICATOR.&lt;/P&gt;&lt;P&gt;  DATA : $TXTID$ LIKE T77MT-TXTID.&lt;/P&gt;&lt;P&gt;END-OF-DEFINITION.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 09:48:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enchancement-implementation-error-at-selection-screen/m-p/3650245#M879152</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T09:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Enchancement Implementation Error At selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enchancement-implementation-error-at-selection-screen/m-p/3650246#M879153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even after commenting your code is the error still coming?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if so it necessarily doesn't mean SAP has to do  syntax declaration error...some other programmers may also have tried the coding in any of the includes or the program and saved with syntax errors&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also in the error you must be getting a specific structure name for the error " data begin of name" syntax not correct..etc....eg:data begin of struct...you have to search for "data begin of struct" as a whole and not just the ABAP keywords "data begin of"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your commented code seems fine..i believe the error was existing before you came in....just check for the entire statement in the search criterion and let me know if it works out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also if you have 100 includes and atleasat one include has error ....and you try to activate a program using it...error will come ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Byju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 10:14:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enchancement-implementation-error-at-selection-screen/m-p/3650246#M879153</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T10:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: Enchancement Implementation Error At selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enchancement-implementation-error-at-selection-screen/m-p/3650247#M879154</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 think at that place, you have option for creating two type of enhancement implementation viz. &lt;STRONG&gt;declaration&lt;/STRONG&gt;  or &lt;STRONG&gt;code&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;However declaration can be data declaration only. It can not  be selection screen parameter.&lt;/P&gt;&lt;P&gt;That's why you got the message "Between "DATA BEGIN OF' name" and "DATA END OF name" only data statements are allowed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;G@urav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 14:54:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enchancement-implementation-error-at-selection-screen/m-p/3650247#M879154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T14:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Enchancement Implementation Error At selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enchancement-implementation-error-at-selection-screen/m-p/3650248#M879155</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;No error if I commented my code. The syntax error message doesn't specify what structure is that. When I first created the enhancement, no options like "declaration" or "code" available for me to choose. But if I created enchancement in other places of the program (start of a form or end of a form), I can see the options  "declaration" or "code".&lt;/P&gt;&lt;P&gt;Thanks for quick reply. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2008 02:43:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enchancement-implementation-error-at-selection-screen/m-p/3650248#M879155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-10T02:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Enchancement Implementation Error At selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enchancement-implementation-error-at-selection-screen/m-p/3650249#M879156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;       Implicit enhancement of the report which is present at the top is for declaring your own data types are variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the error you are getting is very much expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to enhance selection screen then look for the explicit enhancement provided by SAP to add more fields if you dont find that means you can achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if you find it helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prasanna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2008 04:23:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enchancement-implementation-error-at-selection-screen/m-p/3650249#M879156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-10T04:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Enchancement Implementation Error At selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enchancement-implementation-error-at-selection-screen/m-p/3650250#M879157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have tried and replicated your problem..i believe those implementations cannot be used..&lt;STRONG&gt;but there is one which can be&lt;/STRONG&gt; &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do one thing,write your code in the implementation at the bottom in the implementation after &lt;STRONG&gt;"INCLUDE rhscmfor."&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;it comes on the screen at the bottom..maybe not the right location you want but you have it on the screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;see my test code below...p_test  is coming on the selection screen at the bottom when executing the report...so hope that solves it&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Unterprogramme für Reports die nach Ttypen ausgewertet werden&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;INCLUDE rhscmfor.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$SE:(6 ) Include RHXBUCH0, End                                                                                S&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$&lt;/STRONG&gt;$-Start: (6 )----&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------------" /&gt;&lt;P&gt;$&lt;STRONG&gt;$&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ENHANCEMENT 1  ZTEST_CODE.    "active version&lt;/P&gt;&lt;P&gt;parameters : p_test type c.&lt;/P&gt;&lt;P&gt;ENDENHANCEMENT.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$&lt;/STRONG&gt;$-End:   (6 )----&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------------" /&gt;&lt;P&gt;$&lt;STRONG&gt;$&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful&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;Byju&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2008 05:44:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enchancement-implementation-error-at-selection-screen/m-p/3650250#M879157</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-10T05:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Enchancement Implementation Error At selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enchancement-implementation-error-at-selection-screen/m-p/3650251#M879158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Byju,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works when I put the code at the bottom. But I encounter another problem when I tried to change the selection text for the parameter as the AT SELECTION-SCREEN OUTPUT is located at the top of the code, so I cannot refer the parameter AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//syntax error where ptxt1 unknown&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt; ptxt1 = 'Active Employee'.&lt;/P&gt;&lt;P&gt;//ptxt1 declared here&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;PARAMETERS p_active AS CHECKBOX DEFAULT 'X'.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 4(22) ptxt1 FOR FIELD p_active.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN POSITION 27.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN end OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2008 07:07:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enchancement-implementation-error-at-selection-screen/m-p/3650251#M879158</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-10T07:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Enchancement Implementation Error At selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enchancement-implementation-error-at-selection-screen/m-p/3650252#M879159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first :create a data element and give it the text u need....&lt;/P&gt;&lt;P&gt;eg: ZZDIR' is dataelement in sell and you gave it text "directory"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the code do the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;          int_dtel	type	rsseldtel occurs 0,&lt;/P&gt;&lt;P&gt;          wa_dtel	type	rsseldtel.    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    wa_dtel-name = 'P_DIR'. "field for which u need the text change&lt;/P&gt;&lt;P&gt;    wa_dtel-kind = 'P'.   "p for parameters/s for select options&lt;/P&gt;&lt;P&gt;    wa_dtel-datenelment = 'ZZDIR'.  "give the name of data  elememtfrom which the text has to be displayed&lt;/P&gt;&lt;P&gt;    append wa_dtel to int_dtel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*********************************************&lt;/P&gt;&lt;P&gt;then on calling the following your parameter/select option field will have required text of that data element&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can do it for more than one parameter/selection-screen by appending it to the internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call function 'SELECTION_TEXTS_MODIFY_DTEL'&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        program                     = sy-repid&lt;/P&gt;&lt;P&gt;      tables&lt;/P&gt;&lt;P&gt;        sel_dtel                    = int_dtel&lt;/P&gt;&lt;P&gt;      exceptions&lt;/P&gt;&lt;P&gt;        program_not_found           = 1&lt;/P&gt;&lt;P&gt;        program_cannot_be_generated = 2&lt;/P&gt;&lt;P&gt;        others                      = 3.&lt;/P&gt;&lt;P&gt;    if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now "directory" will be name of the selection parameter on the screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will modify the name of the field in the selection screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful please&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Byju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2008 08:48:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enchancement-implementation-error-at-selection-screen/m-p/3650252#M879159</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-10T08:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Enchancement Implementation Error At selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enchancement-implementation-error-at-selection-screen/m-p/3650253#M879160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Byju,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your method on changing selection texts should be applied at AT SELECTION-SCREEN OUTPUT, right?&lt;/P&gt;&lt;P&gt;My problem is finally solved when I change the text at INITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS p_active AS CHECKBOX DEFAULT 'X'.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 4(22) ptxt1 FOR FIELD p_active.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN POSITION 27.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;ptxt1 = 'Active Employees'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am quite surprise that there can be two INITIALIZATION in the same program. The original program has already had INITIALIZATION. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, the function module 'SELECTION_TEXTS_MODIFY_DTEL' you recommend is very useful also. Good to learn that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2008 03:53:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enchancement-implementation-error-at-selection-screen/m-p/3650253#M879160</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-11T03:53:14Z</dc:date>
    </item>
  </channel>
</rss>

