Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Parameters and Selection-Option

Former Member
0 Likes
1,611

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

9 REPLIES 9
Read only

Former Member
0 Likes
1,305

It can be the Naming Convention that u have to follow while coding

Read only

Former Member
0 Likes
1,305

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.

Read only

Former Member
0 Likes
1,305

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.

Read only

Former Member
0 Likes
1,305

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.

Read only

Former Member
0 Likes
1,305

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.

Read only

Former Member
0 Likes
1,305

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

Read only

0 Likes
1,305

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

Read only

0 Likes
1,305

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

Read only

0 Likes
1,305

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.