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

MODule pool

Former Member
0 Likes
641

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
609

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

5 REPLIES 5
Read only

Former Member
0 Likes
610

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

Read only

Former Member
0 Likes
609

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

Read only

Former Member
0 Likes
609

Hi Premraj,

Look at the demp program <b>DEMO_DROPDOWN_LIST_BOX</b>

and also <b>demo_dynpro_dropdown_listbox.</b>

Regards

Sudheer

Read only

Former Member
0 Likes
609

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.

Read only

former_member196299
Active Contributor
0 Likes
609

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