cancel
Showing results for 
Search instead for 
Did you mean: 

Temporary variable not workings with UDF's

Former Member
0 Kudos

Hi,

I have a UDF which is giving the correct values, I want to use this as temporary variable.

After creating it as temporary variable when I am trying to map this temporary variable to target field it’s not populating the target field.

Will temporary variables not work when its mapping has a UDF? Please advice.

Zia

Accepted Solutions (1)

Accepted Solutions (1)

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

Will temporary variables not work when its mapping has a UDF?

If you are testing via display queue then what you will see is a null result, you have to use the test tab for it.

Also variables may or may not work when passing arrays, it would be best to use single values.

Regards,

Mark

Answers (1)

Answers (1)

Muniyappan
Active Contributor
0 Kudos

Hi,

Are you using variable in the message mapping?

make sure your target field is appearing after the variable..

can you explain why you want to use temporary variable?

Regards,

Muniyappan.

Former Member
0 Kudos

Hi Muniyappan

Ya I am using variable in Message Mapping.

Temporary varaible is mapped to target field so target field come after temporay varaible.

We have a UDF & the value of that UDF has to be used at many places in the Graphical Mapping, so we are going for temporary variables.

Regards,

Zia

Muniyappan
Active Contributor
0 Kudos

Hi,

if you are using at many places then create variable on top of message.

then you can map this temp variable to wanted target fields.

for example you can use this blog.

http://scn.sap.com/people/william.li/blog/2008/02/13/sap-pi-71-mapping-enhancements-series-using-gra...

Regards,

Muniyappan.

iaki_vila
Active Contributor
0 Kudos

Hi Mihammad,

Is your system SAP PI 7.1? are you using a graphical variable?

http://scn.sap.com/people/william.li/blog/2008/02/13/sap-pi-71-mapping-enhancements-series-using-gra...

Regards.