06-28-2010 1:31 PM
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,,
06-28-2010 5:38 PM
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..
06-29-2010 2:57 AM
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.
06-29-2010 3:20 AM
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