SAP QPGR_CODEGROUP_CREATE Function Module for NOTRANSL: Codegruppe anlegen









QPGR_CODEGROUP_CREATE is a standard qpgr codegroup create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Codegruppe anlegen 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 qpgr codegroup create FM, simply by entering the name QPGR_CODEGROUP_CREATE into the relevant SAP transaction such as SE37 or SE38.

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



Function QPGR_CODEGROUP_CREATE 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 'QPGR_CODEGROUP_CREATE'"NOTRANSL: Codegruppe anlegen
EXPORTING
I_QPGR = "Inspection catalog code groups
* I_SAVE = ' ' "

IMPORTING
E_FLG_MESSAGE_COLLECTED = "X and Blank

TABLES
I_SHORT_TEXT_TAB = "Short Texts for Inspection Methods/Master Inspection Chars
* I_LONG_TEXT_TAB = "Long Txt Lines for Insp. Method/Master Insp. Char. (Inc.ALE)

EXCEPTIONS
CODE_GROUP_INCONSISTENT = 1 NO_AUTHORITY = 2 ENQUEUE_ERROR = 3 WRONG_KEY = 4 CODE_GROUP_NOT_POSTED = 5
.




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_SAPLQPGR_021 Customizing Exit Extension Parameters ALE Interface for Code Groups
EXIT_SAPLQPGR_022 Customizing Exit Extension Parameters ALE Interface for Code Groups

IMPORTING Parameters details for QPGR_CODEGROUP_CREATE

I_QPGR - Inspection catalog code groups

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

I_SAVE -

Data type: BOOLE_D
Default: SPACE
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for QPGR_CODEGROUP_CREATE

E_FLG_MESSAGE_COLLECTED - X and Blank

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

TABLES Parameters details for QPGR_CODEGROUP_CREATE

I_SHORT_TEXT_TAB - Short Texts for Inspection Methods/Master Inspection Chars

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

I_LONG_TEXT_TAB - Long Txt Lines for Insp. Method/Master Insp. Char. (Inc.ALE)

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

EXCEPTIONS details

CODE_GROUP_INCONSISTENT -

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

NO_AUTHORITY -

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

ENQUEUE_ERROR -

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

WRONG_KEY -

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

CODE_GROUP_NOT_POSTED -

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

Copy and paste ABAP code example for QPGR_CODEGROUP_CREATE 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_i_qpgr  TYPE QPGR, "   
lt_i_short_text_tab  TYPE STANDARD TABLE OF QPGT, "   
lv_code_group_inconsistent  TYPE QPGT, "   
lv_e_flg_message_collected  TYPE QKZ, "   
lv_i_save  TYPE BOOLE_D, "   SPACE
lv_no_authority  TYPE BOOLE_D, "   
lt_i_long_text_tab  TYPE STANDARD TABLE OF QPMLTXT, "   
lv_enqueue_error  TYPE QPMLTXT, "   
lv_wrong_key  TYPE QPMLTXT, "   
lv_code_group_not_posted  TYPE QPMLTXT. "   

  CALL FUNCTION 'QPGR_CODEGROUP_CREATE'  "NOTRANSL: Codegruppe anlegen
    EXPORTING
         I_QPGR = lv_i_qpgr
         I_SAVE = lv_i_save
    IMPORTING
         E_FLG_MESSAGE_COLLECTED = lv_e_flg_message_collected
    TABLES
         I_SHORT_TEXT_TAB = lt_i_short_text_tab
         I_LONG_TEXT_TAB = lt_i_long_text_tab
    EXCEPTIONS
        CODE_GROUP_INCONSISTENT = 1
        NO_AUTHORITY = 2
        ENQUEUE_ERROR = 3
        WRONG_KEY = 4
        CODE_GROUP_NOT_POSTED = 5
. " QPGR_CODEGROUP_CREATE




ABAP code using 7.40 inline data declarations to call FM QPGR_CODEGROUP_CREATE

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.

 
 
 
 
DATA(ld_i_save) = ' '.
 
 
 
 
 
 


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!