Hi Karthikeyan,
Thanks for your continuous support. Yeah i have maintained task to synchronous method but where i need to maintain Dialogue?. Actually i need to get the remarks when user rejects the approval .if we have any alternate method to achieve above concepts, please let me know.
Below am mentioning the coding.
METHOD get_remarks.
data: wa_mpr_track type ZMPR_TRACK,
lv_lines type i,
wa_comments type TXLINE.
*-- call the text editor for remarks
CALL FUNCTION 'CATSXT_SIMPLE_TEXT_EDITOR'
EXPORTING
im_title = 'Remarks'
im_display_mode = ' '
im_start_column = 10
im_start_row = 10
CHANGING
ch_text = comments.
* IF comments[] is not initial.
*-- update comments in ztable
select single *
from ZMPR_TRACK
into wa_mpr_track
where mpr = mprno.
IF sy-subrc = 0.
LOOP AT comments into wa_comments.
concatenate wa_mpr_track-comments wa_comments
into wa_mpr_track-comments
separated by space.
ENDLOOP.
wa_mpr_track-STATUS = 'REJECTED'.
modify ZMPR_TRACK from wa_mpr_track.
commit work.
ENDIF.
Endmethod.
Regards,
Thangam.P