SAP SCRM_GET_TABLE_RFC Function Module for
SCRM_GET_TABLE_RFC is a standard scrm get table rfc 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 scrm get table rfc FM, simply by entering the name SCRM_GET_TABLE_RFC into the relevant SAP transaction such as SE37 or SE38.
Function Group: SCRM
Program Name: SAPLSCRM
Main Program: SAPLSCRM
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function SCRM_GET_TABLE_RFC 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 'SCRM_GET_TABLE_RFC'".
EXPORTING
IM_TABLE_NAME = "Table Name
IM_SELECTION_CONDITIONS = "Selection Conditions
IMPORTING
EX_HEADER = "Table header
EX_CODEPAGE = "SAP character set identification
EX_ENDIAN_CHECK_NUMBER = "SAP character set identification
EX_BOX_WIDTH = "
EX_SYSTEM_NAME = "Name of SAP R/3 System
EX_CLIENT = "R/3 System, Client Number from Logon
EX_USER = "SAP System, User Logon Name
EX_TABLE_CONTENT = "
TABLES
* EX_NAMETAB = "
EXCEPTIONS
DATA_COMPRESSION_FAILED = 1 CODE_PAGE_NOT_FOUND = 2 ENDIAN_CHECK_NUMBER_NOT_FOUND = 3 TABLE_NOT_FOUND = 4 NOT_AUTHORIZED = 5 PARAMETER_INVALID = 6
IMPORTING Parameters details for SCRM_GET_TABLE_RFC
IM_TABLE_NAME - Table Name
Data type: TABNAMEOptional: No
Call by Reference: No ( called with pass by value option)
IM_SELECTION_CONDITIONS - Selection Conditions
Data type: CRM_TABLE_SELECTION_CONDITIONSOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SCRM_GET_TABLE_RFC
EX_HEADER - Table header
Data type: NTAB_HDROptional: No
Call by Reference: No ( called with pass by value option)
EX_CODEPAGE - SAP character set identification
Data type: CPCODEPAGEOptional: No
Call by Reference: No ( called with pass by value option)
EX_ENDIAN_CHECK_NUMBER - SAP character set identification
Data type: CPCODEPAGEOptional: No
Call by Reference: No ( called with pass by value option)
EX_BOX_WIDTH -
Data type: IOptional: No
Call by Reference: No ( called with pass by value option)
EX_SYSTEM_NAME - Name of SAP R/3 System
Data type: SYSYSIDOptional: No
Call by Reference: No ( called with pass by value option)
EX_CLIENT - R/3 System, Client Number from Logon
Data type: SYMANDTOptional: No
Call by Reference: No ( called with pass by value option)
EX_USER - SAP System, User Logon Name
Data type: SYUNAMEOptional: No
Call by Reference: No ( called with pass by value option)
EX_TABLE_CONTENT -
Data type: SABP_D_SERIALIZED_DATAOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SCRM_GET_TABLE_RFC
EX_NAMETAB -
Data type: NTAB_CMPOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
DATA_COMPRESSION_FAILED -
Data type:Optional: No
Call by Reference: Yes
CODE_PAGE_NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
ENDIAN_CHECK_NUMBER_NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
TABLE_NOT_FOUND - Table not found
Data type:Optional: No
Call by Reference: Yes
NOT_AUTHORIZED - User Not Authorized for Action
Data type:Optional: No
Call by Reference: Yes
PARAMETER_INVALID - Wrong Parameter Values
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for SCRM_GET_TABLE_RFC 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_ex_header | TYPE NTAB_HDR, " | |||
| lt_ex_nametab | TYPE STANDARD TABLE OF NTAB_CMP, " | |||
| lv_im_table_name | TYPE TABNAME, " | |||
| lv_data_compression_failed | TYPE TABNAME, " | |||
| lv_ex_codepage | TYPE CPCODEPAGE, " | |||
| lv_code_page_not_found | TYPE CPCODEPAGE, " | |||
| lv_im_selection_conditions | TYPE CRM_TABLE_SELECTION_CONDITIONS, " | |||
| lv_ex_endian_check_number | TYPE CPCODEPAGE, " | |||
| lv_endian_check_number_not_found | TYPE CPCODEPAGE, " | |||
| lv_ex_box_width | TYPE I, " | |||
| lv_table_not_found | TYPE I, " | |||
| lv_ex_system_name | TYPE SYSYSID, " | |||
| lv_not_authorized | TYPE SYSYSID, " | |||
| lv_ex_client | TYPE SYMANDT, " | |||
| lv_parameter_invalid | TYPE SYMANDT, " | |||
| lv_ex_user | TYPE SYUNAME, " | |||
| lv_ex_table_content | TYPE SABP_D_SERIALIZED_DATA. " |
|   CALL FUNCTION 'SCRM_GET_TABLE_RFC' " |
| EXPORTING | ||
| IM_TABLE_NAME | = lv_im_table_name | |
| IM_SELECTION_CONDITIONS | = lv_im_selection_conditions | |
| IMPORTING | ||
| EX_HEADER | = lv_ex_header | |
| EX_CODEPAGE | = lv_ex_codepage | |
| EX_ENDIAN_CHECK_NUMBER | = lv_ex_endian_check_number | |
| EX_BOX_WIDTH | = lv_ex_box_width | |
| EX_SYSTEM_NAME | = lv_ex_system_name | |
| EX_CLIENT | = lv_ex_client | |
| EX_USER | = lv_ex_user | |
| EX_TABLE_CONTENT | = lv_ex_table_content | |
| TABLES | ||
| EX_NAMETAB | = lt_ex_nametab | |
| EXCEPTIONS | ||
| DATA_COMPRESSION_FAILED = 1 | ||
| CODE_PAGE_NOT_FOUND = 2 | ||
| ENDIAN_CHECK_NUMBER_NOT_FOUND = 3 | ||
| TABLE_NOT_FOUND = 4 | ||
| NOT_AUTHORIZED = 5 | ||
| PARAMETER_INVALID = 6 | ||
| . " SCRM_GET_TABLE_RFC | ||
ABAP code using 7.40 inline data declarations to call FM SCRM_GET_TABLE_RFC
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