Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

POPUP_TO_CONFIRM

Former Member
0 Kudos

Hi all,

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

thanx in advance

Rakesh

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

hi,

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

i hope it helps

0 Kudos

If you want to display the documentation, I would think you would enter the object name as it appears in table DOKHL (field OBJECT).

0 Kudos

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

Former Member
0 Kudos

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