SAP ME_REL_SET Function Module for NOTRANSL: Setzen Freigabe in Bestellanforderung









ME_REL_SET is a standard me rel set 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: Setzen Freigabe in Bestellanforderung 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 me rel set FM, simply by entering the name ME_REL_SET into the relevant SAP transaction such as SE37 or SE38.

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



Function ME_REL_SET 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 'ME_REL_SET'"NOTRANSL: Setzen Freigabe in Bestellanforderung
EXPORTING
* I_TITLE = ' ' "Purchase requisition item
* I_DIALOG = ' ' "Indicator: whether a dialog box is to appear
I_FRGRL = "Indicator subject to release before release
I_FRGCO = "Release code
I_FRGKZ = "Release indicator before release
I_FRGGR = "Release group
I_FRGST = "Release strategy
* I_FRGZU = ' ' "Release status before release
I_FRGOT = "Type of release object

IMPORTING
E_FRGKZ = "Release indicator after release
E_FRGZU = "Release status after release
E_FRGRL = "Indicator: subject to release

EXCEPTIONS
PREREQUISITE_FAIL = 1 RELEASE_ALREADY_POSTED = 2 RESPONSIBILITY_FAIL = 3
.




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_SAPLEBNF_001 Customer Enhancements for Role Assignment in Requisition Release Workflow
EXIT_SAPLEBNF_005 Cust. Enhancements for Role Assgt. in Workflow for Release of Purch. Doc.

IMPORTING Parameters details for ME_REL_SET

I_TITLE - Purchase requisition item

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

I_DIALOG - Indicator: whether a dialog box is to appear

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

I_FRGRL - Indicator subject to release before release

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

I_FRGCO - Release code

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

I_FRGKZ - Release indicator before release

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

I_FRGGR - Release group

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

I_FRGST - Release strategy

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

I_FRGZU - Release status before release

Data type: EBAN-FRGZU
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FRGOT - Type of release object

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

EXPORTING Parameters details for ME_REL_SET

E_FRGKZ - Release indicator after release

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

E_FRGZU - Release status after release

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

E_FRGRL - Indicator: subject to release

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

EXCEPTIONS details

PREREQUISITE_FAIL - Release Prerequisite Not Satisfied

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

RELEASE_ALREADY_POSTED - Release already effected

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

RESPONSIBILITY_FAIL - Release Responsibility Missing

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

Copy and paste ABAP code example for ME_REL_SET 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_e_frgkz  TYPE EBAN-FRGKZ, "   
lv_i_title  TYPE EBAN, "   SPACE
lv_prerequisite_fail  TYPE EBAN, "   
lv_e_frgzu  TYPE EBAN-FRGZU, "   
lv_i_dialog  TYPE EBAN, "   SPACE
lv_release_already_posted  TYPE EBAN, "   
lv_e_frgrl  TYPE EBAN-FRGRL, "   
lv_i_frgrl  TYPE EBAN-FRGRL, "   
lv_responsibility_fail  TYPE EBAN, "   
lv_i_frgco  TYPE T16FC-FRGCO, "   
lv_i_frgkz  TYPE EBAN-FRGKZ, "   
lv_i_frggr  TYPE EBAN-FRGGR, "   
lv_i_frgst  TYPE EBAN-FRGST, "   
lv_i_frgzu  TYPE EBAN-FRGZU, "   SPACE
lv_i_frgot  TYPE T16FG-FRGOT. "   

  CALL FUNCTION 'ME_REL_SET'  "NOTRANSL: Setzen Freigabe in Bestellanforderung
    EXPORTING
         I_TITLE = lv_i_title
         I_DIALOG = lv_i_dialog
         I_FRGRL = lv_i_frgrl
         I_FRGCO = lv_i_frgco
         I_FRGKZ = lv_i_frgkz
         I_FRGGR = lv_i_frggr
         I_FRGST = lv_i_frgst
         I_FRGZU = lv_i_frgzu
         I_FRGOT = lv_i_frgot
    IMPORTING
         E_FRGKZ = lv_e_frgkz
         E_FRGZU = lv_e_frgzu
         E_FRGRL = lv_e_frgrl
    EXCEPTIONS
        PREREQUISITE_FAIL = 1
        RELEASE_ALREADY_POSTED = 2
        RESPONSIBILITY_FAIL = 3
. " ME_REL_SET




ABAP code using 7.40 inline data declarations to call FM ME_REL_SET

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 FRGKZ FROM EBAN INTO @DATA(ld_e_frgkz).
 
DATA(ld_i_title) = ' '.
 
 
"SELECT single FRGZU FROM EBAN INTO @DATA(ld_e_frgzu).
 
DATA(ld_i_dialog) = ' '.
 
 
"SELECT single FRGRL FROM EBAN INTO @DATA(ld_e_frgrl).
 
"SELECT single FRGRL FROM EBAN INTO @DATA(ld_i_frgrl).
 
 
"SELECT single FRGCO FROM T16FC INTO @DATA(ld_i_frgco).
 
"SELECT single FRGKZ FROM EBAN INTO @DATA(ld_i_frgkz).
 
"SELECT single FRGGR FROM EBAN INTO @DATA(ld_i_frggr).
 
"SELECT single FRGST FROM EBAN INTO @DATA(ld_i_frgst).
 
"SELECT single FRGZU FROM EBAN INTO @DATA(ld_i_frgzu).
DATA(ld_i_frgzu) = ' '.
 
"SELECT single FRGOT FROM T16FG INTO @DATA(ld_i_frgot).
 


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!