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

ALV

Former Member
0 Likes
409

Hello All,

I am writing a ALV Report.But i got confused where i have to use cotes and where not to use the cotes for the parameters in function modules which we use.

i.e for eg

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_callback_program = <b>sy-repid</b>

....

.....

Can any body explain where exactly i have to use cotes and where i have to use uppercase letters.

thanks and regards

madhravi

1 ACCEPTED SOLUTION
Read only

amit_khare
Active Contributor
0 Likes
392

Hi,

Whenever you are passing any user defined value like variable or some local object name, you have to place it in quotes and upper case e.g. 'USER COMMAND'.

but if you are using any SAP defined object then you have to pass it without quotes, e.g. SY-REPID in this FM.

Regards,

Amit

Reward all helpful replies.

3 REPLIES 3
Read only

Former Member
0 Likes
392

Hi,

the Best way to use PATTERN Tool Available Next to Pretty Painter tab... On righ hand side top in your Editor...

That will take name of Function Module and will give you complete structure of the CALL FUNCTION '.... '.

Hope this will help. Please reward if useful,

Read only

amit_khare
Active Contributor
0 Likes
393

Hi,

Whenever you are passing any user defined value like variable or some local object name, you have to place it in quotes and upper case e.g. 'USER COMMAND'.

but if you are using any SAP defined object then you have to pass it without quotes, e.g. SY-REPID in this FM.

Regards,

Amit

Reward all helpful replies.

Read only

Former Member
0 Likes
392

Hello,

Whenever u r passing the report name to the ALV do like this.

DATA lv_repid like sy-repid.

lv_repid eq sy-repid.

Now pass lv_repid to the ALV Fm.

Vasanth