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

how to make jdbc adapter Synchronous in PI

$
0
0

problem:

i have an scenario where I am sending data fromjdbc adapter(oracle DB) to RFC ,now it is asynchronous,the problem is zhe sender adpter may updater more data than we want ,

my sender adapter :

the query sql ---- 'select * from ztable where flag = 0',

update sql ------''updater ztable set flag = 1 where flag = 0

reason:

firstly execute the query sql,at the same time new data with flag = 0 were putted in the table,but i dont get it,and then secondly,execute update sql,make its flag back 1,and I will never get it .

help me:

what can i do to solve this problem? make the interface synchronous ? .

 

thank you very much~


Unable to open ID part in NWDS

$
0
0

Hi Experts,

When I installed I was able to open ID in NWDS. but now am getting error when am connecting to ID.Please find the screen shot for the error am getting.

ID Error.PNG

 

Please help me in this issue ASAP

I have installed Java Update 31.

Pass through scenario with no mapping 7.4 dual stack

$
0
0

HI experts,

i have interface File to SFTP pass through scenario with out message mapping.

1.can we achieve this with out message mapping if yes can you please provide any related doc and links

2.i read so many blogs without integration repository we can achieve this scenario if you have any required doc can you provide.

 

 

 

 

 

 

 

 

 

Regards,

Sruthi

Runtime exception occurred during application mapping / com.sap.aii.utilxi.misc.api.BaseRuntimeException:Premature end of file.

$
0
0

Hi Experts,

 

Good day!

 

I need you help. I have a scenario, 3rd party Application sending data to SAP PI (via SOAP) in XML form. Using ESR's message Mapping and Operation Mapping, when testing a payload, the mapping result is successful. from RWB, when i load the same payload  to test, the result is successful. But when integrated to the actual 3rd party application (and even using SAp Pi - Service Registry) using the same payload used in MM and OM, there's an error:

 

<SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">

  <SAP:Category>Application</SAP:Category>

  <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>

  <SAP:P1>com/sap/xi/tf/_MM_LAP_ECC_WVINVE_</SAP:P1>

  <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException:</SAP:P2>

  <SAP:P3>Premature end of file.</SAP:P3>

  <SAP:P4 />

  <SAP:AdditionalText />

  <SAP:Stack>Runtime exception occurred during application mapping com/sap/xi/tf/_MM_LAP_ECC_WVINVE_; com.sap.aii.utilxi.misc.api.BaseRuntimeException:Premature end of file.</SAP:Stack>

  </SAP:Error>

 

Appreciate if you can help me where to check and correct the problem. thanks!

File - Will be emailed As Attachment To Specific Mail ID

$
0
0

Hi All,

 

I have a requirement.

My sender is proxy.

I need to send a File and that will be emailed as attachment to xyz.com

 

Please help me on the requirement.

 

 

Thanks In Advance,

Vishnu Pallamreddy.

 

Assign resources (CPU, Memory) to interfaces

$
0
0

Hello Experts,

 

We are in the process of developing many new interfaces in SAP PI, recently we had an issue that one of interfaces due to change on indexes in Oracle database was running 1 hour instead of usual few seconds and caused a few memory dumps (other interfaces scheduled later started to work parallel). We have a few critical interfaces that has to run and we are looking for some way of assigning resources so "less critical" interfaces won't cause them to run slowly, by taking resources.

 

Is there any way to assign CPU cores, memory to given Interface/Integration ?

 

Maybe something like Execution groups in WebSphere Message broker ?

 

I would be very grateful if someone point me in the right direction.

 

Best

FTP to SFTP

$
0
0

Hi,

 

I have a scenario need to be developed...am new to PI 7.31(Single Stack) version...my requirement is the client placing the 2 different CSV files in FTP which need to be picked up and placed into SFTP. with out any mapping.

FTP is my company location and SFTP is client location.

So for this scenario for FTP and SFTP should I create Business components? and how to do pass through message mapping?and do I need to use PGP keys?

 

Thanks.

Transport organizer not opening

$
0
0

Hello,

 

