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 IDocs Error 51 - Process Code issue?

Former Member
0 Likes
1,628

Hi

I have created a custom FM ZFM_IDOC_INB_PROCESS and Message type ZACC_GL_POSTING. I use the standard IDoc type ACC_GL_POSTING01.

Followed the steps:

Assign msg typ ZACC_GL_POSTING to idoc ACC_GL_POSTING01 in WE82

Assign FM ZFM_IDOC_INB_PROCESS to msg typ ZACC_GL_POSTING & idoc ACC_GL_POSTING01 in WE57

Adding the Msg Typ ZACC_GL_POSTING in inbound parameter with process code BAPI.

All inbound IDocs fail with status message 51 - Function module not allowed: BAPI_IDOC_INPUT1

When the inbound idoc comes, I need to trigger ZFM_IDOC_INB_PROCESS.

What process code can I use for triggering my custom FM?

Should I need to create a process code for my FM in WE42?

CheerRs....

4 REPLIES 4
Read only

Former Member
0 Likes
681

Based on search in forums, I think I need to create a new Process Code in WE42 for triggering my Custom Function Module.

If I use BAPI, it will trigger the BAPI_IDOC_INPUT1 only.

But, I want to know if it is advisable OR the only way to create custom PROCESS CODE....??

Cheers

Read only

Former Member
0 Likes
681

This will definitely help:

http://www saptechnical com/Tutorials/ALE/DataDistributeCustomIDOC/page1.htm

Read only

Former Member
0 Likes
681

Hi,

Inbound Idocs Error 51 means something wrong with the data that you are trying to load.

It contains the error message that the load failed on.

So, try reposting it via transaction BD87.

Read only

Former Member
0 Likes
681

Resolved by self. Created a new Process Code using WE42 and done.