cancel
Showing results for 
Search instead for 
Did you mean: 

SMQ1 entries in ECC for IDoc interface SAP PO single stack

ramu_g4
Participant
0 Kudos

Hi Experts,

We are working on IDoc --> File scenario in SAP PO 7.5 version which is recently installed. During batch processing of IDocs from SAP ECC to PO 7.5 system & IDoc messages are getting stuck in ECC SMQ1 with error as below.

When we manually "Execute LUW" on the SMQ1 entries then they are getting processed to PI. But this error is not occurring when we trigger only one IDoc. Kindly help on this.

Thanks,

Ramu.

Accepted Solutions (0)

Answers (8)

Answers (8)

sugata_bagchi2
Active Contributor
0 Kudos

Hello Ramu,
As per the error log, I can see it is failing for a single cluster and you have a multi clustered environment.

It might be an issue with the JCO connection not started or the queues are not active for that cluster.

May be it is also an issue with the connection definition / timeout for the messaging system.Not sure though.

could you please check the followings -

1. Check the IDoc Messaging queues in NWA for all the servers- when the message fails. Any of the queues are missing?

2. Go to http://host:port/nwa -> Configuration -> Infrastructure ->Java System Properties -> Service tab -> XPI Service: AF Core -> messaging.connectionDefinition and check if this is maintained correctly - if you want , you can add a separate entry for IDOc adapter by separating with comma.

3. Increase the value of following two parameters:

Go to http://host:port/nwa -> Configuration -> Infrastructure ->Java System Properties -> Service tab -> XPI Service: AF Core -> clusterCommunicationTimeoutMsec. (default value is 15000).

Go to http://host:port/nwa -> Configuration -> Infrastructure ->Java System Properties -> Service tab -> XPI Service: Messaging System -> messaging.cluster.timeout. (default value is 60000)

4. Try to stop and start the adapter service in NWA -

5. Check with BASIS team if the J2EE server is not running in SAFE mode, should be in NORMAL mode.

6. if nothing works, then recreate a new channel and check the behavior :-). is it happening to any other sender IDOc channel?

Thanks

Sugata

ramu_g4
Participant
0 Kudos

Dear Sugata,

Thank you for all above points to explain in detail to resolve the issue.

It is not the case that no IDoc is reaching PI but out of 10 IDocs that are triggered from ECC to PI mostly one or two are getting stuck in SMQ1 of sender ECC system. But even the 1 or 2 IDocs which are stuck in SMQ1 are getting processed when we manually try to process using "Execute LUW".

I have checked the following & have highlighted the results in bold.

  1. Access the SLD -> Business System -> Select the relevant business sytem and check if the information maintained for this Business system is correct.- Corretly maintained in SLD.
  2. Then, in Integration Directory, open the relevant business system, in the menu go to "Adapter Specific Identifiers". Then select the "Compare with SLD" button. - Have done this after above SLD setting.
  3. Check the partner profile is having the correct port from we21 and the corresponding TCP/IP RFC dest. assigned to the port is correct and working.- Yes, correctly maintained.
  4. Check the TCP/IP RFC destination created to connect PI, the program id, gateway host(should be your PI Host) and service (should be your PI GW service). Also check if the RFC is UNICODE.- All are maintained correctly. UNICODE also maintained.
  5. Check in your Application Resources in PI NWA, the inboundRA is maintained with correct values- e.g program ID same as the RFC created in ECC.- Correct.
  6. Lastly, in your receiver determination if no receiver found set the processing to Stop message processing.- Even this is also maintained.
  7. Increase the value of property "MaxReaderThreadCount" for inboundRA.- Count is 10 now, but still the same issue.

When I check the logs of sender IDoc_AAE channel in PI, only one of the instance of the server is having issue as shown in below snippet.

Thanks,

Ramu.

sugata_bagchi2
Active Contributor
0 Kudos

