Application Development 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: 

F4 help getting replaced by adjacent field

former_member636068
Participant
0 Kudos
84

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos
37

Hi Ashmita,

I think you can use RETURN table to update the field.


read table it_return index 1.
<screen-fld> = it_return-fieldname.

thanks,

Anmol.

1 REPLY 1

Former Member
0 Kudos
38

Hi Ashmita,

I think you can use RETURN table to update the field.


read table it_return index 1.
<screen-fld> = it_return-fieldname.

thanks,

Anmol.