SAP NOR3_RESERVATION_GETITEMS Function Module for Get reservation items









NOR3_RESERVATION_GETITEMS is a standard nor3 reservation getitems 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 reservation items 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 nor3 reservation getitems FM, simply by entering the name NOR3_RESERVATION_GETITEMS into the relevant SAP transaction such as SE37 or SE38.

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



Function NOR3_RESERVATION_GETITEMS 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 'NOR3_RESERVATION_GETITEMS'"Get reservation items
EXPORTING
* RES_NO = "
* MATERIAL = "
* PLANT = "
* REQ_DATE = "
* MOVE_PLANT = "
* GR_RCPT = "
* CLOSED_ITEMS = ' ' "
* DELETED_ITEMS = ' ' "
* OPEN_ITEMS = 'X' "

TABLES
RESERVATION_ITEMS = "
* RETURN = "
* CONTROL_RECORD = "
.



IMPORTING Parameters details for NOR3_RESERVATION_GETITEMS

RES_NO -

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

MATERIAL -

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

PLANT -

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

REQ_DATE -

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

MOVE_PLANT -

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

GR_RCPT -

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

CLOSED_ITEMS -

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

DELETED_ITEMS -

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

OPEN_ITEMS -

Data type: BAPIMMPARA-SELECTION
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for NOR3_RESERVATION_GETITEMS

RESERVATION_ITEMS -

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

RETURN -

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

CONTROL_RECORD -

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

Copy and paste ABAP code example for NOR3_RESERVATION_GETITEMS 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_res_no  TYPE BAPIRKPF-RES_NO, "   
lt_reservation_items  TYPE STANDARD TABLE OF BAPIRESBG, "   
lt_return  TYPE STANDARD TABLE OF BAPIRETURN, "   
lv_material  TYPE BAPIRESB-MATERIAL, "   
lv_plant  TYPE BAPIRESB-PLANT, "   
lt_control_record  TYPE STANDARD TABLE OF BBP_CONTROL_RECORD, "   
lv_req_date  TYPE BAPIRESB-REQ_DATE, "   
lv_move_plant  TYPE BAPIRESB-MOVE_PLANT, "   
lv_gr_rcpt  TYPE BAPIRESB-GR_RCPT, "   
lv_closed_items  TYPE BAPIMMPARA-SELECTION, "   SPACE
lv_deleted_items  TYPE BAPIMMPARA-SELECTION, "   SPACE
lv_open_items  TYPE BAPIMMPARA-SELECTION. "   'X'

  CALL FUNCTION 'NOR3_RESERVATION_GETITEMS'  "Get reservation items
    EXPORTING
         RES_NO = lv_res_no
         MATERIAL = lv_material
         PLANT = lv_plant
         REQ_DATE = lv_req_date
         MOVE_PLANT = lv_move_plant
         GR_RCPT = lv_gr_rcpt
         CLOSED_ITEMS = lv_closed_items
         DELETED_ITEMS = lv_deleted_items
         OPEN_ITEMS = lv_open_items
    TABLES
         RESERVATION_ITEMS = lt_reservation_items
         RETURN = lt_return
         CONTROL_RECORD = lt_control_record
. " NOR3_RESERVATION_GETITEMS




ABAP code using 7.40 inline data declarations to call FM NOR3_RESERVATION_GETITEMS

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 RES_NO FROM BAPIRKPF INTO @DATA(ld_res_no).
 
 
 
"SELECT single MATERIAL FROM BAPIRESB INTO @DATA(ld_material).
 
"SELECT single PLANT FROM BAPIRESB INTO @DATA(ld_plant).
 
 
"SELECT single REQ_DATE FROM BAPIRESB INTO @DATA(ld_req_date).
 
"SELECT single MOVE_PLANT FROM BAPIRESB INTO @DATA(ld_move_plant).
 
"SELECT single GR_RCPT FROM BAPIRESB INTO @DATA(ld_gr_rcpt).
 
"SELECT single SELECTION FROM BAPIMMPARA INTO @DATA(ld_closed_items).
DATA(ld_closed_items) = ' '.
 
"SELECT single SELECTION FROM BAPIMMPARA INTO @DATA(ld_deleted_items).
DATA(ld_deleted_items) = ' '.
 
"SELECT single SELECTION FROM BAPIMMPARA INTO @DATA(ld_open_items).
DATA(ld_open_items) = 'X'.
 


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!