Skip to Content
author's profile photo Former Member
Former Member

leading zeros in hierarchy

Hello all,

While loading the MD hierarchy from BW to BPC, due to the leading zeros in nodename the hierarchy is not getting extracted.

Though there were 4 leading zeros in the MD, i used ID(5:10) in mapping and was successful in extracting it in the desired format. But when I used the same logic for the MD hierarchy, it is not working out. So, I got a BAdi (in UJD_ROUTINE) created and tried to use it in the transformation file and still failed in it.

While debugging the BAdi in the MD transformation file, it was reading all the records. But during debugging in the MD hierarchy transformation file, it is not reading any records. Please Advise.

BAdi, dimension types that I specified...

DATA: lo_dim TYPE REF TO cl_uja_dim,

lr_dim_data TYPE REF TO if_uja_dim_data,

lr_hier_en_data TYPE REF TO if_uja_hier,

lt_mbr_name TYPE uja_t_dim_member,

lt_mbr_node TYPE uja_t_mbr_node.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 25, 2016 at 05:54 AM

    Hi Mouli....

    Try using javascript in Conversion file for removing leading zeroes...

    Hope this helps....



    leading.JPG (12.7 kB)
    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Akos Beres

      Giving the Member ID has resolved the issue.

      I specified the node name of the first line as the member ID and it worked. The main thing is that it was able to read the values with the leading zeros.

      As the node name had inconsistency with the leading zeros, I used a BAdi to remove the leading zeros while loading.

      Thanks all.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.