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

having at selection screen on value request inside a method

Former Member
0 Likes
615

method initialize

     AT SELECTION-SCREEN ON VALUE-REQUEST FOR abc.

     me->GET_FILE_NAME_PRESENTATION(

    CHANGING

      abc = abc)

endmethod.

I call the above method as

obj->initialize

changing

abc

I get error as statement endmethod missing.Can we not use at selection-screen statement inside a method?

1 ACCEPTED SOLUTION
Read only

pranay570708
Active Contributor
0 Likes
507

You cannot use ABAP events inside method implementation. First implement your methods, then call your events like below:

method initialize.

--------

endmethod.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR abc.

     me->GET_FILE_NAME_PRESENTATION(

    CHANGING

      abc = abc).

2 REPLIES 2
Read only

jay_kumar8
Active Participant
0 Likes
507

Nope...Put method inside the at SELECTION SCREEN.

Regards

Raj

Read only

pranay570708
Active Contributor
0 Likes
508

You cannot use ABAP events inside method implementation. First implement your methods, then call your events like below:

method initialize.

--------

endmethod.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR abc.

     me->GET_FILE_NAME_PRESENTATION(

    CHANGING

      abc = abc).