2010 Sep 24 7:40 AM
Hi,
I get an error(error when generating screen 900) when I activate my program.
tables mara.
data:BEGIN OF wa,
matnr like mara-matnr,
ernam like mara-ernam,
END OF wa.
DATA itab like TABLE OF wa.
SELECTION-SCREEN : BEGIN OF SCREEN 900 as window.
SELECT-OPTIONS mat for mara-matnr.
SELECTION-SCREEN PUSHBUTTON 10(3) mat2 USER-COMMAND OK.
SELECTION-SCREEN : END OF SCREEN 900.
call SCREEN 900.
please help.
2010 Sep 24 7:59 AM
Hi,
Instead Try like this,
TABLES MARA.
DATA:BEGIN OF WA,
MATNR LIKE MARA-MATNR,
ERNAM LIKE MARA-ERNAM,
END OF WA.
DATA ITAB LIKE TABLE OF WA.
SELECTION-SCREEN : BEGIN OF SCREEN 900 AS WINDOW.
SELECTION-SCREEN BEGIN OF BLOCK BL1.
SELECT-OPTIONS MAT FOR MARA-MATNR.
SELECTION-SCREEN END OF BLOCK BL1.
SELECTION-SCREEN PUSHBUTTON /10(3) MAT2 USER-COMMAND OK.
SELECTION-SCREEN : END OF SCREEN 900.
CALL SELECTION-SCREEN '900'.
2010 Sep 24 7:48 AM
Hi,
SELECTION-SCREEN : BEGIN OF SCREEN 900 as window.
SELECT-OPTIONS mat for mara-matnr.
SELECTION-SCREEN PUSHBUTTON 10(3) mat2 USER-COMMAND OK.
SELECTION-SCREEN : END OF SCREEN 900.
call SCREEN 900. <-- its not just a screen but selection-screen .. comment this.
CALL SELECTION-SCREEN '0900' .
Regards,
Srini.
2010 Sep 24 7:55 AM
Hi srini vas,
I tried using CALL SELECTION-SCREEN 0900.
But same error is coming when I activate (error when generating selection screen 0900.
Please help.
2010 Sep 24 8:05 AM
Hi,
Write your push button statement in between begin of line and end of line ...
SELECTION-SCREEN begin of line.
SELECTION-SCREEN PUSHBUTTON 10(3) mat2 USER-COMMAND OK.
SELECTION-SCREEN end of line.
Regards,
Srini.
2010 Sep 24 7:55 AM
try:
SELECTION-SCREEN : BEGIN OF SCREEN 900 as window.
SELECTION-SCREEN PUSHBUTTON 10(3) mat2 USER-COMMAND OK.
SELECT-OPTIONS mat for mara-matnr.
SELECTION-SCREEN : END OF SCREEN 900.
call SCREEN 900.
2010 Sep 24 7:59 AM
hi abapuser
The push button is coming before select option when i interchange as u said. I need to display select option first and push button next .
2010 Sep 24 8:02 AM
2010 Sep 24 7:56 AM
2010 Sep 24 7:58 AM
remove that call screen or at least code some event before it.
the statement is in the middle of nirvana, tho i wonder it makes problems when its never reached.
2010 Sep 24 7:59 AM
Hi,
Instead Try like this,
TABLES MARA.
DATA:BEGIN OF WA,
MATNR LIKE MARA-MATNR,
ERNAM LIKE MARA-ERNAM,
END OF WA.
DATA ITAB LIKE TABLE OF WA.
SELECTION-SCREEN : BEGIN OF SCREEN 900 AS WINDOW.
SELECTION-SCREEN BEGIN OF BLOCK BL1.
SELECT-OPTIONS MAT FOR MARA-MATNR.
SELECTION-SCREEN END OF BLOCK BL1.
SELECTION-SCREEN PUSHBUTTON /10(3) MAT2 USER-COMMAND OK.
SELECTION-SCREEN : END OF SCREEN 900.
CALL SELECTION-SCREEN '900'.
2010 Sep 24 8:02 AM
2010 Sep 24 8:01 AM
Hi,
The Error is because of PUSH Button is Overlapping, Check the Bellow Code this will Solve out.
SELECTION-SCREEN : BEGIN OF SCREEN 900 AS WINDOW.
SELECT-OPTIONS mat FOR mara-matnr .
SELECTION-SCREEN PUSHBUTTON 83(3) mat2 USER-COMMAND ok.
SELECTION-SCREEN : END OF SCREEN 900.
Thanks and Regards,
Faisal
2010 Sep 24 8:45 AM