Application Development 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: 

Sales Order Change -- Pop-up window

Former Member
0 Kudos

Hi All,

I have a requirement.

If some one changes a sales order. A pop-up window should apprear and give some message of what they should do next

Eg : Please change inco-terms, Payment terms etc.

Please advice me how I can achive this requirement.

Any Pseudo code is greatly appreciated.

Thanks & Regards

Madhu

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

you first have to find an user exit or enhancement point, where you can code to display popup, and you should first know when to display popup, EX:when user tries to save the changes to sales order, at that time you want to show pop up,

so for that you can code in the include MV45AZZ, in side form SAVE_DOCUMENT_PREPARE.

and code the logic to display popu up if document is incomplete. as faloows

DATA V_ANS.

if payment_term is initial.

CALL FUNCTION 'POPUP_CONTINUE_YES_NO'

EXPORTING

TEXTLINE1 = 'DO YOU WANT TO Save?'

TEXTLINE2 = ' Please enter payment terms'

TITEL = ' Enter Payment term '

IMPORTING

ANSWER = V_ANS.

ENDIF.

Thanks,

Pavan

2 REPLIES 2

Former Member
0 Kudos

Hi,

you first have to find an user exit or enhancement point, where you can code to display popup, and you should first know when to display popup, EX:when user tries to save the changes to sales order, at that time you want to show pop up,

so for that you can code in the include MV45AZZ, in side form SAVE_DOCUMENT_PREPARE.

and code the logic to display popu up if document is incomplete. as faloows

DATA V_ANS.

if payment_term is initial.

CALL FUNCTION 'POPUP_CONTINUE_YES_NO'

EXPORTING

TEXTLINE1 = 'DO YOU WANT TO Save?'

TEXTLINE2 = ' Please enter payment terms'

TITEL = ' Enter Payment term '

IMPORTING

ANSWER = V_ANS.

ENDIF.

Thanks,

Pavan

Former Member
0 Kudos

hi ,

check this...do like this in ur report

report z_vishvas_alv1.

type-pools: slis.

data: begin of i_outtab occurs 0.

include structure sflight.

data: w_chk type c. "For multiple selection

data: end of i_outtab.

  • I_OUTTAB TYPE SFLIGHT OCCURS 0,

data: i_private type slis_data_caller_exit,

i_selfield type slis_selfield,

w_exit(1) type c.

parameters: p_title type sy-title.

*

start-of-selection.

select * from sflight into table i_outtab.

call function 'REUSE_ALV_POPUP_TO_SELECT'

exporting

i_title = p_title

i_selection = 'X'

i_zebra = 'X'

  • I_SCREEN_START_COLUMN = 0

  • I_SCREEN_START_LINE = 0

  • I_SCREEN_END_COLUMN = 0

  • I_SCREEN_END_LINE = 0

i_checkbox_fieldname = 'W_CHK'

  • I_LINEMARK_FIELDNAME =

  • I_SCROLL_TO_SEL_LINE = 'X'

i_tabname = 'I_OUTTAB'

i_structure_name = 'SFLIGHT'

  • IT_FIELDCAT =

  • IT_EXCLUDING =

  • I_CALLBACK_PROGRAM =

  • I_CALLBACK_USER_COMMAND =

  • IS_PRIVATE = I_PRIVATE

importing

es_selfield = i_selfield

e_exit = w_exit

tables

t_outtab = i_outtab

exceptions

program_error = 1

others = 2.

if sy-subrc <> 0.

  • MESSAGE i000(0k) WITH sy-subrc.

endif.

*****the internal table is modified with a cross sign for marking the

***rows selected

loop at i_outtab where w_chk = 'X'.

write: / i_outtab-carrid, i_outtab-price.

endloop.

regards,

venkat.