Application Development 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: 

error in screen

Former Member
0 Kudos
125

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
85

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'.

12 REPLIES 12

Former Member
0 Kudos
85

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.

0 Kudos
85

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.

0 Kudos
85

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.

former_member188827
Active Contributor
0 Kudos
85

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.

0 Kudos
85

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 .

0 Kudos
85

then try what jagarnath has suggested..it works

former_member188827
Active Contributor
0 Kudos
85

i.e. move select-options after pushbutton statement.

Former Member
0 Kudos
85

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.

Former Member
0 Kudos
86

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'.

0 Kudos
85

Thanks jaganathan. now its working

faisal_altaf2
Active Contributor
0 Kudos
85

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

Former Member
0 Kudos
85

My pleasure...