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

Values are suppress in String

$
0
0

Hi all.

 

Am doubting how to build the logic for the mapping of a string function when it is null .

 

In my scenario what is happening is we are getting field name as usrid in the which i have pass first character of usrid and pass to target field .

 

And when it is empty it has to pull the first char of usrid _long  and when it is null it should pass null.

 

So for that i have written a code as below .

 

seg.PNG

 

But what is happening here is when am passing it  to target field values are been suppress, I think it is due context handling , but both fields are from same segment E1P0105  .

 

please help me out in these !!!

 

Best regards,

 

vijender


Calculate first Monday of every month :-Urgent

$
0
0

Hi All,

 

I want to check whether the date coming from the input file is coming after the first Monday of that month or not.

 

If this date is coming after first Monday than pass that particular month else pass the previous month.

 

Regards,

Hybris integration using SAP PI

$
0
0

Hello

 

Had anyone integrated SAP PI & Hybris? pls can you share some thoughts and exp on how to config it?

SAP NWDS to PO connectivity Roles Required ?

$
0
0

Hi Experts,

 

I am trying to add SAP PO server (NW731EXT_10_REL) SP 05 to NWDS 7.3 EhP 1, its asking me to enter the "OS level password  to SAP JEE Host".

Is entering the OS level password only option to get PO server configured in NWDS ?

 

I went through wiki link NWDS Troubleshooting - Java Development - SCN Wiki which talks about the issue - "Engine not displayed in preferences", I am facing exact same issue and want to know, can the Answer part in this wiki help resolve the issue without using OS Level Password ?

 

--> Open DEFAULT.PFL file in /usr/sap/(SID)/SYS/profile and set service/protectedwebmethods to DEFAULT (from SDEFAULT) and then restart the engine.

 

I believe this is to be done on SAP PO server, Do I still have to use the OS password ? Also, does it not reduce the security level of the PO server ?

 

Also, in general projects, what all authorizations does a developer have when using NWDS with SAP PO ? Like developing NW BPMs, Deploying them to Server etc. Once I get these details our BASIS team can create corresponding role and assign to my userid. I want to separate general BASIS activities from that of PO Developer.

 

Please provide your valuable inputs.

 

Thanks & regards,

Rajesh S. Shinde

SSSLERR_SERVER_CERT_MISMATCH

$
0
0

Hi All,

 

The Scenario is File

Since Receiver is http. We have created rfc destination.

 

Client have provided the SSL Certificates. We have imported it.

 

But when Iam trying to test connection it is throwing error in SMICM trace as SSSLERR_SERVER_ERROR_MISMATCH.

 

Thanks,

Lalitha

Performance monitor not working

$
0
0

Hello everyone! We have a SAP PI 7.31 Java Only system, and we have made the configuration described in note 1636215 (Performance monitoring for the Advanced Adapter Engine)! But when we open "Performance Monitor" we still see the message  "Individual data is not available for the current selection".

 

Any ideas ?

 

Julio

How to read .xlsx file into sap pi

$
0
0

Hi Experts ,

 

I am working one scenario like excel file to idoc.we have to read the excel file(.xlsx) from a shared directory.The excel file contains several sheets.

from one of the sheet we have header and item details.

From that sheet i need to read the data and sheet has cells and columns. Attached the test file.

 

 

Header

Ship To

Name

PO Name

Pricing Date

PO Date

Order Reason

Item details

Material code

Order quantity

UOM

 

 

Please check the below requirement and read from the sheet (cells and columns)

 

HEADER DATA

ship To read from cell C1

PO number read from cell C3

date read from cell C4

orderreson read from cell C5

podate read from cell C6

 

LINE ITEM DATA

Start to read from row 9

End of read row 30

Only read the rows where the row having value in column B > 0 and value in column D > 0, else don’t read

1 row equal 1 line item in the sales order

Material code read in column B

Order quantity read in column D

Unit of Measure read dynamically according to column E:

If column E = CS then Unit of measure for the row is CS (cases)

1) is there any Excel TransformBeam to convert various Excel format to simple XML

2) module parameters in communication channel

 

2 )any java mapping

 

 

Please help me on the above requirement.


Regards,

Ganga.

 

SXMB_MONI performance/timeout problem

$
0
0

Hi,

 

I can't display any xml message from sxmb_moni(sxi_monitor) tcode on our production PI system(7.11.1).

 

When I select a message and press display button, GUI's load bar starts spinning until Timeout error occurs.

Screen Shot 2015-08-24 at 17.53.10.png

 

 

I've checked DB02 tcode to identify largest tables,

Screen Shot 2015-08-24 at 17.32.43.png

 

Integration Engine Configuration parameters like below,

Screen Shot 2015-08-24 at 17.43.54.png

 

I found following notes and want to make sure before apply them, whether these are appropriate to my case.

 

