Tuesday, April 15, 2008

Storing SAP information from a JCo connector

I am using the SAP JCo connector and connecting to SAP through BAPI. Presently, I am storing information of ten items in SAP Systems. One item is not present and I would like to store the information contained in the other nine items but also show user invalid items; any suggestions?

You will need to develop an RFC-wrapper around the BAPI that provides the supporting logic for your JCo application. In this case, you would use the RFC wrapper to invoke the BAPI to attempt to store the ten elements. The wrapper would then identify the error message from the element that failed and return an error message in the return structure to JCo. The Java application invoking the JCo call would then reformat and relay that message to the end-user, dependent on the type of user interface front-end (Web, desktop, Swing etc.).

No comments:

Blog Archive