cancel
Showing results for 
Search instead for 
Did you mean: 

Error at SMQ2 FM-IDX_XML_TO_IDOC call failed

Former Member
0 Kudos

HI All,

We are working with a scenario IDOC flat file(coming to PI through JMS adapter) to IDOC XML and for this we are using ABAP mapping.

when we are triggering message from  JMS MQ server ,message coming to PI and waiting at  MONI with status "recorded for outbound processing" at “receiver grouping ” step of pipeline.

But it is giving us an error at SMQ2  “FM-IDX_XML_TO_IDOC call failed”.

We tried to find similar post in SDN and  what we understood that function module which giving us an error at SMQ2  is used in IDOC XML to IDOC flat file conversation. And we are not even calling this function in our Mapping class.

Even mapping step is  not get called in Pipeline.

We have 2 more scenario using same mapping class and working file .

Do any one have any clue on this error.

Regards,

Navneet

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI All,

After some debugging we  found the issue is with encoding.

We removed all special char from the source and now message is not stopping  at SMQ2. else it is failing at Mapping program and giving exactly same error as SMQ2 .

but here we are finding another issue.

When we are routing MQ messages to our Dev box it is working fine and  no error at mapping .but when we route same payload to our QA box it is failing at mapping(same error).

we have checked every thing and there is no difference in between QA and Dev box code. all the channel have same configuration.

Is in PI we are defining any encoding at system level.

As of I know PI support UTF-8 encoding.

Regards,

Navneet

former_member184681
Active Contributor
0 Kudos

Hi Navneet,

If you are absolutely sure that your configuration in Dev and QA is identical in PI, then there is only one conclusion: the connection config in the sender system has to be different across the landscapes. Can you verify that?

And you are right about the encoding, PI uses Unicode.

Hope this helps,
Greg

Former Member
0 Kudos

Thank you all for replying.

We able to resolve our issue.

Please find our solution below

1.    1. Message are failing at queue(SMQ2) due to encoding issue. Input file contain some special char which is not handled. Program internally calling FM “IDX_XML_TO_IDOC” which is failing because inbound file is not in fixed length format due to special char. To solve this we included encoding 1164 to our mapping class. Once done  message reached to mapping step but failing again there.

2.     2. To solve the mapping issue we found that Partner profile at IDX1 is referring to some old RFC destination which is not in use. We changed this to our current system and it is working fine now.

Regards,

Navneet

Answers (2)

Answers (2)

Former Member
0 Kudos

If you are getting this error before mapping, perhaps part of your Integration Builder configuration is wrong and your new message is going to the wrong interface?

Former Member
0 Kudos

HI Aaron,

We checked and routing is correct. No error there.

It is hitting  correct interface.

Regards,

Navneet

Shabarish_Nair
Active Contributor
0 Kudos
Former Member
0 Kudos

Hi Sabrish,

Thanks for reply.

We are not in EPH1. we are using 7.1. so these module is not available here.

That is why we are using ABAP mapping.

Regards,

Navneet

Shabarish_Nair
Active Contributor
0 Kudos

my suggestion.. move to EHP1 and use the standard features provided by SAP.

Also to address your issue immediately, if it is a standard SAP program that is failing, it is better to raise a message with SAP as it could be a potential bug.