cancel
Showing results for 
Search instead for 
Did you mean: 

Use exported parameter from message mapping (via UDF) in next mapping prog

Former Member
0 Kudos

Is there any chance to assign an exported parameter from one message mapping to another mapping program within an operation mapping?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Maybe via UDF and Interface OutputAttachments?

Former Member
0 Kudos

I don't think UDF will help. Since you are going to use two separate mappings so UDF will not be able to carry the data once the first mapping executed, because then UDF will become stateless. It is possible only when you use 1 mapping.

But if you like then you can try with UDF to make sure if it works or not.

Regads,

Sarvesh

former_member187339
Active Contributor
0 Kudos

Hi,

Try using dynamic configuration

1. Set value in message mapping and

2. Get value in java mapping

Refer this link http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/content.htm

Regards

Suraj

Former Member
0 Kudos

seems like deprecated. Shouldn't care but still does not work out. Running always into NullPointerException, can't fetch DynamicConfiguration from container. Looked into the contents of the map returned, it's not contained.

former_member187339
Active Contributor
0 Kudos

Hi,

In sender communication channel have you selected Adapter specific identifiers? This only activate the Dynamic Configuration.

which field have you used for passing the value ? Filename, filetype etc are the fields available. You can see in SXMB_MONI, under soap header there will be a category named dynamic configuration. This will be activated only when Adapter specific identifiers are selected?

Regards

suraj

Former Member
0 Kudos

Found the problem with NullPointerException, can't test it within test-tab, only in runtime. Don't have to set the adapter specific message attributes. Should work out fine now.

Former Member
0 Kudos

> Is there any chance to assign an exported parameter from one message mapping to another mapping program within an operation mapping?

The ans is 'No'. But there could be a work around if you tell the exact requirement and your approach.

Regards,

Sarvesh

Former Member
0 Kudos

Actually the problem sounds easy:

Operation Mapping consists of one message mapping and some further java mappings (transformation, validation).

A value exported from the first message mapping should be used as parameter in the first java mapping. The input structure of the java mapping is external and cannot be modified to add another field for example to read the value from the payload.

Former Member
0 Kudos

Well in my opinion you have to use BPM for this. Do your first mapping and take the output of your first mapping into BPM and then use the same output data as a source in your second mapping.

Regards,

Sarvesh

former_member187339
Active Contributor
0 Kudos

Hi,

I think this can be achieved with the help of Global Containers. Write udf in one mapping to set a parameter and another udf to get parameter.

Refer this link : http://help.sap.com/saphelp_nwpi71/helpdata/EN/e0/7d8e40496f6f1de10000000a1550b0/content.htm

Regards

Suraj

Former Member
0 Kudos

It says "in the same message mapping". Also tried within same Operation Mapping not within same mapping program?

former_member187339
Active Contributor
0 Kudos

Hi,

We have done something like this for q sync scenario. We required a value from request mapping to be made available in response mapping and we passed like this. (Yes strange both the mappings were different but they worked)

So I would suggest you to try the same using Global Containers.

Regards

Suraj

Former Member
0 Kudos

Tried to test it, but works only within same message mapping. Getting parameter in second message mapping always runs into NullPointerException