cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI-ALE Interface : Function module not allowed: BAPI_IDOC_INPUT1

Former Member
0 Kudos

Hi

I am creating a BAPI-ALE interface, in order to invoke BAPIs assynchronously (using IDOC as interface).

I am having some problems to make a preliminar test (without xi), using WE19. When I check IDOC status in WE05, they appear with error:

Function module not allowed: BAPI_IDOC_INPUT1

In WE21 I configured this idoc with process code=BAPI and trigger immediately.

Any ideas?

Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

MichalKrawczyk
Active Contributor
0 Kudos

hi,

what kind of idoc you're using?

Regards,

michal

Former Member
0 Kudos

Inbound.

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

yes but what's the idoc type?

check in TCODE WE57 if your message

(basic type, message code)

is assigned to this BAPI_IDOC_INPUT1

Regards,

michal

Former Member
0 Kudos

Hi Michal

This is what I got in WE57:


Function module    BAPI_IDOC_INPUT1
Function type
Basic type         ZCUSTOMER_ZBAPICUSTOMERCHANG01
Extension
Message Type       ZCUSTOMER_ZBAPICUSTOMERCHANGEF
Message Variant
Mess. function
Object Type


Direction
Description     Versão simplificada
Name

These parameters where automatically generated by BDBG.

What smells bad is that Object Type is blank. Perhaps it should be ZKNA1 (This is the object that I create in SOW1).

Regards.

Former Member
0 Kudos

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.

The problem is not object type.

regards

SKM

Former Member
0 Kudos

Hi SKM


This is what I got in TBDBE
===========================

MESTYPE       ZCUSTOMER_ZBAPICUSTOMERCHANGEF

OBJECTTYPE    ZKNA1
METHOD        ZBAPICUSTOMERCHANGEFROMDAT1
IDOCTYPE      ZCUSTOMER_ZBAPICUSTOMERCHANG01
FNAME INB     ZIDOC_INPUT_ZCUSTOMER_ZBAPICUS
UPDATETASK    X
IN PACKAGE


And this in BDBG:
=================

Generate ALE Interface for BAPI

Message type
   ZCUSTOMER_ZBAPICUSTOMERCHANGEF
     ZCUSTOMER_ZBAPICUSTOMERCHANGEF already exists

IDoc type
   ZCUSTOMER_ZBAPICUSTOMERCHANG01
     ZCUSTOMER_ZBAPICUSTOMERCHANG01 already exists

Segment
   Z1ZCUSTOMER_ZBAPICUSTOMERCH
     Z1ZCUSTOMER_ZBAPICUSTOMERCH already exists
   Z1BPKNA101_1
     Z1BPKNA101_1 already exists
   Z1BPKNA101_1X
     Z1BPKNA101_1X already exists
   Z1BPKNA106
     Z1BPKNA106 already exists
   Z1BPKNA106X
     Z1BPKNA106X already exists

Function Module for Outbound ALE
   ZZ_ALE_CUSTOMER_CHANGEFROMDAT1
     ZZ_ALE_CUSTOMER_CHANGEFROMDAT1 already exists

Function Module for Inbound ALE
   ZIDOC_INPUT_ZCUSTOMER_ZBAPICUS
     ZIDOC_INPUT_ZCUSTOMER_ZBAPICUS already exists

It seems to be correct. What do you think?

Regards.