Set a message Counter for EDI Messages using MEC

This is usefull to create unique number for your EDI messages.Using this we can identify messages uniquely . lets see how we can implement this using mec development


  •   Go to mapping console and create a variable call my map







  •     Enter below code where u want to create unique number

      MessageCounter mc = new MessageCounter(mymap);
      String newval=mc.getNewValue("MsgCounter",mc.MAP_NAME+mc.PARTNER_ID);

      Now we Generate the unique number.

Comments