SAP BAPI_BUPA_PFCT_SETFUNCTDEFAULT Function Module for SAP BP, BAPI: Set Partner Function as Standard









BAPI_BUPA_PFCT_SETFUNCTDEFAULT is a standard bapi bupa pfct setfunctdefault SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for SAP BP, BAPI: Set Partner Function as Standard 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 bapi bupa pfct setfunctdefault FM, simply by entering the name BAPI_BUPA_PFCT_SETFUNCTDEFAULT into the relevant SAP transaction such as SE37 or SE38.

Function Group: CRM_BUPA_FRG0080_BAPI
Program Name: SAPLCRM_BUPA_FRG0080_BAPI
Main Program: SAPLCRM_BUPA_FRG0080_BAPI
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_BUPA_PFCT_SETFUNCTDEFAULT 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 'BAPI_BUPA_PFCT_SETFUNCTDEFAULT'"SAP BP, BAPI: Set Partner Function as Standard
EXPORTING
BUSINESSPARTNER1 = "Business Partner Number
* SALES_AREA = "BAPI Structure for Sales Area
PARTNERFUNCTION = "Partner Function
BUSINESSPARTNER2 = "Business Partner Number
* STANDARD = 'X' "Indicator Standard Partner in a Partner Function
* IV_SHOW_ALL = 'X' "

TABLES
* RETURN = "Messages
.



IMPORTING Parameters details for BAPI_BUPA_PFCT_SETFUNCTDEFAULT

BUSINESSPARTNER1 - Business Partner Number

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

SALES_AREA - BAPI Structure for Sales Area

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

PARTNERFUNCTION - Partner Function

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

BUSINESSPARTNER2 - Business Partner Number

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

STANDARD - Indicator Standard Partner in a Partner Function

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

IV_SHOW_ALL -

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

TABLES Parameters details for BAPI_BUPA_PFCT_SETFUNCTDEFAULT

RETURN - Messages

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

Copy and paste ABAP code example for BAPI_BUPA_PFCT_SETFUNCTDEFAULT 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_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_businesspartner1  TYPE BAPIBUS1006_RELHEAD-BUSINESSPARTNER1, "   
lv_sales_area  TYPE BAPIBUS1006_SALES_AREA, "   
lv_partnerfunction  TYPE BAPIBUS1006080_BPFUNCTION-PARTNERFUNCTION, "   
lv_businesspartner2  TYPE BAPIBUS1006_RELHEAD-BUSINESSPARTNER2, "   
lv_standard  TYPE BAPIBUS1006080_BPFUNCTION-STANDARD, "   'X'
lv_iv_show_all  TYPE XFELD. "   'X'

  CALL FUNCTION 'BAPI_BUPA_PFCT_SETFUNCTDEFAULT'  "SAP BP, BAPI: Set Partner Function as Standard
    EXPORTING
         BUSINESSPARTNER1 = lv_businesspartner1
         SALES_AREA = lv_sales_area
         PARTNERFUNCTION = lv_partnerfunction
         BUSINESSPARTNER2 = lv_businesspartner2
         STANDARD = lv_standard
         IV_SHOW_ALL = lv_iv_show_all
    TABLES
         RETURN = lt_return
. " BAPI_BUPA_PFCT_SETFUNCTDEFAULT




ABAP code using 7.40 inline data declarations to call FM BAPI_BUPA_PFCT_SETFUNCTDEFAULT

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 BUSINESSPARTNER1 FROM BAPIBUS1006_RELHEAD INTO @DATA(ld_businesspartner1).
 
 
"SELECT single PARTNERFUNCTION FROM BAPIBUS1006080_BPFUNCTION INTO @DATA(ld_partnerfunction).
 
"SELECT single BUSINESSPARTNER2 FROM BAPIBUS1006_RELHEAD INTO @DATA(ld_businesspartner2).
 
"SELECT single STANDARD FROM BAPIBUS1006080_BPFUNCTION INTO @DATA(ld_standard).
DATA(ld_standard) = 'X'.
 
DATA(ld_iv_show_all) = '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!