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: 

Idoc error 51 - "Function module not allowed - APPL_IDOC_INPUT1'

Former Member
0 Kudos

Hello everyone,

We are uploading GL balances from legacy to SAP using the LSMW Bapi

object - bus6035

method - post

message type - ACC_DOCUMENT

Basic type - ACC_DOCUMENT03

When we run the lsmw, idoc is created, however with an error 51 saying

"Function module not allowed - APPL_IDOC_INPUT1'

The partner no. is the logical system (the system on which the lsmw is executed)

In the partner profile, we have defined this as LS. In the inbound parameters, we have defined message type = ACC_DOCUMENT, the process code is APL1 and the corresponding function module is - APPL_IDOC_INPUT1

Please let me know if we are missing something or doing anything wrong ?

Since the data in the LSMW will be read frmo a file on the presentation server, do we need to have a port configuration for the same ?

Thanks,

Sushil Joshi`

4 REPLIES 4

uwe_schieferstein
Active Contributor
0 Kudos

Hello Sushil

The long text of message B1(252) is quite informative for error analysis:



 NA B1252
 ____________________________________________________
 Short Text
     Function module not allowed: &
 Diagnosis
     The function module  and the application object type  which were
     determined are not valid for this IDoc.
 Procedure
     1.  Please check that the process code in the  inbound partner profile
         is correct.
     2.  If this is the case, you should check the ALE inbound methods ALE
         inbound methods for the process code and see whether the specified
         function module and application object type are correct.
     3.  If this is also the case, then the function module and the
         application object type are not permitted for the logical message
         type, message variant, message function and basis type that are
         contained in the IDoc control record. You should check whether the
         correct values have been assigned to these fields in the control
         record. If they do have the correct values, then the assignment to
         the function module and the application object type needs to be
         maintained.

On ECC 6.0 this long text contains 3 transactions for analysis:

- WE20
- BD67
- WE57

Regards

Uwe

0 Kudos

Hi, try using the process code BAPI.

0 Kudos
- WE20
- BD67
- WE57 

Helpful response!

Former Member

Re-check WE57.

Ensure that the BASIC TYPE matches the IDOC that you are trying to process.

The same Custom Function Module can be entered several times for example:

Z_3SO_IDOC_INPUT_MATMAS01 F Function module MATMAS01 MATMAS BUS1001006

Z_3SO_IDOC_INPUT_MATMAS01 F Function module MATMAS03 MATMAS BUS1001006

Adding a record for MATMAS03 resolved the error for me.