2007 May 15 7:34 PM
Hi all,
I come from a mostly JAVA background. Big emphasis in that arena on encapsulation and modularization of code to help facilitate ease of maintenance and reuse...in theory I sometimes struggle with variable naming conventions within my ABAP code because I'm not all together certain there are any. In C or C++ I might use a derivation of Hungarian notation to name varaibles...and in JAVA I might observe certain object oriented rules regarding varaible naming...I find myself using a combination of those two protocols in my ABAP code. Does anyone have any suggestions for how I might name global and lcoal variables within my code?
regards,
Mat
Hello,
It is usually done by the project standards. Usually it is defined during the beggining. Ask for that document.
Usually is like this:
TI_X for internal tables.
G_X for globlas
T_X for Types
WA_X for work areas
C_X for constants.
P_X parameters, sometimes PI_X for input and PO_X for output.
FS_x for field symbols
etc,
Hope this helps dont forget to reward
Gabriel P.
2007 May 15 7:38 PM
Hi,
For every project there is specific client driven SAP naming convention which needs to be followed for ABAP code.
e.g. say -
for types - TYPE_<NAME>
for internal table T_<NAME>
for global variable GV_<NAME>, etc.
So just follow the convention given by the client.
Still you can check these threads -
Regards,
Amit
2007 May 15 7:48 PM
Hi,
Please check this links perhaps they may help.
http://help.sap.com/saphelp_nw04/helpdata/en/92/c2b084bc1d11d2958700a0c94260a5/content.htm
https://websmp101.sap-ag.de/~sapdownload/011000358700004455192006E/NameConventions.pdf
http://help.sap.com/saphelp_nw04/helpdata/en/2a/6b0b1f547a11d189600000e829fbbd/content.htm
http://web.mit.edu/sapr3/dev/newdevstand.html
Regards,
Ferry Lianto
2007 May 15 8:34 PM
Hello,
It is usually done by the project standards. Usually it is defined during the beggining. Ask for that document.
Usually is like this:
TI_X for internal tables.
G_X for globlas
T_X for Types
WA_X for work areas
C_X for constants.
P_X parameters, sometimes PI_X for input and PO_X for output.
FS_x for field symbols
etc,
Hope this helps dont forget to reward
Gabriel P.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |