Skip to Content
avatar image
Former Member

Marketing Attribute format in Interactiv Scripting

Hi Experts,

so fare I am able to have marketing attribues as answers in interactive script.

Unfortunately the format is always a checkbox and I need to have a drop down list.

Somebody knows how to change the format of the answer option?

Thanks for help.

Cristina

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Dec 17, 2008 at 06:38 PM

    In Scripting there are only support radio buttons and

    checkboxes to show marketing attributes. However, You can use dropdown

    listbox in the place of radio buttons by changing the code.

    Keep in mind that this change will affect all the scripts in a way that

    radio buttons are replaced by listbox. You may be able to avoid this by

    adding a new varible such as to know which script and then use either

    the radio button or the listbox.

    Also check if the note 1136629 is implemeted in your system. This note

    is required for the modification suggested.

    The method you need to change is:

    CL_CRM_IC_SCRIPT_DYN_MA->GET_SURVEY_XML_SNIPPET

    I would suggest that you first inherit this method and make the changes in the inherited method. In this way, any future changes by SAP will not overwrite your changes.

    Look for the blok of code and make the changes as suggested between DELETE & INSERT tags:

    if multivalue = 'M'.

    • Create checkbox type answer

    concatenate '<Answer Type="MultipleChoice" Size="30" Style="Checkbox" Rows="0" AnswerId="'

    attribute

    '" BoundTo="" MaxLength="30" Cols="0" ReadOnly="" TextPosition="Left">'

    into xmlstring. "#EC NOTEXT

    else.

    • Create radio button type answer

    • DELETE BEGIN

    concatenate '<Answer Type="SingleChoice" Size="30" Style="RadioButton" Rows="0" AnswerId="'

    attribute

    '" BoundTo="" MaxLength="30" Cols="0" ReadOnly="" TextPosition="Left">'

    into xmlstring. "#EC NOTEXT

    • DELETE END

    • INSERT BEGIN

    concatenate '<Answer Type="SingleChoice" Size="30" Style="Listbox" Rows="0" AnswerId="'

    attribute

    '" BoundTo="" MaxLength="30" Cols="0" ReadOnly="" TextPosition="Left">'

    into xmlstring. "#EC NOTEXT

    • INSERT END

    endif.

    Add comment
    10|10000 characters needed characters exceeded