Skip to Content
0
Former Member
Mar 27, 2008 at 07:21 AM

selection screen help !

51 Views

HI Gurus !

on selection-screen , i have

Reservation : _____________

Item No : ______________

when user types resvervation no . eg : 125 then when user press f4 - help on Item no it shud display item corresponding to 125.

i have write this code .

AT SELECTION-SCREEN ON VALUE-REQUEST FOR itemno-low.

perform itemvalue.

  • RE_RENUM is selection field for reservation

form itemvalue.

select RSNUM rspos into corresponding fields of table it_help from resb

where RSNUM in RE_RENUM.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

  • DDIC_STRUCTURE = ' '

RETFIELD = 'RSPOS'

  • PVALKEY = ' '

DYNPPROG = sy-repid

DYNPNR = sy-dynnr

DYNPROFIELD = 'RESB-RSPOS'

  • STEPL = 0

WINDOW_TITLE = 'Item No'

  • VALUE = ' '

VALUE_ORG = 'S'

  • MULTIPLE_CHOICE = ' '

  • DISPLAY = ' '

  • CALLBACK_PROGRAM = ' '

  • CALLBACK_FORM = ' '

  • MARK_TAB =

  • IMPORTING

  • USER_RESET =

TABLES

VALUE_TAB = it_help

  • FIELD_TAB =

  • RETURN_TAB =

  • DYNPFLD_MAPPING =

  • EXCEPTIONS

  • PARAMETER_ERROR = 1

  • NO_VALUES_FOUND = 2

  • OTHERS = 3

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

endform. "itemvalue