SAP OG_SMP_DOCUMENT_GENERATE Function Module for Software Maintenance Process: Creation of notification orders









OG_SMP_DOCUMENT_GENERATE is a standard og smp document generate 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: Creation of notification orders 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 generate FM, simply by entering the name OG_SMP_DOCUMENT_GENERATE into the relevant SAP transaction such as SE37 or SE38.

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



Function OG_SMP_DOCUMENT_GENERATE 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_GENERATE'"Software Maintenance Process: Creation of notification orders
EXPORTING
* NEW_VERSION = "
XVBSK = "
* XMAT_IND = "Version change protection checkbox
* VCP = "
VARIANT = "
PROFILE = "
* SIM_MODE = "
TVAK = "
SAMMG = "
* PROCESS_TYPE = "
* SAMMG_V = "

IMPORTING
XVBSK = "

TABLES
XPLDBC = "
H_PARTNER = "
XVBFS = "
XROGPARVW = "
* OUT_VBFS = "
* OUT_TOGM1 = "
* ADD_MATNR = "Additional material

EXCEPTIONS
INVALID_DATA = 1
.




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_SAPLOGSM_001 OGV90001 - Modify SW material configuration for SMP order creationterial c
EXIT_SAPLOGSM_002 OGV90008 - User exit for forecasting
EXIT_SAPLOGSM_003 OGV90002 - User exit to handle complex characteristic value comparison
EXIT_SAPLOGSM_004 OGV90007 - User exit to move additional fields,lines to communication strc

IMPORTING Parameters details for OG_SMP_DOCUMENT_GENERATE

NEW_VERSION -

Data type: VBAP-MATNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

XVBSK -

Data type: VBSK
Optional: No
Call by Reference: No ( called with pass by value option)

XMAT_IND - Version change protection checkbox

Data type: ROGMIO-VCP
Optional: Yes
Call by Reference: No ( called with pass by value option)

VCP -

Data type: ROGMIO-VCP
Optional: Yes
Call by Reference: No ( called with pass by value option)

VARIANT -

Data type: TOGM2-VARIANT
Optional: No
Call by Reference: No ( called with pass by value option)

PROFILE -

Data type: TOGM2-PROFILE
Optional: No
Call by Reference: No ( called with pass by value option)

SIM_MODE -

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

TVAK -

Data type: TVAK
Optional: No
Call by Reference: No ( called with pass by value option)

SAMMG -

Data type: VBSK-SAMMG
Optional: No
Call by Reference: No ( called with pass by value option)

PROCESS_TYPE -

Data type: VBAK-LIFSK
Optional: Yes
Call by Reference: No ( called with pass by value option)

SAMMG_V -

Data type: RV50S-SAMMG
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for OG_SMP_DOCUMENT_GENERATE

XVBSK -

Data type: VBSK
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for OG_SMP_DOCUMENT_GENERATE

XPLDBC -

Data type: OGIBS_XPLBDC
Optional: No
Call by Reference: No ( called with pass by value option)

H_PARTNER -

Data type: VBPAKOM
Optional: No
Call by Reference: No ( called with pass by value option)

XVBFS -

Data type: VBFS
Optional: No
Call by Reference: No ( called with pass by value option)

XROGPARVW -

Data type: ROGPARVW
Optional: No
Call by Reference: No ( called with pass by value option)

OUT_VBFS -

Data type: VBFS
Optional: Yes
Call by Reference: No ( called with pass by value option)

OUT_TOGM1 -

Data type: TOGM1
Optional: Yes
Call by Reference: No ( called with pass by value option)

ADD_MATNR - Additional material

Data type: TOGMAT
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

INVALID_DATA -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for OG_SMP_DOCUMENT_GENERATE 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_xvbsk  TYPE VBSK, "   
lt_xpldbc  TYPE STANDARD TABLE OF OGIBS_XPLBDC, "   
lv_new_version  TYPE VBAP-MATNR, "   
lv_invalid_data  TYPE VBAP, "   
lv_xvbsk  TYPE VBSK, "   
lv_xmat_ind  TYPE ROGMIO-VCP, "   
lv_vcp  TYPE ROGMIO-VCP, "   
lt_h_partner  TYPE STANDARD TABLE OF VBPAKOM, "   
lt_xvbfs  TYPE STANDARD TABLE OF VBFS, "   
lv_variant  TYPE TOGM2-VARIANT, "   
lv_profile  TYPE TOGM2-PROFILE, "   
lt_xrogparvw  TYPE STANDARD TABLE OF ROGPARVW, "   
lt_out_vbfs  TYPE STANDARD TABLE OF VBFS, "   
lv_sim_mode  TYPE VBFS, "   
lv_tvak  TYPE TVAK, "   
lt_out_togm1  TYPE STANDARD TABLE OF TOGM1, "   
lv_sammg  TYPE VBSK-SAMMG, "   
lt_add_matnr  TYPE STANDARD TABLE OF TOGMAT, "   
lv_process_type  TYPE VBAK-LIFSK, "   
lv_sammg_v  TYPE RV50S-SAMMG. "   

  CALL FUNCTION 'OG_SMP_DOCUMENT_GENERATE'  "Software Maintenance Process: Creation of notification orders
    EXPORTING
         NEW_VERSION = lv_new_version
         XVBSK = lv_xvbsk
         XMAT_IND = lv_xmat_ind
         VCP = lv_vcp
         VARIANT = lv_variant
         PROFILE = lv_profile
         SIM_MODE = lv_sim_mode
         TVAK = lv_tvak
         SAMMG = lv_sammg
         PROCESS_TYPE = lv_process_type
         SAMMG_V = lv_sammg_v
    IMPORTING
         XVBSK = lv_xvbsk
    TABLES
         XPLDBC = lt_xpldbc
         H_PARTNER = lt_h_partner
         XVBFS = lt_xvbfs
         XROGPARVW = lt_xrogparvw
         OUT_VBFS = lt_out_vbfs
         OUT_TOGM1 = lt_out_togm1
         ADD_MATNR = lt_add_matnr
    EXCEPTIONS
        INVALID_DATA = 1
. " OG_SMP_DOCUMENT_GENERATE




ABAP code using 7.40 inline data declarations to call FM OG_SMP_DOCUMENT_GENERATE

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 MATNR FROM VBAP INTO @DATA(ld_new_version).
 
 
 
"SELECT single VCP FROM ROGMIO INTO @DATA(ld_xmat_ind).
 
"SELECT single VCP FROM ROGMIO INTO @DATA(ld_vcp).
 
 
 
"SELECT single VARIANT FROM TOGM2 INTO @DATA(ld_variant).
 
"SELECT single PROFILE FROM TOGM2 INTO @DATA(ld_profile).
 
 
 
 
 
 
"SELECT single SAMMG FROM VBSK INTO @DATA(ld_sammg).
 
 
"SELECT single LIFSK FROM VBAK INTO @DATA(ld_process_type).
 
"SELECT single SAMMG FROM RV50S INTO @DATA(ld_sammg_v).
 


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!