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

Truncate Characteristic data

Hello Experts,

I have Social Security Number in a infoobject. On BEX report, I would like to display only the last 4 digits of SSN. How do I do that please?

Regards,

-Sonny

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 04, 2008 at 12:40 PM

    Hi Sonny,

    this canot be done in the report designer.

    You will have to add an extra field to the cube and use a routine to truncate.

    Udo

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 04, 2008 at 12:42 PM

    Hi,

    In transfer rules you can do coding to truncate and display only last 4 digits of social security.

    you can use offsets... suppose for 9 length filed id FIELD, YOU CAN WRITE LIKE FIELD+0(4).

    out of 9 charecters, which charecters you need?

    ex: field = 000000000 if you need last 4 then field+0(4).

    If you dont mention any offset, then it will only pick the first 4 char's by default (truncating the length).

    Hope it helps.

    Regards,

    Mona

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      the alternative would be to add a navigational attribute to your SSN IObj.

      Load this IObj into itself and fill this attribute was suggested ATTR = SSNID+x(4) (x = LEN(SSNID)-4).

      Activate this Nav in your Cube and you'll be able to report on it.

      Another alternative is to implement a virtual char; a bit more complex and less performant but also possible...

      hope this helps...

      Olivier.

  • Posted on Jan 05, 2008 at 04:05 PM

    Try using the replacement path variable. This might help you

    Check the following link

    http://help.sap.com/saphelp_nw70/helpdata/en/af/809528939d5b4fbff7e16a5bdc0d85/content.htm

    Add a comment
    10|10000 characters needed characters exceeded

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.