cancel
Showing results for 
Search instead for 
Did you mean: 

SAP CPI - UDF Mapping Context Issue

PramilaR
Explorer
0 Kudos

Hello Experts of CPI,

I have a requirement of mapping and below is the requirement which i am unable to get the output, please review and provide the best CPI UDF solution

I used create copies udf but it is not creating as shown in target value needed

1 source context values should repeat again and again by given count value

Source single context values     context number of copies             Target Value Needed

101.22                                                   3                                             101.22

202.22                                                   2                                            202.22

303.22                                                   1                                            303.22

                                                                                                             ------------

                                                                                                             101.22

                                                                                                             202.22

                                                                                                             ------------

                                                                                                              101.22

 

CPI Context Mapping.png

 

 

 

View Entire Topic
PramilaR
Explorer
0 Kudos

Hi Dinu,

 

When i remove the second context change the values are not as expected

 

CPI Context Mapping2.png

Dinu
Contributor
0 Kudos
This is the expected results for the sample function I had shared. You have to change the inner loop to do what you want to do.