Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Conversion File JS code


Hello,

I have a senario where in I have an ID defined as (ID=0CO_AREA+*STR(_)+ID)

Transformation file for ID

ID=0CO_AREA+*STR(_)+ID

In Conversion file

NODENAME=NODENAME (Since the hierarchy already contains the Controlling area)

Now using Java script I want to split the hierarchy code with "_" between the Controlling area and ID. The ID length is not fixed.

Regards

Former Member
replied

Something like:

js:%external%.toString().substring(0,4)+"_"+parseInt(%external%.toString().substring(4)).toString()

Vadim

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question