Application Development and Automation 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: 
Read only

regarding FM

Former Member
0 Likes
540

regarding POPUP_TO_CONFIRM

could you pls tell me how to pass DIAGNOSE_OBJECT parameter with this FM.

ambichan.

4 REPLIES 4
Read only

aaruljothi
Participant
0 Likes
512

hI,

The DIAGNOSE_OBJECT should be created in SE61. It will be written in the table DOKHL-Documentation: Headers, with texts. that text should be given in the parameter

The document passed must be created with the Documentation maintenance transaction (SE61) as a "Text in dialog" class document. No check is made that all parameters used in the text document are passed in the internal table PARAMETERS. Missing parameters are not displayed. You should use numbered texts to make the parameter values translatable.

Read only

Former Member
0 Likes
512

hi,

call function 'POPUP_TO_CONFIRM'

exporting

titel = 'Title for POPUP_TO_CONFIRM'(A01)

diagnose_object = 'TEXT1_ZUM_POPUP_TO_CONFIRM'

text_question = 'Do you want to carry out this

fantastic test?'(A02)

text_button_1 = 'Yes'(A03)

ICON_BUTTON_1 = 'ICON_OKAY'

text_button_2 = 'Cancel'(A04)

ICON_BUTTON_2 = 'ICON_CANCEL'

DEFAULT_BUTTON = '1'

DISPLAY_CANCEL = ''

userdefined_f1_help = 'TEST_TEXT_ZUR_SPO1'

START_COLUMN = 25

START_ROW = 6

importing

answer = answer

exception

TEXT_NOT_FOUND = 1

others = 2.

cheers,

sasi

Read only

0 Likes
512

hai,

I want to pass 3 dynamica variable values into POPUP_TO_CONFIRM FM in diagnose_object parameter

and display.

could you pls give me sample of how to create text id

in SE61 and pass it to FM.

small example would be great.

ambichan

Read only

0 Likes
512

Hi,

Go to SE61, Select Document Class "Text in dialog" in Settings section by hitting F4 and then enter ZCHAN_TEST in Dialog Text field and click on Create button.

Inside the editor, just write <b>Hello &USER&</b>

Save it and come out.

Then in your program,

DATA: T_PARAMETER LIKE SPAR OCCURS 0 WITH HEADER LINE.

T_PARAMETER-PARAM = 'USER'. "The one you gave in & &

T_PARAMETER-VALUE = sy-uname.

APPEND T_PARAMETER.

CALL FUNCTION 'POPUP_TO_CONFIRM'

EXPORTING

TITLEBAR = 'Hello'

<b> DIAGNOSE_OBJECT = 'ZCHAN_TEST'</b>

TEXT_QUESTION = 'Confirm'

TEXT_BUTTON_1 = 'Yes'

TEXT_BUTTON_2 = 'No'

DEFAULT_BUTTON = '1'

DISPLAY_CANCEL_BUTTON = ' '

IMPORTING

ANSWER = L_ANSWER

TABLES

<b> PARAMETER = T_PARAMETER</b>

EXCEPTIONS

TEXT_NOT_FOUND = 1

OTHERS = 2.

Now if you want more variables have all of them in your text like &VAR1&, &VAR2&, &VAR3&..

And then fill T_PARAMETER table with 3 entries one for each variable...

Hope this helps..

Sri