SAP OIF_PBL_CD_SET_NEW_DATA Function Module for Store the new fields of a Business location for change doc. processing









OIF_PBL_CD_SET_NEW_DATA is a standard oif pbl cd set new data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Store the new fields of a Business location for change doc. processing 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 oif pbl cd set new data FM, simply by entering the name OIF_PBL_CD_SET_NEW_DATA into the relevant SAP transaction such as SE37 or SE38.

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



Function OIF_PBL_CD_SET_NEW_DATA 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 'OIF_PBL_CD_SET_NEW_DATA'"Store the new fields of a Business location for change doc. processing
EXPORTING
I_OIFSPBL = "Business location master
* I_LEVEL = 'G' "
I_ADRC = "Business location address
I_OIFOCSKS = "Object link - cost center
I_OIFOCEPC = "Object link - profit center
I_OIFOANLA = "Object link - asset
I_OIFOIFLO = "Object link - functional location
I_OIFOT001W = "Object link - plant
I_OIFOT001L = "Object link - storage location
I_OIRBOT001L = "

TABLES
T_OIFOPROJ = "Object link - project
T_OIFOCOAS = "Object link - work order
T_OIFBBP1 = "Partner roles - business partner
T_OIRBBP1PF = "Location partner role SD partner functions (IS-Oil SSR)
.




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_SAPLOIFD_701 Location check: before saving changes

IMPORTING Parameters details for OIF_PBL_CD_SET_NEW_DATA

I_OIFSPBL - Business location master

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

I_LEVEL -

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

I_ADRC - Business location address

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

I_OIFOCSKS - Object link - cost center

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

I_OIFOCEPC - Object link - profit center

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

I_OIFOANLA - Object link - asset

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

I_OIFOIFLO - Object link - functional location

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

I_OIFOT001W - Object link - plant

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

I_OIFOT001L - Object link - storage location

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

I_OIRBOT001L -

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

TABLES Parameters details for OIF_PBL_CD_SET_NEW_DATA

T_OIFOPROJ - Object link - project

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

T_OIFOCOAS - Object link - work order

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

T_OIFBBP1 - Partner roles - business partner

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

T_OIRBBP1PF - Location partner role SD partner functions (IS-Oil SSR)

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

Copy and paste ABAP code example for OIF_PBL_CD_SET_NEW_DATA 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_oifspbl  TYPE ROIFSPBL, "   
lt_t_oifoproj  TYPE STANDARD TABLE OF ROIFOPROJ, "   
lv_i_level  TYPE OIFA_LEVEL, "   'G'
lv_i_adrc  TYPE ADRC, "   
lt_t_oifocoas  TYPE STANDARD TABLE OF ROIFOCOAS, "   
lt_t_oifbbp1  TYPE STANDARD TABLE OF ROIFBBP1, "   
lv_i_oifocsks  TYPE ROIFOCSKS, "   
lv_i_oifocepc  TYPE ROIFOCEPC, "   
lt_t_oirbbp1pf  TYPE STANDARD TABLE OF ROIRBBP1PF, "   
lv_i_oifoanla  TYPE ROIFOANLA, "   
lv_i_oifoiflo  TYPE ROIFOIFLO, "   
lv_i_oifot001w  TYPE ROIFOT001W, "   
lv_i_oifot001l  TYPE ROIFOT001L, "   
lv_i_oirbot001l  TYPE ROIRBOMMT001L. "   

  CALL FUNCTION 'OIF_PBL_CD_SET_NEW_DATA'  "Store the new fields of a Business location for change doc. processing
    EXPORTING
         I_OIFSPBL = lv_i_oifspbl
         I_LEVEL = lv_i_level
         I_ADRC = lv_i_adrc
         I_OIFOCSKS = lv_i_oifocsks
         I_OIFOCEPC = lv_i_oifocepc
         I_OIFOANLA = lv_i_oifoanla
         I_OIFOIFLO = lv_i_oifoiflo
         I_OIFOT001W = lv_i_oifot001w
         I_OIFOT001L = lv_i_oifot001l
         I_OIRBOT001L = lv_i_oirbot001l
    TABLES
         T_OIFOPROJ = lt_t_oifoproj
         T_OIFOCOAS = lt_t_oifocoas
         T_OIFBBP1 = lt_t_oifbbp1
         T_OIRBBP1PF = lt_t_oirbbp1pf
. " OIF_PBL_CD_SET_NEW_DATA




ABAP code using 7.40 inline data declarations to call FM OIF_PBL_CD_SET_NEW_DATA

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_level) = 'G'.
 
 
 
 
 
 
 
 
 
 
 
 


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!