2008 Aug 08 7:10 AM
Hi
1. How can i trigger the idoc FIDCCP02 for outbound processing? I am trying to use this idoc to send the vendor invoice data to another system.
2. How do i send existing data from sap to another system thru idocs?
pls give me the steps.
Regards
Sujai
2008 Aug 08 8:22 AM
Hi,
As per my understanding there is no standard output program for this idoc type so yuou have to create custom program whcih will trigger this idoc by using the function module MASTER_IDOC_DISTRIBUTE.
For this fucntion module you have to pass proper partner profile then that idoc will sent to requried destination.
Thanks and regards,
radha.
2008 Aug 08 8:40 AM
thanx Radha,
Could you send me a sample code on how to do it??
Regards
Sujai
2008 Aug 08 8:50 AM
Suijai,
are you using an POS/DM Interface ?
We are using the FIDCC2 (Basistype FIDCCP02) through POS/DM.
Tcode: /POSDW/MON0
Regards,
Gordon
Edited by: Gordon Breuer on Aug 8, 2008 9:51 AM
2008 Aug 08 8:55 AM
my requirement is that i have to send the vendor invoices to the other system. With the fields that the client has given us, the idoc FIDCCP02 seems the best fit. So i just wanted to go ahead and try sending an idoc and check the values that are being populated in the segments.
Suggestions for other idocs are welcome.
Also kindly let me know how i can send the existing data from sap to the other system as well.
Sujai
2008 Aug 08 9:01 AM
Just have a look at the INVOIC0x IDoc Type.
There a lot of ways to send IDocs from one system to another SAP System.
1. IDoc Test/Copy with tcode: WE19
2. Through "repeat output" in the invoice
3. For masterdata ... there a several tcodes beginning with BDxx (example BD10 = Material)
This is a small list of ways to send IDocs, for more info please go through the BIT300 SAP training.
2008 Aug 08 9:21 AM
Hi Sujai,
First you have to fill the your data into a table which is like the structure of EDIDD.Here you have to fill the all segmetns in the sequence which defined in the idoc type only other wise you will get error 26.
Then pass the control record data in the structure like EDIDC here you have to fill the sender,receiver,partner profile,idoc type message type like stuff.
Then pass these table and structure to the function module MASTER_IDOC_DISTRIBUTE.
Then idoc will created by above funciton module.
If you want pass data in xml format then you have to create xml port in we21 and pass this port name in the EDIDC structure.
Thanks,
radha.
2008 Aug 08 9:40 AM
Thanks Gordon and Radha,
I have checked the BDXX transactions that would send the master data. But in my case i now hav to send the transaction data i.e invoices. I am supposed to send customer and vendor invoices. The idoc INVOIC02 is ok for the customer invoice but in the case of vendor invoice i dont think this would work, so i wanted to try FIDCCP02.
Will the FM MASTER_IDOC_DISTRIBUTE work even for transactional data?
a small sample code for using this FM would be very much appreciated.
Sujai
2008 Aug 08 10:15 AM
No !
You have to use FM like IDOC_OUTPUT_INVOIC*.
For FIDCC2 in POS/DM youcan use BADI: /POSDW/TASK.
2009 Feb 27 2:09 PM