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

SEM BPS - Characteristic relationship to derive username

Hi all,

Can anyone help me with a simple exit/function module to derive the username using the characteristic relationship functionality in SEM BPS in the planning area?

I am hoping if I include 0USERNAME (info object) into my cube, then use a char relationship of the type EXIT, then I can populate the 0USERNAME with each users name when they log on and begin planning....?

Thanks,

Rael

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 24, 2005 at 04:50 PM

    Hi,

    You can do the following:

    - Do not include 0USERNAME in your planning levels

    - Create a characteristique relationship of type Exit with a Source characteristic (anything in your level) and 0USERNAME as Target characteristic.

    FM: Derivation => see sample code below

    FM: Comb proposal => enter a dummy functional module

    FM: Comb check => enter a dummy function module

    Sample code with user/date:

    FUNCTION Z_UPY_CDI_DERIVE_EXIT_W.

    *"----


    ""Local interface:

    *" IMPORTING

    *" VALUE(I_AREA) TYPE UPC_Y_AREA

    *" REFERENCE(ITO_CHA) TYPE UPC_YTO_CHA

    *" CHANGING

    *" REFERENCE(XS_CHAS) TYPE ANY

    *" EXCEPTIONS

    *" FAILED

    *"----


    FIELD-SYMBOLS: <l_chavl> TYPE ANY.

    • fill user

    ASSIGN COMPONENT '0CREATEDBY' OF STRUCTURE xs_chas

    TO <l_chavl>.

    <l_chavl> = sy-uname.

    • fill date

    ASSIGN COMPONENT '0CREATEDON' OF STRUCTURE xs_chas

    TO <l_chavl>.

    <l_chavl> = sy-datlo.

    ENDFUNCTION.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 25, 2005 at 10:21 AM

    Hi,

    You can take a look at the 'how to line items in bps' in sap market place. This doc explains how to include username, date... in your records.

    Regrads

    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.