cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Configuration not working with Integrated Configuration

Former Member
0 Kudos

Hi All,

Dynamic Configuration works fine in PI 7.3 when Classical Configuration is used. However the same does not work using Integrated Configuration.

Scenario :

SOAP -->SOAP Synchronous scenario in PI 7.3 (Dual Stack).

Trying to save a value from Request mapping using dynamic configuration and use the same in response mapping.

UDF Code :

Request Mapping :

DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey Variable = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/SOAP", "Variable1");

conf.put(Variable, a);

Response Mapping :

DynamicConfigurationKey Variable = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/SOAP", "Variable1" );

string1 = conf.get(Variant);

Note : Using Integrated Config(AAE Processing) - Response header does not have DynamicConfiguration header node , but Classical Configuration has that.

Regards,

Parimala

Edited by: ParimalaE on Mar 1, 2012 1:33 PM

Accepted Solutions (0)

Answers (5)

Answers (5)

roger_alluivall
Participant
0 Kudos

Please, check my blog:

I hope it helps.

Regards!

Former Member
0 Kudos

We are having the same issue and filed a high priority message with SAP to get an answer on this.  I'll try to come back and post the results so people in the future have an answer as this is a common problem and I don't see anything in marketplace or sdn that outlines what works and doesn't work with 7.31 full java stack.  We are trying to use Dynamic Configuration with SOAP.

Former Member
0 Kudos

Hi everybody!

We are facing a similar problem in 7.31. We are getting errors when we try to get FileName from Dynamic Configuration in a UDF. Were u able to fix the problem? I would be very grateful if you could provide me with further details about it.

Thanks a lot.

Best Regards.

Former Member
0 Kudos

Christian,

I talked with SAP and we got UDF's working.  You CANT use the new format in the UDF's only (java mapping you use the new format for Dynamic Configuration).  If you use the old format it will work.  Let me know if you need more info.

Former Member
0 Kudos

HI Steve. First of all, thank you so much for your quick response.

I don't really know that exists a new and an old version to acces data from Dynamic Configuration.

This is the code I am using:

DynamicConfiguration conf = (DynamicConfiguration)container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

if (conf != null)

{

DynamicConfigurationKey filename = DynamicConfigurationKey.create("http:/"+"/sap.com/xi/XI/System/File","FileName");

toReturn = conf.get(filename);

}

Would you mind telling me where can I find infomation about the old way to access data from Dynamic Configuration in UDF?

Thanks in advance.

Best regards.

Former Member
0 Kudos

For us this is what we had:

This didn't work (getInputParameters is the newer stuff that doesn't work):

DynamicConfiguration dc = (DynamicConfiguration)container.getInputParameters().getValue(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey dck = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/SOAP","TServerLocation");

dc.put(dck,"https://xyz.api-salesforce.com/services/Soap/c/26.0/0DFa00000008jis");

return "";

This works for us(we had to remove getInputParameters):

DynamicConfiguration dc =  (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey dck = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/SOAP","TServerLocation");

dc.put(dck,"https://xyz.api-salesforce.com/services/Soap/c/26.0/00D3000000001X0");

return "";

Former Member
0 Kudos

So I think we have a problem because we are using the same api as you do ...

You say that you are in java only stack? 7.31? Support Package?

Thank u so much!!!

marksmyth
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Parimala/Per Rune

There are limitations when using Integrated Configuration in PI 7.3 i.e. this does not use the Dual stack, only the Java stack. So any operations that previously used the ABAP stack will not work with an ICO.

Check out the article by William Li which is available from http://scn.sap.com/docs/DOC-23399

-> Article: Migration Guide to AEX of PI 7.3x for Integration Scenarios

This outlines the known limitations.

Regards

Mark

Former Member
0 Kudos

Hi Mark,

Thanks for your reply. I am aware of the article by William Li, but as far as I can see the document does not mention anything about DynamicConfiguration. Do you have any information that the DynamicConfiguration is removed from the SOAP header response message when using Integrated Configuration?

Thanks,

Per Rune

Former Member
0 Kudos

Hi,

I am now encountering the same problem that the Dynamic Configuration header is not there when using Integrated Configuration. Did you find a resolution for this?

Regards,

Per Rune

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Open an OSS ticket to SAP and share the information.