cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to skip only some characters while loading master data in to BPC NetWeaver

Former Member
0 Likes
193

Hi Experts,

I need to load data from flat file for Account dimension, but here in flat file there are some texts are there in starting which i need to remove for example ..

IN Flat file value is in below given format ..



TypeIDAccountType
01425AbcdCash Investment Account
02678AbcdMargin Account
03459Life Income Fund

So whiling loading data i need to remove this Abcd the first 4 characters from each row if Abcd exist.


As i know in option SKIPIF we can use but on that case it is skipping all values including Abcd for that particular  row.

and in my case i need to only skip first four characters on each row if Abcd is exist on that row .


Note:- I do not want to do manually every time that is why asking that any way to make this automated by skip in OPTION while loading flat file data in to BPC ?


Thanks,

Ravi


Accepted Solutions (1)

Accepted Solutions (1)

former_member186338
Active Contributor
0 Likes

In general you can use JavaScript in the conversion file to remove part of the string: Data Conversion Maintenance - SAP BusinessObjects Planning and Consolidation - SAP Library

Former Member
0 Likes

Thanks Vadim, Let me check if it will work ...

Regards,

Ravi

former_member186338
Active Contributor
0 Likes

For sure it will work

js: %external%.replace("Abcd","")

if you have constant prefix...

P.S. Even better - to search only in the beginning of the string (using regular expression):

js: %external%.replace(/^Abcd/,"")

^ - beginning of the string

Answers (0)