cancel
Showing results for 
Search instead for 
Did you mean: 

start EHS expert using JCo

Former Member
0 Kudos

We have an application running on tomcat which uses

Java and JCo. The application exports the HitList, updates Property Tree etc

-- We need to support running EHS Expert using Jco. Is it feasible?

-- We do not use Netweaver Application Server or Java Dyn Pro for tomcat. What are the benefits of using those in our case ?

Accepted Solutions (1)

Accepted Solutions (1)

christoph_bergemann
Active Contributor
0 Kudos

Hello

I am not familiar with Jaba/Jco. To my knowledge EHS Expert Server is installed on Windows server. E.g. refer to:

http://www.consolut.com/en/s/sap-ides-access/d/s/doc/YY-EHS_MD_135_07

Communication is done only between SAP EH&S (transaction CG02) and EHS Expert Server in the SAP standard

Can you explaind in more detail your scenario in which you would like ot use the EHS Expert Server

Thanks

C.B.

Former Member
0 Kudos

I meant to ask if its feasible to run rules on the EHS expert server from Java code.

I understand that a BAPI function is called to start processing the rules. So, the same BAPI or a wrapper around it can be called from Java. The reason for doing this is that we dont have SAP ABAP developers and I prefer Java code.

http://help.sap.com/saphelp_470/helpdata/en/32/b292c6f3de11d2b518006094b92d29/frameset.htm

christoph_bergemann
Active Contributor
0 Kudos

Hello

I still struggle a little bit with your scenario. Let's try it different. in your original thread you mentioned:

"The application exports the HitList, updates Property Tree etc"

Therefore if I try to reengineer this; the result would be:

a.) you are able to specify a hit list in EH&S SAP, you can perform property updates direct (without use of EHS expert)

b.) therefore in theory you could start execution of the EH&S Expert process by your "java" because this process starts from hitlist. Data is retrieved (by use of the BAPIs) passed to the EH&S Expert Server; calculation ist started there and then the result values are passed back to SAP to be once again accepted by a BAPI which will write back the data to database.

What is needed from point of skill?

1.) you need somebody who knows the BAPIs to be used

2.) the Expert Server could pass back error codes etc. These need to be processed as well; no idea how you would lke to do it; normally this is done in the EHS framework.

Take a look here:

http://www.erphome.net/PLM_Concept/content/Data/EH_S/FactSheets_WhitePapers/FactSheetExpert.pdf

But if you are able to retrieve the data now and you can update the data in EH&S why you would like to us the EH&S Expert server? In theory if you have the data "downloaded" you can use Java code to manipulate etc. And after manipulation by using the BAPIs you can make updates in property tree. To a certain extent you reprogramm EHS Expert  in Java

Regarding BAPIs:

Please check this forum. The BAPIs have been mentioned. The function modules which are useful are:

C1F5_SPECIFICATIONS_MODIFY

C1F5_SPECIFICATIONS_DELETE

C1F5_SPECIFICATIONS_READ

BAPIs used in this context:

BAPI_BUS1077_CREATE

BAPI_BUS1077_CHANGE

BAPI_BUS1077_GETDETAIL

BAPI_BUS1077_GETLIST

BAPI_BUS1077_GET_COMP_TREE

BAPI_BUS1077_DELETE

Hope this helps

C.B.

PS: Examples of the use of the BAPIs are available in SAP. E.g.

RC1_1077_BAPI_EXAMPLE_DG

RC1_1077_BAPI_EXAMPLE_GENERAL

RC1_1077_BAPI_EXAMPLE_CHANGE

May be check .e.g

https://scn.sap.com/message/4877606


Former Member
0 Kudos

Java communicates (2 way) with ABAP BAPIs via RFC calls.

Code execution goes back and forth between ABAP and java.

So if EHS Expert is called using a BAPI call, then, in theory it can be called from Java.

Its great that you brought up that we can directly update the property tree bypassing EHS Expert.

But in my opinion it would take a lot of redundant effort for what EHS Expert already provides (or will provide in future ).

Thanks for the list of BAPIs.

Thank you Christoph for taking the time to answer my question.

christoph_bergemann
Active Contributor
0 Kudos

Dear Chad

the EH&S expert is integrated in EHS using a user exit. You start formhit list and calls the expert and you can (to my knowledge) specify which rules should be used to calculate something.

May be you still misinterpret a little bit the EHS Expert. Please think about "WinWord". Here (with WinWord) you have a tool with which you can write etc. documents. That there are no templates etc.

EHS Expert is the same. You have a "general" tool available to calculate something, but you do not have the calculation rules.

You have e.g. these options:

1.) buy the rules (only useful if you hava a standard EH&S without any adaptions by somebody)

2.) you can try to understand to implement the rules (please refer to documentation on SAP marketplace); but to my knowlede you will succeed only, if you have some SAP ABAP / Customizing know how

3.) or you can try to use your "Java" could to do the job

May be you should once again read cross these links

http://help.sap.com/erp2005_ehp_05/helpdata/EN/8b/abc83ea57b7f68e10000000a114084/content.htm

http://www.consolut.com/en/s/sap-ides-access/d/s/doc/YY-EHS_MD_135_07

SAP Note 568302

http://help.sap.com/saphelp_470/helpdata/en/32/b292c6f3de11d2b518006094b92d29/frameset.htm

Chapter:

- EH&S Expert

- Set of Rules

- Mapping tabble

And therein e.g. chapter:

Determining Secondary Data with the EH&S Expert

which explain how EH&S Expert is called using SAP EH&S.

On top: there is a so called "EHS Easy Expert" available. This feature is explained as well

Hope this helps

C.B.

Former Member
0 Kudos

Thank you Christoph for the detailed post.

We provide EHS Expert rules to our SAP customers. Currently we have ABAP code (Dyn Pro) calling the EHS Expert.

I wanted to know if its feasible to move that code to Java. The answer certainly seems to be Yes.

Thanks again.

Answers (0)