‎2006 Nov 15 9:47 AM
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.
‎2006 Nov 15 10:18 AM
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
‎2006 Nov 15 9:49 AM
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
‎2006 Nov 15 9:51 AM
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
‎2006 Nov 15 9:52 AM
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
‎2006 Nov 15 9:58 AM
Sathish,
declare
tables : mseg.
try to delete all text elements and check.
-Anu
‎2006 Nov 15 10:04 AM
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.
‎2006 Nov 15 10:09 AM
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
‎2006 Nov 15 10:13 AM
hi,
u forgot to decalre tables,error might be bcos of it
<b>TABLES:mseg,mkpf.</b>
rest all is ok
Regards,
Sowjanya
‎2006 Nov 15 10:14 AM
hi satish,
i had copied ur code and checked its working fine...
check if u hav declared the table MSEG.
regards,
priya.
‎2006 Nov 15 10:18 AM
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
‎2006 Nov 15 10:33 AM
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..