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

POPUP_TO_CONFIRM

Hi all,

how to deal with DIAGNOSE_OBJECT parameter in FM POPUP_TO_CONFIRM to get the text with SE61.

thanx in advance

Rakesh

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 03, 2006 at 05:30 PM

    Hai Rakesh

    Go through the following Code

    Create 'ZDIALOG_TEXT' Element at SE61

    and give &name& as text element

    then execute the following Code

    data parameters like spar occurs 0 with header line.

    data Name(75) type c.

    name = ' '.

    Data : v_ecc6_text type string,

    v_ecc6_title type string.

    DATA: L_SVAR(1).

    concatenate

    '1'

    '2'

    '3'

    into Name separated by space.

    move Name to parameters-value.

    move 'NAME' to parameters-param.

    append parameters.

    CALL FUNCTION 'POPUP_TO_CONFIRM'

    EXPORTING

    TITLEBAR = 'Hai'

    DIAGNOSE_OBJECT = 'ZDIALOG_TEXT'

    TEXT_QUESTION = 'Hello'

    DEFAULT_BUTTON = '1'

    IMPORTING

    ANSWER = L_SVAR

    TABLES

    PARAMETER = parameters

    EXCEPTIONS

    TEXT_NOT_FOUND = 1

    OTHERS = 2.

    if sy-subrc <> 0.

    L_SVAR = 'A'.

    else.

    case L_SVAR.

    when '1'.

    L_SVAR = 'J'.

    when '2'.

    L_SVAR = 'N'.

    when others.

    L_SVAR = 'A'.

    endcase.

    endif.

    write : L_SVAR.

    Regards

    Sreeni

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 03, 2006 at 04:11 PM

    hi,

    Usually, you can leave a space for this export parameter. Like ' '.

    i hope it helps

    Add comment
    10|10000 characters needed characters exceeded

    • You must fill this parameter with a valid object name from the DOKHL table, Docment class for you object must be "DT" for Dialog Text.

      When creating your text via SE61, use "Text in Dialog" for the Document Class.

      Regards,

      Rich Heilman