Skip to Content
avatar image
Former Member

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Jan 14, 2015 at 10:19 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 14, 2015 at 09:36 AM

    Hi Alberto,

    You can consider the following option -

    Kindly refer the below link

    Shrikant

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 14, 2015 at 09:48 AM

    Try as mentioned below

    PROMPT(SELECTINPUT,%SOURCECATEGORY%,,"Enter Source Category","%CATEGORY_DIM%")

    PROMPT(SELECTINPUT,%TARGETCATEGORY%,,"Enter 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,REPLACEPARAM,SOURCE%EQU%%SOURCECATEGORY%%TAB%TARGET%EQU%%TARGETCATEGORY%)


    and then you can use $SOURCE$ and $TARGET$ in your script logic.

    Hope it helps...

    Add comment
    10|10000 characters needed characters exceeded