01-08-2008 4:12 AM
hi
to get a pop up asking for permision to delete or modify a record.
01-08-2008 4:16 AM
Try this
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
titlebar = 'Warning'
text_question = 'Your Question here'
text_button_1 = 'Yes'
icon_button_1 = ' '
text_button_2 = 'No'
icon_button_2 = ' '
default_button = '1'
start_column = 25
start_row = 6
IMPORTING
answer = lv_case
EXCEPTIONS
text_not_found = 1
OTHERS = 2.
Hope this helps
Vinodh Balakrishnan
01-08-2008 4:16 AM
Try this
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
titlebar = 'Warning'
text_question = 'Your Question here'
text_button_1 = 'Yes'
icon_button_1 = ' '
text_button_2 = 'No'
icon_button_2 = ' '
default_button = '1'
start_column = 25
start_row = 6
IMPORTING
answer = lv_case
EXCEPTIONS
text_not_found = 1
OTHERS = 2.
Hope this helps
Vinodh Balakrishnan
01-08-2008 4:30 AM
hi
in the pop up what ever row i selected for deletion or modify msut display in pop up too.
01-08-2008 4:17 AM
Data: ch1.
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
TITLEBAR = 'Confirm of DB Action '
TEXT_QUESTION = 'Do you want to perform?'
TEXT_BUTTON_1 = 'Ja'(001)
TEXT_BUTTON_2 = 'Nein'(002)
DEFAULT_BUTTON = '1'
DISPLAY_CANCEL_BUTTON = 'X'
IMPORTING
ANSWER = ch1
If Ch1 = 1 " means OK.
If ch1 = 2 " means No.
If ch1 = A "means cancel.
01-08-2008 4:27 AM
Hai,
This may help ful.
ABAP POP-UP Window
You had 1 button in the application toolbar of the selection screen, when you click that button, a pop-up window should be displayed containing 3 fields. the data to be displayed depends on the values entered by the user.
1) How to get the pop-up window? Is there any func. module is there?
2) and how to get the fields in the pop-up window? if any func. module is there , what are the parameters to be passed?
USE THIS fm POPUP_TO_DECIDE_INFO .
Parameters required for this FM is the Text you require to display on the popup window.
Two buttons automatically comes on this window a Tick and a x sign if you click tick the output varaible ANSWER is J else it is A .
or
See the below Example:
AT SELECTION-SCREEN ON VALUE-REQUEST FOR SEL_NBA-LOW.
PERFORM ZNEW_VALUE_HELP_NBA.
FORM ZNEW_VALUE_HELP_NBA.
SELECT DISTINCT ZBAREA FROM ZDIVNBABU INTO TABLE ITAB_NBA.
CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'
EXPORTING
ENDPOS_COL = 30
ENDPOS_ROW = 40
STARTPOS_COL = 20
STARTPOS_ROW = 30
TITLETEXT = 'Please Choose Your Entry'
IMPORTING
CHOISE = COUNTS
TABLES
VALUETAB = ITAB_NBA
EXCEPTIONS
BREAK_OFF = 1
OTHERS = 2.
IF COUNTS NE 0.
READ TABLE ITAB_NBA INDEX COUNTS.
SEL_NBA-LOW = ITAB_NBA-ZBAREA.
ENDIF.
CLEAR :ITAB_NBA,COUNTS.REFRESH:ITAB_NBA.
ENDFORM. " NEW_VALUE_HELP_NBA
With regards,
Sowjanya.B.
01-08-2008 4:33 AM
Ramya,
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
text_question = text-008
text_button_1 = 'YES'
text_button_2 = 'NO'
IMPORTING
answer = l_answer
EXCEPTIONS
text_not_found = 1
OTHERS = 2.
IF l_answer = '1'. " when Yes
ELSE. " when No
ENDIF.
Don't forget to reward if useful....
01-08-2008 4:33 AM
Hi Ramya,
To get a pop up use FM
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
TITLEBAR = 'Confirm Posting'
TEXT_QUESTION = 'Continue Posting?'
TEXT_BUTTON_1 = 'Yes' " continue
TEXT_BUTTON_2 = 'No' " dis continue
DISPLAY_CANCEL_BUTTON = X " for delete or cancel
IMPORTING
ANSWER = G_ANSWER.
If it is helpfull pls do rewrd.
Regards
Srimanta