05-28-2008 2:49 PM
Hi Gurus,
I've some doubts about idocs...
My client has a requirement in order to integrate Sap with other foreign system, and has adopted the solution Java Caps + Idocs. I've been reading some documents about Java Caps and idocs, and as far as i know the creation of the Idoc it's done via RFC, this is, every time that the RFC is called from the other system , do its procedure, creates and sends the idocs.
Well my doubt starts here... Is it possible to send the Idoc to other system without order from the other system? Can i create the Idoc and sent it directly to the other system without action from the other system ?
Thanks in Advance,
Regards,
João Martins
05-28-2008 4:33 PM
Hi Joao,
I think it is not possible that you can push the IDoc into the external system.
We have an EDI System connected to our SAP ERP and what I know is, when you create an IDoc in SAP and you can see it with a green light in WE02, that just means that SAP could assimilate this one fine. Now it is somewhere in a "queue" or "area". The next step is to trigger this area via the RFC by your external system. If the RFC is setup fine (SM59). For example we use a TCP/IP connection with an registered serverprogramm. In the RFC destination you can set the valid Program ID which one is allowed to pickup the IDocs...
hope it helps a bit.
regards,
Steffen
05-28-2008 4:33 PM
Hi Joao,
I think it is not possible that you can push the IDoc into the external system.
We have an EDI System connected to our SAP ERP and what I know is, when you create an IDoc in SAP and you can see it with a green light in WE02, that just means that SAP could assimilate this one fine. Now it is somewhere in a "queue" or "area". The next step is to trigger this area via the RFC by your external system. If the RFC is setup fine (SM59). For example we use a TCP/IP connection with an registered serverprogramm. In the RFC destination you can set the valid Program ID which one is allowed to pickup the IDocs...
hope it helps a bit.
regards,
Steffen
05-29-2008 9:55 AM
Hi,
Thanks for your reply Steffan.
For what i understanded it's that i can actually create the idoc before the RFC be called, but the only way to reach the destination it's the host call the RFC. Is that it?
My client requirent it's that after an Workflow event, we have to send an field value thru idocs to the external system. Guess the only way it's the external system running as a thread, fork, calling the RFC and waiting to receive the idoc.
Once again thanks your reply.
Regards,
João Martins
05-30-2008 1:07 PM
Hi João,
> For what i understanded it's that i can actually create the idoc before the RFC be called, but the only way to reach the destination it's the host call the RFC. Is that it?
Yes, that's how I understand the IDoc and RFC thing.
Yes we realized it like you described it. The external system triggers the SAP-IDoc-pool every 5 minutes to catch the new IDocs and process the data. But I cannot say anything about the external server program to you, because I didn't wrote it (this one has done an external company... )
Point Recognition Program at SDN
thanks, regards
Steffen