Skip to Content
0

BW HIER doesn't import to BPC QUESTION

Oct 10, 2017 at 05:20 PM

73

avatar image
Former Member

Hello experts,

I have read many articles about BW hier and how to import them to BPC.

I am in BPC 10.1 Classic and I am trying to import a BW HIER. This HIER is the Chart of Accounts that comes from ECC. I look in Transaction RSH1 and I see the next HIER:

In BPC I generate the DATA MANAGER using the PROCESS CHAIN /CPMB/IMPORT_IOBJ_MASTER, In the selection I select "Filter by attributes or Hierarchy":

In the Hierarchy tab I select the Hierarchy:

and run the DM.

I Just got the Accounts imported and the TOP level of the HIER BP. The tranformation file i used is jsut the acctype = *Str(EXP) since this field is mandatory, also tried with a suggested Tranformation File:

*MAPPINGNODENAME=NODENAMEHIER_NAME=HIER_NAMEPARENT=PARENTORDER=ORDER*CONVERSIONHIER_NAME=CONV_HIER.xls!

But didn´t work

Any Ideas what am I doing wrong.

Thanks for the post.

Best Regards.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

Vadim Kalinin Oct 10, 2017 at 05:30 PM
1

Sorry, but /CPMB/IMPORT_IOBJ_MASTER is used to import master data only.

And mapping has to be done to import master data, not hierarchy.

To import hierarchy you have to use: /CPMB/IMPORT_IOBJ_HIER

P.S. Please read:

https://blogs.sap.com/2013/01/21/bpc-10-nw-master-data-attributestext-and-hierarchy-loading-process-part1/

https://blogs.sap.com/2013/01/21/bpc-10-nw-master-data-attributestext-and-hierarchy-loading-process-part2/

Show 14 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hello Vadim,

Thank you for your Answer, I follow the posts, and I got the accounts imported, but about the HIER, just the top level BP, got imported.

0

Please provide all screenshots for 2 packages!

0
Former Member

For part 1 (ACCTS import): using 0GL_ACCOUNT

The accounts got imported just fine.

For HIER:

chrt-of-accts.png (14.4 kB)
sel-jer.png (107.6 kB)
hier-pack.png (10.9 kB)
hier-pack.png (10.9 kB)
trans-file.png (11.9 kB)
0

First: No hablo bien español :)

I don't see transformation file for master data import. Any conversion files also to be posted.

I see different hierarchy names on screenshots BP and BPI - may be result of erasing...

0
Former Member

Hehe i am sorry abot the screens, the Hier is the same, I just covered the full name in the image, the tranformation file for Master Data is acctype= *str(EXP) , I want the acc just as in ecc, that get imported fine. The hier data manager just imports the 1st level of hier (top level). I tried 2 conv files for hier:

* ParentH1

BP ParentH1

Cant find what is wrong

0

Have to repeat - post transformation file for master load. If you have some conversion on the ID then hierarchy will not load!

Please post a log file of hierarchy load.

0
Former Member
Vadim Kalinin
0
Former Member
Vadim Kalinin

Log of the Hier Load.

log.png (42.7 kB)
0
Former Member

Here is the tranformation file for the Master Data:

I don't have anychange to the Account ID.

Regards.

md-trans.png (12.5 kB)
0

What do you mean by Level 7 for hierarchy?

0
Former Member

It is the max# of the HIER Levels, I also tried with blank, but didn't work. It was the same result.

0

"blank" is correct!

OR is correct!

0
Former Member
Vadim Kalinin

The issue is the same, just bring the top dimension of the HIER.

0

When you import master data based on:

Plan de cuentas=0010 Or Hierarchy= BPB9

1. All base members of 0GL_ACCOUNT with Plan de cuentas=0010 will be imported

2. All hierarchy nodes of BPB9 will be imported looking like BPB9xxxxx. Can be a good idea to remove BPB9 string in the conversion file for ID: external: * internal: js:%external%.toString().split('BPB9').join('')

Please check that master import is correct.

Then you import hierarchy just selecting hierarchy name BPB9

You have to use the same conversion file for NODENAME and PARENT to remove BPB9

0
avatar image
Former Member Oct 12, 2017 at 04:15 PM
0

Thanks for the correction Vadim,

I added the conversion file ti the tranformation:

I got an error for the js, but also I see in the log that just 1 HIER was taken:

