Skip to Content
avatar image
Former Member

Mapping logic

Hot to convert one field logic to another filed logic at run time? I mean data coming from source side cxi that is converts to sapcxi at runtime?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Dec 03, 2011 at 09:45 AM

    hi jhon,

    That is possible with fixevalues mapping of conversions function group and also possible with udf.

    thanks,

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      hi jhon,

      String conversion (Container container) throws StreamTransformationException{

      String var1 = "";

      String var2 = System.getProperty("SAPSYSTEMNAME");

      if(var2.equals("CPI"))

      var1 = "SAPCPI";

      if(var2.equals("QPI"))

      var1 = "SAPQPI";

      if(var2.equals("PPI"))

      var1 = "SAPPPI";

      return(var1);

      But itu2019s very simple by using fixevalues mapping of conversions function group

      Enter just only key and values .

      thanks,