on 05-24-2008 9:56 AM
Hello,
I am new in the field of SAP development and I have some questions about the general strategy.
It's the task to react on a transaction in SAP (an order generated by a user in the SAP system). After the order is done I have to control a Lego train (It's for a university project for education purposes). Therefore it's necessary to call own code.
I searched a little bit in the SAP help and found these possible solutions: BAPI's and RFC or the IDOC-Interface. So my first question: where can I find the BAPI C++ library for download? There is no clue in the help.
And my second question: is there a way to inject own functions e.g. via DLL? When I understand the BAPI/RFC right, than I have to program a stand alone server and SAP system calls the server. So I need a "real standalone, external" program. That's a little bit overhead for my concerns I think. So is there a way to insert a function like a plugin and than to call the function like a trigger?
And a third suggestion was to use a shared folder for data exchange via files. Is this (simple) solution possible? I found nothing during my searches about this.
Thx a lot for your help!
Best regards
Pellaeon
Hi Gilad,
There are some ways to call BAPI functions on SAP. First one; you can use librfc32.dll for non-unicode and librfc32u.dll for unicode applications, in order to call function modules remote on SAP. Second one; you can create C++ BAPI proxy classes by using SAP Assistant which is delivered by SAPGUI. This is hardest way. Since simplfy the development, I strongly recommend that you develop "Tcp Server application". You can find several samples on internet, about it.
Second question is "is there a way to inject own functions e.g. via DLL?". The answer is yes but no. Do not confuse regarding my answer. This is because, you can use remote threading (named as injection) in order to perform functions on the instance. I said "no" also, because kernel functions are not well documented. So, SAP do not support plug-in development at kernel level by 3rd parties (unless you deal with SAP). I worked about remote threading issue on SAP, previously. All in all, it depends how you have dominated know-how about remote threading.
Third answer is; the best way to be read files by SAP is storing files on application server level. So you can share that directory and perform your functions successfully with the required authorizations.
Best regards,
Orkun Gedik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.