‎2009 Oct 21 1:01 PM
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
‎2009 Oct 21 1:07 PM
‎2009 Oct 21 1:09 PM
‎2009 Oct 21 1:11 PM
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
‎2009 Oct 21 1:16 PM
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 INPUTIn a report program you can call it in START OF SELECTION.
Thanks,
Sri.
‎2009 Oct 21 1:18 PM
Dear All
sorry to ask but can anyone pls provide some study material on dialog programming with proper example.
Regards,
Maverick
‎2009 Oct 21 1:10 PM
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
‎2009 Oct 21 1:14 PM
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
‎2009 Oct 21 1:20 PM
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