Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

how to trigger new PAI in dialog program

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!!!!!

Tags:
Not what you were looking for? View more on this topic or Ask a question