Saturday, 2 June 2012

Basic Programming Guide Lines to be followed

What is the use of it ? 


Whenever we are developing any report we have to follow certain terminologies(it's not must but for best practice and professionals follow this). So, that it will be helpful for us in future to make any changes. Also, it will be helpful for fellow mates to understand the whole purpose of the report and in future it will be helpful for them to make changes.


Basis Guidelines:


-> Always use comment lines *&----------&*
Before developing the report at the top mention the purpose of the report.
Like:
*& The purpose of this Report is to fetch &*
*& Data from MARA Table                      &*  
Report ZMARA.


While declaring Internal Tables, Work areas specify the table names.
Like: 
*// Internal Table to hold MARA fields
DATA: IT_MARA TYPE STANDARD TABLE OF TY_MARA.


Write comments for every field.
Like:
*// Types declaration for MARA Table //*
Types: Begin of ty_mara,
            matnr type mara-matnr    "Material Number
            ersda  type mara-ersda     "Created On
            End of ty_mara.
Also, please use comment lines before declaring any functionmodules etc.
---------------------------------------------------------------------------------
NOTE: The above mentioned data is according to my understanding and knowledge.


If you want to add anything please leave comments. So, that it will be helpful for the readers.
Thanks.



   



No comments:

Post a Comment