04-01-2008 2:21 AM
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`
04-01-2008 4:36 AM
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
11-11-2009 11:20 PM
02-03-2022 3:56 PM
12-03-2009 8:56 PM
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.