872388 - Troubleshooting Archiving and Deletion in PI

706478 - Preventing Basis tables from increasing considerably

 

Thanks in advance

Ridvan Polat


How to populate the Day from the input date value

$
0
0

Hi,

 

I have a requirement , i need to populate the day ( Sunday or Monday  or whatever exact string ) based on input date value.

 

I had tried with date transformation, which is not producing string value of required Day from the standard date functions.

 

Can anyone guide me how to get this value without UDF. If UDF is mandatory then plz guide me how to write the simple java code to fetch this value.

 

Regards

Jain

PI Message Throttling

$
0
0

Hi Experts,

 

I have a scenario, where SAP will be sending a file/proxy with multiple records to PI and PI wants to send one record at a time to receipt system and there should be delay between 2 records. This is because the recipient system cannot handle the load.   I want to achieve this without ccBPM and we are on dual stack 7.3 installation.

 

Please help.

 

Thanks,

Nishant

How to pass file name from File adapater to http post

$
0
0

Hi!

 

We have an interface where third party system expect to pass the file name in the http post. We have few static parameters of third party under path prefix of http destination. They want us to pass the file name as a dynamic parameter.

 

How can I achieve the above?

 

I am using DynamicConfigurationBean and passing the Filename to UrlParamOne

 

I can see in the message monitor under SOAP response header UrlParamOne has got the filename from file adapter. How can I get this value passed to posting url as a dynami parameter?

 

Regards

 

Ramesh

Fault Message : Mapping error

$
0
0

Hi experts,

 

Here is my scenario : SProxy => PI => SoapUI

It's a Synchrone interface.

 

I have some difficulty with Fault Message.

com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.interfaces.messaging.api.exception.MessagingException: SOAP: Response message contains an errorXIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Fault String here ... at com.sap.aii.adapter.soap.web.SOAPHandler.processSOAPtoXMB(SOAPHandler.java:772) at ...

 

Response from SoapUI (Fault Message) :

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">

   <soapenv:Header/>

   <soapenv:Body>

      <soapenv:Fault>

         <faultcode>Fault Code here ...</faultcode>

         <faultstring>Fault String here ...</faultstring>

      </soapenv:Fault>

   </soapenv:Body>

</soapenv:Envelope>

 

I created a MT for my Outbound interface fault message (SProxy - ECC) :

MT Fault.PNG.

It's a standard Fault Message.

 

For SoapUI response i tried to create an External Definition with a custom XSD :

 

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

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"

xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"

targetNamespace="http://schemas.xmlsoap.org/soap/envelope/">

    <xs:complexType name="BodyType">

        <xs:sequence>

            <xs:element name="Fault" type="SOAP-ENV:FaultType"/>

        </xs:sequence>

    </xs:complexType>

    <xs:element name="Envelope">

        <xs:complexType>

            <xs:sequence>

                <xs:element name="Body" type="SOAP-ENV:BodyType"/>

            </xs:sequence>

        </xs:complexType>

    </xs:element>

    <xs:complexType name="FaultType">

        <xs:sequence>

            <xs:element name="faultcode" type="xs:string"/>

            <xs:element name="faultstring" type="xs:string"/>

        </xs:sequence>

    </xs:complexType>

</xs:schema>

 

But i have always this error :

 

<SAP:Category>XIProtocol</SAP:Category>
<SAP:Code area="PARSING">GENERAL</SAP:Code>
<SAP:Stack>com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.interfaces.messaging.api.exception.MessagingException: SOAP: Response message contains an errorXIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Fault String here ... at com.sap.aii.adapter.soap.web.SOAPHandler.processSOAPtoXMB(SOAPHandler.java:772) at ...

 

I tried to use http://schemas.xmlsoap.org/soap/envelope/ in external definition but same problem.

 

Soap Envelope in External Definition :

Soap Env.PNG

 

Here is my mapping :

Mapping Fault.PNG

 

I don't understand why i always have this error ...

Maybe my External Definition doesn't match with SoapUI response ?

 

Regards,
Youri

Encoding the Signed message request with Base64 Encoding

$
0
0

Hello Experts,

 

I have a scenario, where i am sending payment files to the bank and bank has requested for following things to be done before consuming their web-service -

 

  1. Get contents in Bytes to Sign (Using UTF-8 Encoding)
  2. Get the X509 Certificate (Private Key Certificate)
  3. Compute the Message Digest
  4. Sign the Message and generate attached Signature (use Detached/attached property of Signing Library)
  5. Encode your Signed Message into Base64 Encoding

 

For the Step 1, already the data by default in SAP PI is UTF-8, so no problem.

 

For step 2, i have generated the Certificate request and got it CA signed and the same certificate will be provided to the Bank's Server.

 

Step 3 - I do not what actually computing message digest mean? Can you please tell me what is this?

 

