Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error for Selection screen

Former Member
0 Likes
1,915

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

8 REPLIES 8
Read only

Former Member
0 Likes
1,136

Could you please post the source code?

Greetings,

Blag.

Read only

0 Likes
1,136

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.

Read only

0 Likes
1,136

You should review the COMMENT...It seems to me that they are overlapping...

Greetings,

Blag.

Read only

0 Likes
1,136

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.

Read only

0 Likes
1,136

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

Read only

Former Member
0 Likes
1,136

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.

Read only

Former Member
0 Likes
1,136

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

Read only

Former Member
0 Likes
1,136

place the elements within Sel screen range