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: 

Sy-Repid

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

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

4 REPLIES 4

Former Member
0 Kudos

Hi,

Check the I_CALLBACK_PROGRAM Field documentation in the FM..

Former Member
0 Kudos

Hi,

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

0 Kudos

But It has been cautioned in different materials.

0 Kudos

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