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

PROCESS ON VALUE-REQUEST - my table to display

massimo_sforza
Participant
0 Likes
482

Hi all,

this is my question:

on value request i want to display a window with my personal values of an internal table and choose one of them (like an help).

field11 | field11 | field13

field21 | field22 | field23

field31 | field32 | field33

field41 | field42 | field43

How to do this?

thanks a lot

Regards.

Massimo

4 REPLIES 4
Read only

Former Member
0 Likes
458

Hi Massimo ,

You can use the FM POPUP_WITH_TABLE_DISPLAY.

Hope this helps.

Regards

Arun

Read only

Former Member
0 Likes
458

use the Function module F4IF_INT_TABLE_VALUE_REQUEST.

you need to pass an internal table to this FM whose values you want to display on pressing F4. along with that, you need to pass the program name, screen number and the screen field name to the function module.

Read only

Former Member
0 Likes
458

hI,

refer this sample e.g.:

F4 help – using internal table example:

DATA: BEGIN OF LI_FABGRP OCCURS 0,
FABGRP LIKE ZAPO_FABGRP-FABGRP,
BEGDA LIKE ZAPO_FABGRP-BEGDA,
END OF LI_FABGRP.

DATA : T_RETURN TYPE STANDARD TABLE OF DDSHRETVAL WITH HEADER LINE,
L_RETFIELD TYPE DFIES-FIELDNAME.

parameters : S_FABGR like ZAPO_FABGRP-FABGRP.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_FABGR.

SELECT FABGRP BEGDA FROM ZAPO_FABGRP INTO table LI_FABGRP.

SORT LI_FABGRP BY FABGRP ASCENDING BEGDA DESCENDING.

* Henter de mulige fabriksgrupper med nyeste BEGDA *indenfor hver
DELETE ADJACENT DUPLICATES FROM LI_FABGRP COMPARING FABGRP.

L_RETFIELD = 'FABGRP'.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = L_RETFIELD
DYNPPROG = SY-REPID
DYNPNR = '1000'
DYNPROFIELD = 'S_FABGR'
VALUE_ORG = 'S'
MULTIPLE_CHOICE = ' '
TABLES
VALUE_TAB = LI_FABGRP
RETURN_TAB = T_RETURN
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3.

Jogdand M B

Read only

0 Likes
458

fantastic... thanks to all !!!

Best Regards

Massimo.