‎2008 Jan 20 8:01 AM
Hi all !!
Our requirement is like we need a dropdown for a table element.
Means after displaying a table with entries, one field in the record needs to be dropdown.
Please provide the code in WebDynpro for ABAP.
Its urgent. All helpful entries will be rewarded.
Awaiting for early helpful replies.
Thanks,
hema.
‎2008 Jan 20 10:31 AM
‎2008 Jan 20 9:31 AM
Hi,
copy the below code accordingly, in the screen in which u want f4 help as drop down. The below code should be after PAI of dat screen
PROCESS ON VALUE REQUEST.
module f4_help.
module f4_help.
DATA: BEGIN OF ITAB OCCURS 3,
MATNR LIKE MARA-MATNR,
END OF ITAB.
SELECT MATNR UP TO 2 ROWS FROM MARA INTO TABLE ITAB.
CALL FUNCTION 'F4_FIELD_ON_VALUE_REQUEST'
EXPORTING
tabname = 'MARA'
fieldname = 'MATNR'
SEARCHHELP = ' '
SHLPPARAM = ' '
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'MATNO '
STEPL = 0
VALUE = ' '
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
SUPPRESS_RECORDLIST = ' '
CALLBACK_PROGRAM = SY-REPID
CALLBACK_FORM = ' '
SELECTION_SCREEN = ' '
CALLBACK_SELOPT =
TABLES
RETURN_TAB = ITAB
EXCEPTIONS
FIELD_NOT_FOUND = 1
NO_HELP_FOR_FIELD = 2
INCONSISTENT_HELP = 3
NO_VALUES_FOUND = 4
OTHERS = 5
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
end module.
‎2008 Jan 20 9:36 AM
Hi Ravi,
Thanks for the early reply.
but this is not my requirment.
My requirement is:
i have a dropdown in table ui element . before i do a bind_table with context , my dropdown should be loaded.
how to do this ??
pls help me in that way.
Thanks,
Hema.
Edited by: Hema Sundar Munagapati on Jan 20, 2008 10:44 AM
‎2008 Jan 20 10:31 AM
‎2008 Dec 31 4:55 AM
‎2009 Jul 15 8:24 AM