‎2007 May 18 12:57 PM
Hi friends,
I created a selection-screen in se51.in it Based on the template chosen,the drop down box has to be filled
kindly help me out
‎2007 May 18 12:59 PM
Go through the below underlined programs.
Dropdown List Boxes on Screens -- <u>demo_dropdown_list_box</u>
(Using F4IF_INT_TABLE_VALUE_REQUEST )
<u>demo_dynpro_dropdown_listbox</u>
TYPE-POOLS vrm.
DATA: name TYPE vrm_id,
list TYPE vrm_values,
value LIKE LINE OF list.
APPEND value TO list.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'DEMOF4HELP-CONNID'
values = list.
<u><b>Please dont forget to award if useful</b></u>
Sudheer
‎2007 May 18 12:59 PM
Go through the below underlined programs.
Dropdown List Boxes on Screens -- <u>demo_dropdown_list_box</u>
(Using F4IF_INT_TABLE_VALUE_REQUEST )
<u>demo_dynpro_dropdown_listbox</u>
TYPE-POOLS vrm.
DATA: name TYPE vrm_id,
list TYPE vrm_values,
value LIKE LINE OF list.
APPEND value TO list.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'DEMOF4HELP-CONNID'
values = list.
<u><b>Please dont forget to award if useful</b></u>
Sudheer
‎2007 May 18 1:00 PM
Hi
IF that field has Search Help use that search help for that field
Or use the fun module
POPUP_GET_VALUES
VRM_SET_VALUES
Reward points if useful
Regards
Anji
‎2007 May 18 1:02 PM
Hi Premraj,
Look at the demp program <b>DEMO_DROPDOWN_LIST_BOX</b>
and also <b>demo_dynpro_dropdown_listbox.</b>
Regards
Sudheer
‎2007 May 18 1:03 PM
Refer the following code:
&---------------------------------------------------------------------*
*& Report DEMO_DROPDOWN_LIST_BOX *
*&---------------------------------------------------------------------*
REPORT demo_dropdown_list_box.
*&---------------------------------------------------------------------*
*& Global Declarations *
*&---------------------------------------------------------------------*
* Screen Interfaces
TABLES sdyn_conn.
DATA ok_code TYPE sy-ucomm.
* Global data
TYPES: BEGIN OF type_carrid,
carrid type spfli-carrid,
carrname type scarr-carrname,
END OF type_carrid.
DATA itab_carrid TYPE STANDARD TABLE OF type_carrid.
*&---------------------------------------------------------------------*
*& Processing Blocks called by the Runtime Environment *
*&---------------------------------------------------------------------*
* Event Block START-OF-SELECTION
START-OF-SELECTION.
CALL SCREEN 100.
* Dialog Module PBO
MODULE status_0100 OUTPUT.
SET PF-STATUS 'SCREEN_100'.
ENDMODULE.
* Dialog Modules PAI
MODULE cancel INPUT.
LEAVE PROGRAM.
ENDMODULE.
*
MODULE user_command_0100 INPUT.
CASE ok_code.
WHEN 'SELECTED'.
MESSAGE i888(sabapdocu) WITH sdyn_conn-carrid.
ENDCASE.
ENDMODULE.
* Dialog Module POV
MODULE create_dropdown_box INPUT.
SELECT carrid carrname
FROM scarr
INTO CORRESPONDING FIELDS OF TABLE itab_carrid.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'CARRID'
value_org = 'S'
TABLES
value_tab = itab_carrid
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
...
ENDIF.
ENDMODULE.
‎2007 May 18 1:07 PM
hi ,
use the function module VRM_SET_VALUES
In this , in place of parameter 'ID ' place the screen field name ,
and in place of values , place the internal table containing the list of values to be displayed in the drop down box of the screen field .
this will solve your problem , for any other querry on the same , write back .
Regards,
Ranjita