SAP R/3 форум ABAP консультантов
Russian ABAP Developer's Club

Home - FAQ - Search - Memberlist - Usergroups - Profile - Log in to check your private messages - Register - Log in - English
Blogs - Weblogs News

Dropdown в cl_salv_table (ALV)



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP
View previous topic :: View next topic  
Author Message
Jan
Специалист
Специалист



Joined: 29 Feb 2008
Posts: 82

PostPosted: Wed Apr 16, 2008 4:39 pm    Post subject: Dropdown в cl_salv_table (ALV) Reply with quote

Подскажите пожалуйста, как делать Dropdown box в новой ALV (cl_salv_table)?
Сам Dropdown box я создал, но значения при выборе в нем не меняются.
Back to top
View user's profile Send private message
admin
Администратор
Администратор



Joined: 01 Sep 2007
Posts: 1640

PostPosted: Wed Apr 16, 2008 5:21 pm    Post subject: Reply with quote

Можете код кинуть?
Back to top
View user's profile Send private message
Jan
Специалист
Специалист



Joined: 29 Feb 2008
Posts: 82

PostPosted: Wed Apr 16, 2008 5:29 pm    Post subject: Reply with quote

gr_alv_mod - сама ALV.

lr_columns = gr_alv_mod->get_columns( ).
gr_alv_fsett = gr_alv_mod->get_functional_settings( ).
gr_alv_dropd = gr_alv_fsett->get_dropdowns( ).
gr_alv_dropd->add_dropdown( handle = 1 t_values = gt_entity ).
* gt_entity - таблица для dropdown
TRY.
lr_column ?= lr_columns->get_column( 'ENTITY' ).
lr_column->set_dropdown_entry( 1 ).
lr_column->set_cell_type( value = if_salv_c_cell_type=>dropdown ).
CATCH cx_salv_not_found.
ENDTRY.

С помощью этого я могу показать dropdown box, но при выборе значения в ячейке таблицы нмчего не меняется.
Back to top
View user's profile Send private message
vga
Мастер
Мастер


Age: 170
Joined: 04 Oct 2007
Posts: 1218
Location: Санкт-Петербург

PostPosted: Wed Apr 16, 2008 5:56 pm    Post subject: Reply with quote

Может это связано с:

Quote:
The following restrictions apply for the use of ALV:
o Tables displayed with ALV are not available for input.
Back to top
View user's profile Send private message Blog Visit poster's website
Jan
Специалист
Специалист



Joined: 29 Feb 2008
Posts: 82

PostPosted: Wed Apr 16, 2008 6:00 pm    Post subject: Reply with quote

Зачем же тогда нужны dropdown боксы?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG.
SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG.
Every effort is made to ensure content integrity. Use information on this site at your own risk.