Application Development and Automation 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: 
Read only

Triggering IDOC Function Module

Former Member
0 Likes
5,765

Hi all

I want to send to data from SAP through idoc.how should i trigger the corresponding function module of idoc to populate the data in to idoc.

regards

shankar

14 REPLIES 14
Read only

Former Member
0 Likes
2,858

Hi,

what is the Idoc type and message type you are using.

Regards

vijay

Read only

0 Likes
2,858

idoc is standard sap IDOC QPMK and idoc is QPMK01

Read only

0 Likes
2,858

Hi shankar,

1. BAPI_IDOC_INPUT1

2. we can check in WE57 tcode.

regards,

amit m.

Read only

Former Member
0 Likes
2,858

HI Shankar

Please follow the configarion done is SALE transaction

and it depents on data your sending for example for material use BD10 for custmer BD12 for vender us BD14

REgds

saradhi

Read only

0 Likes
2,858

Hi,

The function module used is <b>BAPI_IDOC_INPUT1</b>.

please check it.

Regards

vijay

Read only

0 Likes
2,858

i want to know how it will trigger automatically

Read only

0 Likes
2,858

Hi again,

1. That mapping is done in tcode

WE42 - Define Process Code

2. There is a Code (process code)

whenever a certain type of idoc is received.

3. To that incoming code,

is attached the FM. (for automatic triggering)

regards,

amit m.

Read only

0 Likes
2,858

Hi,

using process code we can trigger, it comes in the part of configuration.

we41 is for Outbound process code configuration

we42 is for inbound process code configuration

Regards

vijay

Read only

0 Likes
2,858

Hi Vijay

How did you come to that FM just by knowing the IDOC and Message type?

Thanks

Read only

0 Likes
2,858

Hi,

Go to the Table <b>EDIFCT</b> , here enter the IDoc type and look for the Table entries, here you can see the Function name.

Regards

vijay

Read only

0 Likes
2,858

Thanks again Vijay:-)

But can you please tell me how did you come to know that this table stores the message types FM and IDOC types?

Read only

0 Likes
2,858

Hi,

<b>VEDIEDIFCT</b> view is used to maintain the FM , idoc , message type etc. that is for EDIFCT table.

this is a part of Configuration, we will maintain this in the part of configuration.

Regards

vijay

Read only

former_member206396
Active Participant
0 Likes
2,858

hi,

use WE41, (outbound)

to create the process code, where u can assign FM and msgtype (idoc type)

Regards

Ramakrishna S

Read only

tobiaskugelmann
Explorer
0 Likes
2,858

Hi,

the outbound IDoc should be created automatically?

That's not possible in fact. You have to trigger some output (FB MESSAGING) and define a corresponding output.

The other possibility would be to read the processing code to find the underlying FM and if you give this the data neeeded it would return an created idoc (in internal tables) with those you have to call FM MASTER_IDOC_DISTRIBUTE (with commit work afterwards) so the IDocs is sent.