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 screen

Former Member
0 Likes
1,420

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
Read only

Former Member
0 Likes
1,380

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
Read only

Former Member
0 Likes
1,380

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.

Read only

0 Likes
1,380

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.

Read only

0 Likes
1,380

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.

Read only

former_member188827
Active Contributor
0 Likes
1,380

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.

Read only

0 Likes
1,380

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 .

Read only

0 Likes
1,380

then try what jagarnath has suggested..it works

Read only

former_member188827
Active Contributor
0 Likes
1,380

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

Read only

Former Member
0 Likes
1,380

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.

Read only

Former Member
0 Likes
1,381

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

Read only

0 Likes
1,380

Thanks jaganathan. now its working

Read only

faisalatsap
Active Contributor
0 Likes
1,380

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

Read only

Former Member
0 Likes
1,380

My pleasure...