‎2006 Jul 06 7:19 PM
I'm trying to figure out a way to interface online the SAP R/3 with an external non-SAP system. For example when a shipment is created in the R/3 environment, it is suppose to create the same shipment in an external system immediately. Which solution do you think it's best to use, IDOC, Badi, other...
Thanks in advance.
‎2006 Jul 06 7:29 PM
Hi pedro,
Search a proper IDoc for the data you need to send, then check the transaction that generates the data if there is away to trigger the IDoc conveniently.
The BAPI approach has some appeal in this context, as it does not store temporary data (like the IDoc in EDIDC/EDID4). So it is certainly the most preferred way, but it needs some development.
regards,
keerthi.
‎2006 Jul 06 7:24 PM
You can use idoc , i hope there will be middle ware system which will trigger the shipping in the non sap system.
‎2006 Jul 06 7:29 PM
Hi pedro,
Search a proper IDoc for the data you need to send, then check the transaction that generates the data if there is away to trigger the IDoc conveniently.
The BAPI approach has some appeal in this context, as it does not store temporary data (like the IDoc in EDIDC/EDID4). So it is certainly the most preferred way, but it needs some development.
regards,
keerthi.
‎2006 Jul 06 7:57 PM
Hi keerthi,
I also think the bapi approch would be more interesting. Could you me point me out (high level), what would be the steps to do this? I'm guessing:
- use an exit called in the shipment creation
- define rfc connection (tcode - sm59), to target system
- ....
I'm not so sure of the next steps... how do i create de bapi to communicate and send the data to the target system ?
Thanks a lot
‎2006 Jul 06 8:03 PM
I would suggest that you develop a program similar to the SAP master data distribution programs(BD10, BD12). These programs transfer data using IDocs. Even though BAPIs may sound appealing but how do handle errors during BAPI calls. What if u need to send some shipments several times to the target system?
I think error handling can be better taken care of using IDocs.
-Kiran
‎2006 Jul 07 9:29 AM
Hi Kiran,
The interface should be online, do you think the idoc is a good solution? How could i make this work ? Schedulle a batch-job to send the idocs to the target system as regurlaly as possible ? Thaks a lot,
Best regards,
Pedro Castro
‎2006 Jul 07 9:31 AM
‎2006 Jul 07 9:36 AM
If the interface has to be online then u need to write the logic for sending the IDocs in the same user exit where u were planning to write the BAPI.
I stronlgy recommend u also write a program which takes the shipment number as input as creates a IDoc to be sent to the target system. As i said earlier this will help u if there were any errors while processing the IDoc u had sent initially.
-Kiran
*Please mark useful answers