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 list? в селектион скриин



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



Joined: 20 Apr 2011
Posts: 80
Location: Ukraine

PostPosted: Thu Jun 07, 2012 10:59 am    Post subject: Как динамечески заполнять dropdown list? в селектион скриин Reply with quote

Добрый день подскажи пожалуйста как динамически заполнять dropdown list не уходя с селект экрана, я к примеру хочу вкачивать данные с ексель таблицы, так вот что бы при выборе файла в dropdown list на этом же селектион экране, появлялся список листов в файле Rolling Eyes
Back to top
View user's profile Send private message
John Doe
Модератор
Модератор


Age: 46
Joined: 05 Nov 2007
Posts: 725
Location: КраснАдар

PostPosted: Thu Jun 07, 2012 11:11 am    Post subject: Reply with quote

Ну так и делайте эту операцию в AT SELECTION SCREEN событиях.
_________________
FunCoding.ru
KicksCollector.ru
Back to top
View user's profile Send private message Blog
firacat
Специалист
Специалист



Joined: 20 Apr 2011
Posts: 80
Location: Ukraine

PostPosted: Thu Jun 07, 2012 11:37 am    Post subject: Reply with quote

John Doe, делаю а все равно пустое...

Объявляю
Code:

  PARAMETER P_FILE TYPE  localfile OBLIGATORY.
  PARAMETER P_SHEET  AS LISTBOX VISIBLE LENGTH 50 OBLIGATORY.



Code:

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
  PERFORM FIND_SHEETS.

AT SELECTION-SCREEN OUTPUT.
  CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING id     = param
              values = values.


В перворме FIND_SHEETS заполняются таб переменными

Code:

      CLEAR values.
      param = 'P_SHEET'.
      LOOP AT i_sheets INTO wa_sheets.

        value-key = wa_sheets-sheet_name.
        APPEND value TO values.
      ENDLOOP.
Back to top
View user's profile Send private message
John Doe
Модератор
Модератор


Age: 46
Joined: 05 Nov 2007
Posts: 725
Location: КраснАдар

PostPosted: Thu Jun 07, 2012 1:33 pm    Post subject: Reply with quote

VRM_SET_VALUES вызывайте и в ON VALUE-REQUEST событии.
_________________
FunCoding.ru
KicksCollector.ru
Back to top
View user's profile Send private message Blog
firacat
Специалист
Специалист



Joined: 20 Apr 2011
Posts: 80
Location: Ukraine

PostPosted: Thu Jun 07, 2012 3:08 pm    Post subject: Reply with quote

John Doe, спасибо все получилось! Very Happy
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.