SAP BUP_PARTNER_MAINTAIN Function Module for









BUP_PARTNER_MAINTAIN is a standard bup partner maintain 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 bup partner maintain FM, simply by entering the name BUP_PARTNER_MAINTAIN into the relevant SAP transaction such as SE37 or SE38.

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



Function BUP_PARTNER_MAINTAIN 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 'BUP_PARTNER_MAINTAIN'"
EXPORTING
* I_AKTYP = ' ' "Activity Category
* I_SICHT_START = ' ' "
* I_XARCHIVE = ' ' "
* I_ROLE = "
* I_NAV_DISABLE = ' ' "
* I_LOCATOR_DISABLE = ' ' "
* I_XALLOW_PARTNER_SWITCH = 'X' "
* I_SAVE_TO_LEAVE = ' ' "
* I_ACTION = ' ' "Activity
* I_XINIT = 'X' "
* I_XSAVE = 'X' "
* I_XUPDTASK = 'X' "
* I_APPLI = "Calling application
* I_VARNR = "Screen Seq. Var.
* I_OTITL = "
* I_VARTP_START = ' ' "

IMPORTING
E_STATE = "
E_STATE_FCODE = "
E_HANDLE = "

TABLES
* T_RLTYP = "
* T_CHANGEABLE_BPROLES = "
* T_RLTGR = "Role Category Groupings
* T_SICHT = "
* T_APPLI = "
* T_FLDVL = "
* T_SCRSEL = "Screen Selection
* T_MSG = "Messages
* T_ROLE = "
* T_ROLEGRP = "
.



IMPORTING Parameters details for BUP_PARTNER_MAINTAIN

I_AKTYP - Activity Category

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

I_SICHT_START -

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

I_XARCHIVE -

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

I_ROLE -

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

I_NAV_DISABLE -

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

I_LOCATOR_DISABLE -

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

I_XALLOW_PARTNER_SWITCH -

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

I_SAVE_TO_LEAVE -

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

I_ACTION - Activity

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

I_XINIT -

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

I_XSAVE -

Data type: BUS000FLDS-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_APPLI - Calling application

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

I_VARNR - Screen Seq. Var.

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

I_OTITL -

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

I_VARTP_START -

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

EXPORTING Parameters details for BUP_PARTNER_MAINTAIN

E_STATE -

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

E_STATE_FCODE -

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

E_HANDLE -

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

TABLES Parameters details for BUP_PARTNER_MAINTAIN

T_RLTYP -

Data type: BUS0RLTYP
Optional: Yes
Call by Reference: Yes

T_CHANGEABLE_BPROLES -

Data type: BUP_PARTNERROLES
Optional: Yes
Call by Reference: Yes

T_RLTGR - Role Category Groupings

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

T_SICHT -

Data type: BUS0SICHT
Optional: Yes
Call by Reference: Yes

T_APPLI -

Data type: BUS0APPLI
Optional: Yes
Call by Reference: Yes

T_FLDVL -

Data type: BUS0FLDVAL
Optional: Yes
Call by Reference: Yes

T_SCRSEL - Screen Selection

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

T_MSG - Messages

Data type: BUS0MSG1
Optional: Yes
Call by Reference: Yes

T_ROLE -

Data type: BUP_PARTNERROLES
Optional: Yes
Call by Reference: Yes

T_ROLEGRP -

