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 in generating a sel-screen.

Former Member
0 Likes
2,165

friends,

am getting an error while activating a report saying that error in generating the sel. screen 1000 in line 0....also, am not able to select the selection-texts (in the goto->text elements), which says there aer serious syntax errors...pl help..thanks all..

here is my selection-screen declaration code

SELECTION-SCREEN BEGIN OF BLOCK APPLICATION WITH FRAME TITLE TEXT-002.

PARAMETERS:

PM_WERKS LIKE MSEG-WERKS OBLIGATORY DEFAULT '1000',

PM_MJAHR LIKE MKPF-MJAHR OBLIGATORY DEFAULT SY-DATLO.

SELECT-OPTIONS:

PM_MBLNR FOR MSEG-MBLNR NO-EXTENSION MEMORY ID MBN.

PARAMETERS :

PM_LGORT LIKE MSEG-LGORT OBLIGATORY DEFAULT '1001',

PM_BUDAT LIKE MKPF-BUDAT.

SELECTION-SCREEN END OF BLOCK APPLICATION.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,709

Hi,

You can check out what exactly is the error though program RSDBGENA,

give the program name and execute, it display what exactly is the error.

Regards,

Raghavendra

10 REPLIES 10
Read only

Former Member
0 Likes
1,709

hi, change like this

SELECTION-SCREEN BEGIN OF BLOCK APPLICATION WITH FRAME TITLE TEXT-002.

PARAMETERS:

PM_WERKS LIKE MSEG-WERKS DEFAULT '1000' OBLIGATORY,

PM_MJAHR LIKE MKPF-MJAHR DEFAULT SY-DATLO OBLIGATORY.

SELECT-OPTIONS:

PM_MBLNR FOR MSEG-MBLNR NO-EXTENSION MEMORY ID MBN.

PARAMETERS :

PM_LGORT LIKE MSEG-LGORT DEFAULT '1001' OBLIGATORY,

PM_BUDAT LIKE MKPF-BUDAT.

SELECTION-SCREEN END OF BLOCK APPLICATION.

if helps review the points

Read only

Former Member
0 Likes
1,709

I think u have created one more screen also because i copied ur coding and executed it didnt show me any error.

This may be due to overlap of another screen.

check it.

Message was edited by:

Ram Chandran

Read only

Former Member
0 Likes
1,709

Hi,

Post the previous line of SELECTION-SCREEN BEGIN OF BLOCK APPLICATION WITH FRAME TITLE TEXT-002.

Also, Next line of SELECTION-SCREEN END OF BLOCK APPLICATION.

Hope you have declared TABLES: MSEG.

Satya

Read only

Former Member
0 Likes
1,709

Sathish,

declare

tables : mseg.

try to delete all text elements and check.

-Anu

Read only

Former Member
0 Likes
1,709

Hi,

the below code is working in my system, i think u r SAP is not supporting all the features , reg, screen

tables : mkpf,

mseg.

SELECTION-SCREEN BEGIN OF BLOCK application WITH FRAME TITLE text-002.

PARAMETERS:

pm_werks LIKE mseg-werks OBLIGATORY DEFAULT '1000',

pm_mjahr LIKE mkpf-mjahr OBLIGATORY DEFAULT sy-datlo.

SELECT-OPTIONS:

pm_mblnr FOR mseg-mblnr NO-EXTENSION MEMORY ID mbn.

PARAMETERS :

pm_lgort LIKE mseg-lgort OBLIGATORY DEFAULT '1001',

pm_budat LIKE mkpf-budat.

SELECTION-SCREEN END OF BLOCK application.

Read only

Former Member
0 Likes
1,709

Hi Satish,

i am not facing any kind of problem with your code. can you check it once.

TABLES: mseg.

SELECTION-SCREEN BEGIN OF BLOCK application WITH FRAME TITLE text-002.
PARAMETERS:
pm_werks LIKE mseg-werks OBLIGATORY DEFAULT '1000',
pm_mjahr LIKE mkpf-mjahr OBLIGATORY DEFAULT sy-datlo.
SELECT-OPTIONS:
pm_mblnr FOR mseg-mblnr NO-EXTENSION MEMORY ID mbn.
PARAMETERS :
pm_lgort LIKE mseg-lgort OBLIGATORY DEFAULT '1001',
pm_budat LIKE mkpf-budat.
SELECTION-SCREEN END OF BLOCK application.

Regards

Vijay

Read only

Former Member
0 Likes
1,709

hi,

u forgot to decalre tables,error might be bcos of it

<b>TABLES:mseg,mkpf.</b>

rest all is ok

Regards,

Sowjanya

Read only

Former Member
0 Likes
1,709

hi satish,

i had copied ur code and checked its working fine...

check if u hav declared the table MSEG.

regards,

priya.

Read only

Former Member
0 Likes
1,710

Hi,

You can check out what exactly is the error though program RSDBGENA,

give the program name and execute, it display what exactly is the error.

Regards,

Raghavendra

Read only

Former Member
0 Likes
1,709

friends

thanks for all your replies...but i even executed the prog. RSDBGENA adn it says the sel. screen doesn't exist...but i copied this whole prog. from another prog. before making modifications..in that in the attributes of the sel. screen, i find that it is marked as Normal rather than Selection screen...it is in display mode even if i change it..