SAP PCL_GET_CONVOBJ Function Module for Get data to create conversion objects









PCL_GET_CONVOBJ is a standard pcl get convobj SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get data to create conversion 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 pcl get convobj FM, simply by entering the name PCL_GET_CONVOBJ into the relevant SAP transaction such as SE37 or SE38.

Function Group: CNV_MBT_PCL_INTERFACE
Program Name: SAPLCNV_MBT_PCL_INTERFACE
Main Program: SAPLCNV_MBT_PCL_INTERFACE
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function PCL_GET_CONVOBJ 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 'PCL_GET_CONVOBJ'"Get data to create conversion objects
EXPORTING
SUBPROJECT = "
COBJ = "
* ONLY_TEST = "flag
* READONLY_TO_NOTRANS = "flag

IMPORTING
DESCRIPTION = "
SELECTION_FIELD = "
BEGIN_OF_PROCESSING = "
END_OF_PROCESSING = "
BEGIN_OF_TRANSACTION = "
END_OF_TRANSACTION = "

TABLES
* TABLELIST = "
* TABSTRUC = "Field list of tables for file transfer
* FIELDLIST = "
* FIELDPARS = "
* RELATIONSHIPS = "
* FORKEYS = "
* INCLUDES = "
* RULELIST = "
* RULEPARS = "
* RULECODING = "

EXCEPTIONS
COBJ_DOES_NOT_EXIST = 1 SUBPROJECT_IS_NOT_ACTIVE = 2 SUBPROJECT_DOES_NOT_EXIST = 3 TABSTRUC_NOT_FILLED = 4
.



IMPORTING Parameters details for PCL_GET_CONVOBJ

SUBPROJECT -

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

COBJ -

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

ONLY_TEST - flag

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

READONLY_TO_NOTRANS - flag

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

EXPORTING Parameters details for PCL_GET_CONVOBJ

DESCRIPTION -

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

SELECTION_FIELD -

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

BEGIN_OF_PROCESSING -

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

END_OF_PROCESSING -

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

BEGIN_OF_TRANSACTION -

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

END_OF_TRANSACTION -

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

TABLES Parameters details for PCL_GET_CONVOBJ

TABLELIST -

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

TABSTRUC - Field list of tables for file transfer

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

FIELDLIST -

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

FIELDPARS -

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

RELATIONSHIPS -

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

FORKEYS -

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

INCLUDES -

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

RULELIST -

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

RULEPARS -

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

RULECODING -

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

EXCEPTIONS details

COBJ_DOES_NOT_EXIST - Conversion Object does not exist

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

SUBPROJECT_IS_NOT_ACTIVE - Subproject is not active

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

SUBPROJECT_DOES_NOT_EXIST - Subproject does not exist

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

