2012 Mar 20 9:41 AM
Hi Experts,
I'm writing a program which calls a screen with a table control in it.In PBO, a custom GUI Status is set. In PAI, there is a PROCESS ON VALUE REQUEST.. FIELD...MODULE.... to set F4 input help in several columns of table control.
The problem that I'm facing is that the input help won't be called if I set the GUI status to custom. The input help works if I do not use the custom GUI status.
Below is my piece of code:
PROCESS BEFORE OUTPUT.
*&SPWIZARD: PBO FLOW LOGIC FOR TABLECONTROL 'ZTC_RETCOMP'
MODULE ztc_retcomp_change_tc_attr.
* MODULE status_0100. ====> Module get_f4_help_scode in PROCESS ON VALUE REQUEST will be called if this statement is commented. The content is only SET PF-STATUS statement
MODULE fill_table_control.
*&SPWIZARD: MODULE ZTC_RETCOMP_CHANGE_COL_ATTR.
LOOP AT i_retcomp
INTO wa_retcomp
WITH CONTROL ztc_retcomp
CURSOR ztc_retcomp-current_line.
MODULE ztc_retcomp_get_lines.
*&SPWIZARD: MODULE ZTC_RETCOMP_CHANGE_FIELD_ATTR
ENDLOOP.
*
PROCESS AFTER INPUT.
*&SPWIZARD: PAI FLOW LOGIC FOR TABLECONTROL 'ZTC_RETCOMP'
LOOP AT i_retcomp.
CHAIN.
FIELD wa_retcomp-item.
FIELD wa_retcomp-seque.
FIELD wa_retcomp-wo_item.
FIELD wa_retcomp-matnr.
FIELD wa_retcomp-descr.
FIELD wa_retcomp-bdmng.
FIELD wa_retcomp-meins.
FIELD wa_retcomp-scode.
FIELD wa_retcomp-qtyrt.
FIELD wa_retcomp-esdat.
FIELD wa_retcomp-acdat.
FIELD wa_retcomp-rfdoc.
MODULE ztc_retcomp_modify ON CHAIN-REQUEST.
ENDCHAIN.
FIELD wa_retcomp-sel_row
MODULE ztc_retcomp_mark ON REQUEST.
ENDLOOP.
MODULE ztc_retcomp_user_command.
*&SPWIZARD: MODULE ZTC_RETCOMP_CHANGE_TC_ATTR.
*&SPWIZARD: MODULE ZTC_RETCOMP_CHANGE_COL_ATTR.
MODULE user_command_0100.
MODULE update_buffer_table.
PROCESS ON VALUE-REQUEST.
FIELD wa_retcomp-scode MODULE get_f4_help_scode.
FIELD wa_retcomp-acdat MODULE get_f4_help_acdat.
Please advise.
Thanks and Regards,
Leo
Hi
I assume it is a custom program only no standard interference. What errror do you get when you use the custom PF status. Have you tried to debug it.
Nabheet
2012 Mar 20 10:35 AM
Hi
I assume it is a custom program only no standard interference. What errror do you get when you use the custom PF status. Have you tried to debug it.
Nabheet
2012 Mar 20 12:21 PM
2012 Mar 21 3:39 AM
Hi All,
Thank you for your replies.
There is no error when I use the custom PF status, it's just that the F4 help function is not called in PROCESS ON VALUE REQUEST. Tried to debug it and confirmed that the cursor go directly to PBO after PAI without executing module in PROCESS ON VALUE REQUEST.
The code in MODULE status_0100 is simply SET PF STATUS 'SCR_0100'. That's all.
I just solved the problem. Apparently it is because of the GUI status reserved function keys F4 is occupied, it should be deleted first. I copied from program SAPLSLVC_FULLSCREEN and forget to delete it. I deleted it and it works perfectly.
Regards,
Leo
2020 Oct 02 9:56 AM
Great it helped me today. Deleting reserved function keys F4 enabled the input help to work.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |