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: 

Extremly urgent

Former Member
0 Kudos

Hi

i want to create F4 help on the selection screen.

But i want that on that f4 help should come values like z1, z2,z3...... which do not refer to any table.

just hard coded values on f4 help.

how to do that????

2 REPLIES 2

Former Member
0 Kudos

hi check this..

*--create a z table with fields pernr like pa0002-pernr

  • vorna like pa0002-vorna

  • nachn like pa0002-nachn

  • and create entries for the table

report message-id zmsf.

tables:zzz000000 ,DFIES.

DATA: BEGIN OF itab OCCURS 0,

pernr like pa0002-pernr,

vorna like pa0002-vorna,

nachn like pa0002-nachn,

END OF itab.

DATA : LT_FIELDS TYPE TABLE OF DFIES,

LS_FIELD TYPE DFIES.

PARAMETER: pernr LIKE pa0002-pernr .

AT SELECTION-SCREEN ON VALUE-REQUEST FOR pernr.

select pernr

vorna

nachn

from zzz000000

into table itab .

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

RETFIELD = 'PERNR'

DYNPPROG = sy-cprog

DYNPNR = sy-dynnr

DYNPROFIELD = 'PERNR'

VALUE_ORG = 'S'

TABLES

VALUE_TAB = itab

FIELD_TAB = LT_FIELDS .

start-of-selection.

select pernr

vorna

nachn

from zzz000000

into table itab

where pernr = pernr.

loop at itab.

write:/ itab-pernr,

itab-vorna,

itab-nachn.

endloop.

regards,

venkat

Former Member
0 Kudos

look into FM F4IF_FIELD_VALUE_REQUEST

additionally.. AT SELECTION-SCREEN ON VALUE-REQUEST FOR psel_low_high