cancel
Showing results for 
Search instead for 
Did you mean: 

RFC call from APO to ECC

Former Member
0 Kudos

Hi Experts

We want to make RFC call from APO to ECC to find the sales order number for the delivery and return the number to APO.

How best we can do that?

Regards

Mridul

Accepted Solutions (0)

Answers (2)

Answers (2)

frank_horlacher
Advisor
Advisor
0 Kudos

Hi,

you do not need to go to ERP for that requirement the information can also be found in APO.

with

CALL FUNCTION '/SAPAPO/SDORDER_READ'

you get the tables

IMPORTING

      et_ordadm_i     = lt_ordadm_i

      et_schedlin     = lt_schedlin

these tables contain the information of deliveries and schedulines of sales documents in APO.

with

CALL FUNCTION '/SAPAPO/DM_OBREF_GET'

you can get the predecessor document for your delivery.

a similar code can be found in

class

/SAPAPO/CL_RRP_UNTOL

BR Frank

sourabh_jain66
Active Contributor
0 Kudos

Hi Mridul,

Please check below links for calling an RFC connection from within the program, i believe that is what you are looking for.

http://help.sap.com/saphelp_nw04/helpdata/en/22/0429f8488911d189490000e829fbbd/content.htm

https://help.sap.com/saphelp_nw04/helpdata/en/22/042652488911d189490000e829fbbd/content.htm

I hope you will get what you are looking for with this.

Rgds

Sourabh