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: 

how to trigger new PAI in dialog program

Former Member
0 Kudos

hi

code show:

WHEN 'SURE'.

BACKUP_NEW = ZBIMV_NEW.

CLEAR ACTIONSTATUS.

CALL METHOD OO_TRAN->tran_check

EXPORTING

ACTION = ACTIONFLAG

IMPORTING

ACTIONSTATUS = ACTIONSTATUS.

WHEN 'CHTU'.

ACTIONFLAG = 'MU'.

PERFORM change_pai.

FORM change_pai.

DATA: RC TYPE I.

  • CALL METHOD cl_gui_cfw=>dispatch.

CALL METHOD cl_gui_cfw=>set_new_ok_code

EXPORTING

new_code = 'SURE'

IMPORTING

rc = rc.

IF rc ne cl_gui_cfw=>rc_posted.

exit.

ENDIF.

CALL METHOD cl_gui_cfw=>flush

EXCEPTIONS

cntl_system_error = 1

cntl_error = 2.

ENDFORM. "change_pai

hi i what to use CHTU COMMAN to trigger SURE COMMAN

but the set_new_ok_code return cl_gui_cfw=>rc_wrong_state.

how to adjust ! thank you very much!

help!!!!!

5 REPLIES 5

Former Member
0 Kudos

comment CLEAR ACTIONSTATUS. and try

Former Member
0 Kudos

HI K.P.N

thank you !

but !

the set_new_ok_code return cl_gui_cfw=>rc_wrong_state also.

Former Member
0 Kudos

thank you !

i change my code !

0 Kudos

What did you do, you defined and implemented a event handler ?

Former Member
0 Kudos

not using set_new_ok_code!

using call form method!