POPUP_TO_APPROVE SAP Method popup to approve critical step
Below is documentation, parameters and attributes of ABAP Method POPUP_TO_APPROVE within SAP class /IWBEP/IF_SBUI_CONTROLLER. There is also a number of example ABAP code snipts to help you use the functionality of this method.
This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name /IWBEP/IF_SBUI_CONTROLLER into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.
Method Type - Instance
This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.The following technical details of method POPUP_TO_APPROVE can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method POPUP_TO_APPROVE
.| Name | Type | Data Type | Description | Default Value |
| IO_COMMAND | Importing | TYPE REF TO /IWBEP/IF_SBUI_COMMAND | use command description as title | |
| IT_PARAM | Importing | TYPE TY_T_TEXT_PARAM | text parameter table | |
| IV_ICON | Importing | TYPE ICON-NAME | icon name as string, e.g. 'ICON_MESSAGE_CRITICAL' | |
| IV_QUESTION | Importing | TYPE CSEQUENCE | question text (with &PARAMS&, up to about 400 chars) | |
| IV_TITLE | Importing | TYPE CSEQUENCE | dialog title text (up to 60 chars) | |
| RV_RCODE | Returning | TYPE TY_RETURN_CODE | return code (success, rejected or cancelled) |
Exceptions of Method POPUP_TO_APPROVE
/IWBEP/CX_SBCM_EXCEPTION - SB: exceptionExample ABAP coding
DATA: lo_class TYPE REF TO /IWBEP/IF_SBUI_CONTROLLER.
DATA: lv_IO_COMMAND TYPE /IWBEP/IF_SBUI_COMMAND,
lv_IT_PARAM TYPE TY_T_TEXT_PARAM,
lv_IV_ICON TYPE ICON-NAME,
lv_IV_QUESTION TYPE CSEQUENCE,
lv_IV_TITLE TYPE CSEQUENCE,
lv_RV_RCODE TYPE TY_RETURN_CODE,
lv_other TYPE c.
CALL METHOD lo_class=>POPUP_TO_APPROVE(
EXPORTING
IO_COMMAND = lv_IO_COMMAND
IT_PARAM = lv_IT_PARAM
IV_ICON = lv_IV_ICON
IV_QUESTION = lv_IV_QUESTION
IV_TITLE = lv_IV_TITLE
RECEIVING
RV_RCODE = lv_RV_RCODE )
"Alternate coding for Method Call with returning parameter
lv_RV_RCODE = lo_class=>POPUP_TO_APPROVE(
EXPORTING
IO_COMMAND = lv_IO_COMMAND
IT_PARAM = lv_IT_PARAM
IV_ICON = lv_IV_ICON
IV_QUESTION = lv_IV_QUESTION
IV_TITLE = lv_IV_TITLE ).
Links to Related Class(s)
/IWBEP/I...Full list of available SAP object classes
Search for further information about these or an SAP related objects