02-11-2018 3:05 AM
i a screen i have four push buttons, on click of each pushbutton a different tap strip with nested tabs gets appeared. But the problem is in the nested tab strips i am unable to get the ok code from sy-ucomm because of which my active strip is getting to first tab strip by default i press enter...can any body please suggest some solution in fixing the problem.
02-12-2018 6:24 AM
I am calling the sub-tabs ( ie nested tabstrips ) from the sub screen from the main screen. The subscreen does not have a ok code , the sy-ucomm is getting populated with the pushbuttons function code instead of tabs.
02-12-2018 6:25 AM
I am calling the sub-tabs ( ie nested tabstrips ) from the sub screen from the main screen. The subscreen does not have a ok code , the sy-ucomm is getting populated with the pushbuttons function code instead of tabs.
02-12-2018 7:35 AM
As subscreens don't manage an ok_code, you should manage the ok_code in the main screen (Enhancement spots or BAdI if standard)
If not applicable, a common way to get around this problem is manage of sy-ucomm in a subscreen PAI (hoping the subscreen PAI is executed before the AT USER-COMMAND in the main PAI logic, this is most often the case) But conduct extensive testings as sometimes you will be required to clear the main ok_code once sy-ucomm was handled to prevent some error message (invalid ok_code) or even dump. (cl_gui_cfw=>set_new_ok_code)