https://raw.githubusercontent.com/ajmaradiaga/feeds/main/scmt/topics/Cloud-Integration-qa.xmlSAP Community - Cloud Integration2024-09-08T08:00:10.724536+00:00python-feedgenCloud Integration Q&A in SAP Communityhttps://community.sap.com/t5/technology-q-a/error-while-establishing-erp-inbound-connection/qaq-p/13790599Error while establishing ERP inbound connection2024-08-11T17:31:57.320000+02:00aditya_20https://community.sap.com/t5/user/viewprofilepage/user-id/876377<P>Hello all,</P><P>I'm trying to establish an inbound connection with ERP via IDOC adapter in CPI. I'm getting a '403 : Forbidden' error while posting the data to the receiver end.</P><P>I have referred a SAP note <SPAN><SPAN class=""><A class="" title="https://me.sap.com/notes/0002473005" href="https://me.sap.com/notes/0002473005" target="_blank" rel="noreferrer noopener">https://me.sap.com/notes/0002473005</A> and maintained everything as mentioned in it, but the issue still persists.</SPAN></SPAN></P><P><SPAN><SPAN class="">Can anyone provide a solution for this issue.</SPAN></SPAN></P><P><SPAN><SPAN class="">Thank You,</SPAN></SPAN></P><P><SPAN><SPAN class="">Aditya</SPAN></SPAN></P>2024-08-11T17:31:57.320000+02:00https://community.sap.com/t5/technology-q-a/cpi-message-mapping-how-to-remove-the-extra-null-context/qaq-p/13792988CPI message mapping: how to remove the extra null context2024-08-13T12:36:33.624000+02:00raydhttps://community.sap.com/t5/user/viewprofilepage/user-id/1552239<P>In my source data, there are some empty node which become null context in the message mapping, is there a way that I can remove these extra null context in message mapping? Below are sample xml</P><DIV><DIV><SPAN><references/></SPAN></DIV><DIV><SPAN><references></SPAN></DIV><DIV><SPAN><typeCode>order</SPAN><SPAN></typeCode></SPAN></DIV><DIV><SPAN><id>111</SPAN><SPAN></id></SPAN></DIV><DIV><SPAN></references></SPAN></DIV></DIV><P>and the capture are how it looks like in the message mapping.</P><P>Thanks a lot in advance</P><P> </P><P> </P><P> </P>2024-08-13T12:36:33.624000+02:00https://community.sap.com/t5/human-capital-management-q-a/iflow-content-modifer-issue/qaq-p/13795259iflow content modifer Issue2024-08-15T00:47:02.747000+02:00Jorge99https://community.sap.com/t5/user/viewprofilepage/user-id/1428498<P>Hi team</P><P>I am working with an Iflow, this Iflow is a copy of the Iflow: Replicate Generic Data from SAP SuccessFactors Employee Central to SAP ERP or SAP S4HANA Using the OData API</P><P>This is Namespace Mapping</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jorge99_0-1723675302262.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/152037i847A6963E62E7001/image-size/medium?v=v2&px=400" role="button" title="Jorge99_0-1723675302262.png" alt="Jorge99_0-1723675302262.png" /></span></P><P>Content modifier</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jorge99_1-1723675302265.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/152038i5EA8284F1A3E8973/image-size/medium?v=v2&px=400" role="button" title="Jorge99_1-1723675302265.png" alt="Jorge99_1-1723675302265.png" /></span></P><P>This is the configuration in Content Modifier</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jorge99_2-1723675302270.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/152039iE3AB1B631F033C17/image-size/medium?v=v2&px=400" role="button" title="Jorge99_2-1723675302270.png" alt="Jorge99_2-1723675302270.png" /></span></P><P> </P><P>The value in Source value to ECCOMPANY is /ns0:getGenericDataReplicationQuery/ProcessingParameter[Name='ECCompany']/Value</P><P>I am running a simulation</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jorge99_3-1723675302273.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/152040iB0442728BA7EF2E8/image-size/medium?v=v2&px=400" role="button" title="Jorge99_3-1723675302273.png" alt="Jorge99_3-1723675302273.png" /></span></P><P>Simulation is sending this error message</P><P>Invalid xpath: /ns0:getGenericDataReplicationQuery/ProcessingParameter[Name='ECCompany']/Value. Reason: javax.xml.xpath.XPathExpressionException: Failure converting a node of class javax.xml.transform.sax.SAXSource: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Premature end of file.</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jorge99_4-1723675302277.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/152041iB5AD38C64939D595/image-size/medium?v=v2&px=400" role="button" title="Jorge99_4-1723675302277.png" alt="Jorge99_4-1723675302277.png" /></span></P><P>Do you know how to solve it?</P><P>Thanks a lot</P><P> </P>2024-08-15T00:47:02.747000+02:00https://community.sap.com/t5/technology-q-a/setfilename-dynamically-in-tpm-for-as2-configuration/qaq-p/13798956setFilename dynamically in TPM for AS2 configuration2024-08-19T09:22:36.072000+02:00radhika_devhttps://community.sap.com/t5/user/viewprofilepage/user-id/1602862<P>Hi All, </P><P>The scenario is IDOC to AS2 using TPM, and I have the requirement to add filename dynamically in the receiver AS2 channel. For example, the format for adding the filename is message.messageId</P><P>Is there any way to add AS2 filename dynamically in TPM configuration? </P><P>Thanks </P><P>Radhika</P>2024-08-19T09:22:36.072000+02:00https://community.sap.com/t5/technology-q-a/version-of-erp-capable-of-connecting-with-integration-suite/qaq-p/13800496Version of ERP capable of connecting with Integration Suite2024-08-20T11:59:47.776000+02:00aditya_20https://community.sap.com/t5/user/viewprofilepage/user-id/876377<P>Hello all,</P><P>I'm trying to establish connection for ERP with SAP Integration Suite. Just wanted to know which version of ERP will be capable of connecting with the Integration Suite.</P><P>Thank You</P><P>Aditya </P>2024-08-20T11:59:47.776000+02:00https://community.sap.com/t5/human-capital-management-q-a/any-lessons-learned-from-connecting-sf-ec-to-adp-workforce-now-using-sf/qaq-p/13802045Any lessons learned from connecting SF EC to ADP Workforce Now using SF Integration Center?2024-08-21T11:11:07.322000+02:00JoernMhttps://community.sap.com/t5/user/viewprofilepage/user-id/1653303<P><STRONG>The Purpose:</STRONG> we decided to integrate SF EC to ADP Workforce Now using SF Integration Center for US business.<BR /><STRONG>The Challenge:</STRONG> ADP Workforce Now requires data transformations in our CSV export file that cannot be easily built because we do not have an If Then Logic. As a result, we can probably meet the requirements by sending 3 different files that follow different logic.<BR />The question: Is there anyone who has successfully built such an integration using SF Integration Center?<BR />If not, we would look at SAP's CPI capabilities. That's a big gun, though. <BR /><BR /></P>2024-08-21T11:11:07.322000+02:00https://community.sap.com/t5/technology-q-a/unable-to-deploy-iflow-in-integration-suite-for-azurestorage-list-blobs/qaq-p/13803386Unable to deploy iFlow in Integration Suite for AzureStorage List Blobs2024-08-22T10:55:34.535000+02:00oliverkraffthttps://community.sap.com/t5/user/viewprofilepage/user-id/775053<P>Hi all,</P><P>we have tried to connect our azure blob storage via iflow and the azure storage adapter version 1.0.4 with the function list blobs. During deployment we receive the following error message:</P><P><SPAN>[CONTENT][CONTENT_DEPLOY][RuntimeError] : {"message":"EXCEPTION","parameters":["org.apache.camel.FailedToCreateRouteException: Failed to create route Process_1 at: >>> To[sap-it-azure-storage:foo?receiverContainerName=aussendienstfiles&pageSize=200&receiverAccountName=stouvreisekosten&receiverResponseFormat=default&processInPages=false&sasToken=st=2024-08-22T07:53:12Z&se=2099-08-22T15:53:12Z&si=SAP Read Delete&spr=https&sv=2022-11-02&sr=c&sig=VQsEY6cnmX9XZoCTwmW1Y0iEK3I8eXVWctC2l6u0mI4%3D&receiverAuthorization=SASTOKEN&timeOut=60000&blob=ListBlobs&requestHeaders=x-ms-blob-type=blockblob] <<< in route: Route(Process_1)[[From[direct:test_azure_TimerEventDefinitio... because of Failed to resolve endpoint: sap-it-azure-storage://foo?blob=ListBlobs&pageSize=200&processInPages=false&receiverAccountName=stouvreisekosten&receiverAuthorization=SASTOKEN&receiverContainerName=aussendienstfiles&receiverResponseFormat=default&requestHeaders=x-ms-blob-type%3Dblockblob&sasToken=st%3D2024-08-22T07%3A53%3A12Z&se=2099-08-22T15%3A53%3A12Z&si=SAP+Read+Delete&sig=VQsEY6cnmX9XZoCTwmW1Y0iEK3I8eXVWctC2l6u0mI4%3D&spr=https&sr=c&sv=2022-11-02&timeOut=60000 due to: Failed to resolve endpoint: sap-it-azure-storage://foo?blob=ListBlobs&pageSize=200&processInPages=false&receiverAccountName=stouvreisekosten&receiverAuthorization=SASTOKEN&receiverContainerName=aussendienstfiles&receiverResponseFormat=default&requestHeaders=x-ms-blob-type%3Dblockblob&sasToken=st%3D2024-08-22T07%3A53%3A12Z&se=2099-08-22T15%3A53%3A12Z&si=SAP+Read+Delete&sig=VQsEY6cnmX9XZoCTwmW1Y0iEK3I8eXVWctC2l6u0mI4%3D&spr=https&sr=c&sv=2022-11-02&timeOut=60000 due to: There are 6 parameters that couldn't be set on the endpoint. Check the uri if the parameters are spelt correctly and that they are properties of the endpoint. Unknown parameters=[{se=2099-08-22T15:53:12Z, si=SAP Read Delete, sig=VQsEY6cnmX9XZoCTwmW1Y0iEK3I8eXVWctC2l6u0mI4=, spr=https, sr=c, sv=2022-11-02}]"],"childMessageInstances":[{"message":"CAUSE","parameters":["org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: sap-it-azure-storage://foo?blob=ListBlobs&pageSize=200&processInPages=false&receiverAccountName=stouvreisekosten&receiverAuthorization=SASTOKEN&receiverContainerName=aussendienstfiles&receiverResponseFormat=default&requestHeaders=x-ms-blob-type%3Dblockblob&sasToken=st%3D2024-08-22T07%3A53%3A12Z&se=2099-08-22T15%3A53%3A12Z&si=SAP+Read+Delete&sig=VQsEY6cnmX9XZoCTwmW1Y0iEK3I8eXVWctC2l6u0mI4%3D&spr=https&sr=c&sv=2022-11-02&timeOut=60000 due to: Failed to resolve endpoint: sap-it-azure-storage://foo?blob=ListBlobs&pageSize=200&processInPages=false&receiverAccountName=stouvreisekosten&receiverAuthorization=SASTOKEN&receiverContainerName=aussendienstfiles&receiverResponseFormat=default&requestHeaders=x-ms-blob-type%3Dblockblob&sasToken=st%3D2024-08-22T07%3A53%3A12Z&se=2099-08-22T15%3A53%3A12Z&si=SAP+Read+Delete&sig=VQsEY6cnmX9XZoCTwmW1Y0iEK3I8eXVWctC2l6u0mI4%3D&spr=https&sr=c&sv=2022-11-02&timeOut=60000 due to: There are 6 parameters that couldn't be set on the endpoint. Check the uri if the parameters are spelt correctly and that they are properties of the endpoint. Unknown parameters=[{se=2099-08-22T15:53:12Z, si=SAP Read Delete, sig=VQsEY6cnmX9XZoCTwmW1Y0iEK3I8eXVWctC2l6u0mI4=, spr=https, sr=c, sv=2022-11-02}]"],"childMessageInstances":[{"message":"CAUSE","parameters":["org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: sap-it-azure-storage://foo?blob=ListBlobs&pageSize=200&processInPages=false&receiverAccountName=stouvreisekosten&receiverAuthorization=SASTOKEN&receiverContainerName=aussendienstfiles&receiverResponseFormat=default&requestHeaders=x-ms-blob-type%3Dblockblob&sasToken=st%3D2024-08-22T07%3A53%3A12Z&se=2099-08-22T15%3A53%3A12Z&si=SAP+Read+Delete&sig=VQsEY6cnmX9XZoCTwmW1Y0iEK3I8eXVWctC2l6u0mI4%3D&spr=https&sr=c&sv=2022-11-02&timeOut=60000 due to: There are 6 parameters that couldn't be set on the endpoint. Check the uri if the parameters are spelt correctly and that they are properties of the endpoint. Unknown parameters=[{se=2099-08-22T15:53:12Z, si=SAP Read Delete, sig=VQsEY6cnmX9XZoCTwmW1Y0iEK3I8eXVWctC2l6u0mI4=, spr=https, sr=c, sv=2022-11-02}]"]}]}]}</SPAN></P><P><SPAN>The following settings are stored in the adapter:</SPAN></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="oliverkrafft_0-1724316661815.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/155826i3BD6C5F290E354F1/image-size/medium?v=v2&px=400" role="button" title="oliverkrafft_0-1724316661815.png" alt="oliverkrafft_0-1724316661815.png" /></span></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="oliverkrafft_1-1724316709954.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/155828iED1AC37BB254C485/image-size/medium?v=v2&px=400" role="button" title="oliverkrafft_1-1724316709954.png" alt="oliverkrafft_1-1724316709954.png" /></span></P><P>In addition, we have adhered to the following blog <A href="https://community.sap.com/t5/technology-blogs-by-members/steps-to-access-azure-blob-storage-via-rest-api-from-sap-cpi-using-azure/ba-p/13580257" target="_blank">https://community.sap.com/t5/technology-blogs-by-members/steps-to-access-azure-blob-storage-via-rest-api-from-sap-cpi-using-azure/ba-p/13580257</A></P><P>Unfortunately we could not find any hint in the logging on azure side, why we get this error.</P><P>Do you have any ideas as to what the problem might be and how we can solve it?</P><P>Thanks a lot and best regards,</P><P>Olli</P><P> </P>2024-08-22T10:55:34.535000+02:00https://community.sap.com/t5/technology-q-a/csv-to-xml-converter-with-multiple-header-and-footer-header-and-item-level/qaq-p/13805851CSV to XML Converter with(multiple header and Footer) Header and item level data2024-08-24T13:11:20.554000+02:00Ram32https://community.sap.com/t5/user/viewprofilepage/user-id/1563557<P><SPAN>I have a requirement where I need to convert CSV to XML with header(AB) and footer(XY) and line item level data(CD). Below is the flat file format;</SPAN></P><P>AB, , , ,80000,08,24140,01<BR />CD,Sales 05/14/24 , ,000100,150,08,24140,01<BR />CD,Sales 05/14/24 , ,000100,-150,08,24140,01<BR />CD,Sales 05/14/24 , ,000100,650,08,24140,01<BR />CD,Sales 05/14/24 , ,000100,-650,08,24140,01<BR />XY, , , ,-80000,08,24140,01<BR />AB, , , ,80000,08,24140,01<BR />CD,Sales 05/14/24 , ,000100,150,08,24140,01<BR />CD,Sales 05/14/24 , ,000100,-150,08,24140,01<BR />CD,Sales 05/14/24 , ,000100,650,08,24140,01<BR />CD,Sales 05/14/24 , ,000100,-650,08,24140,01<BR />XY, , , ,-80000,08,24140,01<BR />AB, , , ,80000,08,24140,01<BR />CD,Sales 05/14/24 , ,000100,150,08,24140,01<BR />CD,Sales 05/14/24 , ,000100,-150,08,24140,01<BR />CD,Sales 05/14/24 , ,000100,650,08,24140,01<BR />CD,Sales 05/14/24 , ,000100,-650,08,24140,01<BR />XY, , , ,-80000,08,24140,01</P><P><SPAN>The desired output is below</SPAN></P><P><SPAN>your can consider Field1 to Field8</SPAN></P><P> </P><DIV><?xml version='1.0' encoding='UTF-8'?></DIV><DIV><root></DIV><DIV><record></DIV><DIV><SPAN><row></SPAN></DIV><DIV><SPAN><Field1>AB</Field1></SPAN></DIV><DIV><SPAN><Field2> </Field2></SPAN></DIV><DIV><SPAN><Field3> </Field3></SPAN></DIV><DIV><SPAN><Field4> </Field4></SPAN></DIV><DIV><SPAN><Field5>80000</Field5></SPAN></DIV><DIV><SPAN><Field6>08</Field6></SPAN></DIV><DIV><SPAN><Field7>24140</Field7></SPAN></DIV><DIV><SPAN><Field8>01</Field8></SPAN></DIV><DIV><SPAN></row></SPAN></DIV><DIV><SPAN><row></SPAN></DIV><DIV><SPAN><Field1>CD</Field1></SPAN></DIV><DIV><SPAN><Field2>Sales </Field2></SPAN></DIV><DIV><SPAN><Field3> </Field3></SPAN></DIV><DIV><SPAN><Field4>000100</Field4></SPAN></DIV><DIV><SPAN><Field5>150</Field5></SPAN></DIV><DIV><SPAN><Field6>08</Field6></SPAN></DIV><DIV><SPAN><Field7>24140</Field7></SPAN></DIV><DIV><SPAN><Field8>01</Field8></SPAN></DIV><DIV><SPAN></row></SPAN></DIV><DIV><SPAN><row></SPAN></DIV><DIV><SPAN><Field1>CD</Field1></SPAN></DIV><DIV><SPAN><Field2>Sales </Field2></SPAN></DIV><DIV><SPAN><Field3> </Field3></SPAN></DIV><DIV><SPAN><Field4>000100</Field4></SPAN></DIV><DIV><SPAN><Field5>-150</Field5></SPAN></DIV><DIV><SPAN><Field6>08</Field6></SPAN></DIV><DIV><SPAN><Field7>24140</Field7></SPAN></DIV><DIV><SPAN><Field8>01</Field8></SPAN></DIV><DIV><SPAN></row></SPAN></DIV><DIV><SPAN><row></SPAN></DIV><DIV><SPAN><Field1>CD</Field1></SPAN></DIV><DIV><SPAN><Field2>Sales</Field2></SPAN></DIV><DIV><SPAN><Field3> </Field3></SPAN></DIV><DIV><SPAN><Field4>000100</Field4></SPAN></DIV><DIV><SPAN><Field5>650</Field5></SPAN></DIV><DIV><SPAN><Field6>08</Field6></SPAN></DIV><DIV><SPAN><Field7>24140</Field7></SPAN></DIV><DIV><SPAN><Field8>01</Field8></SPAN></DIV><DIV><SPAN></row></SPAN></DIV><DIV><SPAN><row></SPAN></DIV><DIV><SPAN><Field1>CD</Field1></SPAN></DIV><DIV><SPAN><Field2>Sales </Field2></SPAN></DIV><DIV><SPAN><Field3> </Field3></SPAN></DIV><DIV><SPAN><Field4>000100</Field4></SPAN></DIV><DIV><SPAN><Field5>-650</Field5></SPAN></DIV><DIV><SPAN><Field6>08</Field6></SPAN></DIV><DIV><SPAN><Field7>24140</Field7></SPAN></DIV><DIV><SPAN><Field8>01</Field8></SPAN></DIV><DIV><SPAN></row></SPAN></DIV><DIV><SPAN><row></SPAN></DIV><DIV><SPAN><Field1>XY</Field1></SPAN></DIV><DIV><SPAN><Field2> </Field2></SPAN></DIV><DIV><SPAN><Field3> </Field3></SPAN></DIV><DIV><SPAN><Field4> </Field4></SPAN></DIV><DIV><SPAN><Field5>-80000</Field5></SPAN></DIV><DIV><SPAN><Field6>08</Field6></SPAN></DIV><DIV><SPAN><Field7>24140</Field7></SPAN></DIV><DIV><SPAN><Field8>01</Field8></SPAN></DIV><DIV><SPAN></row></SPAN></DIV><DIV></record></DIV><DIV><record></DIV><DIV><SPAN><row></SPAN></DIV><DIV><SPAN><Field1>AB</Field1></SPAN></DIV><DIV><SPAN><Field2> </Field2></SPAN></DIV><DIV><SPAN><Field3> </Field3></SPAN></DIV><DIV><SPAN><Field4> </Field4></SPAN></DIV><DIV><SPAN><Field5>80000</Field5></SPAN></DIV><DIV><SPAN><Field6>08</Field6></SPAN></DIV><DIV><SPAN><Field7>24140</Field7></SPAN></DIV><DIV><SPAN><Field8>01</Field8></SPAN></DIV><DIV><SPAN></row></SPAN></DIV><DIV><SPAN><row></SPAN></DIV><DIV><SPAN><Field1>CD</Field1></SPAN></DIV><DIV><SPAN><Field2>Sales </Field2></SPAN></DIV><DIV><SPAN><Field3> </Field3></SPAN></DIV><DIV><SPAN><Field4>000100</Field4></SPAN></DIV><DIV><SPAN><Field5>150</Field5></SPAN></DIV><DIV><SPAN><Field6>08</Field6></SPAN></DIV><DIV><SPAN><Field7>24140</Field7></SPAN></DIV><DIV><SPAN><Field8>01</Field8></SPAN></DIV><DIV><SPAN></row></SPAN></DIV><DIV><SPAN><row></SPAN></DIV><DIV><SPAN><Field1>CD</Field1></SPAN></DIV><DIV><SPAN><Field2>Sales </Field2></SPAN></DIV><DIV><SPAN><Field3> </Field3></SPAN></DIV><DIV><SPAN><Field4>000100</Field4></SPAN></DIV><DIV><SPAN><Field5>-150</Field5></SPAN></DIV><DIV><SPAN><Field6>08</Field6></SPAN></DIV><DIV><SPAN><Field7>24140</Field7></SPAN></DIV><DIV><SPAN><Field8>01</Field8></SPAN></DIV><DIV><SPAN></row></SPAN></DIV><DIV><SPAN><row></SPAN></DIV><DIV><SPAN><Field1>CD</Field1></SPAN></DIV><DIV><SPAN><Field2>Sales</Field2></SPAN></DIV><DIV><SPAN><Field3> </Field3></SPAN></DIV><DIV><SPAN><Field4>000100</Field4></SPAN></DIV><DIV><SPAN><Field5>650</Field5></SPAN></DIV><DIV><SPAN><Field6>08</Field6></SPAN></DIV><DIV><SPAN><Field7>24140</Field7></SPAN></DIV><DIV><SPAN><Field8>01</Field8></SPAN></DIV><DIV><SPAN></row></SPAN></DIV><DIV><SPAN><row></SPAN></DIV><DIV><SPAN><Field1>CD</Field1></SPAN></DIV><DIV><SPAN><Field2>Sales </Field2></SPAN></DIV><DIV><SPAN><Field3> </Field3></SPAN></DIV><DIV><SPAN><Field4>000100</Field4></SPAN></DIV><DIV><SPAN><Field5>-650</Field5></SPAN></DIV><DIV><SPAN><Field6>08</Field6></SPAN></DIV><DIV><SPAN><Field7>24140</Field7></SPAN></DIV><DIV><SPAN><Field8>01</Field8></SPAN></DIV><DIV><SPAN></row></SPAN></DIV><DIV><SPAN><row></SPAN></DIV><DIV><SPAN><Field1>XY</Field1></SPAN></DIV><DIV><SPAN><Field2> </Field2></SPAN></DIV><DIV><SPAN><Field3> </Field3></SPAN></DIV><DIV><SPAN><Field4> </Field4></SPAN></DIV><DIV><SPAN><Field5>-80000</Field5></SPAN></DIV><DIV><SPAN><Field6>08</Field6></SPAN></DIV><DIV><SPAN><Field7>24140</Field7></SPAN></DIV><DIV><SPAN><Field8>01</Field8></SPAN></DIV><DIV><SPAN></row></SPAN></DIV><DIV></record></DIV><DIV><record></DIV><DIV><SPAN><row></SPAN></DIV><DIV><SPAN><Field1>AB</Field1></SPAN></DIV><DIV><SPAN><Field2> </Field2></SPAN></DIV><DIV><SPAN><Field3> </Field3></SPAN></DIV><DIV><SPAN><Field4> </Field4></SPAN></DIV><DIV><SPAN><Field5>80000</Field5></SPAN></DIV><DIV><SPAN><Field6>08</Field6></SPAN></DIV><DIV><SPAN><Field7>24140</Field7></SPAN></DIV><DIV><SPAN><Field8>01</Field8></SPAN></DIV><DIV><SPAN></row></SPAN></DIV><DIV><SPAN><row></SPAN></DIV><DIV><SPAN><Field1>CD</Field1></SPAN></DIV><DIV><SPAN><Field2>Sales </Field2></SPAN></DIV><DIV><SPAN><Field3> </Field3></SPAN></DIV><DIV><SPAN><Field4>000100</Field4></SPAN></DIV><DIV><SPAN><Field5>150</Field5></SPAN></DIV><DIV><SPAN><Field6>08</Field6></SPAN></DIV><DIV><SPAN><Field7>24140</Field7></SPAN></DIV><DIV><SPAN><Field8>01</Field8></SPAN></DIV><DIV><SPAN></row></SPAN></DIV><DIV><SPAN><row></SPAN></DIV><DIV><SPAN><Field1>CD</Field1></SPAN></DIV><DIV><SPAN><Field2>Sales </Field2></SPAN></DIV><DIV><SPAN><Field3> </Field3></SPAN></DIV><DIV><SPAN><Field4>000100</Field4></SPAN></DIV><DIV><SPAN><Field5>-150</Field5></SPAN></DIV><DIV><SPAN><Field6>08</Field6></SPAN></DIV><DIV><SPAN><Field7>24140</Field7></SPAN></DIV><DIV><SPAN><Field8>01</Field8></SPAN></DIV><DIV><SPAN></row></SPAN></DIV><DIV><SPAN><row></SPAN></DIV><DIV><SPAN><Field1>CD</Field1></SPAN></DIV><DIV><SPAN><Field2>Sales</Field2></SPAN></DIV><DIV><SPAN><Field3> </Field3></SPAN></DIV><DIV><SPAN><Field4>000100</Field4></SPAN></DIV><DIV><SPAN><Field5>650</Field5></SPAN></DIV><DIV><SPAN><Field6>08</Field6></SPAN></DIV><DIV><SPAN><Field7>24140</Field7></SPAN></DIV><DIV><SPAN><Field8>01</Field8></SPAN></DIV><DIV><SPAN></row></SPAN></DIV><DIV><SPAN><row></SPAN></DIV><DIV><SPAN><Field1>CD</Field1></SPAN></DIV><DIV><SPAN><Field2>Sales </Field2></SPAN></DIV><DIV><SPAN><Field3> </Field3></SPAN></DIV><DIV><SPAN><Field4>000100</Field4></SPAN></DIV><DIV><SPAN><Field5>-650</Field5></SPAN></DIV><DIV><SPAN><Field6>08</Field6></SPAN></DIV><DIV><SPAN><Field7>24140</Field7></SPAN></DIV><DIV><SPAN><Field8>01</Field8></SPAN></DIV><DIV><SPAN></row></SPAN></DIV><DIV><SPAN><row></SPAN></DIV><DIV><SPAN><Field1>XY</Field1></SPAN></DIV><DIV><SPAN><Field2> </Field2></SPAN></DIV><DIV><SPAN><Field3> </Field3></SPAN></DIV><DIV><SPAN><Field4> </Field4></SPAN></DIV><DIV><SPAN><Field5>-80000</Field5></SPAN></DIV><DIV><SPAN><Field6>08</Field6></SPAN></DIV><DIV><SPAN><Field7>24140</Field7></SPAN></DIV><DIV><SPAN><Field8>01</Field8></SPAN></DIV><DIV><SPAN></row></SPAN></DIV><DIV></record></DIV><DIV></root></DIV><P><SPAN>Any help would be appreciated.</SPAN></P><P><SPAN>its similar to below blogs but in my case header and footer are multiple </SPAN></P><P><A href="https://community.sap.com/t5/technology-q-a/csv-to-xml-converter-with-header-and-item-level-data/qaq-p/696788" target="_blank">https://community.sap.com/t5/technology-q-a/csv-to-xml-converter-with-header-and-item-level-data/qaq-p/696788</A></P><P> </P>2024-08-24T13:11:20.554000+02:00https://community.sap.com/t5/technology-q-a/getting-error-with-sf-ocn-integration/qaq-p/13805984Getting error with SF-OCN integration2024-08-24T19:41:08.970000+02:00bikram_rayhttps://community.sap.com/t5/user/viewprofilepage/user-id/843279<P>I am trying to do an integration with salesforce and CPI by the help of open connectors.<BR />I am getting 200 response in API docs but when I am using in CPI I am getting error.<BR />PLease help.</P>2024-08-24T19:41:08.970000+02:00https://community.sap.com/t5/technology-q-a/groovy-script-for-removing-reserved-character-inside-xml-node/qaq-p/13807420Groovy Script for removing reserved character inside XML node2024-08-26T15:41:11.972000+02:00jbeslhttps://community.sap.com/t5/user/viewprofilepage/user-id/84254<P>Dear CPI experts. </P><P>Good day, </P><P>Looking to get assistance with my requirement below. </P><P>The idea is to remove all below reserved characters from inside the all XML nodes if they are present.</P><P>However below script im trying to work with, but does not work. It is not preserving the XML structure hence the entire output is incorrect.</P><P>reserved characters *%?:;=()[]|#@</P><pre class="lia-code-sample language-json"><code>import com.sap.gateway.ip.core.customdev.util.Message
import groovy.xml.XmlUtil
import groovy.util.XmlSlurper
def Message processData(Message message) {
def body = message.getBody(String)
def root = new XmlSlurper().parseText(body)
def cleanNodeContent
cleanNodeContent = { node ->
if (node instanceof groovy.util.slurpersupport.NodeChild) {
if (node.text()) {
// Remove reserved characters: *%?:;=()[]|#@
def cleanedText = node.text().replaceAll('[*%?:;=()\\[\\]\\|#@]', '')
node.setValue(cleanedText)
}
}
node.children().each { child ->
cleanNodeContent(child)
}
}
cleanNodeContent(root)
def cleanedXml = XmlUtil.serialize(root)
message.setBody(cleanedXml) // Set the modified body back to the message
return message
}</code></pre><P> #</P>2024-08-26T15:41:11.972000+02:00https://community.sap.com/t5/technology-q-a/anyone-know-the-reason-why-this-error-is-coming-quot-direct-connect-to/qaq-p/13807524Anyone know the reason, why this error is coming "Direct connect to testacig.ariba.com:443 failed:2024-08-26T16:53:35.922000+02:00anilpb00957https://community.sap.com/t5/user/viewprofilepage/user-id/935515<P>We are facing this error in sm59 "Direct connect to <A href="http://testacig.ariba.com/" rel="nofollow noopener noreferrer" target="_blank">testacig.ariba.com</A>:443 failed: NIECONN_REFUSED(-10)" when we are trying to ping.</P><P>We have installed the load balancer certificates in SSL client anonymous and given puser password in rfc. still this error is popping.</P><P>How to fix or troubleshoot this error?</P>2024-08-26T16:53:35.922000+02:00https://community.sap.com/t5/technology-q-a/the-order-of-payload-when-using-odata-adapter-in-sap-cpi/qaq-p/13850845The order of payload when using Odata adapter in SAP CPI2024-09-02T08:04:20.413000+02:00shin861231https://community.sap.com/t5/user/viewprofilepage/user-id/1484100<P>Hello Experts,</P><P>I'm encountering an unusual issue with OData queries in SAP Cloud Platform Integration (CPI), and I'm hoping someone can shed some light on this problem.</P><H2 id="toc-hId-1047881096">The Issue</H2><P class="">When I perform an OData GET query, the order of the data fields in the result is reversed when using SAP CPI compared to when I use Postman.</P><P class="">Postman Result (Correct Order):</P><P class="">Product, ProductType, LastChangeDate</P><P class="">SAP CPI Result (Reversed Order):</P><P class="">LastChangeDate, ProductType, Product</P><P class="">I've attempted to resolve this by adding the $orderby parameter to my query, but unfortunately, this did not solve the issue. ($orderby=Product,ProductType,LastChangeDate)</P><P class=""> </P><P class="">My Questions are</P><P class="">1. Why might this reversal of field order occur when using SAP CPI?<BR />2. How can I ensure that the field order in SAP CPI matches what I see in Postman?<BR /><BR />As your reference, the attached screenshots show the Integration flow as well as the connection configuration for Odata Adapter, as well as the payload with reversed order.</P><P class=""><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IFLOW and Connection Configuration.jpg" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/160593i79796A73C72FEAA1/image-size/large?v=v2&px=999" role="button" title="IFLOW and Connection Configuration.jpg" alt="IFLOW and Connection Configuration.jpg" /></span><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Payload with reversed order.jpg" style="width: 947px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/160594iDFD80D1E8D10E709/image-size/large?v=v2&px=999" role="button" title="Payload with reversed order.jpg" alt="Payload with reversed order.jpg" /></span></P><P class=""> </P><P class="">It would be a huge help if you could please kindly advise on this one!</P><P class="">Thank you.</P><P class=""> </P>2024-09-02T08:04:20.413000+02:00https://community.sap.com/t5/technology-q-a/access-jdbc-material-while-developing-a-custom-adapter-for-sap-cpi/qaq-p/13851196Access Jdbc Material while developing a Custom Adapter for SAP CPI2024-09-02T10:37:14.028000+02:00aln1https://community.sap.com/t5/user/viewprofilepage/user-id/1492839<P>I am currently developing a Custom adapter for the SAP CPI. Now I want to access an SQL-server over a Cloud Connector. I only found a guid how to access Tcp-Connections in general (<A href="https://help.sap.com/docs/cloud-integration/sap-cloud-integration/accessing-on-premise-application-using-cloud-connector" target="_blank" rel="noopener noreferrer">Accessing On-Premise Application using Cloud Connector | SAP Help Portal</A>). But using this would lose the capsulation provided by the Jdbc Material store. So, is there a way to access the Information stored in the Jdbc Material while developing a custom adapter? </P>2024-09-02T10:37:14.028000+02:00https://community.sap.com/t5/technology-q-a/unable-to-query-filter-lastchangedatetime-in-s-4/qaq-p/13851250Unable to query/filter LastChangeDateTime in S/4 !2024-09-02T10:54:18.700000+02:00das_sappohttps://community.sap.com/t5/user/viewprofilepage/user-id/759772<P>Dear Experts,</P><P>I am trying to perform a GET call through HTTP adapter or POSTMAN based on LastChangeDateTime value and the query is as below but getting 400 error. with out the below query parameter I am able to fetch records even select fields</P><P><SPAN>https://<host>/sap/opu/odata4/sap/api_purchaseorder_2/srvd_a2x/sap/purchaseorder/0001/PurchaseOrder?$filter=LastChangeDateTime ge datetimeoffset'2024-01-01T00:00:00.000000Z'</SPAN></P><P><SPAN>And the records look like below</SPAN></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="das_sappo_0-1725267194680.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/160837i94F6D9C5AD58C9AB/image-size/medium?v=v2&px=400" role="button" title="das_sappo_0-1725267194680.png" alt="das_sappo_0-1725267194680.png" /></span></P><P>Please suggest what could be the issue here</P><P> </P><P> </P><P> </P>2024-09-02T10:54:18.700000+02:00https://community.sap.com/t5/enterprise-resource-planning-q-a/defect-tracking-api-data-posted-from-cpi-to-s4-shown-in-table-qmfe-but-not/qaq-p/13851555Defect Tracking API data posted from CPI to S4 shown in Table QMFE but not in TCode QF212024-09-02T14:35:24.207000+02:00AHMED786https://community.sap.com/t5/user/viewprofilepage/user-id/1493270<P>Hi Experts,</P><P>There is one requirement to post the data using the defect tracking API which is successful from CPI to S4 with below details</P><P>/sap/opu/odata4/sap/api_defect/srvd_a2x/sap/defect/0001/Defect</P><P><Defect></P><P><Defect_Type></P><P><DefectInternalID>00000000004</DefectInternalID></P><P><DefectText>test1</DefectText></P><P><DefectCodeCatalog>9</DefectCodeCatalog></P><P><DefectCode>1</DefectCode></P><P><DefectCodeGroup>QM-E</DefectCodeGroup></P><P><ManufacturingOrder>000012</ManufacturingOrder></P><P><InspectionLot>40000000008</InspectionLot></P><P><DefectCategory>01</DefectCategory></P><P></Defect_Type></P><P></Defect></P><P>Even tried with all the 50+ fields of the API populated with the functional data provided but still the same issue.</P><P>The post is successful and we can see the data triggered from CPI in S4 in the actual table QMFE and even the GET API call also shows the values posted but its not reflecting in the actual TCODE QF21</P><P>If the functional owner is entering any data manually its also available in both backend table QMFE and TCODE QF21 but its not available in GET API call.</P><P>Does anyone know any case like this where the API is not working as expected.</P><P><BR />Thanks,</P><P>Ahmed</P>2024-09-02T14:35:24.207000+02:00https://community.sap.com/t5/technology-q-a/how-to-access-message-processing-logs-in-cpi-using-groovy-script/qaq-p/13851675How to access Message processing logs in cpi using groovy script?2024-09-02T15:43:48.339000+02:00dineshhome1361_7https://community.sap.com/t5/user/viewprofilepage/user-id/757565<P>I want to access the MPL logs(specifically status) in CPI to log the message only if it is error status.</P><P>One way i could think of is to use the standard OData API. But is there a way where I could access the message status using groovy like other partner directory API's</P><P>Ref:</P><P><A href="https://api.sap.com/api/MessageProcessingLogs/overview" target="_blank" rel="noopener noreferrer">https://api.sap.com/api/MessageProcessingLogs/overview</A></P><P><A href="https://help.sap.com/docs/cloud-integration/sap-cloud-integration/read-and-modify-partner-directory-content" target="_blank" rel="noopener noreferrer">https://help.sap.com/docs/cloud-integration/sap-cloud-integration/read-and-modify-partner-directory-content</A></P><P> </P>2024-09-02T15:43:48.339000+02:00https://community.sap.com/t5/technology-q-a/extract-attributes-from-xml/qaq-p/13852237Extract attributes from XML2024-09-03T08:09:40.422000+02:00rakeshroshanjhahttps://community.sap.com/t5/user/viewprofilepage/user-id/123661<P>I want to extract 2-attributes from XML. The names of attribute for extraction from this xml is -</P><P>ERPNumber, </P><P>ProcurementUnit/UniqueName</P><P>UniqueName</P><P> </P><P>My XML structures look like this -</P><P><SimplifiedRequest><BR /><CancelExportRequest><BR /><OrdHeader_Item><BR /><item><BR /><ERPNumber>Y465643</ERPNumber><BR /><ProcurementUnit><BR /><UniqueName>6604</UniqueName><BR /></ProcurementUnit><BR /><UniqueName>EPT10053-V3</UniqueName><BR /><VersionNumber>3</VersionNumber><BR /><custom><BR /><CustomBoolean name="SuppressOrder">false</CustomBoolean><BR /><CustomString name="Test"/><BR /><CustomString name="SupplierID">AEQ600:0000399413</CustomString><BR /></custom><BR /></item><BR /></OrdHeader_Item><BR /></CancelExportRequest><BR /></SimplifiedRequest></P><P>Can you help me here?</P><P> </P>2024-09-03T08:09:40.422000+02:00https://community.sap.com/t5/technology-q-a/facing-401-unauthorized-error-while-trying-post-data-to-cpi-via-sap-api/qaq-p/13852300Facing 401 unauthorized error while trying post data to CPI via SAP API Management2024-09-03T09:13:30.135000+02:00MadhuraJogihttps://community.sap.com/t5/user/viewprofilepage/user-id/1518198<P>Hi,</P><P>I am trying to send request to SAP CPI via API Management.</P><P>But I am facing <SPAN>"</SPAN><EM>401 Unauthorized</EM><SPAN>" </SPAN>error while connecting to CPI though I have maintained correct credential in KeyValue Map. (CSRF token is unchecked in CPI HTTP adapter)</P><P>Using same credentials I am able to call CPI endpoint directly from Postman send data successfully.</P><P>I tried to test from both API Management and Postman(by calling API endpoint) but no luck. Also tried removing all the other policies.</P><P>Can someone help me understand if we have to do any kind of whitelisting or additional roles to be added to call CPI from APIM?</P><P>Below is the screen from APIM Debug :</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MadhuraJogi_0-1725347310304.png" style="width: 539px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/161330i2D6F92FFAE697972/image-dimensions/539x392?v=v2" width="539" height="392" role="button" title="MadhuraJogi_0-1725347310304.png" alt="MadhuraJogi_0-1725347310304.png" /></span></P><P>Thanks in advance.</P><P>Regards,</P><P>Madhura</P><P> </P>2024-09-03T09:13:30.135000+02:00https://community.sap.com/t5/technology-q-a/read-field-with-namespace-segment-xpath-cloud-integration/qaq-p/13855439read field with namespace segment xpath cloud integration2024-09-05T10:41:01.999000+02:00mark_fryuhttps://community.sap.com/t5/user/viewprofilepage/user-id/709977<P>hi,</P><P>I need to read the value of the field "message2" from a segment, with Cloud Integration.</P><P>this is the body:</P><P><message1 xmlns="test_message1"></P><P><message2>test_odv<message2></P><P></message1></P><P>I tried //message2 but not working probably for the xmlns.</P><P>Does anyone know what the formula is to read the "message2" field?</P><P> </P>2024-09-05T10:41:01.999000+02:00https://community.sap.com/t5/technology-q-a/storing-payload-data-in-application-message-type-sap-messagetype/qaq-p/13855908Storing payload data in Application Message Type: SAP_MessageType2024-09-05T16:29:39.416000+02:00David_Davishttps://community.sap.com/t5/user/viewprofilepage/user-id/6943<P>Dear All,</P><P>In the Content Modifier, we have the option to store a payload field's value in the SAP_MessageType property, which can be viewed in CPI monitoring as shown below. However, will this impact monitoring storage capacity? Would it be better to avoid using this property and instead use a custom property with SAP_MessageProcessingLogCustomStatus for logging?</P><P>Please advise on the best practice.</P><P><BR /><BR /><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-09-05_19-32-18.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/163026i2C49E2456337A0ED/image-size/large?v=v2&px=999" role="button" title="2024-09-05_19-32-18.png" alt="2024-09-05_19-32-18.png" /></span></P>2024-09-05T16:29:39.416000+02:00