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

Replacement Type UserExit for Variable

Hello all,

in my planning layout i defined several variables.

one variable should be automatically dervied by the system via userexit and it should be in the webtemplate shwon as a default value which can be overwrtitten by the user (input field).

this variable contains the posting period. if i call the userexit and execute the planning function the the follwoing error appears:

"Value of variable XXX Period Year ( XXXPER ) cannot be determined.

You are using variable XXX Period Year ( XXXPER ), but the system cannot determine the value of variables. The replacement type 'user-specific values' is set up for the variable, but no values are maintained for your user ID. In addition, the indicator 'Input allowed by user' is not set for the variable. This means the variable cannot be used."

I don't understand it because i did not have set user-specific values but UserExit as replacement type.

As an example: Today we have 13.10.2006; in the template there should appear 001.2006 in the input field.

Can anybody help ?

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 Oct 19, 2005 at 06:10 AM

    Hi, the following coding is in the FM.

    FUNCTION Z_SAM_DATE_TO_PERIOD_CONVERT .

    *"----


    ""Local Interface:

    *" IMPORTING

    *" VALUE(I_DATE) LIKE SY-DATUM DEFAULT SY-DATUM

    *" VALUE(I_PERIV) LIKE T009B-PERIV DEFAULT 'V9'

    *" EXPORTING

    *" REFERENCE(SAMPER) TYPE /BI0/OIFISCPER

    *" EXCEPTIONS

    *" INPUT_FALSE

    *" T009_NOTFOUND

    *" T009B_NOTFOUND

    *" OTHERS

    *"----


    Data: IDATE(7) TYPE C,

    E_BUPER LIKE T009B-POPER,

    E_GJAHR LIKE T009B-BDATJ,

    SAMPER1(8) TYPE C.

    CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'

    EXPORTING

    I_DATE = SY-DATUM

    I_PERIV = 'V9'

    IMPORTING

    E_BUPER = E_BUPER

    E_GJAHR = E_GJAHR

    EXCEPTIONS

    INPUT_FALSE = 1

    T009_NOTFOUND = 2

    T009B_NOTFOUND = 3

    OTHERS = 4.

    IF SY-SUBRC = 0.

    CONCATENATE E_BUPER(3) '.' E_GJAHR INTO SAMPER1.

    CALL FUNCTION 'CONVERSION_EXIT_PERI7_INPUT'

    EXPORTING

    INPUT = SAMPER1

    IMPORTING

    OUTPUT = SAMPER.

    ENDIF.

    ENDFUNCTION.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 13, 2005 at 01:34 PM

    Hi Marc,

    sorry for maybe asking a very trivial question, but have you debugged your coding and are you sure that the value derived by the coding is correct in terms of the value and the format of the value?

    If yes please post the coding here.

    When a variable value cannot be determined the system always deliver this note on "user specific values ..." even when, as in your case, you have defined a Xit variable.

    Martin

    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.