2007 Nov 06 2:27 PM
Hi all,
I am working in interactive alv. I am updating value in report output. When ever i click on save it will update the db tables. but my requirement is When Ever I click on SAVE button , it has to show on poup window which shows the "Number of records updated suceessfully " and "Number of records conatins errors".
please help me in this.
regards,
Ajay
Hi
Try this FM...
CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE'
EXPORTING
defaultoption = 'Y'
diagnosetext1 = num "Number of successful records
diagnosetext2 = 'of records updated suceessfully' "message
diagnosetext3 = num2 " Number of error records
textline1 = ' of records conatins errors' "message
titel = 'Confirmation'
IMPORTING
answer = ans "Returns user action
EXCEPTIONS
OTHERS = 1.
Message was edited by:
Perez C
2007 Nov 06 2:38 PM
Give a message type 'I'.
Like Message I398(00) with 'Updated successfully' l_rec 'entries'.
Regards,
Naimesh Patel
2007 Nov 06 2:55 PM
2007 Nov 06 3:00 PM
hi ajay,
In the user command of the alv
if sy-ucomm = '&f03' <-----for back
call function 'popup_for_interaction'(check this function module) or popup_to_inform function module
....
.....
endif.
2007 Nov 06 3:03 PM
Hi
Try this FM...
CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE'
EXPORTING
defaultoption = 'Y'
diagnosetext1 = num "Number of successful records
diagnosetext2 = 'of records updated suceessfully' "message
diagnosetext3 = num2 " Number of error records
textline1 = ' of records conatins errors' "message
titel = 'Confirmation'
IMPORTING
answer = ans "Returns user action
EXCEPTIONS
OTHERS = 1.
Message was edited by:
Perez C
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |