‎2008 Apr 07 9:00 PM
Hi Experts,
I am getting a selection screen error while activating my program in se38. When i am doing syntax check there is no error(s) at all.
It says " Error when generating the selection screen "1000" of report "<prg name>
- line 0'.
can some one please suggest what might had happened?
Thanks
Dan
‎2008 Apr 07 9:03 PM
‎2008 Apr 07 9:07 PM
Hi Alvaro,
Its here :
----
Selection Screen Definitions *
----
SELECTION-SCREEN:BEGIN OF BLOCK h1 WITH FRAME TITLE text-001.
SELECT-OPTIONS s_kunnr FOR kna1-kunnr DEFAULT '100000'.
"Customer number
PARAMETERS: p_apfile TYPE rlgrap-filename NO-DISPLAY.
SELECTION-SCREEN: BEGIN OF BLOCK files WITH FRAME TITLE text-t02.
SELECTION-SCREEN: SKIP 1,
BEGIN OF LINE.
PARAMETERS: r_local RADIOBUTTON GROUP fil ."workstation
SELECTION-SCREEN: COMMENT 4(10) text-p03,
POSITION 15.
PARAMETERS: P_LOCFIL TYPE rlgrap-filename. "local file
*SELECTION-SCREEN: skip 1.
PARAMETERS: r_appsrv RADIOBUTTON GROUP fil DEFAULT 'X'."app-server
SELECTION-SCREEN: COMMENT 4(15) text-p04.
SELECTION-SCREEN: COMMENT 4(17) Z_P1,
POSITION 23.
PARAMETERS: P_XLOG TYPE FC_LOGFILE DEFAULT 'ZMWVLOGICALFILE'.
SELECTION-SCREEN END OF LINE.
"---------------------------------------------------
" Contains the required Selection Screen parameters.
"---------------------------------------------------
*INCLUDE zfileselectblock.
SELECTION-SCREEN: BEGIN OF BLOCK XFILE WITH FRAME TITLE z_T1.
*
*SELECTION-SCREEN: BEGIN OF LINE.
**PARAMETERS: R_XLOG RADIOBUTTON GROUP XRD DEFAULT 'X'.
**
**SELECTION-SCREEN: COMMENT 4(17) Z_P1,
POSITION 23.
**PARAMETERS: P_XLOG TYPE FC_LOGFILE DEFAULT 'ZMWVLOGICALFILE'.
*SELECTION-SCREEN: END OF LINE.
*SELECTION-SCREEN: BEGIN OF LINE.
*PARAMETERS: R_XCNV RADIOBUTTON GROUP XRD.
*SELECTION-SCREEN: COMMENT 4(17) Z_P2,
POSITION 23.
*PARAMETERS: P_XCNV(20) TYPE C.
*SELECTION-SCREEN: END OF LINE.
SELECTION-SCREEN: SKIP 1,
BEGIN OF LINE,
COMMENT 1(13) Z_P3,
POSITION 15.
PARAMETERS: P_XPATH TYPE RLGRAP-FILENAME.
SELECTION-SCREEN: END OF LINE.
SELECTION-SCREEN: BEGIN OF LINE,
COMMENT 1(13) Z_P4,
POSITION 15.
PARAMETERS: P_XFILE TYPE RLGRAP-FILENAME.
SELECTION-SCREEN: END OF LINE.
SELECTION-SCREEN: END OF BLOCK XFILE.
*end of include ZFILESELECTBLOCK.
SELECTION-SCREEN: END OF BLOCK files.
SELECTION-SCREEN: END OF BLOCK h1.
‎2008 Apr 07 9:16 PM
You should review the COMMENT...It seems to me that they are overlapping...
Greetings,
Blag.
‎2008 Apr 07 9:17 PM
I have a suspecion that the following block is in error. There are too many things in one line and I think one control is overstepping on another.
SELECTION-SCREEN: SKIP 1,
BEGIN OF LINE.
PARAMETERS: r_local RADIOBUTTON GROUP fil ."workstation
SELECTION-SCREEN: COMMENT 4(10) text-p03,
POSITION 15.
PARAMETERS: P_LOCFIL TYPE rlgrap-filename. "local file
*SELECTION-SCREEN: skip 1.
PARAMETERS: r_appsrv RADIOBUTTON GROUP fil DEFAULT 'X'."app-server
SELECTION-SCREEN: COMMENT 4(15) text-p04.
SELECTION-SCREEN: COMMENT 4(17) Z_P1,
POSITION 23.
PARAMETERS: P_XLOG TYPE FC_LOGFILE DEFAULT 'ZMWVLOGICALFILE'.
SELECTION-SCREEN END OF LINE.
‎2008 Apr 08 4:21 AM
Hi Dan,
The Error is due to over-writing of buttons or text-box in the selection screen.So try to calculate the position size of each and every control in the selection screen and change your code.
The code you given is not clear.Thats why I cant able to make any change in it. I am sure that the error is due to over-writing of controls in the selection-screen.
Reward if its helpful.
Regards,
Raghu
‎2008 Apr 08 12:12 AM
Hi Dan,
Please change the position 23 to Position 30 which i highlight below in Bold. Because the field might got overlapped ...that cause this error.
BEGIN OF LINE.
PARAMETERS: r_local RADIOBUTTON GROUP fil ."workstation
SELECTION-SCREEN: COMMENT 4(10) text-p03,
POSITION 15.
PARAMETERS: P_LOCFIL TYPE rlgrap-filename. "local file
*SELECTION-SCREEN: skip 1.
PARAMETERS: r_appsrv RADIOBUTTON GROUP fil DEFAULT 'X'."app-server
SELECTION-SCREEN: COMMENT 4(15) text-p04.
SELECTION-SCREEN: COMMENT 4(17) Z_P1,
POSITION 23.
PARAMETERS: P_XLOG TYPE FC_LOGFILE DEFAULT 'ZMWVLOGICALFILE'.
SELECTION-SCREEN END OF LINE.
‎2008 Apr 08 4:57 AM
Hi,
You missed to END and START a new line for each of the file declarations.
Try by adding the modification as below:
PARAMETERS: p_locfil TYPE rlgrap-filename. "local file
SELECTION-SCREEN: END OF LINE, "Additional Line 1
BEGIN OF LINE. " Additional Line 2
*SELECTION-SCREEN: skip 1.
PARAMETERS: r_appsrv RADIOBUTTON GROUP fil DEFAULT 'X'."app-server
‎2011 Apr 20 4:25 PM