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

Popup window need

Former Member
0 Likes
599

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

4 REPLIES 4
Read only

naimesh_patel
Active Contributor
0 Likes
559

Give a message type 'I'.

Like Message I398(00) with 'Updated successfully' l_rec 'entries'.

Regards,

Naimesh Patel

Read only

Former Member
Read only

Former Member
0 Likes
559

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.

Read only

Former Member
0 Likes
559

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