‎2009 Aug 26 6:45 PM
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
‎2009 Aug 27 1:44 PM
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.
‎2009 Aug 26 7:27 PM
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.
‎2009 Aug 27 1:44 PM
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.
‎2009 Aug 27 2:08 PM