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

Characteristic routine to read a length of char

Dear experts,

Can experts give me a characteristic routine to below info object?

Assume I load data from DSO to cube, and I want record in infoobject

to read only a length of words.

From example below, I want a characteristic routine at functional location

infoobject that can make functional location read as in the cube.

The original record is in the DSO.

Hope experts can help me. Thank you.

Example:

Infoobject functional location.

DSO

functional location

MAB-3010-ASIDE-BOMBA-PARKING

CUBE

functional location

MAB-3010-ASIDE-BOMBA

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    Posted on Dec 31, 2013 at 04:37 AM

    Hi,

    If your requirement is to know the length of string then you may use function STRLEN.

    Again if you need according to the below example and this will be the case always:

    functional location

    MAB-3010-ASIDE-BOMBA-PARKING

    CUBE

    functional location

    MAB-3010-ASIDE-BOMBA

    At field level routine just do the offseting as below.

    0funcloc+0(20).

    Hope this helps.

    Regards,

    AL

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 31, 2013 at 11:45 AM

    Hi,

    Maybe provide some additional information since your requirements are not completely clear to me.

    Do you want to exclude e.g. the last part of the Functional Location (i.e. the last part after the last - sign)?

    There are many ways to work with characteristic strings. However, it is important to exactly understand which variants may occur and if the string processing has to be dynamic.

    Best regards,

    Sander

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 01, 2014 at 02:37 AM

    Hi,

    If you want length, use STRLEN()

    If you want a portion of any string, use STRING+0(n), where 'n' refers to the no.of letters to be skipped.

    This really works, use it in field routine as required

    Hope this helps!

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 02, 2014 at 03:49 AM

    Dear experts,

    I get it. Thanks a lot for your help.

    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.