SAP CBP_SOP_SOPTAB_FILL Function Module for Fill SOPTAB
CBP_SOP_SOPTAB_FILL is a standard cbp sop soptab fill SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Fill SOPTAB processing and below is the pattern details for this FM, 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 cbp sop soptab fill FM, simply by entering the name CBP_SOP_SOPTAB_FILL into the relevant SAP transaction such as SE37 or SE38.
Function Group: CBP_SOP
Program Name: SAPLCBP_SOP
Main Program:
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CBP_SOP_SOPTAB_FILL 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 'CBP_SOP_SOPTAB_FILL'"Fill SOPTAB.
EXPORTING
I_FLG_STRAT = "
TABLES
T_COLS = "
T_TAB = "
T_LINES = "
T_SAV_QUAD = "
CBP_SOPTAB = "
PLOBJ_TAB = "
IMPORTING Parameters details for CBP_SOP_SOPTAB_FILL
I_FLG_STRAT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CBP_SOP_SOPTAB_FILL
T_COLS -
Data type: SCBP_PGCOLSOptional: No
Call by Reference: No ( called with pass by value option)
T_TAB -
Data type: MXSOPOptional: No
Call by Reference: No ( called with pass by value option)
T_LINES -
Data type: MCP6_LIOptional: No
Call by Reference: No ( called with pass by value option)
T_SAV_QUAD -
Data type: MCP6_SQOptional: No
Call by Reference: No ( called with pass by value option)
CBP_SOPTAB -
Data type: SCBP_SOPTABOptional: No
Call by Reference: No ( called with pass by value option)
PLOBJ_TAB -
Data type: SCBP_PLOBJ_TABOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CBP_SOP_SOPTAB_FILL 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: | ||||
| lt_t_cols | TYPE STANDARD TABLE OF SCBP_PGCOLS, " | |||
| lv_i_flg_strat | TYPE SCBP_PGCOLS, " | |||
| lt_t_tab | TYPE STANDARD TABLE OF MXSOP, " | |||
| lt_t_lines | TYPE STANDARD TABLE OF MCP6_LI, " | |||
| lt_t_sav_quad | TYPE STANDARD TABLE OF MCP6_SQ, " | |||
| lt_cbp_soptab | TYPE STANDARD TABLE OF SCBP_SOPTAB, " | |||
| lt_plobj_tab | TYPE STANDARD TABLE OF SCBP_PLOBJ_TAB. " |
|   CALL FUNCTION 'CBP_SOP_SOPTAB_FILL' "Fill SOPTAB |
| EXPORTING | ||
| I_FLG_STRAT | = lv_i_flg_strat | |
| TABLES | ||
| T_COLS | = lt_t_cols | |
| T_TAB | = lt_t_tab | |
| T_LINES | = lt_t_lines | |
| T_SAV_QUAD | = lt_t_sav_quad | |
| CBP_SOPTAB | = lt_cbp_soptab | |
| PLOBJ_TAB | = lt_plobj_tab | |
| . " CBP_SOP_SOPTAB_FILL | ||
ABAP code using 7.40 inline data declarations to call FM CBP_SOP_SOPTAB_FILL
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