Application Development 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: 

WHEN WE USE QUOTATIONS LIKE ' '

Former Member
0 Kudos

Hi,

When we use quotation like ' ' that means 'M-ELEMENT' & without quotations like M-ELEMENT . What perpouse we use this quotation(' ')...

Thanks

samba

6 REPLIES 6

Former Member
0 Kudos

i am not sure about in which context are you asking this but

' ' by this we give a hard coded value to a field not to select it from database , it should be by default same kind of.

without ' ' is just opposite hope i answer your question

also if not please elaborate with the point

thnkx

bhanu

0 Kudos

Hi bhanu,

This is in the Functional Module context. example 'SY-REPID' like that..

Thanks

samba

0 Kudos

quotes are necessary when you want to pass(or assign) the constatnt value to a parmeter(or variable).

suppose my program name is ZSPD.

now in fn module one prameter repid is there which will take the program name.

here we have to pass

repid = 'ZSPD' <always in caps>

or

if you want without qoutes..

data : vrepid like sy-repid value 'ZSPD'.

repid = vrepid.<without quotes since vrepid is a variable>.

you can use system variable also for this requirement.

when your program is running sy-repid system variable containing the value 'ZSPD'

since sy-repid is also a variable in this case you have to pass like

repid = sy-repid <without quotes>

regards

shiba dutta

Former Member
0 Kudos

(' ') is used with in stmt..

For eg

select matnr maktx into table itab where matnr in ( '1234' , '4567').

This select gives description of both material 1234 and 4567

Pls reward if useful

Former Member
0 Kudos

'm-element' this is for constant or some assign value to a variable.

m-element : this is a defined variable that may conatain differnt values.

Please rewards if it is helpful.

Regards,

Mohit

Former Member
0 Kudos

Hi,

The concept of ' ' is for the Char type if you need to pass the variable with the case sensitive then pass it by means of single quote.

When you need to pass the value ... foe eg. if you need to pass the internal table value then you cant use the single quote for that.

If you need to pass the char you can send it with the single quote.

Reward points if it is useful.

Thanks,

Yogesh