cancel
Showing results for 
Search instead for 
Did you mean: 

Process code in IDoc processing

jonathanzhang2
Active Participant
0 Kudos

Hi!

I can use WE42 to define my own process code, for example ZINV, but where to define its 'behaviour',

which is maybe coding or anything else?

Many thanks,

Aries

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Aries,

You define the partner profiles for Idoc in the transaction WE20.

When the Inbound parameters are declared here, you can specify the process code here which will be mapped to the relevant function module.

Regards,

Anupama Lal

jonathanzhang2
Active Participant
0 Kudos

Hi Anupama,

I think you have misunderstood me.

I know in partner profile, I can assign the process code against the message type.

I would like to know I can use WE42 to define my own process code. But in WE42, when I assign a function module to my process code, I cannot find my self-defined function module in the dropdown list. How can I assign my owe FM to the process code.

Regards,

Aries

Lakshmant1
Active Contributor
0 Kudos

Hi Aries,

Use transaction WE57, to assign the function module to the logical message and the IDOC type. Also specify the direction whether it is inbound or outbound.

Thanks

Lakshman

jonathanzhang2
Active Participant
0 Kudos

Hi Lakeshman,

Thanks for your help.

When define my own process code in WE42, there is a step that assign a function module to my process code at Identification field, but I cannot find my self-defined function module in the dropdown list.

What is the relationship between WE57 and WE42?

And in WE20 inbound processing, there is no basic type just process code, which seems inconsistent to WE57.

Regards,

Aries

jonathanzhang2
Active Participant
0 Kudos

And also I have assigned my own-defined FM in WE57, but I still can not find the FM in the dropdowm list in WE42.

Lakshmant1
Active Contributor
0 Kudos

Hi Aries,

Check for the direction ( Inbound/Outbound - 1/2) You have selected in WE57. depending on that the function module will come in F4 in we42.

Thanks

Lakshman

jonathanzhang2
Active Participant
0 Kudos

Hi Lakshman,

I set it for inbound in WE57, but I can not find in WE42.

And I try to set it for outbound, still I can not find in WE42.

Regards,

Aries

Lakshmant1
Active Contributor
0 Kudos

Hi Aries,

Please create an entry in the table TBD52 (Function modules for inbound ALE-EDI)from SM30 transaction.

Then it will come in F4 of WE42.

Thanks

Lakshman

jonathanzhang2
Active Participant
0 Kudos

Hi Lakshman,

Thank you again.

But in table TBD52, the function module means you have assign a FM to process code in WE42.

That is to say, if you assign a FM to process code in WE42, then this record will show in table TBD52.

It is not what I wanted in drop down list.

Regards,

Aries

Lakshmant1
Active Contributor
0 Kudos

Hi Aries,

If you create an entry for inbound function modules, then while assiging the FM to the process code the fm gets display in F4 help otherwise not.

You first create entry in TBD52 and then try to assign process code to FM. It will work.

Thanks

Lakshman

jonathanzhang2
Active Participant
0 Kudos

Hi Lakshman,

I am not allowed to key in my own FM in table TBD52 in SM30 but only SAP standard FM can be entered.

Regards,

Aries

Lakshmant1
Active Contributor
0 Kudos

Hi Aries,

You might also have missed an entry in the transaction BD51.

Create an entry in BD51 Transaction with direction 0/1/2. Most of the cases 1 is used.

Try it and let me know.

Thanks

Lakshman.

jonathanzhang2
Active Participant
0 Kudos

Hi Lakshman,

Finally it succeeds.

Thank you very much for your continuous help.

Regards,

Aries

Answers (0)