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

Idoc - Error Status 51: Incorrect function module called up

Former Member
0 Likes
3,087

Hi,

In the receiver system for the custom message type, I got this error.

Incorrect function module called up

Can any one pls help me to solve this one.

Regards,

Bala Raja

1 ACCEPTED SOLUTION
Read only

KalC
Active Participant
0 Likes
1,343

Hi Bala,

Check the inbound function module attached to process code in receiving system. Generally in every inbound function module first check is coded for checking message type or for checking funciton module like below.In the receiving system go to WE20 and then select the partner and select inbound message type. in that double click on assigned process code.then you have to double click on displayed FM. In that fm check first few lines. You will find this error message.

LOOP AT IDOC_CONTRL.

IF IDOC_CONTRL-IDOCTP(6) <> 'DESADV'.

MESSAGE ID 'E0' TYPE 'E' NUMBER '029'

WITH IDOC_CONTRL-IDOCTP ' ' 'IDOC_INPUT_DESADV'

RAISING WF_ERROR_PROCESS.

ENDIF.

ENDLOOP.

Thanks & Regards,

Kalyan.

3 REPLIES 3
Read only

Former Member
0 Likes
1,343

Hi,

This means either You have used wrong function module which does not match for process which you are using or parameters in that function module are not compatible with it.

Best way is go to transcation WE19 and test the funtion module for the process which you want. There you will come to know whether it is correct function module or not that is to be used.

Reward if useful.

Thanks,

Madhura

Edited by: Madhura Nadgauda on Mar 24, 2008 1:05 PM

Read only

Former Member
0 Likes
1,343

In WE20, patner profile pick up the process code which has been assigned go to we41 inbound process codes and check what is the FM which is assigned to that process code also thhe message type...check if the FM is can post the data you wanted to..

santhosh

Read only

KalC
Active Participant
0 Likes
1,344

Hi Bala,

Check the inbound function module attached to process code in receiving system. Generally in every inbound function module first check is coded for checking message type or for checking funciton module like below.In the receiving system go to WE20 and then select the partner and select inbound message type. in that double click on assigned process code.then you have to double click on displayed FM. In that fm check first few lines. You will find this error message.

LOOP AT IDOC_CONTRL.

IF IDOC_CONTRL-IDOCTP(6) <> 'DESADV'.

MESSAGE ID 'E0' TYPE 'E' NUMBER '029'

WITH IDOC_CONTRL-IDOCTP ' ' 'IDOC_INPUT_DESADV'

RAISING WF_ERROR_PROCESS.

ENDIF.

ENDLOOP.

Thanks & Regards,

Kalyan.