cancel
Showing results for 
Search instead for 
Did you mean: 

CL_GUI_CFW: SET_NEW_OKCODE SAP-Description confuses?

Former Member
0 Kudos
172

Hi,

I am using the method:

cl_gui_cfw=>set_new_ok_code

to refresh the values within the Main-Dynpro, after the

user has changed some data within a CL_GUI_ALV_GRID-Grid Control.

It works fine. But when I was reading the Description

of the method within the class browser:

"Be Careful: This Sets a new Fcode in Event Handler for PAI"

I was a little bit confused.

Does anybody know what this hint really means?

i suppose it is just a hint, that SY-UCOMM will be

processed in PAI. Thats all and that's what i want. But why should I be careful?

Thanks a lot

Michael

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

You should always be careful when writing programs...

I agree with you that the statement seems a little obvious. Sometimes, though, the translations from German are done literally and the meaning can be distorted a little bit.

I guess if you used the method in your code and everything works ok, then there is nothing really to worry about.

Cheers,

Brad

ssimsekler
Active Contributor
0 Kudos

Hi

I still think it needs some attention that an encapsulated object's method (even it is a class [static] method) changes an attribute of your screen's flow. Nevertheless, I agree that if you have everything on the right way, do not worry about it.

Regards

*--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a>