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

message with multiple values

Hi experts,

Can any body tell me ,

how can we pass a message with muliple values of a select-options parameter with no interval?

select-options: P_WRKAN FOR STZU-WRKAN NO INTERVALS.

if ()

message e001 with ...........

endif.

and what should i write in message 001 in my message-id.

answer will be rewarded.

Sandeep.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 10:42 AM

    Hi Sandeep,

    Declare the select-options like this.

    select-options: lifnr for lfa1-lifnr no intervals.

    if you give like this you can hide the To values but multiple selection icon will be displayed.

    If you want to hide the multiple selection icon as give like this.

    SELECT-OPTIONS s_carrid FOR spfli_wa-carrid NO-EXTENSION NO INTERVALS.

    accordingle figure out what the message should be , in my opinion u dont need one bcause u will not hav the TO value in the selection screen.

    Reward if found helpfull,

    Cheers,

    Chaitanya.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 10:38 AM

    Hi,

    in message 001 write Hi & & &.

    message e001 with 'SDN' 'welcomes' 'you'.

    ur msg ll be Hi SDN welcomes you.

    Cheers,

    Will.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 10:39 AM

    You can create a message in your message class with meassge ' & & &'.

    And while calling you can assign values to these variables.

    ie, Message e(01) with 'message1' ' message2'.

    Then these message1 and message2 should replaces the &nds.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 10:41 AM

    Hi,

    Declare the select-options like this.

    select-options: lifnr for lfa1-lifnr no intervals.

    if you give like this you can hide the To values but multiple selection icon will be displayed.

    If you want to hide the multiple selection icon as give like this.

    SELECT-OPTIONS s_carrid FOR spfli_wa-carrid NO-EXTENSION NO INTERVALS.

    For messages:

    Use AT SELECTION-SCREEN event to validate screen field.

    AT SELECTION-SCREEN.

    If field1 is initial.

    if field2 is initial.

    message E001.

    endif.

    endif.

    Reward Points if found helpfull..

    Cheers,

    Chandra Sekhar.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 11:29 AM

    Hi Sandeep,

    Try the following code:

    Where var1 to varN are the fields you might validate on your selection screen.

    In your message 001 you need to put '&' at the right places.

    The message is displayed.

    if()

    message e001 WITH var1 var2... varN.

    endif.

    Regards,

    Sagar

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 11:33 AM

    Hi,

    If I have misunderstood your question, try this...

    In your message 001 put only one '&'.

    Then declare a variable OF TYPE c,

    Now, whatever values the user enters in the select-options, loop at those values and CONCATENATE each value in the declared variable separated by SPACE.

    And then use that variable in your message.

    Write this code:

    Here S_MATNR is your select-options.

    DATA: VAR1(100) TYPE c

    LOOP AT S_MATNR.

    CONCATENATE S_MATNR-LOW VAR1 INTO VAR1 SEPARATED BY SPACE.

    ENDLOOP.

    MESSAGE e001 WITH var1.

    Regards,

    Sagar

    Edited by: Sagar Nawathe on Jan 31, 2008 12:42 PM

    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.