SAP META_CTR_TRANSFER Function Module for Change contract









META_CTR_TRANSFER is a standard meta ctr transfer SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Change contract 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 meta ctr transfer FM, simply by entering the name META_CTR_TRANSFER into the relevant SAP transaction such as SE37 or SE38.

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



Function META_CTR_TRANSFER 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 'META_CTR_TRANSFER'"Change contract
EXPORTING
* IV_LOGICAL_SYSTEM = "Logisches System
IT_STATUS = "Status
* IT_DIST = "Kontrakt Verteilungsdaten
* IT_TOL = "Toleranzen
* IT_CONDITION = "Tabellentyp Stammkonditionen
* IV_UNLOCK_IND = "Feld zum Ankreuzen
* IV_RECONCILIATION_REQUESTED = "Checkbox
IV_SRC_GUID = "Globally Unique Identifier
* IV_SYSTEM_TYPE = "Systemart
IS_HEADER = "Schnittstelle Kopf-Daten Kontrakt GetDetail-Fall
IT_ITEMS = "Tabellentyp Positionsdaten
IT_ORG_DATA = "Tabellentyp Org-Daten
* IT_TEXT = "Langtexte
IT_PARTNER = "Geschäftspartner
* IT_ATTACH = "KW-Anlagen inkl. Dokument

IMPORTING
ET_MESSAGES = "Fehlermeldungen

TABLES
ET_CONTROL_RECORD = "Steuersatz für META-BAPI-Steuerung
.



IMPORTING Parameters details for META_CTR_TRANSFER

IV_LOGICAL_SYSTEM - Logisches System

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

IT_STATUS - Status

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

IT_DIST - Kontrakt Verteilungsdaten

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

IT_TOL - Toleranzen

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

IT_CONDITION - Tabellentyp Stammkonditionen

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

IV_UNLOCK_IND - Feld zum Ankreuzen

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

IV_RECONCILIATION_REQUESTED - Checkbox

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

IV_SRC_GUID - Globally Unique Identifier

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

IV_SYSTEM_TYPE - Systemart

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

IS_HEADER - Schnittstelle Kopf-Daten Kontrakt GetDetail-Fall

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

IT_ITEMS - Tabellentyp Positionsdaten

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

IT_ORG_DATA - Tabellentyp Org-Daten

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

IT_TEXT - Langtexte

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

IT_PARTNER - Geschäftspartner

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

IT_ATTACH - KW-Anlagen inkl. Dokument

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

EXPORTING Parameters details for META_CTR_TRANSFER

ET_MESSAGES - Fehlermeldungen

Data type: BBPT_PD_MESSAGES
Optional: No
Call by Reference: Yes

TABLES Parameters details for META_CTR_TRANSFER

ET_CONTROL_RECORD - Steuersatz für META-BAPI-Steuerung

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

Copy and paste ABAP code example for META_CTR_TRANSFER 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_et_messages  TYPE BBPT_PD_MESSAGES, "   
lt_et_control_record  TYPE STANDARD TABLE OF BBP_CONTROL_RECORD, "   
lv_iv_logical_system  TYPE LOGSYS, "   
lv_it_status  TYPE BBPT_PDS_STATUS, "   
lv_it_dist  TYPE BBPT_PD_DIS, "   
lv_it_tol  TYPE BBPT_PD_TOL, "   
lv_it_condition  TYPE BBPT_PD_CND_D, "   
lv_iv_unlock_ind  TYPE XFELD, "   
lv_iv_reconciliation_requested  TYPE XFELD, "   
lv_iv_src_guid  TYPE BBP_GUID, "   
lv_iv_system_type  TYPE BBP_SYSTEM_TYPE, "   
lv_is_header  TYPE BBP_PDS_CTR_HEADER_D, "   
lv_it_items  TYPE BBPT_PD_CTR_ITEM_D, "   
lv_it_org_data  TYPE BBPT_PDS_ORG, "   
lv_it_text  TYPE BBPT_PD_LONGTEXT, "   
lv_it_partner  TYPE BBPT_PD_PARTNER, "   
lv_it_attach  TYPE BBPT_PDS_ATT_T. "   

  CALL FUNCTION 'META_CTR_TRANSFER'  "Change contract
    EXPORTING
         IV_LOGICAL_SYSTEM = lv_iv_logical_system
         IT_STATUS = lv_it_status
         IT_DIST = lv_it_dist
         IT_TOL = lv_it_tol
         IT_CONDITION = lv_it_condition
         IV_UNLOCK_IND = lv_iv_unlock_ind
         IV_RECONCILIATION_REQUESTED = lv_iv_reconciliation_requested
         IV_SRC_GUID = lv_iv_src_guid
         IV_SYSTEM_TYPE = lv_iv_system_type
         IS_HEADER = lv_is_header
         IT_ITEMS = lv_it_items
         IT_ORG_DATA = lv_it_org_data
         IT_TEXT = lv_it_text
         IT_PARTNER = lv_it_partner
         IT_ATTACH = lv_it_attach
    IMPORTING
         ET_MESSAGES = lv_et_messages
    TABLES
         ET_CONTROL_RECORD = lt_et_control_record
. " META_CTR_TRANSFER




ABAP code using 7.40 inline data declarations to call FM META_CTR_TRANSFER

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



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!