‎2008 Jul 21 12:02 PM
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.
‎2008 Jul 21 12:06 PM
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
‎2008 Jul 21 12:08 PM
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
‎2008 Jul 21 12:12 PM
‎2008 Jul 21 12:12 PM
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.
‎2008 Jul 21 12:13 PM
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...
‎2008 Jul 21 1:14 PM
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...
‎2008 Jul 21 1:18 PM
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
‎2008 Jul 21 1:20 PM
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.