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

How to write a UDF using IDoc Segment

$
0
0

Hello,

 

(PI Mapping newbie here - please be gentle )

 

I'm working on mapping an IDoc to a csv flat file.

 

I need to interrogate certain fields of the source IDoc and return a particular field.

 

The IDoc in question is based on HRMD_A09 - Segment E1P0041 (Date Specifications).

 

I want to return the date value from one of the 12 repeating fields (DAT01 - DAT12) - the one I want will be identified by the date type fields DAR01 - DAR12.

 

I could create a UDF that passes a total of 25 arguments and build a big horrid if - then - else with 12 nested comparisons - I'd like to think there is a better and cleaner solution possible.

 

If I pass a whole IDoc Segment to a UDF as an argument, how can I parse the value into the individual components?

 

I'm reading up and trying to understand the "all values of a context"/"all values of a queue" concepts - not sure that the answer is in this direction.

 

If I were to write this in ABAP it would be easy - I'd be able to pass the segment as a parameter into a form routine so that it is typed according to the segment, and then I'd be able to write up a "do varying" loop structure.

 

  l_wa_ee_records-corrected_lsl_date        = me->get_date_type( im_p0041     = ls_p0041
                                                                  im_date_type = 'LS' ).

 



METHOD get_date_type .

   DATA: l_dar      TYPE datar,
         l_dat      TYPE dardt,
         l_date     TYPE d.

   DO 12 TIMES VARYING l_dar FROM im_p0041-dar01
                             NEXT im_p0041-dar02
               VARYING l_dat FROM im_p0041-dat01
                             NEXT im_p0041-dat02.

     IF l_dar IS INITIAL.
       EXIT.
     ELSEIF l_dar = im_date_type.
       l_date = l_dat.
       EXIT.
     ENDIF.

   ENDDO.



Any ideas will be appreciated - thanks in advance


Peer certificate rejected by ChainVerifier in file receiver communication channel

$
0
0


Hi,

I have been searching in SDN from last two but no thread is solving my issue.
The scenario is FTP to SFTP and there is a self signed certificate and it got expired, so imported new certificate in NWA successfully which is provided by third party system.
When i am testing it, i am geeting below error,can you please suggest how to fix it,

 

Attempt to process file failed with Error when getting an FTP connection from connection pool: com.sap.aii.af.lib.util.concurrent.ResourcePoolException: Unable to create new pooled resource: iaik.security.ssl.SSLCertificateException: Peer certificate rejected by ChainVerifier.

 

Cheers,

Giri

IDOC stuck in outbound queue of ECC but received in taget system

$
0
0

Hi Experts,

 

We sending the IDocs in a sequence using queue processing option in WE20, one of the Idoc stick in the outbound queue and all other sub sequent Idocs also stuck in the queue but actually the first Idoc has reached to PI and the target system and the acknowledgement send to ECC.

 

Can any one tell me what could be the reason and how to resolve this.

 

Thanks for your help.

 

Regards,

Rachana.

Third Party Technical System

$
0
0

Hi PI Experts,

 

Can you please me in clarifying below doubt?

 

- I have created a 1 third party technical system and corresponding to this technical system I am creating different business systems or different 3rd Parties like Web Services, FTP and even all business systems for different environments(Dev, QA and PROD)

 

My question is:

 

1)Will 1 single system can be used for all Business systems or do  I need to create different technical systems?

 

Regards,
Sarvjeet

Regarding the transportation in in process orchestration using SLD

$
0
0


Hi Experts,

 

               we have completed the devlopment and testing of interfaces.Now we want to move the interfaces to production environment.Now Could you please tell me how to transport the integration directory objects using the system landscape directory.

 

 

 

 

 

 

 

Thanks

Giridhar

SAP PI 7.31 copy of standard Service Interface

$
0
0

Hi there experts,

 

I have to copy some Service Interface that is already working since they need some extra functionality. Since I cannot copy the Service Interface with all dependent objects changing its name, I've copied it with same name under a new product and namespace.

 

Once I try to activate the proxy, it raises with an Authorization Code asking as if I were trying to modify a SAP standard object, even though it's a copy of it. Does anyone know how to proccess here? shall I develope the WHOLE bunch of objects (DT, MT, etc...) to be able to rename the Service Interface?

 

cheers,

 

 

Edu

which user authorisation should be given to thrid party in WS scenerio

$
0
0

Hi Experts

 

I have a scenerio wherein the 3rd pary sytem in the sender side is consuming the WS being exposed by SAP PI

For that they need creds for consuming that ws so which authorisation should I give to that creds?

 

Thanks

com.sap.engine.interfaces.messaging.api.exception.DuplicateMessageException

$
0
0

Hello Experts,

 

We are on PI 7.31 single stack.

 

We are getting a strange issue for File Sender Adapter(EOIO).

 

