on ‎2015 Sep 10 9:29 AM
Hi gurus,
I am uploading master data and hierarchy from infoobject 0COSTCENTER to my BPC dimension ZCECO.
I've followed the "How To - Import Master Data and Hierarchies into SAP BusinessObjects BPC 7.5 from SAP NetWeaver BW".
I am in BPC 10.0 NW SP 21.
I am facing with a problem with the import of text nodes, which have an ID concatenated with the Controlling Area. I want to import them without Controlling Area. For example: in BW I have a text node "P0011ES401P" and I need to convert it in "1ES401P" for BPC dimension. The Controlling Area is "P001".
The cost center's ID does not have concatenated the Controlling Area. For example: In BW I have the ID "3401111001" and when I upload, I see in the dimension sheet "3401111001" as a member (without Controlling Area prefix)
I am using the package /CPMB/IMPORT_IOBJ_MASTER to upload master data and text nodes. When I run it, the text nodes are imported with the Controlling Area prefix. The conversion file does not work.
This is my transformation file:
This is my conversion file "CECO_CONVERSION.xls":
This conversion file should work. But not.
When I run el package /CPMB/IMPORT_IOBJ_MASTER, this is my set selection for 0COSTCENTER:
I've tried to import in several ways, with external/internal format and with update/overwrite option. I've tried all combinations and the result is the same. I don't manage to remove the Controlling Area prefix.
Due to I could not convert data with conversion file level, I also tried to make the conversion data at transformation file level. But my problem is that my text nodes do not have the same lenght in their ID's. For this reason, I can not put something like this in *MAPPING:
ID=*IF(ID(1:4)=*STR(P001) Then ID(5:14);ID)
I get an error of "command failed: end position is out of record index". I explored about this error and the solution was using the conversion file instead the transformation file, but neither.
I make sure that I put the correct transformation file into the prompt of the package and I have the correct name of my conversion file in *CONVERSION part of transformation file.
The fact is that I am able to import text nodes without Controlling Area prefix (as I want), but I have to run again the package and using another transformation file. But I want to get it in one step, as the How To explains.
I would appreciate any help,
Kind regards,
Manu
Request clarification before answering.
Hi there,
As Vadim and Prashant say to me, I've tried the following javascripts:
All of them do not work.
This is the result of the validation and process of the transformation file for all the attempts shown above.
As you can see, the text nodes keep being with the Controlling Area prefix.
Definitely,i think that the conversion file is not being called. It is like conversion file does not exist.
Manu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi again,
Yes, you are right! I got it
Infinite thanks to all of you.
Kind regards,
Manu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Manuel,
As Vadim said you can make use of java scripts in your conversion file like
js: %external%.replace("apples", "oranges");
For Help go through the following links
Data Conversions - SAP Documentation
Data Conversion Maintenance - SAP BusinessObjects Planning and Consolidation - SAP Library
Aravind
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Why not to use simple javascript in the conversion file? A lot of examples are available if you search this forum.
Vadim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Manu,
Certainly you need to build your own javascript for your requirement referring existing artifacts and online tutorials.
you can try the one suggested by Vadim already.
o/w please try out these -
js:(%external%.toString()).substr("P001".length, %external%.toString().length)
or
js:(%external%.toString()).substr(4, %external%.toString().length)
or simply
js:(%external%.toString()).substr(4)
in column 'Internal' instead of '*' keeping external as is 'P001*'
Thanks
Prashant
The first link if you search Google for "javascript tutorial" will be:
And it's OK
| User | Count |
|---|---|
| 30 | |
| 6 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.