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

dropdown in table element using webDynpro for ABAP

Former Member
0 Likes
531

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.

1 ACCEPTED SOLUTION
Read only

athavanraja
Active Contributor
0 Likes
502

for webdynpro for ABAP related questions use the WDA forum at

5 REPLIES 5
Read only

Former Member
0 Likes
502

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.

Read only

0 Likes
502

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

Read only

athavanraja
Active Contributor
0 Likes
503

for webdynpro for ABAP related questions use the WDA forum at

Read only

Former Member
0 Likes
502

done.

Read only

0 Likes
502

let me know how you managed it .

Thanks.