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: 

problem with dropdown list

Former Member
0 Kudos

hi there,

i have here a scenario, i have two drop down list, what happen is when i load the report,

the second dropdown is processing, which cause a hang time, i put the process AT SELECTION-SCREEN OUTPUT.

is this just normal, i see that the table retrieves a thousands of values.

thanks aud,,

3 REPLIES 3

Former Member
0 Kudos

HI,

please view the example.

Program: DEMO_DYNPRO_DROPDOWN_LISTBOX

you have the same, but if i dont understand please give some examples...

Reguards,

Miguel

PS: If awser your question, dont forget do give the points..

0 Kudos

actually, i was able to do the dropdown with values now, my only concern is when i tried loading the report

the select in my second drop down is processing, hence causes a hang up time, since data in table is close to thousand,

is this normal? or i had the code misplaced?

thanks for that though.

0 Kudos

Declare your parameter AS LISTBOX.

Then in the INITIALIZATION, build your drop down internal table as below:

DATA: i_vrm TYPE vrm_values,

wa_vrm LIKE LINE OF i_vrm,

g_name TYPE vrm_id.

REFRESH: i_vrm.

g_name = 'P_PERIOD'. -


> Your PARAMETER name

wa_vrm-key = 'A'.

wa_vrm-text = 'Today'.

APPEND wa_vrm TO i_vrm.

CLEAR: wa_vrm.

wa_vrm-key = 'B'.

wa_vrm-text = 'Key Date'.

APPEND wa_vrm TO i_vrm.

CLEAR: wa_vrm.

CALL FUNCTION 'VRM_SET_VALUES'

EXPORTING

id = g_name

values = i_vrm

EXCEPTIONS

id_illegal_name = 1

OTHERS = 2.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

Hope this helps.

Regards,

Kiran