Data type: BUP_PARTNERROLEGROUPINGS
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for BUP_PARTNER_MAINTAIN 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_state  TYPE BUS000FLDS-CHAR1, "   
lv_i_aktyp  TYPE TBZ0K-AKTYP, "   SPACE
lt_t_rltyp  TYPE STANDARD TABLE OF BUS0RLTYP, "   
lv_i_sicht_start  TYPE TBZ3E-SICHT, "   SPACE
lt_t_changeable_bproles  TYPE STANDARD TABLE OF BUP_PARTNERROLES, "   
lv_i_xarchive  TYPE BOOLE-BOOLE, "   SPACE
lv_i_role  TYPE TB003-ROLE, "   
lv_i_nav_disable  TYPE BOOLE-BOOLE, "   SPACE
lv_i_locator_disable  TYPE BOOLE-BOOLE, "   SPACE
lv_i_xallow_partner_switch  TYPE BOOLE-BOOLE, "   'X'
lv_i_save_to_leave  TYPE BOOLE-BOOLE, "   SPACE
lt_t_rltgr  TYPE STANDARD TABLE OF BUS0RLTGR, "   
lv_i_action  TYPE TBZ0M-ACTION, "   SPACE
lv_e_state_fcode  TYPE BUS000FLDS-CHAR1, "   
lv_i_xinit  TYPE BUS000FLDS-CHAR1, "   'X'
lt_t_sicht  TYPE STANDARD TABLE OF BUS0SICHT, "   
lv_e_handle  TYPE BUSSKEYVAL-VALINT, "   
lv_i_xsave  TYPE BUS000FLDS-XSAVE, "   'X'
lt_t_appli  TYPE STANDARD TABLE OF BUS0APPLI, "   
lt_t_fldvl  TYPE STANDARD TABLE OF BUS0FLDVAL, "   
lv_i_xupdtask  TYPE BOOLE-BOOLE, "   'X'
lv_i_appli  TYPE TBZ0A-APPLI, "   
lt_t_scrsel  TYPE STANDARD TABLE OF BUS0SCRSEL, "   
lt_t_msg  TYPE STANDARD TABLE OF BUS0MSG1, "   
lv_i_varnr  TYPE TBZ3-VARNR, "   
lt_t_role  TYPE STANDARD TABLE OF BUP_PARTNERROLES, "   
lv_i_otitl  TYPE TBZ1T-OTITL, "   
lt_t_rolegrp  TYPE STANDARD TABLE OF BUP_PARTNERROLEGROUPINGS, "   
lv_i_vartp_start  TYPE TBZ3L-VARTP. "   SPACE

  CALL FUNCTION 'BUP_PARTNER_MAINTAIN'  "
    EXPORTING
         I_AKTYP = lv_i_aktyp
         I_SICHT_START = lv_i_sicht_start
         I_XARCHIVE = lv_i_xarchive
         I_ROLE = lv_i_role
         I_NAV_DISABLE = lv_i_nav_disable
         I_LOCATOR_DISABLE = lv_i_locator_disable
         I_XALLOW_PARTNER_SWITCH = lv_i_xallow_partner_switch
         I_SAVE_TO_LEAVE = lv_i_save_to_leave
         I_ACTION = lv_i_action
         I_XINIT = lv_i_xinit
         I_XSAVE = lv_i_xsave
         I_XUPDTASK = lv_i_xupdtask
         I_APPLI = lv_i_appli
         I_VARNR = lv_i_varnr
         I_OTITL = lv_i_otitl
         I_VARTP_START = lv_i_vartp_start
    IMPORTING
         E_STATE = lv_e_state
         E_STATE_FCODE = lv_e_state_fcode
         E_HANDLE = lv_e_handle
    TABLES
         T_RLTYP = lt_t_rltyp
         T_CHANGEABLE_BPROLES = lt_t_changeable_bproles
         T_RLTGR = lt_t_rltgr
         T_SICHT = lt_t_sicht
         T_APPLI = lt_t_appli
         T_FLDVL = lt_t_fldvl
         T_SCRSEL = lt_t_scrsel
         T_MSG = lt_t_msg
         T_ROLE = lt_t_role
         T_ROLEGRP = lt_t_rolegrp
. " BUP_PARTNER_MAINTAIN




ABAP code using 7.40 inline data declarations to call FM BUP_PARTNER_MAINTAIN

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 CHAR1 FROM BUS000FLDS INTO @DATA(ld_e_state).
 
"SELECT single AKTYP FROM TBZ0K INTO @DATA(ld_i_aktyp).
DATA(ld_i_aktyp) = ' '.
 
 
"SELECT single SICHT FROM TBZ3E INTO @DATA(ld_i_sicht_start).
DATA(ld_i_sicht_start) = ' '.
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_xarchive).
DATA(ld_i_xarchive) = ' '.
 
"SELECT single ROLE FROM TB003 INTO @DATA(ld_i_role).
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_nav_disable).
DATA(ld_i_nav_disable) = ' '.
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_locator_disable).
DATA(ld_i_locator_disable) = ' '.
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_xallow_partner_switch).
DATA(ld_i_xallow_partner_switch) = 'X'.
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_save_to_leave).
DATA(ld_i_save_to_leave) = ' '.
 
 
"SELECT single ACTION FROM TBZ0M INTO @DATA(ld_i_action).
DATA(ld_i_action) = ' '.
 
"SELECT single CHAR1 FROM BUS000FLDS INTO @DATA(ld_e_state_fcode).
 
"SELECT single CHAR1 FROM BUS000FLDS INTO @DATA(ld_i_xinit).
DATA(ld_i_xinit) = 'X'.
 
 
"SELECT single VALINT FROM BUSSKEYVAL INTO @DATA(ld_e_handle).
 
"SELECT single XSAVE FROM BUS000FLDS INTO @DATA(ld_i_xsave).
DATA(ld_i_xsave) = 'X'.
 
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_xupdtask).
DATA(ld_i_xupdtask) = 'X'.
 
"SELECT single APPLI FROM TBZ0A INTO @DATA(ld_i_appli).
 
 
 
"SELECT single VARNR FROM TBZ3 INTO @DATA(ld_i_varnr).
 
 
"SELECT single OTITL FROM TBZ1T INTO @DATA(ld_i_otitl).
 
 
"SELECT single VARTP FROM TBZ3L INTO @DATA(ld_i_vartp_start).
DATA(ld_i_vartp_start) = ' '.
 


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!