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

Господа абаперы ! Помогите с задачей .



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


Age: 41
Joined: 17 Feb 2012
Posts: 62

PostPosted: Tue Mar 13, 2012 6:52 pm    Post subject: Господа абаперы ! Помогите с задачей . Reply with quote

Господа абаперы .
Я создал List Value

Code:
TYPE-POOLS: vrm.

DATA: it_list TYPE VRM_VALUES,
      list_value TYPE VRM_VALUE.

PARAMETERS: p_list(20) TYPE C AS LISTBOX VISIBLE LENGTH 15.

AT SELECTION-SCREEN OUTPUT.
  list_value-key = 'AAAA'.
  list_value-text = 'AAAA Show Text'.
  append list_value to it_list.
  list_value-key = 'AAAB'.
  list_value-text = 'AAAB Show Text'.
  append list_value to it_list.
  list_value-key = 'AAAC'.
  list_value-text = 'AAAC Show Text'.
  append list_value to it_list.
  list_value-key = 'AAAD'.
  list_value-text = 'AAAD Show Text'.
  append list_value to it_list.

CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
      ID                    = 'P_LIST'
      VALUES                = it_list
    EXCEPTIONS
      ID_ILLEGAL_NAME       = 1
      OTHERS                = 2
            .
  IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.



и в P_LIST сохраняетцо значение которое выбирается на екране.

P_LIST получает Имя Ztable .

как это значение поставить в место zmysql
Code:
DATA: extdb TYPE zmysql OCCURS 0 WITH HEADER LINE


примерно так если пишу то выдает ошибку.

Code:
DATA: extdb TYPE P_LIST OCCURS 0 WITH HEADER LINE

_________________
Начинаюший ABAP-er
Back to top
View user's profile Send private message
sergiucz
Специалист
Специалист


Age: 41
Joined: 17 Feb 2012
Posts: 62

PostPosted: Tue Mar 13, 2012 7:39 pm    Post subject: Reply with quote

Я пробовал так. Но ругается САП.

FIELD-SYMBOLS: <fs>.
ASSIGN p_list TO <fs>.
DATA: extdb like <fs> OCCURS 0 WITH HEADER LINE.

_________________
Начинаюший ABAP-er
Back to top
View user's profile Send private message
Fami4
Специалист
Специалист


Age: 42
Joined: 04 Aug 2009
Posts: 62
Location: UA

PostPosted: Tue Mar 13, 2012 7:44 pm    Post subject: Reply with quote

Что-то я не понял задачи... Confused

Т.е. вы хотите передать значение p_list в одно из полей таблицы zmysql?
Back to top
View user's profile Send private message
sergiucz
Специалист
Специалист


Age: 41
Joined: 17 Feb 2012
Posts: 62

PostPosted: Tue Mar 13, 2012 7:53 pm    Post subject: Reply with quote

Fami4 wrote:
Что-то я не понял задачи... Confused

Т.е. вы хотите передать значение p_list в одно из полей таблицы zmysql?



Нет p_list принимает имя Zтаблицы и после этого я хочу зделать внутренюю таблицу с структурой и заголовков как у Zтаблицы.

_________________
Начинаюший ABAP-er
Back to top
View user's profile Send private message
ghost
Специалист
Специалист


Age: 36
Joined: 18 Jan 2008
Posts: 71
Location: Tashkent-Astana-Moscow

PostPosted: Tue Mar 13, 2012 9:10 pm    Post subject: Reply with quote

поиск рулит
_________________
Пользователь не знает, чего он хочет, пока не увидит то, что он получил. (Э. Йодан)
Back to top
View user's profile Send private message Send e-mail Blog
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.