SAP /PM0/ASB_TYPE_TASK_API Function Module for
/PM0/ASB_TYPE_TASK_API is a standard /pm0/asb type task api SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for /pm0/asb type task api FM, simply by entering the name /PM0/ASB_TYPE_TASK_API into the relevant SAP transaction such as SE37 or SE38.
Function Group: /PM0/INSOBJ_TASK_FUGR
Program Name: /PM0/SAPLINSOBJ_TASK_FUGR
Main Program: /PM0/SAPLINSOBJ_TASK_FUGR
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function /PM0/ASB_TYPE_TASK_API pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION '/PM0/ASB_TYPE_TASK_API'".
EXPORTING
* IV_MODE = "
IT_EXTENSIONDEF = "
IT_GOX_HEADER_OLD = "
IT_TAB_HEADER_OLD = "
* IV_DEVCLASS = "
* IV_NAME' ' = "
* IV_NSPCSHT_DEV = "
* IV_NSPCSHT_CUS = "
CHANGING
CT_GOX_HEADER = "
* CT_TABLE_ENTRIES = "
* CT_TASKPARAMLIST = "
CT_POSTPROC = "
TABLES
T_RETURN = "
EXCEPTIONS
TECHNICAL_ERROR = 1 SEMANTICAL_ERROR = 2 ERROR_MESSAGE = 3
IMPORTING Parameters details for /PM0/ASB_TYPE_TASK_API
IV_MODE -
Data type: CHAR1Optional: Yes
Call by Reference: Yes
IT_EXTENSIONDEF -
Data type: TOXT_PARAMLISTOptional: No
Call by Reference: Yes
IT_GOX_HEADER_OLD -
Data type: COMT_GOX_DEF_HEADEROptional: No
Call by Reference: Yes
IT_TAB_HEADER_OLD -
Data type: COMT_GOX_TABLE_ENTRY_HEADEROptional: No
Call by Reference: Yes
IV_DEVCLASS -
Data type: DEVCLASSOptional: Yes
Call by Reference: Yes
IV_NAMESPACE -
Data type: NAMESPACEOptional: Yes
Call by Reference: Yes
IV_NSPCSHT_DEV -
Data type: OXT_NSPC_SHORTOptional: Yes
Call by Reference: Yes
IV_NSPCSHT_CUS -
Data type: OXT_NSPC_SHORTOptional: Yes
Call by Reference: Yes
CHANGING Parameters details for /PM0/ASB_TYPE_TASK_API
CT_GOX_HEADER -
Data type: COMT_GOX_DEF_HEADEROptional: No
Call by Reference: Yes
CT_TABLE_ENTRIES -
Data type: COMT_GOX_TABLE_ENTRY_HEADEROptional: Yes
Call by Reference: Yes
CT_TASKPARAMLIST -
Data type: TOXT_PARAMLISTOptional: Yes
Call by Reference: Yes
CT_POSTPROC -
Data type: TOXT_RT_TF_PPROCOptional: No
Call by Reference: Yes
TABLES Parameters details for /PM0/ASB_TYPE_TASK_API
T_RETURN -
Data type: BAPIRET2Optional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
TECHNICAL_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SEMANTICAL_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ERROR_MESSAGE -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for /PM0/ASB_TYPE_TASK_API Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_iv_mode | TYPE CHAR1, " | |||
| lt_t_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_ct_gox_header | TYPE COMT_GOX_DEF_HEADER, " | |||
| lv_technical_error | TYPE COMT_GOX_DEF_HEADER, " | |||
| lv_it_extensiondef | TYPE TOXT_PARAMLIST, " | |||
| lv_ct_table_entries | TYPE COMT_GOX_TABLE_ENTRY_HEADER, " | |||
| lv_semantical_error | TYPE COMT_GOX_TABLE_ENTRY_HEADER, " | |||
| lv_error_message | TYPE COMT_GOX_TABLE_ENTRY_HEADER, " | |||
| lv_ct_taskparamlist | TYPE TOXT_PARAMLIST, " | |||
| lv_it_gox_header_old | TYPE COMT_GOX_DEF_HEADER, " | |||
| lv_ct_postproc | TYPE TOXT_RT_TF_PPROC, " | |||
| lv_it_tab_header_old | TYPE COMT_GOX_TABLE_ENTRY_HEADER, " | |||
| lv_iv_devclass | TYPE DEVCLASS, " | |||
| lv_iv_namespace | TYPE NAMESPACE, " | |||
| lv_iv_nspcsht_dev | TYPE OXT_NSPC_SHORT, " | |||
| lv_iv_nspcsht_cus | TYPE OXT_NSPC_SHORT. " |
|   CALL FUNCTION '/PM0/ASB_TYPE_TASK_API' " |
| EXPORTING | ||
| IV_MODE | = lv_iv_mode | |
| IT_EXTENSIONDEF | = lv_it_extensiondef | |
| IT_GOX_HEADER_OLD | = lv_it_gox_header_old | |
| IT_TAB_HEADER_OLD | = lv_it_tab_header_old | |
| IV_DEVCLASS | = lv_iv_devclass | |
| IV_NAMESPACE | = lv_iv_namespace | |
| IV_NSPCSHT_DEV | = lv_iv_nspcsht_dev | |
| IV_NSPCSHT_CUS | = lv_iv_nspcsht_cus | |
| CHANGING | ||
| CT_GOX_HEADER | = lv_ct_gox_header | |
| CT_TABLE_ENTRIES | = lv_ct_table_entries | |
| CT_TASKPARAMLIST | = lv_ct_taskparamlist | |
| CT_POSTPROC | = lv_ct_postproc | |
| TABLES | ||
| T_RETURN | = lt_t_return | |
| EXCEPTIONS | ||
| TECHNICAL_ERROR = 1 | ||
| SEMANTICAL_ERROR = 2 | ||
| ERROR_MESSAGE = 3 | ||
| . " /PM0/ASB_TYPE_TASK_API | ||
ABAP code using 7.40 inline data declarations to call FM /PM0/ASB_TYPE_TASK_API
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.Search for further information about these or an SAP related objects