2012 Jan 10 10:19 PM
hello Gurus,
Lets say there is one SAP box and have 2 clients and one client is ERP and the other one is DWM or both systems are in same network.
I know we can do communication between ERP and DWM using IDOC/ALE.
my question is, can we directly communicate using BAPI's?
In SPRO -> SAP NetWeaver -> Application Server -> IDoc Interface / Application Link Enabling (ALE) -> Communication
I have 3 tasks
1. Create RFC Connections :one creating RFC destination (some doc i read we can do direct BAPI calls to other system by creating Type 3 communication in RFC destination, I may be worng)
2. Determine RFC Destinations for Method Calls : this is the step I am not able to understand, here i can assign RFC destination to Logical system. Not sure what else i should ask here
Again can we actually do BAPI calls without use of ALE or IDOC between 2 systems? for the scenarios i have given in first line what should be communication?
Thanks
SB
2012 Jan 10 10:32 PM
yes you can... BAPIs are nothing but remote enabled function modules basically..
so if you have a RFC connection to a target system then you can definitely call the BAPI FM using 'destination <target rfc>' keyword to call the BAPI
in fact SAP by standard also communicate many times with RFC FMs(BAPIs) with interlinked systems like SRM and ECC etc..
2012 Jan 11 3:48 AM
Hi Thanks for reply.
you mean to say you want me to create custom report and write statement you have provided above 'destination <target rfc>' ?? so that i can call remote BAPI. Could you please give me one example.
Lets say if ERP and DWM are in same box but different clients, in that scenario do we have to have Remote enabled BAPI? of Normal BAPI is enough?
How does BAPI's been automatically communicated between systems? Could you please give me one example?
Below are some of the DWM(Decentralized Warehouse Management) BAPI's?
Goods Receiving IDocu2019s: IDocu2019s that are used in ECC & DWM:-
u2013Outbound ( In ECC )
u2022BAPI Function Module for Replication of Inbound Deliveries
u2013SHP_IBDLV_SAVE_REPLICA04
u2022Change inbound delivery
u2013SHP_IBDLV_CHANGE01
Inbound ( In ECC )
u2022BAPI Confirmation (Inbound Delivery)
u2013SHP_IBDLV_CONFIRM_DECENTRAL03
u2022Change inbound delivery
u2013SHP_IBDLV_CHANGE01
2012 Jan 11 3:59 AM
Hi Thanks for reply.
> you mean to say you want me to create custom report and write statement you have provided above 'destination <target rfc>' ?? so that i can call remote BAPI. Could you please give me one example.
yes.
> Lets say if ERP and DWM are in same box but different clients, in that scenario do we have to have Remote enabled BAPI? of Normal BAPI is enough?
All BAPIs are remote enabled. if you are trying to use any other FMs it needs to be remote enabled. normal FMs wont work.
> How does BAPI's been automatically communicated between systems? Could you please give me one example?
> Below are some of the DWM(Decentralized Warehouse Management) BAPI's?
> Goods Receiving IDocu2019s: IDocu2019s that are used in ECC & DWM:-
> u2013Outbound ( In ECC )
> u2022BAPI Function Module for Replication of Inbound Deliveries
> u2013SHP_IBDLV_SAVE_REPLICA04
> u2022Change inbound delivery
> u2013SHP_IBDLV_CHANGE01
> Inbound ( In ECC )
> u2022BAPI Confirmation (Inbound Delivery)
> u2013SHP_IBDLV_CONFIRM_DECENTRAL03
> u2022Change inbound delivery
> u2013SHP_IBDLV_CHANGE01
you are in a system lets say XYZ.. client 100 is ECC and 200 is DWM, so you can create RFC connections in SM59 of each client,
in 100 - you maintain a RFC destination as XYZCLNT200 - with details of 200 client(ask basis team)
in 200 - you maintain a RFC destination as XYZCLNT100 - with details of 100 client(ask basis team)
so in 100 you need to write FMs like :
call function <fm name> destination 'XYZCLNT200' "to be called in 200(so this acts as inbound to 200)
in 200
call function <fm2's name> destination 'XYZCLNT100' "to be called in 100(so this acts as inbound to 100)