Quantcast
Channel: SCN : Popular Discussions - Process Integration (PI) & SOA Middleware
Viewing all 971 articles
Browse latest View live

MT940 format sample

$
0
0

Hi,

  Bank statement is comming type MT940 format. can you send me one sample of  MT940 format .and in this format any  attribute like TAG 25 which indicates account number??kindly let me know.

 

Thanks,

Suchitra


Getting HTTP/1.1 401 Unauthorized while Sending the SOAP Request

$
0
0

Hi Experts,

      We have a scenario SOAP-PI-RFC Synchronous scenario. We are getting HTTP/1.1 401 Unauthorized when we try to send the request using SOAP UI. but when I try and execute the interface using RWB and directly send the message to integation engine the interface is working fine.

The User ID that I am using contains all roles and profiles and has all the access.

I have PI 7.1 SP 10.

 

Looking forward to your help and suggestions on the same.

 

Thanks,

Rupendra Sharma

SFTP Sender Channel To Pick multiple files with out ESR

$
0
0

Hi All,

 

I have requirement where I need to pick the files from SFTP and and places them in local folder.

 

Here I need to Pick the files like below:

 

AI_Hdr_23022016 and AI_Item_23022016 i should pick these two files and I need to place these files in 2 seperate folders.

Second one is Archive folder. for this we have option in SFTP channel like Archive files in on PI Server.

 

First one is, main folder.

And here I need to remove the _23022016 from file and need to place in main folder. if multiple files are there in Source folder we need to add counter, for this also we have option like counter.

 

How it is possible.?

 

Source file:

AI_Hdr_23022016.txt and AI_Item_23022016.txt

 

Receiver file:

In Normal Folder:

AI_Hdr.txt

AI_Item.txt

AI_Hdr2.txt

AI_Ite2.txt

 

Archive Folder:

 

AI_Hdr_23022016.txt and AI_Item_23022016.txt

 

 

Please help me to get this requirement.

 

There is no ESR.

 

 

Thanks In Advance,

Vishnu.

iaik.security.ssl.SSLException: Peer sent alert: Alert Fatal: handshake

$
0
0

Hello all;

 

From SAP PI 7.30 we call we a SOAP web-service over https. This service was running for a long time. The provider of the web-service upgraded their SSL certificates from SHA-1 signing algorithm to the stronger and more robust SHA-256. After that, we get the following error: iaik.security.ssl.SSLException: Peer sent alert: Alert Fatal: handshake. As said, just before the change the connection was working. I have added the required VeriSign CA root certificates to the Trusted CA's keystore within NWA. (VeriSign Class 3 Secure Server CA - G4 and G5) Something must be wrong. When I look into SXMB_MONI, I see something for which I don't know if it is related: encryptionAlgorithmEncryptionEncriptionSignature value DES_EDE3_CBC. I am not an expert in this, but could it be possible that this should be AES256-CBC? How to change that?

 

Any help or suggestion is welcome. My next step will be to install XPI Inspector to figure out what is wrong.

 

Wilbert

Successfactor invalid session

$
0
0

Hi,

 

I am doing integration between our IS-R system and Successfactor through PI. I have imported SFIHCM600 01,02 and 03. Successfactor team has confirmed that we need to use this preview url in our DEV system - https://api12preview.sapsf.eu/sfapi/v1/soap?wsdl

 

Team has confirmed that they want to do integration for variable pay and they are triggering this report - RH_SFI_SYNCH_METADATA.I am not aware which standard OMs are required for this so I have created separate ICOs for all available OMs to check which one will be called in the run time.

 

1. Now connection between PI and SF URL is successful. After triggering the report I can see first its calling login interface - SFSFSessionHandlingLoginQueryResult_Out and I can see that one session ID is sent from SF side successfully.No issue in login and session creation. Screen Shot below -

session.JPG