I have open transports in my dev system due to ongoing development of many objects. I would like to move object 2 ( out of 2 objects 1 &2) using CTS+. In PI, i start tools-Export and after selecting objects, screen gives me default transport of object 1.

 

Now, i don't want to add my request in object 1 transport & and hence click on creation/modification of Request

 

It gives me a window and button as log in. I have following warnings

 

 

(a) No switch to HTTPS occurred, so it is not secure to send a password

 

(b)SSO logon not possible; browser logon ticket cannot be accepted

 

(c) Choose "Log on" to continue. A dialog box appears in which you can enter your user and password

 

(d) No switch to HTTPS occurred, so it is not secure to send a password

 

After i click log on, i am getting error "

HTTP 500 error

 

I have created the transport using this in my previous client using this method but this is the first time for this client where , i am having open transport and want to create another one.

 

Can you please advice how to connect the Transport modification GUI.

I have tried via ID-Tools-Open CTS transport organizer as well with no luck

 

Thanks!


Grapphical Mapping

$
0
0

source_Message.PNG

Hi

 

I have above source structure. I need read RECORD2-->Filed3 value (CC) when RECORD2-->field1 value is AA and pass that value(CC) to some target field. Could you please advise if this can be done through graphical mapping without using java code ?

 

I have tried of using constant "AA" with node function "useOneAsMany" and it didn't helped.

Any suggestions ?

 

Thanks

Kumar

Object activation takes too long time

$
0
0

Hi Experts,

 

I have this issue with one of our PI servers. It is PI 7.1 dual stack environment.

We have three instances of server i.e. three nodes in RWB.

 

Lets say a channel is currently inactive in IB. So it reflects with yellow indicator in RWB channel monitoring. Now I change the mode of channel to active IB channel configuration and activate it. Now I again go to RWB and check/refresh the channel monitoring page for the channel. I see the status as "Channel has internal error" with red bubble. It stays like that for one and half hour , some time even more than two and half hours . After that it comes back to green status and works normally. I am not sure why cache refresh takes so long time .

 

Most of the time we do a server restart once we make changes as server restart refreshes cache and it takes around 20-30 minutes to bring down the server and get it up and running again (which includes cache refresh).

 

But I don't want to do a server restart every time I miss a dot somewhere in IP address.

 

Also we have a similar other environment but we don't have this issue there. We activate the object and it immediately reflects in monitoring.

 

Can someone please tell what can be the reason for this ? And how to resolve this issue ? It has become a pain point and I want to get rid of server restart formalities unless they are really required.

 

Regards

Saurabh

proxy to jdbc synchronous scenario for oracle database

$
0
0

Hi Experts

 

I have a requirement where if while updating set of records in the oracle database, if an error has occurred even in a single record the entire data should not be updated in oracle database and the Process flag should be updated as 'N' for all records in SAP custom table synchronously.

 

Rgds

Aprajita

ariba integration with webservice

$
0
0

Hello All

 

i have requirement for ariba integration using webservice  but the soap response is with csv zipped file

how can i handle that in sap pi ?

please confirm if my below design is ok with 2 interfaces or any other better design .

 

 

Scenario 1 : proxy to soap (aync to sync)- request response bean and capture the response and write zipped file  to a local PI folder

Scenario 2 :  (file to proxy) then pick it up  file adapter channel with payload zip module (to unzip) and FCC to convert CSV file to XML and do mapping to proxy



Thanks

Sandeep

Receiver file name in SFTP

$
0
0

Hi,

 

The two source files i need to pick is daily.csv and weekly.csv, now in the target side the file need to be daily_yyyymmdd.csv and weekly_yyyymmdd.csv?the receiver is sftp.

 

and should we specify complete shared folder path in directory field?

 

Thanks.

 

PI Output: One Business System with multiple Channels

$
0
0

Hello,

 

I have a simple question which drives me crazy.

In our integration flow there is a interface split with two lanes behind. Each lane has a mapping and should have a unique channel to the business system.

 

So there are to cases. Either after the interface split the lane A will be chosen and the mapped data will be send over FTP to the business system A or lane B will be chosen and the mapped data will be send over SOAP to the business system A.

 

