‎2006 Aug 09 7:51 AM
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
‎2006 Aug 09 7:56 AM
Hi,
what is the Idoc type and message type you are using.
Regards
vijay
‎2006 Aug 09 7:57 AM
‎2006 Aug 09 8:00 AM
Hi shankar,
1. BAPI_IDOC_INPUT1
2. we can check in WE57 tcode.
regards,
amit m.
‎2006 Aug 09 7:58 AM
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
‎2006 Aug 09 8:00 AM
Hi,
The function module used is <b>BAPI_IDOC_INPUT1</b>.
please check it.
Regards
vijay
‎2006 Aug 09 8:03 AM
‎2006 Aug 09 8:07 AM
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.
‎2006 Aug 09 8:10 AM
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
‎2006 Aug 09 8:44 AM
Hi Vijay
How did you come to that FM just by knowing the IDOC and Message type?
Thanks
‎2006 Aug 09 9:13 AM
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
‎2006 Aug 09 9:22 AM
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?
‎2006 Aug 09 9:36 AM
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
‎2006 Aug 09 8:16 AM
hi,
use WE41, (outbound)
to create the process code, where u can assign FM and msgtype (idoc type)
Regards
Ramakrishna S
‎2006 Aug 09 9:20 AM
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.