cancel
Showing results for 
Search instead for 
Did you mean: 

FormatbyExample function error "Queus do not have same number of values"

Former Member
0 Kudos

Hi Experts,

While testing for a particular graphical maping, in certain cases the error is like:

(suppressed field); root message: Exception:[com.sap.aii.mappingtool.tf7.FunctionException: Function formatByExample: Queues do not have the same number of values]

Please suggest, how to rectify this...

Regards

Pankaj Rajak

Accepted Solutions (1)

Accepted Solutions (1)

naveen_chichili
Active Contributor
0 Kudos

Hi Pankaj,

Check this blog which explains you clearly:/people/sundararamaprasad.subbaraman/blog/2006/02/21/real-example-for-formatbyexample

Regds,

Naveen

Answers (4)

Answers (4)

Former Member
0 Kudos

Thanks Experts..

PriyankaAnagani
Active Contributor
0 Kudos

Hi Pankaj,

The prerequisite for FormatByExample function is both the queues should have equal no of not empty values. it will format the first input queue according to the second input queue context. It will consider the context of second queue & values of first queue. If there are any empty values in first queue then they will be ignored. The empty contexts in the second queue will be considered. so please make sure that you are getting equal no.of input values for this function if not try to map it with some default value.

Thanks

Priyanka

Former Member
0 Kudos

chk the functionality of FBE:

/people/stefan.grube/blog/2005/12/29/new-functions-in-the-graphical-mapping-tool-xi-30-sp13

former_member854360
Active Contributor
0 Kudos

Hi pankaj,

your two input to FormatByExample should have same number of values in Queue.

This function has two inbound queues, which must both have the same number of values. To generate the result queue, the function takes the values from the first queue and combines them with the context changes from the second queue

in message Mapping right click on format by example function and check whether your both input Queue has equal no of values.

refer this for an perfect example.

http://help.sap.com/saphelp_nw04/helpdata/en/67/7ca04267deb111e10000000a155106/content.htm