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

HR Вызов программы из динамического мероприятия



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



Joined: 16 May 2008
Posts: 5

PostPosted: Fri May 16, 2008 3:59 pm    Post subject: HR Вызов программы из динамического мероприятия Reply with quote

Вопрос по модулю HR, таблица T588Z (динамические мероприятия)

Мне нужно при изменении полей в инфотипе запускать свою подпрограмму, которая будет формировать отчеты.

Строка в динамических мероприятиях:
0002 MIDNM 02 1 F Z12_TRANSFER3

При запуске этого события выдается ошибка о том, что прога не найдена

«Call (PERFORM) to a non-existent routine.

An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_FORM', was
not caught in
procedure "MEASURE" "(FORM)", nor was it propagated by a RAISING clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
The program "MP000200" is meant to execute an external PERFORM,
namely the routine "Z12_TRANSFER3 " of the program "MP000200 ", but
this routine does not exist.»

Что надо сделать с прогой, чтобы ее видела система? Может можно каким-то образом запихнуть ее в MP000200? Если да, подскажите, пожалуйста, решение.

Это мое первое задание, очень хочется его сделать, помогите Smile
Back to top
View user's profile Send private message
vga
Мастер
Мастер


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

PostPosted: Fri May 16, 2008 4:50 pm    Post subject: Reply with quote

Может нужно указать Include, например:
2001 0210 02 79 F GET_NEW_DATES(HBRDYNMS)
Back to top
View user's profile Send private message Blog Visit poster's website
Mayka
Участник
Участник



Joined: 16 May 2008
Posts: 5

PostPosted: Fri May 16, 2008 5:21 pm    Post subject: Reply with quote

Vga, то, что вы написали, это вызов form GET_NEW_DATES из инклуда HBRDYNMS.

Я уже пробовала использовать такую запись (в приниципе все равно вызывать сам отчет или его процедуру), но проблема осталась - система по-прежнему не видит мою прогу.

Или Вы что-то другое имели в виду?
Back to top
View user's profile Send private message
vga
Мастер
Мастер


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

PostPosted: Fri May 16, 2008 5:29 pm    Post subject: Reply with quote

А она точно активирована? Сорри, если глупый вопрос.
Back to top
View user's profile Send private message Blog Visit poster's website
Mayka
Участник
Участник



Joined: 16 May 2008
Posts: 5

PostPosted: Fri May 16, 2008 5:36 pm    Post subject: Reply with quote

Вопрос хороший Very Happy Она у меня действительно была неактивирована.

Но к сожалению, даже после того, как я это сделала, проблема осталась по-прежнему.

ЗЫ предыдущая версия активации ненамного отличалась от нынешней версии, так что все-таки не в этом дело.
Back to top
View user's profile Send private message
vga
Мастер
Мастер


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

PostPosted: Fri May 16, 2008 8:07 pm    Post subject: Reply with quote

Mayka wrote:
в приниципе все равно вызывать сам отчет или его процедуру


Вы в этом уверены? Ведь вызовы подпрограммы и программы выполняются разными операторами.
Вы точно пробовали создать в вашем отчете подпрограмму MYFORM и вызывать ее как MYFORM(Z12_TRANSFER3)?
Back to top
View user's profile Send private message Blog Visit poster's website
Mayka
Участник
Участник



Joined: 16 May 2008
Posts: 5

PostPosted: Fri May 16, 2008 11:30 pm    Post subject: Reply with quote

Я так пробовала сделать. Вернусь в пн на работу еще раз попробую для уверенности Smile
Back to top
View user's profile Send private message
Mayka
Участник
Участник



Joined: 16 May 2008
Posts: 5

PostPosted: Mon May 19, 2008 10:57 am    Post subject: Reply with quote

Vga, все получилось! Именно через подпрограмму. Не знаю, почему раньше не получалось, наверное все-таки прога была не активирована.

Спасибо 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.