SAP OG_SMP_DOCUMENT_SELECT Function Module for Software Maintenance Process: Selection of data
OG_SMP_DOCUMENT_SELECT is a standard og smp document select SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Software Maintenance Process: Selection of data 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 og smp document select FM, simply by entering the name OG_SMP_DOCUMENT_SELECT into the relevant SAP transaction such as SE37 or SE38.
Function Group: OGSS
Program Name: SAPLOGSS
Main Program: SAPLOGSS
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function OG_SMP_DOCUMENT_SELECT 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 'OG_SMP_DOCUMENT_SELECT'"Software Maintenance Process: Selection of data.
EXPORTING
REPORT = "
VARIANT = "
PROFILE = "
* PROCESS_TYPE = "Delivery block (document header)
SAMMG = "Delta Run
IMPORTING
NEW_VERSION = "
VCP = "
TVAK = "
COUNTER = "
XMAT_IND = "Version change protection checkbox
TABLES
XPLBDC = "
ITOGM3 = "
VARVALS = "
PARTNER = "
IPLPARVW = "
XVBFS = "
* ADD_MATNR = "Additional material
EXCEPTIONS
SW_MATERIAL_REQUIRED = 1 SC_MATERIAL_REQUIRED = 2 WRONG_PROCESS_TYPE = 3 OTHERS = 4
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLOGSS_001 OGV90012 - Software Maintenance Process: Split Criterias
EXIT_SAPLOGSS_001_X Software Maintenance Process: Split Criterias
EXIT_SAPLOGSS_002 OGV90005 - Put level maintance, get date for SC validation
EXIT_SAPLOGSS_004 OGV90003 - Software Maintenance Process: Software material check
EXIT_SAPLOGSS_004_X Software Maintenance Process: Software material check
EXIT_SAPLOGSS_005 OGV90004 - User exit to check whether Service material can be used in SMP
EXIT_SAPLOGSS_005_X User exit to check whether Service material can be used in SMP
EXIT_SAPLOGSS_007 OGV90008 - User exit to add additional fields in order creation
EXIT_SAPLOGSS_009 OGV90009 - User exit to enable an alternative selection from Ibase
EXIT_SAPLOGSS_010 Filter or add items to SMP contract selection
EXIT_SAPLOGSS_012 OGV90010 - Customer processing for slection variant
IMPORTING Parameters details for OG_SMP_DOCUMENT_SELECT
REPORT -
Data type: RSVAR-REPORTOptional: No
Call by Reference: No ( called with pass by value option)
VARIANT -
Data type: RSVAR-VARIANTOptional: No
Call by Reference: No ( called with pass by value option)
PROFILE -
Data type: TOGM2-PROFILEOptional: No
Call by Reference: No ( called with pass by value option)
PROCESS_TYPE - Delivery block (document header)
Data type: VBAK-LIFSKOptional: Yes
Call by Reference: No ( called with pass by value option)
SAMMG - Delta Run
Data type: RV50S-SAMMGOptional: No
Call by Reference: Yes
EXPORTING Parameters details for OG_SMP_DOCUMENT_SELECT
NEW_VERSION -
Data type: VBAP-MATNROptional: No
Call by Reference: No ( called with pass by value option)
VCP -
Data type: ROGMIO-VCPOptional: No
Call by Reference: No ( called with pass by value option)
TVAK -
Data type: TVAKOptional: No
Call by Reference: No ( called with pass by value option)
COUNTER -
Data type: ROGPARVW-INT_COUNTOptional: No
Call by Reference: No ( called with pass by value option)
XMAT_IND - Version change protection checkbox
Data type: ROGMIO-VCPOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for OG_SMP_DOCUMENT_SELECT
XPLBDC -
Data type: OGIBS_XPLBDCOptional: No
Call by Reference: No ( called with pass by value option)
ITOGM3 -
Data type: TOGM3Optional: No
Call by Reference: No ( called with pass by value option)
VARVALS -
Data type: RSPARAMSOptional: No
Call by Reference: No ( called with pass by value option)
PARTNER -
Data type: VBPAKOMOptional: No
Call by Reference: No ( called with pass by value option)
IPLPARVW -
Data type: ROGPARVWOptional: No
Call by Reference: No ( called with pass by value option)
XVBFS -
Data type: VBFSOptional: No
Call by Reference: No ( called with pass by value option)
ADD_MATNR - Additional material
Data type: TOGMATOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
SW_MATERIAL_REQUIRED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SC_MATERIAL_REQUIRED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_PROCESS_TYPE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OTHERS -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for OG_SMP_DOCUMENT_SELECT 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_report | TYPE RSVAR-REPORT, " | |||
| lt_xplbdc | TYPE STANDARD TABLE OF OGIBS_XPLBDC, " | |||
| lv_new_version | TYPE VBAP-MATNR, " | |||
| lv_sw_material_required | TYPE VBAP, " | |||
| lv_vcp | TYPE ROGMIO-VCP, " | |||
| lt_itogm3 | TYPE STANDARD TABLE OF TOGM3, " | |||
| lv_variant | TYPE RSVAR-VARIANT, " | |||
| lv_sc_material_required | TYPE RSVAR, " | |||
| lv_tvak | TYPE TVAK, " | |||
| lv_profile | TYPE TOGM2-PROFILE, " | |||
| lt_varvals | TYPE STANDARD TABLE OF RSPARAMS, " | |||
| lv_wrong_process_type | TYPE RSPARAMS, " | |||
| lv_others | TYPE RSPARAMS, " | |||
| lv_counter | TYPE ROGPARVW-INT_COUNT, " | |||
| lt_partner | TYPE STANDARD TABLE OF VBPAKOM, " | |||
| lv_process_type | TYPE VBAK-LIFSK, " | |||
| lv_sammg | TYPE RV50S-SAMMG, " | |||
| lt_iplparvw | TYPE STANDARD TABLE OF ROGPARVW, " | |||
| lv_xmat_ind | TYPE ROGMIO-VCP, " | |||
| lt_xvbfs | TYPE STANDARD TABLE OF VBFS, " | |||
| lt_add_matnr | TYPE STANDARD TABLE OF TOGMAT. " |
|   CALL FUNCTION 'OG_SMP_DOCUMENT_SELECT' "Software Maintenance Process: Selection of data |
| EXPORTING | ||
| REPORT | = lv_report | |
| VARIANT | = lv_variant | |
| PROFILE | = lv_profile | |
| PROCESS_TYPE | = lv_process_type | |
| SAMMG | = lv_sammg | |
| IMPORTING | ||
| NEW_VERSION | = lv_new_version | |
| VCP | = lv_vcp | |
| TVAK | = lv_tvak | |
| COUNTER | = lv_counter | |
| XMAT_IND | = lv_xmat_ind | |
| TABLES | ||
| XPLBDC | = lt_xplbdc | |
| ITOGM3 | = lt_itogm3 | |
| VARVALS | = lt_varvals | |
| PARTNER | = lt_partner | |
| IPLPARVW | = lt_iplparvw | |
| XVBFS | = lt_xvbfs | |
| ADD_MATNR | = lt_add_matnr | |
| EXCEPTIONS | ||
| SW_MATERIAL_REQUIRED = 1 | ||
| SC_MATERIAL_REQUIRED = 2 | ||
| WRONG_PROCESS_TYPE = 3 | ||
| OTHERS = 4 | ||
| . " OG_SMP_DOCUMENT_SELECT | ||
ABAP code using 7.40 inline data declarations to call FM OG_SMP_DOCUMENT_SELECT
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.| "SELECT single REPORT FROM RSVAR INTO @DATA(ld_report). | ||||
| "SELECT single MATNR FROM VBAP INTO @DATA(ld_new_version). | ||||
| "SELECT single VCP FROM ROGMIO INTO @DATA(ld_vcp). | ||||
| "SELECT single VARIANT FROM RSVAR INTO @DATA(ld_variant). | ||||
| "SELECT single PROFILE FROM TOGM2 INTO @DATA(ld_profile). | ||||
| "SELECT single INT_COUNT FROM ROGPARVW INTO @DATA(ld_counter). | ||||
| "SELECT single LIFSK FROM VBAK INTO @DATA(ld_process_type). | ||||
| "SELECT single SAMMG FROM RV50S INTO @DATA(ld_sammg). | ||||
| "SELECT single VCP FROM ROGMIO INTO @DATA(ld_xmat_ind). | ||||
Search for further information about these or an SAP related objects