‎2007 Jun 29 10:19 AM
Hi,
I hav created a module pool program and in the TOP include i have declared Input1 , Input2 and Result(output).
Then in TOP , declared data :ok_code like sy-ucomm,
save_code like ok_code.
Here its getting activated in TOP.
Then when i m going to PAI and writing
save_code = ok_code.
clear ok_code.
CASE OK_CODE.
when 'ADD'.
Result = Input1 + Input2.
endcase.
So i m getting error statement is not accessible.
Frnds plzz help regarding this.
Thanking u all.
regards,
suraj
‎2007 Jun 29 10:22 AM
try to use
<b>start-of-selection.</b>
call screen 100.
module pai input.
endmodule.
it may help ...
regards
shiba dutta
‎2007 Jun 29 10:22 AM
try to use
<b>start-of-selection.</b>
call screen 100.
module pai input.
endmodule.
it may help ...
regards
shiba dutta
‎2007 Jun 29 10:24 AM
I think the error is in the line
CASE OK_CODE
Because you are clearing the field (ok_code) in previous statement.
If you rmove the line 'clear ok_code.' your code should work.
‎2007 Jun 29 10:27 AM
HI,
In the PAI i Hope you have written the code in module.
That is the flow logic can only have MODULE and some other statements.
You should put your code in the module.
Also can you tell us where exactly it ponits when you get this error.
Regards,
Sesh
‎2007 Jun 29 10:33 AM
what error u r getting????
u r assigning ok_code to save_code.
so u have to use
case SAVE_CODE not case OK_CODE.
Anyway this will not give syntax error. send me wht error u r getting????
Regards,
Nikhil
‎2007 Jun 29 10:43 AM
Hi Nikhil,
I am getting error statement is not accessible.
Plz clarify.
regards,
suraj
‎2007 Jun 29 10:45 AM
have you used <b>start-of-selection</b> and after that call screen and module pai i.e. as stated by my previous thread ? What error you are getting ? same? if so please paste your full code...
regards
shiba dutta
‎2007 Jun 29 10:48 AM
Hi,
I think you have written the code outside the module statement.Or else it might be partial activation.So try to activate whole module pool program by double clicking on the program name and the right click and activate.If it is still not solved paste the full code here.
‎2007 Jun 29 10:59 AM
Hi,
may be u have defined some subroutines inside those includes.
the statements u have written after the statements form....endform will not be accessed.
so write start-of-selection statement after those include programs.
rgds,
bharat.
‎2007 Jun 29 11:04 AM
hi suraj,
in your code ur assigning ok_code data to save_code and clearing ok_code. its fine upto there. but again ur using ok_code whose data is cleaerd its not correct.
in this case if u wanna clear ok_code then use save_code in case SELECTION CONDITION SATEMENT or clear value of ok_code after case statement.
save_code = ok_code.
clear ok_code. [ then try like this]
CASE SAVE_CODE. or case ok_code. [ if u wanna use then clear ok_code after case statement]
when 'ADD'.
Result = Input1 + Input2.
endcase.
[clear ok_code].
if helpful reward some points.
regards,
SURESH.A