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

Doubt in IDOC's - Process Codes

PS_1978
Active Participant
0 Likes
574

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

1 ACCEPTED SOLUTION
Read only

former_member404244
Active Contributor
0 Likes
536

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

5 REPLIES 5
Read only

former_member404244
Active Contributor
0 Likes
537

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

Read only

0 Likes
536

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.

Read only

Former Member
0 Likes
536

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

Read only

0 Likes
536

Hi Chris,

This is an outbound interface. But as per the requirement, i have to attach it to a process code.

Regards,

Phani.

Read only

former_member404244
Active Contributor
0 Likes
536

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