Skip to Content
0
Former Member
Jun 12, 2013 at 09:06 AM

ALV OOPS - Calling same program again with same selection screen

47 Views

Hello Experts,

I have an Grid ALV created in OOPS.

Now, i have created a button on the application toolbar of the ALV for refreshing the vales. (i.e. Some fields were changed after calling a change transaction and i need to refresh my internal table to get them displayed)

So, on handle_user_command event for the ALV,

i have the following coding,

CASE e_ucomm.

WHEN 'REFRESH_GRID'.

SUBMIT ztest USING SELECTION-SETS OF PROGRAM 'ztest'.

ENDCASE.

Now, my report is being called and executed but select-options are not being used, hence ALV is displayed blank.

I have also tried :

SUBMIT ztest WITH p_id = p_id VIA SELECTION-SCREEN.

(P_ID is the only parameter i have on my selection-screen)

Then report is being and selection screen is automatically filled but how can i make it to execute as well.

I tried

CALL FUNCTION 'SAPGUI_SET_FUNCTIONCODE'

EXPORTING

functioncode = 'ONLI'.

But it does not work.

Help Appreciated.

Regards,

Rajat Bothra