Hello Ramu,
Could you please try the below points -

  1. Check the following-
    Access the SLD -> Business System -> Select the relevant business sytem and check if the information maintained for this Business system is correct.
  2. Then, in Integration Directory, open the relevant business system, in the menu go to "Adapter Specific Identifiers". Then select the "Compare with SLD" button.
  3. Check the partner profile is having the correct port from we21 and the corresponding TCP/IP RFC dest. assigned to the port is correct and working.
  4. Check the TCP/IP RFC destination created to connect PI, the program id, gateway host(should be your PI Host) and service (should be your PI GW service). Also check if the RFC is UNICODE.
  5. Check in your Application Resources in PI NWA, the inboundRA is maintained with correct values- e.g program ID same as the RFC created in ECC.
  6. Lastly, in your receiver determination if no receiver found set the processing to Stop message processing.
  7. Increase the value of property "MaxReaderThreadCount" for inboundRA.

Thanks

Sugata

ramu_g4
Participant
0 Kudos

Hi Sugata,

Thank you very much for your reply, I have executed "Reload" and then triggered IDoc but still issue persists. I have also tried "Delete" option as well but no luck.

Thanks,

Ramu.

ramu_g4
Participant
0 Kudos

Hi Sugata,

Thank you very much for your time! But I don't see any entry maintained as you said following path.

NWA -> Configuration -> JCo RFC Provider.

Please find below snippet which supports the same.

Thanks,

Ramu.

sugata_bagchi2
Active Contributor
0 Kudos

Hi Ramu,
was there any change in the IDoc structure? you can try re-importing the IDoc metadata

sugata_bagchi2
Active Contributor
0 Kudos

Hi Ramu,

Check the following -

Issue can occur when there is an extra program ID XI_IDOC_DEFAULT_PID configured in the NWA. A JCo RFC destination is defined with the program ID XI_IDOC_DEFAULT_PID. This can be seen in the NWA -> Configuration -> Infrastructure -> JCo RFC Provider. This is already the same program ID as in the inboundRA Resource Adapter and should be defined in SM59 of the source ECC system. If there is an entry in JCO RFC provider, please stop that or remove.

The program ID used in the inboundRA should be unique, so it is not allowed to have the JCo RFC Provider entry also. To resolve the issue go to the NWA -> Configuration -> JCo RFC Provider and remove the entry with program ID XI_IDOC_DEFAULT_PID. Then restart the com.sap.aii.adapter.idoc.app application in the NWA. Afterwards, resend the IDocs from the sender system.

Thanks

Sugata

mate_moricz
Advisor
Advisor
0 Kudos

Hi Ramu,

I'm aware that the initial screenshot was from the ECC system. The provided screenshot doesn't relate to an RFC message, but rather to a message processing failure in an IDoc scenario. I'd suggest to follow my above advice:collect an Example 50 - XI Channel trace (with the IDoc_AAE sender channel) and reproduce the issue.

Best regards,
Mate

ramu_g4
Participant
0 Kudos

Hi Mate,

Yes my screen shot is only for IDoc not for RFC related, if you need that also I can do that but both IDoc/RFC entries are stuck in sender ECC system in SMQ1 only. I do not know/aware of steps to follow your advice. Can you please elucidate on the steps of how to achieve this " 50 - XI Channel trace (with the IDoc_AAE sender channel) and reproduce the issue ".

Thanks,

Ramu.

mate_moricz
Advisor
Advisor
0 Kudos

Hi Ramu,

This kind of error usually happens when the IDoc reaches your PI system, an XI message is generated but the processing fails either at receiver determination or at mapping and then a rollback happens. You should check the default traces in your PI system or collect an Example 50 - XI Channel trace (with the IDoc_AAE sender channel) and reproduce the issue.


Best regards,
Mate

ramu_g4
Participant
0 Kudos

Hi Mate,

Not only IDoc but RFC messages are also failing with commit failed error. Screen shot shown above is error in SAP ECC system not PI system. We are getting below logs for this error in NWA of SAP PO system.