Input -> Interface splitt ->   lane A -> Mapping A -> FTP-Channel    -> BS1

                                      OR

                                        lane B -> Mapping A -> SOAP-Channel -> BS1



But I am not able to build the IF like that. I always endup with two lanes with mappings which are connected to the business system with a combined channel. And its not possible to give each lane/mapping an own/unique channel to talk to the business system.


Can some one tell me who I can solve this problem?


Greetings



Matthias

Invoke Valumapping WebService from Java Mapping

$
0
0

Dear all,

 

I want to invoke a webservice out of a Java Mapping. At the moment, I am on the very beginning and have a small main method to start the mapping locally from NWDS.

 

I have generated a JAVA proxy like described in help.sap.com and implemented following code so far:

 

System.out.print("Output1\n");

try {

ValueMappingInService VMservice = new ValueMappingInService();

ValueMappingIn        VMport    = VMservice.getValueMappingInPort();

  

BindingProvider bp = (BindingProvider) VMport;

Map <String,Object> context = bp.getRequestContext();

context.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,"http://server:50000/ValueMappingInService/ValueMappingInImplBean");

context.put(BindingProvider.USERNAME_PROPERTY, "myUserID");

context.put(BindingProvider.PASSWORD_PROPERTY, "myPassword");

   

System.out.print("Output2\n"); 

ValueMappingQueryIn VMqueryIn = new ValueMappingQueryIn();

VMqueryIn.setGroupName("/B2BFP/GroupID");

      

System.out.print("Output3\n");

ValueMappingQueryOut VMqueryOut = VMport.query(VMqueryIn);

   

System.out.print("Output4\n");

System.out.print(VMqueryOut.getValueMappingID());

   

} catch (MalformedURLException e) {

// TODO Auto-generated catch block

  e.printStackTrace();

} catch (WebServiceException e) {

   e.printStackTrace();

}

 

 

Then I am running the Class locally in NWDS, and I get following output

 

Output1

Output2

Output3

