SAP FCOM_MASTER_PS_WBS Function Module for
FCOM_MASTER_PS_WBS is a standard fcom master ps wbs 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 fcom master ps wbs FM, simply by entering the name FCOM_MASTER_PS_WBS into the relevant SAP transaction such as SE37 or SE38.
Function Group: FCOM_MASTER_PS
Program Name: SAPLFCOM_MASTER_PS
Main Program: SAPLFCOM_MASTER_PS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function FCOM_MASTER_PS_WBS 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 'FCOM_MASTER_PS_WBS'".
EXPORTING
* IV_OBJECTID = "
* IV_PSPNR = "
* IV_POSID = "
IMPORTING
ES_WBS_DETAIL = "
ES_WBS_ADDFIELDS = "
ES_WBS_USER_FIELD_TEXTS = "
TABLES
* ET_WBS_SYSTEM_STATUS = "
* ET_WBS_USER_STATUS = "
* ET_WBS_LONGTEXT = "
ET_WBS_RETURN = "
IMPORTING Parameters details for FCOM_MASTER_PS_WBS
IV_OBJECTID -
Data type: STRINGOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_PSPNR -
Data type: PS_POSNROptional: Yes
Call by Reference: No ( called with pass by value option)
IV_POSID -
Data type: PS_POSIDOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FCOM_MASTER_PS_WBS
ES_WBS_DETAIL -
Data type: BAPI_BUS2054_DETAILOptional: No
Call by Reference: No ( called with pass by value option)
ES_WBS_ADDFIELDS -
Data type: FCOM_S_MASTER_PS_ADDFIELDSOptional: No
Call by Reference: No ( called with pass by value option)
ES_WBS_USER_FIELD_TEXTS -
Data type: FCOM_S_MASTER_PS_USERFLDOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for FCOM_MASTER_PS_WBS
ET_WBS_SYSTEM_STATUS -
Data type: FCOM_S_MASTER_PS_SYSTEMSTATOptional: Yes
Call by Reference: Yes
ET_WBS_USER_STATUS -
Data type: FCOM_S_MASTER_PS_USERSTATUSOptional: Yes
Call by Reference: Yes
ET_WBS_LONGTEXT -
Data type: FCOM_S_MASTER_PS_TEXTOptional: Yes
Call by Reference: Yes
ET_WBS_RETURN -
Data type: BAPIRET2Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FCOM_MASTER_PS_WBS 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_objectid | TYPE STRING, " | |||
| lv_es_wbs_detail | TYPE BAPI_BUS2054_DETAIL, " | |||
| lt_et_wbs_system_status | TYPE STANDARD TABLE OF FCOM_S_MASTER_PS_SYSTEMSTAT, " | |||
| lv_iv_pspnr | TYPE PS_POSNR, " | |||
| lv_es_wbs_addfields | TYPE FCOM_S_MASTER_PS_ADDFIELDS, " | |||
| lt_et_wbs_user_status | TYPE STANDARD TABLE OF FCOM_S_MASTER_PS_USERSTATUS, " | |||
| lv_iv_posid | TYPE PS_POSID, " | |||
| lt_et_wbs_longtext | TYPE STANDARD TABLE OF FCOM_S_MASTER_PS_TEXT, " | |||
| lv_es_wbs_user_field_texts | TYPE FCOM_S_MASTER_PS_USERFLD, " | |||
| lt_et_wbs_return | TYPE STANDARD TABLE OF BAPIRET2. " |
|   CALL FUNCTION 'FCOM_MASTER_PS_WBS' " |
| EXPORTING | ||
| IV_OBJECTID | = lv_iv_objectid | |
| IV_PSPNR | = lv_iv_pspnr | |
| IV_POSID | = lv_iv_posid | |
| IMPORTING | ||
| ES_WBS_DETAIL | = lv_es_wbs_detail | |
| ES_WBS_ADDFIELDS | = lv_es_wbs_addfields | |
| ES_WBS_USER_FIELD_TEXTS | = lv_es_wbs_user_field_texts | |
| TABLES | ||
| ET_WBS_SYSTEM_STATUS | = lt_et_wbs_system_status | |
| ET_WBS_USER_STATUS | = lt_et_wbs_user_status | |
| ET_WBS_LONGTEXT | = lt_et_wbs_longtext | |
| ET_WBS_RETURN | = lt_et_wbs_return | |
| . " FCOM_MASTER_PS_WBS | ||
ABAP code using 7.40 inline data declarations to call FM FCOM_MASTER_PS_WBS
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