2. I can see next its calling following SI - SFSFAPIDictionaryListSFObjectsResult_Out - OM for this is  -  SFSFAPIDictionaryListSFObjectsResult_Out_to_SFSFAPIDictionaryListSFObjectsResult_In. This one is failing due to invalid session. I can see that request message sent from IS-R to SF is not sending the session ID received in the first step. It sending $Version=0; hence failing. Screen shot below -

api1.JPG

 

api2.JPG

Please help with exact answer who has already worked on SF integration .

 

Thanks,

Ms SQL Server to SAP ECC - What Are The Required Things?

$
0
0

Hi All,

 

I need to pull data from Ms SQL server and post it to SAP ECC.

 

for this what are all the required things?

 

like what drivers we need to install in SAP PI and where we need to install? and where we need to check whether the drivers already deployed or not?

 

What are the connection parameters we need to configure Sender JDBC channel.

 

 

 

 

Thanks In Advance.,

Vishnu pallamreddy.

Wait time to post each IDoc

$
0
0

Hi Experts,

 

My scenario is File to IDoc with CSV as incoming file with multiple rows where each row data should be posted as an IDoc where I could achieve this and could post it to receiver SAP but now client requested to post each IDoc with wait time of say 60 sec and I tried it using below UDF.

 

public String timeDelay(String var1, Container container) throws StreamTransformationException{

{

try

{  Thread.sleep(50000);

}

catch (InterruptedException ie){}

return var1;

} }

 

But the above UDF is not working in terms of posting each IDoc with delay time of 50 sec here whereas the IDocs are posted at the same time rather with time gap.Kindly suggest.

 

Thanks,

Nithin.

Diff between JDBC & ODBC

$
0
0

hi,,

What is the difference between JDBC and ODBC

 

thanks

guna


SXMB_MONI ???

$
0
0

Dear All,

 

             What is the diff between SXMB_MONI and Messsage Monitoring in RWB?

 

Regards,

Ashish

CPACache Refresh Full under PI 7.11?!

$
0
0

Hi there,

 

is the URL for the CPACache Refresh under PI 7.11 also the same as on XI 3.0?

 

CPACache/refresh?mode=full

 

?

 

Cause i cannot use the URL

 

http://host:50000/CPACache/refresh?mode=full

 

with any user.. i tried every user.. user with SAP_ALL etc.. but alsoways 3 tries and then Error 401 Unauthorized?!

 

Can some help here?

 

Regards

Getting HTTP/1.1 401 Unauthorized while Sending the SOAP Request

$
0
0

Hi Experts,

      We have a scenario SOAP-PI-RFC Synchronous scenario. We are getting HTTP/1.1 401 Unauthorized when we try to send the request using SOAP UI. but when I try and execute the interface using RWB and directly send the message to integation engine the interface is working fine.

The User ID that I am using contains all roles and profiles and has all the access.

I have PI 7.1 SP 10.

 

Looking forward to your help and suggestions on the same.

 

Thanks,

Rupendra Sharma

Removing CDATA around XML Adds Unwanted Escaping

$
0
0

I've tried to follow examples in other posts but they have issues. This seems like something that should have a straight forward solution. I use a web service that returns a <DATA> node that contains CDATA that interns contains the XML payload I need. I've managed to write the java mapping to strip out the <DATA> and the CDATA and it looks fine when I test it in the OM test tab. But when I run this through PI the XML inside the CDATA is all escaped and everything I do to use it throws errors. I seriously need to get this working and could use any help. Here is a sample of the XML...

<?xml version="1.0" encoding="UTF-8"?>

<ns0:MT_ExportPayload xmlns:ns0="http://isbdcapp86/Enablon7.8Train/rpc_literal.wsdl">

<Data><![CDATA[<?xml version="1.0" encoding="UTF-16" standalone="yes" ?>

<Document>

  <Record>

    <EmployeeID>ID000006150265</EmployeeID>

    <ApplicationUser>&lt;None&gt;</ApplicationUser>

    <LastName>Shi</LastName>

    <FirstName>Nansun</FirstName>

  </Record>

</Document>]]>

