Skip to Content
0
Oct 28, 2010 at 12:29 PM

F4 help getting replaced by adjacent field

23 Views

HI all,

I have written a code for F4 help for a view. I cant use search help due to some reason.

below is my code.

PROCESS AFTER INPUT.
 MODULE LISTE_EXIT_COMMAND AT EXIT-COMMAND.
 MODULE LISTE_BEFORE_LOOP.
 LOOP AT EXTRACT.
   MODULE LISTE_INIT_WORKAREA.
   CHAIN.
    FIELD ZBUCACTMAP_MAST-BUC_ID .
    FIELD ZBUCACTMAP_MAST-ACT_ID .
    FIELD ZBUCACTMAP_MAST-BUC_DESC .
    FIELD ZBUCACTMAP_MAST-ACT_DESC .
    MODULE SET_UPDATE_FLAG ON CHAIN-REQUEST.
   ENDCHAIN.
   FIELD VIM_MARKED MODULE LISTE_MARK_CHECKBOX.
   CHAIN.
    FIELD ZBUCACTMAP_MAST-BUC_ID .
    FIELD ZBUCACTMAP_MAST-ACT_ID .
    MODULE LISTE_UPDATE_LISTE.
   ENDCHAIN.
 ENDLOOP.

 MODULE LISTE_AFTER_LOOP.
   PROCESS ON VALUE-REQUEST.
 FIELD ZBUCACTMAP_MAST-BUC_ID MODULE F4_HELP.

MODULE F4_HELP INPUT.
DATA: BEGIN OF LT_SELECTED OCCURS 0.
          INCLUDE STRUCTURE DDSHRETVAL.
  DATA: END OF LT_SELECTED.
  DATA: BEGIN OF ITAB OCCURS 0,
        BUC_ID LIKE ZBUCKET_MASTER-BUC_ID,
        BUC_DESC LIKE ZBUCKET_MASTER-BUC_DESC,
        END OF ITAB.
  SELECT BUC_ID BUC_DESC FROM ZBUCKET_MASTER
     INTO CORRESPONDING FIELDS OF TABLE ITAB WHERE BUC_ID NE SPACE.

  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
*     DDIC_STRUCTURE         = ' '
      RETFIELD               = 'ITAB-BUC_ID'
     DYNPPROG               = SY-REPID
     DYNPNR                 = SY-DYNNR
     DYNPROFIELD            = 'ZBUCACTMAP_MAST-BUC_ID'
     WINDOW_TITLE           = 'BUCKET ID'
     VALUE                  = ' '
     VALUE_ORG              = 'S'
     DISPLAY                = 'F'
    TABLES
      VALUE_TAB              = ITAB
     RETURN_TAB             = LT_SELECTED
            .
ENDMODULE..

it displays the id as well as discription on F4. but when i select id it is replaced by description.

plz help. Why is dis so?

Thanks N regards,

Ashmita Singh

Edited by: Ashmita Singh on Oct 28, 2010 2:30 PM

Moderator message: please use more code tags and less SMS speak.

Edited by: Thomas Zloch on Oct 28, 2010 3:08 PM