cancel
Showing results for 
Search instead for 
Did you mean: 

inbound idoc processing status code 51 desperate for help

Former Member
0 Kudos

when i do inbound idoc processing i get a status code 51 which says function module not allowed APPL_IDOC_INPUTI

my idoc is as follows

EDI_DC40 4010000000000631821620 3012 MBGMCR02 MBGMCR MBGMCRSAPS08 LS ABC02 INTERNAL LS ABC01 20060724100835

E2MBGMCR000 401000000000063182100000100000001

E2BP2017_GM_HEAD_01003 401000000000063182100000200000001

E2BP2017_GM_CODE000 401000000000063182100000300000001

E2BP2017_GM_ITEM_CREATE002 401000000000063182100000400000002

E2BP2017_GM_ITEM_CREATE1001 401000000000063182100000500000403

E2BP2017_GM_SERIALNUMBER000 401000000000063182100000600000002

so i think i need to link fm appl_idoc_inputi to process code mbgmcr

in we57 i see fm appl_idoc_inputi basic type mbgmcr02 message type mbgmcr

now i am going into we42 inbound processing codes and trying to add mbgmcr and i am getting choose the key from the allowed namespace.

i am desperately trying to get rid of the status code 51 but i do not know how

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Janice,

check this FM: IDOC_INPUT_MATMAS01 attached to the process code .

Go to the transaction : WEDI , here you have step by step transactions to be used for configuring the inbound and outbound IDOC's.

for inbound idoc settings

in WEDI transaction follow development->inbound processing settings -> inbound process code option (WE42)

while creating the process code , select processing by function module option from processing type, then click on the identification and select the function module.

and also check

Go to SE16 --> table TBDBE, check whether your message type has a record. Then go to BDBG and check whether correct function module is assigned.

Hope this helps you out! Please let me know.

cheers,

Prashanth

P.S: Please mark all helpful answers

Former Member
0 Kudos

Janice,

You are trying to create a process code in SAP's namespace. Try giving a name beginning with Z e.g. Zmbgmcr, choose processing type as Function Module on next screen and input the FM appl_idoc_inputi.

Now while defining the inbound partner profile , specify process code Zmbgmcr against the idoc type mbgmcr02 and msg type mbgmcr.

CHEERS

Amit

Former Member
0 Kudos

In WEDI Development - inbound process setting -message application object

i see

FM Name IDOC_INPUT_MBGMCR

Basic Type MBGMCR02

Message MGBMCR

Bus Object BUS2017

in SE16 table TBDBE I see

MBGMCR Method CREATEDATAFROM

IDOC Type MBGMCR02

FNAME_INB IDOC_INPUT_MBGMCR

When i go to BDBG i see

Message type MBGMCR

Function module for inbound ALE IDOC_INPUT_MBGMCR

if i go into we42 and try to enter a new entry MBGM

and try identification IDOC_INPUT_MBGMCR for processing by function mode i get choose the key from the allowed namespace

so is this where i type in ZMBGM and then how do i hook everything else up

if i go to we19 and try "Standard Inbound" for MBGMCR with recipient port saps08 partner abc01 and sender port saps08 partner abc02

i get STATUS 51 FUNCTION MODULE NOT ALLOWED APPL_IDOC_INPUTI

I know somewhere i am missing something but for the life of me i do not know what

Former Member
0 Kudos

Hi,

I think the FM BAPI_IDOC_INPUT1 is the Inboung FM against the Message type MBGMCR and not APPL_IDOC_INPUT1 .you can check the FM names in WE57 where a FM is linked to the Logical Meaage type.

while creating the Process code also ithink u need to provide this FM name.

Regards,

soha

Former Member
0 Kudos

Hi janice,

Instead of creating a new entry in WE42 , u can use the process code BAPI which is linked to the FM BAPI_IDOC_INPUT1 which inturn calls the FM IDOC_INPUT_MBGMCR .

Finally in WE19 , provide BAPI IDOCINPUT1 as the func module and try.

hope this will help .please reward if u find it useful.

regards,

Soha