Application Development 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: 

Error - Function module not allowed

Former Member
0 Kudos

Hi! All

While testing IDOC in WE19 (Start Inbound) able to confirm the Partner and create the IDOC. when i check the status in WE02 status is 51 - Function module not allowed:"Function Module Name"

i have used the following code in Function Module.

read table idoc_control index 1.

LOOP AT idoc_data WHERE docnum EQ idoc_control-docnum.

wa_segment = idoc_data-sdata.

MOVE-CORRESPONDING wa_segment TO it_jitdet.

INSERT INTO zsdt_jit_det VALUES it_jitdet.

ENDLOOP.

Created Inbound Process code in WE42

Assignedd Function Module and Basic type in WE57

Assigned Function Module in BD51.

How to clear this.

Regards

Kv

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

Please use FM IDOC_INBOUND_SINGLE to test idoc.

Regards,

Narendra

5 REPLIES 5

dev_parbutteea
Active Contributor
0 Kudos

HIi,

you need to :

- BD82 assign message type to idoc basic type (if not already done )

- BD51 FM

- WE57 FM asignment to basic type

- WE42 process code

If it still doesnt work maybe you ae using the wrong FM..

Former Member
0 Kudos

Hi

Please use FM IDOC_INBOUND_SINGLE to test idoc.

Regards,

Narendra

Former Member
0 Kudos

Hi...

From the error it is clearly understood , the FM you are using for inbound is not the correct one.

try with " IDOC_INPUT_DEBITOR".

Regards,

Lokeswari

0 Kudos

Thanks for your reply.

while executing the FM : IDOC_INPUT_DEBITOR getting the Exception as "WRONG_FUNCTION_CALLED"

whats the mistake i have done. kindly help me top solve this issue.

Regards

Kv

Former Member
0 Kudos

hi! All

while creating IDOC through WE19 - Start Inbound it creates IDOC with Status - 64."IDoc ready to be transferred to application" "No filters , No conversion , No version change ."

Thus try to re-send the IDOC through the Program - RBDAPP01 it troughs DUMP error

Incorrect parameter with CALL FUNCTION

This parameter was "MASSAVEINFOS".

but i have Included this parameter in my Function module.

INPUT_METHOD TYPE INPUTMETHD

MASS_PROCESSING TYPE MASS_PROC

NO_APPLICATION_LOG LIKE SY-DATAR

MASSAVEINFOS LIKE MASSSAVINF

whats the mistake i have done.

Regards

Kv