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

Warning Pop up ..!!

Former Member
0 Likes
1,823

Hi All,

I have to display warning message with countinue and cancel button.it has more than 200 character.Pls let me know which Fm I shld use.

i have used popup_to_confirm but no use.

Rgds,

Raghav.

Hi All,

I have to display warning message with countinue and cancel button.it has more than 200 character.Pls let me know which Fm I shld use.

i have used popup_to_confirm but no use.

Rgds,

Raghav.

11 REPLIES 11
Read only

prasanth_kasturi
Active Contributor
0 Likes
1,754

hi,

Insted of FM

try designing a screen and use CALL SCREEN with its addition STARTING AT x1 y1 ... ENDING AT x2 y2

So if you use a screen you can set your own PF STATUS

regards

Prasanth

Read only

Former Member
0 Likes
1,754

Go for Modal Dialog Box!!!

Read only

tarangini_katta
Active Contributor
0 Likes
1,754

Hi,

Go to Se51 select the option model dialog box and create the postion.

Thanks

Read only

Former Member
0 Likes
1,754

Try to design a screen and use CALL SCREEN with its addition STARTING AT x1 y1 ... ENDING AT x2 y2

Read only

0 Likes
1,754

*--Clear variables

CLEAR: g_text1, g_text2, g_text3, g_text4.

*--Show detailed information regarding currently being running job

CONCATENATE g_text1 ' TEXT1'

INTO g_text1 SEPARATED BY space.

CONCATENATE g_text2 'Text2'

INTO g_text2 SEPARATED BY space.

*--Pop up mesaage

*CALL FUNCTION 'POPUP_TO_INFORM'*

EXPORTING

titel = 'TITLE !!!'

txt1 = g_text1

txt2 = g_text2

You can use this FM 'POPUP_TO_INFORM' to inform user

Read only

Former Member
0 Likes
1,754

Hi,

The exact way for doing this is to split the line into smaller ones. Also we need to ensure that words should not be cut in middle, so use RKD_WORD_WRAP FM and split text into three fields of 70 length each and then pass it to FM POPUP_DISPLAY_TEXT_LO.

This will work for sure. Check and reply.

Regards

Karthik D

Read only

Former Member
0 Likes
1,754

Hi raghav,

Use the FM :-

POPUP_WITH_WARNING

This would give you the warning message as a pop-up with the continue button.

CALL FUNCTION 'POPUP_WITH_WARNING'
  EXPORTING
    textline1       = 'This is a warning'
*   TEXTLINE2       = ' '
*   TITEL           = 'Warnung'

Luck,

Bhumika

Read only

Former Member
0 Likes
1,754

Hi,

One popup

POPUP_TO_CONFIRM_STEP

With this function module you create a dialog box in which you ask the user during an action, whether he or she wishes to perform the step. You pass the title and a two-line question. The user must choose Yes, No or Cancel.

The possible responses are provided by the function module.

In the interface, the response "Yes" is pre-selected, but "No" can also be pre-selected via a parameter.

The user response (Yes, No or Cancel) is returned in a parameter.

Regards,

Jisha.

Read only

Former Member
0 Likes
1,754

Hi,

There is one FM in which u can enter a long text and give ur own names to buttons(in ur case continue, cancel.

POPUP_WITH_2_BUTTONS_TO_CHOOSE

Regards,

Jisha.

Read only

Former Member
0 Likes
1,754

Hi,

Use this functional module...

BAL_DSP_MSG_LONGTEXT For Displaying message long text

Hope it helps.

Regards:

Alok Bansal

Read only

Former Member
0 Likes
1,754

Hi,

Use any of the below:

CALL FUNCTION 'POPUP_CONTINUE_YES_NO'

EXPORTING

textline1 = text-002

titel = text-003

  • IMPORTING

  • ANSWER =

.

CALL FUNCTION 'POPUP_TO_CONFIRM'

EXPORTING

titlebar = text-302

text_question = p_msg

text_button_1 = 'OK'

icon_button_1 = 'ICON_CHECKED'

text_button_2 = 'CANCEL'

icon_button_2 = 'ICON_CANCEL'

display_cancel_button = ' '

popup_type = 'ICON_MESSAGE_ERROR'

IMPORTING

answer = w_answer.

IF w_answer = c_2.

LEAVE PROGRAM.

ENDIF.

Thanks,

Krishna...