Skip to Content
avatar image
-3
Former Member

pop up is not appearing in user decion of workflow

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 12 at 07: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).

    Add comment
    10|10000 characters needed characters exceeded