‎2007 May 31 6:32 AM
Hi ,
I have a query that can we write report events in an Include program..
My problem is i hav few include programs and when i activating an include program its giving an error is statement is not accessible...
Actually the error is at TOP Include where there cursor goes to a select statement
so wht i did is i hav put "start-of-selection" in the TOP and it became syntactically correct.. can anyone plzz help me that wht i hav done correct or not.
Thanking u all.
regards,
sanjay
‎2007 May 31 6:38 AM
Hi,
you can use events in includes also.
What you have done is correct.
earlier you were getting error because yuo declared something in TOP and using that in main program before activating it.
you can use this also try to activate top and main program together,i think that wil work.
regards,
sudha.
reward points if helpful.
‎2007 May 31 6:34 AM
it is correct in 2 cases:
1) you do not have any logic in main program.
2) you have specified include in the main program before all ABAP statements(logic part)
‎2007 May 31 6:35 AM
Hi Sanjay,
The events should be in the main program
Reward points if useful.
Regards,
Atish
‎2007 May 31 6:38 AM
Hi,
you can use events in includes also.
What you have done is correct.
earlier you were getting error because yuo declared something in TOP and using that in main program before activating it.
you can use this also try to activate top and main program together,i think that wil work.
regards,
sudha.
reward points if helpful.
‎2007 May 31 6:44 AM
How to activate top and main program togather yaar....
regards,
sanjay
‎2007 May 31 6:46 AM
Hi frnds,
I am getting different views from different people so plzz clarify me with an exact one.. bcoz shuld i use Events in INCLUDES OR NOT...
thanking u all.
regards,
sanjay
‎2007 May 31 6:47 AM
Hi Sanjay,
Go to SE80, give program name , right click on the program, say activate, you will get list of all objects of the program, now Activate
Regards,
Atish
‎2007 May 31 6:49 AM
Sorry for the earlier reply, but you can use the Events in Includes.
Regards,
Atish
‎2007 May 31 6:49 AM
you can do that in 2 cases: <b>(you proved it yourself by avoiding syntax error)</b>
1) you do not have any logic in main program.
2) you have specified include in the main program before all ABAP statements(logic part)
<b>
you can do that if only one program has that include. and if others are sharing the same one then you should keep events in the main programs. </b>
Plz reward points.
‎2007 May 31 6:51 AM
Hi Atish,
Thank u for showing interest . Can u plzz provide any help link where i can get more information regarding this.
regards,
sanjay
‎2007 May 31 6:54 AM
Hi Sanjay,
the best place is help.sap.com and sdn itself.
Let me know what are you exactly looking for so that I can provide you the links.
Reward all useful answers.
Regards,
Atish
‎2007 May 31 6:59 AM
‎2007 May 31 7:03 AM
Hi sanjay,
check below links.
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9a0735c111d1829f0000e829fbfe/content.htm
http://www.sap-img.com/abap/events-related-to-reporting.htm
Regards,
Atish
‎2007 May 31 7:26 AM