</Data>

</ns0:MT_ExportPayload>

 

OM Test Tab using my java map (code below) gives me this...

<Data>

<Document>

  <Record>

    <EmployeeID>ID000006150265</EmployeeID>

    <ApplicationUser>&lt;None&gt;</ApplicationUser>

    <LastName>Shi</LastName>

    <FirstName>Nansun</FirstName>

  </Record>

</Document>

</Data>

 

But when I look at logs (soap message logs), I see this note the XML preamble in the <DATA> and even my needed xml is escaped...

<enab:ExportDataResponse xmlns:enab="enablon"> <Data>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-16&quot; standalone=&quot;yes&quot; ?&gt;

&lt;Document&gt;

  &lt;Record&gt;

    &lt;EmployeeID&gt;ID000006150265&lt;/EmployeeID&gt;

    &lt;ApplicationUser&gt;&amp;lt;None&amp;gt;&lt;/ApplicationUser&gt;

    &lt;LastName&gt;Shi&lt;/LastName&gt;

    &lt;FirstName&gt;Nansun&lt;/FirstName&gt;

&lt;/Record&gt;

 

&lt;/Document&gt;</Data>

</enab:ExportDataResponse>

 

The Java map based on what I have found in other, somewhat old posts...

 

import org.w3c.*;

import org.w3c.dom.Document;

import org.w3c.dom.Node;

import org.w3c.dom.NodeList;

import com.sap.aii.mapping.api.*;

import java.io.FileInputStream;

import java.io.FileOutputStream;

import java.io.InputStream;

import java.io.OutputStream;

 

 

public class GetEnablonPayload2 extends AbstractTransformation { 

 

  public void transform(TransformationInput transformationInput, TransformationOutput transformationOutput) throws StreamTransformationException { 

  try { 

             InputStream in = transformationInput.getInputPayload().getInputStream(); 

             OutputStream out = transformationOutput.getOutputPayload().getOutputStream(); 

             // Copy Input content to Output content 

             byte[] b = new byte[in.available()]; 

             in.read(b);

             DocumentBuilderFactory factory=DocumentBuilderFactory.newInstance();

            

             DocumentBuilder builderel=factory.newDocumentBuilder();                       

             Document docIn=builderel.parse(new ByteArrayInputStream(b));

            

             Document docOut = null; 

             docOut=builderel.newDocument();

            

             Node node; 

             NodeList nListRec = docIn.getElementsByTagName("Data"); 

             node = nListRec.item(0);

            

             Node clon = docOut.importNode(node,true); 

             docOut.appendChild(clon);

                        

             String sResult = null; 

             sResult = convertDocument_String(docOut);

             sResult = sResult.replace("<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-16\" standalone=\"yes\" ?>","");

             sResult = sResult.replace("]]>","");  

            

             out.write(sResult.getBytes());

         } catch (Exception exception) { 

             getTrace().addDebugMessage(exception.getMessage()); 

             throw new StreamTransformationException(exception.toString()); 

         } 

     } 

 