Returning to application. Exception: com.sap.engine.interfaces.messaging.api.exception.DuplicateMessageException: Message Id 87bc642b-a70a-11e4-8160-000020060e26(OUTBOUND) already exists in duplicate check table: com.sap.sql.exception.OpenSQLIntegrityConstraintViolationException: ORA-00001: unique constraint (UNKNOWN.obj#=17503) violated

 

OpenSQLExceptionCategories: [NON_TRANSIENT, INTEGRITY_CONSTRAINT_VIOLATION]

 

 

When we check in communication channel monitoring, it is showing the same message id in error. But if we check the same message id in message monitoring, the status is shown as delivered and in message log,we can see the above mentioned error.

 

Please help.

 

Regards,

Suman


proxy to SFTP with attachment-Payload Query.

$
0
0

Hi Experts,

 

I have an issue while sending an attachment from proxy to SFTP server, I have created a proxy structure to read the file with filed as filename and used UDF to read the file and i have mapped with root node, ABAP ECC system is sending a pdf file and passing through PI, but in SFTP server along with the PDF file , as well as another file withXML structure is also been posted.

 

My requirement is just to place the PDF file with file name but not the XML file.

 

At present am using classical scenario with SFTP receiver channel.

 

Plz provide me the solution if i go with ICO also.

 

thanks in Advance.

Execution Sequence in PI.

$
0
0

Hi Experts ,

 

I want to know how the execution of ID and ESR starts and begins in PI .

 

Like first would be Sender agreement or sender channel then Interface determination...and so on ..how they are executed ?

 

And also it would be very helpful if some one explains me the how execution in adapter happens  for eg like first would be FCC or module configuration ?

 

I want to know execution sequence in all adapters ?

 

Br,

Manoj Khavatkopp

consume a non single flattened WSDL web service in SAP PI - IR

dynamic interface determination or receiver determination

$
0
0

Dear all

have a question regarding receiver/interface determination. We have a scenario where different types of idols ( for eg ORDERS05, WMMBXY etc) comes from a partner via Seeburgre AS2 connection. Our concern is , since the data that's coming are different, we are unable to decide how to identify what type of idoc is coming. Pls note we have one as2 agreement for all the types of data.

the requirement is if the data coming is ORDERS05 then it should be mapped with orders05 idoc and if it's WMMBXY then it should be mapped with WMMBXY IDOC..

 

can somebody help

 

thanks in advance

 

bobby bal

9819551461

dynamic interface determination or receiver determination

$
0
0

Dear all

have a question regarding receiver/interface determination. We have a scenario where different types of idols ( for eg ORDERS05, WMMBXY etc) comes from a partner via Seeburgre AS2 connection. Our concern is , since the data that's coming are different, we are unable to decide how to identify what type of idoc is coming. Pls note we have one as2 agreement for all the types of data.

the requirement is if the data coming is ORDERS05 then it should be mapped with orders05 idoc and if it's WMMBXY then it should be mapped with WMMBXY IDOC..

 

can somebody help

 

thanks in advance

 

bobby bal

9819551461

How to consume non single WSDL in SAP PI - ESR (IR)

$
0
0

Hi Expert,

 

Third party has given the non single flattened wsdl to consume by SAP PI.

 

i have upload the wsdl as external definition and mapped in message mapping (MM ) in ESR (IR).

 

In message mapping, external method is not loaded properly in Message Mapping ( MM) in ESR .

 

According to the publisher, They have given the non single wsdl web service and use WCF technology and includes multiple XSD's.

 

Can you please help to consume non single flatened WSDL web service in SAP PI IR  ?

 

Thanks,

Rehan

unable to deplay Axis provider sda on 7.4

$
0
0

Hi friends,

 

we have brand new PO 7.4 system and we would like to deploy the Axis provider sda files. Usually i creat it with sdaMakerTool but i got version conflict. Can anyone assist me to solve this issue?

 

Kind Regards

 

~~~~~~~~~~~~~~~~~~~

 

 

Successfully deployed:          0

 

Deployed with warnings:          0

 

Failed deployments:              1

 

~~~~~~~~~~~~~~~~~~~

 

[ERROR CODE DPL.DCAPI.1031] AllItemsAlreadyDeployedValidationException.

Reason: ASJ.dpl_dc.003456 All batch items are marked as AlreadyDeployed because of Version check.

 

1. File:C:\Users\PM\Desktop\com.sap.aii.af.axisproviderlib.sda

    Name:com.sap.aii.af.axisproviderlib

    Vendor:sap.com

    Location:SAP AG

    Version:7.4005.20131120165702.0001

    Deploy status:AlreadyDeployed

    Version:LOWER

 

    Description:

        1. Already deployed component has version:7.4008.20140808110905.0000

 

Exception:

com.sap.engine.services.dc.api.deploy.AllItemsAlreadyDeployedValidaionException:

ERROR CODE DPL.DCAPI.1031] AllItemsAlreadyDeployedValidationException.

