‎2013 Sep 02 3:31 PM
hello guys,
if you check the class cl_abap_classdescr
you will see that there are some methods which is called by the kernel.
get_class_name is one of them!!
method GET_CLASS_NAME by kernel module abKm_RTTI_GetClassName fail.
endmethod.
Check the report named
RSKMETH
it lists the methods that are calle dby kernel
so how do you create a kernel method guys, any one of you tried it....?
‎2013 Sep 02 3:44 PM
These are the C-methods right? they used to be executed differently as I recall.
Why do you want to call a kernel method?
I think you can create your own C/C++ stuff and use the in abap using a connector of some sorts.
‎2013 Sep 02 3:47 PM
type CTRL+F8 in the abap editor, then type METHOD, double click METHOD - Abap statement.
then scroll down and click kernel method for more information about this subject.
Kind regards, Rob Dielemans
‎2013 Sep 02 4:00 PM
Hello Rob,
yes these are the external C functions that needs to be written in C and gets registered.
I went thru the help but dont know where to start.
for example: ,it states i need to place the c code in //src//include/abkhmeth.h
i dont have server directory level access, so i cant go and see
how can i simply create a basic kernel method?
cheers Rob
‎2013 Sep 02 4:10 PM
how can i simply create a basic kernel method?
I think the answer to that question is: no.
You can create kernel methods, but not simply. And you will need server access.
I did a short search on just 'using C-methods in SAP Abap' and for that you need a connector maybe this is achieved a lot easier. also searcht the blogs here, maybe you're fortunate in that someone decided to blog about it.
Good luck in your endeavors
‎2013 Sep 03 7:58 AM
Rob,
You are the only person that responded my questions mate.
Thanks, appreciate it.
For taking your time, i will mark you as helpful answer:)
I will find out and blog it about Rob!!
Let you know
Solen
‎2013 Sep 03 11:45 AM
‎2013 Sep 04 2:46 PM
Hi mauricio
Thanks alot for the help, i will look at it.
İts great!!
‎2013 Sep 05 8:35 AM
Mauricio
I looked at the blog, its good but not helping me much
As its talking more about doing the old way
call function is covered!!
‎2013 Sep 05 8:46 AM
‎2013 Sep 05 8:59 AM
Hi ramesh
Thanks for your reply!!
Not many people replied which made me surprise.
I have been looking at the document you sent
Its helpful but still hard to start creating one from scratch.
Even registering an exisitng kernel method ?
instead of creating one i thought i register one and call it
i couldnt register
i dont have server level access
i dont think basis guys allow me
thanks my friend
‎2013 Sep 05 9:06 AM
Hi Solen,
Without server level acces I don't believe you could do this.
If your requirement is simply: Can I call my own C-module from SAP (ABAP) then you should search for connectors with which you can achieve this.
Good luck!
rob.
‎2013 Sep 06 2:47 PM
Hi Rob
yes you are right for sure,
i went and talked with the basis guy and we looked at the server path
According to documentatin the files
shoulld live at
//src/include/abkmeth.h
and we couldnot find any folder like that!!
nor the singature file
abkhmeth.sig
what you think of that?
‎2013 Oct 01 8:26 PM
Solen, I have same needs to implement my own C function to be consumed by ABAP code. Tried to follow the "Kernel Methods" page on the help.sap.com but the information are limited. I particular need an example copy of abkmeth.h file but couldn't find it on internet nor at service.sap.com.
‎2013 Oct 24 7:17 AM
Hi Eddy
Yes I tried too but no success yet
The documentation doesnt give an example and some parts doesnt match
It will be great to have Kernel methods.
You can write in C then register with the tool and there you go
It is like a native code which is quite powerful
‎2013 Sep 06 4:07 PM