  public static String convertDocument_String(Document Doc){ 

   String sResult =""; 

   StringWriter writer = new StringWriter(); 

   try { 

       DOMSource domSource = new DOMSource(Doc); 

       StreamResult result = new StreamResult(writer); 

       TransformerFactory tf = TransformerFactory.newInstance();

       Transformer transformer = tf.newTransformer(); 

       transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8");

       transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes");

       transformer.transform(domSource, result); 

   } catch (Exception ex) { 

       ex.printStackTrace(); 

   } 

   sResult = writer.toString(); 

   return sResult; 

}

How to Delete IDOC

$
0
0

Hi

 

can you tell me how to delete idocs from R/3 system

 

Regards

 

Nawa

Difference between pi and po

$
0
0

HI friendz

 

I am new to pi now days every one is calling pi po what is this both are same or different  I am not able to find the difference plz xpln

 

 

With Regards

Arun

 

 

Difference between pi and po

ABAP Proxy setup SAP to PI (7.31 single-stack)

$
0
0

Hi,

 

I am trying to setup the proxy communication from SAP to PI (7.31 single-stack).

I went through this very good blog by Michal on how to set this up.

 

http://scn.sap.com/people/michal.krawczyk2/blog/2012/01/19/michals-pi-tips-how-do-you-activate-abap-proxies-with-aex--simplified-version

 

I created the outbound proxy from my Service Interface and activated succesfully.

 

Now when i test i get the following error

GET_BUSINESS_SYSTEM_ERROR An error occurred when determining the business system (COMMUNICATION_ERROR)

 

When i do SLDCHECK i get the following error (According to blog it shouldnt be necesary to create SAPSLDAPI)

2012-09-05_0922.png

 

What am i missing here?


iaik.security.ssl.SSLException: Peer sent alert: Alert Fatal: handshake

$
0
0

Hello all;

 

From SAP PI 7.30 we call we a SOAP web-service over https. This service was running for a long time. The provider of the web-service upgraded their SSL certificates from SHA-1 signing algorithm to the stronger and more robust SHA-256. After that, we get the following error: iaik.security.ssl.SSLException: Peer sent alert: Alert Fatal: handshake. As said, just before the change the connection was working. I have added the required VeriSign CA root certificates to the Trusted CA's keystore within NWA. (VeriSign Class 3 Secure Server CA - G4 and G5) Something must be wrong. When I look into SXMB_MONI, I see something for which I don't know if it is related: encryptionAlgorithmEncryptionEncriptionSignature value DES_EDE3_CBC. I am not an expert in this, but could it be possible that this should be AES256-CBC? How to change that?

 

Any help or suggestion is welcome. My next step will be to install XPI Inspector to figure out what is wrong.

 

Wilbert

Soap Array in external WSDL

$
0
0

Hi all,

 

i have an webservice that i need to use as a reciever that  has a WSDL containing soap arrays instead of repeating groups.

 

<xsd:complexType name="workOrderArray">

  <xsd:complexContent>

    <xsd:restriction base="soapenc:Array">

      <xsd:attribute ref="soapenc:arrayType" wsdl:arrayType="tns:workOrder[]" />

    </xsd:restriction>

  </xsd:complexContent>

</xsd:complexType>

 

 

i understand that  PI is not supporting  this  but maybe somebody has found a work around ?  At the moment i 'm creating an XSD from the WSDL and then i will import the xml schema and i will see if that works.

 

any other suggestions ?

MT940 format sample

$
0
0

Hi,

  Bank statement is comming type MT940 format. can you send me one sample of  MT940 format .and in this format any  attribute like TAG 25 which indicates account number??kindly let me know.

 

Thanks,

Suchitra

Diff between JDBC & ODBC

$
0
0

hi,,

What is the difference between JDBC and ODBC

 

thanks

guna

Removing CDATA around XML Adds Unwanted Escaping

$
0
0

I've tried to follow examples in other posts but they have issues. This seems like something that should have a straight forward solution. I use a web service that returns a <DATA> node that contains CDATA that interns contains the XML payload I need. I've managed to write the java mapping to strip out the <DATA> and the CDATA and it looks fine when I test it in the OM test tab. But when I run this through PI the XML inside the CDATA is all escaped and everything I do to use it throws errors. I seriously need to get this working and could use any help. Here is a sample of the XML...

<?xml version="1.0" encoding="UTF-8"?>

<ns0:MT_ExportPayload xmlns:ns0="http://isbdcapp86/Enablon7.8Train/rpc_literal.wsdl">

<Data><![CDATA[<?xml version="1.0" encoding="UTF-16" standalone="yes" ?>

<Document>

  <Record>

    <EmployeeID>ID000006150265</EmployeeID>

    <ApplicationUser>&lt;None&gt;</ApplicationUser>

    <LastName>Shi</LastName>

    <FirstName>Nansun</FirstName>

  </Record>

</Document>]]>

</Data>

</ns0:MT_ExportPayload>

 

OM Test Tab using my java map (code below) gives me this...

<Data>

<Document>

