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 POPUP

Former Member
0 Likes
908

Dear Experts,

I have a selection screen where i need to validate the date field. If the user enter the a date range, the system popup a message saying whether to continue with the original entered dates or the calendar dates.

For this pop-up, i have to show a text(more than 360 char) of 4-lines which i am not able to get it, with the options "Yes" and "No".

Can anyone help me in providing the pop-up where i can enter a text of more than 4 lines, with 'Yes' and 'No' options.

8 REPLIES 8
Read only

Former Member
0 Likes
864

Hi Kumar,

go throuught this link.

[ Link 1|http://www.sap-img.com/abap/abap-pop-up-window.htm]

[Link2|http://help.sap.com/saphelp_nwce10/helpdata/en/45/05d30c4bb10488e10000000a155369/content.htm]

Regards,

Sandeep

Read only

Former Member
0 Likes
864

Hi Kumar,

Goto transation BIBS , under 'Dynamics' option, you can find 'Prompts' Click on that, You will get some examples which suits your case.

You can also use FM s

"POPUP_TO_CONFIRM_STEP",

"POPUP_TO_CONFIRM_WITH_VALUE" as well

as "POPUP_TO_CONFIRM_WITH_MESSAGE".

Hope the above clue may help you.

Regards,

Sujatha

Edited by: Sujatha Reddy on Jul 21, 2008 1:09 PM

Read only

0 Likes
864

Hi,

Try FM ''POPUP_WITH_TABLE_DISPLAY'.

Regards,

Aparna Gaikwad

Read only

vinod_vemuru2
Active Contributor
0 Likes
864

Hi,

Use this FM.

POPUP_TO_GET_ONE_VALUE

Pass TEXTLINE1 TEXTLINE2 and TEXTLINE3 as ur text or question.

After calling this FM u can check the import parameter ANSWER for the user action.

ANSWER = J for continue and A for cancel.

Thanks,

Vinod.

Read only

Former Member
0 Likes
864

Hi,

see bellow Ex:

*CALL FUNCTION 'COPO_POPUP_TO_GOON'

  • EXPORTING

  • TEXTLINE1 = 'Do You Want to Delete the Delivery Number:'

  • TEXTLINE2 = TEXTVB

    • TEXTLINE3 = ' '

    • TITEL = ' '

  • IMPORTING

  • ANSWER = ANS.

  • IF ANS EQ 'G'.

  • DELETE FROM ZSD_PACKING1 WHERE VBELN EQ W_VBELN.

  • IF SY-SUBRC EQ 0.

  • MESSAGE I000(1) WITH 'Successfully Deleted'.

  • ELSE.

  • MESSAGE I000(1) WITH 'Deletion Failed'.

  • ENDIF.

  • ENDIF.

hope it will help...

Read only

RoySayak
Active Participant
0 Likes
864

Hi Kumar,

As per my understanding you have to make a new dialog screen by using CALL SCREEN <screen no>.

In the PAI part of the screen you have to write the message text along with the two button 'YES' and 'NO', in the

> CASE SY-UCOMM.

>> WHEN 'YES'.

>> your logic

>>WHEN 'NO'.

>>SET SCREEN 0.

>>LEAVE SCREEN.

>ENDCASE.

Best Regards,

Sayak...

Read only

Former Member
0 Likes
864

hiiii

you can do it by creating new dialog screen & then call it from your program but it will take more time another option is use POPUP_TO_GET_ONE_VALUE

FM.

regards

twinkal

Read only

former_member125931
Active Participant
0 Likes
864

Sample code.

CALL FUNCTION 'POPUP_TO_SELECT_MONTH'

EXPORTING

ACTUAL_MONTH = '200510'

  • FACTORY_CALENDAR = ' '

  • HOLIDAY_CALENDAR = ' '

LANGUAGE = SY-LANGU

START_COLUMN = 8

START_ROW = 5

IMPORTING

SELECTED_MONTH = S_MONTH

RETURN_CODE = S_CODE

EXCEPTIONS

  • FACTORY_CALENDAR_NOT_FOUND = 1

  • HOLIDAY_CALENDAR_NOT_FOUND = 2

MONTH_NOT_FOUND = 3

OTHERS = 4

Likie way findout FM's by giving POPUP_* in se37 as per ur requirement.