Reason: ASJ.dpl_dc.003456 All batch items are marked as AlreadyDeployed because of Version check.


Convert German characters to UTF-8.

$
0
0

Hello Experts,

 

We have a scenario in which one of the field receives a url which contains German characters, here we have to encode only German characters along with underscore(_) to UTF-8 but not the complete url.

 

URL example:

 

https://scn.sap.com/abc-/germancharacters/%d&&devsystem/_p_&&client-123?

 

from the above url we have to encode only germancharacters and (_) but not the complete url, also will it work if we encode complete url?

 

Please suggest any UDF to encode the url.

 

thanks in advance

Error in the call adapter step in Integration engine in SAP PI

$
0
0

Hi Experts,

 

Good Day !!!!!

 

I tried to search my doubt in online but failed. I hope someone can answer my doubt.

 

My scenario is SOAP to IDOC. My messages are failing in the integration engine at call adapter step and it is showing the error no RCVPRT found. In the idoc receiver communication channel i configured the following parameters

 

1) Take control segments from the payload

2) Take receiver from the payload

3) Take sender from the payload

 

i have taken the input payload of the IE and Executed in the Mapping there i observed all the values are passing to the Control Segment(EDI_DC40). But in the IE at the final step(CALL Adapter) i observed IDOC structure is created but the EDI_DC40 segment for some fields (SNDPRN,RCVPRN,RCVPRT) values are missing. I first thought it is a cache issue but i found this issue occurring only for some messages and for the remaining messages executing fine.

 

Thanks in advance,

Satish.

External Definitions for Idoc in SAP PI7.4

$
0
0

Hi All,

 

We are on SAP PI 7.4 and have a requirement where in we have to map an incoming file to Idocs.Each file will have to generate multiple Idocs based on few conditions which we handle in mapping.

 

In order to create multiple idocs,I have changed the occurance and I have imported the same into an external definition.I have created a Service Interface for this.

 

However,on running the scenario,I am getting errors when PI is trying to post the Idocs.It says that the port and partner settings are incorrect.

 

I have done the following steps:

 

1.Disabled the EDIDC40 field and in the Idoc AAE Receiver Advanced properties,I selected Not mandatory for the Control Record in Idoc xml.For this,I am getting the error :"The Configuration for Sender/Receiver Partner Number/Port is incorrect. Enter proper values in Sender/Receiver Component".I tried with and without header mappings as well.

 

2.I enabled the EDIDC40 segment,maintained the SNDPRT and SNDPRN values as per this discussion http://scn.sap.com/thread/3439059.

Maintained my ECC system details in the SNDPRT and SNDPRN values and maintained the name of the ECC system in the Sender in Header Mapping.I have checked Manatory in the Receiver Idoc channel for Control Record in Idoc xml and also the option "Apply sender from payload".

 

However,for this I get the following error : "java.lang.NullPointerException: while trying to invoke the method java.lang.String.length() of a null object loaded from local variable 'chars'".

For this error,there is a note which is given for the resolution : SAP Note 1862655.

However,in this note it is mentioned that the interface name and namespace naming convention should be <MSGTYP>.<IDOCTYP>.<CIMTYP>

and urn:sap-com:document:sap:idoc:messages.Mine is an external definition as I have changed the occurance and hence there is a Service interface and the namespace is also different.Is there any way to handle this in SAP PO?

 

Request you to share your thoughts on this as I have been stuck in this issue since quite long.

 

Thanks and Regards,

Induja

Security issues when PI in DMZ

$
0
0

Dear All,

 

I have a scenario (without ESR) where I need to process the Payment file(text file) to bank. However, as PI system is in DMZ, and customer's infrastructure team is not willing to open the SFTP port(22) from PI to inside their local network where ECC has been placed. consequently I am not able to connect the ECC system from PI using SFTP adapter, because they are feeling security issue here, as if port is open from PI to ECC it can make a way to hack the other systems in their local network.

 

Please advise how we are dealing with such kind of scenario.

 

Thanks,

Farhan

Value Mapping Replication

$
0
0

Hi,

 

we are new to pi and we have no idea about value mapping replication .

 

 

we are getting the below mentioned error in message monitor:-

 

Delivery of the message to the application using connection JPR failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error processing inbound message. FaultException: com.sap.aii.proxy.xiruntime.core.ESPXISystemFaultException: Error encountered during processing of XI request message in inbound ESP; Hint: com.sap.engine.interfaces.webservices.runtime.RuntimeProcessException: Unexpected uriID


please explain what is value mapping and please provide some suggestions on above mentioned error.



thanks

Debanjan.

Viewing all 6719 articles
Browse latest View live


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