SAP CPAK_GET_OBJECT Function Module for Importieren von LIMU CPAK für Versionierung









CPAK_GET_OBJECT is a standard cpak get object SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Importieren von LIMU CPAK für Versionierung 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 cpak get object FM, simply by entering the name CPAK_GET_OBJECT into the relevant SAP transaction such as SE37 or SE38.

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



Function CPAK_GET_OBJECT 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 'CPAK_GET_OBJECT'"Importieren von LIMU CPAK für Versionierung
EXPORTING
CLSKEY = "
* R3STATE = 'A' "

TABLES
PVSEOATTRIB = "Generierte Tabelle zum View VSEOATTRIB
PTRDIR = "View
PSMODILOG = "Protokoll der Kundenmodifikationen an EU-Objekten
PSMODISRC = "Protokoll Kundenmodifikationen: Objektdaten (Aktiv)
PVSEOMETHOD = "Generierte Tabelle zum View VSEOMETHOD
PVSEOEVENT = "Generierte Tabelle zum View VSEOEVENT
PVSEOTYPE = "Generierte Tabelle zum View VSEOTYPE
PSEOALIAS = "Alias-Definition
PVSEOPARAM = "View
PVSEOEXCEP = "Generierte Tabelle zum View VSEOEXCEP
PSEOTYPEPLS = "Typgruppenverwendung
PSOURCE = "ABAP_SOURCE

EXCEPTIONS
CLASS_NOT_EXISTING = 1 CPAK_NOT_EXISTING = 2 VERSION_NOT_FOUND = 3
.



IMPORTING Parameters details for CPAK_GET_OBJECT

CLSKEY -

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

R3STATE -

Data type: D010SINF-R3STATE
Default: 'A'
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for CPAK_GET_OBJECT

PVSEOATTRIB - Generierte Tabelle zum View VSEOATTRIB

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

PTRDIR - View

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

PSMODILOG - Protokoll der Kundenmodifikationen an EU-Objekten

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

PSMODISRC - Protokoll Kundenmodifikationen: Objektdaten (Aktiv)

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

PVSEOMETHOD - Generierte Tabelle zum View VSEOMETHOD

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

PVSEOEVENT - Generierte Tabelle zum View VSEOEVENT

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

PVSEOTYPE - Generierte Tabelle zum View VSEOTYPE

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

PSEOALIAS - Alias-Definition

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

PVSEOPARAM - View

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

PVSEOEXCEP - Generierte Tabelle zum View VSEOEXCEP

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

PSEOTYPEPLS - Typgruppenverwendung

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

PSOURCE - ABAP_SOURCE

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

EXCEPTIONS details

CLASS_NOT_EXISTING -

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

CPAK_NOT_EXISTING -

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

VERSION_NOT_FOUND -

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

Copy and paste ABAP code example for CPAK_GET_OBJECT 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_clskey  TYPE SEOCLSKEY, "   
lt_pvseoattrib  TYPE STANDARD TABLE OF VSEOATTRIB_VRS, "   
lv_class_not_existing  TYPE VSEOATTRIB_VRS, "   
lt_ptrdir  TYPE STANDARD TABLE OF TRDIR, "   
lt_psmodilog  TYPE STANDARD TABLE OF SMODILOG, "   
lt_psmodisrc  TYPE STANDARD TABLE OF SMODISRC, "   
lv_r3state  TYPE D010SINF-R3STATE, "   'A'
lt_pvseomethod  TYPE STANDARD TABLE OF VSEOMETHOD, "   
lv_cpak_not_existing  TYPE VSEOMETHOD, "   
lt_pvseoevent  TYPE STANDARD TABLE OF VSEOEVENT, "   
lv_version_not_found  TYPE VSEOEVENT, "   
lt_pvseotype  TYPE STANDARD TABLE OF VSEOTYPE_VRS, "   
lt_pseoalias  TYPE STANDARD TABLE OF SEOALIASES, "   
lt_pvseoparam  TYPE STANDARD TABLE OF VSEOPARAM, "   
lt_pvseoexcep  TYPE STANDARD TABLE OF VSEOEXCEP, "   
lt_pseotypepls  TYPE STANDARD TABLE OF SEOTYPEPLS, "   
lt_psource  TYPE STANDARD TABLE OF ABAPTXT255. "   

  CALL FUNCTION 'CPAK_GET_OBJECT'  "Importieren von LIMU CPAK für Versionierung
    EXPORTING
         CLSKEY = lv_clskey
         R3STATE = lv_r3state
    TABLES
         PVSEOATTRIB = lt_pvseoattrib
         PTRDIR = lt_ptrdir
         PSMODILOG = lt_psmodilog
         PSMODISRC = lt_psmodisrc
         PVSEOMETHOD = lt_pvseomethod
         PVSEOEVENT = lt_pvseoevent
         PVSEOTYPE = lt_pvseotype
         PSEOALIAS = lt_pseoalias
         PVSEOPARAM = lt_pvseoparam
         PVSEOEXCEP = lt_pvseoexcep
         PSEOTYPEPLS = lt_pseotypepls
         PSOURCE = lt_psource
    EXCEPTIONS
        CLASS_NOT_EXISTING = 1
        CPAK_NOT_EXISTING = 2
        VERSION_NOT_FOUND = 3
. " CPAK_GET_OBJECT




ABAP code using 7.40 inline data declarations to call FM CPAK_GET_OBJECT

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 R3STATE FROM D010SINF INTO @DATA(ld_r3state).
DATA(ld_r3state) = 'A'.
 
 
 
 
 
 
 
 
 
 
 


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!