SAP BURS_RELATIONS_CREATE Function Module for









BURS_RELATIONS_CREATE is a standard burs relations create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 burs relations create FM, simply by entering the name BURS_RELATIONS_CREATE into the relevant SAP transaction such as SE37 or SE38.

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



Function BURS_RELATIONS_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 'BURS_RELATIONS_CREATE'"
EXPORTING
* I_RELMODE = 'S' "Session for maint.bus.partner's relationship/role definition
* I_RLTYP = ' ' "Business Partner Role Category
* I_XRT_GEN = ' ' "Indicator: Generic role category
* I_PARTNER2 = "
* I_DATE_FROM = "
* I_DATE_TO = "
* I_XALL = ' ' "
* I_XSAVE = 'X' "Indicator: Business partner safeguards himself
* I_XUPDTASK = 'X' "
* I_CODTETR = 'D' "Indicator: Transfer differentiation type specifications
* I_XRELATION = 'X' "
* I_XROLEDET = ' ' "
* I_PARTNER = ' ' "
* I_PARTNER1 = "

IMPORTING
E_CTRL_REL = "
E_CTRL_RLD = "
E_STATE_REL = "
E_STATE_RLD = "

TABLES
* T_RELTYP = "
* T_RLDTYP = "
* T_DTELEM = "
* T_FLDVL = "
.



IMPORTING Parameters details for BURS_RELATIONS_CREATE

I_RELMODE - Session for maint.bus.partner's relationship/role definition

Data type: BUS050FLDS-RELMODE
Default: 'S'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_RLTYP - Business Partner Role Category

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

I_XRT_GEN - Indicator: Generic role category

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

I_PARTNER2 -

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

I_DATE_FROM -

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

I_DATE_TO -

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

I_XALL -

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

I_XSAVE - Indicator: Business partner safeguards himself

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

I_XUPDTASK -

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

I_CODTETR - Indicator: Transfer differentiation type specifications

Data type: BUS050FLDS-CODTETR
Default: 'D'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_XRELATION -

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

I_XROLEDET -

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

I_PARTNER -

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

I_PARTNER1 -

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

EXPORTING Parameters details for BURS_RELATIONS_CREATE

E_CTRL_REL -

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

E_CTRL_RLD -

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

E_STATE_REL -

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

E_STATE_RLD -

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

TABLES Parameters details for BURS_RELATIONS_CREATE

T_RELTYP -

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

T_RLDTYP -

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

T_DTELEM -

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

T_FLDVL -

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

Copy and paste ABAP code example for BURS_RELATIONS_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:
lt_t_reltyp  TYPE STANDARD TABLE OF BUS050_BTR, "   
lv_i_relmode  TYPE BUS050FLDS-RELMODE, "   'S'
lv_e_ctrl_rel  TYPE BUB01_CTRL_CR_TYPE, "   
lv_i_rltyp  TYPE TBZ0-RLTYP, "   SPACE
lv_i_xrt_gen  TYPE BUS050FLDS-XRT_GEN, "   SPACE
lv_i_partner2  TYPE BUT000-PARTNER, "   
lv_i_date_from  TYPE SY-DATUM, "   
lv_i_date_to  TYPE SY-DATUM, "   
lv_i_xall  TYPE BUS050FLDS-XALL, "   SPACE
lt_t_rldtyp  TYPE STANDARD TABLE OF BUS050_BTR, "   
lv_e_ctrl_rld  TYPE BUB01_CTRL_CR_TYPE, "   
lv_i_xsave  TYPE BUS050FLDS-XSAVE, "   'X'
lt_t_dtelem  TYPE STANDARD TABLE OF BUB01_DTELEM_TAB, "   
lv_e_state_rel  TYPE BUS000FLDS-CHAR1, "   
lt_t_fldvl  TYPE STANDARD TABLE OF BUS0FLDVAL, "   
lv_i_xupdtask  TYPE BOOLE-BOOLE, "   'X'
lv_e_state_rld  TYPE BUS000FLDS-CHAR1, "   
lv_i_codtetr  TYPE BUS050FLDS-CODTETR, "   'D'
lv_i_xrelation  TYPE BUS050FLDS, "   'X'
lv_i_xroledet  TYPE BUS050FLDS, "   ' '
lv_i_partner  TYPE BUT000-PARTNER, "   SPACE
lv_i_partner1  TYPE BUT000-PARTNER. "   

  CALL FUNCTION 'BURS_RELATIONS_CREATE'  "
    EXPORTING
         I_RELMODE = lv_i_relmode
         I_RLTYP = lv_i_rltyp
         I_XRT_GEN = lv_i_xrt_gen
         I_PARTNER2 = lv_i_partner2
         I_DATE_FROM = lv_i_date_from
         I_DATE_TO = lv_i_date_to
         I_XALL = lv_i_xall
         I_XSAVE = lv_i_xsave
         I_XUPDTASK = lv_i_xupdtask
         I_CODTETR = lv_i_codtetr
         I_XRELATION = lv_i_xrelation
         I_XROLEDET = lv_i_xroledet
         I_PARTNER = lv_i_partner
         I_PARTNER1 = lv_i_partner1
    IMPORTING
         E_CTRL_REL = lv_e_ctrl_rel
         E_CTRL_RLD = lv_e_ctrl_rld
         E_STATE_REL = lv_e_state_rel
         E_STATE_RLD = lv_e_state_rld
    TABLES
         T_RELTYP = lt_t_reltyp
         T_RLDTYP = lt_t_rldtyp
         T_DTELEM = lt_t_dtelem
         T_FLDVL = lt_t_fldvl
. " BURS_RELATIONS_CREATE




ABAP code using 7.40 inline data declarations to call FM BURS_RELATIONS_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.

 
"SELECT single RELMODE FROM BUS050FLDS INTO @DATA(ld_i_relmode).
DATA(ld_i_relmode) = 'S'.
 
 
"SELECT single RLTYP FROM TBZ0 INTO @DATA(ld_i_rltyp).
DATA(ld_i_rltyp) = ' '.
 
"SELECT single XRT_GEN FROM BUS050FLDS INTO @DATA(ld_i_xrt_gen).
DATA(ld_i_xrt_gen) = ' '.
 
"SELECT single PARTNER FROM BUT000 INTO @DATA(ld_i_partner2).
 
"SELECT single DATUM FROM SY INTO @DATA(ld_i_date_from).
 
"SELECT single DATUM FROM SY INTO @DATA(ld_i_date_to).
 
"SELECT single XALL FROM BUS050FLDS INTO @DATA(ld_i_xall).
DATA(ld_i_xall) = ' '.
 
 
 
"SELECT single XSAVE FROM BUS050FLDS INTO @DATA(ld_i_xsave).
DATA(ld_i_xsave) = 'X'.
 
 
"SELECT single CHAR1 FROM BUS000FLDS INTO @DATA(ld_e_state_rel).
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_xupdtask).
DATA(ld_i_xupdtask) = 'X'.
 
"SELECT single CHAR1 FROM BUS000FLDS INTO @DATA(ld_e_state_rld).
 
"SELECT single CODTETR FROM BUS050FLDS INTO @DATA(ld_i_codtetr).
DATA(ld_i_codtetr) = 'D'.
 
DATA(ld_i_xrelation) = 'X'.
 
DATA(ld_i_xroledet) = ' '.
 
"SELECT single PARTNER FROM BUT000 INTO @DATA(ld_i_partner).
DATA(ld_i_partner) = ' '.
 
"SELECT single PARTNER FROM BUT000 INTO @DATA(ld_i_partner1).
 


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!