  <Record>

    <EmployeeID>ID000006150265</EmployeeID>

    <ApplicationUser>&lt;None&gt;</ApplicationUser>

    <LastName>Shi</LastName>

    <FirstName>Nansun</FirstName>

  </Record>

</Document>

</Data>

 

But when I look at logs (soap message logs), I see this note the XML preamble in the <DATA> and even my needed xml is escaped...

<enab:ExportDataResponse xmlns:enab="enablon"> <Data>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-16&quot; standalone=&quot;yes&quot; ?&gt;

&lt;Document&gt;

  &lt;Record&gt;

    &lt;EmployeeID&gt;ID000006150265&lt;/EmployeeID&gt;

    &lt;ApplicationUser&gt;&amp;lt;None&amp;gt;&lt;/ApplicationUser&gt;

    &lt;LastName&gt;Shi&lt;/LastName&gt;

    &lt;FirstName&gt;Nansun&lt;/FirstName&gt;

&lt;/Record&gt;

 

&lt;/Document&gt;</Data>

</enab:ExportDataResponse>

 

The Java map based on what I have found in other, somewhat old posts...

 

import org.w3c.*;

import org.w3c.dom.Document;

import org.w3c.dom.Node;

import org.w3c.dom.NodeList;

import com.sap.aii.mapping.api.*;

import java.io.FileInputStream;

import java.io.FileOutputStream;

import java.io.InputStream;

import java.io.OutputStream;

 

 

public class GetEnablonPayload2 extends AbstractTransformation { 

 

  public void transform(TransformationInput transformationInput, TransformationOutput transformationOutput) throws StreamTransformationException { 

  try { 

             InputStream in = transformationInput.getInputPayload().getInputStream(); 

             OutputStream out = transformationOutput.getOutputPayload().getOutputStream(); 

             // Copy Input content to Output content 

             byte[] b = new byte[in.available()]; 

             in.read(b);

             DocumentBuilderFactory factory=DocumentBuilderFactory.newInstance();

            

             DocumentBuilder builderel=factory.newDocumentBuilder();                       

             Document docIn=builderel.parse(new ByteArrayInputStream(b));

            

             Document docOut = null; 

             docOut=builderel.newDocument();

            

             Node node; 

             NodeList nListRec = docIn.getElementsByTagName("Data"); 

             node = nListRec.item(0);

            

             Node clon = docOut.importNode(node,true); 

             docOut.appendChild(clon);

                        

             String sResult = null; 

             sResult = convertDocument_String(docOut);

             sResult = sResult.replace("<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-16\" standalone=\"yes\" ?>","");

             sResult = sResult.replace("]]>","");  

            

             out.write(sResult.getBytes());

         } catch (Exception exception) { 

             getTrace().addDebugMessage(exception.getMessage()); 

             throw new StreamTransformationException(exception.toString()); 

         } 

     } 

 

  public static String convertDocument_String(Document Doc){ 

   String sResult =""; 

   StringWriter writer = new StringWriter(); 

   try { 

       DOMSource domSource = new DOMSource(Doc); 

       StreamResult result = new StreamResult(writer); 

       TransformerFactory tf = TransformerFactory.newInstance();

       Transformer transformer = tf.newTransformer(); 

       transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8");

       transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes");

       transformer.transform(domSource, result); 

   } catch (Exception ex) { 

       ex.printStackTrace(); 

   } 

   sResult = writer.toString(); 

   return sResult; 

}

Viewing all 971 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>