Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

F4 Help in table control with Custom GUI Status problem

Former Member
0 Likes
1,107

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 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

4 REPLIES 4
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
883

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

Read only

Pawan_Kesari
Active Contributor
0 Likes
883

what is code in MODULE status_0100?

Read only

Former Member
0 Likes
883

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

Read only

0 Likes
883

Great it helped me today. Deleting reserved function keys F4 enabled the input help to work.