cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Setting %SELECTION% in DM

Former Member
0 Kudos
167

Hello Experts,

I have an issue where I need some help.

We got a DM package which works pretty well using PROMPT. The new requirement is to replace the PROMPTS with fix values. So far so good. This DM package will call a script logic which calls itself a BADI.

The Syntax of the DM package PROMPT is like:

PROMPT(SELECT,%SELECTION%,,"Please enter the hierarchy for the new position","POSITIONS")

This PROMPT works pretty well, as already mentioned, and during debugging we get, after entering TOTPOSITIONS as hierarchy element, a string like:

SELECTION = DIMENSION:POSITIONS|TOTPOSITIONS

Now, I want to set the %SELECTION% variable with a fix value like DIMENSION:POSITIONS|TOTPOSITIONS using an INFO instruction. I tried to achieve this in the following way:

INFO(%SELECTION%, DIMENSION:POSITIONS|TOTPOSITIONS|)

Unfortunately it does not work, the %SELECTION% is not passed to the BADI. Does anybody of you guys know how to set the %SELECTION% variable to a certain dimension member?

TY in advance,

Karsten

Accepted Solutions (1)

Accepted Solutions (1)

former_member186338
Active Contributor
0 Kudos

Hi Karsten,

Please read my answers here:

Prefix - is a key!

Vadim

Former Member
0 Kudos

Hey Vadim,

ty again for your answer. This works absolutely perfect. I don't actually understand the underlying logic, but it works

Best regards,

Karsten

Answers (0)