none
Question regarding EDIFACT MAPPING in BizTalk Server 2006 R2 RRS feed

  • Question

  • Hi All,
    I have a project where the data i get is EDIFACT document and one of field is having data like HDR*5+10+20*
    I want that these different data 5,10,20 should map in different destination field ..
    How can i achieve this..

    Thanks
    Sandeep
    • Moved by Ben Cline1Moderator Monday, November 16, 2009 12:39 AM Related to BizTalk EDI (From:BizTalk Server Adapters and Adapter Pack)
    Friday, November 13, 2009 7:03 AM

Answers

  • You would need a scripting funtoid (perhaps the .NET one) to split out the 5,10, and 20. You could use a slightly different inline script for each one like these:

    public string GetFirstDigit(string val) {
      string[] digits = val.Split("+");
      return digits[0];
    }
    
    public string GetSecondDigit(string val) {
      string[] digits = val.Split("+");
      return digits[1];
    }

    Thanks,

    If this answers your question, please use the "Answer" button to say so | Ben Cline
    Monday, November 16, 2009 12:39 AM
    Moderator