Skip to Content

F4 help getting replaced by adjacent field

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 28, 2010 at 01:21 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.