‎2007 May 18 10:56 AM
Hi,
Currently i am working on an object related to IDOC generation. This is my first object in IDOC's. I am doing it from the scratch including creation of segments, IDOC type, message type, process codes...
In this process, I am developing a function module that should be assigned to the process code. My doubt here is, is there any standard interface to the function module that we have to assign to the process code?
I am also giving the flow which i will be using in developing the Function module. Please go through it and kindly let me know if I am doing it in the right way or not?
1. Extract data from data base based on the entry in NAST
2. Filling IDOC DATA & Control records
3. Calling the FM MASTER_IDOC_DISTRIBUTE to generate the IDOC
Please suggest me whether i am doing it in the correct way or not?
Thanks in Advance,
Best Regards,
Phani
‎2007 May 18 11:15 AM
Hi,
U need to do the following configurations when u r using Zmessage type,basic type and function module for inbound.
1>WE81
2>WE31
3>WE30
4>SE37(Create the Z fucntion module)
5>BD51(Attach the FM)
6>WE57(Attach the FM to message and basic type)
7>WE42(Attach the FM to the process code).
U can directly attach ur FM to the process code before that there should be an entry in BD51.
Regards,
nagaraj
‎2007 May 18 11:15 AM
Hi,
U need to do the following configurations when u r using Zmessage type,basic type and function module for inbound.
1>WE81
2>WE31
3>WE30
4>SE37(Create the Z fucntion module)
5>BD51(Attach the FM)
6>WE57(Attach the FM to message and basic type)
7>WE42(Attach the FM to the process code).
U can directly attach ur FM to the process code before that there should be an entry in BD51.
Regards,
nagaraj
‎2007 May 18 11:52 AM
Hi Nagaraj,
Thanks for the reply...
Is there any standard interface to be followed while creating the function module to assign it to the process code?
Regards,
Phani.
‎2007 May 18 11:27 AM
I'm confused as to whether this is an Inbound or Outbound process and they are very different.
An Outbound IDOC process doesn't have a process code, you forward the IDOC to an tRFC port instead.
If memory serves me correctly, MASTER_IDOC_DISTRIBUTE is for outbound only
‎2007 May 18 11:51 AM
Hi Chris,
This is an outbound interface. But as per the requirement, i have to attach it to a process code.
Regards,
Phani.
‎2007 May 18 12:03 PM
Hi,
For outbound u need to attach ur FM to the process code in WE41 tcode..I think u r using message control method for ur requirement.please look at the configurations for outbound using message control method.we use we41 (outbound process code) and we use this in the message control tab in the partner profiles.
The transaction codes that are required for this method are
We81
We30
We31
We82
We21
We20
Bd64
Nace
Me22n (purchase order), va02 (sales order) etc.
Ex: purchase order.
Message type: ORDERS
Idoc type: ORDERS05
Outbound process code for purchase order: me10
Regards,
Nagaraj