01-10-2018 11:43 AM
hi
i have to use a popup to get user input after approve option of workflow decion.
however , i have made a BOR with this code.
BEGIN_METHOD POPUP CHANGING CONTAINER.
data : text type CATSXT_LONGTEXT_ITAB ,
title type SYTITLE ,
l_text(72) .
data : v_text(1000) .
title = 'Reason for Rejection' .
CALL FUNCTION 'CATSXT_SIMPLE_TEXT_EDITOR'
EXPORTING
IM_TITLE = title
IM_START_COLUMN = 20
IM_START_ROW = 20
CHANGING
CH_TEXT = text .
SWC_SET_TABLE CONTAINER 'reason_text' text.
END_METHOD.
moreover , when i use required or optional method standard dialog has appeared but i need to show different text instaed " REASON FOR APPROVE"
REGARDS
01-10-2018 6:01 PM
01-11-2018 8:50 PM
01-12-2018 7:33 AM
If the dialog doesn't appear then, in SWO1, tick the following checkboxes of your method : "synchronous" and "dialog".
We can't answer your question about how to decide between reject and approve, because you didn't explain which standard business object type it is about. And if it's a custom one, it's even worse, as you didn't explain anything. But maybe you don't know how to read some elements of the container -> you have to use the macro SWC_GET_ELEMENT (cf SAP Library: Macro Instructions for Processing a Container).