Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to trigger FIDCCP02 idoc for outbound vendor invoices?

Sujai
Participant
0 Kudos
1,185

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

9 REPLIES 9

Former Member
0 Kudos
285

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.

0 Kudos
285

thanx Radha,

Could you send me a sample code on how to do it??

Regards

Sujai

0 Kudos
285

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

0 Kudos
285

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

0 Kudos
285

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.

0 Kudos
285

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.

0 Kudos
285

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

0 Kudos
285

No !

You have to use FM like IDOC_OUTPUT_INVOIC*.

For FIDCC2 in POS/DM youcan use BADI: /POSDW/TASK.

Sujai
Participant
0 Kudos
285

closisng thread