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

smartforms



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP
View previous topic :: View next topic  
Author Message
mvs87
Участник
Участник



Joined: 25 Feb 2009
Posts: 34

PostPosted: Sun Mar 22, 2009 4:11 pm    Post subject: smartforms Reply with quote

Првиет!
В SAP-е есть примеры смартформ?
в любом случае подскажите где их найти можно?


Last edited by mvs87 on Tue Mar 24, 2009 9:25 pm; edited 2 times in total
Back to top
View user's profile Send private message
mvs87
Участник
Участник



Joined: 25 Feb 2009
Posts: 34

PostPosted: Sun Mar 22, 2009 4:13 pm    Post subject: Reply with quote

вроде бы все транзакции с примерами облазил.
_________________
С уважением, mvs87.
Back to top
View user's profile Send private message
mvs87
Участник
Участник



Joined: 25 Feb 2009
Posts: 34

PostPosted: Sun Mar 22, 2009 4:29 pm    Post subject: Reply with quote

нашел через *.
_________________
С уважением, mvs87.
Back to top
View user's profile Send private message
mvs87
Участник
Участник



Joined: 25 Feb 2009
Posts: 34

PostPosted: Sun Mar 22, 2009 7:30 pm    Post subject: Reply with quote

скажите какой функцией вызывать запуск смартформы?
_________________
С уважением, mvs87.
Back to top
View user's profile Send private message
vga
Мастер
Мастер


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

PostPosted: Sun Mar 22, 2009 8:41 pm    Post subject: Reply with quote

Здравствуйте,
транзакция smartforms

приветры запуска см. в разделе
http://www.sapnet.ru/viewforum.php?f=4
Back to top
View user's profile Send private message Blog Visit poster's website
mvs87
Участник
Участник



Joined: 25 Feb 2009
Posts: 34

PostPosted: Tue Mar 24, 2009 12:56 am    Post subject: Reply with quote

vga wrote:
Здравствуйте,
транзакция smartforms

приветры запуска см. в разделе
http://www.sapnet.ru/viewforum.php?f=4

спасиб Very Happy
нашел в se80 по слову *fax*.

_________________
С уважением, mvs87.
Back to top
View user's profile Send private message
mvs87
Участник
Участник



Joined: 25 Feb 2009
Posts: 34

PostPosted: Tue Mar 24, 2009 9:33 pm    Post subject: Reply with quote

возникла проблемка, а может я туплю чёто.

вообщем в смартформу нужно вставить таблицу из внутренней таблици.

код создания внутр. табл
Code:

tables: spfli, sflight.
*
data: fm_name type rs38l_fnam,
      cat1 type lvc_t_fcat,
      wa_fieldcat type line of lvc_t_fcat.
data: userq type spfli.

DATA: BEGIN OF tabs OCCURS 0,
      cityfrom    LIKE spfli-cityfrom,
      cityto      LIKE spfli-cityto,
      paymentsum  LIKE sflight-paymentsum,
      carrid      like spfli-carrid,
      connid      like spfli-connid,
END OF tabs.
data: tabs1 like tabs  occurs 0 with header line.
parameter: f_cityto type spfli-cityto.
check sy-subrc = 0.

select single * from spfli into userq where cityto = f_cityto.

select * from spfli into corresponding fields of table tabs.
loop at tabs.
  move-corresponding tabs to tabs1.
  select paymentsum from sflight into tabs1-paymentsum
    where carrid = tabs-carrid
      and connid = tabs-connid
      and paymentsum NE 0.
if sy-subrc = 0.
  append tabs1.
  endif.
  endselect.
  clear tabs1.
  endloop.

и возникает ошибка когда добавляю когда активирую в смартформе.
в проге всё активировано.

Скажите пожалуйста, как надо делать?



tabs_u.png
 Description:
 Filesize:  5.53 KB
 Viewed:  15314 Time(s)

tabs_u.png



_________________
С уважением, mvs87.
Back to top
View user's profile Send private message
werwolf
Участник
Участник



Joined: 19 Feb 2008
Posts: 30
Location: Ростов-на-Дону

PostPosted: Wed Mar 25, 2009 10:27 am    Post subject: Reply with quote

А таблица TABS определена в словаре?
При объявлении нужно ссылаться или на таблицу, или на структуру словаря.
Back to top
View user's profile Send private message
mvs87
Участник
Участник



Joined: 25 Feb 2009
Posts: 34

PostPosted: Wed Mar 25, 2009 1:35 pm    Post subject: Reply with quote

werwolf wrote:
А таблица TABS определена в словаре?
При объявлении нужно ссылаться или на таблицу, или на структуру словаря.

Вот так и знал.
блин))

werwolf, а как создать структуру?

_________________
С уважением, mvs87.
Back to top
View user's profile Send private message
werwolf
Участник
Участник



Joined: 19 Feb 2008
Posts: 30
Location: Ростов-на-Дону

PostPosted: Wed Mar 25, 2009 2:57 pm    Post subject: Reply with quote

1. se11.
2. выбираем "Тип данных" и пишем имя струтктуры.
3. кнопка "Создать".
4. перечисляешь нужные поля и т.д.
Back to top
View user's profile Send private message
YuriT
Участник
Участник



Joined: 03 Nov 2008
Posts: 35

PostPosted: Wed Mar 25, 2009 4:29 pm    Post subject: Reply with quote

mvs87 wrote:
werwolf, а как создать структуру?


Я одного не понимаю. Как можно вообще что-то писать в ABAPе, не зная как создать структуру. Это же чуть ли не первое чему учат. Это как спросить а что такое IF/ENDIF Smile
Back to top
View user's profile Send private message
mvs87
Участник
Участник



Joined: 25 Feb 2009
Posts: 34

PostPosted: Wed Mar 25, 2009 4:36 pm    Post subject: Reply with quote

YuriT wrote:
Я одного не понимаю. Как можно вообще что-то писать в ABAPе, не зная как создать структуру. Это же чуть ли не первое чему учат. Это как спросить а что такое IF/ENDIF Smile


За то теперь я знаю как создать структуру.
Ничего в этом страшного нет.

_________________
С уважением, mvs87.
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.