javax.xml.ws.WebServiceException: Invalid Response code (401). Server [http://mucs0112.emea.amersports.int:50000/ValueMappingInService/ValueMappingInImplBean] returned message [Unauthorized]. Http proxy info:  none

at com.sap.engine.services.webservices.espbase.client.jaxws.core.WSInvocationHandler.processTransportBindingCall(WSInvocationHandler.java:174)

at com.sap.engine.services.webservices.espbase.client.jaxws.core.WSInvocationHandler.invokeSEISyncMethod(WSInvocationHandler.java:121)

at com.sap.engine.services.webservices.espbase.client.jaxws.core.WSInvocationHandler.invokeSEIMethod(WSInvocationHandler.java:84)

at com.sap.engine.services.webservices.espbase.client.jaxws.core.WSInvocationHandler.invoke(WSInvocationHandler.java:65)

at $Proxy23.query(Unknown Source)

at edifactTpmMapper.EdifactTpmMapper.execute(EdifactTpmMapper.java:52)

at edifactTpmMapper.EdifactTpmMapper.main(EdifactTpmMapper.java:72)

Caused by: com.sap.engine.services.webservices.espbase.client.bindings.exceptions.TransportBindingException: Invalid Response code (401). Server [http://server:50000/ValueMappingInService/ValueMappingInImplBean] returned message [Unauthorized]. Http proxy info:  none

at com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.handleSOAPResponseMessage(SOAPTransportBinding.java:588)

at com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.call_SOAP(SOAPTransportBinding.java:1369)

at com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.callWOLogging(SOAPTransportBinding.java:990)

at com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.call(SOAPTransportBinding.java:944)

at com.sap.engine.services.webservices.espbase.client.jaxws.core.WSInvocationHandler.processTransportBindingCall(WSInvocationHandler.java:168)

... 6 more

 

You see, the error must be with the "query" statement, as it has been after "Output3".

 

When I am removing the ENDPOINT_ADDRESS_PROPERTY, it will refer to the URL from porttype in the WSDL, but with same error message.

When I am using SOAP-UI the result is is fine for the web service

When I am adjusting the server URL with a wrong path, I am get instead a Response Code 404

 

I have double-checked 10 Times the user / password, not seeing anything odd.

 

SM20 is not showing any audit entry (PI Double-stack).

 

Any further idea I can check?

 

Regards

Helmut


UDF concept in mapping

$
0
0

Hi experts,

 

I have encountered an UDF issue .The output of that should have come 0 but it is coming somethiing else..

Now I have checked the logic of UDF like below and not able to understand what it means:

 

Return(Mandatoryerrorfields.size());

 

Now,I wonder there is no such input field that the UDF is taking and there is no such field called 'MandatoryError Fields' in the source messge type as well as in the code.

so what it refers?how the UDF is getting the size of MandatoryErrorFields?

Is it any attribute of container class.

Pls can anyone explain me how the value will be populated as there is no such fields named it.

 

 

 

Thanks,

Suparna

Issue Consuming synchronous RESTful service

$
0
0

I am getting the The message error following this blog step by step:

 

PI REST Adapter - Consuming synchronous RESTful service

 

PI REST Adapter - Consuming synchronous RESTful service

 

 

 

http://maps.googleapis.com/maps/api/geocode/json?address=5th Avenue+New York+USA&sensor=false not successful. HTTP/1.0 400 Bad Request



 

can you please help me with this

 

 

 

 

<![CDATA[

com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.adapter.rest.ejb.common.exception.HttpCallException: HTTP GET call to http://maps.googleapis.com/maps/api/geocode/json?address=5th Avenue+New York+USA&sensor=false not successful. HTTP/1.0 400 Bad Request

  at com.sap.aii.adapter.soap.web.SOAPHandler.processSOAPtoXMB(SOAPHandler.java:772)

  at com.sap.aii.adapter.soap.web.MessageServlet.doPost(MessageServlet.java:530)

 

2016-01-07 16_49_07-SoapUI 4.6.2.png

 

 

 

this is my channel configuration

 

 

2016-01-07 16_45_32-Configuration_ Integration Builder (coibmpodaix01_POD_00).png

 

2016-01-07 16_46_31-Configuration_ Integration Builder (coibmpodaix01_POD_00).png

 

2016-01-07 16_46_54-Configuration_ Integration Builder (coibmpodaix01_POD_00).png

 

 

Thanks a lot for your help

communication channel setting in periodic intervals

$
0
0

Hi,

 

I have to set my scenario start from noon to 1 pm daily, where and how it should be done?

 

Thank you.

BPM with File adapter and RFC call

$
0
0

Experts,

 

I have the following scenario.

 

Steps:

1) Poll and pick a file from a directory.

2) Call SAP RFC to check status of last successful file transfer. Receive Number range in return if successful

3) Split file into 2 IDOC calls

4) If SAP RFC return unsuccessful status, either place file back in folder or cancel transaction so that file is not processed.

 

What I know is that I would have to use a BPM to have a file adapter and RFC call in subsequent steps. Also, splitting of imput file into 2 IDOCs is already acieved using an XSLT transformation and multi-receiver interfaces.

 

My only issue here is how would I approach step 4.

 

Is there a way in BPM where I can cancel the entire process so that the file isn't processed at all? At this point, the sender file adapter has already picked up the file and it runs in 'delete' mode and not 'test'.

If there isn't such an option then I would have to place the file back using a receiver file adapter. Is this a good option? I am concerned as this would change the file timestamp and maybe affect an audit trail. Also, the sender application maybe wrongly led to believe that the file is processed, albeit temporarily.

 

Alternatively, Can I have a BPM that calls the RFC at regular intervals(Trigered BPM jobs/task maybe?) and only if it receives a successful status would it go ahead and look for a file?

 

 

Any opinions please?

 

Cheers.

Need Help in Splitting records

$
0
0

Hi Experts,

 

 

I am Getting 1 lack records in one Message from ECC system but i have to split those records into 10 Messages and each message containing 10,000 records.

 

The receiver system is some kind of webservice system.

 

 

I need to split those messages in Mapping level.

 

Kindly help to achieve this requirement.

 

 

Thanks,

Raghava.

Viewing all 6719 articles
Browse latest View live


Latest Images