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

Sy-Repid

Former Member
0 Likes
668

Hi,

In Reuse_alv_grid_display why not i use the sy-repid directly. Why always i've to assign in to a variable?

Thans & Regards,

Abhijit

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
624

Hi,

Its not necessary to assign report id with the help of another variable. U can use sy-repid directly...

Hi,

Its not necessary to assign report id with the help of another variable. U can use sy-repid directly...

4 REPLIES 4
Read only

Former Member
0 Likes
624

Hi,

Check the I_CALLBACK_PROGRAM Field documentation in the FM..

Read only

Former Member
0 Likes
625

Hi,

Its not necessary to assign report id with the help of another variable. U can use sy-repid directly...

Read only

0 Likes
624

But It has been cautioned in different materials.

Read only

0 Likes
624

Hi

SY-REPID has the name of the current program, so it has the name of the main program of the function group into the function of ALV.

If you use SY-REPID, it'll change the value as soon as the fm ALV is called: the value will be from your report name to main program name: the risk was the value of import parameter I_CALLBACK_PROGRAM parameter was changed too.

Max