Application Development and Automation 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: 
Read only

Partner Profile error, Incorrect Function Module called

Former Member
0 Likes
2,286

Hello,

Below is the error i am getting for CREMAS05 Idoc, with Message Type: CREMAS and Process Code: CRE1, which is set in WE20.

The data is coming from an Non SAP system, via SAP PI, Sender is sending a SOAP Message, and PI converts it to IDoc for the SAP system.

Incorrect function module IDOC_INPUT_CREDITOR called up Message no. B1044

Any help would be appreciated.

Regards,

Abhishek

14 REPLIES 14
Read only

vijaymanikandan
Contributor
0 Likes
1,850

Hi

Can you check if you are using the right process code configurations? There are chances that the configuration of the process code is causing this problem since this is from where the function modules are determined. Mainly this can come when the object type in the IDOC packet is not right,.

Br,

Vijay V

Read only

0 Likes
1,850

Hello,

If i use the testing Idoc, that WE19, it workd fine, but when i actually test the scenario that is from the Non SAP system to out SAP system. that is when i get the error.

Regards,

Abhishek

Read only

0 Likes
1,850

Hello Ahishek

It is surely the ALE configurations that you have to check and that too as I said the process code and partner profile only.

Br

Vijay V

Read only

0 Likes
1,850

Hello,

I have verified all the setting, for WE20, its working, WE19 but if I do an end to end test. that is when i get the error.

Regards,

Abhishek

Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,850

Check this link

http://scn.sap.com/thread/1723614

Nabheet

Read only

0 Likes
1,850

Its the config error. Please search for this message one of the links i have mntioned my last post.

Nabheet

Read only

0 Likes
1,850

Hello,

I have gone through the link for INFREC, details.

Regards,

Abhishek

Read only

0 Likes
1,850

have u checked the process code configuration and is everything fine there. i had similar issue and the problem was there only.

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,850

Hello Abhishek,

I cross checked the corresponding settings for message type CREMAS & they are same as you've mentioned!

What is the basic type of the IDoc posted by PI - viz., CREMAS01, CREMAS02 etc.?

Btw which version of SAP are you working on? If you're on ECC6.0 , can you check the status of the switch OI0_SERVICE in SFW1(Transaction).

BR,

Suhas

Read only

Former Member
0 Likes
1,850

Hello,

We are using CREMAS05, but when we change to CREMAS04, it started worked, but the application is not posting the idoc and not providing any error in the status of the idoc, just 51, application doc not posted

Even processing the failed IDoc in we19, bd78 or bd75, it still no error in status, just 51 application doc not posted

Regards,

Abhishek

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,850

Hello Abhishek,

I had asked a couple of questions in my previous post, did you check those in your system? In ECC6.0 there is this enhancement implementation - OI0_SAPLKD02 - which raises the exception WRONG_FUNCTION_CALLED if the message type CREMAS05 is used:

   ENHANCEMENT 7  OI0_SAPLKD02.    "active version
IF SY-SUBRC <> 0.
    EXIT.
  ELSEIF F_IDOC_CONTRL-IDOCTP <> 'CREMAS01'
     AND F_IDOC_CONTRL-IDOCTP <> 'CREMAS02'
     AND F_IDOC_CONTRL-IDOCTP <> 'CREMAS03'             "mi/46a
     AND F_IDOC_CONTRL-IDOCTP <> 'CREMAS04'             "\BE 4.70
     AND F_IDOC_CONTRL-IDOCTP <> 'CRECOR01'               "ANI OIL
     AND F_IDOC_CONTRL-IDOCTP <> 'OILCRE01'               "ANI OIL
     AND F_IDOC_CONTRL-IDOCTP <> 'OILCRE03'               "ANI OIL
     AND F_IDOC_CONTRL-IDOCTP <> 'OILCRE04'.              "ANI OIL
RAISE WRONG_FUNCTION_CALLED.
  ENDIF.

ENDENHANCEMENT.

That's why i had asked you to check the status of the Enhancement switch OI0_SERVICE.

BR,

Suhas

Read only

Former Member
0 Likes
1,850

Hello Suhas,

Thank you for the reply.

We are on ECC6.0 and the OI0_SERVICE is active. SFW1 transaction.

Our scenario is to create vendor master along with its address that CREMAS + ADRMAS. For which we have done all the ALE configuration on the ECC side and the PI, we have used two message mapping that is CREMAS and ADRMAS, with a common data type created which provide data to both Idoc's. and in the Integration Directory, we have used two receiver agreements, one for CREMAS and ADRMAS, and maintain order at runtime is used, so that ADRMAS is posted first and then, CREMAS.

While ADRMAS is posted without any error, the CREMAS goes in status 51, without any error message.

Any help would be appreciated.

Regards,

Abhishek

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,850

Hello Abhishek,

Atleast one part of the problem is clear - why the process code CRE1 was giving the invailid function called?

Can you check why this switch is activated? Is your system an IS-Oil implementation?

BR,

Suhas

Read only

Former Member
0 Likes
1,850

Hello,

As far as i know, it is an IS-Oil Implementation.

How do we correct the error then,

Regards,

Abhishek