Skip to Content
avatar image
Former Member

Graphical Mapping, using values within 0 to Unbound

Hi experts,

I have a structure something like this:

<Node1>

<Key>L1</Key>

<Value>ABCDEF</Value>

</Node1>

<Node1>

<Key>L2</Key>

<Value>XYZ</Value>

</Node1>

Here Node1 is 0 to Unbounded.

Could someone please help me understand how I can use the values "ABCDEF" and "XYZ" together for determining the target node.

Thank you.

Radhika

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Nov 29, 2010 at 08:50 PM

    Hi Radhika,

    Can you describe more elaborately that how you are going to use these 2 values to determine the target field.

    Thanks,

    Nabendu.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      Actually, these two values would be used to do a RFC lookup. The return value would be populated in the target field.

      As mentioned before these values come under the same node under different occurrences, hence am facing the difficulty to use it in the mapping.

      Please let me know if you need any further information.

      Thank you.

      Radhika

  • Nov 30, 2010 at 02:19 AM

    Hi Radhika,

    You could try to loop your RFC lookup. In this way you can call it multiple times for each occurrence of the <VALUE> node. I think looping is only possible using the UDF LookUp and not the pre-defined mapping lookup. Please feel free to correct me if I am wrong.

    Hope this helps,

    Mark

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 30, 2010 at 05:34 AM
    Could someone please help me understand how I can use the values "ABCDEF" and "XYZ" together for determining the target node.

    U can write UDF to achive this..

    UDF CODE.

    // <INPUT> field "Value" ; change its context to "root note"; UDF type "QUEUE"

    //public void ConcatValues(String[] Value, ResultList result, Container container) throws StreamTransformationException{

    String concatValue = "";

    for(int i=0;i<Value.length;i++){

    concatValue = concatValue + Value<i> +",";

    }

    result.addValue(concatValue);

    Thanks

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 30, 2010 at 06:23 AM

    Is your requirement to do a single RFC lookup call and fetch the values ?

    In that case refer this blog

    [How you can design lookups for multiple values to be retrieved in a single call|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/17683] [original link is broken] [original link is broken] [original link is broken];

    Add comment
    10|10000 characters needed characters exceeded