TABSTRUC_NOT_FILLED - Tabstruc is not filled although package is an import package

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for PCL_GET_CONVOBJ 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_tablelist  TYPE STANDARD TABLE OF CNVMBTPCLSTRUCTA, "   
lv_subproject  TYPE CNVMBTPCLSTRUC-SUBPROJECT, "   
lv_description  TYPE CNVMBTPCLSTRUC-DESCRIPT, "   
lv_cobj_does_not_exist  TYPE CNVMBTPCLSTRUC, "   
lt_tabstruc  TYPE STANDARD TABLE OF CNVMBTTABSTRUC, "   
lv_cobj  TYPE CNVMBTCOBJ-CONVOBJECT, "   
lt_fieldlist  TYPE STANDARD TABLE OF CNVMBTPCLSTRUCFI, "   
lv_selection_field  TYPE CNVMBTPCLSTRUC-SELFIELD, "   
lv_subproject_is_not_active  TYPE CNVMBTPCLSTRUC, "   
lt_fieldpars  TYPE STANDARD TABLE OF CNVMBTPCLSTRUCFP, "   
lv_only_test  TYPE CNVMBTRETSTR-AND_RETURN, "   
lv_begin_of_processing  TYPE CNVMBTPCLSTRUC-RULENAME, "   
lv_subproject_does_not_exist  TYPE CNVMBTPCLSTRUC, "   
lt_relationships  TYPE STANDARD TABLE OF CNVMBTPCLSTRUCRS, "   
lv_end_of_processing  TYPE CNVMBTPCLSTRUC-RULENAME, "   
lv_readonly_to_notrans  TYPE CNVMBTRETSTR-AND_RETURN, "   
lv_tabstruc_not_filled  TYPE CNVMBTRETSTR, "   
lt_forkeys  TYPE STANDARD TABLE OF CNVMBTPCLSTRUCFK, "   
lv_begin_of_transaction  TYPE CNVMBTPCLSTRUC-RULENAME, "   
lt_includes  TYPE STANDARD TABLE OF CNVMBTPCLSTRUCIN, "   
lv_end_of_transaction  TYPE CNVMBTPCLSTRUC-RULENAME, "   
lt_rulelist  TYPE STANDARD TABLE OF CNVMBTPCLSTRUCRU, "   
lt_rulepars  TYPE STANDARD TABLE OF CNVMBTPCLSTRUCRP, "   
lt_rulecoding  TYPE STANDARD TABLE OF CNVMBTPCLSTRUCRC. "   

  CALL FUNCTION 'PCL_GET_CONVOBJ'  "Get data to create conversion objects
    EXPORTING
         SUBPROJECT = lv_subproject
         COBJ = lv_cobj
         ONLY_TEST = lv_only_test
         READONLY_TO_NOTRANS = lv_readonly_to_notrans
    IMPORTING
         DESCRIPTION = lv_description
         SELECTION_FIELD = lv_selection_field
         BEGIN_OF_PROCESSING = lv_begin_of_processing
         END_OF_PROCESSING = lv_end_of_processing
         BEGIN_OF_TRANSACTION = lv_begin_of_transaction
         END_OF_TRANSACTION = lv_end_of_transaction
    TABLES
         TABLELIST = lt_tablelist
         TABSTRUC = lt_tabstruc
         FIELDLIST = lt_fieldlist
         FIELDPARS = lt_fieldpars
         RELATIONSHIPS = lt_relationships
         FORKEYS = lt_forkeys
         INCLUDES = lt_includes
         RULELIST = lt_rulelist
         RULEPARS = lt_rulepars
         RULECODING = lt_rulecoding
    EXCEPTIONS
        COBJ_DOES_NOT_EXIST = 1
        SUBPROJECT_IS_NOT_ACTIVE = 2
        SUBPROJECT_DOES_NOT_EXIST = 3
        TABSTRUC_NOT_FILLED = 4
. " PCL_GET_CONVOBJ




ABAP code using 7.40 inline data declarations to call FM PCL_GET_CONVOBJ

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 SUBPROJECT FROM CNVMBTPCLSTRUC INTO @DATA(ld_subproject).
 
"SELECT single DESCRIPT FROM CNVMBTPCLSTRUC INTO @DATA(ld_description).
 
 
 
"SELECT single CONVOBJECT FROM CNVMBTCOBJ INTO @DATA(ld_cobj).
 
 
"SELECT single SELFIELD FROM CNVMBTPCLSTRUC INTO @DATA(ld_selection_field).
 
 
 
"SELECT single AND_RETURN FROM CNVMBTRETSTR INTO @DATA(ld_only_test).
 
"SELECT single RULENAME FROM CNVMBTPCLSTRUC INTO @DATA(ld_begin_of_processing).
 
 
 
"SELECT single RULENAME FROM CNVMBTPCLSTRUC INTO @DATA(ld_end_of_processing).
 
"SELECT single AND_RETURN FROM CNVMBTRETSTR INTO @DATA(ld_readonly_to_notrans).
 
 
 
"SELECT single RULENAME FROM CNVMBTPCLSTRUC INTO @DATA(ld_begin_of_transaction).
 
 
"SELECT single RULENAME FROM CNVMBTPCLSTRUC INTO @DATA(ld_end_of_transaction).
 
 
 
 


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!