Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9164

Re: f4 help events only applicable to standard tables ?

$
0
0

Hi Suneel,

 

Way to implement f4 helps

 

1. Using match code

 

PARAMETERS: P_VBELN LIKE VBAP-VBELN MATCHCODE OBJECT VMVAE.

 

2. Using F4IF_INT_TABLE_VALUE_REQUEST

 

TYPES: BEGIN OF ty_final,
        werks TYPE marc-werks,
        END OF ty_final.

DATA:it_final TYPE TABLE OF ty_final,
      wa_final TYPE ty_final.


DATA: it_return TYPE TABLE OF ddshretval  WITH HEADER LINE.

PARAMETERS: p_werks(10) TYPE c.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_werks.

   SELECT  werks
   FROM marc
   INTO TABLE it_final.
DELETE ADJACENT DUPLICATES FROM it_final.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
     EXPORTING
retfield        = 'WERKS'
dynpprog        = sy-repid
dynpnr          = sy-dynnr
dynprofield     = 'P_WERKS'
value_org       = 'S'
     TABLES
value_tab       = it_final
return_tab      = it_return.

   WRITE: it_return-fieldval  TO p_werks.


Viewing all articles
Browse latest Browse all 9164

Trending Articles