SAP RSBCTSRM_GROUP_CREATE Function Module for Creates a Group for Similar Objects









RSBCTSRM_GROUP_CREATE is a standard rsbctsrm group create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Creates a Group for Similar Objects 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 rsbctsrm group create FM, simply by entering the name RSBCTSRM_GROUP_CREATE into the relevant SAP transaction such as SE37 or SE38.

Function Group: RSBCTSRM_ADV_MASTER_DATA
Program Name: SAPLRSBCTSRM_ADV_MASTER_DATA
Main Program: SAPLRSBCTSRM_ADV_MASTER_DATA
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function RSBCTSRM_GROUP_CREATE 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 'RSBCTSRM_GROUP_CREATE'"Creates a Group for Similar Objects
EXPORTING
* GROUP_MODE = 'X' "Character Field Length 1
* GROUP_TEXT_DEFAULT = "Characteristic Description (Long Text)

TABLES
P_TABLE = "Table Type for Vendor Grouping

EXCEPTIONS
COUNT_OF_ELEMENTS_LESS_THAN_2 = 1 ELEMENTS_NOT_EMPTY = 2 NO_ELEMENT_SELECTED = 3 COUNT_OF_ELEMENTS_GT_1 = 4 NO_TEXT_SPECIFIED = 5
.



IMPORTING Parameters details for RSBCTSRM_GROUP_CREATE

GROUP_MODE - Character Field Length 1

Data type: CHAR01
Default: 'X'
Optional: No
Call by Reference: Yes

GROUP_TEXT_DEFAULT - Characteristic Description (Long Text)

Data type: RSCHATXTLG
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for RSBCTSRM_GROUP_CREATE

P_TABLE - Table Type for Vendor Grouping

Data type: RSBCTSRM_T_VENDOR_SELECTION
Optional: No
Call by Reference: Yes

EXCEPTIONS details

COUNT_OF_ELEMENTS_LESS_THAN_2 - Number of Elements to be Grouped is less than 2

Data type:
Optional: No
Call by Reference: Yes

ELEMENTS_NOT_EMPTY - At Least 1 Element is Already Grouped

Data type:
Optional: No
Call by Reference: Yes

NO_ELEMENT_SELECTED - No Element Selected

Data type:
Optional: No
Call by Reference: Yes

COUNT_OF_ELEMENTS_GT_1 - Number of Elements is Greater than 1

Data type:
Optional: No
Call by Reference: Yes

NO_TEXT_SPECIFIED - No Group Text Selected or Created

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for RSBCTSRM_GROUP_CREATE 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_p_table  TYPE STANDARD TABLE OF RSBCTSRM_T_VENDOR_SELECTION, "   
lv_group_mode  TYPE CHAR01, "   'X'
lv_count_of_elements_less_than_2  TYPE CHAR01, "   
lv_elements_not_empty  TYPE CHAR01, "   
lv_group_text_default  TYPE RSCHATXTLG, "   
lv_no_element_selected  TYPE RSCHATXTLG, "   
lv_count_of_elements_gt_1  TYPE RSCHATXTLG, "   
lv_no_text_specified  TYPE RSCHATXTLG. "   

  CALL FUNCTION 'RSBCTSRM_GROUP_CREATE'  "Creates a Group for Similar Objects
    EXPORTING
         GROUP_MODE = lv_group_mode
         GROUP_TEXT_DEFAULT = lv_group_text_default
    TABLES
         P_TABLE = lt_p_table
    EXCEPTIONS
        COUNT_OF_ELEMENTS_LESS_THAN_2 = 1
        ELEMENTS_NOT_EMPTY = 2
        NO_ELEMENT_SELECTED = 3
        COUNT_OF_ELEMENTS_GT_1 = 4
        NO_TEXT_SPECIFIED = 5
. " RSBCTSRM_GROUP_CREATE




ABAP code using 7.40 inline data declarations to call FM RSBCTSRM_GROUP_CREATE

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.

 
DATA(ld_group_mode) = 'X'.
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!