Skip to Content

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

DM package: ask for two versions as input


Business scenario: user must select a source version and then on a different prompt a destination version. Then submit the DM package. This package will call a logic and this logic calls a BAdI sending the two selected versions.

At the moment we are asking the first version with a selectinput and the second version with a text prompt.

PROMPT(SELECTINPUT,,,Select input version,"%CATEGORY_DIM%")

PROMPT(TEXT, %VERS_DEST%, "Type destination version",,,,,")

The user asked to insert both source and destination version from a selection list and not by writing the second one on a text box. Of course he would not insert the two versions on the same selectinput. Combobox is not a solution because there are a lot of versions.

We do not know how to insert two selectinput and how to send the two variables to the script logic.

How can we do this?

Thank you

BPC NW 10

Tags:
Former Member
replied

Correct:

PROMPT(COPYMOVEINPUT,%SELECTION%,%TOSELECTION%,"Select Source and Target Category",”%CATEGORY_DIM%”,)

INFO(%EQU%,=)

INFO(%TAB%,;)

TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,TAB,%TAB%)

TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,EQU,%EQU%)

TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SUSER,%USER%)

TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SAPPSET,%APPSET%)

TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SAPP,%APP%)

TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SELECTION,%SELECTION%)

TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,MEMBERSELECTION,TOSELECTION%EQU%%TOSELECTION%)

Then in the script use:

%CATEGORY_SET% for source Category

$TOSELECTION$ for target Category

Vadim

P.S. Or the following (without setting scope with %SELECTION%):

PROMPT(COPYMOVEINPUT,%SEL%,%TOSELECTION%,"Select Source and Target Category",”%CATEGORY_DIM%”,)

INFO(%EQU%,=)

INFO(%TAB%,;)

TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,TAB,%TAB%)

TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,EQU,%EQU%)

TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SUSER,%USER%)

TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SAPPSET,%APPSET%)

TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SAPP,%APP%)

TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,MEMBERSELECTION,SEL%EQU%%SEL%%TAB%TOSEL%EQU%%TOSEL%)

Then in the script use:

$SEL$ for source Category

$TOSEL$ for target Category

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question