:( any Ideas,

What I was thinking was to manually upload the HIER using the dimension members in Transaction RSH1 and then run the HIER DM.


err2.png (12.6 kB)
err3.png (4.5 kB)
err1.png (57.7 kB)
Show 5 Share
10 |10000 characters needed characters left characters exceeded

Is it possible to type formulas accurately?

Not:

%external%.toString().replace(/^BPB9/,'')

But:

js:%external%.toString().replace(/^BPB9/,'')

P.S. "js:" - means that JavaScript formula will be used, not a member ID

Also, copy formula from my post!

0
Former Member

Thanks, I apologize for my silly mistake.

I ran again the MD, all accounts got imported but not the HIER, not even the top level, a JS error came up:

err14.png (56.0 kB)
0

Now it looks absolutely strange, because the same formula is working in my system for years...

If you know ABAP you can debug it and I can help!

Do you have rejected record info?

Another option to try:

EXTERNAL BPB9*

INTERNAL *

Not 100% sure because I always use JavaScript

0
Former Member
Vadim Kalinin

First I want to thank you for all your time, I really appreciate it. I will try that, what also got suggested was to upload manually the HIER, and the run the pack IMPORT_IOBJ_HIER. I search the Hier in BW is in table RSTHIERNODE, so could copy - past from table to BPC admin, the try to run pack, to see if it works as a work around.

0

Bad idea (upload manually the HIER"), the process has to work without issues!

It's absolutely basic thing, working everywhere...

Better to perform ABAP debugging to find the reason.:

Read https://archive.sap.com/documents/docs/DOC-4230

Create single badi with the following simple code with endless loop:

  method IF_UJD_ROUTINE~RUNROUTINE.
    DATA i_d TYPE C. " for bg debug.
    CLEAR i_d.
    WHILE i_d IS INITIAL.
    ENDWHILE.

    er_data = ir_data.
  endmethod.

Add to transformation file line:

STARTBADI=FILTERNAMEOFCREATEDBADI

Launch package

Open SM50 - find the line with endless loop -> select this line

Menu->Administration->Program->Debugging

Debugger will open

Set the value of i_d to X

In Locals you will see a table

er_data

Containing records before transformation and conversion. Can be exported to Excel and analyzed.

Select Continue to execute badi - debugger will close.

0
avatar image
Former Member Oct 11, 2017 at 06:01 PM
0

Hello Vadim,

Thank you for all the tips, I did as you say, I erased from HIER_NAME BPB9,

Tranformation File:

th conversion for CONV_HIER:

Conversion node and parent:

I tried with more statements sucha as js:%external%.toString().split('BPB9').join('') and js:%external%.toString().split("BPB9").join(""):

1. Data Manager still gets just 1 HIER.

2. Got an error witht the java code.

I attach the LOG:

I still looking for what is happening.


t1.png (16.6 kB)
c1.png (3.9 kB)
c2.png (5.0 kB)
log.png (44.4 kB)
Show 10 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Master data is Imported Succesfully, I go to BPC Admin and they are on the Dimension. .

0

The correct JS line is:

%external%.toString().split('BPB9').join('')

You can test it in any online JavaScript test page: http://js.do/

<script>
alert('BPB9XXXXX'.toString().split('BPB9').join(''))
</script>

Result will be XXXXX

js.png (187.1 kB)
0

Even better JS code with regexp:

%external%.toString().replace(/^BPB9/,'')

^ - replace only from the beginning of string

0
Former Member

Thanks,

From the last post I understand the conversion Files are just to remove the BPB9 text from the NODES instead of BPB9xxxx i will get xxxx. Would it do that all NODES of HIER get imported?

Regards.

0

"Would it do that all NODES of HIER get imported" - yes!

The same JavaScript code have to be used to import master for ID

0
Former Member

What do you mean by "the sam JavaScript code have to be used to import Master for I"??' Maybe I am very confused since have been long time with this issue: When I load the pack IMPORT_IOBJ_MASTER I get just the accounts I don't get the HIER Text, I guess that is fine??....

Then when I run the IMPORT_IOBJ_HIER what i get is just the top level of the HIER.

The part1 I have Almost the same but my ACC ID is the same as 0GL_ACCONT, I don't concatenate the Chart of accounts, and ind the ACCTYPE i set it directly as EXP.

I get all the accounts just fine. .

Nos the part 2 is the issue,

Am i right in the process??

that is why I don't get that i need to use the CONV file for the Master data Also .

0

"When I load the pack IMPORT_IOBJ_MASTER I get just the accounts I don't get the HIER Text, I guess that is fine??." - absolutely incorrect!!!

Both accounts and nodes have to be loaded with IMPORT_IOBJ_MASTER

Repeating:

When you import master data based on:

Plan de cuentas=0010 Or Hierarchy= BPB9

1. All base members of 0GL_ACCOUNT with Plan de cuentas=0010 will be imported

2. All hierarchy nodes of BPB9 will be imported looking like BPB9xxxxx. Can be a good idea to remove BPB9 string in the conversion file for ID: external: * internal: js:%external%.toString().split('BPB9').join('')

0

Some sample:

IMPORT_IOBJ_MASTER before conversion will have the list of ID's:

1001 - Account

1002 - Account

1003 - Account

...

BPB9NETINCOME - Node

BPB9PROFIT - Node

BPB9NETSALES - Node

...

After conversion with JS:

1001 - Account

1002 - Account

1003 - Account

...

NETINCOME - Node

PROFIT - Node

NETSALES - Node

...

When you later load hierarchy: NODENAME, PARENT with the same JS conversion PARENTH1 will be properly filled.

0
Former Member

Then my issue is with the master data that is not importing HIER Text jus Acc text as mentioned

0

I have told you about it from the very beginning!

Please provide ALL screenshots of master data load!

0
avatar image
Former Member Oct 11, 2017 at 09:59 PM
0

I really apologize for my missunderstanding,

The screens for the Accounts import are:

Filter by atributes OR Hier.

Import NODE text

This is tha info for the Master Data, what I get when in finish is success but the TEXT for the HIER just brings the top of the HIER BPB9

Regards


dm.png (110.4 kB)
dm1.png (13.1 kB)
dm2.png (14.3 kB)
dm4.png (6.1 kB)
dm5.png (15.5 kB)
d6.png (12.6 kB)
Show 1 Share
10 |10000 characters needed characters left characters exceeded

I don't see conversion file for ID to remove BPB9 from node ID's.

0