2009 Aug 05 9:56 AM
Hi guys,
I just wondering about the P_ xxxx, I_xxxx and R_xxxx what else? and is there a meaning on that? P stand for what?
Best regards,
Johns
Hi guys,
I just wondering about the P_ xxxx, I_xxxx and R_xxxx what else? and is there a meaning on that? P stand for what?
Best regards,
Johns
2009 Aug 05 9:57 AM
It can be the Naming Convention that u have to follow while coding
2009 Aug 05 10:00 AM
Hi,
These are the naming conventions.It varies from company to company ,client to client.
GENERALLY
p_XXX is parameter
s_XXX is select option
r_xxx is range
l_xxx is local variable
g_xxx is global variable
c_xxx for constants
it_xxx for internal table
wa_xxx for work area.
And MANY MORE........
Regards,
Vimal.
2009 Aug 05 10:00 AM
Hi,
Some of the common (prgramming) standards:
P_ for parameters
s_ for select options
gv_ for global variables
lv_ for local variables
pv_ for passed variables in forms
gt_ for global itabs
lt_ for local itabs
gs_ for global structures
ls_ for local structures
co_ for constants
Regards,
Raju.
2009 Aug 05 10:02 AM
HI Sojhons,
To over come confusion select options and parameters are usind like S_xxx for select options and P_xxxxx for Parameter.
That's it. It's just naming convention.
Hope this clear's your doubt.
Thank you,
Pavan.
2009 Aug 05 10:15 AM
Hi,
All these are standard naming conventions.
P stands for Paramater.
S Stands for Select Options.
Similarly there are many naming conventions like this.
Thank You.
Regards,
Dhanalakshmi.
2009 Aug 05 11:29 AM
Hi,
These are just naming conventions to be followed for declarations. Some of the commonly used naming conventions are :
p_XXX : for declaring parameters
s_XXX or so_XXX: for declaring select option
r_xxx or ra_XXX : for declaring range
c_xxx or co_XXX : for declaring constants
l_xxx : for declaring local variable
g_xxx : for declaring global variable
ls_XXX : for declaring local structures
gs_XXX : for declaring global structures
it_xxx :for declaring internal table
wa_xxx : for declaring work area.
here, 'XXX' can be replaced by a meaningful name for the decaration.
Hope this helps.
Rgds,
Lakshmi
2009 Aug 05 1:30 PM
HI,
This are all for easy understanding abt the coding. it may very from company to company or client to client and also person from person.
while declaring parameters for easy understanding we create the variable as P_<name> for select-options : s_<name>, Range : r<name>, local variable L_<name> internal table itab_<name> like that
2009 Aug 07 2:30 AM
Hi guys,
If that the case of naming conversation, just wondering how can I know, what to use?
p_XXX : for declaring parameters
s_XXX or so_XXX: for declaring select option
r_xxx or ra_XXX : for declaring range
c_xxx or co_XXX : for declaring constants
l_xxx : for declaring local variable
g_xxx : for declaring global variable
ls_XXX : for declaring local structures
gs_XXX : for declaring global structures
it_xxx :for declaring internal table
wa_xxx : for declaring work area.
Best regards,
Johnson
2009 Aug 07 4:51 AM
Hi,
It's so simple i will explain you.
If in your requirement you need to create a parameter you need to create with P_PARAMETER NAME
like that for everything.
For a select option S_selectoption name
work area wa_ work area name
internal table it_ internaltable name.
just replace XXXX with The required names that's it.
p_XXX : for declaring parameters
s_XXX or so_XXX: for declaring select option
r_xxx or ra_XXX : for declaring range
c_xxx or co_XXX : for declaring constants
l_xxx : for declaring local variable
g_xxx : for declaring global variable
ls_XXX : for declaring local structures
gs_XXX : for declaring global structures
it_xxx :for declaring internal table
wa_xxx : for declaring work area.
Using in this way will help you understand better what are the declerations and what you had created when someone else see your code. That;s it.
Hope it clears.
Thank you,
Pavan.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |