‎2009 Jul 21 4:23 PM
Hello SAP Seniors,
This might be a simple question. please excuse me for my inexperience with ABAP.
I am working in MV45AFZZ program.
perform zprice_update. (custom subroutine).
In between form zprice_update and endform. there are several data declarations whch are more than 100 lines.
to aviod confusion, can I add a include program and copy all the data declaration in this include.
example ..
form zprice_update.
Data : yyyyy
xxxxxx
tttttt
ppppp
iiiii.
logic ..
endform.
Noe I want to change. it as
form zprice_update.
include : zdata. (and in zdata include< i want to copy all the data declations).
logic ..
endform.
Is this method right ??
Thank you all
Anitha
‎2009 Jul 21 4:30 PM
‎2009 Jul 21 4:30 PM
‎2009 Jul 21 4:30 PM
Not a bad idea. But SAP is not recommending to have INCLUDES. So please dont do that. Leave them as it is.
Thanks
Kiran
‎2009 Jul 21 4:31 PM
‎2009 Jul 21 4:38 PM
Hi,
I donot think that SAP do not Recommend INCLUDE.
Even I do coding the same way, but for global Variable and not for Subroutine variable.
Thanks & Regards,
‎2009 Jul 21 4:51 PM
It was told by SAP at one of the ASUG meetings that they are not going to support INCLUDES henceforthe and they would probably support for the now existing once.
For your verification, if you are on a new editor? you double click on the INCLUDE statement of yours and it would navigate to the INCLUDE Program. This proves.
Thanks
Kiran
‎2009 Jul 21 8:22 PM
Thank you for all person who answered my question and who viewed this question.
I am going to close this thread. My conclusion is not to use include for data declaration within perform statement.
Thank you.
Anitha.