SAP COM_PARTNER_BUILD_HEADER_SETUP Function Module for Generiert ein Kopf-Oberflächensetup für die angegebenen BOR-Objekte
COM_PARTNER_BUILD_HEADER_SETUP is a standard com partner build header setup SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Generiert ein Kopf-Oberflächensetup für die angegebenen BOR-Objekte 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 com partner build header setup FM, simply by entering the name COM_PARTNER_BUILD_HEADER_SETUP into the relevant SAP transaction such as SE37 or SE38.
Function Group: COM_PARTNER_CB
Program Name: SAPLCOM_PARTNER_CB
Main Program: SAPLCOM_PARTNER_CB
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function COM_PARTNER_BUILD_HEADER_SETUP 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 'COM_PARTNER_BUILD_HEADER_SETUP'"Generiert ein Kopf-Oberflächensetup für die angegebenen BOR-Objekte.
EXPORTING
* IV_DETERM_PROC = "Identification of a Partner Determination Procedure
* IV_OBJECT = "Object types supported by partner determination
* IT_OBJECTS = "Table for Partner Processing Users
IMPORTING
ES_HEADER_SETUP = "Interface Info for Header Screens for Partner Processing
EXCEPTIONS
GENERATION_NOT_POSSIBLE = 1
IMPORTING Parameters details for COM_PARTNER_BUILD_HEADER_SETUP
IV_DETERM_PROC - Identification of a Partner Determination Procedure
Data type: COMT_PARTNER_DETERM_PROCOptional: Yes
Call by Reference: Yes
IV_OBJECT - Object types supported by partner determination
Data type: COMT_PARTNER_OBJECT_TYPEOptional: Yes
Call by Reference: Yes
IT_OBJECTS - Table for Partner Processing Users
Data type: COMT_PARTNER_OBJECT_TYPE_TABOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for COM_PARTNER_BUILD_HEADER_SETUP
ES_HEADER_SETUP - Interface Info for Header Screens for Partner Processing
Data type: COMT_PARTNER_HEADER_UI_SETUPOptional: No
Call by Reference: Yes
EXCEPTIONS details
GENERATION_NOT_POSSIBLE - Es konnte kein Oberflächensetup generiert werden
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for COM_PARTNER_BUILD_HEADER_SETUP 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_iv_determ_proc | TYPE COMT_PARTNER_DETERM_PROC, " | |||
| lv_es_header_setup | TYPE COMT_PARTNER_HEADER_UI_SETUP, " | |||
| lv_generation_not_possible | TYPE COMT_PARTNER_HEADER_UI_SETUP, " | |||
| lv_iv_object | TYPE COMT_PARTNER_OBJECT_TYPE, " | |||
| lv_it_objects | TYPE COMT_PARTNER_OBJECT_TYPE_TAB. " |
|   CALL FUNCTION 'COM_PARTNER_BUILD_HEADER_SETUP' "Generiert ein Kopf-Oberflächensetup für die angegebenen BOR-Objekte |
| EXPORTING | ||
| IV_DETERM_PROC | = lv_iv_determ_proc | |
| IV_OBJECT | = lv_iv_object | |
| IT_OBJECTS | = lv_it_objects | |
| IMPORTING | ||
| ES_HEADER_SETUP | = lv_es_header_setup | |
| EXCEPTIONS | ||
| GENERATION_NOT_POSSIBLE = 1 | ||
| . " COM_PARTNER_BUILD_HEADER_SETUP | ||
ABAP code using 7.40 inline data declarations to call FM COM_PARTNER_BUILD_HEADER_SETUP
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.Search for further information about these or an SAP related objects