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

работа с внешней библиотекой, OLE2


Goto page Previous  1, 2
 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP
View previous topic :: View next topic  
Author Message
rudeman
Специалист
Специалист



Joined: 21 Sep 2007
Posts: 55
Location: Киев

PostPosted: Wed Nov 28, 2007 6:15 pm    Post subject: Reply with quote

Сделал через функциональный модуль по совету admin Smile . Метод пишущий в файл, по совету vga Smile теперь норм вызывается, а вот с параметрами таки проблема. Даже с одним.

Definition wrote:

METHODS:
DeInitCredA
IMPORTING
id TYPE c.

Implementation wrote:

METHOD DeInitCredA.
CALL METHOD me->call_method
EXPORTING
method = 'DeInitCredA'
p1 = id
p_count = 1
queue_only = ' '.
ENDMETHOD.

Method call wrote:

DATA: id(7) TYPE c.
CALL METHOD olelib->DeInitCredA
EXPORTING id = 'I00001'.

И контейнер и объект создаются нормально. А прога валится в дамп по call method error. Подскажите плз, где я напутал... то ли с импорт-экспорт... то ли еще где... Shocked Embarassed
Back to top
View user's profile Send private message
vga
Мастер
Мастер


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

PostPosted: Wed Nov 28, 2007 11:05 pm    Post subject: Reply with quote

Вы молодец, сами разобрались.

Ваш класс наследуется от глобального класса
CL_GUI_CONTROL, методы и параметры которого можно посмотреть, провалившись в него по двойному щелчку мыши, прямо из редактора.

В me->call_method
ипортируемый параметр обязательный (не стоит галка в колонке optional). Поэтому в реализации вашего метода нужно

Quote:
METHOD DeInitCredA.
CALL METHOD me->call_method
EXPORTING
method = 'DeInitCredA'
p1 = id
p_count = 1
queue_only = ' '.
IMPORTING
result = wf_rstring.

ENDMETHOD.
Back to top
View user's profile Send private message Blog Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP All times are GMT + 4 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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.