SAP BAPI_FTR_BG_ORDERGET Function Module for Completely display Bank Guarantee order









BAPI_FTR_BG_ORDERGET is a standard bapi ftr bg orderget SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Completely display Bank Guarantee order 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 ftr bg orderget FM, simply by entering the name BAPI_FTR_BG_ORDERGET into the relevant SAP transaction such as SE37 or SE38.

Function Group: FTR_BAPI_BG
Program Name: SAPLFTR_BAPI_BG
Main Program: SAPLFTR_BAPI_BG
Appliation area:
Release date: 15-Feb-2016
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_FTR_BG_ORDERGET 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_FTR_BG_ORDERGET'"Completely display Bank Guarantee order
EXPORTING
COMPANYCODE = "Company Code
FINANCIALTRANSACTION = "Financial Transaction

IMPORTING
RETURNCOMPANYCODE = "Company Code
RETURNFINANCIALTRANSACTION = "Financial Transaction
RETURNBANKGUARANTEE = "Display Bank Guarantee per BAPI
RETURNGENERALCONTRACTDATA = "FTR: BAPI Structure for Creating Transactions

TABLES
SALES_PURCHASE_ORDER = "BAPI Structure: purchase order/sales order for bankguarantee
LONG_TEXT = "BAPI Structure: bank guarantee long text
* CASHCOLLATERAL = "GetDeatil Split Cash Collateral per BAPI
PAYMENTDETAIL = "FTR: BAPI Structure for Payment Details
ADDFLOW = "FTR: BAPI Structure for Flows
* EXTENSIONOUT = "Ref. structure for BAPI parameter ExtensionIn/ExtensionOut
* CONDITION = "Condition Details
* SINGLEDATE = "Condition Single Dates
* RETURN = "Return Parameter
.



IMPORTING Parameters details for BAPI_FTR_BG_ORDERGET

COMPANYCODE - Company Code

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

FINANCIALTRANSACTION - Financial Transaction

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

EXPORTING Parameters details for BAPI_FTR_BG_ORDERGET

RETURNCOMPANYCODE - Company Code

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

RETURNFINANCIALTRANSACTION - Financial Transaction

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

RETURNBANKGUARANTEE - Display Bank Guarantee per BAPI

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

RETURNGENERALCONTRACTDATA - FTR: BAPI Structure for Creating Transactions

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

TABLES Parameters details for BAPI_FTR_BG_ORDERGET

SALES_PURCHASE_ORDER - BAPI Structure: purchase order/sales order for bankguarantee

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

LONG_TEXT - BAPI Structure: bank guarantee long text

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

CASHCOLLATERAL - GetDeatil Split Cash Collateral per BAPI

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

PAYMENTDETAIL - FTR: BAPI Structure for Payment Details

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

ADDFLOW - FTR: BAPI Structure for Flows

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

EXTENSIONOUT - Ref. structure for BAPI parameter ExtensionIn/ExtensionOut

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

CONDITION - Condition Details

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

SINGLEDATE - Condition Single Dates

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

RETURN - Return Parameter

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

Copy and paste ABAP code example for BAPI_FTR_BG_ORDERGET 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_companycode  TYPE BAPI2042-COMPANY_CODE, "   
lv_returncompanycode  TYPE BAPI2042-COMPANY_CODE, "   
lt_sales_purchase_order  TYPE STANDARD TABLE OF BAPI_FTR_BG_SO_PO, "   
lt_long_text  TYPE STANDARD TABLE OF BAPI_FTR_BG_LONGTEXT, "   
lv_financialtransaction  TYPE BAPI2042-TRANSACTION, "   
lv_returnfinancialtransaction  TYPE BAPI2042-TRANSACTION, "   
lt_cashcollateral  TYPE STANDARD TABLE OF BAPI_FTR_GETDETAIL_CASCOLL_SPL, "   
lv_returnbankguarantee  TYPE BAPI_FTR_GETDETAIL_BG, "   
lt_paymentdetail  TYPE STANDARD TABLE OF BAPI_FTR_PAYDET, "   
lv_returngeneralcontractdata  TYPE BAPI_FTR_GETDETAIL, "   
lt_addflow  TYPE STANDARD TABLE OF BAPI_FTR_FLOW, "   
lt_extensionout  TYPE STANDARD TABLE OF BAPIPAREX, "   
lt_condition  TYPE STANDARD TABLE OF BAPI_FTR_CONDITION, "   
lt_singledate  TYPE STANDARD TABLE OF BAPI_FTR_CONDITION_SINGLEDAT, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2. "   

  CALL FUNCTION 'BAPI_FTR_BG_ORDERGET'  "Completely display Bank Guarantee order
    EXPORTING
         COMPANYCODE = lv_companycode
         FINANCIALTRANSACTION = lv_financialtransaction
    IMPORTING
         RETURNCOMPANYCODE = lv_returncompanycode
         RETURNFINANCIALTRANSACTION = lv_returnfinancialtransaction
         RETURNBANKGUARANTEE = lv_returnbankguarantee
         RETURNGENERALCONTRACTDATA = lv_returngeneralcontractdata
    TABLES
         SALES_PURCHASE_ORDER = lt_sales_purchase_order
         LONG_TEXT = lt_long_text
         CASHCOLLATERAL = lt_cashcollateral
         PAYMENTDETAIL = lt_paymentdetail
         ADDFLOW = lt_addflow
         EXTENSIONOUT = lt_extensionout
         CONDITION = lt_condition
         SINGLEDATE = lt_singledate
         RETURN = lt_return
. " BAPI_FTR_BG_ORDERGET




ABAP code using 7.40 inline data declarations to call FM BAPI_FTR_BG_ORDERGET

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 COMPANY_CODE FROM BAPI2042 INTO @DATA(ld_companycode).
 
"SELECT single COMPANY_CODE FROM BAPI2042 INTO @DATA(ld_returncompanycode).
 
 
 
"SELECT single TRANSACTION FROM BAPI2042 INTO @DATA(ld_financialtransaction).
 
"SELECT single TRANSACTION FROM BAPI2042 INTO @DATA(ld_returnfinancialtransaction).
 
 
 
 
 
 
 
 
 
 


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!