cancel
Showing results for 
Search instead for 
Did you mean: 

RFC connection between ECC6 and SCM7

Former Member
0 Kudos

Hi APO Gurus

I am new to SAP APO field can Anybody help me..? how to set up RFC connection between ECC6 and SCM7 in detail.

Thanks in Advance

Sharanu

Accepted Solutions (1)

Accepted Solutions (1)

former_member190993
Active Participant
0 Kudos

Hi Sharunu,

The RFC connection is used to build a connection between ECC and APO in both directions.

Use t-code SM59 in both ECC and SCM and under ABAP connections, set up the RFC connection:

In ECC:

Select RFC destination as APO logical system name, enter SCM server address in the target host field. Then provide user id and password. This user must exist in SCM (dialog type) with full authorization (SAP_ALL). Generally BASIS team has this authorization.

Similarly in APO:

Select RFC destination as ECC logical system name, enter ECC server address in the target host field, provide userid and password. This user id must exist in ECC system with necessary authorizations.

After the above set up is complete, click on the "connection test" to check if the RFC connection is working fine.

Regards,

Umesh

Former Member
0 Kudos

Hi Umesh Sharma.

Thanks for your explanation, I did that step in my ides server. Just for curiosity this all RFC connection done by APO consultants or Basis team ??

former_member190993
Active Participant
0 Kudos

Hi Sharanu,

This is basically a BASIS team activity. As the BASIS team will have the server address and userid/pwd with necessary authorizations.

Regards,

Umesh

Answers (2)

Answers (2)

frank_horlacher
Employee
Employee
0 Kudos

Hi Sharanu,

please hava a look at our configuration guides for

SAP Demand and Supply Network Planning rapid-deployment solution

SAP Global ATP Rapid Deployment Solution

SAP Advanced Production Scheduling Rapid Deployment Solution

the topic connection between ERP and SCM is described in this Building Block Configuration Guide:

Settings for RFC Connectivity in SAP ERP (SCP)

https://websmp104.sap-ag.de/~sapidb/012002523100005692562014E/SAP_BP/BBLibrary/Documentation/SCP_ERP...

BR Frank

marianoc
Active Contributor
0 Kudos

Hi Sharanu,

Below you can see a sample code of a RFC connection between APO and ECC. The code is part of an APO program and it is getting the contect of table MARC.

*******Trigger BAPI to get data from ECC********
* Planning strategy group
        CALL FUNCTION 'RFC_READ_TABLE'
          DESTINATION x_zoukey1
          EXPORTING
            query_table          = 'MARC'
            delimiter            = ' '
            no_data              = ' '
            rowskips             = 0
            rowcount             = 1
          TABLES
            options              = ta_options
            fields               = ta_fields1
            data                 = ta_data1
          EXCEPTIONS
            table_not_available  = 1
            table_without_data   = 2
            option_not_valid     = 3
            field_not_valid      = 4
            not_authorized       = 5
            data_buffer_exceeded = 6
            OTHERS               = 7.


        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          WRITE: 'RFC Read Error'.
        ELSE.
          LOOP AT ta_data1 INTO wa_data1.
            zstrgr = wa_data1-wa.
          ENDLOOP.
        ENDIF.

In this document you cann see the entire program:

http://scn.sap.com/docs/DOC-56755

Thanks and Regards,

Mariano