Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to pass dimension values from context to prompt


Hi,

I would like to initialize prompt SELECTIONINPUT with values from context.

I have found in EPM documentation that I can do it using [default members] parameter:

http://scn.sap.com/

SELECTINPUT Prompt() Command

http://scn.sap.com/


The SELECTINPUT Prompt() command is used to allow the user to
select only noncalculated members (export, for example).

The syntax is a follows: PROMPT(SELECTINPUT,
[variable], , [label], [dimensions], [default members])



Where


Means


Default Value


SELECTINPUT


Select one noncalculated data range


n/a


[variable]


The name of the returned variable


%SELECTION%


[label]


The text to display to the user.


Select the desired data range


[dimensions]


The dimensions from which to select members


Category, Time, Entity


[default members]


The members that are selected by default

Enter 0 for "All"

Enter 1 to take into account the context member

I tried to use that, eg.

PROMPT(SELECTINPUT,%SOURCEENTITY%, , "Enter Source Entity","%ENTITY_DIM%",1)

but it always shows me ALL as default value...

Can somebody help me how to write it correctly?

Thanks,

Andrzej

Former Member
replied

Hi Andrzej,

Extra comma before "1" will do the job - incorrect documentation!

PROMPT(SELECTINPUT,%SOURCEENTITY%, , "Enter Source Entity","%ENTITY_DIM%",,1)


Vadim

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question