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

Call Screen statement

Former Member
0 Likes
1,297

Dear all

I m trying to create an dialog program. I hv designed the screen with all attriburtes and screen number is 0100.

but when i write the following code

call screen 100.

it giving an error msg. " Statement is not accessible"

Can any one help me in this.

Regards,

Maverick

8 REPLIES 8
Read only

Former Member
0 Likes
708

Hi,

Where are you calling the screen from?

Regards,

Nick

Read only

0 Likes
708

From ABAP program

Read only

0 Likes
708

What sort of ABAP program? In what context?

And if this screen is the first dialog, can you not assign it direct to a transaction code?

Regards,

Nick

Read only

0 Likes
708

Hi,

If you are trying to call a screen from another screen in module pool program then you can refer the code below.

module USER_COMMAND_1000 input.

  CASE sy-ucomm.
    WHEN 'F_DEPOSITS'.
      CALL SCREEN 1001.
    WHEN 'F_LOANS'.
      CALL SCREEN 1002.
    WHEN 'F_CARDS'.
      CALL SCREEN 1003.
    WHEN 'F_INVESTMENTS'.
      CALL SCREEN 1004.
  ENDCASE.

endmodule.                 " USER_COMMAND_1000  INPUT

In a report program you can call it in START OF SELECTION.

Thanks,

Sri.

Read only

0 Likes
708

Dear All

sorry to ask but can anyone pls provide some study material on dialog programming with proper example.

Regards,

Maverick

Read only

Former Member
0 Likes
708

Hi ,

<B>

Please check the module that where you calling the screen.

you have to call the screen from the PAI only i.e. MODULE USER_COMMAND_8000 INPUT.

<B>

thanks

Arun

Read only

Former Member
0 Likes
708

Hi,

Usually 'Statement is not accessible' error comes when

Some abap statement or command is written after

Form Endform statements.

Try writing them above those statements.

Hope it helps

Regards

Mansi

Read only

sravya_ch
Participant
0 Likes
708

Hi Maverick44

Try in this way : when we are working with dialog programming always remember this points sure we will get the output.

1. the programe name starts with SAPMYNAME OF PROGRAM(EX: SAPMY_COUNTING1_SRA)

2. if it is a main Screen start with any four dight number (1000-9999)

3. give the short text for the screen

4. In element list give ok code double click on that when u do that for first time that programe will be locked go to sm12 releave the lock double click on okcode once again write :(DATA OKCODE LIKE SY-UCOMM. )

till here if it is doen perfectly then u call call it sure it will work.

I hope study materials will not help us to do developments we should learn from some one first and then if you work hard on this it will become easy .

Sravya