04-22-2014 4:13 AM
Hi,
I want to call a function code at the screen PAI and CL_GUI_CFW=>SET_NEW_OK_CODE didn't work. Are there other methods available?
Best regards,
ts
04-22-2014 5:02 AM
Hi ,
I think you need to use another CL_GUI_CFW=>FLUSH along with SET_NEW_OK_CODE .
CALL METHOD cl_gui_cfw=>set_new_ok_code
EXPORTING
new_code = 'DUMMY'. "<<==-- Here you put the OKCODE that you want to dispatch
* A flush is required to trigger the refresh
CALL METHOD cl_gui_cfw=>flush.
04-22-2014 5:29 AM
04-22-2014 10:02 AM
The method doesn't exist in the an event handler of ALV but in PAI of the program.
04-22-2014 1:26 PM
Hi,
You want to change the sy-ucomm field and want to perform some function?
on screen you have ok_code of type sy-ucomm in which you are getting the fcode, and you want to change its value on some logic or anything, you can do through code as well and can change the value of variable ok_code in PAI.
Thanks,
Dharmishta