B2B Integration

 View Only
Expand all | Collapse all

SAP ALE Connection Issue with SI

  • 1.  SAP ALE Connection Issue with SI

    Posted Thu October 31, 2024 10:57 AM

    Hello Community, I hope everyone is doing well.  

    We are setting up SI for the first time and in that process creating a new ALE port in SAP with the new program ID and everything. The connection in SM59 works great for the new RFC destination and SAP is able to see SI's IP address but when we run an idoc from SAP to SI we are getting a java.lang.RuntimeException error in SAP and SAP logs in SI shows some RFC error. What could be going on here? We tried both transfer protocols in the RFC Destination tRFC and BGRFC but still nothing.  We made sure the new program ID is registered in SAP and all the parameters entered in JCo are validated. 

    ANy help is greatly appreciated. 



    ------------------------------
    Vamsi Kamisetty
    ------------------------------


  • 2.  RE: SAP ALE Connection Issue with SI

    Posted Sat November 02, 2024 09:55 AM

    Hello Vamsi,

    I guess you see the Runtime Exception in SM58?

    Can you share the sap3.log entries created when you try to send the idoc?

    Best regards

    Manuel



    ------------------------------
    Manuel Frank
    Integration Architect
    Andreas STIHL AG & Co. KG
    Waiblingen
    ------------------------------



  • 3.  RE: SAP ALE Connection Issue with SI

    Posted Sat November 02, 2024 12:03 PM

    Hello Manuel,

    Thank you for your response. I am attaching the sap3 and JCo logs along with SM58 screenshot. One other note if it matters, if we are using the existing system's program ID the idoc comes through but this issue with the new program ID. The existing program ID is connected to GENTRAN server for Unix. BASIS confirmed that the new program ID is registered. They see our SI IP hitting their server in their logs.

    Best Regards,

    Vamsi. 



    ------------------------------
    Vamsi Kamisetty
    ------------------------------



  • 4.  RE: SAP ALE Connection Issue with SI

    Posted Mon November 04, 2024 02:51 AM

    Hi Vamsi,

    which encoding is used in SAP system?

    Perhaps you have to align the outbound encoding in the SAP JCo adapter with SAP's encoding.

    Also in in SM59 the unicode flag active?

    Best regards

    Manuel



    ------------------------------
    Manuel Frank
    Integration Architect
    Andreas STIHL AG & Co. KG
    Waiblingen
    ------------------------------



  • 5.  RE: SAP ALE Connection Issue with SI

    Posted Mon November 04, 2024 08:06 AM

    Hello Manuel,

    Am attaching the screenshot from SM59. Is this the one you are talking about? Where would the unicode setting in JCo that similar to SAP?  Unicode and Encoding are different I presume but I don't see an encode option. I could only run the Connection Test and it works fine but I couldn't run the Unicode test in SM59. I will have to reach out to BASIS to run the Unicode TEST. Should that be running successfully? 



    ------------------------------
    Vamsi Kamisetty
    ------------------------------



  • 6.  RE: SAP ALE Connection Issue with SI

    Posted Mon November 04, 2024 08:13 AM

    Hi Vamsi,

    these are just guesses as I have seen in the trace that the EDIDC40 control segment contains non ANSII characters.

    From my point of view you have to change in SM59 to Unicode in your screenshot and test it.

    Best regards

    Manuel



    ------------------------------
    Manuel Frank
    Integration Architect
    Andreas STIHL AG & Co. KG
    Waiblingen
    ------------------------------



  • 7.  RE: SAP ALE Connection Issue with SI

    Posted Mon November 04, 2024 08:20 AM

    Thank you. I will try that, but would that give a java longtime error? 



    ------------------------------
    Vamsi Kamisetty
    ------------------------------



  • 8.  RE: SAP ALE Connection Issue with SI

    Posted Mon November 04, 2024 08:48 AM

    If you look at the trace the runtime error is caused by a method from the Calendar object.

    Perhaps the characters in the EDIDC40 segments are moving the offset. But as I said, just guessing :-)

    Same function is also mentioned on the IBM site, where the issue was with DNS resolution and then they had to use IP adresses in the JCo adapter.

    So if the unicode switch does not work,  I would recomment to open a case for the IBM support.



    ------------------------------
    Manuel Frank
    Integration Architect
    Andreas STIHL AG & Co. KG
    Waiblingen
    ------------------------------



  • 9.  RE: SAP ALE Connection Issue with SI

    Posted Mon November 04, 2024 09:17 AM

    Yes. That calendar object was confusing, and we used the IP Address instead of the SAP message Server and still the same error. I sincerely hope the Unicode change works. 



    ------------------------------
    Vamsi Kamisetty
    ------------------------------



  • 10.  RE: SAP ALE Connection Issue with SI

    Posted Mon November 04, 2024 09:46 AM

    Manuel,

    Looks like the Unicode change worked. Look at the screenshot attached. I did not see a JAVA error in SAP, and it looks like it kicked off some BPs. We are still trying to validate if these BP errors are legitimate and outside of the connection issue we were having. We are all new to this SI here. 



    ------------------------------
    Vamsi Kamisetty
    ------------------------------



  • 11.  RE: SAP ALE Connection Issue with SI

    Posted Mon November 04, 2024 10:06 AM

    Yes, looks like the connection is ok and now you can dig deep into the business processing world :-) Have fun.



    ------------------------------
    Manuel Frank
    Integration Architect
    Andreas STIHL AG & Co. KG
    Waiblingen
    ------------------------------



  • 12.  RE: SAP ALE Connection Issue with SI

    Posted Mon November 04, 2024 10:40 AM

    Thank you very much, Manuel. Really appreciate it. You have saved us a bunch of man hours. It did not occur to me that that Unicode could be the issue. Hopefully our paths cross again in some other issue. lol



    ------------------------------
    Vamsi Kamisetty
    ------------------------------



  • 13.  RE: SAP ALE Connection Issue with SI

    Posted Sun December 01, 2024 10:21 PM

    Hi Manuel,

    I can't thank you enough for your help with the Unicode issue! Before I post a new thread in the community, I wanted to check with you about another problem we're facing. During our regression testing, we took the SI App offline and attempted to push an IDoc from SAP. I expected the IDoc to go into Status 02, indicating the destination port or app was unavailable. However, it went into Status 03, as if everything downstream was functioning, even though SI was down.

    Could you help me understand what's happening, where the IDoc might be going, and how to track these IDocs if the app goes down for real? Any assistance would be greatly appreciated.

    Thanks again!



    ------------------------------
    Vamsi Kamisetty
    ------------------------------



  • 14.  RE: SAP ALE Connection Issue with SI

    Posted Mon December 02, 2024 12:05 AM

    Hi Vamsi,

    you have to look at transaction SM58 in SAP. You can filter for the RFC destination and will find the entry.

    Can be resent manually with clicking in the line and hit F6. Or you can schedule a job with a specific program which would resent it automatically in specific cases.

    However the SM58 should be monitored either way in SAP, but that should be known by your SAP basis admin.

    Best regards

    Manuel



    ------------------------------
    Manuel Frank
    Integration Architect
    Andreas STIHL AG & Co. KG
    Waiblingen
    ------------------------------