2/2/2016 9:25:08 PM

Connection between SAP to Non-SAP

Step 1) Define Logical System

Step 2) Create RFC Destinations

Step 3) Maintenance of Distribution Model

Step 4) Generate Partner profile

Step 5) BizTalk configuration

Step 6) Connection test in SAP

Step 7) Create filter in BizTalk

Step 8) Final step

More details please click the link  http://www.sappractical.com/home/blogd/outbound-idoc-connectivity-from-sap-to-biztalk

Connection between non-SAP to SAP

Non-SAP systems can be like Java or .Net or any other programming languages. Other programming languages can connect to SAP using RFC with help of System IP, SAP user id with password. Below the sample for Java to SAP connection.

JCO.Client connClient = null;

        IRepository mRepository;

     connClient = JCO.createClient("<SAP Client>","<UserId>","<Password>","EN","<Application server host name>","<system number>");

        try {

     connClient.connect();

     } catch (Exception ex)

     {

          ex.printStackTrace();

          System.exit(1);

     }

     mRepository = new JCO.Repository("Hell", connClient);

     JCO.Function strHELLO = mRepository.getFunctionTemplate("ZSAU_FM_ASSIGNMENT").getFunction();

     JCO.ParameterList importParam = strHELLO.getImportParameterList();

     importParam.setValue(val,"ZMATNR");

     try {

          connClient.execute(strHELLO);

     }catch (JCO.AbapException ex)

               {

               }

If your system is an Biztalk then please use below the link.

 http://www.sappractical.com/home/blogd/outbound-idoc-connectivity-from-sap-to-biztalk






If you like this blog, please share (Facebook/LinkedIn/Google+) to click below links so it will reach to others.


COMMENTS

  • Rajasekhar -3/26/2016 11:23:34 AM

    why did you go for Bapi over Bdc