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

Inbound scenario: Z inbound function module

achim_pellen
Associate
Associate
0 Likes
1,521

Hi chaps,

I have a standard Idoc Type that should be processed by an individual inbound function module.

The processcode is BAPI as the IDoc is mapped to a BAPI.

I thought I could use the message code or function. But the standard inbound function module BAPI_IDOC_INPUT1 is executed (at least in WE19) all the time.

Can somebody please tell me how I can trigger my Z inbound function module?

Thanks.

Achim

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
947

Hi Achim,

If you want to process the IDOC with the help of your custom function module, then you need to following things:-

1. Create the custom function module

2. Assign the function module to the Message Type in WE57 transaction

3. Define Setting for the custom function module in BD51 transaction

4. Create a new Process Code in WE42 transaction

5. Assign this new Process in the PArtner profile in WE20 transaction

Once you complete all the above steps then you can process your IDOC with your custom function module automatically.

If you want to use WE19 transaction to test the IDOC with your custom function module you can follow the below steps as well:-

1. Create your IDOC using WE19 transaction

2. Click the button Inbound Function module and then give your custom function module and click the tick mark in the pop up.

By doing the above 2 steps you can test whether your function module is correctly working or not as well.

Thanks,

Mahesh.

3 REPLIES 3
Read only

Former Member
0 Likes
947

Hi,

You need to first create your own Inbound FM by Copying any standard Inbound FM so as to ensure that the Standard Interfaces of the FM should not get disturbed.

After this:

Goto WE57- Assign of Function Module to Logical Msg Type and IDOC Type.

Goto WE42 u2013 Define Inbound Process Code .

Create your Own Partner Profile and give your Custom FM behind the Process Code.

Now when you run WE19, give this Partner Profile Only to use your Own Inbound FM.

Read only

Former Member
0 Likes
948

Hi Achim,

If you want to process the IDOC with the help of your custom function module, then you need to following things:-

1. Create the custom function module

2. Assign the function module to the Message Type in WE57 transaction

3. Define Setting for the custom function module in BD51 transaction

4. Create a new Process Code in WE42 transaction

5. Assign this new Process in the PArtner profile in WE20 transaction

Once you complete all the above steps then you can process your IDOC with your custom function module automatically.

If you want to use WE19 transaction to test the IDOC with your custom function module you can follow the below steps as well:-

1. Create your IDOC using WE19 transaction

2. Click the button Inbound Function module and then give your custom function module and click the tick mark in the pop up.

By doing the above 2 steps you can test whether your function module is correctly working or not as well.

Thanks,

Mahesh.

Read only

achim_pellen
Associate
Associate
0 Likes
947

Thanks to both of us.

Problem solved!!

Achim