SAP FTB_BUPA_DARK_MAINTAIN_INTERN Function Module for Create/Link Business Partner with Known Vendor Data
FTB_BUPA_DARK_MAINTAIN_INTERN is a standard ftb bupa dark maintain intern SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Create/Link Business Partner with Known Vendor Data 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 ftb bupa dark maintain intern FM, simply by entering the name FTB_BUPA_DARK_MAINTAIN_INTERN into the relevant SAP transaction such as SE37 or SE38.
Function Group: FTBP_DARK
Program Name: SAPLFTBP_DARK
Main Program: SAPLFTBP_DARK
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FTB_BUPA_DARK_MAINTAIN_INTERN 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 'FTB_BUPA_DARK_MAINTAIN_INTERN'"Create/Link Business Partner with Known Vendor Data.
EXPORTING
I_AKTYP = "Activity Type
* I_TYPE = "Business Partner Category
* I_BPKIND = "Business Partner Type
* I_GROUP = "Business Partner Grouping
* I_RLTYP = "BP role category
* I_RLTYP2 = "BP role category
* I_RLTYP3 = "BP role category
* I_RLTYP4 = "BP role category
* I_RLTYP5 = "BP role category
* I_RLTYP6 = "BP role category
* I_RLTYP7 = "BP role category
* I_XUPDTASK = ' ' "Indicator: Save by Updating
* I_RLTYP8 = "BP role category
* I_RLTYP9 = "BP role category
* I_ROLE1 = "Business Partner Role
* I_ROLE2 = "Business Partner Role
* I_ROLE3 = "Business Partner Role
* I_ROLE4 = "Business Partner Role
* I_ROLE5 = "Business Partner Role
* I_ROLE6 = "Business Partner Role
* I_ROLE7 = "Business Partner Role
* I_ROLE8 = "Business Partner Role
* I_XCOMMIT = 'X' "Kennzeichen: Commit Work durchführen
* I_ROLE9 = "Business Partner Role
* I_VALID_FROM_1 = "Valid From Date of a BP Role (YYYYMMDD)
* I_VALID_TO_1 = "Valid To Date of a BP Role (YYYYMMDD)
* I_VALID_FROM_2 = "Valid From Date of a BP Role (YYYYMMDD)
* I_VALID_TO_2 = "Valid To Date of a BP Role (YYYYMMDD)
* I_VALID_FROM_3 = "Valid From Date of a BP Role (YYYYMMDD)
* I_VALID_TO_3 = "Valid To Date of a BP Role (YYYYMMDD)
* I_VALID_FROM_4 = "Valid From Date of a BP Role (YYYYMMDD)
* I_VALID_TO_4 = "Valid To Date of a BP Role (YYYYMMDD)
* I_VALID_FROM_5 = "Valid From Date of a BP Role (YYYYMMDD)
* I_XCHDOC = 'X' "Identifier: Create Change Documents
* I_VALID_TO_5 = "Valid To Date of a BP Role (YYYYMMDD)
* I_VALID_FROM_6 = "Valid From Date of a BP Role (YYYYMMDD)
* I_VALID_TO_6 = "Valid To Date of a BP Role (YYYYMMDD)
* I_VALID_FROM_7 = "Valid From Date of a BP Role (YYYYMMDD)
* I_VALID_TO_7 = "Valid To Date of a BP Role (YYYYMMDD)
* I_VALID_FROM_8 = "Valid From Date of a BP Role (YYYYMMDD)
* I_VALID_TO_8 = "Valid To Date of a BP Role (YYYYMMDD)
* I_VALID_FROM_9 = "Valid From Date of a BP Role (YYYYMMDD)
* I_VALID_TO_9 = "Valid To Date of a BP Role (YYYYMMDD)
* I_VALDT = "Validity Date of Changes (Direct Input)
* I_XBAPI = ' ' "Kennzeichen: Aufruf durch BAPI
* I_BUKRS = "Company Code
* I_CORTYP = "Correspondence Type
* I_BUT000 = "BP: General Data (Direct Input)
* I_BUT001 = "BP: General data II (direct input)
* I_BP001 = "Business Partner: Treasury Attributes, General Data
* I_BP1010 = "Business partner: Treasury attributes, credit standing data
* I_BP1020 = "Business partner: Treasury attributes, fiscal data
* I_BP1030 = "Bus. partner: Treasury attributes, reporting data
* I_BP1040 = "Business partner: Treasury attributes, CoCd reporting data
* I_BP1050 = "Business Partner: Treasury Attributes Partner Company Code
* I_XDLVE2_ON_COMMIT = ' ' "Kennzeichen: DLVE2 ausführen ON COMMIT
* I_BP3000 = "Business Partner: Treasury Attributes, Additional Data
* I_XSIMU = "Simulation für Plausibilitätsprüfungen
* I_XDLVE2_ON_ROLLBACK = ' ' "Kennzeichen: DLVE2 ausführen ON Rollback
* I_PARTNER = "Business Partner Number
* I_BPEXT = "Business Partner Number in External System
IMPORTING
E_XERROR = "Single-Character Flag
TABLES
* T_BUT0BK = "Bank Details
* T_VTBSTA3 = "Business Partner: Treasury Attributes SI Payment Details
* T_VTBSTA4 = "Business Partner: Treasury Attributes SI Payment Details
* T_DATA = "Incoming Data Records
* T_MESSAGE = "Messages
* T_KEYVALUE = "Key Field Values
* T_BKK21 = "Geschäftspartner: Aliasnamen
* T_BPID001 = "Direct Input Structure: ID Numbers for Business Partner
* T_BP3010 = "Business Partner: Additional Data
* T_BUT021_FS = "BP: Address usage transfer structure (direct input)
* T_BUT0ID = "BP: ID Numbers (Direct Input)
* T_BUT020 = "Adressen plus Kommunikation
* T_BUT0IS = "BP: Industry Numbers (Direct Input)
* T_BUT0CC = "BP: Payment Cards (Direct Input)
* T_BUT021 = "Address Usages
* T_BP011 = "Business Partner: Treasury Attributes, Employment Data
* T_BP021 = "Business partner: Treasury attributes, fiscal year data
* T_VTBSTA1 = "Business Partner: Treasury Attributes SI Payment Details
* T_VTBSTC1 = "Allocation of Payment Details as Standing Instructions
* T_VTBSTA2 = "Business Partner: Treasury Attributes SI Payment Details
IMPORTING Parameters details for FTB_BUPA_DARK_MAINTAIN_INTERN
I_AKTYP - Activity Type
Data type: TBZ0K-AKTYPOptional: No
Call by Reference: No ( called with pass by value option)
I_TYPE - Business Partner Category
Data type: BUT000-TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_BPKIND - Business Partner Type
Data type: BUT000-BPKINDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_GROUP - Business Partner Grouping
Data type: BUT000-BU_GROUPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_RLTYP - BP role category
Data type: BU_PARTNERROLECATOptional: Yes
Call by Reference: No ( called with pass by value option)
I_RLTYP2 - BP role category
Data type: BU_PARTNERROLECATOptional: Yes
Call by Reference: No ( called with pass by value option)
I_RLTYP3 - BP role category
Data type: BU_PARTNERROLECATOptional: Yes
Call by Reference: No ( called with pass by value option)
I_RLTYP4 - BP role category
Data type: BU_PARTNERROLECATOptional: Yes
Call by Reference: No ( called with pass by value option)
I_RLTYP5 - BP role category
Data type: BU_PARTNERROLECATOptional: Yes
Call by Reference: No ( called with pass by value option)
I_RLTYP6 - BP role category
Data type: BU_PARTNERROLECATOptional: Yes
Call by Reference: No ( called with pass by value option)
I_RLTYP7 - BP role category
Data type: BU_PARTNERROLECATOptional: Yes
Call by Reference: No ( called with pass by value option)
I_XUPDTASK - Indicator: Save by Updating
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_RLTYP8 - BP role category
Data type: BU_PARTNERROLECATOptional: Yes
Call by Reference: No ( called with pass by value option)
I_RLTYP9 - BP role category
Data type: BU_PARTNERROLECATOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ROLE1 - Business Partner Role
Data type: BU_PARTNERROLEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ROLE2 - Business Partner Role
Data type: BU_PARTNERROLEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ROLE3 - Business Partner Role
Data type: BU_PARTNERROLEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ROLE4 - Business Partner Role
Data type: BU_PARTNERROLEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ROLE5 - Business Partner Role
Data type: BU_PARTNERROLEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ROLE6 - Business Partner Role
Data type: BU_PARTNERROLEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ROLE7 - Business Partner Role
Data type: BU_PARTNERROLEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ROLE8 - Business Partner Role
Data type: BU_PARTNERROLEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_XCOMMIT - Kennzeichen: Commit Work durchführen
Data type: BOOLE-BOOLEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ROLE9 - Business Partner Role
Data type: BU_PARTNERROLEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_VALID_FROM_1 - Valid From Date of a BP Role (YYYYMMDD)
Data type: BU_ROLE_VALID_FROM_DIOptional: Yes
Call by Reference: No ( called with pass by value option)
I_VALID_TO_1 - Valid To Date of a BP Role (YYYYMMDD)
Data type: BU_ROLE_VALID_TO_DIOptional: Yes
Call by Reference: No ( called with pass by value option)
I_VALID_FROM_2 - Valid From Date of a BP Role (YYYYMMDD)
Data type: BU_ROLE_VALID_FROM_DIOptional: Yes
Call by Reference: No ( called with pass by value option)
I_VALID_TO_2 - Valid To Date of a BP Role (YYYYMMDD)
Data type: BU_ROLE_VALID_TO_DIOptional: Yes
Call by Reference: No ( called with pass by value option)
I_VALID_FROM_3 - Valid From Date of a BP Role (YYYYMMDD)
Data type: BU_ROLE_VALID_FROM_DIOptional: Yes
Call by Reference: No ( called with pass by value option)
I_VALID_TO_3 - Valid To Date of a BP Role (YYYYMMDD)
Data type: BU_ROLE_VALID_TO_DIOptional: Yes
Call by Reference: No ( called with pass by value option)
I_VALID_FROM_4 - Valid From Date of a BP Role (YYYYMMDD)
Data type: BU_ROLE_VALID_FROM_DIOptional: Yes
Call by Reference: No ( called with pass by value option)
I_VALID_TO_4 - Valid To Date of a BP Role (YYYYMMDD)
Data type: BU_ROLE_VALID_TO_DIOptional: Yes
Call by Reference: No ( called with pass by value option)
I_VALID_FROM_5 - Valid From Date of a BP Role (YYYYMMDD)
Data type: BU_ROLE_VALID_FROM_DIOptional: Yes
Call by Reference: No ( called with pass by value option)
I_XCHDOC - Identifier: Create Change Documents
Data type: BOOLE-BOOLEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_VALID_TO_5 - Valid To Date of a BP Role (YYYYMMDD)
Data type: BU_ROLE_VALID_TO_DIOptional: Yes
Call by Reference: No ( called with pass by value option)
I_VALID_FROM_6 - Valid From Date of a BP Role (YYYYMMDD)
Data type: BU_ROLE_VALID_FROM_DIOptional: Yes
Call by Reference: No ( called with pass by value option)
I_VALID_TO_6 - Valid To Date of a BP Role (YYYYMMDD)
Data type: BU_ROLE_VALID_TO_DIOptional: Yes
Call by Reference: No ( called with pass by value option)
I_VALID_FROM_7 - Valid From Date of a BP Role (YYYYMMDD)
Data type: BU_ROLE_VALID_FROM_DIOptional: Yes
Call by Reference: No ( called with pass by value option)
I_VALID_TO_7 - Valid To Date of a BP Role (YYYYMMDD)
Data type: BU_ROLE_VALID_TO_DIOptional: Yes
Call by Reference: No ( called with pass by value option)
I_VALID_FROM_8 - Valid From Date of a BP Role (YYYYMMDD)
Data type: BU_ROLE_VALID_FROM_DIOptional: Yes
Call by Reference: No ( called with pass by value option)
I_VALID_TO_8 - Valid To Date of a BP Role (YYYYMMDD)
Data type: BU_ROLE_VALID_TO_DIOptional: Yes
Call by Reference: No ( called with pass by value option)
I_VALID_FROM_9 - Valid From Date of a BP Role (YYYYMMDD)
Data type: BU_ROLE_VALID_FROM_DIOptional: Yes
Call by Reference: No ( called with pass by value option)
I_VALID_TO_9 - Valid To Date of a BP Role (YYYYMMDD)
Data type: BU_ROLE_VALID_TO_DIOptional: Yes
Call by Reference: No ( called with pass by value option)
I_VALDT - Validity Date of Changes (Direct Input)
Data type: BUS0DI2-VALDTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_XBAPI - Kennzeichen: Aufruf durch BAPI
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_BUKRS - Company Code
Data type: T001-BUKRSOptional: Yes
Call by Reference: No ( called with pass by value option)
I_CORTYP - Correspondence Type
Data type: VTB_ST2-CORTYPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_BUT000 - BP: General Data (Direct Input)
Data type: BUS000_DIOptional: Yes
Call by Reference: No ( called with pass by value option)
I_BUT001 - BP: General data II (direct input)
Data type: BUS001_DIOptional: Yes
Call by Reference: No ( called with pass by value option)
I_BP001 - Business Partner: Treasury Attributes, General Data
Data type: BPA001_DIOptional: Yes
Call by Reference: No ( called with pass by value option)
I_BP1010 - Business partner: Treasury attributes, credit standing data
Data type: BPA1010_DIOptional: Yes
Call by Reference: No ( called with pass by value option)
I_BP1020 - Business partner: Treasury attributes, fiscal data
Data type: BPA1020_DIOptional: Yes
Call by Reference: No ( called with pass by value option)
I_BP1030 - Bus. partner: Treasury attributes, reporting data
Data type: BPA1030_DIOptional: Yes
Call by Reference: No ( called with pass by value option)
I_BP1040 - Business partner: Treasury attributes, CoCd reporting data
Data type: BPA1040_DIOptional: Yes
Call by Reference: No ( called with pass by value option)
I_BP1050 - Business Partner: Treasury Attributes Partner Company Code
Data type: BPA1050_DIOptional: Yes
Call by Reference: No ( called with pass by value option)
I_XDLVE2_ON_COMMIT - Kennzeichen: DLVE2 ausführen ON COMMIT
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_BP3000 - Business Partner: Treasury Attributes, Additional Data
Data type: BPA3000_DIOptional: Yes
Call by Reference: No ( called with pass by value option)
I_XSIMU - Simulation für Plausibilitätsprüfungen
Data type: BOOLE-BOOLEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_XDLVE2_ON_ROLLBACK - Kennzeichen: DLVE2 ausführen ON Rollback
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_PARTNER - Business Partner Number
Data type: BUT000-PARTNEROptional: Yes
Call by Reference: No ( called with pass by value option)
I_BPEXT - Business Partner Number in External System
Data type: BUT000-BPEXTOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FTB_BUPA_DARK_MAINTAIN_INTERN
E_XERROR - Single-Character Flag
Data type: BUS000FLDS-CHAR1Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for FTB_BUPA_DARK_MAINTAIN_INTERN
T_BUT0BK - Bank Details
Data type: BUS0BK_DIOptional: Yes
Call by Reference: No ( called with pass by value option)
T_VTBSTA3 - Business Partner: Treasury Attributes SI Payment Details
Data type: BPAVTBSTA3_DIOptional: Yes
Call by Reference: No ( called with pass by value option)
T_VTBSTA4 - Business Partner: Treasury Attributes SI Payment Details
Data type: BPAVTBSTA4_DIOptional: Yes
Call by Reference: No ( called with pass by value option)
T_DATA - Incoming Data Records
Data type: BUSSDIOptional: Yes
Call by Reference: No ( called with pass by value option)
T_MESSAGE - Messages
Data type: BUS0MSG1Optional: Yes
Call by Reference: No ( called with pass by value option)
T_KEYVALUE - Key Field Values
Data type: BUSSKEYVALOptional: Yes
Call by Reference: No ( called with pass by value option)
T_BKK21 - Geschäftspartner: Aliasnamen
Data type: BKKA21_DIOptional: Yes
Call by Reference: Yes
T_BPID001 - Direct Input Structure: ID Numbers for Business Partner
Data type: BPID001_DIOptional: Yes
Call by Reference: Yes
T_BP3010 - Business Partner: Additional Data
Data type: BP3010_DIOptional: Yes
Call by Reference: Yes
T_BUT021_FS - BP: Address usage transfer structure (direct input)
Data type: BUS021FS_DIOptional: Yes
Call by Reference: Yes
T_BUT0ID - BP: ID Numbers (Direct Input)
Data type: BUS0ID_DIOptional: Yes
Call by Reference: Yes
T_BUT020 - Adressen plus Kommunikation
Data type: BUS020_DIOptional: Yes
Call by Reference: No ( called with pass by value option)
T_BUT0IS - BP: Industry Numbers (Direct Input)
Data type: BUS0IS_DIOptional: Yes
Call by Reference: Yes
T_BUT0CC - BP: Payment Cards (Direct Input)
Data type: BUS0CC_DIOptional: Yes
Call by Reference: No ( called with pass by value option)
T_BUT021 - Address Usages
Data type: BUS021_DIOptional: Yes
Call by Reference: No ( called with pass by value option)
T_BP011 - Business Partner: Treasury Attributes, Employment Data
Data type: BPA011_DIOptional: Yes
Call by Reference: No ( called with pass by value option)
T_BP021 - Business partner: Treasury attributes, fiscal year data
Data type: BPA021_DIOptional: Yes
Call by Reference: No ( called with pass by value option)
T_VTBSTA1 - Business Partner: Treasury Attributes SI Payment Details
Data type: BPAVTBSTA1_DIOptional: Yes
Call by Reference: No ( called with pass by value option)
T_VTBSTC1 - Allocation of Payment Details as Standing Instructions
Data type: BPAVTBSTC1_DIOptional: Yes
Call by Reference: No ( called with pass by value option)
T_VTBSTA2 - Business Partner: Treasury Attributes SI Payment Details
Data type: BPAVTBSTA2_DIOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FTB_BUPA_DARK_MAINTAIN_INTERN 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_aktyp | TYPE TBZ0K-AKTYP, " | |||
| lv_e_xerror | TYPE BUS000FLDS-CHAR1, " | |||
| lt_t_but0bk | TYPE STANDARD TABLE OF BUS0BK_DI, " | |||
| lv_i_type | TYPE BUT000-TYPE, " | |||
| lt_t_vtbsta3 | TYPE STANDARD TABLE OF BPAVTBSTA3_DI, " | |||
| lv_i_bpkind | TYPE BUT000-BPKIND, " | |||
| lt_t_vtbsta4 | TYPE STANDARD TABLE OF BPAVTBSTA4_DI, " | |||
| lt_t_data | TYPE STANDARD TABLE OF BUSSDI, " | |||
| lv_i_group | TYPE BUT000-BU_GROUP, " | |||
| lv_i_rltyp | TYPE BU_PARTNERROLECAT, " | |||
| lt_t_message | TYPE STANDARD TABLE OF BUS0MSG1, " | |||
| lv_i_rltyp2 | TYPE BU_PARTNERROLECAT, " | |||
| lt_t_keyvalue | TYPE STANDARD TABLE OF BUSSKEYVAL, " | |||
| lt_t_bkk21 | TYPE STANDARD TABLE OF BKKA21_DI, " | |||
| lv_i_rltyp3 | TYPE BU_PARTNERROLECAT, " | |||
| lv_i_rltyp4 | TYPE BU_PARTNERROLECAT, " | |||
| lt_t_bpid001 | TYPE STANDARD TABLE OF BPID001_DI, " | |||
| lv_i_rltyp5 | TYPE BU_PARTNERROLECAT, " | |||
| lt_t_bp3010 | TYPE STANDARD TABLE OF BP3010_DI, " | |||
| lv_i_rltyp6 | TYPE BU_PARTNERROLECAT, " | |||
| lt_t_but021_fs | TYPE STANDARD TABLE OF BUS021FS_DI, " | |||
| lv_i_rltyp7 | TYPE BU_PARTNERROLECAT, " | |||
| lt_t_but0id | TYPE STANDARD TABLE OF BUS0ID_DI, " | |||
| lt_t_but020 | TYPE STANDARD TABLE OF BUS020_DI, " | |||
| lv_i_xupdtask | TYPE BOOLE-BOOLE, " SPACE | |||
| lv_i_rltyp8 | TYPE BU_PARTNERROLECAT, " | |||
| lt_t_but0is | TYPE STANDARD TABLE OF BUS0IS_DI, " | |||
| lv_i_rltyp9 | TYPE BU_PARTNERROLECAT, " | |||
| lv_i_role1 | TYPE BU_PARTNERROLE, " | |||
| lv_i_role2 | TYPE BU_PARTNERROLE, " | |||
| lv_i_role3 | TYPE BU_PARTNERROLE, " | |||
| lv_i_role4 | TYPE BU_PARTNERROLE, " | |||
| lv_i_role5 | TYPE BU_PARTNERROLE, " | |||
| lv_i_role6 | TYPE BU_PARTNERROLE, " | |||
| lv_i_role7 | TYPE BU_PARTNERROLE, " | |||
| lv_i_role8 | TYPE BU_PARTNERROLE, " | |||
| lt_t_but0cc | TYPE STANDARD TABLE OF BUS0CC_DI, " | |||
| lv_i_xcommit | TYPE BOOLE-BOOLE, " 'X' | |||
| lv_i_role9 | TYPE BU_PARTNERROLE, " | |||
| lv_i_valid_from_1 | TYPE BU_ROLE_VALID_FROM_DI, " | |||
| lv_i_valid_to_1 | TYPE BU_ROLE_VALID_TO_DI, " | |||
| lv_i_valid_from_2 | TYPE BU_ROLE_VALID_FROM_DI, " | |||
| lv_i_valid_to_2 | TYPE BU_ROLE_VALID_TO_DI, " | |||
| lv_i_valid_from_3 | TYPE BU_ROLE_VALID_FROM_DI, " | |||
| lv_i_valid_to_3 | TYPE BU_ROLE_VALID_TO_DI, " | |||
| lv_i_valid_from_4 | TYPE BU_ROLE_VALID_FROM_DI, " | |||
| lv_i_valid_to_4 | TYPE BU_ROLE_VALID_TO_DI, " | |||
| lv_i_valid_from_5 | TYPE BU_ROLE_VALID_FROM_DI, " | |||
| lv_i_xchdoc | TYPE BOOLE-BOOLE, " 'X' | |||
| lt_t_but021 | TYPE STANDARD TABLE OF BUS021_DI, " | |||
| lv_i_valid_to_5 | TYPE BU_ROLE_VALID_TO_DI, " | |||
| lv_i_valid_from_6 | TYPE BU_ROLE_VALID_FROM_DI, " | |||
| lv_i_valid_to_6 | TYPE BU_ROLE_VALID_TO_DI, " | |||
| lv_i_valid_from_7 | TYPE BU_ROLE_VALID_FROM_DI, " | |||
| lv_i_valid_to_7 | TYPE BU_ROLE_VALID_TO_DI, " | |||
| lv_i_valid_from_8 | TYPE BU_ROLE_VALID_FROM_DI, " | |||
| lv_i_valid_to_8 | TYPE BU_ROLE_VALID_TO_DI, " | |||
| lv_i_valid_from_9 | TYPE BU_ROLE_VALID_FROM_DI, " | |||
| lv_i_valid_to_9 | TYPE BU_ROLE_VALID_TO_DI, " | |||
| lv_i_valdt | TYPE BUS0DI2-VALDT, " | |||
| lv_i_xbapi | TYPE BOOLE-BOOLE, " SPACE | |||
| lt_t_bp011 | TYPE STANDARD TABLE OF BPA011_DI, " | |||
| lv_i_bukrs | TYPE T001-BUKRS, " | |||
| lv_i_cortyp | TYPE VTB_ST2-CORTYP, " | |||
| lv_i_but000 | TYPE BUS000_DI, " | |||
| lv_i_but001 | TYPE BUS001_DI, " | |||
| lv_i_bp001 | TYPE BPA001_DI, " | |||
| lv_i_bp1010 | TYPE BPA1010_DI, " | |||
| lv_i_bp1020 | TYPE BPA1020_DI, " | |||
| lv_i_bp1030 | TYPE BPA1030_DI, " | |||
| lv_i_bp1040 | TYPE BPA1040_DI, " | |||
| lv_i_bp1050 | TYPE BPA1050_DI, " | |||
| lt_t_bp021 | TYPE STANDARD TABLE OF BPA021_DI, " | |||
| lv_i_xdlve2_on_commit | TYPE BOOLE-BOOLE, " SPACE | |||
| lv_i_bp3000 | TYPE BPA3000_DI, " | |||
| lv_i_xsimu | TYPE BOOLE-BOOLE, " | |||
| lt_t_vtbsta1 | TYPE STANDARD TABLE OF BPAVTBSTA1_DI, " | |||
| lv_i_xdlve2_on_rollback | TYPE BOOLE-BOOLE, " SPACE | |||
| lv_i_partner | TYPE BUT000-PARTNER, " | |||
| lt_t_vtbstc1 | TYPE STANDARD TABLE OF BPAVTBSTC1_DI, " | |||
| lv_i_bpext | TYPE BUT000-BPEXT, " | |||
| lt_t_vtbsta2 | TYPE STANDARD TABLE OF BPAVTBSTA2_DI. " |
|   CALL FUNCTION 'FTB_BUPA_DARK_MAINTAIN_INTERN' "Create/Link Business Partner with Known Vendor Data |
| EXPORTING | ||
| I_AKTYP | = lv_i_aktyp | |
| I_TYPE | = lv_i_type | |
| I_BPKIND | = lv_i_bpkind | |
| I_GROUP | = lv_i_group | |
| I_RLTYP | = lv_i_rltyp | |
| I_RLTYP2 | = lv_i_rltyp2 | |
| I_RLTYP3 | = lv_i_rltyp3 | |
| I_RLTYP4 | = lv_i_rltyp4 | |
| I_RLTYP5 | = lv_i_rltyp5 | |
| I_RLTYP6 | = lv_i_rltyp6 | |
| I_RLTYP7 | = lv_i_rltyp7 | |
| I_XUPDTASK | = lv_i_xupdtask | |
| I_RLTYP8 | = lv_i_rltyp8 | |
| I_RLTYP9 | = lv_i_rltyp9 | |
| I_ROLE1 | = lv_i_role1 | |
| I_ROLE2 | = lv_i_role2 | |
| I_ROLE3 | = lv_i_role3 | |
| I_ROLE4 | = lv_i_role4 | |
| I_ROLE5 | = lv_i_role5 | |
| I_ROLE6 | = lv_i_role6 | |
| I_ROLE7 | = lv_i_role7 | |
| I_ROLE8 | = lv_i_role8 | |
| I_XCOMMIT | = lv_i_xcommit | |
| I_ROLE9 | = lv_i_role9 | |
| I_VALID_FROM_1 | = lv_i_valid_from_1 | |
| I_VALID_TO_1 | = lv_i_valid_to_1 | |
| I_VALID_FROM_2 | = lv_i_valid_from_2 | |
| I_VALID_TO_2 | = lv_i_valid_to_2 | |
| I_VALID_FROM_3 | = lv_i_valid_from_3 | |
| I_VALID_TO_3 | = lv_i_valid_to_3 | |
| I_VALID_FROM_4 | = lv_i_valid_from_4 | |
| I_VALID_TO_4 | = lv_i_valid_to_4 | |
| I_VALID_FROM_5 | = lv_i_valid_from_5 | |
| I_XCHDOC | = lv_i_xchdoc | |
| I_VALID_TO_5 | = lv_i_valid_to_5 | |
| I_VALID_FROM_6 | = lv_i_valid_from_6 | |
| I_VALID_TO_6 | = lv_i_valid_to_6 | |
| I_VALID_FROM_7 | = lv_i_valid_from_7 | |
| I_VALID_TO_7 | = lv_i_valid_to_7 | |
| I_VALID_FROM_8 | = lv_i_valid_from_8 | |
| I_VALID_TO_8 | = lv_i_valid_to_8 | |
| I_VALID_FROM_9 | = lv_i_valid_from_9 | |
| I_VALID_TO_9 | = lv_i_valid_to_9 | |
| I_VALDT | = lv_i_valdt | |
| I_XBAPI | = lv_i_xbapi | |
| I_BUKRS | = lv_i_bukrs | |
| I_CORTYP | = lv_i_cortyp | |
| I_BUT000 | = lv_i_but000 | |
| I_BUT001 | = lv_i_but001 | |
| I_BP001 | = lv_i_bp001 | |
| I_BP1010 | = lv_i_bp1010 | |
| I_BP1020 | = lv_i_bp1020 | |
| I_BP1030 | = lv_i_bp1030 | |
| I_BP1040 | = lv_i_bp1040 | |
| I_BP1050 | = lv_i_bp1050 | |
| I_XDLVE2_ON_COMMIT | = lv_i_xdlve2_on_commit | |
| I_BP3000 | = lv_i_bp3000 | |
| I_XSIMU | = lv_i_xsimu | |
| I_XDLVE2_ON_ROLLBACK | = lv_i_xdlve2_on_rollback | |
| I_PARTNER | = lv_i_partner | |
| I_BPEXT | = lv_i_bpext | |
| IMPORTING | ||
| E_XERROR | = lv_e_xerror | |
| TABLES | ||
| T_BUT0BK | = lt_t_but0bk | |
| T_VTBSTA3 | = lt_t_vtbsta3 | |
| T_VTBSTA4 | = lt_t_vtbsta4 | |
| T_DATA | = lt_t_data | |
| T_MESSAGE | = lt_t_message | |
| T_KEYVALUE | = lt_t_keyvalue | |
| T_BKK21 | = lt_t_bkk21 | |
| T_BPID001 | = lt_t_bpid001 | |
| T_BP3010 | = lt_t_bp3010 | |
| T_BUT021_FS | = lt_t_but021_fs | |
| T_BUT0ID | = lt_t_but0id | |
| T_BUT020 | = lt_t_but020 | |
| T_BUT0IS | = lt_t_but0is | |
| T_BUT0CC | = lt_t_but0cc | |
| T_BUT021 | = lt_t_but021 | |
| T_BP011 | = lt_t_bp011 | |
| T_BP021 | = lt_t_bp021 | |
| T_VTBSTA1 | = lt_t_vtbsta1 | |
| T_VTBSTC1 | = lt_t_vtbstc1 | |
| T_VTBSTA2 | = lt_t_vtbsta2 | |
| . " FTB_BUPA_DARK_MAINTAIN_INTERN | ||
ABAP code using 7.40 inline data declarations to call FM FTB_BUPA_DARK_MAINTAIN_INTERN
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 AKTYP FROM TBZ0K INTO @DATA(ld_i_aktyp). | ||||
| "SELECT single CHAR1 FROM BUS000FLDS INTO @DATA(ld_e_xerror). | ||||
| "SELECT single TYPE FROM BUT000 INTO @DATA(ld_i_type). | ||||
| "SELECT single BPKIND FROM BUT000 INTO @DATA(ld_i_bpkind). | ||||
| "SELECT single BU_GROUP FROM BUT000 INTO @DATA(ld_i_group). | ||||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_xupdtask). | ||||
| DATA(ld_i_xupdtask) | = ' '. | |||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_xcommit). | ||||
| DATA(ld_i_xcommit) | = 'X'. | |||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_xchdoc). | ||||
| DATA(ld_i_xchdoc) | = 'X'. | |||
| "SELECT single VALDT FROM BUS0DI2 INTO @DATA(ld_i_valdt). | ||||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_xbapi). | ||||
| DATA(ld_i_xbapi) | = ' '. | |||
| "SELECT single BUKRS FROM T001 INTO @DATA(ld_i_bukrs). | ||||
| "SELECT single CORTYP FROM VTB_ST2 INTO @DATA(ld_i_cortyp). | ||||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_xdlve2_on_commit). | ||||
| DATA(ld_i_xdlve2_on_commit) | = ' '. | |||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_xsimu). | ||||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_xdlve2_on_rollback). | ||||
| DATA(ld_i_xdlve2_on_rollback) | = ' '. | |||
| "SELECT single PARTNER FROM BUT000 INTO @DATA(ld_i_partner). | ||||
| "SELECT single BPEXT FROM BUT000 INTO @DATA(ld_i_bpext). | ||||
Search for further information about these or an SAP related objects