Skip to Content
0
Jan 17, 2012 at 03:35 AM

Message mapping for checking hyphens (-) in material number

445 Views

Hi All,

I have an interface in PI 7.1 for product change and product create coming from ORACLE to SAP

Now, the reqmt is to take the ORACLE product which could have hyphens or without hyphens

In SAP, the product can have upto 40 characters and if something without hyphens come in, then it adds leading zeros while creating and while changing, SAP expects a product with leading zeros

So, how do I handle this? How do I check in message mapping, the product with hyphens or without and write a condition to it.

Here is my idea

Take the product, use a message mapping function to check for products without hyphens and if YES, add leading zeros upto 40 characters

Can anyone let me know how this could be achieved using message mapping function

I am sure this kind of reqmt especially leading zeros for products is very common in PI interface circle

So, please let me know the details

Thx

mike