‎2007 Aug 15 11:59 PM
Hi
I have gone through the previous threads and found the steps as below for creating the custom idoc.
1>WE81(create z mesagetype)
2>WE31(Create Z segment)
3>WE30(Create zbasictype)
4>se37(create ur own function module)
5>WE57(attach ur function module to ur message and basictype)
6>BD51(Attch ur z function module)
7>WE42(Create ur own process code)
8>WE20(Partner profiles)
Could you plz tell me abt 7th step ?? What is the meaning of....... create your own process code ?? what is the purpose of this code ??
And regarding 4th step.......what is the use of function module ?? In what way function moudle and process code are different ?? what are their functionality ??
Thanks
Kumar
‎2007 Aug 16 12:22 AM
Process code is one where you associate your function module to be triggered while processing the IDOC.
The process type determines which process is used to convert an IDoc to an SAP document.
You use transaction WE41 and WE42 for outbound and inbound Idoc's.
Check the following links
http://help.sap.com/saphelp_erp2004/helpdata/en/04/25fbd39e3511d188da0000e8216438/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
Thanks
Seshu
‎2007 Aug 16 12:22 AM
Process code is one where you associate your function module to be triggered while processing the IDOC.
The process type determines which process is used to convert an IDoc to an SAP document.
You use transaction WE41 and WE42 for outbound and inbound Idoc's.
Check the following links
http://help.sap.com/saphelp_erp2004/helpdata/en/04/25fbd39e3511d188da0000e8216438/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
Thanks
Seshu
‎2007 Aug 16 12:54 AM
Hi Seshu,
Appreciate your reply! Before going through the help links you provided could you plz tell me what the function modules do ?? I am new to this area and this will enable to correlate the things while going throug the help.
Thanks
Kumar
‎2007 Aug 16 2:04 AM
Okay..
Let me explian you one scenario.
suppose take purchase order ,when we create purchase order ,i want to send idoc to other system.
so purchase order will output type ( Standard NEU) -> you can find in NACE Transaction.
we will setup partner profile for vendor,here we have to use idoc type,message type,output type ,process code.
as soon as process code knows the FM will trigger,this FM will format the data as like idoc format ,within this fm uses segments ,idoc type and validate based on message type.
idoc_output_orders is the fm for purchase order outbound,this fm links with process code.
logically process code contains fm ,and also message type ,message type contains idoc type,idoc type contains segments.segments contain list of fields.
I hope you got it.
Thanks
Seshu
‎2007 Aug 16 4:42 AM
Hi..
IN ALE or EDI distribution
Process Code: Identifies the Function Module or Workflow that has to be called to process the IDOC.
Process codes are 2 types:
1. Outbound process codes : these are created in Tcode WE41.
Outbound process code is Linked to a FM that generates the IDOC in outbound processing. We will assign process code in Outbound only when we use the Message Control. In the Partner profiles you can see the Tab Message control for an Outbound Message type .
2. Inbound Process Code. these are created in Tcode WE42.
Inbound process code is Linked to a FM that will Post the IDOC in Inbound processing. We have to always assign Inbound process code.
For Eg: MATM is an Inbound process code that calls the FM IDOC_MATMAS_INPUT01
Reward if Helpful