For Step 4 - I am using PGP encryption Module, and using only Signing feature of the module. Compression and Encryption are turned off. For signing i have generated public and private keys. Using private key i am signing the request and with public key bank will verify the message from their end.

 

Step 5 - Encoding the message using Base64 Encoding. For this i came across many links, which tells about performing this mapping using Java mapping.

 

But mapping during encoding does not help, because Bank wants the encoding to be done after the message has been signed and signing is happening in the receiver adapter, hence i must do encoding in the receiver adapter itself.

 

Doing it in receiver adapter, i came across a link where it requires developing a Customer Adapter Module -


SAP XI/PI   Encode Outgoing Payload using Adapter Module


Developing a Custom Adapter Module may require some time. I was looking if there is any easy method to encode this message using Base64?

 

Also please let me know if my understanding is correct on other steps and i am going on the right track?

 

Any help on this highly appreciated as we are very near to go-live and urgently need help on this.

 

Regards,

Nitin Deshpande

SAP PI-File to file scenario

$
0
0

Hello ,

 

I have created ESR objects for file to file scenario.Now in Integration Directory i cannot see option of creating Business Services.

I created Business component and  created integration configuration .

 

But somehow i am not getting integration configuration.

Can you please guide me in this.

 

Also if need to use NFS in communication channel,, i have place file via sxda_tools transaction under E:\usr\sap\example.xml.

But when i pinged communication channel, i get error that file is either not available or cannot be read.

 

Also if i use FTP then should i use ip address of my machine ?

 

 

Please help me in this .

Thanks

Connectivity to HTTPS url using HTTP_AAE adapter

$
0
0

Dear Experts,

 

Can we connect to HTTPS url using HTTP_AAE adapter?

 

Usage of SSL certificates is mandatory?

 

 

I am getting below error while connecting to HTTPS url.

 

ERROR_SENDING_HTTP_REQUEST-Message Processing Failed. Reason : java.net.SocketException: Connection reset:::::

 

 

Please share your valuable inputs.

 

 

Thanks,

Pavan T


Want FFFF added to the first context value how to do it in graphical mapping

$
0
0

I want to add four letters FFFF to the first context value how to do it in graphical mapping

How to add static http headers to messages sent via HTTP_AAE receiver channel

$
0
0

Hi Experts,

 

Would you know how to add static http headers to messages sent via HTTP_AAE receiver channel?

 

Thanks in advance.

 

-J

Java code for txt to xml conversion

$
0
0

Hi Experts,

 

My source file structure is below.

 

1

2

3

4

5

6

7

8

9

10

 

 

Source structure should convert as below after java code:

 

<row>

<field1>1</field1>

<field2>1</field2>

<field3>1</field3>

<field4>1</field4>

<field5>1</field5>

<field6>1</field6>

<field7>1</field7>

<field8>1</field8>

<field9>1</field9>

<field10>1</field10>

</row>


I tried with FCC and failed. Below is the discussion.


https://scn.sap.com/thread/3788854

 

So trying to achieve this via PI, by placing java code under message mapping functions tab to avoid critical process of java mapping. Can anyone help me on java code for this.



Count the number of records and validate with file count before posting the IDoc

$
0
0

Hi Experts,

 

    I do have a Flat File to IDoc scenario, As of now IDoc is posting successfully in ECC as per the earlier requirement. But now functional people have added some addition requirement to this before posting the IDoc.

 

Sender Flat File structure looks as;-

Header:

  Field 1:

    Field 2:

Detail:

  Field 1:

   Field 2:

Trailer

  Field 1:

   Record Count: 10

 

The new requirement is:--

1. Count the number of lines coming from the sender Flat file, and validate with the Record Count field of the Trailer record.

2. If the count will be the same then post the IDOC into ECC, Else through an exception in Mapping level like "Count was not matching with the File".

 

Please suggest me,if this would be possible by standard functions of PI or do i need to write any UDF instead?

 

FYI,

   I am not using Trailer records in my earlier Structure and mapping too. Because these fields were not mandate to replicate in the Idoc segments. please suggest me if i need to add again in the sender structure for this new requirement.

 

Thanks in Advance.. :-)

 

Regards,

Dileep Kumar

PGP encryption: Private and public key

$
0
0

Hello Friends,

 

I have one new requirement,file will get triggered from SAP and it is placing in PI NFS location. while picking, the file should be encrypt and it has to be reach receiver SFTP location,from there they(receiver is bank system)will use the PI generated decryption and send receiver will use that to decry-pt.

 

Quires:

 

1. In sender side for encryption  we need to write a module, for that from where we have to get that public key and private key?

2. for sender side encryption which key we need to use?

3. In my case receiver is bank system,so which key i need to provide them for decryption from their end?

 

 

Thanks,

Janardhan

Viewing all 6719 articles
Browse latest View live


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