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: 

listbox(dropdown)

Former Member
0 Kudos

hii,

in my report i take spfli-carrid as an input and then i query the spfli based on the carrid and the display all the entries.

In the above report how can i make a column into a editable drop down on the output screen.

If there any to implement this in interactive reports without using alv grid display??

4 REPLIES 4

former_member585060
Active Contributor
0 Kudos

Hi,

Basic question, you could have searched scn before posting.

Refer SAP Demo programs.

In SE38, give "BCALV_EDIT*" and click F4.

Thanks & Regards

Bala Krishna

0 Kudos

i am asking for a way without using alv grid??

0 Kudos

I guess in normal reports its not possible, may be you can try by creating a Module pool program.

sivaganesh_krishnan
Contributor
0 Kudos

Hi Krishna ,

Have you tried the FM  VRM_SET_VALUES in your report , check this code .

types: begin of t_ekko,

   ebeln type ekko-ebeln,

   end of t_ekko.

data: it_ekko TYPE STANDARD TABLE OF t_ekko,

       wa_ekko like line of it_ekko.

TYPE-POOLS: VRM.

DATA: NAME  TYPE VRM_ID,

       LIST  TYPE VRM_VALUES,

       VALUE LIKE LINE OF LIST.

PARAMETERS: P_PARM(10) AS LISTBOX VISIBLE LENGTH 10.

*********************************************************

*AT SELECTION-SCREEN OUTPUT.

AT SELECTION-SCREEN OUTPUT.

   SELECT ebeln

    up to 10 rows

     from ekko

     into table it_ekko.

   loop at it_ekko into wa_ekko.

     VALUE-KEY wa_ekko-ebeln.

     VALUE-TEXT = wa_ekko-ebeln.

     APPEND VALUE TO LIST.

   endloop.

   NAME = 'P_PARM'.

   CALL FUNCTION 'VRM_SET_VALUES'

     EXPORTING

       ID     = NAME

       VALUES = LIST.

********************************************************

*START-OF-SELECTION.

START-OF-SELECTION.

   WRITE: / 'SELECTED VALUE KEY:', P_PARM.



Regards,

Sivaganesh