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: 

ERROR IN ALV USING FM

Former Member
0 Kudos

I used "reuse_alv_grid_display".

In my report.I got error

statement is not accessible.

kindly correct my error.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Saritha,

Check whether you have written any statements after FORM..

ENDFORM.

and check also the events in your report.

Thanks ,

Surya Pydikondala.

6 REPLIES 6

Former Member
0 Kudos

may be start-of-selection event is missing its better to paste the code

0 Kudos

hi k.p.n,

mistake is not due "reuse_alv_grid_display".

Even i tried to display my

name with write statement.I got

same error.

Could you please find out my error.

regards,

nilesh.

0 Kudos

You share the code, so that we can help where the error is

Former Member
0 Kudos

Hi Saritha,

Check whether you have written any statements after FORM..

ENDFORM.

and check also the events in your report.

Thanks ,

Surya Pydikondala.

0 Kudos

Hi surya,

Thanks for your reply.my problem is solved after inserting

any statement in side subroutine.

my coding from start-of-selection

1) PERFORM UPLOAD.

2) select query

3) again select query

4) PERFORM AGGREGATE.

6) SELECT query

7) loop.

😎 PERFORM COMPARE.

My question:

previously, I wrote "REUSE_ALV_GRID_DISPLAY"

after ENDFORM. " COMPARE. I could not access any statement.

Know i inserted grid f.m in

PERFORM ALV.and it is working.

could please explain.Reason briefly

regards,

saritha.

0 Kudos

Basically, ALL of your FORM definitions should always be last in your source code, have things after the ENDFORM statements, causes the issue that you are seeing, you can either embed this call in another FORM, or simply put the function call at the end of your START-OF-SELECTION, and just before your first FORM statement.

REgards,

Rich Heilman